PageSourceSearch

https://arona-note.netlify.app/_astro/PageTransition.astro_astro_type_script_index_0_lang.D8bAg6kx.js

js arona-note.netlify.app collected 2026-10-03 10:27:50 UTC 5,880 bytes, 1 lines download raw bytes

1import{g as x}from"./_commonjsHelpers.Cpj98o6Y.js";var S={exports:{}};var L=S.exports,I;function U(){return I||(I=1,(function(a,i){(function(e,r){a.exports=r()})(L,function(){var e={};e.version="0.2.0";var r=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};e.configure=function(t){var n,s;for(n in t)s=t[n],s!==void 0&&t.hasOwnProperty(n)&&(r[n]=s);return this},e.status=null,e.set=function(t){var n=e.isStarted();t=h(t,r.minimum,1),e.status=t===1?null:t;var s=e.render(!n),c=s.querySelector(r.barSelector),u=r.speed,d=r.easing;return s.offsetWidth,w(function(o){r.positionUsing===""&&(r.positionUsing=e.getPositioningCSS()),m(c,b(t,u,d)),t===1?(m(s,{transition:"none",opacity:1}),s.offsetWidth,setTimeout(function(){m(s,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){e.remove(),o()},u)},u)):setTimeout(o,u)}),this},e.isStarted=function(){return typeof e.status=="number"},e.start=function(){e.status||e.set(0);var t=function(){setTimeout(function(){e.status&&(e.trickle(),t())},r.trickleSpeed)};return r.trickle&&t(),this},e.done=function(t){return!t&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(t){var n=e.status;return n?(typeof t!="number"&&(t=(1-n)*h(Math.random()*n,.1,.95)),n=h(n+t,0,.994),e.set(n)):e.start()},e.trickle=function(){return e.inc(Math.random()*r.trickleRate)},(function(){var t=0,n=0;e.promise=function(s){return!s||s.state()==="resolved"?this:(n===0&&e.start(),t++,n++,s.always(function(){n--,n===0?(t=0,e.done()):e.set((t-n)/t)}),this)}})(),e.render=function(t){if(e.isRendered())return document.getElementById("nprogress");T(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=r.template;var s=n.querySelector(r.barSelector),c=t?"-100":g(e.status||0),u=document.querySelector(r.parent),d;return m(s,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),r.showSpinner||(d=n.querySelector(r.spinnerSelector),d&&k(d)),u!=document.body&&T(u,"nprogress-custom-parent"),u.appendChild(n),n},e.remove=function(){E(document.documentElement,"nprogress-busy"),E(document.querySelector(r.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&k(t)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var t=document.body.style,n="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return n+"Perspective"in t?"translate3d":n+"Transform"in t?"translate":"margin"};function h(t,n,s){return t<n?n:t>s?s:t}function g(t){return(-1+t)*100}function b(t,n,s){var c;return r.positionUsing==="translate3d"?c={transform:"translate3d("+g(t)+"%,0,0)"}:r.positionUsing==="translate"?c={transform:"translate("+g(t)+"%,0)"}:c={"margin-left":g(t)+"%"},c.transition="all "+n+"ms "+s,c}var w=(function(){var t=[];function n(){var s=t.shift();s&&s(n)}return function(s){t.push(s),t.length==1&&n()}})(),m=(function(){var t=["Webkit","O","Moz","ms"],n={};function s(o){return o.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(f,l){return l.toUpperCase()})}function c(o){var f=document.body.style;if(o in f)return o;for(var l=t.length,y=o.charAt(0).toUpperCase()+o.slice(1),p;l--;)if(p=t[l]+y,p in f)return p;return o}function u(o){return o=s(o),n[o]||(n[o]=c(o))}function d(o,f,l){f=u(f),o.style[f]=l}return function(o,f){var l=arguments,y,p;if(l.length==2)for(y in f)p=f[y],p!==void 0&&f.hasOwnProperty(y)&&d(o,y,p);else d(o,l[1],l[2])}})();function v(t,n){var s=typeof t=="string"?t:P(t);return s.indexOf(" "+n+" ")>=0}function T(t,n){var s=P(t),c=s+n;v(s,n)||(t.className=c.substring(1))}function E(t,n){var s=P(t),c;v(t,n)&&(c=s.replace(" "+n+" "," "),t.className=c.substring(1,c.length-1))}function P(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function k(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return e})})(S)),S.exports}var q=U();const C=x(q);C.configure({showSpinner:!1,speed:200,trickleSpeed:200});function N(a){const i=a.replace(/\/$/,"")||"/";return i==="/"?"home":i==="/tags"||i.startsWith("/tags/")?"tags":i.startsWith("/blog/")?"post":"other"}function B(a,i){const e=document.getElementById("main-content"),r=document.getElementById("banner-content");e&&(e.style.transition="",e.style.opacity="0"),r&&!(a==="tags"&&i==="tags")&&(r.style.transition="",r.style.opacity="0")}function M(a,i){const e=document.getElementById("main-content"),r=document.getElementById("banner-content");e&&(e.style.transition="none",e.style.opacity="0",e.offsetHeight,e.style.transition="",e.style.opacity="1"),r&&!(a==="tags"&&i==="tags")&&(r.style.transition="none",r.style.opacity="0",r.offsetHeight,r.style.transition="",r.style.opacity="1")}document.addEventListener("astro:before-preparation",a=>{const i=N(window.location.pathname),e=N(a.to?.pathname||"");sessionStorage.setItem("fromPageType",i),sessionStorage.setItem("toPageType",e),C.start(),B(i,e)});document.addEventListener("astro:after-swap",a=>{const i=sessionStorage.getItem("fromPageType"),e=sessionStorage.getItem("toPageType");C.done(),M(i,e)});document.addEventListener("click",a=>{if(a.defaultPrevented||a.button!==0||a.metaKey||a.ctrlKey||a.shiftKey||a.altKey)return;const i=a.target.closest("a[href]");if(!i||i.target&&i.target!=="_self"||i.hasAttribute("download"))return;const e=new URL(i.href,window.location.origin);if(e.origin!==window.location.origin)return;const r=v=>v?.replace(/\/$/,"")||"/",h=r(window.location.pathname),g=r(e.pathname),b=h===g,w=window.location.search===e.search,m=e.hash&&e.hash!==window.location.hash;b&&w&&!m&&a.preventDefault()},!0);

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.