System.register(["./p-65f56f45.system.js","./p-670489c3.system.js","./p-789385c8.system.js"],(function(t){"use strict";var s,i,e,a,h,r;return{setters:[function(t){s=t.r;i=t.h;e=t.g},function(t){a=t.m;h=t.q},function(t){r=t.A}],execute:function(){const c=(t,s)=>{if(t.charAt(0)=="/"&&s.charAt(s.length-1)=="/"){return s.slice(0,s.length-1)+t}return s+t};const n=t("stencil_route_link",class{constructor(t){s(this,t);this.unsubscribe=()=>{};this.activeClass="link-active";this.exact=false;this.strict=true;this.custom="a";this.match=null}componentWillLoad(){this.computeMatch()}computeMatch(){if(this.location){this.match=a(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})}}handleClick(t){if(h(t)||!this.history||!this.url||!this.root){return}t.preventDefault();return this.history.push(c(this.url,this.root))}render(){let t={class:{[this.activeClass]:this.match!==null},onClick:this.handleClick.bind(this)};if(this.anchorClass){t.class[this.anchorClass]=true}if(this.custom==="a"){t=Object.assign({},t,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})}return i(this.custom,Object.assign({},t),i("slot",null))}get el(){return e(this)}static get watchers(){return{location:["computeMatch"]}}});r.injectProps(n,["history","location","root"])}}}));