<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">function o(){return o=Object.assign?Object.assign.bind():function(s){for(var n=1;n&lt;arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&amp;&amp;(s[t]=r[t])}return s},o.apply(this,arguments)}const d=s=&gt;String(s).split(".").map(n=&gt;String(parseInt(n||"0",10))).concat(["0","0"]).slice(0,3).join(".");class y{constructor(){this.isSwupPlugin=!0,this.swup=void 0,this.version=void 0,this.requires={},this.handlersToUnregister=[]}mount(){}unmount(){this.handlersToUnregister.forEach(n=&gt;n()),this.handlersToUnregister=[]}_beforeMount(){if(!this.name)throw new Error("You must define a name of plugin when creating a class.")}_afterUnmount(){}_checkRequirements(){return typeof this.requires!="object"||Object.entries(this.requires).forEach(([n,r])=&gt;{if(!function(t,i,u){const g=function(a,h){var c;if(a==="swup")return(c=h.version)!=null?c:"";{var l;const p=h.findPlugin(a);return(l=p?.version)!=null?l:""}}(t,u);return!!g&amp;&amp;((a,h)=&gt;h.every(c=&gt;{const[,l,p]=c.match(/^([\D]+)?(.*)$/)||[];var m,f;return((w,b)=&gt;{const v={"":e=&gt;e===0,"&gt;":e=&gt;e&gt;0,"&gt;=":e=&gt;e&gt;=0,"&lt;":e=&gt;e&lt;0,"&lt;=":e=&gt;e&lt;=0};return(v[b]||v[""])(w)})((f=p,m=d(m=a),f=d(f),m.localeCompare(f,void 0,{numeric:!0})),l||"&gt;=")}))(g,i)}(n,r=Array.isArray(r)?r:[r],this.swup)){const t=`${n} ${r.join(", ")}`;throw new Error(`Plugin version mismatch: ${this.name} requires ${t}`)}}),!0}on(n,r,t={}){var i;r=!(i=r).name.startsWith("bound ")||i.hasOwnProperty("prototype")?r.bind(this):r;const u=this.swup.hooks.on(n,r,t);return this.handlersToUnregister.push(u),u}once(n,r,t={}){return this.on(n,r,o({},t,{once:!0}))}before(n,r,t={}){return this.on(n,r,o({},t,{before:!0}))}replace(n,r,t={}){return this.on(n,r,o({},t,{replace:!0}))}off(n,r){return this.swup.hooks.off(n,r)}}export{y as e};
</pre></body></html>