@ticketlayer/elements 0.3.1 → 0.3.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.
- package/README.md +15 -15
- package/dist/cjs/{index-DfzcrE9-.js → index-BpfoKd9Q.js} +276 -1797
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ticketlayer-elements.cjs.js +2 -2
- package/dist/cjs/tl-buy-modal.cjs.entry.js +2 -2
- package/dist/cjs/tl-buy-tickets-button.cjs.entry.js +1 -1
- package/dist/cjs/tl-buy-tickets-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/tl-cart-badge.cjs.entry.js +1 -1
- package/dist/cjs/tl-cart-drawer.cjs.entry.js +1 -1
- package/dist/cjs/tl-cart.cjs.entry.js +1 -1
- package/dist/cjs/tl-checkout-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/tl-event-card.cjs.entry.js +1 -1
- package/dist/cjs/tl-event-list.cjs.entry.js +1 -1
- package/dist/cjs/tl-login.cjs.entry.js +1 -1
- package/dist/cjs/tl-my-orders.cjs.entry.js +1 -1
- package/dist/cjs/tl-occurrence-selector_2.cjs.entry.js +1 -1
- package/dist/cjs/tl-order-confirmation.cjs.entry.js +1 -1
- package/dist/cjs/tl-order-tickets_2.cjs.entry.js +1 -1
- package/dist/cjs/tl-promo-code.cjs.entry.js +1 -1
- package/dist/cjs/tl-seat-map.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/tl-buy-modal/tl-buy-modal.js +1 -1
- package/dist/collection/components/tl-buy-tickets-button/tl-buy-tickets-button.js +3 -3
- package/dist/collection/components/tl-cart/tl-cart.js +2 -2
- package/dist/collection/components/tl-event-card/tl-event-card.js +1 -1
- package/dist/collection/components/tl-login/tl-login.js +1 -1
- package/dist/collection/components/tl-occurrence-selector/tl-occurrence-selector.js +2 -2
- package/dist/collection/components/tl-promo-code/tl-promo-code.js +1 -1
- package/dist/collection/components/tl-ticket/tl-ticket.js +1 -1
- package/dist/collection/components/tl-ticket-selector/tl-ticket-selector.js +1 -1
- package/dist/components/tl-buy-modal.js +1 -1
- package/dist/elements.docs.d.ts +26 -0
- package/dist/elements.docs.json +32 -14
- package/dist/esm/{index-Ba-RZTFI.js → index-CNX8hZa8.js} +276 -1797
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/ticketlayer-elements.js +3 -3
- package/dist/esm/tl-buy-modal.entry.js +2 -2
- package/dist/esm/tl-buy-tickets-button.entry.js +1 -1
- package/dist/esm/tl-buy-tickets-wrapper.entry.js +1 -1
- package/dist/esm/tl-cart-badge.entry.js +1 -1
- package/dist/esm/tl-cart-drawer.entry.js +1 -1
- package/dist/esm/tl-cart.entry.js +1 -1
- package/dist/esm/tl-checkout-wrapper.entry.js +1 -1
- package/dist/esm/tl-event-card.entry.js +1 -1
- package/dist/esm/tl-event-list.entry.js +1 -1
- package/dist/esm/tl-login.entry.js +1 -1
- package/dist/esm/tl-my-orders.entry.js +1 -1
- package/dist/esm/tl-occurrence-selector_2.entry.js +1 -1
- package/dist/esm/tl-order-confirmation.entry.js +1 -1
- package/dist/esm/tl-order-tickets_2.entry.js +1 -1
- package/dist/esm/tl-promo-code.entry.js +1 -1
- package/dist/esm/tl-seat-map.entry.js +1 -1
- package/dist/ticketlayer-elements/index.esm.js +1 -1
- package/dist/ticketlayer-elements/{p-340ab4f5.entry.js → p-0b1d16f8.entry.js} +1 -1
- package/dist/ticketlayer-elements/{p-9a903ff6.entry.js → p-1471f6d8.entry.js} +1 -1
- package/dist/ticketlayer-elements/p-1c51cbc1.entry.js +1 -0
- package/dist/ticketlayer-elements/{p-fb9444c4.entry.js → p-5169f68b.entry.js} +1 -1
- package/dist/ticketlayer-elements/{p-82752e3b.entry.js → p-895ba1f3.entry.js} +1 -1
- package/dist/ticketlayer-elements/{p-b6d479ad.entry.js → p-8d5722e1.entry.js} +1 -1
- package/dist/ticketlayer-elements/{p-976770f3.entry.js → p-917d8e09.entry.js} +1 -1
- package/dist/ticketlayer-elements/{p-9372ff1f.entry.js → p-9629029a.entry.js} +1 -1
- package/dist/ticketlayer-elements/p-CNX8hZa8.js +3 -0
- package/dist/ticketlayer-elements/{p-0291df4c.entry.js → p-a22714d0.entry.js} +1 -1
- package/dist/ticketlayer-elements/{p-11273f8f.entry.js → p-bf73044b.entry.js} +1 -1
- package/dist/ticketlayer-elements/{p-41d22d7c.entry.js → p-e02079fa.entry.js} +1 -1
- package/dist/ticketlayer-elements/{p-f5846f61.entry.js → p-e04ace15.entry.js} +1 -1
- package/dist/ticketlayer-elements/{p-a5c90b68.entry.js → p-e6fab1d5.entry.js} +1 -1
- package/dist/ticketlayer-elements/{p-eb640760.entry.js → p-f826b753.entry.js} +1 -1
- package/dist/ticketlayer-elements/{p-9c9072c8.entry.js → p-fa639d88.entry.js} +1 -1
- package/dist/ticketlayer-elements/{p-9cb3ab24.entry.js → p-fbaca948.entry.js} +1 -1
- package/dist/ticketlayer-elements/ticketlayer-elements.esm.js +1 -1
- package/dist/types/components.d.ts +133 -36
- package/dist/types/stencil-public-runtime.d.ts +97 -57
- package/elements.catalogue.json +2 -2
- package/loader/index.d.ts +1 -1
- package/package.json +23 -30
- package/dist/ticketlayer-elements/p-Ba-RZTFI.js +0 -2
- package/dist/ticketlayer-elements/p-f6314d1e.entry.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const t=()=>{},e=":root{--tl-font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;--tl-font-family-mono:ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;--tl-primary:#6366f1;--tl-primary-foreground:#ffffff;--tl-secondary:#f3f4f6;--tl-secondary-foreground:#111827;--tl-background:#ffffff;--tl-foreground:#111827;--tl-muted:#f9fafb;--tl-muted-foreground:#6b7280;--tl-border:#e5e7eb;--tl-success:#10b981;--tl-success-foreground:#ffffff;--tl-warning:#f59e0b;--tl-warning-foreground:#ffffff;--tl-error:#ef4444;--tl-error-foreground:#ffffff;--tl-radius-sm:0.25rem;--tl-radius-md:0.5rem;--tl-radius-lg:0.75rem;--tl-spacing-1:0.25rem;--tl-spacing-2:0.5rem;--tl-spacing-3:0.75rem;--tl-spacing-4:1rem;--tl-spacing-6:1.5rem;--tl-spacing-8:2rem}";var n,s,i,r,o,l,f,c,u,a,h,p,d,v,m,g,b,w=Object.create,y=Object.defineProperty,$=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,O=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,k=t=>{throw TypeError(t)},M=(t,e)=>function(){return e||(0,t[S(t)[0]])((e={exports:{}}).exports,e),e.exports},E=(t,e,n)=>e.has(t)||k("Cannot "+n),x=(t,e,n)=>(E(t,e,"read from private field"),n?n.call(t):e.get(t)),N=(t,e,n)=>e.has(t)?k("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),R=(t,e,n)=>(E(t,e,"write to private field"),e.set(t,n),n),P=(t,e,n)=>(E(t,e,"access private method"),n),C=M({"node_modules/balanced-match/index.js"(t,e){function n(t,e,n){t instanceof RegExp&&(t=s(t,n)),e instanceof RegExp&&(e=s(e,n));var r=i(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function s(t,e){var n=e.match(t);return n?n[0]:null}function i(t,e,n){var s,i,r,o,l,f=n.indexOf(t),c=n.indexOf(e,f+1),u=f;if(f>=0&&c>0){if(t===e)return[f,c];for(s=[],r=n.length;u>=0&&!l;)u==f?(s.push(u),f=n.indexOf(t,u+1)):1==s.length?l=[s.pop(),c]:((i=s.pop())<r&&(r=i,o=c),c=n.indexOf(e,u+1)),u=f<c&&f>=0?f:c;s.length&&(l=[r,o])}return l}e.exports=n,n.range=i}}),W=M({"node_modules/brace-expansion/index.js"(t,e){var n=C();e.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),v(function(t){return t.split("\\\\").join(s).split("\\{").join(i).split("\\}").join(r).split("\\,").join(o).split("\\.").join(l)}(t),!0).map(c)):[]};var s="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",r="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function f(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function c(t){return t.split(s).join("\\").split(i).join("{").split(r).join("}").split(o).join(",").split(l).join(".")}function u(t){if(!t)return[""];var e=[],s=n("{","}",t);if(!s)return t.split(",");var i=s.body,r=s.post,o=s.pre.split(",");o[o.length-1]+="{"+i+"}";var l=u(r);return r.length&&(o[o.length-1]+=l.shift(),o.push.apply(o,l)),e.push.apply(e,o),e}function a(t){return"{"+t+"}"}function h(t){return/^-?0\d/.test(t)}function p(t,e){return t<=e}function d(t,e){return t>=e}function v(t,e){var s=[],i=n("{","}",t);if(!i)return[t];var o=i.pre,l=i.post.length?v(i.post,!1):[""];if(/\$$/.test(i.pre))for(var c=0;c<l.length;c++)s.push(W=o+"{"+i.body+"}"+l[c]);else{var m,g,b=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),y=b||w,$=i.body.indexOf(",")>=0;if(!y&&!$)return i.post.match(/,(?!,).*\}/)?v(t=i.pre+"{"+i.body+r+i.post):[t];if(y)m=i.body.split(/\.\./);else if(1===(m=u(i.body)).length&&1===(m=v(m[0],!1).map(a)).length)return l.map((function(t){return i.pre+m[0]+t}));if(y){var S=f(m[0]),O=f(m[1]),j=Math.max(m[0].length,m[1].length),k=3==m.length?Math.abs(f(m[2])):1,M=p;O<S&&(k*=-1,M=d);var E=m.some(h);g=[];for(var x=S;M(x,O);x+=k){var N;if(w)"\\"===(N=String.fromCharCode(x))&&(N="");else if(N=x+"",E){var R=j-N.length;if(R>0){var P=Array(R+1).join("0");N=x<0?"-"+P+N.slice(1):P+N}}g.push(N)}}else{g=[];for(var C=0;C<m.length;C++)g.push.apply(g,v(m[C],!1))}for(C=0;C<g.length;C++)for(c=0;c<l.length;c++){var W=o+g[C]+l[c];(!e||y||W)&&s.push(W)}}return s}}}),A=(t,e)=>{var n;Object.entries(null!=(n=e.i.t)?n:{}).map((([n,[s]])=>{if(31&s||32&s){const s=t[n],i=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(t,n,{get(){return i.get.call(this)},set(t){i.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.o.has(n)?e.o.get(n):s}}))},L=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},T=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.l=t,512&e.i.u&&A(t,e))},z=(t,e)=>e in t,F=(t,e)=>(0,console.error)(t,e),_=new Map,D=new Map,I="slot-fb{display:contents}slot-fb[hidden]{display:none}",U="undefined"!=typeof window?window:{},B={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)},G=t=>Promise.resolve(t),H=(()=>{try{return!!U.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),Z=!!H&&(()=>!!U.document&&Object.getOwnPropertyDescriptor(U.document.adoptedStyleSheets,"length").writable)(),V=!1,q=[],Y=[],J=(t,e)=>n=>{t.push(n),V||(V=!0,e&&4&B.u?X(Q):B.raf(Q))},K=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){F(t)}t.length=0},Q=()=>{K(q),K(Y),(V=q.length>0)&&B.raf(Q)},X=t=>G().then(t),tt=J(Y,!0),et=t=>"object"==(t=typeof t)||"function"===t,nt=((t,e,n)=>(n=null!=t?w(O(t)):{},((t,e,n,s)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of S(e))j.call(t,n)||undefined===n||y(t,n,{get:()=>e[n],enumerable:!(s=$(e,n))||s.enumerable});return t})(y(n,"default",{value:t,enumerable:!0}),t)))(W()),st=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},it={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},rt=t=>t.replace(/[[\]\\-]/g,"\\$&"),ot=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),lt=t=>t.join(""),ft=(t,e)=>{const n=e;if("["!==t.charAt(n))throw Error("not in a brace expression");const s=[],i=[];let r=n+1,o=!1,l=!1,f=!1,c=!1,u=n,a="";t:for(;r<t.length;){const e=t.charAt(r);if("!"!==e&&"^"!==e||r!==n+1){if("]"===e&&o&&!f){u=r+1;break}if(o=!0,"\\"!==e||f){if("["===e&&!f)for(const[e,[o,f,c]]of Object.entries(it))if(t.startsWith(e,r)){if(a)return["$.",!1,t.length-n,!0];r+=e.length,c?i.push(o):s.push(o),l=l||f;continue t}f=!1,a?(e>a?s.push(rt(a)+"-"+rt(e)):e===a&&s.push(rt(e)),a="",r++):t.startsWith("-]",r+1)?(s.push(rt(e+"-")),r+=2):t.startsWith("-",r+1)?(a=e,r+=2):(s.push(rt(e)),r++)}else f=!0,r++}else c=!0,r++}if(u<r)return["",!1,0,!1];if(!s.length&&!i.length)return["$.",!1,t.length-n,!0];if(0===i.length&&1===s.length&&/^\\?.$/.test(s[0])&&!c){const t=2===s[0].length?s[0].slice(-1):s[0];return[ot(t),!1,u-n,!1]}const h="["+(c?"^":"")+lt(s)+"]",p="["+(c?"":"^")+lt(i)+"]";return[s.length&&i.length?"("+h+"|"+p+")":s.length?h:p,l,u-n,!0]},ct=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),ut=new Set(["!","?","+","*","@"]),at=t=>ut.has(t),ht="(?!\\.)",pt=new Set(["[","."]),dt=new Set(["..","."]),vt=new Set("().*{}+?[]^$\\!"),mt=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),gt="[^/]",bt=gt+"*?",wt=gt+"+?",yt=class t{constructor(t,e,d={}){N(this,p),((t,e,n)=>{((t,e,n)=>{e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,e+"",n)})(this,"type"),N(this,n),N(this,s),N(this,i,!1),N(this,r,[]),N(this,o),N(this,l),N(this,f),N(this,c,!1),N(this,u),N(this,a),N(this,h,!1),this.type=t,t&&R(this,s,!0),R(this,o,e),R(this,n,x(this,o)?x(x(this,o),n):this),R(this,u,x(this,n)===this?d:x(x(this,n),u)),R(this,f,x(this,n)===this?[]:x(x(this,n),f)),"!"!==t||x(x(this,n),c)||x(this,f).push(this),R(this,l,x(this,o)?x(x(this,o),r).length:0)}get hasMagic(){if(void 0!==x(this,s))return x(this,s);for(const t of x(this,r))if("string"!=typeof t&&(t.type||t.hasMagic))return R(this,s,!0);return x(this,s)}toString(){return void 0!==x(this,a)?x(this,a):R(this,a,this.type?this.type+"("+x(this,r).map((t=>t+"")).join("|")+")":x(this,r).map((t=>t+"")).join(""))}push(...e){for(const n of e)if(""!==n){if("string"!=typeof n&&!(n instanceof t&&x(n,o)===this))throw Error("invalid part: "+n);x(this,r).push(n)}}toJSON(){var t;const e=null===this.type?x(this,r).slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...x(this,r).map((t=>t.toJSON()))];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===x(this,n)||x(x(this,n),c)&&"!"===(null==(t=x(this,o))?void 0:t.type))&&e.push({}),e}isStart(){var e;if(x(this,n)===this)return!0;if(!(null==(e=x(this,o))?void 0:e.isStart()))return!1;if(0===x(this,l))return!0;const s=x(this,o);for(let e=0;e<x(this,l);e++){const n=x(s,r)[e];if(!(n instanceof t&&"!"===n.type))return!1}return!0}isEnd(){var t,e,s;if(x(this,n)===this)return!0;if("!"===(null==(t=x(this,o))?void 0:t.type))return!0;if(!(null==(e=x(this,o))?void 0:e.isEnd()))return!1;if(!this.type)return null==(s=x(this,o))?void 0:s.isEnd();const i=x(this,o)?x(x(this,o),r).length:0;return x(this,l)===i-1}copyIn(t){this.push("string"==typeof t?t:t.clone(this))}clone(e){const n=new t(this.type,e);for(const t of x(this,r))n.copyIn(t);return n}static fromGlob(e,n={}){var s;const i=new t(null,void 0,n);return P(s=t,v,m).call(s,e,i,0,n),i}toMMPattern(){if(this!==x(this,n))return x(this,n).toMMPattern();const t=""+this,[e,i,r,o]=this.toRegExpSource();if(!(r||x(this,s)||x(this,u).nocase&&!x(this,u).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const l=(x(this,u).nocase?"i":"")+(o?"u":"");return Object.assign(RegExp(`^${e}$`,l),{_src:e,_glob:t})}get options(){return x(this,u)}toRegExpSource(e){var l;const f=null!=e?e:!!x(this,u).dot;if(x(this,n)===this&&P(this,p,d).call(this),!this.type){const u=this.isStart()&&this.isEnd(),a=x(this,r).map((n=>{var r;const[o,l,f,c]="string"==typeof n?P(r=t,v,b).call(r,n,x(this,s),u):n.toRegExpSource(e);return R(this,s,x(this,s)||f),R(this,i,x(this,i)||c),o})).join("");let h="";if(this.isStart()&&"string"==typeof x(this,r)[0]&&(1!==x(this,r).length||!dt.has(x(this,r)[0]))){const t=pt,n=f&&t.has(a.charAt(0))||a.startsWith("\\.")&&t.has(a.charAt(2))||a.startsWith("\\.\\.")&&t.has(a.charAt(4)),s=!f&&!e&&t.has(a.charAt(0));h=n?"(?!(?:^|/)\\.\\.?(?:$|/))":s?ht:""}let p="";return this.isEnd()&&x(x(this,n),c)&&"!"===(null==(l=x(this,o))?void 0:l.type)&&(p="(?:$|\\/)"),[h+a+p,ct(a),R(this,s,!!x(this,s)),x(this,i)]}const a="*"===this.type||"+"===this.type,m="!"===this.type?"(?:(?!(?:":"(?:";let w=P(this,p,g).call(this,f);if(this.isStart()&&this.isEnd()&&!w&&"!"!==this.type){const t=""+this;return R(this,r,[t]),this.type=null,R(this,s,void 0),[t,ct(""+this),!1,!1]}let y=!a||e||f?"":P(this,p,g).call(this,!0);y===w&&(y=""),y&&(w=`(?:${w})(?:${y})*?`);let $="";return $="!"===this.type&&x(this,h)?(this.isStart()&&!f?ht:"")+wt:m+w+("!"===this.type?"))"+(!this.isStart()||f||e?"":ht)+bt+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&y?")":"*"===this.type&&y?")?":")"+this.type),[$,ct(w),R(this,s,!!x(this,s)),x(this,i)]}};n=new WeakMap,s=new WeakMap,i=new WeakMap,r=new WeakMap,o=new WeakMap,l=new WeakMap,f=new WeakMap,c=new WeakMap,u=new WeakMap,a=new WeakMap,h=new WeakMap,p=new WeakSet,d=function(){if(this!==x(this,n))throw Error("should only call on root");if(x(this,c))return this;let t;for(R(this,c,!0);t=x(this,f).pop();){if("!"!==t.type)continue;let e=t,n=x(e,o);for(;n;){for(let s=x(e,l)+1;!n.type&&s<x(n,r).length;s++)for(const e of x(t,r)){if("string"==typeof e)throw Error("string part in extglob AST??");e.copyIn(x(n,r)[s])}e=n,n=x(e,o)}}return this},v=new WeakSet,m=function(t,e,n,i){var o,l;let f=!1,c=!1,u=-1,a=!1;if(null===e.type){let s=n,r="";for(;s<t.length;){const n=t.charAt(s++);if(f||"\\"===n)f=!f,r+=n;else if(c)s===u+1?"^"!==n&&"!"!==n||(a=!0):"]"!==n||s===u+2&&a||(c=!1),r+=n;else if("["!==n)if(i.noext||!at(n)||"("!==t.charAt(s))r+=n;else{e.push(r),r="";const l=new yt(n,e);s=P(o=yt,v,m).call(o,t,l,s,i),e.push(l)}else c=!0,u=s,a=!1,r+=n}return e.push(r),s}let p=n+1,d=new yt(null,e);const g=[];let b="";for(;p<t.length;){const n=t.charAt(p++);if(f||"\\"===n)f=!f,b+=n;else if(c)p===u+1?"^"!==n&&"!"!==n||(a=!0):"]"!==n||p===u+2&&a||(c=!1),b+=n;else if("["!==n)if(at(n)&&"("===t.charAt(p)){d.push(b),b="";const e=new yt(n,d);d.push(e),p=P(l=yt,v,m).call(l,t,e,p,i)}else if("|"!==n){if(")"===n)return""===b&&0===x(e,r).length&&R(e,h,!0),d.push(b),b="",e.push(...g,d),p;b+=n}else d.push(b),b="",g.push(d),d=new yt(null,e);else c=!0,u=p,a=!1,b+=n}return e.type=null,R(e,s,void 0),R(e,r,[t.substring(n-1)]),p},g=function(t){return x(this,r).map((e=>{if("string"==typeof e)throw Error("string type in extglob ast??");const[n,s,r,o]=e.toRegExpSource(t);return R(this,i,x(this,i)||o),n})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")},b=function(t,e,n=!1){let s=!1,i="",r=!1;for(let o=0;o<t.length;o++){const l=t.charAt(o);if(s)s=!1,i+=(vt.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[n,s,l,f]=ft(t,o);if(l){i+=n,r=r||s,o+=l-1,e=e||f;continue}}"*"!==l?"?"!==l?i+=mt(l):(i+=gt,e=!0):(i+=n&&"*"===t?wt:bt,e=!0)}else o===t.length-1?i+="\\\\":s=!0}return[i,ct(t),!!e,r]},N(yt,v);var $t=yt,St=(t,e,n={})=>(st(e),!(!n.nocomment&&"#"===e.charAt(0))&&new qt(e,n).match(t)),Ot=/^\*+([^+@!?\*\[\(]*)$/,jt=t=>e=>!e.startsWith(".")&&e.endsWith(t),kt=t=>e=>e.endsWith(t),Mt=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Et=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),xt=/^\*+\.\*+$/,Nt=t=>!t.startsWith(".")&&t.includes("."),Rt=t=>"."!==t&&".."!==t&&t.includes("."),Pt=/^\.\*+$/,Ct=t=>"."!==t&&".."!==t&&t.startsWith("."),Wt=/^\*+$/,At=t=>0!==t.length&&!t.startsWith("."),Lt=t=>0!==t.length&&"."!==t&&".."!==t,Tt=/^\?+([^+@!?\*\[\(]*)?$/,zt=([t,e=""])=>{const n=It([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Ft=([t,e=""])=>{const n=Ut([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},_t=([t,e=""])=>{const n=Ut([t]);return e?t=>n(t)&&t.endsWith(e):n},Dt=([t,e=""])=>{const n=It([t]);return e?t=>n(t)&&t.endsWith(e):n},It=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},Ut=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Bt="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";St.sep="win32"===Bt?"\\":"/";var Gt=Symbol("globstar **");St.GLOBSTAR=Gt,St.filter=(t,e={})=>n=>St(n,t,e);var Ht=(t,e={})=>Object.assign({},t,e);St.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return St;const e=St;return Object.assign(((n,s,i={})=>e(n,s,Ht(t,i))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,Ht(t,n))}static defaults(n){return e.defaults(Ht(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,s={}){super(e,n,Ht(t,s))}static fromGlob(n,s={}){return e.AST.fromGlob(n,Ht(t,s))}},unescape:(n,s={})=>e.unescape(n,Ht(t,s)),escape:(n,s={})=>e.escape(n,Ht(t,s)),filter:(n,s={})=>e.filter(n,Ht(t,s)),defaults:n=>e.defaults(Ht(t,n)),makeRe:(n,s={})=>e.makeRe(n,Ht(t,s)),braceExpand:(n,s={})=>e.braceExpand(n,Ht(t,s)),match:(n,s,i={})=>e.match(n,s,Ht(t,i)),sep:e.sep,GLOBSTAR:Gt})};var Zt=(t,e={})=>(st(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,nt.default)(t));St.braceExpand=Zt,St.makeRe=(t,e={})=>new qt(t,e).makeRe(),St.match=(t,e,n={})=>{const s=new qt(e,n);return t=t.filter((t=>s.match(t))),s.options.nonull&&!t.length&&t.push(e),t};var Vt=/[?*]|[+@!]\(.*?\)|\[|\]/,qt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){st(t),this.options=e=e||{},this.pattern=t,this.platform=e.platform||Bt,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const n=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((t=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&Vt.test(t[2])||Vt.test(t[3])),n=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(n)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,s),this.set=s.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let n=0;n<t[e].length;n++)"**"===t[e][n]&&(t[e][n]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let n=e;for(;"**"===t[n+1];)n++;n!==e&&t.splice(e,n-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const n=t[t.length-1];return"**"===e&&"**"===n?t:".."===e&&n&&".."!==n&&"."!==n&&"**"!==n?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){const s=t[n];1===n&&""===s&&""===t[0]||"."!==s&&""!==s||(e=!0,t.splice(n,1),n--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let n=0;for(;-1!==(n=t.indexOf("..",n+1));){const s=t[n-1];s&&"."!==s&&".."!==s&&"**"!==s&&(e=!0,t.splice(n-1,2),n-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let n of t){let s=-1;for(;-1!==(s=n.indexOf("**",s+1));){let i=s;for(;"**"===n[i+1];)i++;i>s&&n.splice(s+1,i-s);const r=n[s+2],o=n[s+3];if(".."!==n[s+1])continue;if(!r||"."===r||".."===r||!o||"."===o||".."===o)continue;e=!0,n.splice(s,1);const l=n.slice(0);l[s]="**",t.push(l),s--}if(!this.preserveMultipleSlashes){for(let t=1;t<n.length-1;t++){const s=n[t];1===t&&""===s&&""===n[0]||"."!==s&&""!==s||(e=!0,n.splice(t,1),t--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(e=!0,n.pop())}let i=0;for(;-1!==(i=n.indexOf("..",i+1));){const t=n[i-1];t&&"."!==t&&".."!==t&&"**"!==t&&(e=!0,n.splice(i-1,2,...1===i&&"**"===n[i+1]?["."]:[]),0===n.length&&n.push(""),i-=2)}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let n=e+1;n<t.length;n++){const s=this.partsMatch(t[e],t[n],!this.preserveMultipleSlashes);s&&(t[e]=s,t[n]=[])}return t.filter((t=>t.length))}partsMatch(t,e,n=!1){let s=0,i=0,r=[],o="";for(;s<t.length&&i<e.length;)if(t[s]===e[i])r.push("b"===o?e[i]:t[s]),s++,i++;else if(n&&"**"===t[s]&&e[i]===t[s+1])r.push(t[s]),s++;else if(n&&"**"===e[i]&&t[s]===e[i+1])r.push(e[i]),i++;else if("*"!==t[s]||!e[i]||!this.options.dot&&e[i].startsWith(".")||"**"===e[i]){if("*"!==e[i]||!t[s]||!this.options.dot&&t[s].startsWith(".")||"**"===t[s])return!1;if("a"===o)return!1;o="b",r.push(e[i]),s++,i++}else{if("b"===o)return!1;o="a",r.push(t[s]),s++,i++}return t.length===e.length&&r}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,n=0;for(let s=0;s<t.length&&"!"===t.charAt(s);s++)e=!e,n++;n&&(this.pattern=t.slice(n)),this.negate=e}matchOne(t,e,n=!1){const s=this.options;if(this.isWindows){const n="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),s=!n&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),i="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=s?3:n?0:void 0,o=!i&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:i?0:void 0;if("number"==typeof r&&"number"==typeof o){const[n,s]=[t[r],e[o]];n.toLowerCase()===s.toLowerCase()&&(e[o]=n,o>r?e=e.slice(o):r>o&&(t=t.slice(r)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,o=0,l=t.length,f=e.length;r<l&&o<f;r++,o++){this.debug("matchOne loop");var c=e[o],u=t[r];if(this.debug(e,c,u),!1===c)return!1;if(c===Gt){this.debug("GLOBSTAR",[e,c,u]);var a=r,h=o+1;if(h===f){for(this.debug("** at the end");r<l;r++)if("."===t[r]||".."===t[r]||!s.dot&&"."===t[r].charAt(0))return!1;return!0}for(;a<l;){var p=t[a];if(this.debug("\nglobstar while",t,a,e,h,p),this.matchOne(t.slice(a),e.slice(h),n))return this.debug("globstar found match!",a,l,p),!0;if("."===p||".."===p||!s.dot&&"."===p.charAt(0)){this.debug("dot detected!",t,a,e,h);break}this.debug("globstar swallow a segment, and continue"),a++}return!(!n||(this.debug("\n>>> no match, partial?",t,a,e,h),a!==l))}let i;if("string"==typeof c?(i=u===c,this.debug("string match",c,u,i)):(i=c.test(u),this.debug("pattern match",c,u,i)),!i)return!1}if(r===l&&o===f)return!0;if(r===l)return n;if(o===f)return r===l-1&&""===t[r];throw Error("wtf?")}braceExpand(){return Zt(this.pattern,this.options)}parse(t){st(t);const e=this.options;if("**"===t)return Gt;if(""===t)return"";let n,s=null;(n=t.match(Wt))?s=e.dot?Lt:At:(n=t.match(Ot))?s=(e.nocase?e.dot?Et:Mt:e.dot?kt:jt)(n[1]):(n=t.match(Tt))?s=(e.nocase?e.dot?Ft:zt:e.dot?_t:Dt)(n):(n=t.match(xt))?s=e.dot?Rt:Nt:(n=t.match(Pt))&&(s=Ct);const i=$t.fromGlob(t,this.options).toMMPattern();return s&&"object"==typeof i&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,n=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",s=new Set(e.nocase?["i"]:[]);let i=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))s.add(e);return"string"==typeof t?(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(t):t===Gt?Gt:t._src}));return e.forEach(((t,s)=>{const i=e[s+1],r=e[s-1];t===Gt&&r!==Gt&&(void 0===r?void 0!==i&&i!==Gt?e[s+1]="(?:\\/|"+n+"\\/)?"+i:e[s]=n:void 0===i?e[s-1]=r+"(?:\\/|"+n+")?":i!==Gt&&(e[s-1]=r+"(?:\\/|\\/"+n+"\\/)"+i,e[s+1]=Gt))})),e.filter((t=>t!==Gt)).join("/")})).join("|");const[r,o]=t.length>1?["(?:",")"]:["",""];i="^"+r+i+o+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=RegExp(i,[...s].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const i=this.set;this.debug(this.pattern,"set",i);let r=s[s.length-1];if(!r)for(let t=s.length-2;!r&&t>=0;t--)r=s[t];for(let t=0;t<i.length;t++){const o=i[t];let l=s;if(n.matchBase&&1===o.length&&(l=[r]),this.matchOne(l,o,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return St.defaults(t).Minimatch}};function Yt(t){var e,n,s;return null!=(s=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?s:void 0}St.AST=$t,St.Minimatch=qt,St.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),St.unescape=ct,((t,e)=>{for(var n in e)y(t,n,{get:e[n],enumerable:!0})})({},{err:()=>Kt,map:()=>Qt,ok:()=>Jt,unwrap:()=>te,unwrapErr:()=>ee});var Jt=t=>({isOk:!0,isErr:!1,value:t}),Kt=t=>({isOk:!1,isErr:!0,value:t});function Qt(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>Jt(t))):Jt(n)}if(t.isErr)return Kt(t.value);throw"should never get here"}var Xt,te=t=>{if(t.isOk)return t.value;throw t.value},ee=t=>{if(t.isErr)return t.value;throw t.value};function ne(){var t;const n=this.attachShadow({mode:"open"});if(void 0===Xt&&(Xt=null!=(t=function(t){if(!H)return;const e=new CSSStyleSheet;return e.replaceSync(t),e}(e))?t:null),Xt)Z?n.adoptedStyleSheets.push(Xt):n.adoptedStyleSheets=[...n.adoptedStyleSheets,Xt];else if(!H){const t=document.createElement("style");t.innerHTML=e,n.prepend(t)}}var se=t=>{const e=fe(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&ie(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!re(t,le(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&fe(t,"childNodes").length&&se(t)}};function ie(t,e,n){let s,i=0,r=[];for(;i<t.length;i++){if(s=t[i],s["s-sr"]&&(!e||s["s-hn"]===e)&&(void 0===n||le(s)===n)&&(r.push(s),void 0!==n))return r;r=[...r,...ie(s.childNodes,e,n)]}return r}var re=(t,e,n=!0)=>{const s=[];(n&&t["s-sr"]||!t["s-sr"])&&s.push(t);let i=t;for(;i=i.nextSibling;)le(i)!==e||!n&&i["s-sr"]||s.push(i);return s},oe=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,le=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function fe(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var ce=new WeakMap,ue=t=>"sc-"+t.p,ae=(t,e,...n)=>{let s=null,i=null,r=null,o=!1,l=!1;const f=[],c=e=>{for(let n=0;n<e.length;n++)s=e[n],Array.isArray(s)?c(s):null!=s&&"boolean"!=typeof s&&((o="function"!=typeof t&&!et(s))&&(s+=""),o&&l?f[f.length-1].v+=s:f.push(o?he(null,s):s),l=o)};if(c(n),e){e.key&&(i=e.key),e.name&&(r=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=he(t,null);return u.m=e,f.length>0&&(u.$=f),u.S=i,u.O=r,u},he=(t,e)=>({u:0,j:t,v:e,k:null,$:null,m:null,S:null,O:null}),pe={},de=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};de("::slotted"),de(":host"),de(":host-context");var ve,me,ge=(t,e)=>null==t||et(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,be=t=>{var e;return null==(e=L(t))?void 0:e.$hostElement$},we=(t,e)=>{const n=be(t);return{emit:t=>ye(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},ye=(t,e,n)=>{const s=B.ce(e,n);return t.dispatchEvent(s),s},$e=(t,e,n,s,i,r)=>{if(n===s)return;let o=z(t,e),l=e.toLowerCase();if("class"===e){const e=t.classList,i=Oe(n);let r=Oe(s);e.remove(...i.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!i.includes(t))))}else if("style"===e){for(const e in n)s&&null!=s[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in s)n&&s[e]===n[e]||(e.includes("-")?t.style.setProperty(e,s[e]):t.style[e]=s[e])}else if("key"===e);else if("ref"===e)s&&s(t);else if(o||"o"!==e[0]||"n"!==e[1]){const l=et(s);if((o||l&&null!==s)&&!i)try{if(t.tagName.includes("-"))t[e]!==s&&(t[e]=s);else{const i=null==s?"":s;"list"===e?o=!1:null!=n&&t[e]==i||("function"==typeof t.__lookupSetter__(e)?t[e]=i:t.setAttribute(e,i))}}catch(t){}null==s||!1===s?!1===s&&""!==t.getAttribute(e)||t.removeAttribute(e):(!o||4&r||i)&&!l&&1===t.nodeType&&t.setAttribute(e,s=!0===s?"":s)}else if(e="-"===e[2]?e.slice(3):z(U,l)?l.slice(2):l[2]+e.slice(3),n||s){const i=e.endsWith(je);e=e.replace(ke,""),n&&B.rel(t,e,n,i),s&&B.ael(t,e,s,i)}},Se=/\s/,Oe=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Se):[]),je="Capture",ke=RegExp(je+"$"),Me=(t,e,n)=>{const s=11===e.k.nodeType&&e.k.host?e.k.host:e.k,i=t&&t.m||{},r=e.m||{};for(const t of Ee(Object.keys(i)))t in r||$e(s,t,i[t],void 0,n,e.u);for(const t of Ee(Object.keys(r)))$e(s,t,i[t],r[t],n,e.u)};function Ee(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var xe=!1,Ne=!1,Re=!1,Pe=!1,Ce=(t,e,n)=>{var s;const i=e.$[n];let r,o,l,f=0;if(xe||(Re=!0,"slot"===i.j&&(i.u|=i.$?2:1)),null!==i.v)r=i.k=U.document.createTextNode(i.v);else if(1&i.u)r=i.k=U.document.createTextNode(""),Me(null,i,Pe);else{if(Pe||(Pe="svg"===i.j),!U.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(r=i.k=U.document.createElementNS(Pe?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!xe&&2&i.u?"slot-fb":i.j),Pe&&"foreignObject"===i.j&&(Pe=!1),Me(null,i,Pe),i.$){const e="template"===i.j?r.content:r;for(f=0;f<i.$.length;++f)o=Ce(t,i,f),o&&e.appendChild(o)}"svg"===i.j?Pe=!1:"foreignObject"===r.tagName&&(Pe=!0)}return r["s-hn"]=me,3&i.u&&(r["s-sr"]=!0,r["s-cr"]=ve,r["s-sn"]=i.O||"",r["s-rf"]=null==(s=i.m)?void 0:s.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],s=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const i=this["s-cr"].parentElement;return(i.__childNodes?i.childNodes:(t=>{const e=[];for(let n=0;n<t.length;n++){const s=t[n]["s-nr"]||void 0;s&&s.isConnected&&e.push(s)}return e})(i.childNodes)).forEach((t=>{s===le(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(r),l=t&&t.$&&t.$[n],l&&l.j===i.j&&t.k&&We(t.k)),r},We=t=>{B.u|=1;const e=t.closest(me.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),s=Array.from(t.__childNodes||t.childNodes);for(const t of n?s.reverse():s)null!=t["s-sh"]&&(Be(e,t,null!=n?n:null),t["s-sh"]=void 0,Re=!0)}B.u&=-2},Ae=(t,e)=>{B.u|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===me&&n.push(e)}for(let t=n.length-1;t>=0;t--){const s=n[t];s["s-hn"]!==me&&s["s-ol"]&&(Be(Fe(s).parentNode,s,Fe(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,Re=!0),e&&Ae(s,e)}B.u&=-2},Le=(t,e,n,s,i,r)=>{let o,l=t["s-cr"]&&t["s-cr"].parentNode||t;for(l.shadowRoot&&l.tagName===me&&(l=l.shadowRoot),"template"===n.j&&(l=l.content);i<=r;++i)s[i]&&(o=Ce(null,n,i),o&&(s[i].k=o,Be(l,o,Fe(e))))},Te=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.k;Ue(e),t&&(Ne=!0,t["s-ol"]?t["s-ol"].remove():Ae(t,!0),t.remove())}}},ze=(t,e,n=!1)=>t.j===e.j&&("slot"===t.j?t.O===e.O:n?(n&&!t.S&&e.S&&(t.S=e.S),!0):t.S===e.S),Fe=t=>t&&t["s-ol"]||t,_e=(t,e,n=!1)=>{const s=e.k=t.k,i=t.$,r=e.$,o=e.j,l=e.v;let f;null===l?(Pe="svg"===o||"foreignObject"!==o&&Pe,"slot"!==o||xe||t.O!==e.O&&(e.k["s-sn"]=e.O||"",We(e.k.parentElement)),Me(t,e,Pe),null!==i&&null!==r?((t,e,n,s,i=!1)=>{let r,o,l=0,f=0,c=0,u=0,a=e.length-1,h=e[0],p=e[a],d=s.length-1,v=s[0],m=s[d];const g="template"===n.j?t.content:t;for(;l<=a&&f<=d;)if(null==h)h=e[++l];else if(null==p)p=e[--a];else if(null==v)v=s[++f];else if(null==m)m=s[--d];else if(ze(h,v,i))_e(h,v,i),h=e[++l],v=s[++f];else if(ze(p,m,i))_e(p,m,i),p=e[--a],m=s[--d];else if(ze(h,m,i))"slot"!==h.j&&"slot"!==m.j||Ae(h.k.parentNode,!1),_e(h,m,i),Be(g,h.k,p.k.nextSibling),h=e[++l],m=s[--d];else if(ze(p,v,i))"slot"!==h.j&&"slot"!==m.j||Ae(p.k.parentNode,!1),_e(p,v,i),Be(g,p.k,h.k),p=e[--a],v=s[++f];else{for(c=-1,u=l;u<=a;++u)if(e[u]&&null!==e[u].S&&e[u].S===v.S){c=u;break}c>=0?(o=e[c],o.j!==v.j?r=Ce(e&&e[f],n,c):(_e(o,v,i),e[c]=void 0,r=o.k),v=s[++f]):(r=Ce(e&&e[f],n,f),v=s[++f]),r&&Be(Fe(h.k).parentNode,r,Fe(h.k))}l>a?Le(t,null==s[d+1]?null:s[d+1].k,n,s,f,d):f>d&&Te(e,l,a)})(s,i,e,r,n):null!==r?(null!==t.v&&(s.textContent=""),Le(s,null,e,r,0,r.length-1)):!n&&null!==i&&Te(i,0,i.length-1),Pe&&"svg"===o&&(Pe=!1)):(f=s["s-cr"])?f.parentNode.textContent=l:t.v!==l&&(s.data=l)},De=[],Ie=t=>{let e,n,s;const i=t.__childNodes||t.childNodes;for(const t of i){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const i=t["s-sn"];for(s=n.length-1;s>=0;s--)if(e=n[s],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(oe(e,i)){let n=De.find((t=>t.M===e));Ne=!0,e["s-sn"]=e["s-sn"]||i,n?(n.M["s-sh"]=t["s-hn"],n.N=t):(e["s-sh"]=t["s-hn"],De.push({N:t,M:e})),e["s-sr"]&&De.map((t=>{oe(t.M,e["s-sn"])&&(n=De.find((t=>t.M===e)),n&&!t.N&&(t.N=n.N))}))}else De.some((t=>t.M===e))||De.push({M:e})}1===t.nodeType&&Ie(t)}},Ue=t=>{t.m&&t.m.ref&&t.m.ref(null),t.$&&t.$.map(Ue)},Be=(t,e,n,s)=>{if("string"==typeof e["s-sn"]){t.insertBefore(e,n);const{slotNode:i}=function(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const s=t["s-sn"]=le(t)||"";return{slotNode:ie(fe(e,"childNodes"),e.tagName,s)[0],slotName:s}}(e);return i&&!s&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(i),e}return t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n)},Ge=(t,e)=>{if(e&&!t.R&&e["s-p"]){const n=e["s-p"].push(new Promise((s=>t.R=()=>{e["s-p"].splice(n-1,1),s()})))}},He=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);Ge(t,t.P);const n=()=>Ze(t,e);if(!e)return tt(n);queueMicrotask((()=>{n()}))},Ze=(t,e)=>{const n=t.$hostElement$,s=t.l;if(!s)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return e?(t.C&&(t.C=!1,Xe(s,"connectedCallback",void 0,n)),t.W.length&&t.W.forEach((t=>t(n))),i=Xe(s,"componentWillLoad",void 0,n)):i=Xe(s,"componentWillUpdate",void 0,n),i=Ve(i,(()=>Xe(s,"componentWillRender",void 0,n))),Ve(i,(()=>Ye(t,s,e)))},Ve=(t,e)=>qe(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),qe=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Ye=async(t,e,n)=>{var s;const i=t.$hostElement$,r=i["s-rc"];n&&(t=>{const e=t.i,n=t.$hostElement$,s=e.u,i=((t,e)=>{var n,s,i;const r=ue(e),o=D.get(r);if(!U.document)return r;if(t=11===t.nodeType?t:U.document,o)if("string"==typeof o){let i,l=ce.get(t=t.head||t);if(l||ce.set(t,l=new Set),!l.has(r)){i=U.document.createElement("style"),i.innerHTML=o;const f=null!=(n=B.A)?n:Yt(U.document);if(null!=f&&i.setAttribute("nonce",f),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(H){const e=new(null!=(s=t.defaultView)?s:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(o),Z?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=o+e.innerHTML:t.prepend(i)}else t.append(i);1&e.u&&t.insertBefore(i,null),4&e.u&&(i.innerHTML+=I),l&&l.add(r)}}else{let e=ce.get(t);if(e||ce.set(t,e=new Set),!e.has(r)){const n=null!=(i=t.defaultView)?i:t.ownerDocument.defaultView;let s;if(o.constructor===n.CSSStyleSheet)s=o;else{s=new n.CSSStyleSheet;for(let t=0;t<o.cssRules.length;t++)s.insertRule(o.cssRules[t].cssText,t)}Z?t.adoptedStyleSheets.push(s):t.adoptedStyleSheets=[...t.adoptedStyleSheets,s],e.add(r)}}return r})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&s&&(n["s-sc"]=i,n.classList.add(i+"-h"))})(t);Je(t,e,i,n),r&&(r.map((t=>t())),i["s-rc"]=void 0);{const e=null!=(s=i["s-p"])?s:[],n=()=>Ke(t);0===e.length?n():(Promise.all(e).then(n),t.u|=4,e.length=0)}},Je=(t,e,n,s)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{var s,i,r,o,l;const f=t.$hostElement$,c=t.i,u=t.L||he(null,null),a=(t=>t&&t.j===pe)(e)?e:ae(null,null,e);if(me=f.tagName,n&&a.m)for(const t of Object.keys(a.m))f.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(a.m[t]=f[t]);if(a.j=null,a.u|=4,t.L=a,a.k=u.k=f.shadowRoot||f,xe=!(!(1&c.u)||128&c.u),ve=f["s-cr"],Ne=!1,_e(u,a,n),B.u|=1,Re){Ie(a.k);for(const t of De){const e=t.M;if(!e["s-ol"]&&U.document){const t=U.document.createTextNode("");t["s-nr"]=e,Be(e.parentNode,e["s-ol"]=t,e,n)}}for(const t of De){const e=t.M,l=t.N;if(1===e.nodeType&&n&&(e["s-ih"]=null!=(s=e.hidden)&&s),l){const t=l.parentNode;let s=l.nextSibling;if(s&&1===s.nodeType){let n=null==(i=e["s-ol"])?void 0:i.previousSibling;for(;n;){let i=null!=(r=n["s-nr"])?r:null;if(i&&i["s-sn"]===e["s-sn"]&&t===(i.__parentNode||i.parentNode)){for(i=i.nextSibling;i===e||(null==i?void 0:i["s-sr"]);)i=null==i?void 0:i.nextSibling;if(!i||!i["s-nr"]){s=i;break}}n=n.previousSibling}}if((!s&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==s)&&e!==s){if(Be(t,e,s,n),8===e.nodeType&&e.nodeValue.startsWith("s-nt-")){const t=U.document.createTextNode(e.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=e["s-hn"],t["s-sn"]=e["s-sn"],t["s-sh"]=e["s-sh"],t["s-sr"]=e["s-sr"],t["s-ol"]=e["s-ol"],t["s-ol"]["s-nr"]=t,Be(e.parentNode,t,e,n),e.parentNode.removeChild(e)}1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(o=e["s-ih"])&&o)}e&&"function"==typeof l["s-rf"]&&l["s-rf"](l)}else 1===e.nodeType&&(e.hidden=!0)}}if(Ne&&se(a.k),B.u&=-2,De.length=0,!xe&&!(1&c.u)&&f["s-cr"]){const t=a.k.__childNodes||a.k.childNodes;for(const e of t)if(e["s-hn"]!==me&&!e["s-sh"])if(n&&null==e["s-ih"]&&(e["s-ih"]=null!=(l=e.hidden)&&l),1===e.nodeType)e.hidden=!0;else if(3===e.nodeType&&e.nodeValue.trim()){const t=U.document.createComment("s-nt-"+e.nodeValue);t["s-sn"]=e["s-sn"],Be(e.parentNode,t,e,n),e.parentNode.removeChild(e)}}ve=void 0})(t,e,s)}catch(e){F(e,t.$hostElement$)}return null},Ke=t=>{const e=t.$hostElement$,n=t.l,s=t.P;Xe(n,"componentDidRender",void 0,e),64&t.u?Xe(n,"componentDidUpdate",void 0,e):(t.u|=64,tn(e),Xe(n,"componentDidLoad",void 0,e),t.T(e),s||Qe()),t.R&&(t.R(),t.R=void 0),512&t.u&&X((()=>He(t,!1))),t.u&=-517},Qe=()=>{X((()=>ye(U,"appload",{detail:{namespace:"ticketlayer-elements"}})))},Xe=(t,e,n,s)=>{if(t&&t[e])try{return t[e](n)}catch(t){F(t,s)}},tn=t=>t.classList.add("hydrated"),en=(t,e,n,s)=>{const i=L(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${s.p}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,o=i.o.get(e),l=i.u,f=i.l;if(n=ge(n,s.t[e][0]),!(8&l&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n))){if(i.o.set(e,n),s.F){const t=s.F[e];t&&t.map((t=>{try{const[[s,r]]=Object.entries(t);(128&l||1&r)&&(f?f[s](n,o,e):i.W.push((()=>{i.l[s](n,o,e)})))}catch(t){F(t,r)}}))}if(2==(18&l)){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(n,o,e))return;He(i,!1)}}},nn=(t,e,n)=>{var s,i;const r=t.prototype;{t.watchers&&!e.F&&(e.F=t.watchers),t.deserializers&&!e._&&(e._=t.deserializers),t.serializers&&!e.D&&(e.D=t.serializers);const o=Object.entries(null!=(s=e.t)?s:{});if(o.map((([t,[s]])=>{if(31&s||2&n&&32&s){const{get:i,set:o}=Object.getOwnPropertyDescriptor(r,t)||{};i&&(e.t[t][0]|=2048),o&&(e.t[t][0]|=4096),(1&n||!i)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>L(this).o.get(e))(0,t);const n=L(this),s=n?n.l:r;if(!s)return;return s[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(i){const r=L(this);if(r){if(o)return void 0===(32&s?this[t]:r.$hostElement$[t])&&r.o.get(t)&&(i=r.o.get(t)),o.call(this,ge(i,s)),void en(this,t,i=32&s?this[t]:r.$hostElement$[t],e);{if(!(1&n&&4096&e.t[t][0]))return en(this,t,i,e),void(1&n&&!r.l&&r.W.push((()=>{4096&e.t[t][0]&&r.l[t]!==r.o.get(t)&&(r.l[t]=i)})));const o=()=>{const n=r.l[t];!r.o.get(t)&&n&&r.o.set(t,n),r.l[t]=ge(i,s),en(this,t,r.l[t],e)};r.l?o():r.W.push((()=>{o()}))}}}})}})),1&n){const n=new Map;r.attributeChangedCallback=function(t,s,i){B.jmp((()=>{var l;const f=n.get(t),c=L(this);if(this.hasOwnProperty(f)&&(i=this[f],delete this[f]),r.hasOwnProperty(f)&&"number"==typeof this[f]&&this[f]==i)return;if(null==f){const n=null==c?void 0:c.u;if(c&&n&&!(8&n)&&i!==s){const r=c.l,o=null==(l=e.F)?void 0:l[t];null==o||o.forEach((e=>{const[[o,l]]=Object.entries(e);null!=r[o]&&(128&n||1&l)&&r[o].call(r,i,s,t)}))}return}const u=o.find((([t])=>t===f));u&&4&u[1][0]&&(i=null!==i&&"false"!==i);const a=Object.getOwnPropertyDescriptor(r,f);i==this[f]||a.get&&!a.set||(this[f]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.F)?i:{}),...o.filter((([t,e])=>31&e[0])).map((([t,e])=>{const s=e[1]||t;return n.set(s,t),s}))]))}}return t},sn=(t,e)=>{Xe(t,"connectedCallback",void 0,e)},rn=(t,e)=>{Xe(t,"disconnectedCallback",void 0,e||t)},on=(t,e={})=>{var n;if(!U.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const s=[],i=e.exclude||[],r=U.customElements,o=U.document.head,l=o.querySelector("meta[charset]"),f=U.document.createElement("style"),c=[];let u,a=!0;Object.assign(B,e),B.h=new URL(e.resourcesUrl||"./",U.document.baseURI).href;let h=!1;if(t.map((t=>{t[1].map((e=>{var n,o,l;const f={u:e[0],p:e[1],t:e[2],I:e[3]};4&f.u&&(h=!0),f.t=e[2],f.F=null!=(n=e[4])?n:{},f.D=null!=(o=e[5])?o:{},f._=null!=(l=e[6])?l:{};const p=f.p,d=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,i:e,o:new Map,U:new Map};n.B=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[],n.W=[];const s=n;t.__stencil__getHostRef=()=>s})(t=this,f),1&f.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${f.p}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ne.call(t,f)}connectedCallback(){L(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),u&&(clearTimeout(u),u=null),a?c.push(this):B.jmp((()=>(t=>{if(!(1&B.u)){const e=L(t);if(!e)return;const n=e.i,s=()=>{};if(1&e.u)(null==e?void 0:e.l)?sn(e.l,t):(null==e?void 0:e.B)&&e.B.then((()=>sn(e.l,t)));else{e.u|=1,12&n.u&&(t=>{if(!U.document)return;const e=t["s-cr"]=U.document.createComment("");e["s-cn"]=!0,Be(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Ge(e,e.P=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let s;if(!(32&e.u)){if(e.u|=32,n.G){const i=((t,e)=>{const n=t.p.replace(/-/g,"_"),s=t.G;if(!s)return;const i=_.get(s);return i?i[n]:import(`./${s}.entry.js`).then((t=>(_.set(s,t),t[n])),(t=>{F(t,e.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};s=await i,t()}else s=i;if(!s)throw Error(`Constructor for "${n.p}#${e.H}" was not found`);s.isProxied||(n.F=s.watchers,n.D=s.serializers,n._=s.deserializers,nn(s,n,2),s.isProxied=!0);const r=()=>{};e.u|=8;try{new s(e)}catch(e){F(e,t)}e.u&=-9,e.u|=128,r(),4&n.u?e.C=!0:sn(e.l,t)}else s=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(s&&s.style){let t;"string"==typeof s.style&&(t=s.style);const e=ue(n);if(!D.has(e)){const s=()=>{};((t,e,n)=>{let s=D.get(t);H&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=e:s.replaceSync(e)):s=e,D.set(t,s)})(e,t,!!(1&n.u)),s()}}}const i=e.P,r=()=>He(e,!0);i&&i["s-rc"]?i["s-rc"].push(r):r()})(t,e,n)}s()}})(this))))}disconnectedCallback(){B.jmp((()=>(async t=>{if(!(1&B.u)){const e=L(t);(null==e?void 0:e.l)?rn(e.l,t):(null==e?void 0:e.B)&&e.B.then((()=>rn(e.l,t)))}ce.has(t)&&ce.delete(t),t.shadowRoot&&ce.has(t.shadowRoot)&&ce.delete(t.shadowRoot)})(this))),B.raf((()=>{var t;const e=L(this);if(!e)return;const n=c.findIndex((t=>t===this));n>-1&&c.splice(n,1),(null==(t=null==e?void 0:e.L)?void 0:t.k)instanceof Node&&!e.L.k.isConnected&&delete e.L.k}))}componentOnReady(){var t;return null==(t=L(this))?void 0:t.B}};f.G=t[0],i.includes(p)||r.get(p)||(s.push(p),r.define(p,nn(d,f,1)))}))})),s.length>0&&(h&&(f.textContent+=I),f.textContent+=s.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",f.innerHTML.length)){f.setAttribute("data-styles","");const t=null!=(n=B.A)?n:Yt(U.document);null!=t&&f.setAttribute("nonce",t),o.insertBefore(f,l?l.nextSibling:o.firstChild)}a=!1,c.length?c.map((t=>t.connectedCallback())):B.jmp((()=>u=setTimeout(Qe,30)))},ln=t=>B.A=t;export{pe as H,be as a,on as b,we as c,t as g,ae as h,G as p,T as r,ln as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as a,H as r}from"./p-Ba-RZTFI.js";import{w as i,g as o}from"./p-CqhvfyKV.js";const s=class{constructor(a){e(this,a),this.tlClose=t(this,"tlClose"),this.tlCheckout=t(this,"tlCheckout"),this.tlError=t(this,"tlError"),this.step="loading",this.eventName="",this.imageUrl="",this.venueLabel="",this.dateSummary="",this.selectedOccurrenceId=null,this.occurrenceCount=0,this.occurrenceLabel="",this.error=null,this.handleOccurrenceSelect=e=>{const t=e.detail.occurrence;this.selectedOccurrenceId=t.id,this.occurrenceLabel=this.labelFor(t),this.step="tickets"},this.handleAdded=()=>{this.step="done"},this.backToDates=()=>{this.selectedOccurrenceId=null,this.step="occurrence"},this.close=()=>this.tlClose.emit(),this.goCheckout=()=>this.tlCheckout.emit()}async componentWillLoad(){if(this.eventId)try{await i();const e=await o().getEventsManager().get(this.eventId);this.eventName=e?.name??"Tickets",this.imageUrl=e?.imageUrl||e?.heroImageUrl||"",this.venueLabel=[e?.venueName,e?.venueCity].filter(Boolean).join(", ");const t=e?.occurrences??[];this.occurrenceCount=t.length,this.dateSummary=this.summariseDates(t);const a=this.occurrenceId??(1===t.length?t[0]?.id:null);a?(this.selectedOccurrenceId=a,this.occurrenceLabel=this.labelFor(t.find((e=>e.id===a))),this.step="tickets"):this.step="occurrence"}catch(e){this.fail(e instanceof Error?e.message:"Could not load this event")}else this.fail("No event specified")}fail(e){this.error=e,this.step="error",this.tlError.emit({message:e})}summariseDates(e){const t=e.map((e=>e.startsAt)).filter((e=>!!e)).sort();if(0===t.length)return"";const a=e=>new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"});if(1===t.length)return new Date(t[0]).toLocaleDateString("en-GB",{weekday:"short",day:"numeric",month:"short",year:"numeric"});const r=a(t[0]),i=a(t[t.length-1]);return`${r===i?r:`${r} – ${i}`} · ${t.length} dates`}labelFor(e){return e?.startsAt?new Date(e.startsAt).toLocaleString("en-GB",{weekday:"short",day:"numeric",month:"short",hour:"2-digit",minute:"2-digit"}):""}stepKicker(){switch(this.step){case"occurrence":return"Choose a date";case"tickets":return"Select tickets";case"done":return"Nice one";default:return"Tickets"}}render(){return a(r,{key:"1245e518c2b5232f4d9dba091cf808cd3867fbef"},a("div",{key:"4e770fccdd785444f1cc87df4adab5a5dc1bf58a",class:"overlay",onClick:e=>{e.target===e.currentTarget&&this.close()}},a("div",{key:"57b13dac690028aeebd6a601acfba07f00854c40",class:{panel:!0,"panel--wide":"occurrence"===this.step},role:"dialog","aria-modal":"true","aria-label":this.eventName},a("header",{key:"881e9cc70a0ca25947f272b9ebcb2e6d4b4268f2",class:"panel-header"},this.imageUrl&&a("div",{key:"753f7df1b5118dfacbbc6b89b4e5d7ba114f6cdf",class:"event-thumb",style:{backgroundImage:`url(${this.imageUrl})`}}),a("div",{key:"9aaa32d1add90fabd1b0ea0c100f198962f4e6a5",class:"titles"},a("span",{key:"538032bdf2338206ad763417386852ff97cc472f",class:"kicker"},this.stepKicker()),a("h2",{key:"71429804179e7fbbea1fa90a2937a065517092f5",class:"event-name"},this.eventName),this.venueLabel&&a("p",{key:"dd968b397deab890df3a4fbdff33226e82bd9660",class:"event-meta"},this.venueLabel),this.dateSummary&&a("p",{key:"f40e6049d09b06c9f599e7d14d6fbb43b39b22fd",class:"event-meta"},this.dateSummary)),a("button",{key:"dbe0908f8cd8544654b627921f68cc4961802b77",class:"close-btn","aria-label":"Close",onClick:this.close},a("svg",{key:"23a750830e6e16d28cbcd5025507d25848aaadf7",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},a("path",{key:"e81b8763a5c781f72c1ca8a2113482948e3ba8cc",d:"M6 6l12 12M18 6L6 18","stroke-linecap":"round"})))),a("div",{key:"da71e610f907cf53e78246d2065aaf526d5ceffd",class:"panel-body"},"loading"===this.step&&a("div",{key:"28cbb9a98c7b08fa8dcb9d8d5dfbf3bec93fe38d",class:"state-msg"},a("span",{key:"915c8de87cbdc7da1ccf0622ce6c0f02fccf2cad",class:"spinner"})," Loading…"),"error"===this.step&&a("div",{key:"5785578bfef6f1ee81d938d91ffd3ded975f8c12",class:"state-msg error"},this.error),"occurrence"===this.step&&a("tl-occurrence-selector",{key:"eeb853eab141c3c103015e82d221a140f6a3a109",eventId:this.eventId,onTlSelect:this.handleOccurrenceSelect}),"tickets"===this.step&&this.selectedOccurrenceId&&a("div",{key:"f608f592ba651eb431375433eb4ff9393863ade5",class:"tickets-step"},this.occurrenceCount>1&&a("button",{key:"84adfbdbeaceb2cf4238c6ffd09558b4499ca940",class:"back-link",onClick:this.backToDates},"← Change date"),this.occurrenceLabel&&a("p",{key:"0317e9194049608711e8c622142c3ad2c0a5dc12",class:"occ-label"},this.occurrenceLabel),a("tl-ticket-selector",{key:"27b1e05d9d92fb8d519375e2b27d4b5ea0a4890a",eventId:this.eventId,occurrenceId:this.selectedOccurrenceId,onTlAddToCart:this.handleAdded})),"done"===this.step&&a("div",{key:"0853088206988c66d489f8804df7899821d49e64",class:"done-step"},a("div",{key:"c2955b893c4dffaadcdfd27bee96ef2724a131a6",class:"done-mark"},"🎟️"),a("p",{key:"370c30dfcbc0c25b4794d984dd261a3a5779a9dc",class:"done-title"},"Added to your cart"),a("p",{key:"c462f3c9292740e2fd2c74b173484f80a5dc1a30",class:"done-sub"},"Held for you while you check out."),a("button",{key:"484991f79572e3213ad6413a1af87599880c3643",class:"primary-btn",onClick:this.goCheckout},"Go to checkout"),a("button",{key:"5b4ba5a472b794e8f5af0f131dad1c8c11b869f5",class:"ghost-btn",onClick:this.close},"Keep browsing")))),a("div",{key:"9acdd36744d363f41f0bed7938ecea33322362d1",class:"powered-by"},a("div",{key:"f45545a8fc625336618352f0c0e9e84a1babce96",class:"pb-links"},a("a",{key:"dd929b12419b8353d9a09ad242a9f351dfd699e2",href:"https://ticketlayer.com/privacy",target:"_blank",rel:"noopener noreferrer"},"Privacy Policy"),a("a",{key:"859be221bdc76602defaebdb89a997778cda6a91",href:"https://ticketlayer.com/report-abuse",target:"_blank",rel:"noopener noreferrer"},"Report Abuse")),a("a",{key:"d4e1f44b3b084160d2df8b9d15e075ddc5e05363",class:"pb-brand",href:"https://ticketlayer.com",target:"_blank",rel:"noopener noreferrer"},a("span",{key:"fe7fd86576a4e9772daa2c4c449da060f20fa143",class:"pb-pre"},"Powered by"),a("svg",{key:"19412bd9e5522f0af9f847fe8fda6aa0f0004a3a",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},a("path",{key:"c159efd1b8fce42b8c0fd5bac21792b4dc2728ce",d:"M4 7.5A1.5 1.5 0 0 1 5.5 6h13A1.5 1.5 0 0 1 20 7.5v2a2 2 0 0 0 0 5v2a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 16.5v-2a2 2 0 0 0 0-5v-2Z",fill:"currentColor"}),a("path",{key:"283956eead27e5919301c30882da6eaa7b093a1a",d:"M13 7v10",stroke:"var(--tl-pb-perforation, var(--tl-background, #fff))","stroke-width":"1.2","stroke-dasharray":"1.5 1.8","stroke-linecap":"round"})),a("span",{key:"bc045fda144885737b88bf81b4f9000ec8d333be",class:"pb-word"},"Ticketlayer")))))}};s.style=":host{--_bg:var(--tl-background, #ffffff);--_fg:var(--tl-foreground, #111827);--_muted:var(--tl-muted, #f3f4f6);--_muted-fg:var(--tl-muted-foreground, #6b7280);--_border:var(--tl-border, #e5e7eb);--_primary:var(--tl-primary, #6366f1);--_primary-fg:var(--tl-primary-foreground, #ffffff);--_radius:var(--tl-radius-lg, var(--tl-radius, 0.75rem));--_font:var(--tl-font-family, system-ui, -apple-system, sans-serif);font-family:var(--_font)}.overlay{position:fixed;inset:0;z-index:2147483646;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;background:rgba(8, 8, 16, 0.6);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:tl-fade 0.18s ease-out}.panel{width:100%;max-width:460px;max-height:86vh;display:flex;flex-direction:column;overflow:hidden;background:var(--_bg);color:var(--_fg);border:1px solid var(--_border);border-radius:var(--_radius);box-shadow:0 24px 64px rgba(0, 0, 0, 0.45);animation:tl-rise 0.22s cubic-bezier(0.16, 1, 0.3, 1);transition:max-width 0.25s cubic-bezier(0.16, 1, 0.3, 1)}.panel--wide{max-width:720px}.powered-by{--tl-pb-perforation:rgba(8, 8, 16, 0.6);width:100%;max-width:460px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 4px;font-size:12px;font-weight:500;color:rgba(255, 255, 255, 0.78);animation:tl-fade 0.3s ease-out}.powered-by a{color:inherit;text-decoration:none;opacity:0.85;transition:opacity 0.15s ease}.powered-by a:hover{opacity:1}.powered-by .pb-links{display:flex;gap:16px;align-items:center}.powered-by .pb-brand{display:inline-flex;align-items:center;gap:6px;opacity:0.92}.powered-by .pb-brand svg{display:block}.powered-by .pb-pre{opacity:0.7}.powered-by .pb-word{font-weight:700;letter-spacing:0.01em}.panel-header{display:flex;align-items:center;gap:14px;padding:16px 18px;border-bottom:1px solid var(--_border)}.event-thumb{flex:none;width:56px;height:56px;border-radius:12px;background-size:cover;background-position:center;background-color:var(--_muted);border:1px solid var(--_border)}.titles{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}.event-meta{margin:0;font-size:0.8rem;color:var(--_muted-fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kicker{font-size:0.72rem;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:var(--_primary)}.event-name{margin:0;font-size:1.18rem;font-weight:700;line-height:1.25;color:var(--_fg);overflow:hidden;text-overflow:ellipsis}.close-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:0;border-radius:999px;background:var(--_muted);color:var(--_muted-fg);cursor:pointer;transition:color 0.15s, background 0.15s}.close-btn:hover{color:var(--_fg)}.close-btn svg{width:16px;height:16px}.panel-body{padding:18px 22px 22px;overflow-y:auto}.state-msg{display:flex;align-items:center;justify-content:center;gap:10px;padding:40px 0;color:var(--_muted-fg)}.state-msg.error{color:#b91c1c}.spinner{width:16px;height:16px;border:2px solid var(--_border);border-top-color:var(--_primary);border-radius:999px;animation:tl-spin 0.7s linear infinite}.tickets-step{display:flex;flex-direction:column;gap:6px}.back-link{align-self:flex-start;padding:0;border:0;background:none;color:var(--_primary);font-size:0.85rem;font-weight:500;cursor:pointer}.back-link:hover{text-decoration:underline}.occ-label{margin:2px 0 8px;font-size:0.9rem;font-weight:600;color:var(--_fg)}.done-step{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:16px 0 4px}.done-mark{font-size:2.4rem;line-height:1;margin-bottom:6px}.done-title{margin:0;font-size:1.1rem;font-weight:700;color:var(--_fg)}.done-sub{margin:0 0 14px;font-size:0.9rem;color:var(--_muted-fg)}.primary-btn{width:100%;padding:13px;border:0;border-radius:var(--tl-radius-md, 0.5rem);background:var(--_primary);color:var(--_primary-fg);font-size:0.98rem;font-weight:600;cursor:pointer;transition:opacity 0.15s}.primary-btn:hover{opacity:0.9}.ghost-btn{width:100%;margin-top:8px;padding:12px;border:1px solid var(--_border);border-radius:var(--tl-radius-md, 0.5rem);background:transparent;color:var(--_fg);font-size:0.95rem;font-weight:500;cursor:pointer;transition:background 0.15s}.ghost-btn:hover{background:var(--_muted)}@keyframes tl-fade{from{opacity:0}}@keyframes tl-rise{from{opacity:0;transform:translateY(12px) scale(0.98)}}@keyframes tl-spin{to{transform:rotate(360deg)}}";export{s as tl_buy_modal}
|