@everymatrix/tournaments-banner 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-C63t4mQr.cjs"),Be=require("./TournamentImage-BEit90hg.cjs"),Ge=(S,g)=>{window.postMessage({...g,type:S},window.location.href)},Ve=(S,g)=>{Ge(`Tournaments:${S}`,g)},We=(S,g)=>{Ve("viewTournamentDetails",{tournamentId:S.id,tournamentName:S.nameOrTitle})},Xe=S=>{const g=new Headers;return S&&g.append("X-SessionId",S),g},qe=async S=>{const g=new URL(`${S.endpoint}/v1/tournaments`);return g.searchParams.append("language",S.language),g.searchParams.append("sortField",S.sortField??"StartTime"),g.searchParams.append("sortOrder",S.sortOrder??"desc"),g.searchParams.append("platform",S.platform),(await(await fetch(g,{method:"GET",headers:Xe(S.session)})).json())?.items??[]},Ze=async S=>{const g=await qe(S),M=new Date;return g.filter(z=>new Date(z.exhibitionEndTime)>M)};var Ne={exports:{}};/** @license
2
+ * eventsource.js
3
+ * Available under MIT License (MIT)
4
+ * https://github.com/Yaffle/EventSource/
5
+ */(function(S,g){(function(M){var z=M.setTimeout,ae=M.clearTimeout,C=M.XMLHttpRequest,A=M.XDomainRequest,V=M.ActiveXObject,I=M.EventSource,R=M.document,L=M.Promise,j=M.fetch,oe=M.Response,Z=M.TextDecoder,T=M.TextEncoder,we=M.AbortController;if(typeof window<"u"&&typeof R<"u"&&!("readyState"in R)&&R.body==null&&(R.readyState="loading",window.addEventListener("load",function(t){R.readyState="complete"},!1)),C==null&&V!=null&&(C=function(){return new V("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(t){function a(){}return a.prototype=t,new a}),Date.now||(Date.now=function(){return new Date().getTime()}),we==null){var f=j;j=function(t,a){var u=a.signal;return f(t,{headers:a.headers,credentials:a.credentials,cache:a.cache}).then(function(i){var y=i.body.getReader();return u._reader=y,u._aborted&&u._reader.cancel(),{status:i.status,statusText:i.statusText,headers:i.headers,body:{getReader:function(){return y}}}})},we=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function D(){this.bitsNeeded=0,this.codePoint=0}D.prototype.decode=function(t){function a(H,U,b){if(b===1)return H>=128>>U&&H<<U<=2047;if(b===2)return H>=2048>>U&&H<<U<=55295||H>=57344>>U&&H<<U<=65535;if(b===3)return H>=65536>>U&&H<<U<=1114111;throw new Error}function u(H,U){if(H===6*1)return U>>6>15?3:U>31?2:1;if(H===6*2)return U>15?3:2;if(H===6*3)return 3;throw new Error}for(var i=65533,y="",v=this.bitsNeeded,E=this.codePoint,X=0;X<t.length;X+=1){var $=t[X];v!==0&&($<128||$>191||!a(E<<6|$&63,v-6,u(v,E)))&&(v=0,E=i,y+=String.fromCharCode(E)),v===0?($>=0&&$<=127?(v=0,E=$):$>=192&&$<=223?(v=6*1,E=$&31):$>=224&&$<=239?(v=6*2,E=$&15):$>=240&&$<=247?(v=6*3,E=$&7):(v=0,E=i),v!==0&&!a(E,v,u(v,E))&&(v=0,E=i)):(v-=6,E=E<<6|$&63),v===0&&(E<=65535?y+=String.fromCharCode(E):(y+=String.fromCharCode(55296+(E-65535-1>>10)),y+=String.fromCharCode(56320+(E-65535-1&1023))))}return this.bitsNeeded=v,this.codePoint=E,y};var F=function(){try{return new Z().decode(new T().encode("test"),{stream:!0})==="test"}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1};(Z==null||T==null||!F())&&(Z=D);var m=function(){};function W(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=m,this.onload=m,this.onerror=m,this.onreadystatechange=m,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=m}W.prototype.open=function(t,a){this._abort(!0);var u=this,i=this._xhr,y=1,v=0;this._abort=function(b){u._sendTimeout!==0&&(ae(u._sendTimeout),u._sendTimeout=0),(y===1||y===2||y===3)&&(y=4,i.onload=m,i.onerror=m,i.onabort=m,i.onprogress=m,i.onreadystatechange=m,i.abort(),v!==0&&(ae(v),v=0),b||(u.readyState=4,u.onabort(null),u.onreadystatechange())),y=0};var E=function(){if(y===1){var b=0,q="",Se=void 0;if("contentType"in i)b=200,q="OK",Se=i.contentType;else try{b=i.status,q=i.statusText,Se=i.getResponseHeader("Content-Type")}catch{b=0,q="",Se=void 0}b!==0&&(y=2,u.readyState=2,u.status=b,u.statusText=q,u._contentType=Se,u.onreadystatechange())}},X=function(){if(E(),y===2||y===3){y=3;var b="";try{b=i.responseText}catch{}u.readyState=3,u.responseText=b,u.onprogress()}},$=function(b,q){if((q==null||q.preventDefault==null)&&(q={preventDefault:m}),X(),y===1||y===2||y===3){if(y=4,v!==0&&(ae(v),v=0),u.readyState=4,b==="load")u.onload(q);else if(b==="error")u.onerror(q);else if(b==="abort")u.onabort(q);else throw new TypeError;u.onreadystatechange()}},H=function(b){i!=null&&(i.readyState===4?(!("onload"in i)||!("onerror"in i)||!("onabort"in i))&&$(i.responseText===""?"error":"load",b):i.readyState===3?"onprogress"in i||X():i.readyState===2&&E())},U=function(){v=z(function(){U()},500),i.readyState===3&&X()};"onload"in i&&(i.onload=function(b){$("load",b)}),"onerror"in i&&(i.onerror=function(b){$("error",b)}),"onabort"in i&&(i.onabort=function(b){$("abort",b)}),"onprogress"in i&&(i.onprogress=X),"onreadystatechange"in i&&(i.onreadystatechange=function(b){H(b)}),("contentType"in i||!("ontimeout"in C.prototype))&&(a+=(a.indexOf("?")===-1?"?":"&")+"padding=true"),i.open(t,a,!0),"readyState"in i&&(v=z(function(){U()},0))},W.prototype.abort=function(){this._abort(!1)},W.prototype.getResponseHeader=function(t){return this._contentType},W.prototype.setRequestHeader=function(t,a){var u=this._xhr;"setRequestHeader"in u&&u.setRequestHeader(t,a)},W.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},W.prototype.send=function(){if((!("ontimeout"in C.prototype)||!("sendAsBinary"in C.prototype)&&!("mozAnon"in C.prototype))&&R!=null&&R.readyState!=null&&R.readyState!=="complete"){var t=this;t._sendTimeout=z(function(){t._sendTimeout=0,t.send()},4);return}var a=this._xhr;"withCredentials"in a&&(a.withCredentials=this.withCredentials);try{a.send(void 0)}catch(u){throw u}};function Q(t){return t.replace(/[A-Z]/g,function(a){return String.fromCharCode(a.charCodeAt(0)+32)})}function K(t){for(var a=Object.create(null),u=t.split(`\r
6
+ `),i=0;i<u.length;i+=1){var y=u[i],v=y.split(": "),E=v.shift(),X=v.join(": ");a[Q(E)]=X}this._map=a}K.prototype.get=function(t){return this._map[Q(t)]},C!=null&&C.HEADERS_RECEIVED==null&&(C.HEADERS_RECEIVED=2);function de(){}de.prototype.open=function(t,a,u,i,y,v,E){t.open("GET",y);var X=0;t.onprogress=function(){var H=t.responseText,U=H.slice(X);X+=U.length,u(U)},t.onerror=function(H){H.preventDefault(),i(new Error("NetworkError"))},t.onload=function(){i(null)},t.onabort=function(){i(null)},t.onreadystatechange=function(){if(t.readyState===C.HEADERS_RECEIVED){var H=t.status,U=t.statusText,b=t.getResponseHeader("Content-Type"),q=t.getAllResponseHeaders();a(H,U,b,new K(q))}},t.withCredentials=v;for(var $ in E)Object.prototype.hasOwnProperty.call(E,$)&&t.setRequestHeader($,E[$]);return t.send(),t};function ee(t){this._headers=t}ee.prototype.get=function(t){return this._headers.get(t)};function te(){}te.prototype.open=function(t,a,u,i,y,v,E){var X=null,$=new we,H=$.signal,U=new Z;return j(y,{headers:E,credentials:v?"include":"same-origin",signal:H,cache:"no-store"}).then(function(b){return X=b.body.getReader(),a(b.status,b.statusText,b.headers.get("Content-Type"),new ee(b.headers)),new L(function(q,Se){var $e=function(){X.read().then(function(me){if(me.done)q(void 0);else{var fe=U.decode(me.value,{stream:!0});u(fe),$e()}}).catch(function(me){Se(me)})};$e()})}).catch(function(b){if(b.name!=="AbortError")return b}).then(function(b){i(b)}),{abort:function(){X?.cancel(),$.abort()}}};function x(){this._listeners=Object.create(null)}function w(t){z(function(){throw t},0)}x.prototype.dispatchEvent=function(t){t.target=this;var a=this._listeners[t.type];if(a!=null)for(var u=a.length,i=0;i<u;i+=1){var y=a[i];try{typeof y.handleEvent=="function"?y.handleEvent(t):y.call(this,t)}catch(v){w(v)}}},x.prototype.addEventListener=function(t,a){t=String(t);var u=this._listeners,i=u[t];i==null&&(i=[],u[t]=i);for(var y=!1,v=0;v<i.length;v+=1)i[v]===a&&(y=!0);y||i.push(a)},x.prototype.removeEventListener=function(t,a){t=String(t);var u=this._listeners,i=u[t];if(i!=null){for(var y=[],v=0;v<i.length;v+=1)i[v]!==a&&y.push(i[v]);y.length===0?delete u[t]:u[t]=y}};function B(t){this.type=t,this.target=void 0}function ne(t,a){B.call(this,t),this.data=a.data,this.lastEventId=a.lastEventId}ne.prototype=Object.create(B.prototype);function l(t,a){B.call(this,t),this.status=a.status,this.statusText=a.statusText,this.headers=a.headers}l.prototype=Object.create(B.prototype);function o(t,a){B.call(this,t),this.error=a.error}o.prototype=Object.create(B.prototype);var n=-1,s=0,r=1,d=2,h=-1,p=0,Y=1,N=2,J=3,ie=/^text\/event\-stream(;.*)?$/i,c=1e3,_=18e6,P=function(t,a){var u=t==null?a:parseInt(t,10);return u!==u&&(u=a),se(u)},se=function(t){return Math.min(Math.max(t,c),_)},k=function(t,a,u){try{typeof a=="function"&&a.call(t,u)}catch(i){w(i)}};function O(t,a){x.call(this),a=a||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,ve(this,t,a)}function G(){return C!=null&&"withCredentials"in C.prototype||A==null?new C:new A}var ce=j!=null&&oe!=null&&"body"in oe.prototype;function ve(t,a,u){a=String(a);var i=!!u.withCredentials,y=u.lastEventIdQueryParameterName||"lastEventId",v=se(1e3),E=P(u.heartbeatTimeout,45e3),X="",$=v,H=!1,U=0,b=u.headers||{},q=u.Transport,Se=ce&&q==null?void 0:new W(q!=null?new q:G()),$e=q!=null&&typeof q!="string"?new q:Se==null?new te:new de,me=void 0,fe=0,_e=n,xe="",Ce="",Te="",Ae="",he=p,Ye=0,Me=0,Pe=function(ue,re,ye,be){if(_e===s)if(ue===200&&ye!=null&&ie.test(ye)){_e=r,H=Date.now(),$=v,t.readyState=r;var pe=new l("open",{status:ue,statusText:re,headers:be});t.dispatchEvent(pe),k(t,t.onopen,pe)}else{var le="";ue!==200?(re&&(re=re.replace(/\s+/g," ")),le="EventSource's response has a status "+ue+" "+re+" that is not 200. Aborting the connection."):le="EventSource's response has a Content-Type specifying an unsupported type: "+(ye==null?"-":ye.replace(/\s+/g," "))+". Aborting the connection.",Re();var pe=new l("error",{status:ue,statusText:re,headers:be});t.dispatchEvent(pe),k(t,t.onerror,pe),console.error(le)}},Ue=function(ue){if(_e===r){for(var re=-1,ye=0;ye<ue.length;ye+=1){var be=ue.charCodeAt(ye);(be===10||be===13)&&(re=ye)}var pe=(re!==-1?Ae:"")+ue.slice(0,re+1);Ae=(re===-1?Ae:"")+ue.slice(re+1),ue!==""&&(H=Date.now(),U+=ue.length);for(var le=0;le<pe.length;le+=1){var be=pe.charCodeAt(le);if(he===h&&be===10)he=p;else if(he===h&&(he=p),be===13||be===10){if(he!==p){he===Y&&(Me=le+1);var De=pe.slice(Ye,Me-1),Ee=pe.slice(Me+(Me<le&&pe.charCodeAt(Me)===32?1:0),le);De==="data"?(xe+=`
7
+ `,xe+=Ee):De==="id"?Ce=Ee:De==="event"?Te=Ee:De==="retry"?(v=P(Ee,v),$=v):De==="heartbeatTimeout"&&(E=P(Ee,E),fe!==0&&(ae(fe),fe=z(function(){Le()},E)))}if(he===p){if(xe!==""){X=Ce,Te===""&&(Te="message");var Oe=new ne(Te,{data:xe.slice(1),lastEventId:Ce});if(t.dispatchEvent(Oe),Te==="open"?k(t,t.onopen,Oe):Te==="message"?k(t,t.onmessage,Oe):Te==="error"&&k(t,t.onerror,Oe),_e===d)return}xe="",Te=""}he=be===13?h:p}else he===p&&(Ye=le,he=Y),he===Y?be===58&&(Me=le+1,he=N):he===N&&(he=J)}}},Ie=function(ue){if(_e===r||_e===s){_e=n,fe!==0&&(ae(fe),fe=0),fe=z(function(){Le()},$),$=se(Math.min(v*16,$*2)),t.readyState=s;var re=new o("error",{error:ue});t.dispatchEvent(re),k(t,t.onerror,re),ue!=null&&console.error(ue)}},Re=function(){_e=d,me!=null&&(me.abort(),me=void 0),fe!==0&&(ae(fe),fe=0),t.readyState=d},Le=function(){if(fe=0,_e!==n){if(!H&&me!=null)Ie(new Error("No activity within "+E+" milliseconds. "+(_e===s?"No response received.":U+" chars received.")+" Reconnecting.")),me!=null&&(me.abort(),me=void 0);else{var ue=Math.max((H||Date.now())+E-Date.now(),1);H=!1,fe=z(function(){Le()},ue)}return}H=!1,U=0,fe=z(function(){Le()},E),_e=s,xe="",Te="",Ce=X,Ae="",Ye=0,Me=0,he=p;var re=a;if(a.slice(0,5)!=="data:"&&a.slice(0,5)!=="blob:"&&X!==""){var ye=a.indexOf("?");re=ye===-1?a:a.slice(0,ye+1)+a.slice(ye+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Ee,Oe){return Oe===y?"":Ee}),re+=(a.indexOf("?")===-1?"?":"&")+y+"="+encodeURIComponent(X)}var be=t.withCredentials,pe={};pe.Accept="text/event-stream";var le=t.headers;if(le!=null)for(var De in le)Object.prototype.hasOwnProperty.call(le,De)&&(pe[De]=le[De]);try{me=$e.open(Se,Pe,Ue,Ie,re,be,pe)}catch(Ee){throw Re(),Ee}};t.url=a,t.readyState=s,t.withCredentials=i,t.headers=b,t._close=Re,Le()}O.prototype=Object.create(x.prototype),O.prototype.CONNECTING=s,O.prototype.OPEN=r,O.prototype.CLOSED=d,O.prototype.close=function(){this._close()},O.CONNECTING=s,O.OPEN=r,O.CLOSED=d,O.prototype.withCredentials=void 0;var ge=I;C!=null&&(I==null||!("withCredentials"in I.prototype))&&(ge=O),function(t){{var a=t(g);a!==void 0&&(S.exports=a)}}(function(t){t.EventSourcePolyfill=O,t.NativeEventSource=I,t.EventSource=ge})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:e.commonjsGlobal:globalThis)})(Ne,Ne.exports);var ke={exports:{}};(function(S,g){(function(M,z){S.exports=z()})(e.commonjsGlobal,function(){var M=1e3,z=6e4,ae=36e5,C="millisecond",A="second",V="minute",I="hour",R="day",L="week",j="month",oe="quarter",Z="year",T="date",we="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var o=["th","st","nd","rd"],n=l%100;return"["+l+(o[(n-20)%10]||o[n]||o[0])+"]"}},m=function(l,o,n){var s=String(l);return!s||s.length>=o?l:""+Array(o+1-s.length).join(n)+l},W={s:m,z:function(l){var o=-l.utcOffset(),n=Math.abs(o),s=Math.floor(n/60),r=n%60;return(o<=0?"+":"-")+m(s,2,"0")+":"+m(r,2,"0")},m:function l(o,n){if(o.date()<n.date())return-l(n,o);var s=12*(n.year()-o.year())+(n.month()-o.month()),r=o.clone().add(s,j),d=n-r<0,h=o.clone().add(s+(d?-1:1),j);return+(-(s+(n-r)/(d?r-h:h-r))||0)},a:function(l){return l<0?Math.ceil(l)||0:Math.floor(l)},p:function(l){return{M:j,y:Z,w:L,d:R,D:T,h:I,m:V,s:A,ms:C,Q:oe}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(l){return l===void 0}},Q="en",K={};K[Q]=F;var de="$isDayjsObject",ee=function(l){return l instanceof B||!(!l||!l[de])},te=function l(o,n,s){var r;if(!o)return Q;if(typeof o=="string"){var d=o.toLowerCase();K[d]&&(r=d),n&&(K[d]=n,r=d);var h=o.split("-");if(!r&&h.length>1)return l(h[0])}else{var p=o.name;K[p]=o,r=p}return!s&&r&&(Q=r),r||!s&&Q},x=function(l,o){if(ee(l))return l.clone();var n=typeof o=="object"?o:{};return n.date=l,n.args=arguments,new B(n)},w=W;w.l=te,w.i=ee,w.w=function(l,o){return x(l,{locale:o.$L,utc:o.$u,x:o.$x,$offset:o.$offset})};var B=function(){function l(n){this.$L=te(n.locale,null,!0),this.parse(n),this.$x=this.$x||n.x||{},this[de]=!0}var o=l.prototype;return o.parse=function(n){this.$d=function(s){var r=s.date,d=s.utc;if(r===null)return new Date(NaN);if(w.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var h=r.match(f);if(h){var p=h[2]-1||0,Y=(h[7]||"0").substring(0,3);return d?new Date(Date.UTC(h[1],p,h[3]||1,h[4]||0,h[5]||0,h[6]||0,Y)):new Date(h[1],p,h[3]||1,h[4]||0,h[5]||0,h[6]||0,Y)}}return new Date(r)}(n),this.init()},o.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},o.$utils=function(){return w},o.isValid=function(){return this.$d.toString()!==we},o.isSame=function(n,s){var r=x(n);return this.startOf(s)<=r&&r<=this.endOf(s)},o.isAfter=function(n,s){return x(n)<this.startOf(s)},o.isBefore=function(n,s){return this.endOf(s)<x(n)},o.$g=function(n,s,r){return w.u(n)?this[s]:this.set(r,n)},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this.$d.getTime()},o.startOf=function(n,s){var r=this,d=!!w.u(s)||s,h=w.p(n),p=function(se,k){var O=w.w(r.$u?Date.UTC(r.$y,k,se):new Date(r.$y,k,se),r);return d?O:O.endOf(R)},Y=function(se,k){return w.w(r.toDate()[se].apply(r.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(k)),r)},N=this.$W,J=this.$M,ie=this.$D,c="set"+(this.$u?"UTC":"");switch(h){case Z:return d?p(1,0):p(31,11);case j:return d?p(1,J):p(0,J+1);case L:var _=this.$locale().weekStart||0,P=(N<_?N+7:N)-_;return p(d?ie-P:ie+(6-P),J);case R:case T:return Y(c+"Hours",0);case I:return Y(c+"Minutes",1);case V:return Y(c+"Seconds",2);case A:return Y(c+"Milliseconds",3);default:return this.clone()}},o.endOf=function(n){return this.startOf(n,!1)},o.$set=function(n,s){var r,d=w.p(n),h="set"+(this.$u?"UTC":""),p=(r={},r[R]=h+"Date",r[T]=h+"Date",r[j]=h+"Month",r[Z]=h+"FullYear",r[I]=h+"Hours",r[V]=h+"Minutes",r[A]=h+"Seconds",r[C]=h+"Milliseconds",r)[d],Y=d===R?this.$D+(s-this.$W):s;if(d===j||d===Z){var N=this.clone().set(T,1);N.$d[p](Y),N.init(),this.$d=N.set(T,Math.min(this.$D,N.daysInMonth())).$d}else p&&this.$d[p](Y);return this.init(),this},o.set=function(n,s){return this.clone().$set(n,s)},o.get=function(n){return this[w.p(n)]()},o.add=function(n,s){var r,d=this;n=Number(n);var h=w.p(s),p=function(J){var ie=x(d);return w.w(ie.date(ie.date()+Math.round(J*n)),d)};if(h===j)return this.set(j,this.$M+n);if(h===Z)return this.set(Z,this.$y+n);if(h===R)return p(1);if(h===L)return p(7);var Y=(r={},r[V]=z,r[I]=ae,r[A]=M,r)[h]||1,N=this.$d.getTime()+n*Y;return w.w(N,this)},o.subtract=function(n,s){return this.add(-1*n,s)},o.format=function(n){var s=this,r=this.$locale();if(!this.isValid())return r.invalidDate||we;var d=n||"YYYY-MM-DDTHH:mm:ssZ",h=w.z(this),p=this.$H,Y=this.$m,N=this.$M,J=r.weekdays,ie=r.months,c=r.meridiem,_=function(k,O,G,ce){return k&&(k[O]||k(s,d))||G[O].slice(0,ce)},P=function(k){return w.s(p%12||12,k,"0")},se=c||function(k,O,G){var ce=k<12?"AM":"PM";return G?ce.toLowerCase():ce};return d.replace(D,function(k,O){return O||function(G){switch(G){case"YY":return String(s.$y).slice(-2);case"YYYY":return w.s(s.$y,4,"0");case"M":return N+1;case"MM":return w.s(N+1,2,"0");case"MMM":return _(r.monthsShort,N,ie,3);case"MMMM":return _(ie,N);case"D":return s.$D;case"DD":return w.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return _(r.weekdaysMin,s.$W,J,2);case"ddd":return _(r.weekdaysShort,s.$W,J,3);case"dddd":return J[s.$W];case"H":return String(p);case"HH":return w.s(p,2,"0");case"h":return P(1);case"hh":return P(2);case"a":return se(p,Y,!0);case"A":return se(p,Y,!1);case"m":return String(Y);case"mm":return w.s(Y,2,"0");case"s":return String(s.$s);case"ss":return w.s(s.$s,2,"0");case"SSS":return w.s(s.$ms,3,"0");case"Z":return h}return null}(k)||h.replace(":","")})},o.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},o.diff=function(n,s,r){var d,h=this,p=w.p(s),Y=x(n),N=(Y.utcOffset()-this.utcOffset())*z,J=this-Y,ie=function(){return w.m(h,Y)};switch(p){case Z:d=ie()/12;break;case j:d=ie();break;case oe:d=ie()/3;break;case L:d=(J-N)/6048e5;break;case R:d=(J-N)/864e5;break;case I:d=J/ae;break;case V:d=J/z;break;case A:d=J/M;break;default:d=J}return r?d:w.a(d)},o.daysInMonth=function(){return this.endOf(j).$D},o.$locale=function(){return K[this.$L]},o.locale=function(n,s){if(!n)return this.$L;var r=this.clone(),d=te(n,s,!0);return d&&(r.$L=d),r},o.clone=function(){return w.w(this.$d,this)},o.toDate=function(){return new Date(this.valueOf())},o.toJSON=function(){return this.isValid()?this.toISOString():null},o.toISOString=function(){return this.$d.toISOString()},o.toString=function(){return this.$d.toUTCString()},l}(),ne=B.prototype;return x.prototype=ne,[["$ms",C],["$s",A],["$m",V],["$H",I],["$W",R],["$M",j],["$y",Z],["$D",T]].forEach(function(l){ne[l[1]]=function(o){return this.$g(o,l[0],l[1])}}),x.extend=function(l,o){return l.$i||(l(o,B,x),l.$i=!0),x},x.locale=te,x.isDayjs=ee,x.unix=function(l){return x(1e3*l)},x.en=K[Q],x.Ls=K,x.p={},x})})(ke);var Qe=ke.exports;const Je=e.getDefaultExportFromCjs(Qe);var ze={exports:{}};(function(S,g){(function(M,z){S.exports=z()})(e.commonjsGlobal,function(){var M={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},z=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,ae=/\d/,C=/\d\d/,A=/\d\d?/,V=/\d*[^-_:/,()\s\d]+/,I={},R=function(f){return(f=+f)+(f>68?1900:2e3)},L=function(f){return function(D){this[f]=+D}},j=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(D){if(!D||D==="Z")return 0;var F=D.match(/([+-]|\d\d)/g),m=60*F[1]+(+F[2]||0);return m===0?0:F[0]==="+"?-m:m}(f)}],oe=function(f){var D=I[f];return D&&(D.indexOf?D:D.s.concat(D.f))},Z=function(f,D){var F,m=I.meridiem;if(m){for(var W=1;W<=24;W+=1)if(f.indexOf(m(W,0,D))>-1){F=W>12;break}}else F=f===(D?"pm":"PM");return F},T={A:[V,function(f){this.afternoon=Z(f,!1)}],a:[V,function(f){this.afternoon=Z(f,!0)}],Q:[ae,function(f){this.month=3*(f-1)+1}],S:[ae,function(f){this.milliseconds=100*+f}],SS:[C,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[A,L("seconds")],ss:[A,L("seconds")],m:[A,L("minutes")],mm:[A,L("minutes")],H:[A,L("hours")],h:[A,L("hours")],HH:[A,L("hours")],hh:[A,L("hours")],D:[A,L("day")],DD:[C,L("day")],Do:[V,function(f){var D=I.ordinal,F=f.match(/\d+/);if(this.day=F[0],D)for(var m=1;m<=31;m+=1)D(m).replace(/\[|\]/g,"")===f&&(this.day=m)}],w:[A,L("week")],ww:[C,L("week")],M:[A,L("month")],MM:[C,L("month")],MMM:[V,function(f){var D=oe("months"),F=(oe("monthsShort")||D.map(function(m){return m.slice(0,3)})).indexOf(f)+1;if(F<1)throw new Error;this.month=F%12||F}],MMMM:[V,function(f){var D=oe("months").indexOf(f)+1;if(D<1)throw new Error;this.month=D%12||D}],Y:[/[+-]?\d+/,L("year")],YY:[C,function(f){this.year=R(f)}],YYYY:[/\d{4}/,L("year")],Z:j,ZZ:j};function we(f){var D,F;D=f,F=I&&I.formats;for(var m=(f=D.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,w,B){var ne=B&&B.toUpperCase();return w||F[B]||M[B]||F[ne].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(l,o,n){return o||n.slice(1)})})).match(z),W=m.length,Q=0;Q<W;Q+=1){var K=m[Q],de=T[K],ee=de&&de[0],te=de&&de[1];m[Q]=te?{regex:ee,parser:te}:K.replace(/^\[|\]$/g,"")}return function(x){for(var w={},B=0,ne=0;B<W;B+=1){var l=m[B];if(typeof l=="string")ne+=l.length;else{var o=l.regex,n=l.parser,s=x.slice(ne),r=o.exec(s)[0];n.call(w,r),x=x.replace(r,"")}}return function(d){var h=d.afternoon;if(h!==void 0){var p=d.hours;h?p<12&&(d.hours+=12):p===12&&(d.hours=0),delete d.afternoon}}(w),w}}return function(f,D,F){F.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(R=f.parseTwoDigitYear);var m=D.prototype,W=m.parse;m.parse=function(Q){var K=Q.date,de=Q.utc,ee=Q.args;this.$u=de;var te=ee[1];if(typeof te=="string"){var x=ee[2]===!0,w=ee[3]===!0,B=x||w,ne=ee[2];w&&(ne=ee[2]),I=this.$locale(),!x&&ne&&(I=F.Ls[ne]),this.$d=function(s,r,d,h){try{if(["x","X"].indexOf(r)>-1)return new Date((r==="X"?1e3:1)*s);var p=we(r)(s),Y=p.year,N=p.month,J=p.day,ie=p.hours,c=p.minutes,_=p.seconds,P=p.milliseconds,se=p.zone,k=p.week,O=new Date,G=J||(Y||N?1:O.getDate()),ce=Y||O.getFullYear(),ve=0;Y&&!N||(ve=N>0?N-1:O.getMonth());var ge,t=ie||0,a=c||0,u=_||0,i=P||0;return se?new Date(Date.UTC(ce,ve,G,t,a,u,i+60*se.offset*1e3)):d?new Date(Date.UTC(ce,ve,G,t,a,u,i)):(ge=new Date(ce,ve,G,t,a,u,i),k&&(ge=h(ge).week(k).toDate()),ge)}catch{return new Date("")}}(K,te,de,F),this.init(),ne&&ne!==!0&&(this.$L=this.locale(ne).$L),B&&K!=this.format(te)&&(this.$d=new Date("")),I={}}else if(te instanceof Array)for(var l=te.length,o=1;o<=l;o+=1){ee[1]=te[o-1];var n=F.apply(this,ee);if(n.isValid()){this.$d=n.$d,this.$L=n.$L,this.init();break}o===l&&(this.$d=new Date(""))}else W.call(this,Q)}}})})(ze);var Ke=ze.exports;const et=e.getDefaultExportFromCjs(Ke);Je.extend(et);const Fe=(S,g=!1)=>{if(typeof S=="boolean")return S;if(S==null)return g;if(typeof S=="number")return S!==0;const M=String(S).trim().toLowerCase();return M===""?!0:M!=="false"&&M!=="0"},tt={en:{bannerSlideLabel:"Tournament {index} of {total}",bannerGoToSlide:"Go to tournament {index}"},tr:{bannerSlideLabel:"Turnuva {index} / {total}",bannerGoToSlide:"{index}. turnuvaya git"},da:{bannerSlideLabel:"Turnering {index} af {total}",bannerGoToSlide:"Gå til turnering {index}"}},nt=5e3,rt=1e3,at=!0,ot=!0,it=!0,st=!0;var ut=e.from_html('<div class="tournaments-banner svelte-h8hbcz"><div class="tournaments-banner__skeleton svelte-h8hbcz" aria-busy="true"></div></div>'),ct=e.from_html('<a class="tournaments-banner__slide svelte-h8hbcz"><!></a>'),lt=e.from_html('<button type="button"></button>'),dt=e.from_html('<div class="tournaments-banner__dots svelte-h8hbcz"></div>'),ft=e.from_html('<div class="tournaments-banner svelte-h8hbcz" role="region" aria-roledescription="carousel"><div class="tournaments-banner__track svelte-h8hbcz"></div> <!></div>');const ht={hash:"svelte-h8hbcz",code:`.tournaments-banner.svelte-h8hbcz {display:flex;flex-direction:column;gap:8px;.tournaments-banner__track:where(.svelte-h8hbcz) {display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar {display:none;}}.tournaments-banner__slide:where(.svelte-h8hbcz) {display:block;flex:0 0 100%;color:inherit;text-decoration:none;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;cursor:pointer;&:focus-visible {outline:2px solid var(--border-alert, rgba(255, 204, 0, 1));outline-offset:-2px;border-radius:13px;}}.tournaments-banner__skeleton:where(.svelte-h8hbcz) {height:308px;border-radius:13px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
8
+ animation: svelte-h8hbcz-tournaments-banner-pulse 1.5s ease-in-out infinite;}.tournaments-banner__dots:where(.svelte-h8hbcz) {display:flex;justify-content:center;gap:8px;}.tournaments-banner__dot:where(.svelte-h8hbcz) {width:8px;height:8px;padding:0;border:0;border-radius:50%;background:var(--text-subtle, rgba(223, 227, 232, 1));opacity:0.8;cursor:pointer;&.active {background:var(--text-brand, rgba(255, 204, 0, 1));opacity:1;}&:focus-visible {outline:2px solid var(--border-alert, rgba(255, 204, 0, 1));outline-offset:2px;}}}
9
+
10
+ @keyframes svelte-h8hbcz-tournaments-banner-pulse {
11
+ 50% {
12
+ opacity: 0.4;
13
+ }
14
+ }
15
+
16
+ @media (max-width: 767px) {.tournaments-banner.svelte-h8hbcz .tournaments-banner__skeleton:where(.svelte-h8hbcz) {height:160px;}
17
+ }
18
+
19
+ @media (prefers-reduced-motion: reduce) {.tournaments-banner.svelte-h8hbcz .tournaments-banner__track:where(.svelte-h8hbcz) {scroll-behavior:auto;}.tournaments-banner.svelte-h8hbcz .tournaments-banner__skeleton:where(.svelte-h8hbcz) {
20
+ animation: none;}
21
+ }`};function He(S,g){e.push(g,!0),e.append_styles(S,ht);const M=()=>e.store_get(e.$format,"$_",z),[z,ae]=e.setup_stores(),C=e.prop(g,"endpoint"),A=e.prop(g,"language",7,"en"),V=e.prop(g,"session"),I=e.prop(g,"platform"),R=e.prop(g,"translationurl"),L=e.prop(g,"navigationhref",7,""),j=e.prop(g,"enableautoplay",7,void 0),oe=e.prop(g,"autoplayinterval",7,void 0),Z=e.prop(g,"pauseoninteraction",7,void 0),T=e.prop(g,"loop",7,void 0),we=e.prop(g,"showdots",7,void 0);e.setupI18n({withLocale:"en",translations:{}}),e.registerTranslations(tt),e.setLocale(A()),e.user_pre_effect(()=>{R()&&e.loadTranslations(R())}),e.user_effect(()=>{e.setLocale(A())});let f=e.state(e.proxy([])),D=e.state(!0),F=e.state(0),m=e.state(null),W=e.state(!1),Q=e.state(!1),K=e.state(!1),de=e.state(!1),ee=e.state(!1);const te=e.user_derived(()=>Fe(j(),at)),x=e.user_derived(()=>Fe(Z(),ot)),w=e.user_derived(()=>Fe(T(),it)),B=e.user_derived(()=>Fe(we(),st)),ne=e.user_derived(()=>Number(oe())>0?Math.max(Number(oe()),rt):nt),l=c=>`${L().replace(/\/$/,"")}/${c.id}`;e.user_effect(()=>{const c={endpoint:C(),language:A(),session:V(),platform:I()};if(!c.endpoint)return;let _=!1;return e.set(D,!0),Ze(c).then(P=>{_||(e.set(f,P,!0),e.set(F,0))}).catch(P=>{console.log(P),_||e.set(f,[],!0)}).finally(()=>{_||e.set(D,!1)}),()=>{_=!0}}),e.user_effect(()=>{const c=window.matchMedia("(prefers-reduced-motion: reduce)"),_=()=>{e.set(ee,c.matches,!0)},P=()=>{e.set(de,document.visibilityState==="hidden")};return _(),P(),c.addEventListener("change",_),document.addEventListener("visibilitychange",P),()=>{c.removeEventListener("change",_),document.removeEventListener("visibilitychange",P)}}),e.user_effect(()=>{const c=e.get(F),_=e.get(f).length,P=e.get(x)&&(e.get(W)||e.get(Q)||e.get(K)),se=c>=_-1;if(!e.get(te)||_<2||P||e.get(de)||e.get(ee)||se&&!e.get(w))return;const k=setTimeout(()=>s((c+1)%_),e.get(ne));return()=>clearTimeout(k)});const o=c=>c.clientWidth+(parseFloat(getComputedStyle(c).columnGap)||0),n=()=>{!e.get(m)||!e.get(m).clientWidth||e.set(F,Math.round(e.get(m).scrollLeft/o(e.get(m))),!0)},s=c=>{e.get(m)?.scrollTo({left:c*o(e.get(m)),behavior:"smooth"})},r=c=>{e.set(Q,c.target.matches(":focus-visible"),!0)},d=(c,_)=>{L()||(c.preventDefault(),We(_))};var h={get endpoint(){return C()},set endpoint(c){C(c),e.flushSync()},get language(){return A()},set language(c="en"){A(c),e.flushSync()},get session(){return V()},set session(c){V(c),e.flushSync()},get platform(){return I()},set platform(c){I(c),e.flushSync()},get translationurl(){return R()},set translationurl(c){R(c),e.flushSync()},get navigationhref(){return L()},set navigationhref(c=""){L(c),e.flushSync()},get enableautoplay(){return j()},set enableautoplay(c=void 0){j(c),e.flushSync()},get autoplayinterval(){return oe()},set autoplayinterval(c=void 0){oe(c),e.flushSync()},get pauseoninteraction(){return Z()},set pauseoninteraction(c=void 0){Z(c),e.flushSync()},get loop(){return T()},set loop(c=void 0){T(c),e.flushSync()},get showdots(){return we()},set showdots(c=void 0){we(c),e.flushSync()}},p=e.comment(),Y=e.first_child(p);{var N=c=>{var _=ut();e.append(c,_)},J=c=>{var _=ft(),P=e.child(_);e.each(P,23,()=>e.get(f),O=>O.id,(O,G,ce)=>{var ve=ct(),ge=e.child(ve);{let t=e.user_derived(()=>e.get(ce)===0);Be.TournamentImage(ge,{variant:"banner",get priority(){return e.get(t)},get src(){return e.get(G).thumbnail},get alt(){return e.get(G).nameOrTitle},get state(){return e.get(G).state},get startTime(){return e.get(G).startTime},get endTime(){return e.get(G).endTime},get language(){return A()}})}e.reset(ve),e.template_effect((t,a)=>{e.set_attribute(ve,"href",t),e.set_attribute(ve,"aria-label",a)},[()=>L()?l(e.get(G)):"#",()=>`${e.get(G).nameOrTitle} – ${M()("bannerSlideLabel",{values:{index:e.get(ce)+1,total:e.get(f).length}})}`]),e.delegated("click",ve,t=>d(t,e.get(G))),e.append(O,ve)}),e.reset(P),e.bind_this(P,O=>e.set(m,O),()=>e.get(m));var se=e.sibling(P,2);{var k=O=>{var G=dt();e.each(G,23,()=>e.get(f),ce=>ce.id,(ce,ve,ge)=>{var t=lt();let a;e.template_effect(u=>{a=e.set_class(t,1,"tournaments-banner__dot svelte-h8hbcz",null,a,{active:e.get(ge)===e.get(F)}),e.set_attribute(t,"aria-label",u),e.set_attribute(t,"aria-current",e.get(ge)===e.get(F)?"true":void 0)},[()=>M()("bannerGoToSlide",{values:{index:e.get(ge)+1}})]),e.delegated("click",t,()=>s(e.get(ge))),e.append(ce,t)}),e.reset(G),e.append(O,G)};e.if_block(se,O=>{e.get(B)&&e.get(f).length>1&&O(k)})}e.reset(_),e.event("mouseenter",_,()=>e.set(W,!0)),e.event("mouseleave",_,()=>e.set(W,!1)),e.delegated("focusin",_,r),e.delegated("focusout",_,()=>e.set(Q,!1)),e.delegated("touchstart",_,()=>e.set(K,!0)),e.delegated("touchend",_,()=>e.set(K,!1)),e.event("touchcancel",_,()=>e.set(K,!1)),e.event("scroll",P,n),e.append(c,_)};e.if_block(Y,c=>{e.get(D)?c(N):e.get(f).length&&c(J,1)})}e.append(S,p);var ie=e.pop(h);return ae(),ie}e.delegate(["focusin","focusout","touchstart","touchend","click"]);e.create_custom_element(He,{endpoint:{},language:{},session:{},platform:{},translationurl:{},navigationhref:{},enableautoplay:{},autoplayinterval:{},pauseoninteraction:{},loop:{},showdots:{}},[],[],{mode:"open"});function je(S,g){e.push(g,!0);let M=e.prop(g,"endpoint"),z=e.prop(g,"language",7,"en"),ae=e.prop(g,"session"),C=e.prop(g,"platform"),A=e.prop(g,"translationurl"),V=e.prop(g,"navigationhref"),I=e.prop(g,"enableautoplay"),R=e.prop(g,"autoplayinterval"),L=e.prop(g,"pauseoninteraction"),j=e.prop(g,"loop"),oe=e.prop(g,"showdots");var Z={get endpoint(){return M()},set endpoint(T){M(T),e.flushSync()},get language(){return z()},set language(T="en"){z(T),e.flushSync()},get session(){return ae()},set session(T){ae(T),e.flushSync()},get platform(){return C()},set platform(T){C(T),e.flushSync()},get translationurl(){return A()},set translationurl(T){A(T),e.flushSync()},get navigationhref(){return V()},set navigationhref(T){V(T),e.flushSync()},get enableautoplay(){return I()},set enableautoplay(T){I(T),e.flushSync()},get autoplayinterval(){return R()},set autoplayinterval(T){R(T),e.flushSync()},get pauseoninteraction(){return L()},set pauseoninteraction(T){L(T),e.flushSync()},get loop(){return j()},set loop(T){j(T),e.flushSync()},get showdots(){return oe()},set showdots(T){oe(T),e.flushSync()}};return He(S,{get endpoint(){return M()},get language(){return z()},get session(){return ae()},get platform(){return C()},get translationurl(){return A()},get navigationhref(){return V()},get enableautoplay(){return I()},get autoplayinterval(){return R()},get pauseoninteraction(){return L()},get loop(){return j()},get showdots(){return oe()}}),e.pop(Z)}customElements.define("tournaments-banner",e.create_custom_element(je,{endpoint:{},language:{},session:{},platform:{},translationurl:{},navigationhref:{},enableautoplay:{},autoplayinterval:{},pauseoninteraction:{},loop:{},showdots:{}},[],[]));const pt=Object.freeze(Object.defineProperty({__proto__:null,default:je},Symbol.toStringTag,{value:"Module"}));exports.TournamentsBanner=He;exports.TournamentsBanner_ce=pt;
@@ -1 +1 @@
1
- typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const r=require("../components/TournamentsBanner-Ck6aUxuv.cjs");if(typeof window!="undefined"){let s=function(e){return function(...t){try{return e.apply(this,t)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n instanceof Error&&n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/TournamentsBanner-Ck6aUxuv.cjs")).then(e=>e.TournamentsBanner_ce).then(e=>{const t=e.default||e;customElements.get("tournaments-banner")||customElements.define("tournaments-banner",t.element||t)}).catch(e=>{console.error("BOOT ERROR:",e)})}module.exports=r.TournamentsBanner;
1
+ typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const r=require("../components/TournamentsBanner-BHVUD322.cjs");if(typeof window!="undefined"){let s=function(e){return function(...t){try{return e.apply(this,t)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n instanceof Error&&n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/TournamentsBanner-BHVUD322.cjs")).then(e=>e.TournamentsBanner_ce).then(e=>{const t=e.default||e;customElements.get("tournaments-banner")||customElements.define("tournaments-banner",t.element||t)}).catch(e=>{console.error("BOOT ERROR:",e)})}module.exports=r.TournamentsBanner;
@@ -1,4 +1,4 @@
1
- import { T as i } from "../components/TournamentsBanner-DipIdf7b.js";
1
+ import { T as i } from "../components/TournamentsBanner-DG4Ek8wp.js";
2
2
  typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
3
3
  }, globalThis.customElements = { define() {
4
4
  }, get() {
@@ -16,7 +16,7 @@ if (typeof window != "undefined") {
16
16
  }
17
17
  };
18
18
  };
19
- customElements.define = s(customElements.define), import("../components/TournamentsBanner-DipIdf7b.js").then((e) => e.a).then((e) => {
19
+ customElements.define = s(customElements.define), import("../components/TournamentsBanner-DG4Ek8wp.js").then((e) => e.a).then((e) => {
20
20
  const t = e.default || e;
21
21
  customElements.get("tournaments-banner") || customElements.define("tournaments-banner", t.element || t);
22
22
  }).catch((e) => {
@@ -1 +1 @@
1
- typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const r=require("../components/TournamentsBanner-fdqVau44.cjs");if(typeof window<"u"){let s=function(e){return function(...t){try{return e.apply(this,t)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n instanceof Error&&n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/TournamentsBanner-fdqVau44.cjs")).then(e=>e.TournamentsBanner_ce).then(e=>{const t=e.default||e;customElements.get("tournaments-banner")||customElements.define("tournaments-banner",t.element||t)}).catch(e=>{console.error("BOOT ERROR:",e)})}module.exports=r.TournamentsBanner;
1
+ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const r=require("../components/TournamentsBanner-kjOgQMqE.cjs");if(typeof window<"u"){let s=function(e){return function(...t){try{return e.apply(this,t)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n instanceof Error&&n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/TournamentsBanner-kjOgQMqE.cjs")).then(e=>e.TournamentsBanner_ce).then(e=>{const t=e.default||e;customElements.get("tournaments-banner")||customElements.define("tournaments-banner",t.element||t)}).catch(e=>{console.error("BOOT ERROR:",e)})}module.exports=r.TournamentsBanner;
@@ -1,4 +1,4 @@
1
- import { T as i } from "../components/TournamentsBanner-CgubmW_K.js";
1
+ import { T as i } from "../components/TournamentsBanner-BoYY31Ae.js";
2
2
  typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
3
3
  }, globalThis.customElements = { define() {
4
4
  }, get() {
@@ -16,7 +16,7 @@ if (typeof window < "u") {
16
16
  }
17
17
  };
18
18
  };
19
- customElements.define = s(customElements.define), import("../components/TournamentsBanner-CgubmW_K.js").then((e) => e.a).then((e) => {
19
+ customElements.define = s(customElements.define), import("../components/TournamentsBanner-BoYY31Ae.js").then((e) => e.a).then((e) => {
20
20
  const t = e.default || e;
21
21
  customElements.get("tournaments-banner") || customElements.define("tournaments-banner", t.element || t);
22
22
  }).catch((e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/tournaments-banner",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "main": "./esnext/tournaments-banner.cjs",
6
6
  "module": "./esnext/tournaments-banner.js",
@@ -1,8 +0,0 @@
1
- var na=Object.defineProperty,ia=Object.defineProperties;var sa=Object.getOwnPropertyDescriptors;var Ci=Object.getOwnPropertySymbols;var oa=Object.prototype.hasOwnProperty,aa=Object.prototype.propertyIsEnumerable;var Mi=e=>{throw TypeError(e)};var yn=(e,t,r)=>t in e?na(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pr=(e,t)=>{for(var r in t||(t={}))oa.call(t,r)&&yn(e,r,t[r]);if(Ci)for(var r of Ci(t))aa.call(t,r)&&yn(e,r,t[r]);return e},Ir=(e,t)=>ia(e,sa(t));var M=(e,t,r)=>yn(e,typeof t!="symbol"?t+"":t,r),xn=(e,t,r)=>t.has(e)||Mi("Cannot "+r);var f=(e,t,r)=>(xn(e,t,"read from private field"),r?r.call(e):t.get(e)),x=(e,t,r)=>t.has(e)?Mi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),_=(e,t,r,n)=>(xn(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),b=(e,t,r)=>(xn(e,t,"access private method"),r);var Li=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{o(r.next(u))}catch(l){i(l)}},a=u=>{try{o(r.throw(u))}catch(l){i(l)}},o=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,a);o((r=r.apply(e,t)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const ua=require("./translations-Dw7XuwXd.cjs"),la="5";var as,us,ls;typeof window!="undefined"&&((ls=(us=(as=window.__svelte)!=null?as:window.__svelte={}).v)!=null?ls:us.v=new Set).add(la);const fa=1,ha=2,ca=16,da=1,pa=2,cs="[",li="[!",Ri="[?",fi="]",tt={},G=Symbol("uninitialized"),va="http://www.w3.org/1999/xhtml",ds=!1;var ps=Array.isArray,ma=Array.prototype.indexOf,dr=Array.prototype.includes,ln=Array.from,qr=Object.keys,Gt=Object.defineProperty,Pt=Object.getOwnPropertyDescriptor,ga=Object.getOwnPropertyDescriptors,_a=Object.prototype,ba=Array.prototype,vs=Object.getPrototypeOf,$i=Object.isExtensible;const Me=()=>{};function ms(e){for(var t=0;t<e.length;t++)e[t]()}function gs(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const q=2,kt=4,Tr=8,_s=1<<24,we=16,Ae=32,Xe=64,Ln=128,hi=256,Se=512,k=1024,U=2048,ve=4096,Z=8192,V=16384,Et=32768,pr=1<<25,_t=65536,zr=1<<17,Ea=1<<18,yt=1<<19,bs=1<<20,je=1<<25,Wr=1<<21,It=1<<22,Ke=1<<23,$r=Symbol("$state"),Es=Symbol("component"),ya=Symbol("legacy props"),xa=Symbol(""),Dr=Symbol("attributes"),Rn=Symbol("class"),wa=Symbol("style"),rr=Symbol("text"),Sr=new class extends Error{constructor(){super(...arguments);M(this,"name","StaleReactionError");M(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var fs;const Ta=!!((fs=globalThis.document)!=null&&fs.contentType)&&globalThis.document.contentType.includes("xml"),fn=3,Ar=8;function Sa(){console.warn("https://svelte.dev/e/derived_inert")}function hn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Aa(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let I=!1;function Ve(e){I=e}let A;function ee(e){if(e===null)throw hn(),tt;return A=e}function cn(){return ee($e(A))}function ur(e){if(I){if($e(A)!==null)throw hn(),tt;A=e}}function Ha(e=1){if(I){for(var t=e,r=A;t--;)r=$e(r);A=r}}function Yr(e=!0){for(var t=0,r=A;;){if(r.nodeType===Ar){var n=r.data;if(n===fi){if(t===0)return r;t-=1}else(n===cs||n===li||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=$e(r);e&&r.remove(),r=i}}function ci(e){if(!e||e.nodeType!==Ar)throw hn(),tt;return e.data}function ys(e){return e===this.v}function xs(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ws(e){return!xs(e,this.v)}function Na(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Oa(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Ba(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Pa(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ia(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ca(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ma(){throw new Error("https://svelte.dev/e/hydration_failed")}function La(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ra(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $a(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Da(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}let Ua=!1,Q=null;function jt(e){Q=e}function di(e,t=!1,r){Q={p:Q,i:!1,c:null,e:null,s:e,x:null,r:w,l:null}}function pi(e){var t=Q,r=t.e;if(r!==null){t.e=null;for(var n of r)Xs(n)}return e!==void 0&&(t.x=e),t.i=!0,Q=t.p,vi(e)}function vi(e={}){return Gt(e,Es,{value:!0}),e}function Ts(){return!0}let at=[];function Ss(){var e=at;at=[],ms(e)}function Qe(e){if(at.length===0&&!lr){var t=at;queueMicrotask(()=>{t===at&&Ss()})}at.push(e)}function Fa(){for(;at.length>0;)Ss()}const Ga=-7169;function D(e,t){e.f=e.f&Ga|t}function mi(e){e.f&Se||e.deps===null?D(e,k):D(e,ve)}function As(e,t,r){e.f&U?t.add(e):e.f&ve&&r.add(e),D(e,k)}function Hr(e){var t=T,r=w;_e(null),Re(null);try{return e()}finally{_e(t),Re(r)}}function ka(e,t,r,n){const i=dn;var s=e.filter(v=>!v.settled),a=t.map(i);if(r.length===0&&s.length===0){n(a);return}var o=w,u=ja(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(v=>v.promise)):null;function h(v){if(!(o.f&V)){u();try{n([...a,...v])}catch(d){Ie(d,o)}Zr()}}var c=Hs();if(r.length===0){l.then(()=>h([])).finally(c);return}function p(){Promise.all(r.map(v=>Va(v))).then(h).catch(v=>Ie(v,o)).finally(c)}l?l.then(()=>{if(o.f&V){c();return}u(),p(),Zr()}):p()}function ja(){var e=w,t=T,r=Q,n=E;return function(s=!0){Re(e),_e(t),jt(r),s&&!(e.f&V)&&(n==null||n.activate(),n==null||n.apply())}}function Zr(e=!0){Re(null),_e(null),jt(null),e&&(E==null||E.deactivate())}function Hs(){var e=w,t=e.b,r=E,n=!!(t!=null&&t.is_rendered());return t==null||t.update_pending_count(1,r),r.increment(n,e),()=>{t==null||t.update_pending_count(-1,r),r.decrement(n,e)}}function dn(e){var t=q|U;return w!==null&&(w.f|=yt),{ctx:Q,deps:null,effects:null,equals:ys,f:t,fn:e,reactions:null,rv:0,v:G,wv:0,parent:w,ac:null}}const nr=Symbol("obsolete");function Va(e,t,r){let n=w;n===null&&Na();var i=void 0,s=bt(G),a=!T,o=new Set;return nu(()=>{var v,d;var u=w,l=gs();i=l.promise;try{Promise.resolve(e()).then(l.resolve,m=>{m!==Sr&&l.reject(m)}).finally(Zr)}catch(m){l.reject(m),Zr()}var h=E;if(a){if(u.f&Et)var c=Hs();if((v=n.b)!=null&&v.is_rendered())(d=h.async_deriveds.get(u))==null||d.reject(nr);else for(const m of o.values())m.reject(nr);o.add(l),h.async_deriveds.set(u,l)}const p=(m,g=void 0)=>{c==null||c(),o.delete(l),g!==nr&&(h.activate(),g?(s.f|=Ke,Vt(s,g)):(s.f&Ke&&(s.f^=Ke),Vt(s,m)),h.deactivate())};l.promise.then(p,m=>p(null,m||"unknown"))}),Ti(()=>{for(const u of o)u.reject(nr)}),new Promise(u=>{function l(h){function c(){h===i?u(s):l(i)}h.then(c,c)}l(i)})}function $n(e){const t=dn(e);return Qs(t),t}function Xa(e){const t=dn(e);return t.equals=ws,t}function qa(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)J(t[r])}}function gi(e){var t,r=w,n=e.parent;if(!qe&&n!==null&&e.v!==G&&n.f&(V|Z))return Sa(),e.v;Re(n);try{qa(e),t=to(e)}finally{Re(r)}return t}function Ns(e){var t=gi(e);if(!e.equals(t)&&(e.wv=Ks(),(!(E!=null&&E.is_fork)||e.deps===null)&&(E!==null?(E.capture(e,t,!0),et==null||et.capture(e,t,!0)):e.v=t,e.deps===null))){D(e,k);return}qe||(j!==null?(wi()||E!=null&&E.is_fork)&&j.set(e,t):mi(e))}function za(e){var t;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((t=r.teardown)==null||t.call(r),r.ac!==null&&Hr(()=>{r.ac.abort(Sr),r.ac=null}),r.fn!==null&&(r.teardown=Me),vr(r,0),Ai(r))}function Os(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&Xt(t)}let wn=null,Tt=null,E=null,et=null,j=null,Dn=null,lr=!1,Tn=!1,fr=null,Ur=null;var Di=0;let Wa=1;var Mt,Ye,ht,Lt,Rt,$t,Ue,Dt,ie,_r,Fe,ye,Oe,Ut,ct,P,Un,Fn,ir,Gn,Bs,Ps,Ht,Ya,sr;const on=class on{constructor(){x(this,P);M(this,"id",Wa++);x(this,Mt,!1);M(this,"linked",!0);x(this,Ye,null);x(this,ht,null);M(this,"async_deriveds",new Map);M(this,"current",new Map);M(this,"previous",new Map);x(this,Lt,new Set);x(this,Rt,new Set);x(this,$t,0);x(this,Ue,new Map);x(this,Dt,null);x(this,ie,[]);x(this,_r,[]);x(this,Fe,new Set);x(this,ye,new Set);x(this,Oe,new Map);x(this,Ut,new Set);M(this,"is_fork",!1);x(this,ct,!1);Tt===null?wn=Tt=this:(_(Tt,ht,this),_(this,Ye,Tt)),Tt=this}skip_effect(t){f(this,Oe).has(t)||f(this,Oe).set(t,{d:[],m:[]}),f(this,Ut).delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=f(this,Oe).get(t);if(n){f(this,Oe).delete(t);for(var i of n.d)D(i,U),r(i);for(i of n.m)D(i,ve),r(i)}f(this,Ut).add(t)}capture(t,r,n=!1){t.v!==G&&!this.previous.has(t)&&this.previous.set(t,t.v),t.f&Ke||(this.current.set(t,[r,n]),j==null||j.set(t,r)),this.is_fork||(t.v=r)}activate(){E=this}deactivate(){E=null,j=null}flush(){try{Tn=!0,E=this,b(this,P,ir).call(this)}finally{Di=0,Dn=null,fr=null,Ur=null,Tn=!1,E=null,j=null,Le.clear()}}discard(){var t;for(const r of f(this,Rt))r(this);f(this,Rt).clear();for(const r of this.async_deriveds.values())r.reject(nr);b(this,P,sr).call(this),(t=f(this,Dt))==null||t.resolve()}register_created_effect(t){f(this,_r).push(t)}increment(t,r){var n;if(_(this,$t,f(this,$t)+1),t){let i=(n=f(this,Ue).get(r))!=null?n:0;f(this,Ue).set(r,i+1)}}decrement(t,r){var n;if(_(this,$t,f(this,$t)-1),t){let i=(n=f(this,Ue).get(r))!=null?n:0;i===1?f(this,Ue).delete(r):f(this,Ue).set(r,i-1)}f(this,ct)||(_(this,ct,!0),Qe(()=>{_(this,ct,!1),this.linked&&this.flush()}))}transfer_effects(t,r){for(const n of t)f(this,Fe).add(n);for(const n of r)f(this,ye).add(n);t.clear(),r.clear()}oncommit(t){f(this,Lt).add(t)}ondiscard(t){f(this,Rt).add(t)}settled(){var t;return((t=f(this,Dt))!=null?t:_(this,Dt,gs())).promise}static ensure(){if(E===null){const t=E=new on;!Tn&&!lr&&Qe(()=>{f(t,Mt)||t.flush()})}return E}apply(){{j=null;return}}schedule(t){var r;if(Dn=t,(r=t.b)!=null&&r.is_pending&&t.f&(kt|Tr|_s)&&!(t.f&Et)){t.b.defer_effect(t);return}f(this,ie).push(t)}};Mt=new WeakMap,Ye=new WeakMap,ht=new WeakMap,Lt=new WeakMap,Rt=new WeakMap,$t=new WeakMap,Ue=new WeakMap,Dt=new WeakMap,ie=new WeakMap,_r=new WeakMap,Fe=new WeakMap,ye=new WeakMap,Oe=new WeakMap,Ut=new WeakMap,ct=new WeakMap,P=new WeakSet,Un=function(){if(this.is_fork)return!0;for(const n of f(this,Ue).keys()){for(var t=n,r=!1;t.parent!==null;){if(f(this,Oe).has(t)){r=!0;break}t=t.parent}if(!r)return!0}return!1},Fn=function(){var t=[];for(const s of f(this,ie))if(!(s.f&V||!(s.f&(U|ve)))){for(var r=s,n=!1;r.parent!==null;){r=r.parent;var i=r.f;if(i&(Xe|Ae)){if(!(i&k)){n=!0;break}r.f^=k}}n||t.push(r)}return _(this,ie,[]),t},ir=function(){var o,u,l,h;_(this,Mt,!0);for(const c of f(this,Fe))f(this,ye).delete(c),D(c,U),this.schedule(c);for(const c of f(this,ye))D(c,ve),this.schedule(c);this.apply();for(var t=fr=[],r=[],n=Ur=[];f(this,ie).length>0;){Di++>1e3&&(b(this,P,sr).call(this),Za());for(const c of b(this,P,Fn).call(this))try{b(this,P,Gn).call(this,c,t,r)}catch(p){throw Ms(c),b(this,P,Un).call(this)||this.discard(),p}}if(E=null,n.length>0){var i=on.ensure();for(const c of n)i.schedule(c)}if(fr=null,Ur=null,b(this,P,Un).call(this)){b(this,P,Ht).call(this,r),b(this,P,Ht).call(this,t);for(const[c,p]of f(this,Oe))Cs(c,p);n.length>0&&b(o=E,P,ir).call(o);return}const s=b(this,P,Bs).call(this);if(s){b(this,P,Ht).call(this,r),b(this,P,Ht).call(this,t),b(u=s,P,Ps).call(u,this);return}f(this,Fe).clear(),f(this,ye).clear();for(const c of f(this,Lt))c(this);f(this,Lt).clear(),et=this,Ui(r),Ui(t),et=null,(l=f(this,Dt))==null||l.resolve();var a=E;if(f(this,$t)===0&&(f(this,ie).length===0||a!==null)&&b(this,P,sr).call(this),f(this,ie).length>0)if(a!==null){for(const c of f(this,ie))f(a,ie).push(c);_(this,ie,[])}else a=this;a!==null&&(Le.clear(),b(h=a,P,ir).call(h))},Gn=function(t,r,n){t.f^=k;for(var i=t.first;i!==null;){var s=i.f,a=(s&(Ae|Xe))!==0,o=a&&(s&k)!==0,u=o||(s&Z)!==0||f(this,Oe).has(i);if(!u&&i.fn!==null){a?i.f^=k:s&kt?r.push(i):Nr(i)&&(s&we&&f(this,ye).add(i),Xt(i));var l=i.first;if(l!==null){i=l;continue}}for(;i!==null;){var h=i.next;if(h!==null){i=h;break}i=i.parent}}},Bs=function(){for(var t=f(this,Ye);t!==null;){if(!t.is_fork){for(const[r,[,n]]of this.current)if(t.current.has(r)&&!n)return t}t=f(t,Ye)}return null},Ps=function(t){var n;for(const[i,s]of t.current)!this.previous.has(i)&&t.previous.has(i)&&this.previous.set(i,t.previous.get(i)),this.current.set(i,s);for(const[i,s]of t.async_deriveds){const a=this.async_deriveds.get(i);a&&s.promise.then(a.resolve).catch(a.reject)}t.async_deriveds.clear(),this.transfer_effects(f(t,Fe),f(t,ye));const r=i=>{var s=i.reactions;if(s!==null&&!(i.f&q&&!(i.f&(U|ve))))for(const u of s){var a=u.f;if(a&q)r(u);else{var o=u;a&(It|we)&&!this.async_deriveds.has(o)&&(f(this,ye).delete(o),D(o,U),this.schedule(o))}}};for(const i of this.current.keys())r(i);this.oncommit(()=>t.discard()),b(n=t,P,sr).call(n),E=this,b(this,P,ir).call(this)},Ht=function(t){for(var r=0;r<t.length;r+=1)As(t[r],f(this,Fe),f(this,ye))},Ya=function(){var c,p;for(let v=wn;v!==null;v=f(v,ht)){var t=v.id<this.id,r=[];for(const[d,[m,g]]of this.current){if(v.current.has(d)){var n=v.current.get(d)[0];if(t&&m!==n)v.current.set(d,[m,g]);else continue}r.push(d)}if(t)for(const[d,m]of this.async_deriveds){const g=v.async_deriveds.get(d);g&&m.promise.then(g.resolve).catch(g.reject)}var i=[...v.current.keys()].filter(d=>!v.current.get(d)[1]);if(!(!f(v,Mt)||i.length===0)){var s=i.filter(d=>!this.current.has(d));if(s.length===0)t&&v.discard();else if(r.length>0){if(t)for(const d of f(this,Ut))v.unskip_effect(d,m=>{var g;m.f&(we|It)?v.schedule(m):b(g=v,P,Ht).call(g,[m])});v.activate();var a=new Set,o=new Map;for(var u of r)Is(u,s,a,o);o=new Map;var l=[...v.current].filter(([d,m])=>{const g=this.current.get(d);return g?g[0]!==m[0]||g[1]!==m[1]:!0}).map(([d])=>d);if(l.length>0)for(const d of f(this,_r))!(d.f&(V|Z|zr))&&_i(d,l,o)&&(d.f&(It|we)?(D(d,U),v.schedule(d)):f(v,Fe).add(d));if(f(v,ie).length>0&&!f(v,ct)){v.apply();for(var h of b(c=v,P,Fn).call(c))b(p=v,P,Gn).call(p,h,[],[])}v.deactivate()}}}},sr=function(){if(this.linked){var t=f(this,Ye),r=f(this,ht);t===null?wn=r:_(t,ht,r),r===null?Tt=t:_(r,Ye,t),this.linked=!1}};let rt=on;function st(e){var t=lr,r=et;et=null,lr=!0;try{for(var n;;){if(Fa(),E===null)return n;E.flush()}}finally{lr=t,et=r}}function Za(){try{Ca()}catch(e){Ie(e,Dn)}}let Ee=null;function Ui(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(V|Z))&&Nr(n)&&(Ee=new Set,Xt(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Ws(n),(Ee==null?void 0:Ee.size)>0)){Le.clear();for(const i of Ee){if(i.f&(V|Z))continue;const s=[i];let a=i.parent;for(;a!==null;)Ee.has(a)&&(Ee.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const u=s[o];u.f&(V|Z)||Xt(u)}}Ee.clear()}}Ee=null}}function Is(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;s&q?Is(i,t,r,n):s&(It|we)&&!(s&U)&&_i(i,t,n)&&(D(i,U),bi(i))}}function _i(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(dr.call(t,i))return!0;if(i.f&q&&_i(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function bi(e){E.schedule(e)}function Cs(e,t){if(!(e.f&Ae&&e.f&k)){e.f&U?t.d.push(e):e.f&ve&&t.m.push(e),D(e,k);for(var r=e.first;r!==null;)Cs(r,t),r=r.next}}function Ms(e){D(e,k);for(var t=e.first;t!==null;)Ms(t),t=t.next}let Qr=new Set;const Le=new Map;let Ls=!1;function bt(e,t){var r={f:0,v:e,reactions:null,equals:ys,rv:0,wv:0};return r}function Ne(e,t){const r=bt(e);return Qs(r),r}function Ei(e,t=!1,r=!0){const n=bt(e);return t||(n.equals=ws),n}function pe(e,t,r=!1){T!==null&&(!Te||T.f&zr)&&Ts()&&T.f&(q|we|It|zr)&&(ge===null||!ge.has(e))&&$a();let n=r?ut(t):t;return Vt(e,n,Ur)}var ot=null,kn=0;function Vt(e,t,r=null){if(!e.equals(t)){qe?Le.set(e,t):Le.has(e)||Le.set(e,e.v);var n=rt.ensure();if(n.capture(e,t),e.f&q){const i=e;e.f&U&&gi(i),j===null&&mi(i)}e.wv=Ks(),ot=null,kn=0,Rs(e,U,r),ot=null,w!==null&&w.f&k&&!(w.f&(Ae|Xe))&&(fe===null?ou([e]):fe.push(e)),!n.is_fork&&Qr.size>0&&!Ls&&Qa()}return t}function Qa(){Ls=!1;for(const e of Qr){e.f&k&&D(e,ve);let t;try{t=Nr(e)}catch(r){t=!0}t&&Xt(e)}Qr.clear()}function hr(e){pe(e,e.v+1)}function Rs(e,t,r){var n=e.reactions;if(n!==null){var i=n.length;if(kn+=i,kn>1e5&&ot===null&&(ot=new Set),ot!==null){if(ot.has(e))return;ot.add(e)}for(var s=0;s<i;s++){var a=n[s],o=a.f,u=(o&U)===0;if(u&&D(a,t),o&zr)Qr.add(a);else if(o&q){var l=a;j==null||j.delete(l),Rs(l,ve,r)}else if(u){var h=a;o&we&&Ee!==null&&Ee.add(h),r!==null?r.push(h):bi(h)}}}}function ut(e){if(typeof e!="object"||e===null||$r in e||Es in e)return e;const t=vs(e);if(t!==_a&&t!==ba)return e;var r=new Map,n=ps(e),i=Ne(0),s=gt,a=o=>{if(gt===s)return o();var u=T,l=gt;_e(null),ki(s);var h=o();return _e(u),ki(l),h};return n&&r.set("length",Ne(e.length)),new Proxy(e,{defineProperty(o,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&La();var h=r.get(u);return h===void 0?a(()=>{var c=Ne(l.value);return r.set(u,c),c}):pe(h,l.value,!0),!0},deleteProperty(o,u){var l=r.get(u);if(l===void 0){if(u in o){const h=a(()=>Ne(G));r.set(u,h),hr(i)}}else pe(l,G),hr(i);return!0},get(o,u,l){var v;if(u===$r)return e;var h=r.get(u),c=u in o;if(h===void 0&&(!c||(v=Pt(o,u))!=null&&v.writable)&&(h=a(()=>{var d=ut(c?o[u]:G),m=Ne(d);return m}),r.set(u,h)),h!==void 0){var p=B(h);return p===G?void 0:p}return Reflect.get(o,u,l)},getOwnPropertyDescriptor(o,u){var p;(p=this.has)==null||p.call(this,o,u);var l=Reflect.getOwnPropertyDescriptor(o,u),h=r.get(u);if(h!==void 0){var c=B(h);if(c===G)return;if(l&&"value"in l)l.value=c;else return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(o,u){var p;if(u===$r)return!0;var l=r.get(u),h=l!==void 0&&l.v!==G||Reflect.has(o,u);if(l!==void 0||w!==null&&(!h||(p=Pt(o,u))!=null&&p.writable)){l===void 0&&(l=a(()=>{var v=h?ut(o[u]):G,d=Ne(v);return d}),r.set(u,l));var c=B(l);if(c===G)return!1}return h},set(o,u,l,h){var C;var c=r.get(u),p=u in o;if(n&&u==="length")for(var v=l;v<c.v;v+=1){var d=r.get(v+"");d!==void 0?pe(d,G):v in o&&(d=a(()=>Ne(G)),r.set(v+"",d))}if(c===void 0)(!p||(C=Pt(o,u))!=null&&C.writable)&&(c=a(()=>Ne(void 0)),pe(c,ut(l)),r.set(u,c));else{p=c.v!==G;var m=a(()=>ut(l));pe(c,m)}var g=Reflect.getOwnPropertyDescriptor(o,u);if(g!=null&&g.set&&g.set.call(h,l),!p){if(n&&typeof u=="string"){var y=r.get("length"),O=Number(u);Number.isInteger(O)&&O>=y.v&&pe(y,O+1)}hr(i)}return!0},ownKeys(o){B(i);var u=Reflect.ownKeys(o).filter(c=>{var p=r.get(c);return p===void 0||p.v!==G});for(var[l,h]of r)h.v!==G&&!(l in o)&&u.push(l);return u},setPrototypeOf(){Ra()}})}var Fi,$s,Ds,Us;function jn(){if(Fi===void 0){Fi=window,$s=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ds=Pt(t,"firstChild").get,Us=Pt(t,"nextSibling").get,$i(e)&&(e[Rn]=void 0,e[Dr]=null,e[wa]=void 0,e.__e=void 0),$i(r)&&(r[rr]=void 0)}}function me(e=""){return document.createTextNode(e)}function nt(e){return Ds.call(e)}function $e(e){return Us.call(e)}function cr(e,t){if(!I)return nt(e);var r=nt(A);if(r===null)r=A.appendChild(me());else if(t&&r.nodeType!==fn){var n=me();return r==null||r.before(n),ee(n),n}return t&&xi(r),ee(r),r}function Fs(e,t=!1){if(!I){var r=nt(e);return r instanceof Comment&&r.data===""?$e(r):r}if(t){if((A==null?void 0:A.nodeType)!==fn){var n=me();return A==null||A.before(n),ee(n),n}xi(A)}return A}function Cr(e,t=!1){if(!I)return nt(e);var r=cr(e,t);return ur(e),r}function Nt(e,t=1,r=!1){let n=I?A:e;for(var i;t--;)i=n,n=$e(n);if(!I)return n;if(r){if((n==null?void 0:n.nodeType)!==fn){var s=me();return n===null?i==null||i.after(s):n.before(s),ee(s),s}xi(n)}return ee(n),n}function Gs(e){e.textContent=""}function ks(){return!1}function yi(e,t,r){return r?document.createElement(e,{is:r}):document.createElement(e)}function xi(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===fn;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Ja(e){var t=w;if(t===null)return T.f|=Ke,e;if(!(t.f&Et)&&!(t.f&kt))throw e;Ie(e,t)}function Ie(e,t){if(e===tt)throw e;if(!(t!==null&&t.f&V)){for(;t!==null;){if(t.f&Ln&&!(t.f&(V|pr))){if(!(t.f&Et))throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}}function js(e){w===null&&(T===null&&Ia(),Pa()),qe&&Ba()}function Ka(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function He(e,t){var a;var r=w;r!==null&&r.f&Z&&(e|=Z);var n={ctx:Q,deps:null,nodes:null,f:e|U|Se,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};E==null||E.register_created_effect(n);var i=n;if(e&kt)fr!==null?fr.push(n):rt.ensure().schedule(n);else if(t!==null){try{Xt(n)}catch(o){throw J(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&yt)&&(i=i.first,e&we&&e&_t&&i!==null&&(i.f|=_t))}if(i!==null&&(i.parent=r,r!==null&&Ka(i,r),T!==null&&T.f&q&&!(e&Xe))){var s=T;((a=s.effects)!=null?a:s.effects=[]).push(i)}return n}function wi(){return T!==null&&!Te}function Ti(e){const t=He(Tr,null);return D(t,k),t.teardown=e,t}function Vs(e){var i;js();var t=w.f,r=!T&&(t&Ae)!==0&&Q!==null&&!Q.i;if(r){var n=Q;((i=n.e)!=null?i:n.e=[]).push(e)}else return Xs(e)}function Xs(e){return He(kt|bs,e)}function eu(e){return js(),He(Tr|bs,e)}function tu(e){rt.ensure();const t=He(Xe|yt,e);return()=>{J(t)}}function ru(e){rt.ensure();const t=He(Xe|yt,e);return(r={})=>new Promise(n=>{r.outro?mt(t,()=>{J(t),n(void 0)}):(J(t),n(void 0))})}function qs(e){return He(kt,e)}function nu(e){return He(It|yt,e)}function Si(e,t=0){return He(Tr|t,e)}function Fr(e,t=[],r=[],n=[]){ka(n,t,r,i=>{He(Tr,()=>{e(...i.map(B))})})}function pn(e,t=0){var r=He(we|t,e);return r}function de(e){return He(Ae|yt,e)}function zs(e){var t=e.teardown;if(t!==null){const r=qe,n=T;Gi(!0),_e(null);try{t.call(null)}catch(i){Ie(i,e.parent)}finally{Gi(r),_e(n)}}}function Ai(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Hr(()=>{i.abort(Sr)});var n=r.next;r.f&Xe?r.parent=null:J(r,t),r=n}}function iu(e){for(var t=e.first;t!==null;){var r=t.next;t.f&Ae||J(t),t=r}}function J(e,t=!0){var r=!1;(t||e.f&Ea)&&e.nodes!==null&&e.nodes.end!==null&&(su(e.nodes.start,e.nodes.end),r=!0),e.f|=pr,Ai(e,t&&!r),vr(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();zs(e),e.f^=pr,e.f|=V;var i=e.parent;i!==null&&i.first!==null&&Ws(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function su(e,t){for(;e!==null;){var r=e===t?null:$e(e);e.remove(),e=r}}function Ws(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function mt(e,t,r=!0){var n=[];e.f|=hi,Ys(e,n,!0);var i=()=>{r&&J(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function Ys(e,t,r){if(!(e.f&Z)){e.f^=Z;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next;if(!(i.f&Xe)){var a=(i.f&_t)!==0||(i.f&Ae)!==0&&(e.f&we)!==0;Ys(i,t,a?r:!1)}i=s}}}function Jr(e){e.f&=~hi,Zs(e,!0)}function Zs(e,t){if(!(e.f&hi)&&e.f&Z){e.f^=Z,e.f&k||(D(e,U),rt.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&_t)!==0||(r.f&Ae)!==0;Zs(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function Hi(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:$e(r);t.append(r),r=i}}let qe=!1;function Gi(e){qe=e}let T=null,Te=!1;function _e(e){T=e}let w=null;function Re(e){w=e}let ge=null;function Qs(e){T!==null&&(T.f&Wr||T.f&q)&&(ge!=null?ge:ge=new Set).add(e)}let K=null,le=0,fe=null;function ou(e){fe=e}let Js=1,lt=0,gt=lt;function ki(e){gt=e}function Ks(){return++Js}function Nr(e){var t=e.f;if(t&U)return!0;if(t&ve){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Nr(s)&&Ns(s),s.wv>e.wv)return!0}t&Se&&j===null&&D(e,k)}return!1}function eo(e,t,r=!0){var n=e.reactions;if(n!==null&&!(ge!==null&&ge.has(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&q?eo(s,t,!1):t===s&&(r?D(s,U):s.f&k&&D(s,ve),bi(s))}}function to(e){var t=K,r=le,n=fe,i=T,s=ge,a=Q,o=Te,u=gt,l=e.f;K=null,le=0,fe=null,T=l&(Ae|Xe)?null:e,ge=null,jt(e.ctx),Te=!1,gt=++lt,e.ac!==null&&(Hr(()=>{e.ac.abort(Sr)}),e.ac=null);try{e.f|=Wr;var h=e.fn,c=h();e.f|=Et;var p=ji(e);if(Ts()&&fe!==null&&!Te&&p!==null&&!(e.f&(q|ve|U)))for(var v=0;v<fe.length;v++)eo(fe[v],e);if(i!==null&&i!==e){if(lt++,i.deps!==null)for(let d=0;d<r;d+=1)i.deps[d].rv=lt;if(t!==null)for(const d of t)d.rv=lt;fe!==null&&(n===null?n=fe:n.push(...fe))}return e.f&Ke&&(e.f^=Ke),c}catch(d){return ji(e),Ja(d)}finally{e.f^=Wr,K=t,le=r,fe=n,T=i,ge=s,jt(a),Te=o,gt=u}}function ji(e){var i,s;var t=e.deps,r=E==null?void 0:E.is_fork;if(K!==null){var n;if(r||vr(e,le),t!==null&&le>0)for(t.length=le+K.length,n=0;n<K.length;n++)t[le+n]=K[n];else e.deps=t=K;if(wi()&&e.f&Se)for(n=le;n<t.length;n++)((s=(i=t[n]).reactions)!=null?s:i.reactions=[]).push(e)}else!r&&t!==null&&le<t.length&&(vr(e,le),t.length=le);return t}function au(e,t){let r=t.reactions;if(r!==null){var n=ma.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&t.f&q&&(K===null||!dr.call(K,t))){var s=t;s.f&Se&&(s.f^=Se),s.v!==G&&mi(s),s.ac!==null&&Hr(()=>{s.ac.abort(Sr),s.ac=null,D(s,U)}),za(s),vr(s,0)}}function vr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)au(e,r[n])}function Xt(e){var t=e.f;if(!(t&V)){D(e,k);var r=w;w=e;try{t&(we|_s)?iu(e):Ai(e),zs(e);var n=to(e);e.teardown=typeof n=="function"?n:null,e.wv=Js;var i;ds&&Ua&&e.f&U&&e.deps}finally{w=r}}}function B(e){var h;var t=e.f,r=(t&q)!==0;if(T!==null&&!Te){var n=w!==null&&(w.f&V)!==0;if(!n&&(ge===null||!ge.has(e))){var i=T.deps;if(T.f&Wr)e.rv<lt&&(e.rv=lt,K===null&&i!==null&&i[le]===e?le++:K===null?K=[e]:K.push(e));else{(h=T.deps)!=null||(T.deps=[]),dr.call(T.deps,e)||T.deps.push(e);var s=e.reactions;s===null?e.reactions=[T]:dr.call(s,T)||s.push(T)}}}if(qe&&Le.has(e))return Le.get(e);if(r){var a=e;if(qe){var o=a.v;return(!(a.f&k)&&a.reactions!==null||no(a))&&(o=gi(a)),Le.set(a,o),o}var u=(a.f&Se)===0&&!Te&&T!==null&&(T.f&Se)!==0,l=(a.f&Et)===0;Nr(a)&&(u&&(a.f|=Se),Ns(a)),u&&!l&&(Os(a),ro(a))}if(j!=null&&j.has(e))return j.get(e);if(e.f&Ke)throw e.v;return e.v}function ro(e){if(e.f|=Se,e.deps!==null)for(const r of e.deps){var t=r.reactions;t===null?r.reactions=[e]:dr.call(t,e)||t.push(e),r.f&q&&!(r.f&Se)&&(Os(r),ro(r))}}function no(e){if(e.v===G)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Le.has(t)||t.f&q&&no(t))return!0;return!1}function Ni(e){var t=Te;try{return Te=!0,e()}finally{Te=t}}const ft=Symbol("events"),io=new Set,Vn=new Set;function uu(e){if(!I)return;e.removeAttribute("onload"),e.removeAttribute("onerror");const t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function lu(e,t,r,n={}){function i(s){if(n.capture||Xn.call(t,s),!s.cancelBubble)return Hr(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?(i.__removed=!1,Qe(()=>{i.__removed||t.addEventListener(e,i,n)})):t.addEventListener(e,i,n),i}function fu(e,t,r,n,i){var s={capture:n,passive:i},a=lu(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ti(()=>{a.__removed=!0,t.removeEventListener(e,a,s)})}function hu(e,t,r){var n;((n=t[ft])!=null?n:t[ft]={})[e]=r}function cu(e){for(var t=0;t<e.length;t++)io.add(e[t]);for(var r of Vn)r(e)}let Sn=null,An=!1;function Xn(e){var m,g;var t=this,r=t.ownerDocument,n=e.type,i=((m=e.composedPath)==null?void 0:m.call(e))||[],s=i[0]||e.target;Sn=e,An||(An=!0,setTimeout(()=>{An=!1,Sn=null}));var a=0,o=Sn===e&&e[ft];if(o){var u=i.indexOf(o);if(u!==-1&&(t===document||t===window)){e[ft]=t;return}var l=i.indexOf(t);if(l===-1)return;u<=l&&(a=u)}if(s=i[a]||e.target,s!==t){Gt(e,"currentTarget",{configurable:!0,get(){return s||r}});var h=T,c=w;_e(null),Re(null);try{for(var p,v=[];s!==null&&s!==t;){try{var d=(g=s[ft])==null?void 0:g[n];d!=null&&(!s.disabled||e.target===s)&&d.call(s,e)}catch(y){p?v.push(y):p=y}if(e.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(p){for(let y of v)queueMicrotask(()=>{throw y});throw p}}finally{e[ft]=t,delete e.currentTarget,_e(h),Re(c)}}}var hs;const Hn=((hs=globalThis==null?void 0:globalThis.window)==null?void 0:hs.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function du(e){var t;return(t=Hn==null?void 0:Hn.createHTML(e))!=null?t:e}function pu(e){var t=yi("template");return t.innerHTML=du(e.replaceAll("<!>","<!---->")),t.content}function Ct(e,t){var r=w;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Or(e,t){var r=(t&da)!==0,n=(t&pa)!==0,i,s=!e.startsWith("<!>");return()=>{if(I)return Ct(A,null),A;i===void 0&&(i=pu(s?e:"<!>"+e),r||(i=nt(i)));var a=n||$s?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=nt(a),u=a.lastChild;Ct(o,u)}else Ct(a,a);return a}}function vu(){if(I)return Ct(A,null),A;var e=document.createDocumentFragment(),t=document.createComment(""),r=me();return e.append(t,r),Ct(t,r),e}function Bt(e,t){if(I){var r=w;(!(r.f&Et)||r.nodes.end===null)&&(r.nodes.end=A),cn();return}e!==null&&e.before(t)}const mu=["touchstart","touchmove"];function gu(e){return mu.includes(e)}function _u(e){let t=0,r=bt(0),n;return()=>{wi()&&(B(r),Si(()=>(t===0&&(n=Ni(()=>e(()=>hr(r)))),t+=1,()=>{Qe(()=>{t-=1,t===0&&(n==null||n(),n=void 0,hr(r))})})))}}var bu=_t|yt;function Eu(e,t,r,n){new yu(e,t,r,n)}var se,br,he,dt,X,oe,W,ae,Be,pt,Ze,Ft,Er,yr,Ge,an,S,so,oo,qn,We,ao,zn,or,Gr,Wn,Yn;class yu{constructor(t,r,n,i){x(this,S);M(this,"parent");M(this,"is_pending",!1);M(this,"transform_error");x(this,se);x(this,br,I?A:null);x(this,he);x(this,dt);x(this,X);x(this,oe,null);x(this,W,null);x(this,ae,null);x(this,Be,null);x(this,pt,0);x(this,Ze,0);x(this,Ft,!1);x(this,Er,new Set);x(this,yr,new Set);x(this,Ge,null);x(this,an,_u(()=>(_(this,Ge,bt(f(this,pt))),()=>{_(this,Ge,null)})));var s,a;_(this,se,t),_(this,he,r),_(this,dt,o=>{var u=w;u.b=this,u.f|=Ln,n(o)}),this.parent=w.b,this.transform_error=(a=i!=null?i:(s=this.parent)==null?void 0:s.transform_error)!=null?a:o=>o,_(this,X,pn(()=>{if(I){const o=ci(f(this,br));cn();const u=o===li;if(o.startsWith(Ri)){const h=JSON.parse(o.slice(Ri.length));b(this,S,oo).call(this,h)}else u?b(this,S,ao).call(this):b(this,S,so).call(this)}else b(this,S,zn).call(this)},bu)),I&&_(this,se,A)}defer_effect(t){As(t,f(this,Er),f(this,yr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!f(this,he).pending}update_pending_count(t,r){b(this,S,Wn).call(this,t,r),_(this,pt,f(this,pt)+t),!(!f(this,Ge)||f(this,Ft))&&(_(this,Ft,!0),Qe(()=>{_(this,Ft,!1),f(this,Ge)&&Vt(f(this,Ge),f(this,pt))}))}get_effect_pending(){return f(this,an).call(this),B(f(this,Ge))}error(t){if(t===tt||!f(this,he).onerror&&!f(this,he).failed)throw t;E!=null&&E.is_fork?(f(this,oe)&&E.skip_effect(f(this,oe)),f(this,W)&&E.skip_effect(f(this,W)),f(this,ae)&&E.skip_effect(f(this,ae)),E.oncommit(()=>{b(this,S,We).call(this)||b(this,S,Yn).call(this,t)})):b(this,S,Yn).call(this,t)}}se=new WeakMap,br=new WeakMap,he=new WeakMap,dt=new WeakMap,X=new WeakMap,oe=new WeakMap,W=new WeakMap,ae=new WeakMap,Be=new WeakMap,pt=new WeakMap,Ze=new WeakMap,Ft=new WeakMap,Er=new WeakMap,yr=new WeakMap,Ge=new WeakMap,an=new WeakMap,S=new WeakSet,so=function(){try{_(this,oe,de(()=>f(this,dt).call(this,f(this,se))))}catch(t){this.error(t)}},oo=function(t){const r=f(this,he).failed,{reset:n,invoke_onerror:i}=b(this,S,qn).call(this,t);Qe(i),r&&_(this,ae,de(()=>{r(f(this,se),()=>t,()=>n)}))},qn=function(t){var r=!1,n=!1;const i=()=>{if(!b(this,S,We).call(this)){if(r){Aa();return}r=!0,n&&Da(),f(this,ae)!==null&&mt(f(this,ae),()=>{_(this,ae,null)}),b(this,S,Gr).call(this,()=>{b(this,S,zn).call(this)})}};return{reset:i,invoke_onerror:()=>{var a,o;if(!b(this,S,We).call(this))try{n=!0,(o=(a=f(this,he)).onerror)==null||o.call(a,t,i),n=!1}catch(u){Ie(u,f(this,X)&&f(this,X).parent)}}}},We=function(){return(f(this,X).f&(V|pr))!==0},ao=function(){const t=f(this,he).pending;t&&(this.is_pending=!0,_(this,W,de(()=>t(f(this,se)))),Qe(()=>{if(!b(this,S,We).call(this)){var r=_(this,Be,document.createDocumentFragment()),n=me(),i=!1;if(r.append(n),_(this,oe,b(this,S,Gr).call(this,()=>{try{return de(()=>f(this,dt).call(this,n))}catch(s){try{this.error(s),i=!0}catch(a){Ie(a,f(this,X).parent)}return null}})),f(this,oe)===null){_(this,Be,null),i&&b(this,S,or).call(this,E);return}f(this,Ze)===0&&(f(this,se).before(r),_(this,Be,null),mt(f(this,W),()=>{_(this,W,null)}),b(this,S,or).call(this,E))}}))},zn=function(){try{if(this.is_pending=this.has_pending_snippet(),_(this,Ze,0),_(this,pt,0),_(this,oe,de(()=>{f(this,dt).call(this,f(this,se))})),f(this,Ze)>0){var t=_(this,Be,document.createDocumentFragment());Hi(f(this,oe),t);const r=f(this,he).pending;_(this,W,de(()=>r(f(this,se))))}else b(this,S,or).call(this,E)}catch(r){this.error(r)}},or=function(t){this.is_pending=!1,t.transfer_effects(f(this,Er),f(this,yr))},Gr=function(t){var r=w,n=T,i=Q;Re(f(this,X)),_e(f(this,X)),jt(f(this,X).ctx);try{return rt.ensure(),t()}finally{Re(r),_e(n),jt(i)}},Wn=function(t,r){var n;if(!this.has_pending_snippet()){this.parent&&b(n=this.parent,S,Wn).call(n,t,r);return}_(this,Ze,f(this,Ze)+t),f(this,Ze)===0&&(b(this,S,or).call(this,r),f(this,W)&&mt(f(this,W),()=>{_(this,W,null)}),f(this,Be)&&(f(this,se).before(f(this,Be)),_(this,Be,null)))},Yn=function(t){f(this,oe)&&(J(f(this,oe)),_(this,oe,null)),f(this,W)&&(J(f(this,W)),_(this,W,null)),f(this,ae)&&(J(f(this,ae)),_(this,ae,null)),I&&(ee(f(this,br)),Ha(),ee(Yr()));let r=f(this,he).failed;const n=i=>{if(b(this,S,We).call(this))return;const{reset:s,invoke_onerror:a}=b(this,S,qn).call(this,i);a(),r&&!b(this,S,We).call(this)&&_(this,ae,b(this,S,Gr).call(this,()=>{try{return de(()=>{var o=w;o.b=this,o.f|=Ln,r(f(this,se),()=>i,()=>s)})}catch(o){return Ie(o,f(this,X).parent),null}}))};Qe(()=>{if(!b(this,S,We).call(this)){var i;try{i=this.transform_error(t)}catch(s){Ie(s,f(this,X)&&f(this,X).parent);return}i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(n,s=>Ie(s,f(this,X)&&f(this,X).parent)):n(i)}})};function Mr(e,t){var n;var r=t==null?"":typeof t=="object"?`${t}`:t;r!==((n=e[rr])!=null?n:e[rr]=e.nodeValue)&&(e[rr]=r,e.nodeValue=`${r}`)}function uo(e,t){return lo(e,t)}function xu(e,t){var a;jn(),t.intro=(a=t.intro)!=null?a:!1;const r=t.target,n=I,i=A;try{for(var s=nt(r);s&&(s.nodeType!==Ar||s.data!==cs);)s=$e(s);if(!s)throw tt;Ve(!0),ee(s);const o=lo(e,Ir(Pr({},t),{anchor:s}));return Ve(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(u=>u.startsWith("https://svelte.dev/e/")))throw o;return o!==tt&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Ma(),jn(),Gs(r),Ve(!1),uo(e,t)}finally{Ve(n),ee(i)}}const Lr=new Map;function lo(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0,transformError:o}){jn();var u=void 0,l=ru(()=>{var h=r!=null?r:t.appendChild(me());Eu(h,{pending:()=>{}},v=>{di({});var d=Q;if(s&&(d.c=s),i&&(n.$$events=i),I&&Ct(v,null),u=e(v,n)||vi(),I&&(w.nodes.end=A,A===null||A.nodeType!==Ar||A.data!==fi))throw hn(),tt;pi()},o);var c=new Set,p=v=>{for(var d=0;d<v.length;d++){var m=v[d];if(!c.has(m)){c.add(m);var g=gu(m);for(const C of[t,document]){var y=Lr.get(C);y===void 0&&(y=new Map,Lr.set(C,y));var O=y.get(m);O===void 0?(C.addEventListener(m,Xn,{passive:g}),y.set(m,1)):y.set(m,O+1)}}}};return p(ln(io)),Vn.add(p),()=>{var g;for(var v of c)for(const y of[t,document]){var d=Lr.get(y),m=d.get(v);--m==0?(y.removeEventListener(v,Xn),d.delete(v),d.size===0&&Lr.delete(y)):d.set(v,m)}Vn.delete(p),h!==r&&((g=h.parentNode)==null||g.removeChild(h))}});return Zn.set(u,l),u}let Zn=new WeakMap;function wu(e,t){const r=Zn.get(e);return r?(Zn.delete(e),r(t)):Promise.resolve()}var xe,Pe,ue,vt,xr,wr,un;class fo{constructor(t,r=!0){M(this,"anchor");x(this,xe,new Map);x(this,Pe,new Map);x(this,ue,new Map);x(this,vt,new Set);x(this,xr,!0);x(this,wr,t=>{if(f(this,xe).has(t)){var r=f(this,xe).get(t),n=f(this,Pe).get(r);if(n)Jr(n),f(this,vt).delete(r);else{var i=f(this,ue).get(r);i&&(Jr(i.effect),f(this,Pe).set(r,i.effect),f(this,ue).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of f(this,xe)){if(f(this,xe).delete(s),s===t)break;const o=f(this,ue).get(a);o&&(J(o.effect),f(this,ue).delete(a))}for(const[s,a]of f(this,Pe)){if(s===r||f(this,vt).has(s))continue;const o=()=>{if(Array.from(f(this,xe).values()).includes(s)){var l=document.createDocumentFragment();Hi(a,l),l.append(me()),f(this,ue).set(s,{effect:a,fragment:l})}else J(a);f(this,vt).delete(s),f(this,Pe).delete(s)};f(this,xr)||!n?(f(this,vt).add(s),mt(a,o,!1)):o()}}});x(this,un,t=>{f(this,xe).delete(t);const r=Array.from(f(this,xe).values());for(const[n,i]of f(this,ue))r.includes(n)||(J(i.effect),f(this,ue).delete(n))});this.anchor=t,_(this,xr,r)}ensure(t,r){var n=E,i=ks();if(r&&!f(this,Pe).has(t)&&!f(this,ue).has(t))if(i){var s=document.createDocumentFragment(),a=me();s.append(a),f(this,ue).set(t,{effect:de(()=>r(a)),fragment:s})}else f(this,Pe).set(t,de(()=>r(this.anchor)));if(f(this,xe).set(n,t),i){for(const[o,u]of f(this,Pe))o===t?n.unskip_effect(u):n.skip_effect(u);for(const[o,u]of f(this,ue))o===t?n.unskip_effect(u.effect):n.skip_effect(u.effect);n.oncommit(f(this,wr)),n.ondiscard(f(this,un))}else I&&(this.anchor=A),f(this,wr).call(this,n)}}xe=new WeakMap,Pe=new WeakMap,ue=new WeakMap,vt=new WeakMap,xr=new WeakMap,wr=new WeakMap,un=new WeakMap;function Tu(e,t,...r){var n=new fo(e);pn(()=>{var s;const i=(s=t())!=null?s:null;n.ensure(i,i&&(a=>i(a,...r)))},_t)}function kr(e,t,r=!1){var n;I&&(n=A,cn());var i=new fo(e),s=r?_t:0;function a(o,u){if(I){var l=ci(n);if(o!==parseInt(l.substring(1))){var h=Yr();ee(h),i.anchor=h,Ve(!1),i.ensure(o,u),Ve(!0);return}}i.ensure(o,u)}pn(()=>{var o=!1;t((u,l=0)=>{o=!0,a(l,u)}),o||a(-1,null)},s)}function Su(e,t,r){var c;for(var n=[],i=t.length,s,a=t.length,o=0;o<i;o++){let p=t[o];mt(p,()=>{if(s){if(s.pending.delete(p),s.done.add(p),s.pending.size===0){var v=e.outrogroups;Qn(e,ln(s.done)),v.delete(s),v.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var u=n.length===0&&r!==null&&e.pending.size===0;if(u){var l=r,h=l.parentNode;Gs(h),h.append(l),e.items.clear()}Qn(e,t,!u)}else s={pending:new Set(t),done:new Set},((c=e.outrogroups)!=null?c:e.outrogroups=new Set).add(s)}function Qn(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const a of e.pending.values())for(const o of a)n.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];if(n!=null&&n.has(s)){s.f|=je;const a=document.createDocumentFragment();Hi(s,a)}else J(t[i],r)}}var St;function Au(e,t,r,n,i,s=null){var a=e,o=new Map;{var u=e;a=I?ee(nt(u)):u.appendChild(me())}I&&cn();var l=null,h=Xa(()=>{var y=r();return ps(y)?y:y==null?[]:ln(y)}),c=new Map,p=!0;function v(y){if(!(g.effect.f&V)){g.pending.delete(y);var O=B(h);g.fallback=l,Hu(g,O,a,t,n),l!==null&&(O.length===0?l.f&je?(l.f^=je,ar(l,null,a)):Jr(l):mt(l,()=>{l=null}))}}function d(y){g.pending.delete(y)}var m=pn(()=>{var y=B(h),O=y.length;let C=!1;if(I){var te=ci(a)===li;te!==(O===0)&&(a=Yr(),ee(a),Ve(!1),C=!0)}for(var F=new Set,z=E,R=ks(),re=0;re<O;re+=1){I&&A.nodeType===Ar&&A.data===fi&&(a=A,C=!0,Ve(!1));var ne=y[re],wt=n(ne,re),be=p?null:o.get(wt);be?(be.v&&Vt(be.v,ne),be.i&&Vt(be.i,re),R&&z.unskip_effect(be.e)):(be=Nu(o,p?a:St!=null?St:St=me(),ne,wt,re,i,t,r),p||(be.e.f|=je),o.set(wt,be)),F.add(wt)}if(O===0&&s&&!l&&(p?l=de(()=>s(a)):(l=de(()=>s(St!=null?St:St=me())),l.f|=je)),O>F.size&&Oa(),I&&O>0&&ee(Yr()),!p)if(c.set(z,F),R){for(const[En,De]of o)F.has(En)||z.skip_effect(De.e);z.oncommit(v),z.ondiscard(d)}else v(z);C&&Ve(!0),B(h)}),g={effect:m,items:o,pending:c,outrogroups:null,fallback:l};p=!1,I&&(a=A)}function er(e){for(;e!==null&&!(e.f&Ae);)e=e.next;return e}function Hu(e,t,r,n,i){var re;var s=t.length,a=e.items,o=er(e.effect.first),u,l=null,h=[],c=[],p,v,d,m;for(m=0;m<s;m+=1){if(p=t[m],v=i(p,m),d=a.get(v).e,e.outrogroups!==null)for(const ne of e.outrogroups)ne.pending.delete(d),ne.done.delete(d);if(d.f&Z&&Jr(d),d.f&je)if(d.f^=je,d===o)ar(d,null,r);else{var g=l?l.next:o;d===e.effect.last&&(e.effect.last=d.prev),d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),ze(e,l,d),ze(e,d,g),ar(d,g,r),l=d,h=[],c=[],o=er(l.next);continue}if(d!==o){if(u!==void 0&&u.has(d)){if(h.length<c.length){var y=c[0],O;l=y.prev;var C=h[0],te=h[h.length-1];for(O=0;O<h.length;O+=1)ar(h[O],y,r);for(O=0;O<c.length;O+=1)u.delete(c[O]);ze(e,C.prev,te.next),ze(e,l,C),ze(e,te,y),o=y,l=te,m-=1,h=[],c=[]}else u.delete(d),ar(d,o,r),ze(e,d.prev,d.next),ze(e,d,l===null?e.effect.first:l.next),ze(e,l,d),l=d;continue}for(h=[],c=[];o!==null&&o!==d;)(u!=null?u:u=new Set).add(o),c.push(o),o=er(o.next);if(o===null)continue}d.f&je||h.push(d),l=d,o=er(d.next)}if(e.outrogroups!==null){for(const ne of e.outrogroups)ne.pending.size===0&&(Qn(e,ln(ne.done)),(re=e.outrogroups)==null||re.delete(ne));e.outrogroups.size===0&&(e.outrogroups=null)}if(o!==null||u!==void 0){var F=[];if(u!==void 0)for(d of u)d.f&Z||F.push(d);for(;o!==null;)!(o.f&Z)&&o!==e.fallback&&F.push(o),o=er(o.next);var z=F.length;if(z>0){var R=s===0?r:null;Su(e,F,R)}}}function Nu(e,t,r,n,i,s,a,o){var u=a&fa?a&ca?bt(r):Ei(r,!1,!1):null,l=a&ha?bt(i):null;return{v:u,i:l,e:de(()=>(s(t,u!=null?u:r,l!=null?l:i,o),()=>{e.delete(n)}))}}function ar(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&je)?t.nodes.start:r;n!==null;){var a=$e(n);if(s.before(n),n===i)return;n=a}}function ze(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function ho(e,t){qs(()=>{var i,s,a,o;e=(a=(s=(i=w==null?void 0:w.parent)==null?void 0:i.nodes)==null?void 0:s.start)!=null?a:e;var r=e.getRootNode(),n=r.host?r:(o=r.head)!=null?o:r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const u=yi("style");u.id=t.hash,u.textContent=t.code,n.appendChild(u)}})}const Vi=[...`
3
- \r\f \v\uFEFF`];function Ou(e,t,r){var n=e==null?"":""+e;if(r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var s=i.length,a=0;(a=n.indexOf(i,a))>=0;){var o=a+s;(a===0||Vi.includes(n[a-1]))&&(o===n.length||Vi.includes(n[o]))?n=(a===0?"":n.substring(0,a))+n.substring(o+1):a=o}}return n===""?null:n}function co(e,t,r,n,i,s){var a=e[Rn];if(I||a!==r||a===void 0){var o=Ou(r,n,s);(!I||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e[Rn]=r}else if(s&&i!==s)for(var u in s){var l=!!s[u];(i==null||l!==!!i[u])&&e.classList.toggle(u,l)}return s}const Bu=Symbol("is custom element"),Pu=Symbol("is html"),Iu=Ta?"link":"LINK";function Jn(e,t,r,n){var i=Cu(e);I&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Iu)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[xa]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Mu(e).has(t)?e[t]=r:e.setAttribute(t,r))}function Cu(e){var t;return(t=e[Dr])!=null?t:e[Dr]={[Bu]:e.nodeName.includes("-"),[Pu]:e.namespaceURI===va}}var Xi=new Map;function Mu(e){var t=e.getAttribute("is")||e.nodeName,r=Xi.get(t);if(r)return r;Xi.set(t,r=new Set);for(var n,i=e,s=Element.prototype;s!==i;){n=ga(i);for(var a in n)n[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&r.add(a);i=vs(i)}return r}function Nn(e,t){return e===t||(e==null?void 0:e[$r])===t}function Lu(e=vi(),t,r,n){var i=Q.r,s=w;return qs(()=>{var a,o;return Si(()=>{a=o,o=[],Ni(()=>{Nn(r(...o),e)||(t(e,...o),a&&Nn(r(...a),e)&&t(null,...a))})}),()=>{let u=s;for(;u!==i&&u.parent!==null&&u.parent.f&pr;)u=u.parent;const l=()=>{o&&Nn(r(...o),e)&&t(null,...o)},h=u.teardown;u.teardown=()=>{l(),h==null||h()}}}),e}function Oi(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Me;const n=Ni(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const At=[];function Ru(e,t){return{subscribe:vn(e,t).subscribe}}function vn(e,t=Me){let r=null;const n=new Set;function i(o){if(xs(e,o)&&(e=o,r)){const u=!At.length;for(const l of n)l[1](),At.push(l,e);if(u){for(let l=0;l<At.length;l+=2)At[l][0](At[l+1]);At.length=0}}}function s(o){i(o(e))}function a(o,u=Me){const l=[o,u];return n.add(l),n.size===1&&(r=t(i,s)||Me),o(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function Zt(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return Ru(r,(a,o)=>{let u=!1;const l=[];let h=0,c=Me;const p=()=>{if(h)return;c();const d=t(n?l[0]:l,a,o);s?a(d):c=typeof d=="function"?d:Me},v=i.map((d,m)=>Oi(d,g=>{l[m]=g,h&=~(1<<m),u&&p()},()=>{h|=1<<m}));return u=!0,p(),function(){ms(v),c(),u=!1}})}function $u(e){let t;return Oi(e,r=>t=r)(),t}let Kn=Symbol("unmounted");function po(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:Ei(void 0),unsubscribe:Me};if(n.store!==e&&!(Kn in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=Me;else{var i=!0;n.unsubscribe=Oi(e,a=>{i?n.source.v=a:pe(n.source,a)}),i=!1}return e&&Kn in r?$u(e):B(n.source)}function vo(){const e={};function t(){Ti(()=>{for(var r in e)e[r].unsubscribe();Gt(e,Kn,{enumerable:!1,value:!0})})}return[e,t]}function Ot(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=a());var u;u=()=>{var p=e[t];return p===void 0?a():(s=!0,p)};var l=!1,h=dn(()=>(l=!1,u())),c=w;return function(p,v){if(arguments.length>0){const d=v?B(h):p;return pe(h,d),l=!0,i!==void 0&&(i=d),p}return qe&&l||c.f&V?h.v:B(h)}}function Du(e){return new Uu(e)}var ke,ce;class Uu{constructor(t){x(this,ke);x(this,ce);var s,a;var r=new Map,n=(o,u)=>{var l=Ei(u,!1,!1);return r.set(o,l),l};const i=new Proxy(Ir(Pr({},t.props||{}),{$$events:{}}),{get(o,u){var l;return B((l=r.get(u))!=null?l:n(u,Reflect.get(o,u)))},has(o,u){var l;return u===ya?!0:(B((l=r.get(u))!=null?l:n(u,Reflect.get(o,u))),Reflect.has(o,u))},set(o,u,l){var h;return pe((h=r.get(u))!=null?h:n(u,l),l),Reflect.set(o,u,l)}});_(this,ce,(t.hydrate?xu:uo)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:(s=t.intro)!=null?s:!1,recover:t.recover,transformError:t.transformError})),(!((a=t==null?void 0:t.props)!=null&&a.$$host)||t.sync===!1)&&st(),_(this,ke,i.$$events);for(const o of Object.keys(f(this,ce)))o==="$set"||o==="$destroy"||o==="$on"||Gt(this,o,{get(){return f(this,ce)[o]},set(u){f(this,ce)[o]=u},enumerable:!0});f(this,ce).$set=o=>{Object.assign(i,o)},f(this,ce).$destroy=()=>{wu(f(this,ce))}}$set(t){f(this,ce).$set(t)}$on(t,r){f(this,ke)[t]=f(this,ke)[t]||[];const n=(...i)=>r.call(this,...i);return f(this,ke)[t].push(n),()=>{f(this,ke)[t]=f(this,ke)[t].filter(i=>i!==n)}}$destroy(){f(this,ce).$destroy()}}ke=new WeakMap,ce=new WeakMap;let mo;typeof HTMLElement=="function"&&(mo=class extends HTMLElement{constructor(t,r,n){super();M(this,"$$ctor");M(this,"$$s");M(this,"$$c");M(this,"$$cn",!1);M(this,"$$d",{});M(this,"$$r",!1);M(this,"$$p_d",{});M(this,"$$l",{});M(this,"$$l_u",new Map);M(this,"$$me");M(this,"$$shadowRoot",null);this.$$ctor=t,this.$$s=r,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Li(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return a=>{const o=yi("slot");s!=="default"&&(o.name=s),Bt(a,o)}};var t=r;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Fu(this);for(const s of this.$$s)s in i&&(s==="default"&&!this.$$d.children?(this.$$d.children=r(s),n.default=!0):n[s]=r(s));for(const s of this.attributes){const a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=jr(a,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Du({component:this.$$ctor,target:this.$$shadowRoot||this,props:Ir(Pr({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=tu(()=>{Si(()=>{var s;this.$$r=!0;for(const a of qr(this.$$c)){if(!((s=this.$$p_d[a])!=null&&s.reflect))continue;this.$$d[a]=this.$$c[a];const o=jr(a,this.$$d[a],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,o)}this.$$r=!1})});for(const s in this.$$l)for(const a of this.$$l[s]){const o=this.$$c.$on(s,a);this.$$l_u.set(a,o)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=jr(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return qr(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function jr(e,t,r,n){var s;const i=(s=r[e])==null?void 0:s.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Fu(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function go(e,t,r,n,i,s){let a=class extends mo{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return qr(t).map(o=>(t[o].attribute||o).toLowerCase())}};return qr(t).forEach(o=>{Gt(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var c;u=jr(o,u,t),this.$$d[o]=u;var l=this.$$c;if(l){var h=(c=Pt(l,o))==null?void 0:c.get;h?l[o]=u:l.$set({[o]:u})}}})}),n.forEach(o=>{Gt(a.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=a,a}var Gu=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function _o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ku=function(t){return ju(t)&&!Vu(t)};function ju(e){return!!e&&typeof e=="object"}function Vu(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||zu(e)}var Xu=typeof Symbol=="function"&&Symbol.for,qu=Xu?Symbol.for("react.element"):60103;function zu(e){return e.$$typeof===qu}function Wu(e){return Array.isArray(e)?[]:{}}function mr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?qt(Wu(e),e,t):e}function Yu(e,t,r){return e.concat(t).map(function(n){return mr(n,r)})}function Zu(e,t){if(!t.customMerge)return qt;var r=t.customMerge(e);return typeof r=="function"?r:qt}function Qu(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function qi(e){return Object.keys(e).concat(Qu(e))}function bo(e,t){try{return t in e}catch(r){return!1}}function Ju(e,t){return bo(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Ku(e,t,r){var n={};return r.isMergeableObject(e)&&qi(e).forEach(function(i){n[i]=mr(e[i],r)}),qi(t).forEach(function(i){Ju(e,i)||(bo(e,i)&&r.isMergeableObject(t[i])?n[i]=Zu(i,r)(e[i],t[i],r):n[i]=mr(t[i],r))}),n}function qt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Yu,r.isMergeableObject=r.isMergeableObject||ku,r.cloneUnlessOtherwiseSpecified=mr;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Ku(e,t,r):mr(t,r)}qt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return qt(n,i,r)},{})};var el=qt,tl=el;const rl=_o(tl);var ei=function(e,t){return ei=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ei(e,t)};function mn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ei(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ce=function(){return Ce=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Ce.apply(this,arguments)};function nl(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function On(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function Bn(e,t){var r=t&&t.cache?t.cache:fl,n=t&&t.serializer?t.serializer:ul,i=t&&t.strategy?t.strategy:ol;return i(e,{cache:r,serializer:n})}function il(e){return e==null||typeof e=="number"||typeof e=="boolean"}function sl(e,t,r,n){var i=il(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Eo(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,n),t.set(i,s)),s}function yo(e,t,r,n,i){return r.bind(t,e,n,i)}function ol(e,t){var r=e.length===1?sl:Eo;return yo(e,this,r,t.cache.create(),t.serializer)}function al(e,t){return yo(e,this,Eo,t.cache.create(),t.serializer)}var ul=function(){return JSON.stringify(arguments)},ll=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),fl={create:function(){return new ll}},Pn={variadic:al},Kr=function(){return Kr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Kr.apply(this,arguments)};var H;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(H||(H={}));var L;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(L||(L={}));var zt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(zt||(zt={}));function zi(e){return e.type===L.literal}function hl(e){return e.type===L.argument}function xo(e){return e.type===L.number}function wo(e){return e.type===L.date}function To(e){return e.type===L.time}function So(e){return e.type===L.select}function Ao(e){return e.type===L.plural}function cl(e){return e.type===L.pound}function Ho(e){return e.type===L.tag}function No(e){return!!(e&&typeof e=="object"&&e.type===zt.number)}function ti(e){return!!(e&&typeof e=="object"&&e.type===zt.dateTime)}var Oo=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,dl=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function pl(e){var t={};return e.replace(dl,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var $=function(){return $=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},$.apply(this,arguments)};var vl=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ml(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(vl).filter(function(p){return p.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var o=a[0],u=a.slice(1),l=0,h=u;l<h.length;l++){var c=h[l];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:u})}return r}function gl(e){return e.replace(/^(.*?)-/,"")}var Wi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Bo=/^(@+)?(\+|#+)?[rs]?$/g,_l=/(\*)(0+)|(#+)(0+)|(0+)/g,Po=/^(0+)$/;function Yi(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Bo,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function Io(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function bl(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Po.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Zi(e){var t={},r=Io(e);return r||t}function El(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=gl(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=$($($({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return $($({},u),Zi(l))},{}));continue;case"engineering":t=$($($({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return $($({},u),Zi(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(_l,function(u,l,h,c,p,v){if(l)t.minimumIntegerDigits=h.length;else{if(c&&p)throw new Error("We currently do not support maximum integer digits");if(v)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Po.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Wi.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Wi,function(u,l,h,c,p,v){return h==="*"?t.minimumFractionDigits=l.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:p&&v?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+v.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=$($({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=$($({},t),Yi(s)));continue}if(Bo.test(i.stem)){t=$($({},t),Yi(i.stem));continue}var a=Io(i.stem);a&&(t=$($({},t),a));var o=bl(i.stem);o&&(t=$($({},t),o))}return t}var Rr={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function yl(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var a=1+(s&1),o=s<2?1:3+(s>>1),u="a",l=xl(t);for((l=="H"||l=="k")&&(o=0);o-- >0;)r+=u;for(;a-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function xl(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Rr[n||""]||Rr[r||""]||Rr["".concat(r,"-001")]||Rr["001"];return i[0]}var In,wl=new RegExp("^".concat(Oo.source,"*")),Tl=new RegExp("".concat(Oo.source,"*$"));function N(e,t){return{start:e,end:t}}var Sl=!!String.prototype.startsWith&&"_a".startsWith("a",1),Al=!!String.fromCodePoint,Hl=!!Object.fromEntries,Nl=!!String.prototype.codePointAt,Ol=!!String.prototype.trimStart,Bl=!!String.prototype.trimEnd,Pl=!!Number.isSafeInteger,Il=Pl?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ri=!0;try{var Cl=Mo("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ri=((In=Cl.exec("a"))===null||In===void 0?void 0:In[0])==="a"}catch(e){ri=!1}var Qi=Sl?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ni=Al?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,a;i>s;){if(a=t[s++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},Ji=Hl?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],a=s[0],o=s[1];r[a]=o}return r},Co=Nl?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),s;return i<55296||i>56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},Ml=Ol?function(t){return t.trimStart()}:function(t){return t.replace(wl,"")},Ll=Bl?function(t){return t.trimEnd()}:function(t){return t.replace(Tl,"")};function Mo(e,t){return new RegExp(e,t)}var ii;if(ri){var Ki=Mo("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ii=function(t,r){var n;Ki.lastIndex=r;var i=Ki.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else ii=function(t,r){for(var n=[];;){var i=Co(t,r);if(i===void 0||Lo(i)||Ul(i))break;n.push(i),r+=i>=65536?2:1}return ni.apply(void 0,n)};var Rl=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:L.pound,location:N(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(H.UNMATCHED_CLOSING_TAG,N(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&si(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:L.literal,value:"<".concat(i,"/>"),location:N(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var a=s.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!si(this.char()))return this.error(H.INVALID_TAG,N(o,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(H.UNMATCHED_CLOSING_TAG,N(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:L.tag,value:i,children:a,location:N(n,this.clonePosition())},err:null}:this.error(H.INVALID_TAG,N(o,this.clonePosition())))}else return this.error(H.UNCLOSED_TAG,N(n,this.clonePosition()))}else return this.error(H.INVALID_TAG,N(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Dl(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var u=N(n,this.clonePosition());return{val:{type:L.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!$l(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return ni.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),ni(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(H.EMPTY_ARGUMENT,N(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(H.MALFORMED_ARGUMENT,N(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:L.argument,value:i,location:N(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(H.MALFORMED_ARGUMENT,N(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=ii(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=N(t,s);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(o){case"":return this.error(H.EXPECT_ARGUMENT_TYPE,N(a,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var p=Ll(c.val);if(p.length===0)return this.error(H.EXPECT_ARGUMENT_STYLE,N(this.clonePosition(),this.clonePosition()));var v=N(h,this.clonePosition());l={style:p,styleLocation:v}}var d=this.tryParseArgumentClose(i);if(d.err)return d;var m=N(i,this.clonePosition());if(l&&Qi(l==null?void 0:l.style,"::",0)){var g=Ml(l.style.slice(2));if(o==="number"){var c=this.parseNumberSkeletonFromString(g,l.styleLocation);return c.err?c:{val:{type:L.number,value:n,location:m,style:c.val},err:null}}else{if(g.length===0)return this.error(H.EXPECT_DATE_TIME_SKELETON,m);var y=g;this.locale&&(y=yl(g,this.locale));var p={type:zt.dateTime,pattern:y,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?pl(y):{}},O=o==="date"?L.date:L.time;return{val:{type:O,value:n,location:m,style:p},err:null}}}return{val:{type:o==="number"?L.number:o==="date"?L.date:L.time,value:n,location:m,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,N(C,Kr({},C)));this.bumpSpace();var te=this.parseIdentifierIfPossible(),F=0;if(o!=="select"&&te.value==="offset"){if(!this.bumpIf(":"))return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),te=this.parseIdentifierIfPossible(),F=c.val}var z=this.tryParsePluralOrSelectOptions(t,o,r,te);if(z.err)return z;var d=this.tryParseArgumentClose(i);if(d.err)return d;var R=N(i,this.clonePosition());return o==="select"?{val:{type:L.select,value:n,options:Ji(z.val),location:R},err:null}:{val:{type:L.plural,value:n,options:Ji(z.val),offset:F,pluralType:o==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(H.INVALID_ARGUMENT_TYPE,N(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,N(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,N(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=ml(t)}catch(i){return this.error(H.INVALID_NUMBER_SKELETON,r)}return{val:{type:zt.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?El(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,o=[],u=new Set,l=i.value,h=i.location;;){if(l.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR,H.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;h=N(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?H.DUPLICATE_SELECT_ARGUMENT_SELECTOR:H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(a=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,N(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(t+1,r,n);if(d.err)return d;var m=this.tryParseArgumentClose(v);if(m.err)return m;o.push([l,{value:d.val,location:N(v,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,h=s.location}return o.length===0?this.error(r==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR:H.EXPECT_PLURAL_ARGUMENT_SELECTOR,N(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(H.MISSING_OTHER_CLAUSE,N(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)s=!0,a=a*10+(o-48),this.bump();else break}var u=N(i,this.clonePosition());return s?(a*=n,Il(a)?{val:a,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Co(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Qi(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Lo(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function si(e){return e>=97&&e<=122||e>=65&&e<=90}function $l(e){return si(e)||e===47}function Dl(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Lo(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ul(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function oi(e){e.forEach(function(t){if(delete t.location,So(t)||Ao(t))for(var r in t.options)delete t.options[r].location,oi(t.options[r].value);else xo(t)&&No(t.style)||(wo(t)||To(t))&&ti(t.style)?delete t.style.location:Ho(t)&&oi(t.children)})}function Fl(e,t){t===void 0&&(t={}),t=Kr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Rl(e,t).parse();if(r.err){var n=SyntaxError(H[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||oi(r.val),r.val}var Wt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Wt||(Wt={}));var gn=function(e){mn(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.code=n,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),es=function(e){mn(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Wt.INVALID_VALUE,s)||this}return t}(gn),Gl=function(e){mn(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Wt.INVALID_VALUE,i)||this}return t}(gn),kl=function(e){mn(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Wt.MISSING_VALUE,n)||this}return t}(gn),Y;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Y||(Y={}));function jl(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Y.literal||r.type!==Y.literal?t.push(r):n.value+=r.value,t},[])}function Vl(e){return typeof e=="function"}function Vr(e,t,r,n,i,s,a){if(e.length===1&&zi(e[0]))return[{type:Y.literal,value:e[0].value}];for(var o=[],u=0,l=e;u<l.length;u++){var h=l[u];if(zi(h)){o.push({type:Y.literal,value:h.value});continue}if(cl(h)){typeof s=="number"&&o.push({type:Y.literal,value:r.getNumberFormat(t).format(s)});continue}var c=h.value;if(!(i&&c in i))throw new kl(c,a);var p=i[c];if(hl(h)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),o.push({type:typeof p=="string"?Y.literal:Y.object,value:p});continue}if(wo(h)){var v=typeof h.style=="string"?n.date[h.style]:ti(h.style)?h.style.parsedOptions:void 0;o.push({type:Y.literal,value:r.getDateTimeFormat(t,v).format(p)});continue}if(To(h)){var v=typeof h.style=="string"?n.time[h.style]:ti(h.style)?h.style.parsedOptions:n.time.medium;o.push({type:Y.literal,value:r.getDateTimeFormat(t,v).format(p)});continue}if(xo(h)){var v=typeof h.style=="string"?n.number[h.style]:No(h.style)?h.style.parsedOptions:void 0;v&&v.scale&&(p=p*(v.scale||1)),o.push({type:Y.literal,value:r.getNumberFormat(t,v).format(p)});continue}if(Ho(h)){var d=h.children,m=h.value,g=i[m];if(!Vl(g))throw new Gl(m,"function",a);var y=Vr(d,t,r,n,i,s),O=g(y.map(function(F){return F.value}));Array.isArray(O)||(O=[O]),o.push.apply(o,O.map(function(F){return{type:typeof F=="string"?Y.literal:Y.object,value:F}}))}if(So(h)){var C=h.options[p]||h.options.other;if(!C)throw new es(h.value,p,Object.keys(h.options),a);o.push.apply(o,Vr(C.value,t,r,n,i));continue}if(Ao(h)){var C=h.options["=".concat(p)];if(!C){if(!Intl.PluralRules)throw new gn(`Intl.PluralRules is not available in this environment.
4
- Try polyfilling it using "@formatjs/intl-pluralrules"
5
- `,Wt.MISSING_INTL_API,a);var te=r.getPluralRules(t,{type:h.pluralType}).select(p-(h.offset||0));C=h.options[te]||h.options.other}if(!C)throw new es(h.value,p,Object.keys(h.options),a);o.push.apply(o,Vr(C.value,t,r,n,i,p-(h.offset||0)));continue}}return jl(o)}function Xl(e,t){return t?Ce(Ce(Ce({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Ce(Ce({},e[n]),t[n]||{}),r},{})):e}function ql(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Xl(e[n],t[n]),r},Ce({},e)):e}function Cn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function zl(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Bn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,On([void 0],r,!1)))},{cache:Cn(e.number),strategy:Pn.variadic}),getDateTimeFormat:Bn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,On([void 0],r,!1)))},{cache:Cn(e.dateTime),strategy:Pn.variadic}),getPluralRules:Bn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,On([void 0],r,!1)))},{cache:Cn(e.pluralRules),strategy:Pn.variadic})}}var Wl=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var h=l.reduce(function(c,p){return!c.length||p.type!==Y.literal||typeof c[c.length-1]!="string"?c.push(p.value):c[c.length-1]+=p.value,c},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(u){return Vr(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:((u=s.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var o=nl(a,["formatters"]);this.ast=e.__parse(t,Ce(Ce({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ql(e.formats,n),this.formatters=i&&i.formatters||zl(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Fl,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Yl(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const Je={},Zl=(e,t,r)=>r&&(t in Je||(Je[t]={}),e in Je[t]||(Je[t][e]=r),r),Ro=(e,t)=>{if(t==null)return;if(t in Je&&e in Je[t])return Je[t][e];const r=_n(t);for(let n=0;n<r.length;n++){const i=r[n],s=Jl(i,e);if(s)return Zl(e,t,s)}};let Bi;const Qt=vn({});function Ql(e){return Bi[e]||null}function $o(e){return e in Bi}function Jl(e,t){if(!$o(e))return null;const r=Ql(e);return Yl(r,t)}function Kl(e){if(e==null)return;const t=_n(e);for(let r=0;r<t.length;r++){const n=t[r];if($o(n))return n}}function Do(e,...t){delete Je[e],Qt.update(r=>(r[e]=rl.all([r[e]||{},...t]),r))}Zt([Qt],([e])=>Object.keys(e));Qt.subscribe(e=>Bi=e);const Xr={};function ef(e,t){Xr[e].delete(t),Xr[e].size===0&&delete Xr[e]}function Uo(e){return Xr[e]}function tf(e){return _n(e).map(t=>{const r=Uo(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function ai(e){return e==null?!1:_n(e).some(t=>{var r;return(r=Uo(t))==null?void 0:r.size})}function rf(e,t){return Promise.all(t.map(n=>(ef(e,n),n().then(i=>i.default||i)))).then(n=>Do(e,...n))}const tr={};function Fo(e){if(!ai(e))return e in tr?tr[e]:Promise.resolve();const t=tf(e);return tr[e]=Promise.all(t.map(([r,n])=>rf(r,n))).then(()=>{if(ai(e))return Fo(e);delete tr[e]}),tr[e]}const nf={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},sf={fallbackLocale:null,loadingDelay:200,formats:nf,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},of=sf;function Yt(){return of}const Mn=vn(!1);var af=Object.defineProperty,uf=Object.defineProperties,lf=Object.getOwnPropertyDescriptors,ts=Object.getOwnPropertySymbols,ff=Object.prototype.hasOwnProperty,hf=Object.prototype.propertyIsEnumerable,rs=(e,t,r)=>t in e?af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cf=(e,t)=>{for(var r in t||(t={}))ff.call(t,r)&&rs(e,r,t[r]);if(ts)for(var r of ts(t))hf.call(t,r)&&rs(e,r,t[r]);return e},df=(e,t)=>uf(e,lf(t));let ui;const en=vn(null);function ns(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function _n(e,t=Yt().fallbackLocale){const r=ns(e);return t?[...new Set([...r,...ns(t)])]:r}function xt(){return ui!=null?ui:void 0}en.subscribe(e=>{ui=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const pf=e=>{if(e&&Kl(e)&&ai(e)){const{loadingDelay:t}=Yt();let r;return typeof window!="undefined"&&xt()!=null&&t?r=window.setTimeout(()=>Mn.set(!0),t):Mn.set(!0),Fo(e).then(()=>{en.set(e)}).finally(()=>{clearTimeout(r),Mn.set(!1)})}return en.set(e)},it=df(cf({},en),{set:pf}),bn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var vf=Object.defineProperty,tn=Object.getOwnPropertySymbols,Go=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,is=(e,t,r)=>t in e?vf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pi=(e,t)=>{for(var r in t||(t={}))Go.call(t,r)&&is(e,r,t[r]);if(tn)for(var r of tn(t))ko.call(t,r)&&is(e,r,t[r]);return e},Jt=(e,t)=>{var r={};for(var n in e)Go.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&tn)for(var n of tn(e))t.indexOf(n)<0&&ko.call(e,n)&&(r[n]=e[n]);return r};const gr=(e,t)=>{const{formats:r}=Yt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},mf=bn(e=>{var t=e,{locale:r,format:n}=t,i=Jt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=gr("number",n)),new Intl.NumberFormat(r,i)}),gf=bn(e=>{var t=e,{locale:r,format:n}=t,i=Jt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=gr("date",n):Object.keys(i).length===0&&(i=gr("date","short")),new Intl.DateTimeFormat(r,i)}),_f=bn(e=>{var t=e,{locale:r,format:n}=t,i=Jt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=gr("time",n):Object.keys(i).length===0&&(i=gr("time","short")),new Intl.DateTimeFormat(r,i)}),bf=(e={})=>{var t=e,{locale:r=xt()}=t,n=Jt(t,["locale"]);return mf(Pi({locale:r},n))},Ef=(e={})=>{var t=e,{locale:r=xt()}=t,n=Jt(t,["locale"]);return gf(Pi({locale:r},n))},yf=(e={})=>{var t=e,{locale:r=xt()}=t,n=Jt(t,["locale"]);return _f(Pi({locale:r},n))},xf=bn((e,t=xt())=>new Wl(e,t,Yt().formats,{ignoreTag:Yt().ignoreTag})),wf=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=xt(),default:l}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Ro(e,u);if(!h)h=(s=(i=(n=(r=Yt()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!o)return h;let c=h;try{c=xf(h,u).format(o)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message)}return c},Tf=(e,t)=>yf(t).format(e),Sf=(e,t)=>Ef(t).format(e),Af=(e,t)=>bf(t).format(e),Hf=(e,t=xt())=>Ro(e,t),jo=Zt([it,Qt],()=>wf);Zt([it],()=>Tf);Zt([it],()=>Sf);Zt([it],()=>Af);Zt([it,Qt],()=>Hf);function Nf({withLocale:e,translations:t}){it.subscribe(r=>{r==null&&(Qt.set(t),it.set(e))})}function Vo(e,t){Do(e,t)}function Of(e){it.set(e)}function Xo(e){Object.keys(e).forEach(t=>{Vo(t,e[t])})}function Bf(e){const t=new URL(e);fetch(t.href).then(r=>r.json()).then(r=>{Object.keys(r).forEach(n=>{Vo(n,r[n])})}).catch(r=>{console.log(r)})}const Pf=1e3,If={Unstarted:"scheduled",Running:"ongoing",Closing:"ended",Closed:"ended"},rn=e=>e==null||e===""?NaN:typeof e=="number"?e:Date.parse(e),qo=({state:e,startTime:t,endTime:r,isNew:n=!1,now:i=Date.now()})=>{const s=rn(t),a=rn(r);let o=If[e];return o||(o=i<s?"scheduled":i<a?"ongoing":"ended"),o==="scheduled"&&i>=s&&(o="ongoing"),o==="ongoing"&&i>=a&&(o="ended"),o==="ongoing"&&n?"new":o},Cf=e=>String(e).padStart(2,"0"),Mf=(e,t=Date.now())=>{const r=Math.floor((e-t)/1e3);if(Number.isNaN(r)||r<=0)return null;const n=Math.floor(r/86400),i=Math.floor(r%86400/3600),s=Math.floor(r%3600/60),a=r%60;return[n,i,s,a].map(Cf).join(" : ")},ss=(e,t)=>{const r={month:"short",day:"numeric"};try{return new Intl.DateTimeFormat(t||"en",r).format(e)}catch(n){return new Intl.DateTimeFormat("en",r).format(e)}},Lf=(e,t,r)=>Number.isNaN(e)||Number.isNaN(t)?"":`${ss(e,r)} - ${ss(t,r)}`,Rf=(e,t,r,n=Date.now(),i)=>{const s=rn(t),a=rn(r);if(e==="ended"){const h=Lf(s,a,i);return h?{date:h}:{}}const o=e==="scheduled",u=o?s:a,l=Mf(u,n);return l?{label:o?"tournamentStatus.startsIn":"tournamentStatus.endsIn",countdown:l,target:new Date(u).toISOString()}:{}};let nn=0,sn,zo=Ne(ut(Date.now()));const os=()=>{pe(zo,Date.now(),!0)},Wo=()=>{sn===void 0&&(os(),sn=setInterval(os,Pf))},Yo=()=>{clearInterval(sn),sn=void 0},Zo=()=>{document.hidden?Yo():Wo()},$f=()=>{nn+=1,!(nn>1)&&(document.addEventListener("visibilitychange",Zo),document.hidden||Wo())},Df=()=>{nn-=1,!(nn>0)&&(Yo(),document.removeEventListener("visibilitychange",Zo))},Qo=()=>(Vs(()=>($f(),Df)),{get now(){return B(zo)}});var Uf=Or('<span class="timer-date svelte-1gqjw6m"> </span>'),Ff=Or('<span class="timer-label svelte-1gqjw6m"> </span> <span class="timer-dash svelte-1gqjw6m"></span> <span class="timer-countdown"> </span>',1),Gf=Or('<div class="timer svelte-1gqjw6m"><!> <!></div>'),kf=Or('<div class="tournament-badge svelte-1gqjw6m"><div class="status-pill svelte-1gqjw6m"><span></span> <span class="status-label svelte-1gqjw6m"> </span></div> <!></div>');const jf={hash:"svelte-1gqjw6m",code:`.tournament-badge.svelte-1gqjw6m {box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:2px 8px 2px 2px;gap:6px;position:relative;background-color:var(--alpha-white-10, rgba(0, 0, 0, 0.3));border:1px solid var(--alpha-white-25, rgba(251, 251, 251, 0.2));backdrop-filter:blur(10px);border-radius:100px;width:fit-content;height:25px;&[data-status='scheduled'],
6
- &[data-status='ongoing'] {background-color:var(--alpha-white-10, rgba(251, 251, 251, 0.1));}.status-pill:where(.svelte-1gqjw6m) {box-sizing:border-box;display:flex;align-items:center;gap:4px;padding:2px 8px 2px 6px;border-radius:20px;border:0.8px solid var(--alpha-white-25, rgba(251, 251, 251, 0.2));box-shadow:0px 0.83px 1.66px 0px rgba(16, 24, 40, 0.05);background-color:var(--alpha-black-20, rgba(0, 0, 0, 0.2));height:21px;.dot-status:where(.svelte-1gqjw6m) {width:5px;height:5px;border-radius:50%;flex-shrink:0;transition:background 0.2s ease,
7
- box-shadow 0.2s ease;&.new {background:var(--semantic-success-400, rgba(45, 223, 0, 1));}&.scheduled {background:var(--semantic-info-400, rgba(0, 156, 245, 1));}&.ended {background:var(--secondary-300, rgba(78, 103, 134, 1));}&.ongoing {background:var(--border-alert, rgba(255, 205, 5, 1));}}.status-label:where(.svelte-1gqjw6m) {font-weight:500;font-size:11px;line-height:13px;color:var(--secondary-50, rgba(223, 227, 232, 1));}}.timer:where(.svelte-1gqjw6m) {display:flex;align-items:center;gap:6px;color:var(--secondary-50, rgba(223, 227, 232, 1));font-size:10px;line-height:1;white-space:nowrap;.timer-label:where(.svelte-1gqjw6m),
8
- .timer-date:where(.svelte-1gqjw6m) {font-weight:400;}.timer-dash:where(.svelte-1gqjw6m) {font-weight:500;opacity:0.7;}}}`};function Jo(e,t){di(t,!0),ho(e,jf);const r=()=>po(jo,"$_",n),[n,i]=vo(),s=Ot(t,"state"),a=Ot(t,"startTime"),o=Ot(t,"endTime"),u=Ot(t,"isNew",7,!1),l=Ot(t,"language",7,"en");Xo(ua.STATUS_BADGE_TRANSLATIONS);const h=Qo(),c=$n(()=>qo({state:s(),startTime:a(),endTime:o(),isNew:u(),now:h.now})),p=$n(()=>Rf(B(c),a(),o(),h.now,l()));var v={get state(){return s()},set state(R){s(R),st()},get startTime(){return a()},set startTime(R){a(R),st()},get endTime(){return o()},set endTime(R){o(R),st()},get isNew(){return u()},set isNew(R=!1){u(R),st()},get language(){return l()},set language(R="en"){l(R),st()}},d=kf(),m=cr(d),g=cr(m);let y;var O=Nt(g,2),C=Cr(O,!0);ur(m);var te=Nt(m,2);{var F=R=>{var re=Gf(),ne=cr(re);{var wt=De=>{var Kt=Uf(),Br=Cr(Kt,!0);Fr(()=>Mr(Br,B(p).date)),Bt(De,Kt)};kr(ne,De=>{B(p).date&&De(wt)})}var be=Nt(ne,2);{var En=De=>{var Kt=Ff(),Br=Fs(Kt),Ko=Cr(Br,!0),Ii=Nt(Br,2);Ii.textContent="-";var ea=Nt(Ii,2),ta=Cr(ea,!0);Fr(ra=>{Mr(Ko,ra),Mr(ta,B(p).countdown)},[()=>r()(B(p).label)]),Bt(De,Kt)};kr(be,De=>{B(p).countdown&&De(En)})}ur(re),Bt(R,re)};kr(te,R=>{(B(p).date||B(p).countdown)&&R(F)})}ur(d),Fr(R=>{Jn(d,"data-status",B(c)),Jn(m,"data-status",B(c)),y=co(g,1,"dot dot-status svelte-1gqjw6m",null,y,{new:B(c)==="new",scheduled:B(c)==="scheduled",ongoing:B(c)==="ongoing",ended:B(c)==="ended"}),Mr(C,R)},[()=>r()(`tournamentStatus.${B(c)}`)]),Bt(e,d);var z=pi(v);return i(),z}go(Jo,{state:{},startTime:{},endTime:{},isNew:{},language:{}},[],[],{mode:"open"});exports.$format=jo;exports.StatusBadge=Jo;exports.append=Bt;exports.append_styles=ho;exports.bind_this=Lu;exports.child=cr;exports.comment=vu;exports.commonjsGlobal=Gu;exports.create_custom_element=go;exports.delegate=cu;exports.delegated=hu;exports.each=Au;exports.event=fu;exports.first_child=Fs;exports.flushSync=st;exports.from_html=Or;exports.get=B;exports.getDefaultExportFromCjs=_o;exports.if_block=kr;exports.loadTranslations=Bf;exports.noop=Me;exports.pop=pi;exports.prop=Ot;exports.proxy=ut;exports.push=di;exports.registerTranslations=Xo;exports.replay_events=uu;exports.reset=ur;exports.resolveTournamentStatus=qo;exports.set=pe;exports.setLocale=Of;exports.set_attribute=Jn;exports.set_class=co;exports.setupI18n=Nf;exports.setup_stores=vo;exports.sibling=Nt;exports.snippet=Tu;exports.state=Ne;exports.store_get=po;exports.template_effect=Fr;exports.useTournamentClock=Qo;exports.user_derived=$n;exports.user_effect=Vs;exports.user_pre_effect=eu;