1try{let n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new n.Error().stack;r&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[r]="652e4ba2-7891-4c26-a055-923465021112",n._sentryDebugIdIdentifier="sentry-dbid-652e4ba2-7891-4c26-a055-923465021112")}catch{}function he(n,r){for(var e=0;e<r.length;e++){var t=r[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,typeof(i=function(o,a){if(typeof o!="object"||o===null)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var s=u.call(o,"string");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}(t.key))=="symbol"?i:String(i),t)}var i}function re(n,r,e){return r&&he(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function C(){return C=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},C.apply(this,arguments)}function J(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,X(n,r)}function V(n){return V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},V(n)}function X(n,r){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},X(n,r)}function fe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Z(n,r,e){return Z=fe()?Reflect.construct.bind():function(t,i,o){var a=[null];a.push.apply(a,i);var u=new(Function.bind.apply(t,a));return o&&X(u,o.prototype),u},Z.apply(null,arguments)}function ee(n){var r=typeof Map=="function"?new Map:void 0;return ee=function(e){if(e===null||Function.toString.call(e).indexOf("[native code]")===-1)return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return Z(e,arguments,V(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),X(t,e)},ee(n)}function le(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}var N,de=function(){this.before=void 0,this.beforeLeave=void 0,this.leave=void 0,this.afterLeave=void 0,this.beforeEnter=void 0,this.enter=void 0,this.afterEnter=void 0,this.after=void 0};(function(n){n[n.off=0]="off",n[n.error=1]="error",n[n.warning=2]="warning",n[n.info=3]="info",n[n.debug=4]="debug"})(N||(N={}));var ne=N.off,D=function(){function n(e){this.t=void 0,this.t=e}n.getLevel=function(){return ne},n.setLevel=function(e){return ne=N[e]};var r=n.prototype;return r.error=function(){this.i(console.error,N.error,[].slice.call(arguments))},r.warn=function(){this.i(console.warn,N.warning,[].slice.call(arguments))},r.info=function(){this.i(console.info,N.info,[].slice.call(arguments))},r.debug=function(){this.i(console.log,N.debug,[].slice.call(arguments))},r.i=function(e,t,i){t<=n.getLevel()&&e.apply(console,["["+this.t+"] "].concat(i))},n}();function B(n){return n.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function ie(n){return n&&n.sensitive?"":"i"}var H={container:"container",history:"history",namespace:"namespace",prefix:"data-barba",prevent:"prevent",wrapper:"wrapper"},U=new(function(){function n(){this.o=H,this.u=void 0,this.h={after:null,before:null,parent:null}}var r=n.prototype;return r.toString=function(e){return e.outerHTML},r.toDocument=function(e){return this.u||(this.u=new DOMParser),this.u.parseFromString(e,"text/html")},r.toElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t},r.getHtml=function(e){return e===void 0&&(e=document),this.toString(e.documentElement)},r.getWrapper=function(e){return e===void 0&&(e=document),e.querySelector("["+this.o.prefix+'="'+this.o.wrapper+'"]')},r.getContainer=function(e){return e===void 0&&(e=document),e.querySelector("["+this.o.prefix+'="'+this.o.container+'"]')},r.removeContainer=function(e){document.body.contains(e)&&(this.v(e),e.parentNode.removeChild(e))},r.addContainer=function(e,t){var i=this.getContainer()||this.h.before;i?this.l(e,i):this.h.after?this.h.after.parentNode.insertBefore(e,this.h.after):this.h.parent?this.h.parent.appendChild(e):t.appendChild(e)},r.getSibling=function(){return this.h},r.getNamespace=function(e){e===void 0&&(e=document);var t=e.querySelector("["+this.o.prefix+"-"+this.o.namespace+"]");return t?t.getAttribute(this.o.prefix+"-"+this.o.namespace):null},r.getHref=function(e){if(e.tagName&&e.tagName.toLowerCase()==="a"){if(typeof e.href=="string")return e.href;var t=e.getAttribute("href")||e.getAttribute("xlink:href");if(t)return this.resolveUrl(t.baseVal||t)}return null},r.resolveUrl=function(){var e=[].slice.call(arguments).length;if(e===0)throw new Error("resolveUrl requires at least one argument; got none.");var t=document.createElement("base");if(t.href=arguments[0],e===1)return t.href;var i=document.getElementsByTagName("head")[0];i.insertBefore(t,i.firstChild);for(var o,a=document.createElement("a"),u=1;u<e;u++)a.href=arguments[u],t.href=o=a.href;return i.removeChild(t),o},r.l=function(e,t){t.parentNode.insertBefore(e,t.nextSibling)},r.v=function(e){return this.h={after:e.nextElementSibling,before:e.previousElementSibling,parent:e.parentElement},this.h},n}()),pe=function(){function n(){this.p=void 0,this.m=[],this.P=-1}var r=n.prototype;return r.init=function(e,t){this.p="barba";var i={data:{},ns:t,scroll:{x:window.scrollX,y:window.scrollY},url:e};this.P=0,this.m.push(i);var o={from:this.p,index:this.P,states:[].concat(this.m)};window.history&&window.history.replaceState(o,"",e)},r.change=function(e,t,i){if(i&&i.state){var o=i.state,a=o.index;t=this.g(this.P-a),this.replace(o.states),this.P=a}else this.add(e,t);return t},r.add=function(e,t,i,o){var a=i??this.R(t),u={data:o??{},ns:"tmp",scroll:{x:window.scrollX,y:window.scrollY},url:e};switch(a){case"push":this.P=this.size,this.m.push(u);break;case"replace":this.set(this.P,u)}var s={from:this.p,index:this.P,states:[].concat(this.m)};switch(a){case"push":window.history&&window.history.pushState(s,"",e);break;case"replace":window.history&&window.history.replaceState(s,"",e)}},r.store=function(e,t){var i=t||this.P,o=this.get(i);o.data=C({},o.data,e),this.set(i,o);var a={from:this.p,index:this.P,states:[].concat(this.m)};window.history.replaceState(a,"")},r.update=function(e,t){var i=t||this.P,o=C({},this.get(i),e);this.set(i,o)},r.remove=function(e){e?this.m.splice(e,1):this.m.pop(),this.P--},r.clear=function(){this.m=[],this.P=-1},r.replace=function(e){this.m=e},r.get=function(e){return this.m[e]},r.set=function(e,t){return this.m[e]=t},r.R=function(e){var t="push",i=e,o=H.prefix+"-"+H.history;return i.hasAttribute&&i.hasAttribute(o)&&(t=i.getAttribute(o)),t},r.g=function(e){return Math.abs(e)>1?e>0?"forward":"back":e===0?"popstate":e>0?"back":"forward"},re(n,[{key:"current",get:function(){return this.m[this.P]}},{key:"previous",get:function(){return this.P<1?null:this.m[this.P-1]}},{key:"size",get:function(){return this.m.length}}]),n}(),oe=new pe,G=function(n,r){try{var e=function(){if(!r.next.html)return Promise.resolve(n).then(function(t){var i=r.next;if(t){var o=U.toElement(t.html);i.namespace=U.getNamespace(o),i.container=U.getContainer(o),i.url=t.url,i.html=t.html,oe.update({ns:i.namespace});var a=U.toDocument(t.html);document.title=a.title}})}();return Promise.resolve(e&&e.then?e.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},se=function n(r,e,t){return r instanceof RegExp?function(i,o){if(!o)return i;for(var a=/\((?:\?<(.*?)>)?(?!\?)/g,u=0,s=a.exec(i.source);s;)o.push({name:s[1]||u++,prefix:"",suffix:"",modifier:"",pattern:""}),s=a.exec(i.source);return i}(r,e):Array.isArray(r)?function(i,o,a){var u=i.map(function(s){return n(s,o,a).source});return new RegExp("(?:".concat(u.join("|"),")"),ie(a))}(r,e,t):function(i,o,a){return function(u,s,c){c===void 0&&(c={});for(var g=c.strict,p=g!==void 0&&g,h=c.start,w=h===void 0||h,f=c.end,l=f===void 0||f,b=c.encode,y=b===void 0?function($){return $}:b,R=c.delimiter,P=R===void 0?"/#?":R,A=c.endsWith,q="[".concat(B(A===void 0?"":A),"]|$"),S="[".concat(B(P),"]"),O=w?"^":"",L=0,T=u;L<T.length;L++){var v=T[L];if(typeof v=="string")O+=B(y(v));else{var k=B(y(v.prefix)),d=B(y(v.suffix));if(v.pattern)if(s&&s.push(v),k||d)if(v.modifier==="+"||v.modifier==="*"){var E=v.modifier==="*"?"?":"";O+="(?:".concat(k,"((?:").concat(v.pattern,")(?:").concat(d).concat(k,"(?:").concat(v.pattern,"))*)").concat(d,")").concat(E)}else O+="(?:".concat(k,"(").concat(v.pattern,")").concat(d,")").concat(v.modifier);else O+=v.modifier==="+"||v.modifier==="*"?"((?:".concat(v.pattern,")").concat(v.modifier,")"):"(".concat(v.pattern,")").concat(v.modifier);else O+="(?:".concat(k).concat(d,")").concat(v.modifier)}}if(l)p||(O+="".concat(S,"?")),O+=c.endsWith?"(?=".concat(q,")"):"$";else{var m=u[u.length-1],j=typeof m=="string"?S.indexOf(m[m.length-1])>-1:m===void 0;p||(O+="(?:".concat(S,"(?=").concat(q,"))?")),j||(O+="(?=".concat(S,"|").concat(q,")"))}return new RegExp(O,ie(c))}(function(u,s){s===void 0&&(s={});for(var c=function(d){for(var E=[],m=0;m<d.length;){var j=d[m];if(j!=="*"&&j!=="+"&&j!=="?")if(j!=="\\")if(j!=="{")if(j!=="}")if(j!==":")if(j!=="(")E.push({type:"CHAR",index:m,value:d[m++]});else{var $=1,Q="";if(d[x=m+1]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(x));for(;x<d.length;)if(d[x]!=="\\"){if(d[x]===")"){if(--$==0){x++;break}}else if(d[x]==="("&&($++,d[x+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(x));Q+=d[x++]}else Q+=d[x++]+d[x++];if($)throw new TypeError("Unbalanced pattern at ".concat(m));if(!Q)throw new TypeError("Missing pattern at ".concat(m));E.push({type:"PATTERN",index:m,value:Q}),m=x}else{for(var z="",x=m+1;x<d.length;
vendor: 4,516 bytes, line 1
1){var _=d.charCodeAt(x);if(!(_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||_===95))break;z+=d[x++]}if(!z)throw new TypeError("Missing parameter name at ".concat(m));E.push({type:"NAME",index:m,value:z}),m=x}else E.push({type:"CLOSE",index:m,value:d[m++]});else E.push({type:"OPEN",index:m,value:d[m++]});else E.push({type:"ESCAPED_CHAR",index:m++,value:d[m++]});else E.push({type:"MODIFIER",index:m,value:d[m++]})}return E.push({type:"END",index:m,value:""}),E}(u),g=s.prefixes,p=g===void 0?"./":g,h="[^".concat(B(s.delimiter||"/#?"),"]+?"),w=[],f=0,l=0,b="",y=function(d){if(l<c.length&&c[l].type===d)return c[l++].value},R=function(d){var E=y(d);if(E!==void 0)return E;var m=c[l],j=m.index;throw new TypeError("Unexpected ".concat(m.type," at ").concat(j,", expected ").concat(d))},P=function(){for(var d,E="";d=y("CHAR")||y("ESCAPED_CHAR");)E+=d;return E};l<c.length;){var A=y("CHAR"),q=y("NAME"),S=y("PATTERN");if(q||S)p.indexOf(L=A||"")===-1&&(b+=L,L=""),b&&(w.push(b),b=""),w.push({name:q||f++,prefix:L,suffix:"",pattern:S||h,modifier:y("MODIFIER")||""});else{var O=A||y("ESCAPED_CHAR");if(O)b+=O;else if(b&&(w.push(b),b=""),y("OPEN")){var L=P(),T=y("NAME")||"",v=y("PATTERN")||"",k=P();R("CLOSE"),w.push({name:T||(v?f++:""),pattern:T&&!v?h:v,prefix:L,suffix:k,modifier:y("MODIFIER")||""})}else R("END")}}return w}(i,a),o,a)}(r,e,t)},ve={__proto__:null,update:G,nextTick:function(){return new Promise(function(n){window.requestAnimationFrame(n)})},pathToRegexp:se},ae=function(){return window.location.origin},K=function(n){return n===void 0&&(n=window.location.href),I(n).port},I=function(n){var r,e=n.match(/:\d+/);if(e===null)/^http/.test(n)&&(r=80),/^https/.test(n)&&(r=443);else{var t=e[0].substring(1);r=parseInt(t,10)}var i,o=n.replace(ae(),""),a={},u=o.indexOf("#");u>=0&&(i=o.slice(u+1),o=o.slice(0,u));var s=o.indexOf("?");return s>=0&&(a=ue(o.slice(s+1)),o=o.slice(0,s)),{hash:i,path:o,port:r,query:a}},ue=function(n){return n.split("&").reduce(function(r,e){var t=e.split("=");return r[t[0]]=t[1],r},{})},te=function(n){return n===void 0&&(n=window.location.href),n.replace(/(\/#.*|\/|#.*)$/,"")},me={__proto__:null,getHref:function(){return window.location.href},getAbsoluteHref:function(n,r){return r===void 0&&(r=document.baseURI),new URL(n,r).href},getOrigin:ae,getPort:K,getPath:function(n){return n===void 0&&(n=window.location.href),I(n).path},getQuery:function(n,r){return r===void 0&&(r=!1),r?JSON.stringify(I(n).query):I(n).query},getHash:function(n){return I(n).hash},parse:I,parseQuery:ue,clean:te};function ge(n,r,e,t,i){return r===void 0&&(r=2e3),new Promise(function(o,a){var u=new XMLHttpRequest;u.onreadystatechange=function(){if(u.readyState===XMLHttpRequest.DONE){if(u.status===200){var s=u.responseURL!==""&&u.responseURL!==n?u.responseURL:n;o({html:u.responseText,url:C({href:s},I(s))}),t.update(n,{status:"fulfilled",target:s})}else if(u.status){var c={status:u.status,statusText:u.statusText};e(n,c),a(c),t.update(n,{status:"rejected"})}}},u.ontimeout=function(){var s=new Error("Timeout error ["+r+"]");e(n,s),a(s),t.update(n,{status:"rejected"})},u.onerror=function(){var s=new Error("Fetch error");e(n,s),a(s),t.update(n,{status:"rejected"})},u.open("GET",n),u.timeout=r,u.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml"),u.setRequestHeader("x-barba","yes"),i.all().forEach(function(s,c){u.setRequestHeader(c,s)}),u.send()})}function ye(n){return!!n&&(typeof n=="object"||typeof n=="function")&&typeof n.then=="function"}function F(n,r){return r===void 0&&(r={}),function(){var e=arguments,t=!1,i=new Promise(function(o,a){r.async=function(){return t=!0,function(s,c){s?a(s):o(c)}};var u=n.apply(r,[].slice.call(e));t||(ye(u)?u.then(o,a):o(u))});return i}}var M=new(function(n){function r(){var t;return(t=n.call(this)||this).logger=new D("@barba/core"),t.all=["ready","page","reset","currentAdded","currentRemoved","nextAdded","nextRemoved","beforeOnce","once","afterOnce","before","beforeLeave","leave","afterLeave","beforeEnter","enter","afterEnter","after"],t.registered=new Map,t.init(),t}J(r,n);var e=r.prototype;return e.init=function(){var t=this;this.registered.clear(),this.all.forEach(function(i){t[i]||(t[i]=function(o,a){t.registered.has(i)||t.registered.set(i,new Set),t.registered.get(i).add({ctx:a||{},fn:o})})})},e.do=function(t){var i=arguments,o=this;if(this.registered.has(t)){var a=Promise.resolve();return this.registered.get(t).forEach(function(u){a=a.then(function(){return F(u.fn,u.ctx).apply(void 0,[].slice.call(i,1))})}
1),a.catch(function(u){o.logger.debug("Hook error ["+t+"]"),o.logger.error(u)})}return Promise.resolve()},e.clear=function(){var t=this;this.all.forEach(function(i){delete t[i]}),this.init()},e.help=function(){this.logger.info("Available hooks: "+this.all.join(","));var t=[];this.registered.forEach(function(i,o){return t.push(o)}),this.logger.info("Registered hooks: "+t.join(","))},r}(de)),ce=function(){function n(r){if(this.k=void 0,this.O=[],typeof r=="boolean")this.k=r;else{var e=Array.isArray(r)?r:[r];this.O=e.map(function(t){return se(t)})}}return n.prototype.checkHref=function(r){if(typeof this.k=="boolean")return this.k;var e=I(r).path;return this.O.some(function(t){return t.exec(e)!==null})},n}(),we=function(n){function r(t){var i;return(i=n.call(this,t)||this).T=new Map,i}J(r,n);var e=r.prototype;return e.set=function(t,i,o,a,u){return this.T.set(t,{action:o,request:i,status:a,target:u??t}),{action:o,request:i,status:a,target:u}},e.get=function(t){return this.T.get(t)},e.getRequest=function(t){return this.T.get(t).request},e.getAction=function(t){return this.T.get(t).action},e.getStatus=function(t){return this.T.get(t).status},e.getTarget=function(t){return this.T.get(t).target},e.has=function(t){return!this.checkHref(t)&&this.T.has(t)},e.delete=function(t){return this.T.delete(t)},e.update=function(t,i){var o=C({},this.T.get(t),i);return this.T.set(t,o),o},r}(ce),be=function(){function n(){this.A=new Map}var r=n.prototype;return r.set=function(e,t){return this.A.set(e,t),{name:t}},r.get=function(e){return this.A.get(e)},r.all=function(){return this.A},r.has=function(e){return this.A.has(e)},r.delete=function(e){return this.A.delete(e)},r.clear=function(){return this.A.clear()},n}(),Pe=function(){return!window.history.pushState},Ee=function(n){return!n.el||!n.href},xe=function(n){var r=n.event;return r.which>1||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey},Oe=function(n){var r=n.el;return r.hasAttribute("target")&&r.target==="_blank"},Ae=function(n){var r=n.el;return r.protocol!==void 0&&window.location.protocol!==r.protocol||r.hostname!==void 0&&window.location.hostname!==r.hostname},ke=function(n){var r=n.el;return r.port!==void 0&&K()!==K(r.href)},Re=function(n){var r=n.el;return r.getAttribute&&typeof r.getAttribute("download")=="string"},Le=function(n){return n.el.hasAttribute(H.prefix+"-"+H.prevent)},Te=function(n){return!!n.el.closest("["+H.prefix+"-"+H.prevent+'="all"]')},je=function(n){var r=n.href;return te(r)===te()&&K(r)===K()},Se=function(n){function r(t){var i;return(i=n.call(this,t)||this).suite=[],i.tests=new Map,i.init(),i}J(r,n);var e=r.prototype;return e.init=function(){this.add("pushState",Pe),this.add("exists",Ee),this.add("newTab",xe),this.add("blank",Oe),this.add("corsDomain",Ae),this.add("corsPort",ke),this.add("download",Re),this.add("preventSelf",Le),this.add("preventAll",Te),this.add("sameUrl",je,!1)},e.add=function(t,i,o){o===void 0&&(o=!0),this.tests.set(t,i),o&&this.suite.push(t)},e.run=function(t,i,o,a){return this.tests.get(t)({el:i,event:o,href:a})},e.checkLink=function(t,i,o){var a=this;return this.suite.some(function(u){return a.run(u,t,i,o)})},r}(ce),Y=function(n){function r(e,t){var i;return t===void 0&&(t="Barba error"),(i=n.call.apply(n,[this].concat([].slice.call(arguments,2)))||this).error=void 0,i.label=void 0,i.error=e,i.label=t,Error.captureStackTrace&&Error.captureStackTrace(le(i),r),i.name="BarbaError",i}return J(r,n),r}(ee(Error)),Ce=function(){function n(e){e===void 0&&(e=[]),this.logger=new D("@barba/core"),this.all=[],this.page=[],this.once=[],this.j=[{name:"namespace",type:"strings"},{name:"custom",type:"function"}],e&&(this.all=this.all.concat(e)),this.update()}var r=n.prototype;return r.add=function(e,t){e==="rule"?this.j.splice(t.position||0,0,t.value):this.all.push(t),this.update()},r.resolve=function(e,t){var i=this;t===void 0&&(t={});var o=t.once?this.once:this.page;o=o.filter(t.self?function(h){return h.name&&h.name==="self"}:function(h){return!h.name||h.name!=="self"});var a=new Map,u=o.find(function(h){var w=!0,f={};return t.self&&h.name==="self"?(a.set(h,f),!0):(i.j.reverse().forEac
vendor: 11,036 bytes, line 1
1h(function(l){w&&(w=i.M(h,l,e,f),h.from&&h.to&&(w=i.M(h,l,e,f,"from")&&i.M(h,l,e,f,"to")),h.from&&!h.to&&(w=i.M(h,l,e,f,"from")),!h.from&&h.to&&(w=i.M(h,l,e,f,"to")))}),a.set(h,f),w)}),s=a.get(u),c=[];if(c.push(t.once?"once":"page"),t.self&&c.push("self"),s){var g,p=[u];Object.keys(s).length>0&&p.push(s),(g=this.logger).info.apply(g,["Transition found ["+c.join(",")+"]"].concat(p))}else this.logger.info("No transition found ["+c.join(",")+"]");return u},r.update=function(){var e=this;this.all=this.all.map(function(t){return e.N(t)}).sort(function(t,i){return t.priority-i.priority}).reverse().map(function(t){return delete t.priority,t}),this.page=this.all.filter(function(t){return t.leave!==void 0||t.enter!==void 0}),this.once=this.all.filter(function(t){return t.once!==void 0})},r.M=function(e,t,i,o,a){var u=!0,s=!1,c=e,g=t.name,p=g,h=g,w=g,f=a?c[a]:c,l=a==="to"?i.next:i.current;if(a?f&&f[g]:f[g]){switch(t.type){case"strings":default:var b=Array.isArray(f[p])?f[p]:[f[p]];l[p]&&b.indexOf(l[p])!==-1&&(s=!0),b.indexOf(l[p])===-1&&(u=!1);break;case"object":var y=Array.isArray(f[h])?f[h]:[f[h]];l[h]?(l[h].name&&y.indexOf(l[h].name)!==-1&&(s=!0),y.indexOf(l[h].name)===-1&&(u=!1)):u=!1;break;case"function":f[w](i)?s=!0:u=!1}s&&(a?(o[a]=o[a]||{},o[a][g]=c[a][g]):o[g]=c[g])}return u},r.S=function(e,t,i){var o=0;return(e[t]||e.from&&e.from[t]||e.to&&e.to[t])&&(o+=Math.pow(10,i),e.from&&e.from[t]&&(o+=1),e.to&&e.to[t]&&(o+=2)),o},r.N=function(e){var t=this;e.priority=0;var i=0;return this.j.forEach(function(o,a){i+=t.S(e,o.name,a+1)}),e.priority=i,e},n}();function W(n,r){try{var e=n()}catch(t){return r(t)}return e&&e.then?e.then(void 0,r):e}var He=function(){function n(e){e===void 0&&(e=[]),this.logger=new D("@barba/core"),this.store=void 0,this.C=!1,this.store=new Ce(e)}var r=n.prototype;return r.get=function(e,t){return this.store.resolve(e,t)},r.doOnce=function(e){var t=e.data,i=e.transition;try{var o=function(){a.C=!1},a=this,u=i||{};a.C=!0;var s=W(function(){return Promise.resolve(a.L("beforeOnce",t,u)).then(function(){return Promise.resolve(a.once(t,u)).then(function(){return Promise.resolve(a.L("afterOnce",t,u)).then(function(){})})})},function(c){a.C=!1,a.logger.debug("Transition error [before/after/once]"),a.logger.error(c)});return Promise.resolve(s&&s.then?s.then(o):o())}catch(c){return Promise.reject(c)}},r.doPage=function(e){var t=e.data,i=e.transition,o=e.page,a=e.wrapper;try{var u=function(h){s.C=!1},s=this,c=i||{},g=c.sync===!0||!1;s.C=!0;var p=W(function(){function h(){return Promise.resolve(s.L("before",t,c)).then(function(){function f(b){return Promise.resolve(s.remove(t)).then(function(){return Promise.resolve(s.L("after",t,c)).then(function(){})})}var l=function(){if(g)return W(function(){return Promise.resolve(s.add(t,a)).then(function(){return Promise.resolve(s.L("beforeLeave",t,c)).then(function(){return Promise.resolve(s.L("beforeEnter",t,c)).then(function(){return Promise.resolve(Promise.all([s.leave(t,c),s.enter(t,c)])).then(function(){return Promise.resolve(s.L("afterLeave",t,c)).then(function(){return Promise.resolve(s.L("afterEnter",t,c)).then(function(){})})})})})})},function(P){if(s.H(P))throw new Y(P,"Transition error [sync]")});var b=function(P){return W(function(){var A=function(){if(y!==!1)return Promise.resolve(s.add(t,a)).then(function(){return Promise.resolve(s.L("beforeEnter",t,c)).then(function(){return Promise.resolve(s.enter(t,c,y)).then(function(){return Promise.resolve(s.L("afterEnter",t,c)).then(function(){})})})})}();if(A&&A.then)return A.then(function(){})},function(A){if(s.H(A))throw new Y(A,"Transition error [before/after/enter]")})},y=!1,R=W(function(){return Promise.resolve(s.L("beforeLeave",t,c)).then(function(){return Promise.resolve(Promise.all([s.leave(t,c),G(o,t)]).then(function(P){return P[0]})).then(function(P){return y=P,Promise.resolve(s.L("afterLeave",t,c)).then(function(){})})})},function(P){if(s.H(P))throw new Y(P,"Transition error [before/after/leave]")});return R&&R.then?R.then(b):b()}();return l&&l.then?l.then(f):f()})}var w=function(){if(g)return Promise.resolve(G(o,t)).then(function(){})}();return w&&w.then?w.then(h):h()},function(h){throw s.C=!1,h.name&&h.name==="BarbaError"?(s.logger.debug(h.label),s.logger.error(h.error),h):(s.logger.debug("Transition error [page]"),s.logger.error(h),h)});return Promise.resolve(p&&p.then?p.then(u):u())}catch(h){return Promise.reject(h)}},r.once=function(e,t){try{return Promise.resolve(M.do("once",e,t)).then(function(){return t.once?F(t.once,t)(e):Promise.resolve()})}catch(i){return Promise.reject(i)}},r.leave=function(e,t){try{return Promise.resolve(M.do("leave",e,t)).then(function(){return t.leave?F(t.leave,t)(e):Promise.resolve()})}catch(i){return Promise.reject(i)}},r.enter=function(e,t,i){try{return Promise.resolve(M.do("enter",e,t)).then(function(){return t.enter?F(t.enter,t)(e,i):Promise.resolve()})}catch(o){return Promise.reject(o)}},r.add=function(e,t){try{return U.addContainer(e.next.container,t),M.do("nextAdded",e),Promise.resolve()}catch(i){return Promise.reject(i)}},r.remove=function(e){try{return U.removeContainer(e.current.container),M.do("currentRemoved",e),Promise.resolve()}catch(t){return Promise.reject(t)}},r.H=function(e){return e.message?!/Timeout error|Fetch error/.test(e.message):!e.status},r.L=function(e,t,i){try{return Promise.resolve(M.do(e,t,i)).then(function(){return i[e]?F(i[e],i)(t):Promise.resolve()})}catch(o){return Promise.reject(o)}},re(n,[{key:"isRunning",get:function(){return this.C},set:function(e){this.C=e}},{key:"hasOnce",get:function(){return this.store.once.length>0}},{key:"hasSelf",get:function(){return this.store.all.some(function(e){return e.name==="self"})}},{key:"shouldWait",get:function(){return this.store.all.some(function(e){return e.to&&!e.to.route||e.sync})}}]),n}(),qe=function(){function n(r){var e=this;this.names=["beforeLeave","afterLeave","beforeEnter","afterEnter"],this.byNamespace=new Map,r.length!==0&&(r.forEach(function(t){e.byNamespace.set(t.namespace,t)}),this.names.forEach(function(t){M[t](e._(t))}))}return n.prototype._=function(r){var e=this;return function(t){var i=r.match(/enter/i)?t.next:t.current,o=e.byNamespace.get(i.namespace);return o&&o[r]?F(o[r],o)(t):Promise.resolve()}},n}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(n){var r=this;do{if(r.matches(n))return r;r=r.parentElement||r.parentNode}while(r!==null&&r.nodeType===1);return null});var Me={container:null,html:"",namespace:"",url:{hash:"",href:"",path:"",port:null,query:{}}},Ne=new(function(){function n(){this.version="2.10.3",this.schemaPage=Me,this.Logger=D,this.logger=new D("@barba/core"),this.plugins=[],this.timeout=void 0,this.cacheIgnore=void 0,this.cacheFirstPage=void 0,this.prefetchIgnore=void 0,this.preventRunning=void 0,this.hooks=M,this.cache=void 0,this.headers=void 0,this.prevent=void 0,this.transitions=void 0,this.views=void 0,this.dom=U,this.helpers=ve,this.history=oe,this.request=ge,this.url=me,this.D=void 0,this.B=void 0,this.q=void 0,this.F=void 0}var r=n.prototype;return r.use=function(e,t){var i=this.plugins;i.indexOf(e)>-1?this.logger.warn("Plugin ["+e.name+"] already installed."):typeof e.install=="function"?(e.install(this,t),i.push(e)):this.logger.warn("Plugin ["+e.name+'] has no "install" method.')},r.init=function(e){var t=e===void 0?{}:e,i=t.transitions,o=i===void 0?[]:i,a=t.views,u=a===void 0?[]:a,s=t.schema,c=s===void 0?H:s,g=t.requestError,p=t.timeout,h=p===void 0?2e3:p,w=t.cacheIgnore,f=w!==void 0&&w,l=t.cacheFirstPage,b=l!==void 0&&l,y=t.prefetchIgnore,R=y!==void 0&&y,P=t.preventRunning,A=P!==void 0&&P,q=t.prevent,S=q===void 0?null:q,O=t.debug,L=t.logLevel;if(D.setLevel((O!==void 0&&O)===!0?"debug":L===void 0?"off":L),this.logger.info(this.version),Object.keys(c).forEach(function(k){H[k]&&(H[k]=c[k])}),this.B=g,this.timeout=h,this.cacheIgnore=f,this.cacheFirstPage=b,this.prefetchIgnore=R,this.preventRunning=A,this.q=this.dom.getWrapper(),!this.q)throw new Error("[@barba/core] No Barba wrapper found");this.I();var T=this.data.current;if(!T.container)throw new Error("[@barba/core] No Barba container found");if(this.cache=new we(f),this.headers=new be,this.prevent=new Se(R),this.transitions=new He(o),this.views=new qe(u),S!==null){if(typeof S!="function")throw new Error("[@barba/core] Prevent should be a function");this.prevent.add("preventCustom",S)}this.history.init(T.url.href,T.namespace),b&&this.cache.set(T.url.href,Promise.resolve({html:T.html,url:T.url}),"init","fulfilled"),this.U=this.U.bind(this),this.$=this.$.bind(this),this.X=this.X.bind(this),this.G(),this.plugins.forEach(function(k){return k.init()});var v=this.data;v.trigger="barba",v.next=v.current,v.current=C({},this.schemaPage),this.hooks.do("ready",v),this.once(v),this.I()},r.destroy=function(){this.I(),this.J(),this.history.clear(),this.hooks.clear(),this.plugins=[]},r.force=function(e){window.location.assign(e)},r.go=function(e,t,i){var o;if(t===void 0&&(t="barba"),this.F=null,this.transitions.isRunning)this.force(e);else if(!(o=t==="popstate"?this.history.current&&this.url.getPath(this.history.current.url)===this.url.getPath(e)&&this.url.getQuery(this.history.current.url,!0)===this.url.getQuery(e,!0):this.prevent.run("sameUrl",null,null,e))||this.transitions.hasSelf)return t=this.history.change(this.cache.has(e)?this.cache.get(e).target:e,t,i),i&&(i.stopPropagation(),i.preventDefault()),this.page(e,t,i??void 0,o)},r.once=function(e){try{var t=this;return Promise.resolve(t.hooks.do("beforeEnter",e)).then(function(){function i(){return Promise.resolve(t.hooks.do("afterEnter",e)).then(function(){})}var o=function(){if(t.transitions.hasOnce){var a=t.transitions.get(e,{once:!0});return Promise.resolve(t.transitions.doOnce({transition:a,data:e})).then(function(){})}}();return o&&o.then?o.then(i):i()})}catch(i){return Promise.reject(i)}},r.page=function(e,t,i,o){try{var a,u=function(){var p=s.data;return Promise.resolve(s.hooks.do("page",p)).then(function(){var h=function(w,f){try{var l=(b=s.transitions.get(p,{once:!1,self:o}),Promise.resolve(s.transitions.doPage({data:p,page:a,transition:b,wrapper:s.q})).then(function(){s.I()}))}catch{return f()}var b;return l&&l.then?l.then(void 0,f):l}(0,function(){D.getLevel()===0&&s.force(p.next.url.href)});if(h&&h.then)return h.then(function(){})})},s=this;if(s.data.next.url=C({href:e},s.url.parse(e)),s.data.trigger=t,s.data.event=i,s.cache.has(e))a=s.cache.update(e,{action:"click"}).request;else{var c=s.request(e,s.timeout,s.onRequestError.bind(s,t),s.cache,s.headers);c.then(function(p){p.url.href!==e&&s.history.add(p.url.href,t,"replace")}),a=s.cache.set(e,c,"click","pending").request}var g=function(){if(s.transitions.shouldWait)return Promise.resolve(G(a,s.data)).then(function(){})}();return Promise.resolve(g&&g.then?g.then(u):u())}catch(p){return Promise.reject(p)}},r.onRequestError=function(e){this.transitions.isRunning=!1;
vendor: 2,005 bytes, lines 1-2
1var t=[].slice.call(arguments,1),i=t[0],o=t[1],a=this.cache.getAction(i);return this.cache.delete(i),this.B&&this.B(e,a,i,o)===!1||a==="click"&&this.force(i),!1},r.prefetch=function(e){var t=this;e=this.url.getAbsoluteHref(e),this.cache.has(e)||this.cache.set(e,this.request(e,this.timeout,this.onRequestError.bind(this,"barba"),this.cache,this.headers).catch(function(i){t.logger.error(i)}),"prefetch","pending")},r.G=function(){this.prefetchIgnore!==!0&&(document.addEventListener("mouseover",this.U),document.addEventListener("touchstart",this.U)),document.addEventListener("click",this.$),window.addEventListener("popstate",this.X)},r.J=function(){this.prefetchIgnore!==!0&&(document.removeEventListener("mouseover",this.U),document.removeEventListener("touchstart",this.U)),document.removeEventListener("click",this.$),window.removeEventListener("popstate",this.X)},r.U=function(e){var t=this,i=this.W(e);if(i){var o=this.url.getAbsoluteHref(this.dom.getHref(i));this.prevent.checkHref(o)||this.cache.has(o)||this.cache.set(o,this.request(o,this.timeout,this.onRequestError.bind(this,i),this.cache,this.headers).catch(function(a){t.logger.error(a)}),"enter","pending")}},r.$=function(e){var t=this.W(e);if(t){if(this.transitions.isRunning&&this.preventRunning)return e.preventDefault(),void e.stopPropagation();this.F=e,this.go(this.dom.getHref(t),t,e)}},r.X=function(e){this.go(this.url.getHref(),"popstate",e)},r.W=function(e){for(var t=e.target;t&&!this.dom.getHref(t);)t=t.parentNode;if(t&&!this.prevent.checkLink(t,e,this.dom.getHref(t)))return t},r.I=function(){var e=this.url.getHref(),t={container:this.dom.getContainer(),html:this.dom.getHtml(),namespace:this.dom.getNamespace(),url:C({href:e},this.url.parse(e))};this.D={current:t,event:void 0,next:C({},this.schemaPage),trigger:void 0},this.hooks.do("reset",this.data)},re(n,[{key:"data",get:function(){return this.D}},{key:"wrapper",get:function(){return this.q}}]),n}());export{Ne as default}; 2//# sourceMappingURL=barba-4FkTUhIW.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.