@cxl/build 1.0.0-beta.5 → 1.0.0-beta.7
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/3doc.js +606 -143
- package/README.md +2 -2
- package/chunk-5TBO732O.js +1 -0
- package/chunk-5WF7RQTO.js +1 -0
- package/chunk-7JHEVJJ4.js +3 -0
- package/chunk-BXTUUEIX.js +2 -0
- package/chunk-CYNDEFT4.js +44 -0
- package/chunk-D4L7ASFT.js +1 -0
- package/chunk-SAGAXEIB.js +0 -0
- package/docs.d.ts +3 -0
- package/eslint-config.d.ts +1 -1
- package/eslint-config.js +35 -2
- package/file.d.ts +3 -2
- package/hljs.css +104 -0
- package/index.d.ts +7 -3
- package/index.js +2 -0
- package/library-W36W2ORC.js +1 -0
- package/lint.d.ts +3 -1
- package/npm.d.ts +6 -6
- package/package.json +10 -7
- package/render-Y5UDPANY.js +1 -0
- package/{render-html-27TCOWOE-TXOI62NA.js → render-html-FK2ODCB6-2Q3SFNUN.js} +21 -20
- package/render-md-VRS3K2RJ-LAY5HVJV.js +18 -0
- package/render-summary-HB4SHFD2.js +1 -0
- package/root-JFVRTVUW.js +9 -0
- package/root.d.ts +1 -0
- package/spec-browser.js +102 -130
- package/tsc.d.ts +8 -0
- package/chunk-CC5X4GUA.js +0 -44
- package/chunk-FSRPMVAS.js +0 -1
- package/chunk-YBEJVJDA.js +0 -4
- package/index.bundle.js +0 -2
- package/library-UNJOIIL7.js +0 -1
- package/png-BPHNXF4V.js +0 -1
- package/render-F5OGOROK.js +0 -1
- package/render-summary-H5JT7BDG-ETDG4C5Q.js +0 -1
package/3doc.js
CHANGED
|
@@ -1,7 +1,31 @@
|
|
|
1
|
-
var Z={},Ja=Symbol("terminator");function Xt(e,t){let r=!1,a={error:n,unsubscribe:s,get closed(){return r},signal:K(),next(o){if(!r)try{e.next?.(o)}catch(i){n(i)}},complete(){if(!r)try{e.complete?.()}finally{s()}}};e.signal?.subscribe(s);function n(o){if(r)throw o;if(!e.error)throw s(),o;try{e.error(o)}finally{s()}}function s(){r||(r=!0,a.signal.next())}try{if(t?.(a))throw new Error("Unsubscribe function result is deprectaed")}catch(o){n(o)}return a}var v=class{__subscribe;constructor(e){this.__subscribe=e}then(e,t){return ar(this).then(e,t)}pipe(...e){return e.reduce((t,r)=>r(t),this)}subscribe(e){return Xt(!e||typeof e=="function"?{next:e}:e,this.__subscribe)}},ie=class extends v{closed=!1;signal=K();observers=new Set;constructor(){super(e=>this.onSubscribe(e))}next(e){if(!this.closed)for(let t of Array.from(this.observers))t.closed||t.next(e)}error(e){if(!this.closed){this.closed=!0;let t=!1,r;for(let a of Array.from(this.observers))try{a.error(e)}catch(n){t=!0,r=n}if(t)throw r}}complete(){this.closed||(this.closed=!0,Array.from(this.observers).forEach(e=>e.complete()),this.observers.clear())}onSubscribe(e){this.closed?e.complete():(this.observers.add(e),e.signal.subscribe(()=>this.observers.delete(e)))}},Qt=class extends v{closed=!1;observers=new Set;constructor(){super(e=>{this.closed?(e.next(),e.complete()):this.observers.add(e)})}next(){if(!this.closed){this.closed=!0;for(let e of Array.from(this.observers))e.closed||(e.next(),e.complete());this.observers.clear()}}},nt=class extends ie{queue=[];emitting=!1;next(e){if(!this.closed)if(this.emitting)this.queue.push(e);else{for(this.emitting=!0,super.next(e);this.queue.length;)super.next(this.queue.shift());this.emitting=!1}}},Zt=class extends ie{currentValue;constructor(e){super(),this.currentValue=e}get value(){return this.currentValue}next(e){this.currentValue=e,super.next(e)}onSubscribe(e){let t=super.onSubscribe(e);return this.closed||e.next(this.currentValue),t}},Kt=class extends ie{bufferSize;buffer=[];hasError=!1;lastError;constructor(e=1/0){super(),this.bufferSize=e}error(e){this.hasError=!0,this.lastError=e,super.error(e)}next(e){return this.buffer.length===this.bufferSize&&this.buffer.shift(),this.buffer.push(e),super.next(e)}onSubscribe(e){this.observers.add(e),this.buffer.forEach(t=>e.next(t)),this.hasError?e.error(this.lastError):this.closed&&e.complete(),e.signal.subscribe(()=>this.observers.delete(e))}},er=class extends ie{$value=Z;get hasValue(){return this.$value!==Z}get value(){if(this.$value===Z)throw new Error("Reference not initialized");return this.$value}next(e){return this.$value=e,super.next(e)}onSubscribe(e){!this.closed&&this.$value!==Z&&e.next(this.$value),super.onSubscribe(e)}},tr=class extends Error{message="No elements in sequence"};function K(){return new Qt}function be(...e){return new v(t=>{let r=0,a;function n(){let s=e[r++];s&&!t.closed?(a?.next(),s.subscribe({next:t.next,error:t.error,complete:n,signal:a=K()})):t.complete()}t.signal.subscribe(()=>a?.next()),n()})}function j(e){return new v(t=>{e().subscribe(t)})}function ot(e){return new v(t=>{for(let r of e)t.closed||t.next(r);t.complete()})}function st(e){return new v(t=>{e.then(r=>{t.closed||t.next(r),t.complete()}).catch(r=>t.error(r))})}function it(e){return j(()=>st(e()))}function rr(e){return new v(t=>{for(let r of e)t.closed||t.next(r);t.complete()})}function ct(e){return e instanceof v?e:Array.isArray(e)?ot(e):e instanceof Promise?st(e):rr(e)}function P(...e){return ot(e)}function la(e){return new Promise((t,r)=>{let a=Z;e.subscribe({next:n=>a=n,error:n=>r(n),complete:()=>t(a)})})}function ar(e){return la(e).then(t=>t===Z?void 0:t)}function ee(e,t){return _(r=>({next:e(r),unsubscribe:t}))}function _(e){return t=>new v(r=>{let a=e(r,t);r.signal.subscribe(()=>a.unsubscribe?.()),a.error||(a.error=r.error),a.complete||(a.complete=r.complete),a.signal=r.signal,t.subscribe(a)})}function Re(e){return ee(t=>r=>t.next(e(r)))}function nr(e,t){return _(r=>{let a=t,n=0;return{next(s){a=e(a,s,n++)},complete(){r.next(a),r.complete()}}})}function or(e){return _(t=>{let r=!0,a;return{next(n){r&&(r=!1,t.next(n),a=setTimeout(()=>r=!0,e))},unsubscribe:()=>clearTimeout(a)}})}function ce(e){return new v(t=>{let r=setTimeout(()=>{t.next(),t.complete()},e);t.signal.subscribe(()=>clearTimeout(r))})}function sr(e,t=ce){return lt(r=>t(e).map(()=>r))}function lt(e){return t=>O(r=>{let a=!1,n=!1,s,o=()=>{s?.next(),a=!1,n&&r.complete()},i=K();r.signal.subscribe(()=>{o(),i.next()}),t.subscribe({next(c){o(),s=K(),a=!0,e(c).subscribe({next:r.next,error:r.error,complete:o,signal:s})},error:r.error,complete(){n=!0,a||r.complete()},signal:i})})}function ir(e){return t=>O(r=>{let a=r.signal,n=0,s=0,o=!1;t.subscribe({next:i=>{n++,e(i).subscribe({next:r.next,error:r.error,complete:()=>{s++,o&&s===n&&r.complete()},signal:a})},error:r.error,complete(){o=!0,s===n&&r.complete()},signal:a})})}function cr(e){return _(t=>{let r=!0;return{next(a){r&&(r=!1,e(a).subscribe({next:t.next,error:t.error,complete:()=>r=!0,signal:t.signal}))}}})}function xe(e){return ee(t=>r=>{e(r)&&t.next(r)})}function lr(e){return ee(t=>r=>{e-- >0&&!t.closed&&t.next(r),(e<=0||t.closed)&&t.complete()})}function pr(e){return ee(t=>r=>{!t.closed&&e(r)?t.next(r):t.complete()})}function ur(){let e=!1;return _(t=>({next(r){e||(e=!0,t.next(r),t.complete())},complete(){t.closed||t.error(new tr)}}))}function ge(e){return ee(t=>r=>{e(r),t.next(r)})}function dr(e){return _((t,r)=>{let a,n={next:t.next,error(s){try{if(t.closed)return;let o=e(s,r);o&&(a?.next(),a=K(),o.subscribe({...n,signal:a}))}catch(o){t.error(o)}},unsubscribe:()=>a?.next()};return n})}function mr(){return ee(e=>{let t=Z;return r=>{r!==t&&(t=r,e.next(r))}})}function fr(){return e=>{let t=new Kt(1),r=!1;return O(a=>{t.subscribe(a),r||(r=!0,e.subscribe(t))})}}function hr(){return e=>{let t,r=0;function a(){--r===0&&t?.signal.next()}return O(n=>{n.signal.subscribe(a),r++===0?(t=le(),t.subscribe(n),e.subscribe(t)):t.subscribe(n)})}}function br(){return e=>{let t=new ie,r,a,n=!1,s=!1;return O(o=>{s?(o.next(a),o.complete()):t.subscribe(o),r??=e.subscribe({next:i=>{n=!0,a=i},error:o.error,complete(){s=!0,n&&t.next(a),t.complete()},signal:o.signal})})}}function g(...e){return e.length===1?e[0]:new v(t=>{let r=e.length;for(let a of e)t.closed||a.subscribe({next:t.next,error:t.error,complete(){r--===1&&t.complete()},signal:t.signal})})}function V(...e){return e.length===0?T:new v(t=>{let r=e.length,a=r,n=0,s=!1,o=new Array(r),i=new Array(r);e.forEach((c,w)=>c.subscribe({next(L){i[w]=L,o[w]||(o[w]=!0,++n>=a&&(s=!0)),s&&t.next(i.slice(0))},error:t.error,complete(){--r<=0&&t.complete()},signal:t.signal}))})}function xr(e){return _(t=>({next:t.next,unsubscribe:e}))}function gr(){return xe(()=>!1)}var T=new v(e=>e.complete());function te(e){return new Zt(e)}function O(e){return new v(e)}function le(){return new er}var at={catchError:dr,debounceTime:sr,distinctUntilChanged:mr,exhaustMap:cr,filter:xe,finalize:xr,first:ur,ignoreElements:gr,map:Re,mergeMap:ir,publishLast:br,reduce:nr,share:hr,shareLatest:fr,switchMap:lt,take:lr,takeWhile:pr,tap:ge,throttleTime:or};for(let e in at)v.prototype[e]=function(...t){return this.pipe(at[e](...t))};function E(e,t,r){return new v(a=>{let n=a.next.bind(a);e.addEventListener(t,n,r),a.signal.subscribe(()=>e.removeEventListener(t,n,r))})}function pt(e){return Pe(e,{childList:!0})}function ut(e,t){return Pe(e,{attributes:!0,attributeFilter:t})}function Pe(e,t={attributes:!0,childList:!0}){return new v(r=>{let a=new MutationObserver(n=>n.forEach(s=>{for(let o of s.addedNodes)r.next({type:"added",target:e,value:o});for(let o of s.removedNodes)r.next({type:"removed",target:e,value:o});s.type==="characterData"?r.next({type:"characterData",target:e}):s.attributeName&&r.next({type:"attribute",target:e,value:s.attributeName})}));a.observe(e,t),r.signal.subscribe(()=>a.disconnect())})}function dt(e){return E(e,"keydown").filter(t=>t.key===" "||t.key==="Enter"?(t.preventDefault(),!0):!1)}function W(e){return E(e,"click")}function Be(e,t){return new v(r=>{let a=new IntersectionObserver(n=>{for(let s of n)r.next(s)},t);a.observe(e),r.signal.subscribe(()=>a.disconnect())})}function J(e){return Be(e).filter(t=>t.isIntersecting).first()}function yr(e){let t;return function(...r){t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{e.apply(this,r),t=0})}}function mt(e){return _(t=>{let r=yr(n=>{t.closed||(e&&e(n),t.next(n),a&&t.complete())}),a=!1;return{next:r,complete:()=>a=!0}})}function ft(){return j(()=>document.readyState!=="loading"?P(!0):E(window,"DOMContentLoaded").first().map(()=>!0))}function ye(e,t){let r;return g(j(()=>(r=e.childNodes,r?P(r):T)),Pe(e,{childList:!0,...t}),pe().switchMap(()=>e.childNodes!==r?(r=e.childNodes,P(r)):T))}function pe(){return j(()=>document.readyState==="complete"?P(!0):E(window,"load").first().map(()=>!0))}function ht(...e){return new v(t=>{let r=new ResizeObserver(a=>a.forEach(n=>t.next(n)));for(let a of e)r.observe(a);t.signal.subscribe(()=>r.disconnect())})}function bt(e){return e.offsetParent===null&&!(e.offsetWidth&&e.offsetHeight)}function Oe(e,t,r){return a=>be(P(e?a.matches(e):!1),E(a,t).switchMap(()=>g(P(!0),E(a,r).map(()=>e?a.matches(e):!1))))}var pa=Oe("","animationstart","animationend"),vr=Oe("","mouseenter","mouseleave"),wr=Oe(":focus,:focus-within","focusin","focusout"),Le=e=>V(vr(e),wr(e)).map(([t,r])=>t||r);function xt(e){return e instanceof PointerEvent&&e.pointerType===""||e instanceof MouseEvent&&e.type==="click"&&e.detail===0}function gt(e){let t=e.getRootNode();return t instanceof Document||t instanceof ShadowRoot?t:void 0}var ua=ge(e=>console.log(e));v.prototype.log=function(){return this.pipe(ua)};v.prototype.raf=function(e){return this.pipe(mt(e))};var F=Symbol("bindings"),da={},ue=Symbol("augments"),re=Symbol("parser"),kr=class{bindings;messageHandlers;internals;attributes$=new nt;wasConnected=!1;wasInitialized=!1;subscriptions;prebind;addMessageHandler(e){(this.messageHandlers??=new Set).add(e)}removeMessageHandler(e){this.messageHandlers?.delete(e)}message(e,t){let r=!1;if(this.messageHandlers)for(let a of this.messageHandlers)a.type===e&&(a.next(t),r||=a.stopPropagation);return r}add(e){if(this.wasConnected)throw new Error("Cannot bind connected component.");this.wasInitialized?(this.bindings??=[]).push(e):(this.prebind??=[]).push(e)}connect(){if(this.wasConnected=!0,!this.subscriptions&&(this.prebind||this.bindings)){let e=this.subscriptions=[];if(this.bindings)for(let t of this.bindings)e.push(t.subscribe());if(this.prebind)for(let t of this.prebind)e.push(t.subscribe())}}disconnect(){this.subscriptions?.forEach(e=>e.unsubscribe()),this.subscriptions=void 0}},we=Symbol("css"),f=class extends HTMLElement{static observedAttributes;static[ue];static[re];[F]=new kr;[we];connectedCallback(){this[F].wasInitialized=!0,this[F].wasConnected||this.constructor[ue]?.forEach(e=>e(this)),this[F].connect()}disconnectedCallback(){this[F].disconnect()}attributeChangedCallback(e,t,r){let a=this.constructor[re]?.[e]??ma;t!==r&&(this[e]=a(r,this[e]))}};function ma(e,t){let r=t===!1||t===!0;return e===""?r?!0:"":e===null?r?!1:void 0:e}function Sr(e,t){e.hasOwnProperty(ue)||(e[ue]=e[ue]?.slice(0)??[]),e[ue]?.push(t)}var fa={mode:"open"};function z(e){return e.shadowRoot??e.attachShadow(fa)}function Cr(e,t){t instanceof Node?z(e).appendChild(t):e[F].add(t)}function ha(e,t){t.length&&Sr(e,r=>{for(let a of t){let n=a.call(e,r);n&&n!==r&&Cr(r,n)}})}function ba(e,t){da[e]=t,customElements.define(e,t)}function d(e,{init:t,augment:r,tagName:a}){if(t)for(let n of t)n(e);r&&ha(e,r),a&&ba(a,e)}function ke(e){return be(P(e),e[F].attributes$.map(()=>e))}function H(e,t){return e[F].attributes$.pipe(xe(r=>r.attribute===t),Re(()=>e[t]))}function b(e,t){return g(H(e,t),j(()=>P(e[t])))}function xa(e){let t=e.observedAttributes;return t&&!e.hasOwnProperty("observedAttributes")&&(t=e.observedAttributes?.slice(0)),e.observedAttributes=t||[]}function je(e,t,r){return r===!1||r===null||r===void 0?r=null:r===!0&&(r=""),r===null?e.removeAttribute(t):e.setAttribute(t,String(r)),r}function ga(e,t,r){e.hasOwnProperty(re)||(e[re]={...e[re]}),e[re]&&(e[re][t]=r)}function y(e,t){return r=>{t?.observe!==!1&&xa(r).push(e),t?.parse&&ga(r,e,t.parse);let a=`$$${e}`,n=r.prototype,s=Object.getOwnPropertyDescriptor(n,e);s&&Object.defineProperty(n,a,s);let o=t?.persist,i={enumerable:!0,configurable:!1,get(){return this[a]},set(c){this[a]!==c?(this[a]=c,o?.(this,e,c),this[F].attributes$.next({target:this,attribute:e,value:c})):s?.set&&(o?.(this,e,c),this[a]=c)}};Sr(r,c=>{if(s||(c[a]=c[e]),Object.defineProperty(c,e,i),o?.(c,e,c[e]),t?.render){let w=t.render(c);w&&Cr(c,w)}})}}function A(e){return y(e,{persist:je,observe:!0})}function U(e){return y(e,{observe:!1})}function N(){return document.createElement("slot")}function vt(e){return t=>{let[r,a]=e();return t[F].add(r),a}}var Se=class extends f{};d(Se,{tagName:"c-span"});function Er(e,t){let r=document.createTextNode("");return e[F].add(t.tap(a=>r.textContent=a)),r}var yt=document.createDocumentFragment();function ve(e,t,r=e){if(t!=null)if(Array.isArray(t)){for(let a of t)ve(e,a,yt);r!==yt&&r.appendChild(yt)}else e instanceof f&&t instanceof v?r.appendChild(Er(e,t)):t instanceof Node?r.appendChild(t):e instanceof f&&typeof t=="function"?ve(e,t(e),r):r.appendChild(document.createTextNode(t))}function Ar(e,t){for(let r in t){let a=t[r];e instanceof f?a instanceof v?e[F].add(r==="$"?a:a.tap(n=>e[r]=n)):r==="$"&&typeof a=="function"?e[F].add(a(e)):e[r]=a:e[r]=a}}function ya(e,t){return e.constructor.observedAttributes?.includes(t)}function wt(e,t){let r=e instanceof f&&ya(e,t)?H(e,t):ut(e,[t]).map(()=>e[t]);return g(r,j(()=>P(e[t])))}function de(e,t,r){for(let a=e.parentElement;a;a=a.parentElement)if(a[F]?.message(t,r))return}function Ce(e,t,r=!0){return new v(a=>{let n={type:t,next:a.next,stopPropagation:r};e[F].addMessageHandler(n),a.signal.subscribe(()=>e[F].removeMessageHandler(n))})}function I(e,t,...r){let a=typeof e=="string"?document.createElement(e):new e;return t&&Ar(a,t),r&&ve(a,r),a}function m(e,t,...r){if(e!==m&&typeof e=="function"&&!(e.prototype instanceof f))return r.length&&((t??={}).children=r),e(t);let a=e===m?document.createDocumentFragment():typeof e=="string"?document.createElement(e):new e;return t&&Ar(a,t),r&&ve(a,r),a}function kt(e){return(t,r)=>t[e]>r[e]?1:t[e]<r[e]?-1:0}function St(e,t){if(t==="_parent")return e.parentElement||void 0;if(t==="_next")return e.nextElementSibling||void 0;if(typeof t!="string")return t??void 0;let r,a=e.getRootNode();return a instanceof ShadowRoot&&(r=a.getElementById(t),r)?r:e.ownerDocument.getElementById(t)??void 0}var At=x(":host{display:contents}"),Mr=[-2,-1,0,1,2,3,4,5],$t=["display-large","display-medium","display-small","body-large","body-medium","body-small","label-large","label-medium","label-small","headline-large","headline-medium","headline-small","title-large","title-medium","title-small","code"],He=le(),Tt=te(""),ne=x(`:host([disabled]) {
|
|
1
|
+
var Da=Object.create;var gr=Object.defineProperty;var Oa=Object.getOwnPropertyDescriptor;var La=Object.getOwnPropertyNames;var Fa=Object.getPrototypeOf,Pa=Object.prototype.hasOwnProperty;var Ba=(e,t)=>()=>(e&&(t=e(e=0)),t);var za=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ha=(e,t)=>{for(var n in t)gr(e,n,{get:t[n],enumerable:!0})},$a=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of La(t))!Pa.call(e,o)&&o!==n&&gr(e,o,{get:()=>t[o],enumerable:!(r=Oa(t,o))||r.enumerable});return e};var ja=(e,t,n)=>(n=e!=null?Da(Fa(e)):{},$a(t||!e||!e.__esModule?gr(n,"default",{value:e,enumerable:!0}):n,e));var Xo={};Ha(Xo,{default:()=>Ss,theme:()=>qo});var Es,qo,Ss,Jo=Ba(()=>{"use strict";Es={primary:"#8ECFF2","on-primary":"#003548","primary-container":"#004D67","on-primary-container":"#C1E8FF",secondary:"#B5C9D7","on-secondary":"#1F333D","secondary-container":"#364954","on-secondary-container":"#D1E6F3",tertiary:"#C9C2EA","on-tertiary":"#312C4C","tertiary-container":"#474364","on-tertiary-container":"#E5DEFF",error:"#FFB4AB","on-error":"#690005","error-container":"#93000A","on-error-container":"#FFDAD6",background:"#0F1417","on-background":"#DFE3E7",surface:"#0F1417","on-surface":"#DFE3E7","surface-variant":"#40484D","on-surface-variant":"#C0C7CD",outline:"#8A9297","outline-variant":"#40484D",shadow:"#000000",scrim:"#000000","inverse-surface":"#DFE3E7","on-inverse-surface":"#2C3134","inverse-primary":"#186584","primary-fixed":"#C1E8FF","on-primary-fixed":"#001E2B","primary-fixed-dim":"#8ECFF2","on-primary-fixed-variant":"#004D67","secondary-fixed":"#D1E6F3","on-secondary-fixed":"#091E28","secondary-fixed-dim":"#B5C9D7","on-secondary-fixed-variant":"#364954","tertiary-fixed":"#E5DEFF","on-tertiary-fixed":"#1B1736","tertiary-fixed-dim":"#C9C2EA","on-tertiary-fixed-variant":"#474364","surface-dim":"#0F1417","surface-bright":"#353A3D","surface-container-lowest":"#0A0F12","surface-container-low":"#171C1F","surface-container":"#1B2023","surface-container-high":"#262B2E","surface-container-highest":"#313539",warning:"#FFC107","on-warning":"#212121","warning-container":"#4E3400","on-warning-container":"#FFF3CF",success:"#81C784","on-success":"#000","success-container":"#2E7D32","on-success-container":"#fff"},qo={name:"dark",colors:Es},Ss=qo});var Sa=za((rx,Ea)=>{"use strict";function ua(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&ua(n)}),e}var ar=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function pa(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function je(e,...t){let n=Object.create(null);for(let r in e)n[r]=e[r];return t.forEach(function(r){for(let o in r)n[o]=r[o]}),n}var pl="</span>",oa=e=>!!e.scope,fl=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){let n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,o)=>`${r}${"_".repeat(o+1)}`)].join(" ")}return`${t}${e}`},bo=class{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=pa(t)}openNode(t){if(!oa(t))return;let n=fl(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){oa(t)&&(this.buffer+=pl)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}},ia=(e={})=>{let t={children:[]};return Object.assign(t,e),t},yo=class e{constructor(){this.rootNode=ia(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){let n=ia({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{e._collapse(n)}))}},vo=class extends yo{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){let r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new bo(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function mn(e){return e?typeof e=="string"?e:e.source:null}function fa(e){return at("(?=",e,")")}function dl(e){return at("(?:",e,")*")}function ml(e){return at("(?:",e,")?")}function at(...e){return e.map(n=>mn(n)).join("")}function gl(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Eo(...e){return"("+(gl(e).capture?"":"?:")+e.map(r=>mn(r)).join("|")+")"}function da(e){return new RegExp(e.toString()+"|").exec("").length-1}function hl(e,t){let n=e&&e.exec(t);return n&&n.index===0}var xl=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function So(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;let o=n,c=mn(r),i="";for(;c.length>0;){let s=xl.exec(c);if(!s){i+=c;break}i+=c.substring(0,s.index),c=c.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?i+="\\"+String(Number(s[1])+o):(i+=s[0],s[0]==="("&&n++)}return i}).map(r=>`(${r})`).join(t)}var bl=/\b\B/,ma="[a-zA-Z]\\w*",Co="[a-zA-Z_]\\w*",ga="\\b\\d+(\\.\\d+)?",ha="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",xa="\\b(0b[01]+)",yl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",vl=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=at(t,/.*\b/,e.binary,/\b.*/)),je({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},gn={begin:"\\\\[\\s\\S]",relevance:0},wl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[gn]},El={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[gn]},Sl={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},cr=function(e,t,n={}){let r=je({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let o=Eo("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:at(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Cl=cr("//","$"),kl=cr("/\\*","\\*/"),Al=cr("#","$"),Ml={scope:"number",begin:ga,relevance:0},Nl={scope:"number",begin:ha,relevance:0},Tl={scope:"number",begin:xa,relevance:0},Rl={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[gn,{begin:/\[/,end:/\]/,relevance:0,contains:[gn]}]},_l={scope:"title",begin:ma,relevance:0},Il={scope:"title",begin:Co,relevance:0},Dl={begin:"\\.\\s*"+Co,relevance:0},Ol=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})},ir=Object.freeze({__proto__:null,APOS_STRING_MODE:wl,BACKSLASH_ESCAPE:gn,BINARY_NUMBER_MODE:Tl,BINARY_NUMBER_RE:xa,COMMENT:cr,C_BLOCK_COMMENT_MODE:kl,C_LINE_COMMENT_MODE:Cl,C_NUMBER_MODE:Nl,C_NUMBER_RE:ha,END_SAME_AS_BEGIN:Ol,HASH_COMMENT_MODE:Al,IDENT_RE:ma,MATCH_NOTHING_RE:bl,METHOD_GUARD:Dl,NUMBER_MODE:Ml,NUMBER_RE:ga,PHRASAL_WORDS_MODE:Sl,QUOTE_STRING_MODE:El,REGEXP_MODE:Rl,RE_STARTERS_RE:yl,SHEBANG:vl,TITLE_MODE:_l,UNDERSCORE_IDENT_RE:Co,UNDERSCORE_TITLE_MODE:Il});function Ll(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Fl(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Pl(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Ll,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Bl(e,t){Array.isArray(e.illegal)&&(e.illegal=Eo(...e.illegal))}function zl(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Hl(e,t){e.relevance===void 0&&(e.relevance=1)}var $l=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");let n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=at(n.beforeMatch,fa(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},jl=["of","and","for","in","not","or","if","then","parent","list","value"],Vl="keyword";function ba(e,t,n=Vl){let r=Object.create(null);return typeof e=="string"?o(n,e.split(" ")):Array.isArray(e)?o(n,e):Object.keys(e).forEach(function(c){Object.assign(r,ba(e[c],t,c))}),r;function o(c,i){t&&(i=i.map(s=>s.toLowerCase())),i.forEach(function(s){let a=s.split("|");r[a[0]]=[c,Ul(a[0],a[1])]})}}function Ul(e,t){return t?Number(t):Gl(e)?0:1}function Gl(e){return jl.includes(e.toLowerCase())}var aa={},it=e=>{console.error(e)},sa=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Ct=(e,t)=>{aa[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),aa[`${e}/${t}`]=!0)},sr=new Error;function ya(e,t,{key:n}){let r=0,o=e[n],c={},i={};for(let s=1;s<=t.length;s++)i[s+r]=o[s],c[s+r]=!0,r+=da(t[s-1]);e[n]=i,e[n]._emit=c,e[n]._multi=!0}function Yl(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw it("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),sr;if(typeof e.beginScope!="object"||e.beginScope===null)throw it("beginScope must be object"),sr;ya(e,e.begin,{key:"beginScope"}),e.begin=So(e.begin,{joinWith:""})}}function Wl(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw it("skip, excludeEnd, returnEnd not compatible with endScope: {}"),sr;if(typeof e.endScope!="object"||e.endScope===null)throw it("endScope must be object"),sr;ya(e,e.end,{key:"endScope"}),e.end=So(e.end,{joinWith:""})}}function ql(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Xl(e){ql(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Yl(e),Wl(e)}function Jl(e){function t(i,s){return new RegExp(mn(i),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,s]),this.matchAt+=da(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let s=this.regexes.map(a=>a[1]);this.matcherRe=t(So(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;let a=this.matcherRe.exec(s);if(!a)return null;let l=a.findIndex((m,P)=>P>0&&m!==void 0),C=this.matchIndexes[l];return a.splice(0,l),Object.assign(a,C)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];let a=new n;return this.rules.slice(s).forEach(([l,C])=>a.addRule(l,C)),a.compile(),this.multiRegexes[s]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,a){this.rules.push([s,a]),a.type==="begin"&&this.count++}exec(s){let a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let l=a.exec(s);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){let C=this.getMatcher(0);C.lastIndex=this.lastIndex+1,l=C.exec(s)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function o(i){let s=new r;return i.contains.forEach(a=>s.addRule(a.begin,{rule:a,type:"begin"})),i.terminatorEnd&&s.addRule(i.terminatorEnd,{type:"end"}),i.illegal&&s.addRule(i.illegal,{type:"illegal"}),s}function c(i,s){let a=i;if(i.isCompiled)return a;[Fl,zl,Xl,$l].forEach(C=>C(i,s)),e.compilerExtensions.forEach(C=>C(i,s)),i.__beforeBegin=null,[Pl,Bl,Hl].forEach(C=>C(i,s)),i.isCompiled=!0;let l=null;return typeof i.keywords=="object"&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),l=i.keywords.$pattern,delete i.keywords.$pattern),l=l||/\w+/,i.keywords&&(i.keywords=ba(i.keywords,e.case_insensitive)),a.keywordPatternRe=t(l,!0),s&&(i.begin||(i.begin=/\B|\b/),a.beginRe=t(a.begin),!i.end&&!i.endsWithParent&&(i.end=/\B|\b/),i.end&&(a.endRe=t(a.end)),a.terminatorEnd=mn(a.end)||"",i.endsWithParent&&s.terminatorEnd&&(a.terminatorEnd+=(i.end?"|":"")+s.terminatorEnd)),i.illegal&&(a.illegalRe=t(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map(function(C){return Zl(C==="self"?i:C)})),i.contains.forEach(function(C){c(C,a)}),i.starts&&c(i.starts,s),a.matcher=o(a),a}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=je(e.classNameAliases||{}),c(e)}function va(e){return e?e.endsWithParent||va(e.starts):!1}function Zl(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return je(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:va(e)?je(e,{starts:e.starts?je(e.starts):null}):Object.isFrozen(e)?je(e):e}var Ql="11.11.1",wo=class extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}},xo=pa,ca=je,la=Symbol("nomatch"),Kl=7,wa=function(e){let t=Object.create(null),n=Object.create(null),r=[],o=!0,c="Could not find the language '{}', did you forget to load/include a language module?",i={disableAutodetect:!0,name:"Plain text",contains:[]},s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:vo};function a(p){return s.noHighlightRe.test(p)}function l(p){let x=p.className+" ";x+=p.parentNode?p.parentNode.className:"";let A=s.languageDetectRe.exec(x);if(A){let O=me(A[1]);return O||(sa(c.replace("{}",A[1])),sa("Falling back to no-highlight mode for this block.",p)),O?A[1]:"no-highlight"}return x.split(/\s+/).find(O=>a(O)||me(O))}function C(p,x,A){let O="",Y="";typeof x=="object"?(O=p,A=x.ignoreIllegals,Y=x.language):(Ct("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ct("10.7.0",`Please use highlight(code, options) instead.
|
|
2
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),Y=p,O=x),A===void 0&&(A=!0);let fe={code:O,language:Y};w("before:highlight",fe);let Ie=fe.result?fe.result:m(fe.language,fe.code,A);return Ie.code=fe.code,w("after:highlight",Ie),Ie}function m(p,x,A,O){let Y=Object.create(null);function fe(v,M){return v.keywords[M]}function Ie(){if(!D.keywords){Z.addText(j);return}let v=0;D.keywordPatternRe.lastIndex=0;let M=D.keywordPatternRe.exec(j),L="";for(;M;){L+=j.substring(v,M.index);let H=he.case_insensitive?M[0].toLowerCase():M[0],ne=fe(D,H);if(ne){let[Ce,_a]=ne;if(Z.addText(L),L="",Y[H]=(Y[H]||0)+1,Y[H]<=Kl&&(En+=_a),Ce.startsWith("_"))L+=M[0];else{let Ia=he.classNameAliases[Ce]||Ce;ge(M[0],Ia)}}else L+=M[0];v=D.keywordPatternRe.lastIndex,M=D.keywordPatternRe.exec(j)}L+=j.substring(v),Z.addText(L)}function vn(){if(j==="")return;let v=null;if(typeof D.subLanguage=="string"){if(!t[D.subLanguage]){Z.addText(j);return}v=m(D.subLanguage,j,!0,Ro[D.subLanguage]),Ro[D.subLanguage]=v._top}else v=R(j,D.subLanguage.length?D.subLanguage:null);D.relevance>0&&(En+=v.relevance),Z.__addSublanguage(v._emitter,v.language)}function le(){D.subLanguage!=null?vn():Ie(),j=""}function ge(v,M){v!==""&&(Z.startScope(M),Z.addText(v),Z.endScope())}function Ao(v,M){let L=1,H=M.length-1;for(;L<=H;){if(!v._emit[L]){L++;continue}let ne=he.classNameAliases[v[L]]||v[L],Ce=M[L];ne?ge(Ce,ne):(j=Ce,Ie(),j=""),L++}}function Mo(v,M){return v.scope&&typeof v.scope=="string"&&Z.openNode(he.classNameAliases[v.scope]||v.scope),v.beginScope&&(v.beginScope._wrap?(ge(j,he.classNameAliases[v.beginScope._wrap]||v.beginScope._wrap),j=""):v.beginScope._multi&&(Ao(v.beginScope,M),j="")),D=Object.create(v,{parent:{value:D}}),D}function No(v,M,L){let H=hl(v.endRe,L);if(H){if(v["on:end"]){let ne=new ar(v);v["on:end"](M,ne),ne.isMatchIgnored&&(H=!1)}if(H){for(;v.endsParent&&v.parent;)v=v.parent;return v}}if(v.endsWithParent)return No(v.parent,M,L)}function Aa(v){return D.matcher.regexIndex===0?(j+=v[0],1):(mr=!0,0)}function Ma(v){let M=v[0],L=v.rule,H=new ar(L),ne=[L.__beforeBegin,L["on:begin"]];for(let Ce of ne)if(Ce&&(Ce(v,H),H.isMatchIgnored))return Aa(M);return L.skip?j+=M:(L.excludeBegin&&(j+=M),le(),!L.returnBegin&&!L.excludeBegin&&(j=M)),Mo(L,v),L.returnBegin?0:M.length}function Na(v){let M=v[0],L=x.substring(v.index),H=No(D,v,L);if(!H)return la;let ne=D;D.endScope&&D.endScope._wrap?(le(),ge(M,D.endScope._wrap)):D.endScope&&D.endScope._multi?(le(),Ao(D.endScope,v)):ne.skip?j+=M:(ne.returnEnd||ne.excludeEnd||(j+=M),le(),ne.excludeEnd&&(j=M));do D.scope&&Z.closeNode(),!D.skip&&!D.subLanguage&&(En+=D.relevance),D=D.parent;while(D!==H.parent);return H.starts&&Mo(H.starts,v),ne.returnEnd?0:M.length}function Ta(){let v=[];for(let M=D;M!==he;M=M.parent)M.scope&&v.unshift(M.scope);v.forEach(M=>Z.openNode(M))}let wn={};function To(v,M){let L=M&&M[0];if(j+=v,L==null)return le(),0;if(wn.type==="begin"&&M.type==="end"&&wn.index===M.index&&L===""){if(j+=x.slice(M.index,M.index+1),!o){let H=new Error(`0 width match regex (${p})`);throw H.languageName=p,H.badRule=wn.rule,H}return 1}if(wn=M,M.type==="begin")return Ma(M);if(M.type==="illegal"&&!A){let H=new Error('Illegal lexeme "'+L+'" for mode "'+(D.scope||"<unnamed>")+'"');throw H.mode=D,H}else if(M.type==="end"){let H=Na(M);if(H!==la)return H}if(M.type==="illegal"&&L==="")return j+=`
|
|
3
|
+
`,1;if(dr>1e5&&dr>M.index*3)throw new Error("potential infinite loop, way more iterations than matches");return j+=L,L.length}let he=me(p);if(!he)throw it(c.replace("{}",p)),new Error('Unknown language: "'+p+'"');let Ra=Jl(he),fr="",D=O||Ra,Ro={},Z=new s.__emitter(s);Ta();let j="",En=0,Ue=0,dr=0,mr=!1;try{if(he.__emitTokens)he.__emitTokens(x,Z);else{for(D.matcher.considerAll();;){dr++,mr?mr=!1:D.matcher.considerAll(),D.matcher.lastIndex=Ue;let v=D.matcher.exec(x);if(!v)break;let M=x.substring(Ue,v.index),L=To(M,v);Ue=v.index+L}To(x.substring(Ue))}return Z.finalize(),fr=Z.toHTML(),{language:p,value:fr,relevance:En,illegal:!1,_emitter:Z,_top:D}}catch(v){if(v.message&&v.message.includes("Illegal"))return{language:p,value:xo(x),illegal:!0,relevance:0,_illegalBy:{message:v.message,index:Ue,context:x.slice(Ue-100,Ue+100),mode:v.mode,resultSoFar:fr},_emitter:Z};if(o)return{language:p,value:xo(x),illegal:!1,relevance:0,errorRaised:v,_emitter:Z,_top:D};throw v}}function P(p){let x={value:xo(p),illegal:!1,relevance:0,_top:i,_emitter:new s.__emitter(s)};return x._emitter.addText(p),x}function R(p,x){x=x||s.languages||Object.keys(t);let A=P(p),O=x.filter(me).filter(Mt).map(le=>m(le,p,!1));O.unshift(A);let Y=O.sort((le,ge)=>{if(le.relevance!==ge.relevance)return ge.relevance-le.relevance;if(le.language&&ge.language){if(me(le.language).supersetOf===ge.language)return 1;if(me(ge.language).supersetOf===le.language)return-1}return 0}),[fe,Ie]=Y,vn=fe;return vn.secondBest=Ie,vn}function $(p,x,A){let O=x&&n[x]||A;p.classList.add("hljs"),p.classList.add(`language-${O}`)}function W(p){let x=null,A=l(p);if(a(A))return;if(w("before:highlightElement",{el:p,language:A}),p.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",p);return}if(p.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(p)),s.throwUnescapedHTML))throw new wo("One of your code blocks includes unescaped HTML.",p.innerHTML);x=p;let O=x.textContent,Y=A?C(O,{language:A,ignoreIllegals:!0}):R(O);p.innerHTML=Y.value,p.dataset.highlighted="yes",$(p,A,Y.language),p.result={language:Y.language,re:Y.relevance,relevance:Y.relevance},Y.secondBest&&(p.secondBest={language:Y.secondBest.language,relevance:Y.secondBest.relevance}),w("after:highlightElement",{el:p,result:Y,text:O})}function ae(p){s=ca(s,p)}let te=()=>{st(),Ct("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function At(){st(),Ct("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ve=!1;function st(){function p(){st()}if(document.readyState==="loading"){Ve||window.addEventListener("DOMContentLoaded",p,!1),Ve=!0;return}document.querySelectorAll(s.cssSelector).forEach(W)}function hn(p,x){let A=null;try{A=x(e)}catch(O){if(it("Language definition for '{}' could not be registered.".replace("{}",p)),o)it(O);else throw O;A=i}A.name||(A.name=p),t[p]=A,A.rawDefinition=x.bind(null,e),A.aliases&&xn(A.aliases,{languageName:p})}function lr(p){delete t[p];for(let x of Object.keys(n))n[x]===p&&delete n[x]}function ur(){return Object.keys(t)}function me(p){return p=(p||"").toLowerCase(),t[p]||t[n[p]]}function xn(p,{languageName:x}){typeof p=="string"&&(p=[p]),p.forEach(A=>{n[A.toLowerCase()]=x})}function Mt(p){let x=me(p);return x&&!x.disableAutodetect}function pr(p){p["before:highlightBlock"]&&!p["before:highlightElement"]&&(p["before:highlightElement"]=x=>{p["before:highlightBlock"](Object.assign({block:x.el},x))}),p["after:highlightBlock"]&&!p["after:highlightElement"]&&(p["after:highlightElement"]=x=>{p["after:highlightBlock"](Object.assign({block:x.el},x))})}function bn(p){pr(p),r.push(p)}function yn(p){let x=r.indexOf(p);x!==-1&&r.splice(x,1)}function w(p,x){let A=p;r.forEach(function(O){O[A]&&O[A](x)})}function k(p){return Ct("10.7.0","highlightBlock will be removed entirely in v12.0"),Ct("10.7.0","Please use highlightElement now."),W(p)}Object.assign(e,{highlight:C,highlightAuto:R,highlightAll:st,highlightElement:W,highlightBlock:k,configure:ae,initHighlighting:te,initHighlightingOnLoad:At,registerLanguage:hn,unregisterLanguage:lr,listLanguages:ur,getLanguage:me,registerAliases:xn,autoDetection:Mt,inherit:ca,addPlugin:bn,removePlugin:yn}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Ql,e.regex={concat:at,lookahead:fa,either:Eo,optional:ml,anyNumberOfTimes:dl};for(let p in ir)typeof ir[p]=="object"&&ua(ir[p]);return Object.assign(e,ir),e},kt=wa({});kt.newInstance=()=>wa({});Ea.exports=kt;kt.HighlightJS=kt;kt.default=kt});var De={},tu=Symbol("terminator");function Va(e,t){let n=!1,r={error:o,unsubscribe:c,get closed(){return n},signal:new Oe,next(i){if(!n)try{e.next?.(i)}catch(s){o(s)}},complete(){if(!n)try{e.complete?.()}finally{c()}}};e.signal?.subscribe(c);function o(i){if(n)throw i;if(!e.error)throw c(),i;try{e.error(i)}finally{c()}}function c(){n||(n=!0,r.signal.next())}try{t?.(r)}catch(i){o(i)}return r}var _=class{__subscribe;constructor(t){this.__subscribe=t}then(t,n){return Ya(this).then(t,n)}pipe(...t){return t.reduce((n,r)=>r(n),this)}subscribe(t){return Va(!t||typeof t=="function"?{next:t}:t,this.__subscribe)}},Ge=class extends _{closed=!1;signal=new Oe;observers=new Set;constructor(){super(t=>this.onSubscribe(t))}next(t){if(!this.closed)for(let n of Array.from(this.observers))n.closed||n.next(t)}error(t){if(!this.closed){this.closed=!0;let n=!1,r;for(let o of Array.from(this.observers))try{o.error(t)}catch(c){n=!0,r=c}if(n)throw r}}complete(){this.closed||(this.closed=!0,Array.from(this.observers).forEach(t=>t.complete()),this.observers.clear())}onSubscribe(t){this.closed?t.complete():(this.observers.add(t),t.signal.subscribe(()=>this.observers.delete(t)))}},Oe=class extends _{closed=!1;observers=new Set;constructor(){super(t=>{this.closed?(t.next(),t.complete()):this.observers.add(t)})}next(){if(!this.closed){this.closed=!0;for(let t of Array.from(this.observers))t.closed||(t.next(),t.complete());this.observers.clear()}}},Sn=class extends Ge{queue=[];emitting=!1;next(t){if(!this.closed)if(this.emitting)this.queue.push(t);else{for(this.emitting=!0,super.next(t);this.queue.length;)super.next(this.queue.shift());this.emitting=!1}}},Nt=class extends Ge{currentValue;constructor(t){super(),this.currentValue=t}get value(){return this.currentValue}next(t){this.currentValue=t,super.next(t)}onSubscribe(t){let n=super.onSubscribe(t);return this.closed||t.next(this.currentValue),n}},hr=class extends Ge{bufferSize;buffer=[];hasError=!1;lastError;constructor(t=1/0){super(),this.bufferSize=t}error(t){this.hasError=!0,this.lastError=t,super.error(t)}next(t){return this.buffer.length===this.bufferSize&&this.buffer.shift(),this.buffer.push(t),super.next(t)}onSubscribe(t){this.observers.add(t),this.buffer.forEach(n=>t.next(n)),this.hasError?t.error(this.lastError):this.closed&&t.complete(),t.signal.subscribe(()=>this.observers.delete(t))}},ct=class extends Ge{$value=De;get hasValue(){return this.$value!==De}get value(){if(this.$value===De)throw new Error("Reference not initialized");return this.$value}next(t){return this.$value=t,super.next(t)}onSubscribe(t){!this.closed&&this.$value!==De&&t.next(this.$value),super.onSubscribe(t)}},xr=class extends Error{message="No elements in sequence"};function ke(...e){return new _(t=>{let n=0,r;function o(){let c=e[n++];t.closed?t.complete():(r?.next(),c?.subscribe({next:t.next,error:t.error,complete:o,signal:r=new Oe}))}t.signal.subscribe(()=>r?.next()),o()})}function Q(e){return new _(t=>{e().subscribe(t)})}function Io(e){return new _(t=>{for(let n of e)t.closed||t.next(n);t.complete()})}function Do(e){return new _(t=>{e.then(n=>{t.closed||t.next(n),t.complete()}).catch(n=>t.error(n))})}function Cn(e){return Q(()=>Do(e()))}function Ua(e){return new _(t=>{for(let n of e)t.closed||t.next(n);t.complete()})}function kn(e){return e instanceof _?e:Array.isArray(e)?Io(e):e instanceof Promise?Do(e):Ua(e)}function F(...e){return Io(e)}function Ga(e){return new Promise((t,n)=>{let r=De;e.subscribe({next:o=>r=o,error:o=>n(o),complete:()=>t(r)})})}function Ya(e){return Ga(e).then(t=>t===De?void 0:t)}function Ye(e,t){return Ae(n=>({next:e(n),unsubscribe:t}))}function Ae(e){return t=>new _(n=>{let r=e(n,t);n.signal.subscribe(()=>r.unsubscribe?.()),r.error||(r.error=n.error),r.complete||(r.complete=n.complete),r.signal=n.signal,t.subscribe(r)})}function br(e){return Ye(t=>n=>t.next(e(n)))}function Wa(e){let t=De;return Ye(n=>r=>{let o=e(r);o!==t&&(t=o,n.next(o))})}function qa(e,t){return Ae(n=>{let r=t,o=0;return{next(c){r=e(r,c,o++)},complete(){n.next(r),n.complete()}}})}function Xa(e){return Ae(t=>{let n=!0,r;return{next(o){n&&(n=!1,t.next(o),r=setTimeout(()=>n=!0,e))},unsubscribe:()=>clearTimeout(r)}})}function We(e){return new _(t=>{let n=setTimeout(()=>{t.next(),t.complete()},e);t.signal.subscribe(()=>clearTimeout(n))})}function Ja(e,t=We){return Oo(n=>t(e).map(()=>n))}function Oo(e){return t=>K(n=>{let r=!1,o=!1,c,i=()=>{c?.next(),r=!1,o&&n.complete()},s=new Oe;n.signal.subscribe(()=>{i(),s.next()}),t.subscribe({next(a){i(),c=new Oe,r=!0,e(a).subscribe({next:n.next,error:n.error,complete:i,signal:c})},error:n.error,complete(){o=!0,r||n.complete()},signal:s})})}function Za(e){return t=>K(n=>{let r=n.signal,o=0,c=0,i=!1;t.subscribe({next:s=>{o++,e(s).subscribe({next:n.next,error:n.error,complete:()=>{c++,i&&c===o&&n.complete()},signal:r})},error:n.error,complete(){i=!0,c===o&&n.complete()},signal:r})})}function Qa(e){return Ae(t=>{let n=!0;return{next(r){n&&(n=!1,e(r).subscribe({next:t.next,error:t.error,complete:()=>n=!0,signal:t.signal}))}}})}function An(e){return Ye(t=>n=>{e(n)&&t.next(n)})}function Ka(e){return Ye(t=>n=>{e-- >0&&!t.closed&&t.next(n),(e<=0||t.closed)&&t.complete()})}function es(e){return Ye(t=>n=>{!t.closed&&e(n)?t.next(n):t.complete()})}function ts(){let e=!1;return Ae(t=>({next(n){e||(e=!0,t.next(n),t.complete())},complete(){t.closed||t.error(new xr)}}))}function Tt(e){return Ye(t=>n=>{e(n),t.next(n)})}function ns(e){return Ae((t,n)=>{let r,o={next:t.next,error(c){try{if(t.closed)return;let i=e(c,n);i&&(r?.next(),r=new Oe,i.subscribe({...o,signal:r}))}catch(i){t.error(i)}},unsubscribe:()=>r?.next()};return o})}function rs(){return Ye(e=>{let t=De;return n=>{n!==t&&(t=n,e.next(n))}})}function os(){return e=>{let t=new hr(1),n=!1;return K(r=>{t.subscribe(r),n||(n=!0,e.subscribe(t))})}}function is(){return e=>{let t,n=0;function r(){--n===0&&t.signal.next()}return K(o=>{o.signal.subscribe(r),n++===0?(t=qe(),t.subscribe(o),e.subscribe(t)):t.subscribe(o)})}}function as(){return e=>{let t=new Ge,n,r,o=!1,c=!1;return K(i=>{c?(i.next(r),i.complete()):t.subscribe(i),n??=e.subscribe({next:s=>{o=!0,r=s},error:i.error,complete(){c=!0,o&&t.next(r),t.complete()},signal:i.signal})})}}function f(...e){return e.length===1?e[0]:new _(t=>{let n=e.length;for(let r of e)t.closed||r.subscribe({next:t.next,error:t.error,complete(){n--===1&&t.complete()},signal:t.signal})})}function oe(...e){return e.length===0?T:new _(t=>{let n=e.length,r=n,o=0,c=!1,i=new Array(n),s=new Array(n);e.forEach((a,l)=>a.subscribe({next(C){s[l]=C,i[l]||(i[l]=!0,++o>=r&&(c=!0)),c&&t.next(s.slice(0))},error:t.error,complete(){--n<=0&&t.complete()},signal:t.signal}))})}function ss(e){return Ae(t=>({next:t.next,unsubscribe:e}))}function cs(){return An(()=>!1)}var T=new _(e=>e.complete());function ie(e){return new Nt(e)}function K(e){return new _(e)}function qe(){return new ct}var _o={catchError:ns,debounceTime:Ja,distinctUntilChanged:rs,exhaustMap:Qa,filter:An,finalize:ss,first:ts,ignoreElements:cs,map:br,mergeMap:Za,publishLast:as,reduce:qa,select:Wa,share:is,shareLatest:os,switchMap:Oo,take:Ka,takeWhile:es,tap:Tt,throttleTime:Xa};for(let e in _o)_.prototype[e]=function(...t){return this.pipe(_o[e](...t))};function S(e,t,n){return new _(r=>{let o=r.next.bind(r);e.addEventListener(t,o,n),r.signal.subscribe(()=>e.removeEventListener(t,o,n))})}function Mn(e){return yr(e,{childList:!0})}function Nn(e,t){return yr(e,{attributes:!0,attributeFilter:t})}function yr(e,t={attributes:!0,childList:!0}){return new _(n=>{let r=new MutationObserver(o=>o.forEach(c=>{for(let i of c.addedNodes)n.next({type:"added",target:e,value:i});for(let i of c.removedNodes)n.next({type:"removed",target:e,value:i});c.type==="characterData"?n.next({type:"characterData",target:e}):c.attributeName&&n.next({type:"attribute",target:e,value:c.attributeName})}));r.observe(e,t),n.signal.subscribe(()=>r.disconnect())})}function Tn(e){return S(e,"keydown").filter(t=>t.key===" "||t.key==="Enter"?(t.preventDefault(),!0):!1)}function q(e){return S(e,"click")}function Rn(e,t){return new _(n=>{let r=new IntersectionObserver(o=>{for(let c of o)n.next(c)},t);r.observe(e),n.signal.subscribe(()=>r.disconnect())})}function Lo(e){return Rn(e).map(t=>t.isIntersecting)}function Me(e){return Rn(e).filter(t=>t.isIntersecting).first()}function ls(e){let t;return function(...n){t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{e.apply(this,n),t=0})}}function Fo(e){return Ae(t=>{let n=ls(o=>{t.closed||(e&&e(o),t.next(o),r&&t.complete())}),r=!1;return{next:n,complete:()=>r=!0}})}function Po(){return Q(()=>document.readyState!=="loading"?F(!0):S(window,"DOMContentLoaded").first().map(()=>!0))}function _n(e,t,n){let r=new CustomEvent(t,n);e.dispatchEvent(r)}function In(e,t){let n;return f(Q(()=>(n=e.childNodes,n?F():T)),Ne().switchMap(()=>e.childNodes!==n?F():T),yr(e,{childList:!0,...t}).map(()=>{}))}function Ne(){return Q(()=>document.readyState==="complete"?F(!0):S(window,"load").first().map(()=>!0))}function Dn(...e){return new _(t=>{let n=new ResizeObserver(r=>r.forEach(o=>t.next(o)));for(let r of e)n.observe(r);t.signal.subscribe(()=>n.disconnect())})}function Rt(e){return e.offsetParent===null&&!(e.offsetWidth&&e.offsetHeight)}function vr(e,t,n){return r=>ke(F(e?r.matches(e):!1),S(r,t).switchMap(()=>f(F(!0),S(r,n).map(()=>e?r.matches(e):!1))))}var ou=vr("","animationstart","animationend"),wr=vr("","mouseenter","mouseleave"),us=vr(":focus,:focus-within","focusin","focusout"),Er=e=>oe(wr(e),us(e)).map(([t,n])=>t||n);function Bo(e,t,n){return t=t?.toLowerCase(),S(e,"keydown",n).filter(r=>!t||r.key?.toLowerCase()===t)}function _t(e){return e instanceof PointerEvent&&e.pointerType===""||e instanceof MouseEvent&&e.type==="click"&&e.detail===0}function Xe(e){let t=e.getRootNode();return t instanceof Document||t instanceof ShadowRoot?t:void 0}var ps=Tt(e=>console.trace(e));_.prototype.log=function(){return this.pipe(ps)};_.prototype.raf=function(e){return this.pipe(Fo(e))};var ee=Symbol("bindings"),fs={},lt=Symbol("augments"),Je=Symbol("parser"),Cr=class{bindings;messageHandlers;internals;attributes$=new Sn;wasConnected=!1;wasInitialized=!1;subscriptions;prebind;addMessageHandler(t){(this.messageHandlers??=new Set).add(t)}removeMessageHandler(t){this.messageHandlers?.delete(t)}message(t,n){let r=!1;if(this.messageHandlers)for(let o of this.messageHandlers)o.type===t&&(o.next(n),r||=o.stopPropagation);return r}add(t){if(this.wasConnected)throw new Error("Cannot bind connected component.");this.wasInitialized?(this.bindings??=[]).push(t):(this.prebind??=[]).push(t)}connect(){if(this.wasConnected=!0,!this.subscriptions&&(this.prebind||this.bindings)){let t=this.subscriptions=[];if(this.bindings)for(let n of this.bindings)t.push(n.subscribe());if(this.prebind)for(let n of this.prebind)t.push(n.subscribe())}}disconnect(){this.subscriptions?.forEach(t=>t.unsubscribe()),this.subscriptions=void 0}},Ln=Symbol("css"),g=class extends HTMLElement{static observedAttributes;static[lt];static[Je];[ee]=new Cr;[Ln];connectedCallback(){this[ee].wasInitialized=!0,this[ee].wasConnected||this.constructor[lt]?.forEach(t=>t(this)),this[ee].connect()}disconnectedCallback(){this[ee].disconnect()}attributeChangedCallback(t,n,r){let o=this.constructor[Je]?.[t]??ds;n!==r&&(this[t]=o(r,this[t]))}};function ds(e,t){let n=t===!1||t===!0;return e===""?n?!0:"":e===null?n?!1:void 0:e}function zo(e,t){e.hasOwnProperty(lt)||(e[lt]=e[lt]?.slice(0)??[]),e[lt]?.push(t)}var ms={mode:"open"};function z(e){return e.shadowRoot??e.attachShadow(ms)}function Ho(e,t){t instanceof Node?z(e).appendChild(t):e[ee].add(t)}function gs(e,t){t.length&&zo(e,n=>{for(let r of t){let o=r.call(e,n);o&&o!==n&&Ho(n,o)}})}function hs(e,t){fs[e]=t,customElements.define(e,t)}function xe(e){return e[ee].internals??=e.attachInternals()}function u(e,{init:t,augment:n,tagName:r}){if(t)for(let o of t)o(e);n&&gs(e,n),r&&hs(r,e)}function Le(e){return ke(F(e),e[ee].attributes$.map(()=>e))}function V(e,t){return e[ee].attributes$.pipe(An(n=>n.attribute===t),br(()=>e[t]))}function h(e,t){return f(V(e,t),Q(()=>F(e[t])))}function xs(e){let t=e.observedAttributes;return t&&!e.hasOwnProperty("observedAttributes")&&(t=e.observedAttributes?.slice(0)),e.observedAttributes=t||[]}function It(e,t,n){return n===!1||n===null||n===void 0?n=null:n===!0&&(n=""),n===null?e.removeAttribute(t):e.setAttribute(t,String(n)),n}function bs(e,t,n){e.hasOwnProperty(Je)||(e[Je]={...e[Je]}),e[Je]&&(e[Je][t]=n)}function y(e,t){return n=>{t?.observe!==!1&&xs(n).push(e),t?.parse&&bs(n,e,t.parse);let r=`$$${e}`,o=n.prototype,c=Object.getOwnPropertyDescriptor(o,e);c&&Object.defineProperty(o,r,c);let i=t?.persist,s={enumerable:!0,configurable:!1,get(){return this[r]},set(a){this[r]!==a?(this[r]=a,i?.(this,e,a),this[ee].attributes$.next({target:this,attribute:e,value:a})):c?.set&&(i?.(this,e,a),this[r]=a)}};zo(n,a=>{if(c||(a[r]=a[e]),Object.defineProperty(a,e,s),i?.(a,e,a[e]),t?.render){let l=t.render(a);l&&Ho(a,l)}})}}function b(e){return y(e,{persist:It,observe:!0})}function $o(e){let t=`on${e}`;return y(t,{render(n){return h(n,t).switchMap(r=>r?new _(o=>{let c=i=>{i.target===n&&n[t]?.call(n,i)};n.addEventListener(e,c),o.signal.subscribe(()=>n.removeEventListener(e,c))}):T)},parse(n){return n?new Function("event",n):void 0}})}function X(e){return y(e,{observe:!1})}function I(){return document.createElement("slot")}function jo(e){return t=>{let[n,r]=e();return t[ee].add(n),r}}function ys(e,t){let n=document.createTextNode("");return e[ee].add(t.tap(r=>n.textContent=r)),n}var Sr=document.createDocumentFragment();function On(e,t,n=e){if(t!=null)if(Array.isArray(t)){for(let r of t)On(e,r,Sr);n!==Sr&&n.appendChild(Sr)}else e instanceof g&&t instanceof _?n.appendChild(ys(e,t)):t instanceof Node?n.appendChild(t):e instanceof g&&typeof t=="function"?On(e,t(e),n):n.appendChild(document.createTextNode(t))}function Vo(e,t){for(let n in t){let r=t[n];e instanceof g?r instanceof _?e[ee].add(n==="$"?r:r.tap(o=>e[n]=o)):n==="$"&&typeof r=="function"?e[ee].add(r(e)):e[n]=r:e[n]=r}}function vs(e,t){return e.constructor.observedAttributes?.includes(t)}function Uo(e,t){let n=e instanceof g&&vs(e,t)?V(e,t):Nn(e,[t]).map(()=>e[t]);return f(n,Q(()=>F(e[t])))}function Fn(e,t,n){return y(e,{parse(r){if(r==="Infinity"||r==="infinity")return 1/0;let o=r===null?void 0:Number(r);return t!==void 0&&(o===void 0||o<t||isNaN(o))&&(o=t),n!==void 0&&o!==void 0&&o>n&&(o=n),o}})}function ue(e,t,n){for(let r=e.parentElement;r;r=r.parentElement)if(r[ee]?.message(t,n))return}function se(e,t,n=!0){return new _(r=>{let o={type:t,next:r.next,stopPropagation:n};e[ee].addMessageHandler(o),r.signal.subscribe(()=>e[ee].removeMessageHandler(o))})}function N(e,t,...n){let r=typeof e=="string"?document.createElement(e):new e;return t&&Vo(r,t),n.length&&On(r,n),r}function E(e,t,...n){if(e!==E&&typeof e=="function"&&!(e.prototype instanceof g))return n.length&&((t??={}).children=n),e(t);let r=e===E?document.createDocumentFragment():typeof e=="string"?document.createElement(e):new e;return t&&Vo(r,t),n.length&&On(r,n),r}function ws(e,t){return n=>new _(()=>{n.hasAttribute(e)||n.setAttribute(e,t)})}function Go(e,t){return Tt(n=>e.setAttribute("aria-"+t,n===!0?"true":n===!1?"false":n.toString()))}function G(e){return ws("role",e)}var Yo=0;function Te(e){return e.id||=`cxl__${Yo++}`}function Wo(e){return Uo(e,"id").map(t=>(t||(e.id=`cxl__${Yo++}`),e.id))}var ut=d(":host{display:contents}"),Cs=[-2,-1,0,1,2,3,4,5],ti=["display-large","display-medium","display-small","body-large","body-medium","body-small","label-large","label-medium","label-small","headline-large","headline-medium","headline-small","title-large","title-medium","title-small","code"],Dt=qe(),Pn=ie(""),be=d(`:host([disabled]) {
|
|
2
4
|
cursor: default;
|
|
3
5
|
pointer-events: var(--cxl-override-pointer-events, none);
|
|
4
|
-
}`),
|
|
6
|
+
}`),ni=`
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
padding: 4px 16px;
|
|
11
|
+
min-height: 56px;
|
|
12
|
+
align-items: center;
|
|
13
|
+
column-gap: 16px;
|
|
14
|
+
${B("body-medium")}
|
|
15
|
+
`,ks=(()=>{for(let e of Array.from(document.fonts.keys()))if(e.family==="Roboto")return!0;return!1})(),ri={primary:"#186584","on-primary":"#FFFFFF","primary-container":"#C1E8FF","on-primary-container":"#004D67",secondary:"#4E616C","on-secondary":"#FFFFFF","secondary-container":"#D1E6F3","on-secondary-container":"#364954",tertiary:"#5F5A7D","on-tertiary":"#FFFFFF","tertiary-container":"#E5DEFF","on-tertiary-container":"#474364",error:"#BA1A1A","on-error":"#FFFFFF","error-container":"#FFDAD6","on-error-container":"#93000A",background:"#F6FAFE","on-background":"#171C1F",surface:"#F6FAFE","on-surface":"#171C1F","surface-variant":"#DCE3E9","on-surface-variant":"#40484D",outline:"#71787D","outline-variant":"#C0C7CD",shadow:"#000000",scrim:"#000000","inverse-surface":"#2C3134","on-inverse-surface":"#EDF1F5","inverse-primary":"#8ECFF2","primary-fixed":"#C1E8FF","on-primary-fixed":"#001E2B","primary-fixed-dim":"#8ECFF2","on-primary-fixed-variant":"#004D67","secondary-fixed":"#D1E6F3","on-secondary-fixed":"#091E28","secondary-fixed-dim":"#B5C9D7","on-secondary-fixed-variant":"#364954","tertiary-fixed":"#E5DEFF","on-tertiary-fixed":"#1B1736","tertiary-fixed-dim":"#C9C2EA","on-tertiary-fixed-variant":"#474364","surface-dim":"#D6DADE","surface-bright":"#F6FAFE","surface-container-lowest":"#FFFFFF","surface-container-low":"#F0F4F8","surface-container":"#EAEEF2","surface-container-high":"#E5E9ED","surface-container-highest":"#DFE3E7",warning:"#DD2C00","on-warning":"#FFFFFF","warning-container":"#FFF4E5","on-warning-container":"#8C1D18",success:"#2E7D32","on-success":"#FFFFFF","success-container":"#81C784","on-success-container":"#000000"};function oi(e=""){return`
|
|
16
|
+
:host ${e} {
|
|
17
|
+
${re("surface-container")}
|
|
18
|
+
overflow-y: auto;
|
|
19
|
+
padding: 8px 0;
|
|
20
|
+
min-width: 112px;
|
|
21
|
+
max-width: 280px;
|
|
22
|
+
width: max-content;
|
|
23
|
+
border-radius: var(--cxl-shape-corner-xsmall);
|
|
24
|
+
cursor: default;
|
|
25
|
+
z-index: 2;
|
|
26
|
+
}
|
|
27
|
+
:host([static]) ${e} { max-width: none; }
|
|
28
|
+
`}function ii(e=ri){return Object.entries(e).map(([t,n])=>`--cxl-color--${t}:${n};--cxl-color-${t}:var(--cxl-color--${t});`).join("")}var J={name:"",animation:{flash:{kf:{opacity:[1,0,1,0,1]},options:{easing:"ease-in"}},spin:{kf:{rotate:["0deg","360deg"]}},pulse:{kf:{rotate:["0deg","360deg"]},options:{easing:"steps(8)"}},openY:{kf:e=>({height:["0",`${e.scrollHeight}px`]})},closeY:{kf:e=>({height:[`${e.scrollHeight}px`,"0"]})},expand:{kf:{scale:[0,1]}},expandX:{kf:{scale:["0 1","1 1"]}},expandY:{kf:{scale:["1 0","1 1"]}},zoomIn:{kf:{scale:[.3,1]}},zoomOut:{kf:{scale:[1,.3]}},scaleUp:{kf:{scale:[1,1.25]}},fadeIn:{kf:[{opacity:0},{opacity:1}]},fadeOut:{kf:[{opacity:1},{opacity:0}]},shakeX:{kf:{translate:["0","-10px","10px","-10px","10px","-10px","10px","-10px","10px","0"]}},shakeY:{kf:{translate:["0","0 -10px","0 10px","0 -10px","0 10px","0 -10px","0 10px","0 -10px","0 10px","0"]}},slideOutLeft:{kf:{translate:["0","-100% 0"]}},slideInLeft:{kf:{translate:["-100% 0","0"]}},slideOutRight:{kf:{translate:["0","100% 0"]}},slideInRight:{kf:{translate:["100% 0","0"]}},slideInUp:{kf:{translate:["0 100%","0"]}},slideInDown:{kf:{translate:["0 -100%","0"]}},slideOutUp:{kf:{translate:["0","0 -100%"]}},slideOutDown:{kf:{translate:["0","0 100%"]}},focus:{kf:[{offset:.1,filter:"brightness(150%)"},{filter:"brightness(100%)"}],options:{duration:500}}},easing:{emphasized:"cubic-bezier(0.2, 0.0, 0, 1.0)",emphasized_accelerate:"cubic-bezier(0.05, 0.7, 0.1, 1.0)",emphasized_decelerate:"cubic-bezier(0.3, 0.0, 0.8, 0.15)",standard:"cubic-bezier(0.2, 0.0, 0, 1.0)",standard_accelerate:"cubic-bezier(0, 0, 0, 1)",standard_decelerate:"cubic-bezier(0.3, 0, 1, 1)"},breakpoints:{xsmall:0,small:600,medium:905,large:1240,xlarge:1920,xxlarge:2560},disableAnimations:!1,prefersReducedMotion:window.matchMedia("(prefers-reduced-motion: reduce)").matches,colors:ri,imports:ks?void 0:["https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&family=Roboto:wght@300;400;500;700&display=swap"],globalCss:`:root{
|
|
5
29
|
--cxl-color-scrim: rgb(29 27 32 / 0.5); /* neutral 10? #1D1B20 */
|
|
6
30
|
|
|
7
31
|
--cxl-font-family: Roboto;
|
|
@@ -58,7 +82,7 @@ var Z={},Ja=Symbol("terminator");function Xt(e,t){let r=!1,a={error:n,unsubscrib
|
|
|
58
82
|
--cxl-shape-corner-xsmall: 4px;
|
|
59
83
|
--cxl-shape-corner-full: 50vh;
|
|
60
84
|
}
|
|
61
|
-
`,css:""};function
|
|
85
|
+
`,css:""};function Ot(e=""){return`:host ${e} {
|
|
62
86
|
--cxl-mask-hover: color-mix(in srgb, var(--cxl-color-on-surface) 8%, transparent);
|
|
63
87
|
--cxl-mask-focus: color-mix(in srgb, var(--cxl-color-on-surface) 10%, transparent);
|
|
64
88
|
--cxl-mask-active: linear-gradient(0, var(--cxl-color-surface-container),var(--cxl-color-surface-container));
|
|
@@ -66,32 +90,65 @@ var Z={},Ja=Symbol("terminator");function Xt(e,t){let r=!1,a={error:n,unsubscrib
|
|
|
66
90
|
:host(:hover) ${e} { background-image: linear-gradient(0, var(--cxl-mask-hover),var(--cxl-mask-hover)); }
|
|
67
91
|
:host(:focus-visible) ${e} { background-image: linear-gradient(0, var(--cxl-mask-focus),var(--cxl-mask-focus)) }
|
|
68
92
|
:host{-webkit-tap-highlight-color: transparent}
|
|
69
|
-
`}var
|
|
70
|
-
${t?`:host ${
|
|
71
|
-
:host${t?"":"([color])"} ${
|
|
93
|
+
`}var Bn=d(Ot()),ai={"./theme-dark.js":()=>Promise.resolve().then(()=>(Jo(),Xo))},Ze=[0,4,8,16,24,32,48,64],Fe,Zo,As;function U(e,t){return e==="xsmall"?`@media(max-width:${J.breakpoints.small}px){${t}}`:`@media(min-width:${J.breakpoints[e]}px){${t}}`}function pt(e){return Dn(e).map(t=>{let n=J.breakpoints,r=t.contentRect.width,o="xsmall";for(let c in n){if(n[c]>r)return o;o=c}return o})}function Ms(e=""){return Object.entries(fi).map(([t,n])=>`:host([color=${t}]) ${e}{ ${n} }`).join("")}function ft(e,t,n=""){return si(e,`
|
|
94
|
+
${t?`:host ${n} { ${fi[t]} }`:""}
|
|
95
|
+
:host${t?"":"([color])"} ${n} {
|
|
72
96
|
color: var(--cxl-color-on-surface);
|
|
73
97
|
background-color: var(--cxl-color-surface);
|
|
74
98
|
}
|
|
75
|
-
:host([color=transparent]) ${
|
|
99
|
+
:host([color=transparent]) ${n}{
|
|
76
100
|
color: inherit;
|
|
77
101
|
background-color: transparent;
|
|
78
102
|
}
|
|
79
|
-
${
|
|
80
|
-
`)}function
|
|
103
|
+
${Ms(n)}
|
|
104
|
+
`)}function si(e,t){let n=d(t);return y(e,{persist:It,render:r=>n(r)})}function ye(e,t){return si(e,Cs.map(n=>{let r=t(n);return n===0?`:host ${r}`:`:host([size="${n}"]) ${r}`}).join(""))}function ci(){let e=Fe?document.adoptedStyleSheets.indexOf(Fe):-1;e!==-1&&document.adoptedStyleSheets.splice(e,1)}function Ns(e){Fe&&ci();let t=e.globalCss??"";e.colors&&(t+=`:root{${ii(e.colors)}}`),t?(Fe=Pe(t),document.adoptedStyleSheets.push(Fe)):Fe=void 0,Dt.next({theme:e,stylesheet:Fe,css:t}),Pn.next(e.name)}var Qo="";function li(e){e?e!==Qo&&(typeof e=="string"?import(e):e()).then(t=>Ns(t.default),t=>console.error(t)):Fe&&(ci(),Dt.next(void 0),Pn.next("")),Qo=e}function Ts(e){let t;return Dt.tap(n=>{let r=n?.theme.override?.[e.tagName];r?t?t.replace(r).catch(o=>console.error(o)):e.shadowRoot?.adoptedStyleSheets.push(t??=Pe(r)):t&&t.replaceSync("")})}function Pe(e){let t=new CSSStyleSheet;return e&&t.replaceSync(e),t}function ui(e,t=""){let n=Pe(t);return z(e).adoptedStyleSheets.push(n),n}function d(e){let t;return n=>{let r=z(n);if(r.adoptedStyleSheets.push(t??=Pe(e)),!n[Ln])return J.css&&r.adoptedStyleSheets.unshift(As??=Pe(J.css)),n[Ln]=!0,Ts(n)}}var pi=["background","primary","primary-container","primary-fixed-dim","primary-fixed","secondary","secondary-container","tertiary","tertiary-container","surface","surface-container","surface-container-low","surface-container-lowest","surface-container-highest","surface-container-high","error","error-container","success","success-container","warning","warning-container","inverse-surface","inverse-primary"],gu=[...pi,"inherit"];function kr(e,t="surface"){return`--cxl-color-${t}: var(--cxl-color--${e});
|
|
81
105
|
--cxl-color-on-${t}: var(--cxl-color--on-${e}, var(--cxl-color--on-surface));
|
|
82
106
|
--cxl-color-surface-variant: var(--cxl-color--${e==="surface"?"surface-variant":e});
|
|
83
107
|
--cxl-color-on-surface-variant: ${e.includes("surface")?"var(--cxl-color--on-surface-variant)":`color-mix(in srgb, var(--cxl-color--on-${e}) 80%, transparent)`};
|
|
84
|
-
`}function
|
|
85
|
-
${
|
|
86
|
-
${t==="inverse-surface"?
|
|
87
|
-
`,e),{inherit:"color:inherit;background-color:inherit;"});function
|
|
108
|
+
`}function re(e){return`${kr(e)};background-color:var(--cxl-color-surface);color:var(--cxl-color-on-surface);`}var fi=pi.reduce((e,t)=>(e[t]=`
|
|
109
|
+
${kr(t)}
|
|
110
|
+
${t==="inverse-surface"?kr("inverse-primary","primary"):""}
|
|
111
|
+
`,e),{inherit:"color:inherit;background-color:inherit;"});function dt(e=":host"){return`
|
|
88
112
|
${e} {
|
|
89
113
|
scrollbar-color: var(--cxl-color-outline-variant) var(--cxl-color-surface, transparent);
|
|
90
114
|
}
|
|
91
115
|
${e}::-webkit-scrollbar-track {
|
|
92
116
|
background-color: var(--cxl-color-surface, transparent);
|
|
93
117
|
}
|
|
94
|
-
`}function
|
|
118
|
+
`}function B(e){return`font:var(--cxl-font-${e});letter-spacing:var(--cxl-letter-spacing-${e});`}var Rs=requestAnimationFrame(()=>Fs()),_s={},Ko=document.createElement("template"),ei={};function Is(e){return function(t){let n=e(t),r=ei[n];if(r)return r.cloneNode(!0);let o=document.createElementNS("http://www.w3.org/2000/svg","svg"),c=()=>(o.dispatchEvent(new ErrorEvent("error")),"");return fetch(n).then(i=>i.ok?i.text():c(),c).then(i=>{if(!i)return;Ko.innerHTML=i;let s=Ko.content.children[0];if(!s)return;let a=s.getAttribute("viewBox");a?o.setAttribute("viewBox",a):s.hasAttribute("width")&&s.hasAttribute("height")&&o.setAttribute("viewBox",`0 0 ${s.getAttribute("width")} ${s.getAttribute("height")}`);for(let l of s.childNodes)o.append(l);ei[t.name]=o}).catch(i=>console.error(i)),o.setAttribute("fill","currentColor"),o}}var Ds=Is(({name:e,width:t,fill:n})=>(t!==20&&t!==24&&t!==40&&t!==48&&(t=48),`https://cdn.jsdelivr.net/gh/google/material-design-icons@941fa95/symbols/web/${e}/materialsymbolsoutlined/${e}_${n?"fill1_":""}${t}px.svg`)),Os=Ds;function di(e,t={}){let{width:n,height:r}=t;n===void 0&&r===void 0&&(n=r=24);let o=_s[e]?.icon()??Os({name:e,width:n,fill:t.fill});return t.className&&o.setAttribute("class",t.className),n&&(o.setAttribute("width",`${n}`),r===void 0&&o.setAttribute("height",`${n}`)),r&&(o.setAttribute("height",`${r}`),n===void 0&&o.setAttribute("width",`${r}`)),t.alt&&o.setAttribute("alt",t.alt),o}var Ar,Ls=new Promise(e=>{Ar=e});function Fs(e){cancelAnimationFrame(Rs),Zo||(e&&(e.colors&&(J.colors=e.colors),e.globalCss&&(J.globalCss+=e.globalCss)),document.adoptedStyleSheets.push(Zo=Pe(`:root { ${ii(J.colors)} }`+J.globalCss)),J.imports?Promise.allSettled(J.imports.map(t=>{let n=document.createElement("link");return n.rel="stylesheet",n.href=t,document.head.append(n),new Promise((r,o)=>(n.onload=r,n.onerror=o))})).then(Ar,t=>console.error(t)):Ar())}function zn(){return Cn(async()=>{await Ls,await document.fonts.ready})}var Mr=[d(`
|
|
119
|
+
:host {
|
|
120
|
+
box-sizing: border-box;
|
|
121
|
+
background-color: var(--cxl-color-surface);
|
|
122
|
+
color: var(--cxl-color-on-surface);
|
|
123
|
+
flex-shrink: 0;
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
column-gap: 24px;
|
|
127
|
+
min-height: 64px;
|
|
128
|
+
padding: 4px 16px;
|
|
129
|
+
${B("title-large")}
|
|
130
|
+
}
|
|
131
|
+
:host([size=medium]) {
|
|
132
|
+
height: 112px;
|
|
133
|
+
padding: 20px 16px 24px 16px;
|
|
134
|
+
${B("headline-small")}
|
|
135
|
+
flex-wrap: wrap;
|
|
136
|
+
}
|
|
137
|
+
:host([size=medium]) slot[name=title],:host([size=large]) slot[name=title] { width: 100%; display: block; margin-top:auto; }
|
|
138
|
+
:host([size=large]) {
|
|
139
|
+
height: 152px; padding: 20px 16px 28px 16px;
|
|
140
|
+
${B("headline-medium")}
|
|
141
|
+
flex-wrap: wrap;
|
|
142
|
+
}`),I,()=>N("slot",{name:"title"})];function Ps(e){return e.tagName==="C-APPBAR-CONTEXTUAL"}var Lt=class extends g{size;sticky=!1;contextual};u(Lt,{tagName:"c-appbar",init:[b("size"),b("sticky"),b("contextual")],augment:[d(`
|
|
143
|
+
:host { z-index: 2; width:100%; }
|
|
144
|
+
:host([sticky]) { position: sticky; top: -1px; }
|
|
145
|
+
:host([scroll]) {
|
|
146
|
+
transition: background-color var(--cxl-speed);
|
|
147
|
+
border-top: 1px solid var(--cxl-color-surface-container); background-color: var(--cxl-color-surface-container)
|
|
148
|
+
}
|
|
149
|
+
:host([contextual]) { padding: 0; }
|
|
150
|
+
:host([contextual]) slot:not([name=contextual]) { display:none; }
|
|
151
|
+
`),...Mr,()=>N("slot",{name:"contextual"}),e=>h(e,"sticky").switchMap(t=>t?Rn(e,{threshold:[1]}).tap(n=>e.toggleAttribute("scroll",n.intersectionRatio<1)):T),e=>{let t;return f(Mn(e),h(e,"contextual")).raf().switchMap(()=>{for(let n of e.children)if(Ps(n)&&(n.slot="contextual",n.open=n.name===e.contextual,n.open))return t=n,S(n,"close").tap(()=>e.contextual=void 0);return t&&(t.open=!1),t=void 0,T})}]});function Bs(e){return h(e,"disabled").tap(t=>t?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled"))}function zs(e,t=e,n=0){let r=t.hasAttribute("tabindex")?t.tabIndex:n;return Bs(e).tap(o=>{o?t.removeAttribute("tabindex"):t.tabIndex=r})}function Hs(e,t=e){return f(S(t,"focusout").tap(()=>e.touched=!0),f(V(e,"disabled"),V(e,"touched")).tap(()=>ue(e,"focusable.change")))}function Be(e,t=e,n=0){return f(zs(e,t,n),Hs(e,t))}function mi(e){return e in J.animation}function Re({target:e,animation:t,options:n}){if(J.disableAnimations)return e.animate(null);if(typeof t=="string"&&!(t in J.animation))throw new Error(`Animation "${t}" not defined`);let r=typeof t=="string"?J.animation[t]:t,o=typeof r.kf=="function"?r.kf(e):r.kf,c={duration:250,easing:J.easing.emphasized,...r.options,...n,...J.prefersReducedMotion?{duration:0}:void 0};return e.animate(o,c)}function gi(e){let{trigger:t,stagger:n,commit:r,keep:o}=e;function c(s){return new _(a=>{let l=Re(s);l.ready.then(()=>a.next({type:"start",animation:l}),()=>{}),l.addEventListener("finish",()=>{a.next({type:"end",animation:l}),r&&l.commitStyles(),!(o||o!==!1&&s.options?.fill&&(s.options.fill==="both"||s.options.fill==="forwards"))&&a.complete()}),a.signal.subscribe(()=>{try{l.cancel()}catch{}})})}let i=Array.isArray(e.target)?e.target:e.target instanceof Element?[e.target]:Array.from(e.target);return f(...i.map((s,a)=>{let l={...e.options,delay:n!==void 0?(e.options?.delay??0)+a*n:e.options?.delay};return(t==="visible"?Lo(s).filter(m=>m):t==="hover"?wr(s):F(!0)).switchMap(m=>m?c({...e,options:l,target:s}):T)}))}function hi(e,t,n=e.getBoundingClientRect()){let r=n.width>n.height?n.width:n.height,o=new Hn,c=e.shadowRoot||e,{x:i,y:s}=t??{x:1/0,y:1/0},a=!t||_t(t),l=i>n.right||i<n.left||s>n.bottom||s<n.top;return o.x=a||l?n.width/2:i-n.left,o.y=a||l?n.height/2:s-n.top,o.radius=r,t||(o.duration=0),c.prepend(o),o}function xi(e,t=e){let n,r,o,c=()=>{n=hi(t,r instanceof Event?r:void 0,o),n.duration=600,r=void 0};return f(S(e,"click").tap(i=>{r=i,o=t.getBoundingClientRect()}),h(e,"selected").raf().switchMap(()=>{if(e.selected){if(!n?.parentNode){if(Rt(e))return r=void 0,Me(e).tap(c);c()}}else n&&bi(n).catch(i=>console.error(i));return T})).ignoreElements()}function bi(e){return new Promise(t=>{Re({target:e,animation:"fadeOut"}).addEventListener("finish",()=>{e.remove(),t()})})}function ve(e,t=e){let n=!1,r=0;return f(S(t,"pointerdown"),S(t,"click")).tap(o=>o.cxlRipple??=e).raf().mergeMap(o=>{if(o.cxlRipple===e&&!n&&!e.disabled&&e.parentNode){r=Date.now(),n=!0,e.style.setProperty("--cxl-mask-hover","none");let c=hi(e,o),i=c.duration,s=()=>{e.style.removeProperty("--cxl-mask-hover"),bi(c).catch(()=>{}).finally(()=>{n=!1})};return o.type==="click"?We(i).tap(s):f(S(document,"pointerup"),S(document,"pointercancel")).first().map(()=>{let a=Date.now()-r;setTimeout(()=>s(),a>i?32:i-a)})}return T})}var Hn=class extends g{x=0;y=0;radius=0;duration=500};u(Hn,{tagName:"c-ripple",init:[y("x"),y("y"),y("radius")],augment:[d(`
|
|
95
152
|
:host {
|
|
96
153
|
display: block;
|
|
97
154
|
position: absolute;
|
|
@@ -108,7 +165,7 @@ ${t==="inverse-surface"?Ct("inverse-primary","primary"):""}
|
|
|
108
165
|
background-image: inherit;
|
|
109
166
|
border-radius: 100%;
|
|
110
167
|
background-color: var(--cxl-color-ripple, color-mix(in srgb, var(--cxl-color-on-surface) 16%, transparent));
|
|
111
|
-
}`),e=>{let t=document.createElement("div");return t.className="ripple",
|
|
168
|
+
}`),e=>{let t=document.createElement("div");return t.className="ripple",K(()=>{let n=t.style;n.translate=`${e.x-e.radius}px ${e.y-e.radius}px`,n.width=n.height=e.radius*2+"px",t.parentNode||z(e).append(t),Re({target:t,animation:"expand",options:{duration:e.duration}}),Re({target:t,animation:"fadeIn",options:{duration:e.duration/2}})})}]});var Qe=[be,Bn,d(`
|
|
112
169
|
:host {
|
|
113
170
|
box-sizing: border-box;
|
|
114
171
|
position: relative;
|
|
@@ -142,9 +199,9 @@ ${t==="inverse-surface"?Ct("inverse-primary","primary"):""}
|
|
|
142
199
|
:host([variant=outlined][disabled]),:host([variant=text][disabled]) {
|
|
143
200
|
background-color: transparent;
|
|
144
201
|
box-shadow: none;
|
|
145
|
-
}`)]
|
|
202
|
+
}`)],$s=d(`
|
|
146
203
|
:host {
|
|
147
|
-
${
|
|
204
|
+
${B("label-large")}
|
|
148
205
|
user-select: none;
|
|
149
206
|
cursor: pointer;
|
|
150
207
|
overflow: hidden;
|
|
@@ -176,104 +233,257 @@ ${t==="inverse-surface"?Ct("inverse-primary","primary"):""}
|
|
|
176
233
|
:host([variant=elevated]) {
|
|
177
234
|
--cxl-color-on-surface: var(--cxl-color-primary);
|
|
178
235
|
}
|
|
179
|
-
`);function
|
|
236
|
+
`);function Nr(e){return h(e,"disabled").switchMap(t=>t?T:Tn(e).tap(n=>{n.stopPropagation(),e.click()}))}function Tr(e){return f(Nr(e),Be(e))}var mt=class extends g{disabled=!1;touched=!1};u(mt,{init:[b("disabled"),b("touched")],augment:[G("button"),Tr]});var Ft=class extends mt{size;color;variant};u(Ft,{tagName:"c-button",init:[ye("size",e=>`{
|
|
180
237
|
font-size: ${14+e*4}px;
|
|
181
238
|
min-height: ${40+e*8}px;
|
|
182
239
|
padding-right: ${16+e*4}px;
|
|
183
240
|
padding-left: ${16+e*4}px;
|
|
184
|
-
}`)
|
|
241
|
+
}`),ft("color","primary"),b("variant")],augment:[...Qe,$s,ve,I]});var Pt=class extends Ft{};u(Pt,{tagName:"c-button-round",augment:[d(`
|
|
242
|
+
:host { min-width:40px; min-height: 40px; padding: 4px; border-radius: 100%; flex-shrink: 0; }
|
|
243
|
+
:host([variant=text]) { margin: -8px; }
|
|
244
|
+
:host([variant=text]:not([disabled])) { color: inherit; }
|
|
245
|
+
:host(:hover) { box-shadow:none; }
|
|
246
|
+
`)]});var pe=class extends g{name="";width;height;alt;fill=!1};u(pe,{tagName:"c-icon",init:[y("name"),y("width"),y("height"),y("fill"),y("alt")],augment:[G("none"),d(`
|
|
247
|
+
:host {
|
|
248
|
+
display: inline-block;
|
|
249
|
+
width: 24px;
|
|
250
|
+
height: 24px;
|
|
251
|
+
flex-shrink: 0;
|
|
252
|
+
vertical-align: middle;
|
|
253
|
+
}
|
|
254
|
+
.icon { width: 100%; height: 100% }
|
|
255
|
+
`),e=>{let t=new CSSStyleSheet,n;return e.shadowRoot?.adoptedStyleSheets.push(t),Me(e).switchMap(()=>Le(e)).debounceTime(0).tap(()=>{let r=e.width??e.height,o=e.height??e.width;t.replace(`:host{${r===void 0?"":`width:${r}px;`}${o===void 0?"":`height:${o}px`}}`).catch(c=>{}),n?.remove(),n=e.name?di(e.name,{className:"icon",width:r,height:o,fill:e.fill,alt:e.alt}):void 0,n&&(n.onerror=()=>{n&&e.alt&&n.replaceWith(e.alt)},z(e).append(n))})}]});var ce=class extends Pt{icon="";width;height;fill=!1;variant="text";alt};u(ce,{tagName:"c-icon-button",init:[y("icon"),y("width"),y("height"),y("alt"),y("fill")],augment:[e=>N(pe,{className:"icon",width:h(e,"width"),height:h(e,"height"),name:h(e,"icon"),fill:h(e,"fill"),alt:h(e,"alt")})]});var op=1440*60*1e3;function yi(e,t,n){if(t==="relative"){let r=new Date;return e.getFullYear()===r.getFullYear()?e.getDate()===r.getDate()&&e.getMonth()===r.getMonth()?e.toLocaleTimeString(n,{hour:"2-digit",minute:"2-digit",hourCycle:"h24"}):e.toLocaleDateString(n,{month:"2-digit",day:"2-digit"}):e.toLocaleDateString(n,{month:"2-digit",day:"2-digit",year:"2-digit"})}return e.toLocaleString(n,{dateStyle:t,timeStyle:t})}function vi(e,t,n){return typeof n=="string"?yi(t,n,e):t.toLocaleString(e,n)}var Rr={"core.enable":"Enable","core.disable":"Disable","core.cancel":"Cancel","core.ok":"Ok","core.open":"Open","core.close":"Close","core.of":"of"};function js(){try{return new Intl.NumberFormat(navigator.language),navigator.language}catch{return"en-US"}}var Bt={content:Rr,name:"default",localeName:js(),currencyCode:"USD",decimalSeparator:1.1.toLocaleString().substring(1,2),weekStart:0,formatDate:(e,t)=>vi(Bt.localeName,e,t)},Vs={content:Rr,name:"en",localeName:"en-US",currencyCode:"USD",decimalSeparator:".",weekStart:0,formatDate:(e,t)=>vi("en-US",e,t)};function Us(){let e=ie(Bt),t={default:Bt,en:Vs},n={},r=e.map(i=>i.content);async function o(i){let s=i.split("-")[0];if(!s)return Bt;if(!(t[i]??t[s])){let l=n[i]??n[s];l&&await l()}return t[s]||Bt}async function c(i){e.next(await o(i))}return navigator.language&&c(navigator.language).catch(i=>console.error(i)),{content:r,registeredLocales:t,locale:e,setLocale:c,getLocale(i){return i?Cn(()=>o(i)):e},get(i,s){return r.map(a=>a[i])},register(i){t[i.name]=i}}}var gt=Us();function wi(e){return Object.assign(Rr,e),gt.get}var $n=class e extends g{name;size;open=!1;backIcon=N(ce,{icon:"arrow_back",className:"icon",ariaLabel:gt.get("core.close"),$:t=>q(t).tap(()=>this.open=!1)});static{u(e,{tagName:"c-appbar-contextual",init:[y("name"),b("open"),b("size")],augment:[t=>t.backIcon,...Mr,d(`
|
|
185
256
|
:host {
|
|
186
|
-
|
|
257
|
+
display: none;
|
|
258
|
+
flex-grow: 1;
|
|
259
|
+
overflow-x: hidden;
|
|
260
|
+
white-space: nowrap;
|
|
261
|
+
text-overflow: ellipsis;
|
|
262
|
+
}
|
|
263
|
+
:host([open]) { display: flex }
|
|
264
|
+
:host(:dir(rtl)) .icon { scale: -1 1; }
|
|
265
|
+
`),t=>V(t,"open").tap(n=>{n||t.dispatchEvent(new Event("close"))})]})}};var _r=class{currentPopupContainer;currentPopup;currentModal;currentTooltip;popupContainer=document.body;toggle(t){t.element.parentElement!==this.popupContainer?this.popupOpened(t):t.close()}popupOpened(t){this.currentPopup&&t.element!==this.currentPopup.element&&this.currentPopup.close(),this.currentPopup=t}openModal(t){this.currentModal&&t.element!==this.currentModal.element&&this.currentModal.close(),t.element.parentNode||this.popupContainer.append(t.element),t.element.open||t.element.showModal(),this.currentModal=t}closeModal(){this.currentModal?.close(),this.modalClosed()}modalClosed(){this.currentModal=void 0}tooltipOpened(t){this.currentTooltip&&this.currentTooltip!==t&&this.currentTooltip.remove(),this.currentTooltip=t}close(){this.currentPopup?.close()}},ze=new _r;function Ei(e=document){document.documentElement.lang="en";let t=[N("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),N("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),N("meta",{name:"mobile-web-app-capable",content:"yes"}),N("style",void 0,`html{height:100%;}html,body{padding:0;margin:0;min-height:100%;${B("body-large")}}
|
|
266
|
+
a{color:var(--cxl-color-on-surface)}
|
|
267
|
+
`)];return e.head.append(...t),t}function Si(e=2e3){return f(We(e),zn()).first()}function Ci(e){return Si().raf(()=>e.setAttribute("ready",""))}function jn(e){return f(K(t=>{let n=Ei(e.ownerDocument);t.signal.subscribe(()=>n.forEach(r=>r.remove()))}),Ne().raf(()=>{let t=e.firstElementChild;t instanceof HTMLTemplateElement&&(e.append(t.content),t.remove())}),Si().switchMap(()=>pt(e).raf(t=>e.setAttribute("breakpoint",t))),Ci(e),Pn.raf(t=>t?e.setAttribute("theme",t):e.removeAttribute("theme")))}var Ir=class extends g{connectedCallback(){requestAnimationFrame(()=>Ei(this.ownerDocument)),super.connectedCallback()}};u(Ir,{tagName:"c-meta",augment:[()=>Ci(document.body)]});function ki(e,t,n){n==="in"&&(e.style.display="");let r=e.offsetWidth,o=Re({target:e,animation:{kf:{[t]:n==="in"?[`-${r}px`,"0"]:["0",`-${r}px`]}}});n==="out"&&(o.onfinish=()=>e.style.display="none")}var zt=class extends g{sheetstart=!1;sheetend=!1};u(zt,{tagName:"c-application",init:[b("sheetstart"),b("sheetend")],augment:[d(`
|
|
268
|
+
:host {
|
|
269
|
+
display: flex;
|
|
270
|
+
position: absolute;
|
|
271
|
+
inset: 0;
|
|
272
|
+
${re("background")}
|
|
273
|
+
overflow: hidden;
|
|
274
|
+
}
|
|
275
|
+
#body {
|
|
276
|
+
display: flex;
|
|
277
|
+
flex-direction: column;
|
|
278
|
+
flex-grow: 1;
|
|
279
|
+
overflow: hidden;
|
|
187
280
|
position: relative;
|
|
281
|
+
}
|
|
282
|
+
slot[name=end],slot[name=start] { display:block; flex-shrink: 0; }
|
|
283
|
+
${dt()}
|
|
284
|
+
`),jn,e=>se(e,"toggle.open").tap(t=>{(t==="sheetend"||t==="sheetstart")&&(e[t]=!0)}),e=>se(e,"toggle.close").tap(t=>{(t==="sheetend"||t==="sheetstart")&&(e[t]=!1)}),e=>{let t=N("slot",{name:"start"}),n=N("slot",{id:"body"}),r=N("slot",{name:"end"}),o=Pe("html { overflow: hidden }");return z(e).append(t,n,r),e.sheetstart||(t.style.display="none"),e.sheetend||(r.style.display="none"),ze.popupContainer=e,f(K(c=>{let i=e.ownerDocument.adoptedStyleSheets;i.push(o),c.signal.subscribe(()=>{let s=i.indexOf(o);s!==-1&&i.splice(s,1)})}),V(e,"sheetstart").tap(c=>ki(t,"marginLeft",c?"in":"out")),V(e,"sheetend").tap(c=>ki(r,"marginRight",c?"in":"out")))}]});function He(e,t,n){return new _(r=>{let o={id:e,controller:n,target:t};ue(t,`registable.${e}`,o),r.signal.subscribe(()=>o.unsubscribe?.())})}function Vn(e,t,n,r){return new _(o=>{function c(s){let a=s.target;s.unsubscribe=()=>{let m=n.indexOf(a);m!==-1&&n.splice(m,1),r?.({type:"disconnect",target:a,elements:n}),o.next()};let l=n.indexOf(a);l!==-1&&n.splice(l,1);let C=n.findIndex(m=>m.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING);C===-1?n.push(a):n.splice(C,0,a),r?.({type:"connect",target:a,elements:n}),o.next()}let i=se(t,`registable.${e}`).subscribe(c);o.signal.subscribe(i.unsubscribe)})}function Ai(e,t,n=new Set){return new _(r=>{function o(i){let s=i.target,a=i.controller||i.target;i.unsubscribe=()=>{n.delete(a),r.next({type:"disconnect",target:a,element:s,elements:n})},n.add(a),r.next({type:"connect",target:a,element:s,elements:n})}let c=se(t,`registable.${e}`).subscribe(o);r.signal.subscribe(c.unsubscribe)})}var Dr={get(e){try{return localStorage.getItem(e)??void 0}catch(t){console.error(t)}return""},set(e,t){try{localStorage.setItem(e,t)}catch(n){console.error(n)}}};function Mi(e){return(t,n)=>t[e]>n[e]?1:t[e]<n[e]?-1:0}function Un(e,t){if(t==="_parent")return e.parentElement||void 0;if(t==="_next")return e.nextElementSibling||void 0;if(typeof t!="string")return t??void 0;let n,r=e.getRootNode();return r instanceof ShadowRoot&&(n=r.getElementById(t),n)?n:e.ownerDocument.getElementById(t)??void 0}var Gs=/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i,Ys=/^\d{5}(?:[-\s]\d{4})?$/,Ws={"validation.invalid":"Invalid value","validation.json":"Invalid JSON value","validation.zipcode":"Please enter a valid zip code","validation.equalTo":"Values do not match","validation.equalToElement":"Values do not match","validation.greaterThanElement":"Values do not match","validation.lessThanElement":"Values do not match","validation.required":"This field is required","validation.nonZero":"Value cannot be zero","validation.email":"Please enter a valid email address","validation.pattern":"Invalid pattern","validation.min":"Invalid value","validation.max":"Invalid value","validation.minlength":"Invalid value","validation.maxlength":"Invalid value","validation.greaterThan":"Invalid value","validation.lessThan":"Invalid value","validation.nonEmpty":"Value must not be empty"},Ni={required:ec,email:tc,json:oc,zipcode:nc,nonZero:Qs,nonEmpty:Zs},qs={pattern:Ks,equalToElement:Or(Ii),greaterThan:Ri,lessThan:_i,greaterThanElement:Or(Ri),lessThanElement:Or(_i),min:ac,max:sc,equalTo:Ii,maxlength:cc,minlength:lc},Xs=wi(Ws);function Or(e){return(t,n)=>{let r=typeof t=="string"?Un(n,t):t;if(!r)throw"Invalid element";return e(r)}}function we(e,t){return{key:e,valid:t,message:Xs(`validation.${e}`,"validation.invalid")}}function Js(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function Zs(e){return we("nonEmpty",!Js(e))}function Qs(e){return we("nonZero",e===""||Number(e)!==0)}function Ks(e){let t=typeof e=="string"?e=new RegExp(e):e;return n=>we("pattern",typeof n=="string"&&(n===""||t.test(n)))}function Lr(e){return e!=null&&e!==""}function ec(e,t){let n=t&&"checked"in t?!!t.checked:!0;return we("required",n&&Lr(e))}function tc(e){return we("email",typeof e=="string"&&(e===""||Gs.test(e)))}function nc(e){return we("zipcode",typeof e=="string"&&(e===""||Ys.test(e)))}function rc(e){try{return JSON.parse(e),!0}catch{return!1}}function oc(e){return we("json",rc(e))}function ic(e){return e instanceof HTMLElement&&"value"in e}function Ht(e,t,n){let r=ic(t)?h(t,"value"):t instanceof _?t:F(t);return o=>r.map(c=>we(e,!Lr(o)||!Lr(c)||n(o,c)))}function Ti(e,t){let n=/(\w+)(?:\(([^)]+?)\))?/g,r=[],o;for(;o=n.exec(e);)if(o[2]){let c=qs[o[1]];if(!c)throw`Invalid rule "${o[1]}"`;r.push(c(o[2],t))}else if(o[1]&&o[1]in Ni)r.push(Ni[o[1]]);else throw`Invalid rule "${o[1]}"`;return r}function Di(e,t){let n=(typeof e=="string"?Ti(e,t):e).flatMap(r=>typeof r=="string"?Ti(r,t):r);return(r,o)=>n.map(c=>{let i=c(r,o);return i instanceof _?i:i instanceof Promise?kn(i):F(i)})}function ac(e){return Ht("min",e,(t,n)=>Number(t)>=Number(n))}function Ri(e){return Ht("greaterThan",e,(t,n)=>Number(t)>Number(n))}function sc(e){return Ht("max",e,(t,n)=>Number(t)<=Number(n))}function _i(e){return Ht("lessThan",e,(t,n)=>Number(t)<Number(n))}function Ii(e){return Ht("equalTo",e,(t,n)=>t==n)}function cc(e){return t=>we("maxlength",!t||t.length<=+e)}function lc(e){return t=>we("minlength",!t||t.length>=+e)}function uc(e){return Li(e).tap(()=>e.dispatchEvent(new Event("update",{bubbles:!0})))}function Oi(e){return V(e,"value").tap(()=>{e.shadowRoot?.delegatesFocus||_n(e,"change",{bubbles:!0})})}function Li(e){return f(h(e,"value"),h(e,"checked")).map(()=>{})}var ht=class e extends g{static formAssociated=!0;autofocus=!1;invalid=!1;disabled=!1;touched=!1;rules;validationResult;name;validMap={};onupdate;defaultValue;static{u(e,{init:[b("autofocus"),b("invalid"),b("disabled"),b("touched"),y("rules"),b("name"),X("validationResult"),$o("update")],augment:[t=>(t.defaultValue=t.value,f(He("form",t),V(t,"invalid").tap(()=>_n(t,"invalid")),h(t,"invalid").switchMap(n=>{if(n){if(t.setAria("invalid","true"),!t.validationMessage)return gt.get("validation.invalid").tap(r=>t.setCustomValidity(r))}else t.setAria("invalid",null);return T}),K(()=>{t.autofocus&&setTimeout(()=>t.focus(),250)}),h(t,"rules").switchMap(n=>{if(!n)return T;let r=Di(n,t);return Li(t).switchMap(()=>f(...r(t.value,t)).tap(o=>t.setValidity(o))).finalize(()=>t.resetValidity())}),h(t,"value").tap(n=>t.setFormValue(n)),h(t,"validationResult").switchMap(n=>!n||n.valid?T:n.message instanceof _?n.message:n.message===void 0?gt.get("validation.invalid"):F(n.message)).tap(n=>{t.setCustomValidity(n)}))),uc]})}get labels(){return xe(this).labels}get validity(){return xe(this).validity}get validationMessage(){return xe(this).validationMessage}reportValidity(){return xe(this).reportValidity()}checkValidity(){return xe(this).checkValidity()}setCustomValidity(t){let n=!!t,r=t!==this.validationMessage;this.applyValidity(n,t),this.invalid!==n?this.invalid=n:r&&_n(this,"invalid")}formResetCallback(){this.value=this.defaultValue,this.touched=!1}setAria(t,n){n?this.setAttribute(`aria-${t}`,n):this.removeAttribute(`aria-${t}`)}resetValidity(){for(let t in this.validMap)this.validMap[t]={valid:!0};this.resetInvalid()}resetInvalid(){this.validationResult=void 0,this.applyValidity(!1),this.invalid=!1}setValidity(t){this.validMap[t.key||"invalid"]=t;for(let n in this.validMap){let r=this.validMap[n];if(r&&!r.valid)return this.validationResult=r}this.resetInvalid()}applyValidity(t,n){xe(this).setValidity({customError:t},n)}formDisabledCallback(t){this.disabled=t}setFormValue(t){xe(this).setFormValue(t)}};function pc(e,t){let n,r=t.key;if(r==="ArrowDown"&&e.goDown)n=e.goDown();else if(r==="ArrowRight"&&e.goRight)n=e.goRight();else if(r==="ArrowUp"&&e.goUp)n=e.goUp();else if(r==="ArrowLeft"&&e.goLeft)n=e.goLeft();else if(r==="Home")n=t.ctrlKey&&e.goFirstColumn?e.goFirstColumn():e.goFirst();else if(r==="End")n=t.ctrlKey&&e.goLastColumn?e.goLastColumn():e.goLast();else if(e.other)n=e.other(t);else return null;return t.stopPropagation(),n&&t.preventDefault(),n}function $t(e){return S(e.host,"keydown").map(t=>pc(e,t)).filter(t=>!!t)}function fc(e){return new _(t=>{let n=e.focus;e.focus=()=>{n.call(e),t.next()},t.signal.subscribe(()=>e.focus=n)})}function Fi({host:e,observe:t,getFocusable:n,getSelected:r,getActive:o=()=>Fr(e)}){let c=[];function i(){let s=c.find(a=>!a.disabled&&!a.hidden&&!Rt(a));s&&(s.tabIndex=0)}return f(S(e,"focusin").tap(()=>{let s=o(),a=!1;for(let l of c)l.tabIndex=l===s?(a=!0,0):-1;a||i()}),(t??F(!0)).tap(()=>{if(c=n(),c.find(l=>l.tabIndex===0))return;let a=r?.();a?a.tabIndex=0:i()}),e instanceof HTMLElement?fc(e).tap(()=>{let s=n();(s.find(l=>l.tabIndex===0)??s[0])?.focus()}):T).ignoreElements()}function Fr(e){return Xe(e)?.activeElement??document.activeElement??void 0}function Pi({getFocusable:e,getActive:t}){return(n=1,r,o=Rt)=>{let c=t(),i=e(),s=r??(c?i.indexOf(c):-1),a;do a=i[s+=n];while(a&&o(a));return a}}function Bi({host:e,input:t,handleOther:n=!1,axis:r}){let o=()=>e.querySelector("[focused]")??e.querySelector("[selected]");function c(m=1){if(e.open===!1){e.open=!0;let P=o();requestAnimationFrame(()=>{P?.focused&&l(P)})}else return i(m)}function i(m=1,P){let R=o(),$=P??(R?e.options.indexOf(R):-1),W;do W=e.options[$+=m];while(W?.hidden);return W}function s(m){let P=m.key;if(/^\w$/.test(P)){let R=o(),$=R?e.options.indexOf(R):-1;if($===-1)return;let W=$;W+1>=e.options.length&&($=0);let ae=new RegExp(`^\\s*${P}`,"i"),te;for(;te=e.options[++$];)if(!te.hidden&&te.textContent.match(ae))return te;if(W===0)return;for($=0;$<W&&(te=e.options[$++]);)if(!te.hidden&&te.textContent.match(ae))return te}}let a=()=>e.options.find(m=>m.focused);function l(m){for(let P of e.options)P.focused=!1;m?(m.focused=!0,t?.setAria("activedescendant",Te(m)),m.rendered?.scrollIntoView({block:"nearest"})):t?.setAria("activedescendant",null)}let C=m=>ue(m,"selectable.action",m);return f($t({host:t??e,...r==="x"?{goLeft:()=>c(-1),goRight:()=>c(1)}:{goDown:()=>c(1),goUp:()=>c(-1)},goFirst:()=>e.open!==!1?i(1,-1):void 0,goLast:()=>e.open!==!1?i(-1,e.options.length):void 0,other:n?s:void 0}).tap(m=>{e.open===!1?C(m):l(m)}),S(t??e,"focus").tap(()=>l(o())),Bo(t??e,"Enter").tap(m=>{let P=a();e.open!==!1&&P?(m.stopPropagation(),C(P)):e.open===!1&&(e.open=!0)}))}function Pr(e){return new _(t=>{f(Vn("selectable",e,e.options,n=>{if(n.type==="connect"&&(n.target.view=e.optionView,n.target.selected))return e.defaultValue===void 0&&(e.defaultValue=n.target.value),t.next(n.target);let r;for(let o of e.options)o.hidden||!o.parentNode||o.selected&&(r?o.selected=!1:r=o);t.next(r)}),se(e,"selectable.action").tap(n=>{if(!e.disabled&&e.options.includes(n)){let r=e.value!==n.value;t.next(n),r&&(e.dispatchEvent(new Event("change",{bubbles:!0})),e.dispatchEvent(new Event("input",{bubbles:!0})))}})).subscribe({signal:t.signal})})}var Ke={},Gn=class e extends ht{options=[];_value;_selected=Ke;static{u(e,{init:[y("value"),X("selected")],augment:[t=>Pr(t).tap(n=>{(!n||n!==t.selected)&&t.setSelected(n)}).raf(()=>{t.selected?.selected===!1&&t.setSelected(t.selected)})]})}get value(){return this._selected===Ke?this.options[0]?.value:this._value}get selected(){return this._selected===Ke&&this.options[0]?this.options[0]:this._selected}set value(t){if(this._selected&&this._selected!==Ke&&this._selected.value===t){this._value=t;return}else for(let n of this.options)if(n.value===t){this._value=t,this.setSelected(n);return}this._selected!==Ke?(this._value=void 0,this._selected=void 0):this._value=t}formResetCallback(){super.formResetCallback(),!this.selected&&this.options.length&&this.setSelected(this.options[0])}setSelected(t){for(let n of this.options)n.focused=n.selected=!1;t?(t.selected=!0,this._selected=t,this.value=t.value):this._selected!==Ke&&(!this._selected||this.options.includes(this._selected)?this._selected=void 0:this._selected=Ke)}};function zi(e,t,...n){let r=document.createElementNS("http://www.w3.org/2000/svg",e);for(let o in t){if(o==="children")continue;let c=t[o];r.setAttribute(o==="className"?"class":o,c??"")}return n.length&&r.append(...n),r}function Yn(e){return zi("svg",e,zi("path",{d:e.d}))}function dc({host:e,target:t,position:n,onToggle:r,whenClosed:o=T}){return c=>(t.popover??="auto",t.togglePopover(c),r?.(c),c?f(Dn(e),S(window,"resize"),S(window,"scroll",{capture:!0,passive:!0})).tap(n):o)}function Hi(e){let{host:t,beforeToggle:n,target:r}=e,o=dc({...e,whenClosed:q(t).tap(()=>{t.open=!0})});return f(S(r,"toggle").tap(c=>{let i=c.newState==="open";t.open=i}),h(t,"open").raf().switchMap(c=>(n?.(c),t.ariaExpanded=c?"true":"false",o(c))))}var jt=class extends g{invalid=!1};u(jt,{tagName:"c-field-help",init:[y("invalid")],augment:[d(`
|
|
285
|
+
:host {
|
|
188
286
|
display: flex;
|
|
189
|
-
padding: 4px 16px;
|
|
190
|
-
min-height: 56px;
|
|
191
287
|
align-items: center;
|
|
192
|
-
column-gap:
|
|
193
|
-
${
|
|
288
|
+
column-gap: 8px;
|
|
289
|
+
${B("body-small")}
|
|
194
290
|
}
|
|
195
|
-
|
|
196
|
-
:host
|
|
197
|
-
|
|
198
|
-
|
|
291
|
+
`),I,e=>(e.slot||="help",h(e,"invalid").tap(t=>{e.ariaLive??=t?"assertive":"polite"}))]});var zr=d(`
|
|
292
|
+
:host {
|
|
293
|
+
display: block;
|
|
294
|
+
position: relative;
|
|
295
|
+
text-align: start;
|
|
296
|
+
${B("body-large")}
|
|
297
|
+
}
|
|
298
|
+
:host([invalid]),:host([invalid]) slot[name=label],:host([invalid]) slot[name=trailing] {
|
|
299
|
+
--cxl-color-primary: var(--cxl-color-error);
|
|
300
|
+
--cxl-field-invalid: var(--cxl-color-error);
|
|
301
|
+
color: var(--cxl-color-error);
|
|
302
|
+
}
|
|
303
|
+
.content {
|
|
304
|
+
position: relative;
|
|
305
|
+
box-sizing: border-box;
|
|
306
|
+
display: flex;
|
|
307
|
+
column-gap: 12px;
|
|
308
|
+
align-items: center;
|
|
309
|
+
padding: 8px 12px 8px 12px;
|
|
310
|
+
}
|
|
311
|
+
::slotted([slot=help]) { margin-top: 4px; }
|
|
312
|
+
.help {
|
|
313
|
+
${B("body-small")}
|
|
314
|
+
padding: 0 16px;
|
|
315
|
+
display: flex;
|
|
316
|
+
flex-direction: column;
|
|
199
317
|
}
|
|
200
|
-
|
|
318
|
+
.body {
|
|
319
|
+
display:flex;
|
|
320
|
+
flex-direction: column;
|
|
321
|
+
flex-grow: 1;
|
|
322
|
+
justify-content: center;
|
|
323
|
+
margin: 0 4px;
|
|
324
|
+
}
|
|
325
|
+
slot[name=label] {
|
|
326
|
+
display:block;
|
|
327
|
+
}
|
|
328
|
+
#bodyslot { display: flex; column-gap: 16px; align-items: center; }
|
|
329
|
+
.indicator { position:absolute; }
|
|
330
|
+
`),mc=d(`
|
|
331
|
+
:host(:focus-within) slot[name=label] { color: var(--cxl-color-primary); }
|
|
332
|
+
slot[name=label] {
|
|
333
|
+
${B("body-small")}
|
|
334
|
+
height: 16px;
|
|
335
|
+
}
|
|
336
|
+
:host([floating]) slot[name=label] {
|
|
337
|
+
display:none;
|
|
338
|
+
transition: font var(--cxl-speed), height var(--cxl-speed), top var(--cxl-speed), left var(--cxl-speed);
|
|
339
|
+
}
|
|
340
|
+
:host([floating]) slot[name=label].novalue, :host([floating]) slot[name=label].value { display:block; }
|
|
341
|
+
`),gc=d(`
|
|
201
342
|
:host {
|
|
343
|
+
border-radius: var(--cxl-shape-corner-xsmall) var(--cxl-shape-corner-xsmall) 0 0;
|
|
344
|
+
}
|
|
345
|
+
:host([floating]:not(:focus-within)) slot[name=label].novalue {
|
|
346
|
+
${B("body-large")}
|
|
347
|
+
height: 0;
|
|
348
|
+
}
|
|
349
|
+
:host([inputdisabled]) {
|
|
350
|
+
filter: saturate(0);
|
|
351
|
+
opacity: 0.6;
|
|
352
|
+
pointer-events: var(--cxl-override-pointer-events, none);
|
|
353
|
+
}
|
|
354
|
+
.content {
|
|
202
355
|
--cxl-color-on-surface: var(--cxl-color-on-surface-variant);
|
|
203
|
-
--cxl-color-
|
|
204
|
-
background-color: var(--cxl-color-surface);
|
|
356
|
+
--cxl-color-surface: var(--cxl-color-surface-container-highest);
|
|
205
357
|
color: var(--cxl-color-on-surface);
|
|
206
|
-
|
|
358
|
+
background-color: var(--cxl-color-surface);
|
|
359
|
+
min-height: 56px;
|
|
360
|
+
padding: 8px 12px 8px 12px;
|
|
361
|
+
}
|
|
362
|
+
.indicator {
|
|
363
|
+
background-color: var(--cxl-field-invalid, var(--cxl-color-on-surface-variant));
|
|
364
|
+
bottom: 0; height: 1px; left: 0; right: 0;
|
|
365
|
+
transition: scale var(--cxl-speed);
|
|
366
|
+
transform-origin: bottom;
|
|
367
|
+
}
|
|
368
|
+
:host(:focus-within) .indicator {
|
|
369
|
+
scale: 1 3;
|
|
370
|
+
background-color: var(--cxl-color-primary);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
${Ot(".content")}
|
|
374
|
+
`);function hc(e){return f(se(e,"registable.form",!1).tap(t=>{t.id==="form"&&(e.input=t.target)}),Ai("field",e).tap(t=>{t.type==="connect"&&t.target(e)}))}var xc=()=>N("div",{className:"content"},N("slot",{name:"leading"}),N("div",{className:"body"},N("slot",{name:"label"}),N("slot",{id:"bodyslot"})),N("slot",{name:"trailing"}),N("div",{className:"indicator"}));function bc(e){function t(l){o.next(l.touched&&l.invalid),e.toggleAttribute("invalid",o.value);let C=0,m=[];for(let R of i.assignedNodes())!(R instanceof HTMLElement)||R===a||("invalid"in R&&R.invalid?o.value&&(R.invalid===!0||R.invalid===l.validationResult?.key)?(C++,R.style.display="",m.push(Te(R))):R.style.display="none":m.push(Te(R)));let P=!o.value||C>0;a.textContent=P?"":l.validationMessage,P?a.remove():(a.parentElement||e.append(a),m.push(Te(a))),m.length?l.setAria("describedby",m.join(" ")):l.setAria("describedby",null)}function n(l){let C=e.input;if(C){if(e.toggleAttribute("inputdisabled",C.disabled),t(C),!l)return;l.type==="focus"?c.next(!0):l.type==="blur"&&c.next(!1)}}function r(){let l=e.input?.value,C=!e.input?.hasAttribute("autofilled")&&(!l||l.length===0);s?.classList.toggle("novalue",C),s?.classList.toggle("value",!C)}let o=ie(!1),c=ie(!1),i=N("slot",{name:"help"}),s=e.contentElement.children[1]?.children[0],a=N(jt,{ariaLive:"polite"});return z(e).append(N("div",{className:"help"},i)),f(h(e,"input").switchMap(l=>l?f(F(void 0).tap(()=>{n(),queueMicrotask(r)}),S(l,"focusable.change").tap(n).tap(r),S(l,"focus").tap(n),S(l,"invalid").tap(n),S(l,"update").tap(r),f(S(l,"blur"),S(i,"slotchange")).raf(n),S(e.contentElement,"click").tap(()=>{document.activeElement!==l&&!e.matches(":focus-within")&&!c.value&&l.focus()})):T),hc(e))}var et=class e extends g{floating=!1;input;size;contentElement=xc();static{u(e,{init:[b("floating"),X("input"),ye("size",t=>` .content{min-height: ${56+t*8}px;}`)],augment:[t=>t.contentElement,bc]})}getContentRect(){return this.contentElement.getBoundingClientRect()}},Br=class extends et{};u(Br,{tagName:"c-field",augment:[zr,mc,gc]});var yc=d(`
|
|
375
|
+
:host {
|
|
207
376
|
box-sizing: border-box;
|
|
377
|
+
display: block;
|
|
378
|
+
cursor: pointer;
|
|
379
|
+
height: 20px;
|
|
208
380
|
position: relative;
|
|
381
|
+
padding-right: 28px;
|
|
382
|
+
flex-grow: 1;
|
|
383
|
+
text-align: start;
|
|
384
|
+
outline: 0;
|
|
385
|
+
-webkit-tap-highlight-color: transparent;
|
|
386
|
+
}
|
|
387
|
+
.caret {
|
|
388
|
+
position: absolute;
|
|
389
|
+
right: 0;
|
|
390
|
+
top: 0;
|
|
391
|
+
line-height: 0;
|
|
392
|
+
width: 20px;
|
|
393
|
+
height: 20px;
|
|
394
|
+
fill: currentColor;
|
|
395
|
+
}
|
|
396
|
+
`),$i=d(`
|
|
397
|
+
${oi("#menu")}
|
|
398
|
+
#menu { margin: 0; border: 0; box-sizing: border-box; }
|
|
399
|
+
:host {
|
|
400
|
+
--cxl-mask-focus: color-mix(in srgb, var(--cxl-color-on-surface) 10%, transparent);
|
|
401
|
+
--cxl-select-focused: linear-gradient(0, var(--cxl-mask-focus),var(--cxl-mask-focus));
|
|
402
|
+
}
|
|
403
|
+
`);function vc(e,t){return()=>{let n=e.parentElement instanceof et?e.parentElement.getContentRect():e.getBoundingClientRect();t.style.top=`${n.bottom}px`,t.style.left=`${n.x}px`,t.style.minWidth=`${n.width}px`,t.style.maxHeight=`${Math.min(window.innerHeight-n.bottom-16,280)}px`}}function $r({host:e,target:t,input:n,position:r,beforeToggle:o,onToggle:c,handleOther:i,axis:s}){return f(Bi({host:e,input:n,handleOther:i,axis:s}),S(n??e,"blur").debounceTime(100).tap(()=>{e.open=!1}),Hi({host:e,target:t,position:r??vc(e,t),beforeToggle:o,onToggle:c}))}function wc(e){let{host:t}=e;return f(yc(t)??T,be(t)??T,Be(t),$r(e))}var xt=class extends g{};u(xt,{tagName:"c-select-option",augment:[d(`
|
|
404
|
+
:host {
|
|
405
|
+
box-sizing: border-box;
|
|
209
406
|
cursor: pointer;
|
|
210
|
-
border-radius: 28px;
|
|
211
|
-
overflow:hidden;
|
|
212
407
|
display: flex;
|
|
213
|
-
padding: 4px 16px;
|
|
214
|
-
min-height: 56px;
|
|
215
|
-
align-items: center;
|
|
216
408
|
column-gap: 16px;
|
|
409
|
+
align-items: center;
|
|
410
|
+
/*background-color: var(--cxl-color-surface);
|
|
411
|
+
color: var(--cxl-color-on-surface);*/
|
|
412
|
+
padding: var(--cxl-select-padding, 16px);
|
|
413
|
+
position: relative;
|
|
414
|
+
user-select: none;
|
|
415
|
+
white-space: nowrap;
|
|
416
|
+
overflow: hidden;
|
|
417
|
+
-webkit-user-select: none;
|
|
217
418
|
-webkit-tap-highlight-color: transparent;
|
|
218
|
-
z-index: 0;
|
|
219
419
|
}
|
|
220
|
-
:host(
|
|
221
|
-
:
|
|
222
|
-
outline: 3px auto var(--cxl-color-secondary);
|
|
420
|
+
:host([focused]) {
|
|
421
|
+
background-image: var(--cxl-select-focused);
|
|
223
422
|
}
|
|
224
|
-
:host(
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
423
|
+
:host(:hover) { background-image: linear-gradient(0, var(--cxl-mask-hover),var(--cxl-mask-hover)); }
|
|
424
|
+
:host(:focus-visible) { background-image: linear-gradient(0, var(--cxl-mask-focus),var(--cxl-mask-focus)) }
|
|
425
|
+
`),I]});var Hr=class extends Gn{open=!1;optionView=xt;setSelected(t){if(super.setSelected(t),this.open)this.open=!1;else{for(let n of this.options)n!==t&&(n.slot="");t&&(t.slot="selected")}}};u(Hr,{tagName:"c-select",init:[b("open")],augment:[G("listbox"),d(`
|
|
426
|
+
:host([open]) ::slotted([selected]) {
|
|
427
|
+
--cxl-color-surface: var(--cxl-color-primary-container);
|
|
228
428
|
}
|
|
229
|
-
|
|
230
|
-
:
|
|
231
|
-
|
|
232
|
-
:
|
|
233
|
-
${_e("c-ripple")}
|
|
234
|
-
`),ne,Lr,N],Ye=class extends Ve{size};d(Ye,{tagName:"c-nav-item",init:[Y("size",e=>`{min-height:${56+e*8}px}`)],augment:[q("option"),...Ur]});var G=class extends f{font};d(G,{tagName:"c-t",init:[A("font")],augment:[x(`:host{display:inline-block;font:var(--cxl-font-body-medium);}${$t.map(e=>`:host([font="${e}"]){font:var(--cxl-font-${e});letter-spacing:var(--cxl-letter-spacing-${e})}`).join("")}
|
|
235
|
-
:host([font=h1]) { ${$("display-large")} display:block;margin-top: 64px; margin-bottom: 24px; }
|
|
236
|
-
:host([font=h2]) { ${$("display-medium")} display:block;margin-top: 56px; margin-bottom: 24px; }
|
|
237
|
-
:host([font=h3]) { ${$("display-small")} display:block; margin-top: 48px; margin-bottom: 16px; }
|
|
238
|
-
:host([font=h4]) { ${$("headline-medium")} display:block; margin-top: 40px; margin-bottom: 16px; }
|
|
239
|
-
:host([font=h5]) { ${$("title-large")} display:block;margin-top: 32px; margin-bottom: 12px; }
|
|
240
|
-
:host([font=h6]) { ${$("title-medium")} display:block;margin-top: 24px; margin-bottom: 8px; }
|
|
241
|
-
:host([font=h1]:first-child),:host([font=h2]:first-child),:host([font=h3]:first-child),:host([font=h4]:first-child),:host([font=h5]:first-child),:host([font=h6]:first-child){margin-top:0}
|
|
242
|
-
`),N,e=>b(e,"font").tap(t=>{switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":e.role="heading",e.ariaLevel=t.slice(1);break;default:e.role=e.ariaLevel=null}})]});var La=class{currentPopupContainer;currentPopup;currentModal;currentTooltip;popupContainer=document.body;toggle(e){e.element.parentElement!==this.popupContainer?this.popupOpened(e):e.close()}popupOpened(e){this.currentPopup&&e.element!==this.currentPopup.element&&this.currentPopup.close(),this.currentPopup=e}openModal(e){this.currentModal&&e.element!==this.currentModal.element&&this.currentModal.close(),e.element.parentNode||this.popupContainer?.append(e.element),e.element.open||e.element.showModal(),this.currentModal=e}closeModal(){this.currentModal?.close(),this.modalClosed()}modalClosed(){this.currentModal=void 0}tooltipOpened(e){this.currentTooltip&&this.currentTooltip!==e&&this.currentTooltip.remove(),this.currentTooltip=e}close(){this.currentPopup?.close()}},Ge=new La;function qr(e){let t=e.target;if(t)return typeof t=="string"?t.split(" ").flatMap(r=>{let a=St(e,r);return a?[a]:[]}):Array.isArray(t)?t:[t]}function ja(e,t,r,a,n=E(e,"click").map(()=>!r())){return g(a,n).switchMap(s=>{let o=t();return o?ct(o.map(i=>({target:i,open:s}))):T})}function Ot(e,t=e){function r(s,o){return[b(e,"open").switchMap(i=>(s.parentNode||Ge.popupContainer.append(s),i&&s instanceof f?H(s,"open").map(c=>{e.open&&c===!1&&(e.open=!1)}):T)),_r(s).tap(i=>{let c=s.getAttribute("role");(c==="menu"||c==="listbox"||c==="tree"||c==="grid"||c==="dialog")&&(o.ariaHasPopup=c),o.getRootNode()===s.getRootNode()&&o.setAttribute("aria-controls",i)})]}let a=V(b(e,"trigger"),b(e,"target")).switchMap(([s])=>{let o=qr(e),i=o?g(...o.flatMap(c=>r(c,e))).ignoreElements():T;return g(s==="hover"?V(Le(t),o?g(...o.map(c=>Le(c))):T).map(c=>!!c.find(w=>!!w)).debounceTime(250):s==="checked"?E(t,"change").map(c=>c.target&&"checked"in c.target?!!c.target.checked:!1):E(t,"click").map(()=>!e.open),i)}),n;return ft().switchMap(()=>ja(t,()=>qr(e),()=>e.open,b(e,"open"),a).filter(s=>{let{open:o,target:i}=s;if(e.open!==o){if(o)n=gt(e)?.activeElement,i.trigger=e;else if(i.trigger&&i.trigger!==e)return s.open=!0,i.trigger=e,!0;return e.open=o,!1}if(!o&&i.trigger===e){let c=document.activeElement;(c===document.body||c===document.documentElement)&&n?.focus()}return!0}))}var Vr=class extends f{open=!1;target;trigger};d(Vr,{init:[y("target"),y("trigger"),A("open")],augment:[e=>Ot(e).raf(({target:t,open:r})=>t.open=r)]});var Ha=class extends Vr{};d(Ha,{tagName:"c-toggle",augment:[At,N]});var fe=class extends f{name="";width;height;alt;fill=!1};d(fe,{tagName:"c-icon",init:[y("name"),y("width"),y("height"),y("fill"),y("alt")],augment:[q("none"),x(`
|
|
243
|
-
:host {
|
|
244
|
-
display: inline-block;
|
|
245
|
-
width: 24px;
|
|
246
|
-
height: 24px;
|
|
247
|
-
flex-shrink: 0;
|
|
248
|
-
vertical-align: middle;
|
|
249
|
-
}
|
|
250
|
-
.icon { width: 100%; height: 100% }
|
|
251
|
-
`),e=>{let t=new CSSStyleSheet,r;return e.shadowRoot?.adoptedStyleSheets.push(t),J(e).switchMap(()=>ke(e)).debounceTime(0).tap(()=>{let a=e.width??e.height,n=e.height??e.width;t.replace(`:host{${a===void 0?"":`width:${a}px;`}${n===void 0?"":`height:${n}px`}}`),r?.remove(),r=e.name?Dt(e.name,{className:"icon",width:a,height:n,fill:e.fill,alt:e.alt}):void 0,r&&(r.onerror=()=>{r&&e.alt&&r.replaceWith(e.alt)},z(e).append(r))})}]});var Lt=class extends Bt{};d(Lt,{tagName:"c-button-round",augment:[x(`
|
|
252
|
-
:host { min-width:40px; min-height: 40px; padding: 4px; border-radius: 100%; flex-shrink: 0; }
|
|
253
|
-
:host([variant=text]) { margin: -8px; }
|
|
254
|
-
:host([variant=text]:not([disabled])) { color: inherit; }
|
|
255
|
-
:host(:hover) { box-shadow:none; }
|
|
256
|
-
`)]});var oe=class extends Lt{icon="";width;height;fill=!1;variant="text";alt};d(oe,{tagName:"c-icon-button",init:[y("icon"),y("width"),y("height"),y("alt"),y("fill")],augment:[e=>I(fe,{className:"icon",width:b(e,"width"),height:b(e,"height"),name:b(e,"icon"),fill:b(e,"fill"),alt:b(e,"alt")})]});var We=class extends oe{open=!1;target;icon="menu"};d(We,{tagName:"c-navbar-toggle",init:[y("target"),U("open")],augment:[e=>Ot(e).tap(({target:t,open:r})=>t.open=r)]});var Yr=class{start=new Comment("marker-start");end=new Comment("marker-end");frag=document.createDocumentFragment();insert(e,t=this.end){let r=this.end.parentNode;r&&(this.start.parentNode||r.insertBefore(this.start,this.end),Array.isArray(e)?(this.frag.append(...e),r.insertBefore(this.frag,t)):r.insertBefore(e,t))}empty(){let e=this.start.nextSibling;for(;e&&e!==this.end;){let t=e.nextSibling;e.remove(),e=t}}};function Gr({source:e,render:t,empty:r,append:a,loading:n}){let s=[],o=document.createDocumentFragment(),i,c;function w(L){if(c?.parentNode?.removeChild(c),!L)return;let h=0;for(let M of L){let he=s[h]?.item;if(he)he.value!==M&&he.next(M);else{let De=te(M),se=t(De,h,L),et=se instanceof DocumentFragment?Array.from(se.childNodes):[se];s.push({elements:et,item:De}),o.append(se)}h++}o.childNodes.length&&a(o),i?.remove(),h===0&&r&&a(i=r());let Q=s.length;for(;Q-- >h;)s.pop()?.elements.forEach(M=>M.remove())}return j(()=>(c=n?.(),c&&a(c),e.raf(w)))}function jt(e){return vt(()=>{let t=new Yr;return[Gr({...e,append:t.insert.bind(t)}),t.end]})}var _a=()=>{let e;function t(){let r=document.adoptedStyleSheets.indexOf(e);r!==-1&&document.adoptedStyleSheets.splice(r,1)}addEventListener("message",r=>{let{theme:a}=r.data;t(),a!==void 0&&(e=new CSSStyleSheet,e.replace(a),document.adoptedStyleSheets.push(e))})},Ua=()=>{addEventListener("load",()=>{let e=()=>{parent.postMessage({height:document.documentElement.scrollHeight},"*")};requestAnimationFrame(async()=>{await document.fonts.ready,new ResizeObserver(e).observe(document.documentElement)})})},Je=class extends f{src="";srcdoc="";sandbox="allow-forms allow-scripts";reset="<!DOCTYPE html><style>html{display:flex;flex-direction:column;font:var(--cxl-font-default);}body{padding:0;margin:0;translate:0;overflow:auto;}</style>";handletheme=!0};d(Je,{tagName:"c-iframe",init:[y("src"),y("srcdoc"),y("sandbox"),y("handletheme")],augment:[x(`
|
|
257
|
-
:host {
|
|
258
|
-
position: relative;
|
|
259
|
-
display: flex;
|
|
260
|
-
flex-direction: column;
|
|
261
|
-
background-color: transparent;
|
|
429
|
+
:host([open]) {
|
|
430
|
+
--cxl-mask-focus: color-mix(in srgb, var(--cxl-color-on-surface) 10%, transparent);
|
|
431
|
+
--cxl-mask-hover: color-mix(in srgb, var(--cxl-color-on-surface) 8%, transparent);
|
|
432
|
+
--cxl-select-focused: linear-gradient(0, var(--cxl-mask-focus),var(--cxl-mask-focus));
|
|
262
433
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
434
|
+
:host(:not([open])) {
|
|
435
|
+
--cxl-select-padding: 0;
|
|
436
|
+
--cxl-mask-focus: transparent;
|
|
437
|
+
--cxl-mask-hover: transparent;
|
|
438
|
+
}
|
|
439
|
+
slot[name=selected] {
|
|
440
|
+
pointer-events: none;
|
|
441
|
+
--cxl-color-surface: transparent;
|
|
442
|
+
}
|
|
443
|
+
.menu {
|
|
444
|
+
position: fixed;
|
|
445
|
+
padding: 8px 0;
|
|
446
|
+
min-width: 112px;
|
|
447
|
+
width: max-content;
|
|
448
|
+
border-radius: var(--cxl-shape-corner-xsmall);
|
|
449
|
+
visibility:hidden;
|
|
450
|
+
margin: 0;
|
|
451
|
+
transition: scale var(--cxl-speed);
|
|
452
|
+
/** popover applies display:none if this is not set */
|
|
453
|
+
display: block;
|
|
270
454
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
455
|
+
.menu.open {
|
|
456
|
+
${re("surface-container")}
|
|
457
|
+
border: 0;
|
|
458
|
+
transform-origin: top;
|
|
459
|
+
overflow-y: auto;
|
|
460
|
+
box-shadow: var(--cxl-elevation-2);
|
|
461
|
+
visibility:visible;
|
|
462
|
+
}
|
|
463
|
+
`),e=>{let t=N("div",{className:"menu"},N("slot")),n=N("slot",{name:"selected"}),r=t.style,o=ui(e),c=0,i=0;z(e).append(t,n,Yn({viewBox:"0 0 24 24",className:"caret",d:"M7 10l5 5 5-5z"}));function s(){if(e.open)i=e.selected?.rendered?.offsetHeight??0;else{r.cssText="";let a=e.options.reduce((l,C)=>Math.max(l,C.rendered?.offsetWidth??0),0);o.replaceSync(`:host{width:${a}px}`)}}return f(f(Me(e),zn()).raf(s),wc({host:e,target:t,handleOther:!0,beforeToggle(a){s();let l=e.selected;l&&(l.slot=a?"":"selected"),t.classList.toggle("open",a)},onToggle(a){let l=e.selected;!a&&l&&(c=l.rendered?.offsetHeight??0)},position(){let a=e.parentElement??e,l=Math.round((i-c)/2),C=e.selected?.rendered,m=a.getBoundingClientRect(),P=e.getBoundingClientRect(),R=P.top-14,$,W=C?C.offsetTop:0;W>R&&(W=R),$=t.scrollHeight;let ae=window.innerHeight-P.top+8+W,te=P.top-l-W;$>ae?$=ae:$<P.height&&($=P.height),r.top=te+"px",r.left=m.left+"px",r.maxHeight=$+"px",r.minWidth=m.width+"px",r.transformOrigin=`${W}px`}}))}]});function Ec(e){let t=qe();return f(He("field",e,n=>t.next(n)),t)}function ji(e){return Ec(e).switchMap(t=>h(e,"input").switchMap(n=>n?F(n):h(t,"input").switchMap(r=>r?F(r):T)))}function Vt(e,t,n){return h(e,n).tap(r=>It(t,n,r))}var Sc="display:block;border:0;padding:0;font:inherit;color:inherit;outline:0;width:100%;min-height:20px;background-color:transparent;text-align:start;white-space:pre-wrap;max-height:100%;resize:inherit;";function qn({host:e,input:t,toText:n,toValue:r,update:o}){t.className="cxl-native-input",t.setAttribute("style",Sc),t.setAttribute("form","__cxl_ignore__");function c(a){e.value=r?r(t.value||""):t.value,a.stopPropagation(),e.dispatchEvent(new Event(a.type,{bubbles:!0}))}function i(){let a=e.value,l=n?n(a,t.value):a||"";t.value!==l&&e.setInputValue(l)}function s(){t.ariaLabel=e.ariaLabel;let a=e.getAttribute("aria-labelledby");a?t.setAttribute("aria-labelledby",a):t.removeAttribute("aria-labelledby")}return f(Be(e,t),Q(()=>(s(),t.form?S(t.form,"reset").tap(c):T)),h(e,"value").tap(()=>{n&&t.matches(":focus")||i()}),S(t,"blur").tap(i),S(t,"input").tap(c),S(t,"change").tap(c),Vt(e,t,"disabled"),Vt(e,t,"name"),Vt(e,t,"autocomplete"),Vt(e,t,"spellcheck"),Vt(e,t,"autofocus"),Nn(e,["aria-label","aria-labelledby"]).tap(s),o?o.tap(i):T,S(t,"blur").tap(()=>e.dispatchEvent(new Event("blur"))),S(t,"focus").tap(()=>e.dispatchEvent(new Event("focus"))))}var Wn=class e extends ht{inputValue="";static{u(e,{init:[X("inputValue")],augment:[t=>(t.inputValue=t.inputEl.value,S(t.inputEl,"input").tap(()=>{t.inputValue=t.inputEl.value}))]})}constructor(){super(),this.attachShadow({mode:"open",delegatesFocus:!0})}get role(){return this.inputEl.role}get validationMessage(){return this.inputEl.validationMessage||""}get validity(){return this.inputEl.validity}set role(t){this.inputEl.role=t}focus(){this.inputEl.focus()}setAria(t,n){n?this.inputEl.setAttribute(`aria-${t}`,n):this.inputEl.removeAttribute(`aria-${t}`)}setInputValue(t){this.inputEl.value=t,this.inputValue=this.inputEl.value}applyValidity(t,n){xe(this).setValidity({customError:t},n,this.inputEl),this.inputEl.setCustomValidity(t?n||"Invalid Field":"")}};var Cc=[d(`
|
|
464
|
+
:host{display: block; flex-grow: 1; /*color: var(--cxl-color-on-surface);*/ position:relative;}
|
|
465
|
+
`),be],jr=[...Cc,I],Ut=class e extends Wn{autofilled=!1;autocomplete;static{u(e,{init:[b("autofilled"),y("autocomplete")],augment:[t=>S(t.inputEl,"animationstart").tap(n=>{(n.animationName==="cxl-onautofillstart"||n.animationName==="cxl-onautofillend")&&(t.autofilled=n.animationName==="cxl-onautofillstart",ue(t,"focusable.change"),t.inputValue=t.inputEl.value)})]})}get selectionStart(){return this.inputEl.selectionStart}get selectionEnd(){return this.inputEl.selectionEnd}set selectionStart(t){this.inputEl.selectionStart=t}set selectionEnd(t){this.inputEl.selectionEnd=t}setSelectionRange(t,n){this.inputEl.setSelectionRange(t,n)}getWindowSelection(){return this.shadowRoot?.getSelection?.()??getSelection()}getOwnSelection(){let t=this.getWindowSelection();return!t||t.focusNode!==this.inputEl&&!this.inputEl.contains(t.focusNode)?void 0:t}},Gt=class extends Ut{value="";inputEl=N("input",{className:"input"})};u(Gt,{tagName:"c-input-text",init:[y("value")],augment:[...jr,e=>e.append(e.inputEl),e=>qn({host:e,input:e.inputEl})]});function kc(e){getComputedStyle(e).direction==="rtl"?e.scrollLeft=1e6:e.scrollLeft=e.scrollWidth}var bt=class e extends Ut{selected;value;inputEl=N("input",{className:"input"});static{u(e,{tagName:"c-input-option",init:[y("value"),X("selected")],augment:[...jr,t=>t.append(t.inputEl),t=>qn({host:t,input:t.inputEl,toText:()=>t.selected?.textContent??"",toValue:n=>n!==""?t.selected?.value:void 0}),t=>V(t,"selected").tap(n=>{let r=t.selected?.textContent;t.value=n?.value,t.setInputValue(r??""),kc(t.inputEl)})]})}};function Ac(e){return Vr(e,"^")}function Vr(e,t=""){if(e==="")return()=>!0;let n=Mc(e,t);return r=>r.textContent?n.test(r.textContent):!1}function Mc(e,t="",n="i"){return new RegExp(t+e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n)}var Xn=class e extends g{optionView=xt;open=!1;debounce=100;options=[];matcher=Vr;static{u(e,{tagName:"c-autocomplete",init:[b("open"),Fn("debounce")],augment:[G("listbox"),$i,ut,t=>{let n=N("slot",{name:"empty"}),r=N("div",{id:"menu",tabIndex:-1},N("slot"),n),o=Yn({viewBox:"0 0 24 24",id:"caret",d:"M7 10l5 5 5-5z",width:20,height:20,fill:"currentColor"});o.style.cursor="pointer",n.style.display="none";function c(a){t.open=!0,s(a)}function i(a,l){a.setAria("activedescendant",Te(l)),l.rendered?.scrollIntoView({block:"nearest"})}function s(a){let l=a.inputValue??a.value,C=t.matcher==="substring"?Vr:t.matcher==="prefix"?Ac:t.matcher,m=l?C(String(l)):void 0,P=0;for(let R of t.options){let $=m?!m(R):!1;R.hidden=$,R.focused=!($||P++>0),R.focused&&i(a,R)}n.style.display=P?"none":""}return z(t).append(r,o),f(ji(t).switchMap(a=>(a.setAria("autocomplete","list"),a.role="combobox",a.setAria("controls",Te(t)),a.setAria("haspopup",t.role),a.setAttribute("autocomplete","off"),f(h(t,"open").tap(l=>{if(l)o.tabIndex=-1,c(a);else{for(let C of t.options)C.focused=!1;o.tabIndex=0,a.setAria("activedescendant",null)}a.setAria("expanded",String(l))}),f(Tn(o),S(o,"mousedown")).tap(l=>{l.preventDefault(),l.stopPropagation(),a.focus()}).debounceTime(100).tap(()=>{t.open=!0}),h(t,"debounce").switchMap(l=>S(a,"input").debounceTime(l).tap(()=>t.open?s(a):c(a))),S(t,"change").tap(l=>{l.target===t&&a.dispatchEvent(new Event("change",{bubbles:!0}))}),$r({host:t,target:r,input:a}),f(Pr(t),V(a,"value").map(l=>{for(let C of t.options)if(C.value===l)return C})).tap(l=>{for(let C of t.options)C.focused=C.selected=!1;l&&(l.selected=!0),a instanceof bt?a.selected=l:a.value=l?.value,t.open=!1})))))}]})}};var Jn=class extends g{};u(Jn,{tagName:"c-body",augment:[d(`
|
|
466
|
+
:host {
|
|
467
|
+
position: relative;
|
|
468
|
+
display: flex;
|
|
469
|
+
flex-direction: column;
|
|
470
|
+
flex-grow: 1;
|
|
471
|
+
overflow-x:hidden;
|
|
472
|
+
overflow-y: auto;
|
|
473
|
+
-webkit-overflow-scrolling: touch;
|
|
474
|
+
background-color: var(--cxl-color-background);
|
|
475
|
+
color: var(--cxl-color-on-background);
|
|
476
|
+
padding: 16px;
|
|
477
|
+
}
|
|
478
|
+
slot { display: flex; flex-direction: column; max-width: 1200px; flex-grow: 1; }
|
|
479
|
+
|
|
480
|
+
${U("medium",`
|
|
481
|
+
:host{padding:32px;}
|
|
482
|
+
slot { margin: 0 auto; width:100%; }
|
|
483
|
+
`)}
|
|
484
|
+
`),I]});var Yt=class extends mt{};u(Yt,{tagName:"c-button-text",augment:[...Qe,d(`
|
|
275
485
|
:host {
|
|
276
|
-
${
|
|
486
|
+
${B("label-large")}
|
|
277
487
|
padding: 0 12px; border-radius: var(--cxl-shape-corner-full);
|
|
278
488
|
flex-shrink: 0;
|
|
279
489
|
margin: -10px -12px;
|
|
@@ -294,16 +504,81 @@ iframe {
|
|
|
294
504
|
background-color: transparent;
|
|
295
505
|
}
|
|
296
506
|
:host(:hover) { box-shadow: none; }
|
|
297
|
-
`),
|
|
507
|
+
`),ve,I]});function Ur(e="block"){let t=(n=>{for(let r=12;r>0;r--)n.xl+=`:host([xl="${r}"]){display:${e};grid-column-end:span ${r};}`,n.lg+=`:host([lg="${r}"]){display:${e};grid-column-end:span ${r};}`,n.md+=`:host([md="${r}"]){display:${e};grid-column-end:span ${r};}`,n.sm+=`:host([sm="${r}"]){display:${e};grid-column-end:span ${r};}`,n.xs+=`:host([xs="${r}"]){display:${e};grid-column-end:span ${r};}`;return n})({xl:"",lg:"",md:"",sm:"",xs:""});return d(`
|
|
508
|
+
:host { box-sizing:border-box; display:${e}; }
|
|
509
|
+
${t.xs}
|
|
510
|
+
:host([xs="0"]) { display:none }
|
|
511
|
+
:host([xsmall]) { display:${e} }
|
|
512
|
+
${U("small",`
|
|
513
|
+
:host { grid-column-end: auto; }
|
|
514
|
+
:host([small]) { display:${e} }
|
|
515
|
+
${t.sm}
|
|
516
|
+
:host([sm="0"]) { display:none }
|
|
517
|
+
`)}
|
|
518
|
+
${U("medium",`
|
|
519
|
+
${t.md}
|
|
520
|
+
:host([md="0"]) { display:none }
|
|
521
|
+
:host([medium]) { display:${e} }
|
|
522
|
+
`)}
|
|
523
|
+
${U("large",`
|
|
524
|
+
${t.lg}
|
|
525
|
+
:host([lg="0"]) { display:none }
|
|
526
|
+
:host([large]) { display:${e} }
|
|
527
|
+
`)}
|
|
528
|
+
${U("xlarge",`
|
|
529
|
+
${t.xl}
|
|
530
|
+
:host([xl="0"]) { display:none }
|
|
531
|
+
:host([xlarge]) { display:${e} }
|
|
532
|
+
`)}
|
|
533
|
+
`)}var Gr=d(`
|
|
534
|
+
:host([grow]) { flex-grow:1; flex-shrink: 1 }
|
|
535
|
+
:host([color]) { background-color: var(--cxl-color-surface); color: var(--cxl-color-on-surface); }
|
|
536
|
+
:host([fill]) { position: absolute; inset:0 }
|
|
537
|
+
:host([elevation]) { --cxl-color-on-surface: var(--cxl-color--on-surface); }
|
|
538
|
+
:host([elevation="0"]) { --cxl-color-surface: var(--cxl-color-surface-container-lowest); }
|
|
539
|
+
:host([elevation="1"]) { --cxl-color-surface: var(--cxl-color-surface-container-low); }
|
|
540
|
+
:host([elevation="2"]) { --cxl-color-surface: var(--cxl-color-surface-container); }
|
|
541
|
+
:host([elevation="3"]) { --cxl-color-surface: var(--cxl-color-surface-container-high); }
|
|
542
|
+
:host([elevation="4"]) { --cxl-color-surface: var(--cxl-color-surface-container-highest); }
|
|
543
|
+
${dt()}
|
|
544
|
+
${Ze.map(e=>`:host([pad="${e}"]){padding:${e}px}`).join("")}
|
|
545
|
+
${Ze.map(e=>`:host([vpad="${e}"]){padding-top:${e}px;padding-bottom:${e}px}`).join("")}`),yt=class extends g{grow=!1;fill=!1;xs;sm;md;lg;xl;pad;vpad;color;center=!1;elevation};u(yt,{init:[b("sm"),b("xs"),b("md"),b("lg"),b("xl"),b("vpad"),b("pad"),b("center"),b("fill"),b("grow"),b("elevation"),ft("color")]});var _e=class extends yt{};u(_e,{tagName:"c-c",augment:[Gr,Ur(),d(":host([center]) { text-align: center}"),I]});var Nc=d(`
|
|
546
|
+
:host {
|
|
547
|
+
${re("surface-container")}
|
|
548
|
+
${B("body-medium")}
|
|
549
|
+
border-radius: var(--cxl-shape-corner-medium);
|
|
550
|
+
overflow: hidden;
|
|
551
|
+
}
|
|
552
|
+
:host([variant=elevated]:not([color])) {
|
|
553
|
+
--cxl-color-surface: var(--cxl-color-surface-container-low);
|
|
554
|
+
z-index: 1;
|
|
555
|
+
box-shadow: var(--cxl-elevation-1);
|
|
556
|
+
}
|
|
557
|
+
:host([variant=outlined]) {
|
|
558
|
+
${re("surface")}
|
|
559
|
+
border: 1px solid var(--cxl-color-outline-variant);
|
|
560
|
+
}
|
|
561
|
+
${dt()}
|
|
562
|
+
`),Wt=class extends _e{variant};u(Wt,{tagName:"c-card",init:[b("variant")],augment:[Nc]});var Tc=d(`
|
|
563
|
+
:host { ${ni} }
|
|
564
|
+
:host([disabled]) { color: color-mix(in srgb, var(--cxl-color-on-surface) 38%, transparent); }
|
|
565
|
+
:host([selected]) {
|
|
566
|
+
background-color: var(--cxl-color-secondary-container);
|
|
567
|
+
color: var(--cxl-color-on-secondary-container);
|
|
568
|
+
}
|
|
569
|
+
`);function Rc(e){return f(He("list",e),h(e,"selected").tap(t=>e.ariaSelected=String(t)))}function Wr(e){return f(Nr(e),Be(e,e,-1),Rc(e))}var vt=class extends g{disabled=!1;touched=!1;selected=!1};u(vt,{init:[b("disabled"),b("touched"),b("selected")],augment:[Wr]});var Yr=class extends vt{size};u(Yr,{tagName:"c-item",init:[ye("size",e=>`{min-height:${56+e*8}px}`)],augment:[Tc,be,Bn,G("option"),I,ve]});var qt=class extends Wt{disabled=!1;touched=!1;selected=!1};u(qt,{tagName:"c-card-item",init:[b("disabled"),b("touched"),b("selected")],augment:[G("option"),...Qe,d(`
|
|
570
|
+
:host([variant=outlined]:hover) { box-shadow: var(--cxl-elevation-1) }
|
|
571
|
+
:host([variant=elevated]) { color: var(--cxl-color-on-surface); }
|
|
572
|
+
`),Wr,ve]});var Xt=class extends g{disabled=!1;touched=!1;selected=!1;color;size=0};u(Xt,{tagName:"c-chip",init:[b("disabled"),b("touched"),b("selected"),ft("color","surface-container-low"),ye("size",e=>`{
|
|
298
573
|
padding: 2px ${e<0?2:8}px;
|
|
299
574
|
font-size: ${14+e*2}px;
|
|
300
575
|
height: ${32+e*6}px;
|
|
301
|
-
}`)],augment:[
|
|
576
|
+
}`)],augment:[G("button"),Tr,...Qe,d(`
|
|
302
577
|
:host {
|
|
303
578
|
box-sizing: border-box;
|
|
304
579
|
border: 1px solid var(--cxl-color-outline-variant);
|
|
305
580
|
border-radius: var(--cxl-shape-corner-small);
|
|
306
|
-
${
|
|
581
|
+
${B("label-large")}
|
|
307
582
|
display: inline-flex;
|
|
308
583
|
align-items: center;
|
|
309
584
|
position: relative;
|
|
@@ -321,78 +596,253 @@ iframe {
|
|
|
321
596
|
}
|
|
322
597
|
:host([selected]) {
|
|
323
598
|
border-color: var(--cxl-color-secondary-container);
|
|
324
|
-
${
|
|
599
|
+
${re("secondary-container")}
|
|
325
600
|
}
|
|
326
601
|
:host(:hover) { box-shadow: none; }
|
|
327
602
|
slot[name] { display: inline-block; }
|
|
328
|
-
`),
|
|
603
|
+
`),ve,()=>N("slot",{name:"leading"}),I,()=>N("slot",{name:"trailing"})]});function Vi(e){let t=e.target;if(t)return typeof t=="string"?t.split(" ").flatMap(n=>{let r=Un(e,n);return r?[r]:[]}):Array.isArray(t)?t:[t]}function _c(e,t,n,r,o=S(e,"click").map(()=>!n())){return f(r,o).switchMap(c=>{let i=t();return i?kn(i.map(s=>({target:s,open:c}))):T})}function qr(e,t=e){function n(c,i){return[h(e,"open").switchMap(s=>(c.parentNode||ze.popupContainer.append(c),s&&c instanceof g?V(c,"open").map(a=>{e.open&&a===!1&&(e.open=!1)}):T)),Wo(c).tap(s=>{let a=c.getAttribute("role");(a==="menu"||a==="listbox"||a==="tree"||a==="grid"||a==="dialog")&&(i.ariaHasPopup=a),i.getRootNode()===c.getRootNode()&&i.setAttribute("aria-controls",s)})]}let r=oe(h(e,"trigger"),h(e,"target")).switchMap(([c])=>{let i=Vi(e),s=i?f(...i.flatMap(a=>n(a,e))).ignoreElements():T;return f(c==="hover"?oe(Er(t),i?f(...i.map(a=>Er(a))):T).map(a=>!!a.find(l=>!!l)).debounceTime(250):c==="checked"?S(t,"change").map(a=>a.target&&"checked"in a.target?!!a.target.checked:!1):S(t,"click").map(()=>!e.open),s)}),o;return Po().switchMap(()=>_c(t,()=>Vi(e),()=>e.open,h(e,"open"),r).filter(c=>{let{open:i,target:s}=c;if(e.open!==i){if(i)o=Xe(e)?.activeElement,s.trigger=e;else if(s.trigger&&s.trigger!==e)return c.open=!0,s.trigger=e,!0;return e.open=i,!1}if(!i&&s.trigger===e){let a=document.activeElement;(a===document.body||a===document.documentElement)&&o?.focus()}return!0}))}var Zn=class extends g{open=!1;target;trigger};u(Zn,{init:[y("target"),y("trigger"),b("open")],augment:[e=>qr(e).raf(({target:t,open:n})=>t.open=n)]});var Jt=class extends Zn{};u(Jt,{tagName:"c-toggle",augment:[ut,I]});var wt=class extends g{};u(wt,{tagName:"c-span"});var $e;function Ui(e){if(e==="0s"||e==="auto")return;let t=e.endsWith("ms")?1:1e3;return parseFloat(e)*t}function Ic(e){return e==="infinite"?1/0:+e}function Dc(e){if(mi(e))return{animation:e};let t=e.startsWith("auto ");t&&(e="0s "+e.slice(5));let n={},r;e=e.replace(/stagger:(\d+)|composition:(\w+)/g,(s,a,l)=>(a&&(r=+a),l&&(n.composite=l),"")),$e??=document.createElement("style").style,$e.animation=e,n.fill=$e.animationFillMode;let o=n.fill==="forwards"||n.fill==="both",c=t?void 0:Ui($e.animationDuration);c!==void 0&&(n.duration=c);let i=Ui($e.animationDelay);return i!==void 0&&(n.delay=i),$e.animationIterationCount&&(n.iterations=Ic($e.animationIterationCount)),{animation:$e.animationName,keep:o,stagger:r,options:n}}function Oc(e){return typeof e=="string"&&(e=e.split(",").map(t=>Dc(t.trim()))),e}function Xr(e,t,n,r){let o=r?`motion-${r}-on`:"motion-on",c=Oc(n);return e.setAttribute(o,""),f(...c.map(i=>gi({target:t,...i}))).finalize(()=>e.removeAttribute(o))}var Zt=class extends g{center=!1};u(Zt,{tagName:"c-backdrop",init:[b("center")],augment:[d(`
|
|
604
|
+
:host {
|
|
605
|
+
position: absolute;
|
|
606
|
+
top: 0;
|
|
607
|
+
left: 0;
|
|
608
|
+
bottom: 0;
|
|
609
|
+
right: 0;
|
|
610
|
+
background-color: var(--cxl-color-scrim);
|
|
611
|
+
overflow: hidden;
|
|
612
|
+
}
|
|
613
|
+
:host([center]) {
|
|
614
|
+
display: flex;
|
|
615
|
+
justify-content: center;
|
|
616
|
+
align-items: center;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
`),e=>S(e,"keydown").tap(t=>t.stopPropagation()),I]});var Gi=d(":host(:not([open],[motion-out-on])){display:none}");function Zr(e,t=()=>e,n=!1){let r=Q(()=>F(t("in"))),o=Q(()=>F(t("out")));return f(se(e,"toggle.close").tap(()=>e.open=!1).ignoreElements(),oe(h(e,"motion-in").map(c=>c?r.switchMap(i=>Xr(e,i,c,"in")).switchMap(()=>e.duration!==void 0&&e.duration!==1/0?We(e.duration).map(()=>e.open=!1):T):r),h(e,"motion-out").map(c=>(c?o.switchMap(i=>Xr(e,i,c,"out").ignoreElements()):o).finalize(()=>{e.open||e.dispatchEvent(new Event("close"))}))).switchMap(([c,i])=>V(e,"open").switchMap(s=>{if(e.popover!=="auto"){let a=s?"open":"closed";e.dispatchEvent(new ToggleEvent("toggle",{oldState:s?"closed":"open",newState:a}))}return s?n?ke(i,c):c:n?ke(i,c):i})))}var Et=class extends g{open=!1;duration;"motion-in";"motion-out"};u(Et,{init:[y("motion-in"),y("motion-out"),Fn("duration"),b("open")]});var Jr=class extends Et{};u(Jr,{tagName:"c-toggle-target",augment:[d(`
|
|
620
|
+
:host{display:contents}
|
|
621
|
+
`),e=>{let t=N("slot"),n=N("slot",{name:"off"});return(e.open?n:t).style.display="none",z(e).append(t,n),Zr(e,r=>{t.style.display=n.style.display="none";let o=e.open?r==="in"?t:n:r==="in"?n:t;return o.style.display="",o.assignedElements()},!0)}]});var Qt=class extends Et{};u(Qt,{tagName:"c-toggle-panel",augment:[I,Gi,Zr]});var Lc=d(`
|
|
622
|
+
#drawer {
|
|
623
|
+
box-sizing: border-box;
|
|
624
|
+
background-color: var(--cxl-color-surface);
|
|
625
|
+
color: var(--cxl-color-on-surface);
|
|
626
|
+
position: absolute;
|
|
627
|
+
display: block;
|
|
628
|
+
width: 85%;
|
|
629
|
+
min-width: 256px;
|
|
630
|
+
|
|
631
|
+
overflow-y: auto;
|
|
632
|
+
overflow-x: hidden;
|
|
633
|
+
z-index: 5;
|
|
634
|
+
}
|
|
635
|
+
${U("small","#drawer { width: 360px }")}
|
|
636
|
+
|
|
637
|
+
#dialog {
|
|
638
|
+
margin: 0;
|
|
639
|
+
padding: 0;
|
|
640
|
+
border-width: 0;
|
|
641
|
+
max-width: none;
|
|
642
|
+
max-height: none;
|
|
643
|
+
width: 100%;
|
|
644
|
+
height: 100%;
|
|
645
|
+
background-color: transparent;
|
|
646
|
+
overflow-x: hidden;
|
|
647
|
+
overflow-y: hidden;
|
|
648
|
+
text-align: initial;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
#dialog::backdrop {
|
|
652
|
+
background-color: transparent;
|
|
653
|
+
}
|
|
654
|
+
`),Qn=class extends g{open=!1;position;responsive;permanent=!1};u(Qn,{tagName:"c-drawer",init:[b("open"),b("position"),y("responsive"),y("permanent")],augment:[Lc,d(`
|
|
655
|
+
:host { max-width: 360px; }
|
|
656
|
+
#drawer.permanent {
|
|
657
|
+
${re("surface")}
|
|
658
|
+
overflow-y: auto;
|
|
659
|
+
overflow-x: hidden;
|
|
660
|
+
position: relative;
|
|
661
|
+
width: 100%;
|
|
662
|
+
height: 100%;
|
|
663
|
+
z-index: 0;
|
|
664
|
+
}
|
|
665
|
+
#drawer {
|
|
666
|
+
top: 0;
|
|
667
|
+
bottom: 0;
|
|
668
|
+
}
|
|
669
|
+
#drawer, :host([position=left]) #drawer {
|
|
670
|
+
left: 0;
|
|
671
|
+
border-radius: 0 var(--cxl-shape-corner-large) var(--cxl-shape-corner-large) 0;
|
|
672
|
+
}
|
|
673
|
+
:host([position=right]) #drawer,:host(:not([position]):dir(rtl)) #drawer {
|
|
674
|
+
right: 0;
|
|
675
|
+
left: auto;
|
|
676
|
+
border-radius: var(--cxl-shape-corner-large) 0 0 var(--cxl-shape-corner-large);
|
|
677
|
+
}
|
|
678
|
+
:host([responsiveon]) #backdrop { display: none; }
|
|
679
|
+
:host([responsiveon]) #dialog { display: contents; }
|
|
680
|
+
`),e=>{let t=ie(!1),n=f(h(e,"position"),t).raf(),r=()=>e.position==="right"||getComputedStyle(e).direction==="rtl",o=N(Qt,{id:"drawer","motion-in":n.map(()=>e.permanent&&t.value?void 0:r()?"slideInRight":"slideInLeft"),"motion-out":n.map(()=>e.permanent&&t.value?void 0:r()?"slideOutRight":"slideOutLeft")},I),c=new Zt;c.id="backdrop";let i=N("dialog",{id:"dialog"},c,o);return z(e).append(i),f(S(o,"close").tap(()=>i.close()),S(i,"close").tap(()=>e.open=!1),se(e,"toggle.close").tap(()=>e.open=!1).ignoreElements(),V(o,"open").tap(s=>e.open=s),V(e,"open").raf(s=>{s||o.scrollTo(0,0)}),S(c,"click").tap(()=>e.open=!1),S(i,"cancel").tap(s=>{s.preventDefault(),e.open=!1}),h(e,"open").tap(s=>{if(t.value&&e.permanent)return o.open=!0;s?t.value||(ze.openModal({element:i,close:()=>e.open=!1}),i.getBoundingClientRect()):ze.currentModal?.element===i&&ze.modalClosed()}).raf(s=>{o.open=s}),h(e,"responsive").switchMap(s=>s!==void 0?pt(document.body):F("xsmall")).switchMap(s=>{let a=J.breakpoints[e.responsive||"large"],l=J.breakpoints[s]>=a;return t.next(l),l&&o.className!=="permanent"?i.close():!l&&o.className==="permanent"&&(e.open=!1),l&&e.open===!1&&(e.open=e.permanent),e.toggleAttribute("responsiveon",l),o.className=l?"permanent":"drawer",V(e,"open").tap(C=>{e.hasAttribute("responsiveon")||Re({target:c,animation:C?"fadeIn":"fadeOut",options:{fill:"forwards"}})})}))}]});var Kn=class{start=new Comment("marker-start");end=new Comment("marker-end");frag=document.createDocumentFragment();insert(t,n=this.end){let r=this.end.parentNode;r&&(this.start.parentNode||r.insertBefore(this.start,this.end),Array.isArray(t)?(this.frag.append(...t),r.insertBefore(this.frag,n)):r.insertBefore(t,n))}empty(){let t=this.start.nextSibling;for(;t&&t!==this.end;){let n=t.nextSibling;t.remove(),t=n}}};function Fc({source:e,render:t,empty:n,append:r,loading:o}){let c=[],i=document.createDocumentFragment(),s,a;function l(C){if(a?.parentNode?.removeChild(a),!C)return;let m=0;for(let R of C){let $=c[m]?.item;if($)$.value!==R&&$.next(R);else{let W=ie(R),ae=t(W,m,C),te=ae instanceof DocumentFragment?Array.from(ae.childNodes):[ae];c.push({elements:te,item:W}),i.append(ae)}m++}i.childNodes.length&&r(i),s?.remove(),m===0&&n&&r(s=n());let P=c.length;for(;P-- >m;)c.pop()?.elements.forEach(R=>R.remove())}return Q(()=>(a=o?.(),a&&r(a),e.raf(l)))}function tt(e){return jo(()=>{let t=new Kn;return[Fc({...e,append:t.insert.bind(t)}),t.end]})}var nt=class extends et{};u(nt,{tagName:"c-field-bar",augment:[zr,d(`
|
|
329
681
|
:host {
|
|
330
682
|
box-sizing: border-box;
|
|
683
|
+
${re("surface-container-high")}
|
|
684
|
+
${B("body-large")}
|
|
685
|
+
border-radius: var(--cxl-shape-corner-xlarge);
|
|
686
|
+
}
|
|
687
|
+
.content { padding: 4px 12px; }
|
|
688
|
+
`)]});var rt=class extends yt{vflex=!1;gap;middle=!1};u(rt,{tagName:"c-flex",init:[b("vflex"),b("gap"),b("middle")],augment:[Ur("flex"),Gr,d(`
|
|
689
|
+
:host([middle]) { align-items: center; }
|
|
690
|
+
:host([center]) { justify-content: center; }
|
|
691
|
+
:host([vflex]) { flex-direction: column; }
|
|
692
|
+
:host([vflex][middle]) { justify-content: center; align-items: normal }
|
|
693
|
+
:host([vflex][center]) { align-items: center; }
|
|
694
|
+
${Ze.map(e=>`:host([gap="${e}"]){gap:${e}px}`).join("")}
|
|
695
|
+
`),I]});function Pc(e){return Vn("list",e,e.items)}function Yi(e){return Fi({host:e,getFocusable:()=>e.items,getSelected:()=>e.items.find(t=>t.selected),getActive:()=>e.items.find(t=>t.matches(":focus,:focus-within")),observe:Pc(e)})}function Wi(e){return Pi({getFocusable:()=>e.items,getActive:()=>Fr(e)})}function Bc(e){let t=Wi(e);function n(r){return Math.round(r.getBoundingClientRect().left)}return f(Yi(e),$t({host:e,goRight:()=>t(1),goLeft:()=>t(-1),goFirst:()=>t(1,-1),goLast:()=>t(-1,e.items.length),goUp:()=>{let r=Xe(e)?.activeElement,o=r&&n(r);return t(-1,void 0,o!==void 0?c=>n(c)!==o:void 0)},goDown:()=>{let r=Xe(e)?.activeElement,o=r&&n(r);return t(1,void 0,o!==void 0?c=>n(c)!==o:void 0)}}).tap(r=>r.focus()))}var Kt=class extends g{items=[]};u(Kt,{tagName:"c-grid-list",augment:[G("grid"),d(":host{display:grid;box-sizing:border-box;}"),I,Bc]});var er=class extends g{pad;vertical=!1};u(er,{tagName:"c-hr",init:[b("pad"),b("vertical")],augment:[G("separator"),d(`
|
|
696
|
+
:host {
|
|
697
|
+
display: block;
|
|
698
|
+
height: 1px;
|
|
699
|
+
background-color: var(--cxl-color-outline-variant);
|
|
700
|
+
}
|
|
701
|
+
:host([vertical]) {
|
|
702
|
+
height: auto;
|
|
703
|
+
width: 1px;
|
|
704
|
+
align-self: stretch;
|
|
705
|
+
margin-top: 8px;
|
|
706
|
+
margin-bottom: 8px;
|
|
707
|
+
}
|
|
708
|
+
${Ze.map(e=>`:host([pad="${e}"]){margin:${e}px 0;}`).join("")}`)]});function Kr(e){let t=document.createElement("style");return f(K(n=>{let r=e.persistkey&&Dr.get(e.persistkey);r!==void 0?e.open=r===e.themeon:e.usepreferred&&(e.open=matchMedia("(prefers-color-scheme: dark)").matches),n.signal.subscribe(()=>t.remove())}),Le(e).raf(()=>{e.setAttribute("aria-pressed",String(e.open));let n=e.open?e.themeon:e.themeoff;e.persistkey&&Dr.set(e.persistkey,n),li(ai[n]||n)}),q(e).tap(()=>e.open=!e.open))}var Qr=class extends g{open=!1;usepreferred=!1;persistkey="";themeoff="";themeon="./theme-dark.js"};u(Qr,{tagName:"c-toggle-theme",init:[y("persistkey"),y("usepreferred"),y("open"),y("themeon"),y("themeoff")],augment:[G("group"),Kr]});var en=class extends ce{open=!1;usepreferred=!1;persistkey="";iconon="wb_sunny";iconoff="dark_mode";themeoff="";themeon="./theme-dark.js"};u(en,{tagName:"c-icon-toggle-theme",init:[y("persistkey"),y("usepreferred"),y("open"),y("themeon"),y("themeoff")],augment:[Kr,e=>oe(h(e,"iconon"),h(e,"iconoff"),h(e,"open")).tap(()=>e.icon=e.open?e.iconon:e.iconoff)]});var zc=()=>{let e;function t(){let n=document.adoptedStyleSheets.indexOf(e);n!==-1&&document.adoptedStyleSheets.splice(n,1)}addEventListener("message",n=>{let{theme:r}=n.data;t(),r!==void 0&&(e=new CSSStyleSheet,e.replace(r).catch(o=>console.error(o)),document.adoptedStyleSheets.push(e))})},Hc=()=>{let e=()=>{let t=()=>{parent.postMessage({height:document.documentElement.scrollHeight},"*")};requestAnimationFrame(()=>{document.fonts.ready.then(()=>{new ResizeObserver(t).observe(document.documentElement)},n=>console.error(n))})};document.readyState==="complete"?e():addEventListener("load",e)},tn=class extends g{src="";srcdoc="";sandbox="allow-forms allow-scripts";reset="<!DOCTYPE html><style>html{display:flex;flex-direction:column;font:var(--cxl-font-default);}body{padding:0;margin:0;translate:0;overflow:auto;}</style>";handletheme=!0};u(tn,{tagName:"c-iframe",init:[y("src"),y("srcdoc"),y("sandbox"),y("handletheme")],augment:[d(`
|
|
709
|
+
:host {
|
|
710
|
+
position: relative;
|
|
711
|
+
display: flex;
|
|
712
|
+
flex-direction: column;
|
|
713
|
+
background-color: transparent;
|
|
714
|
+
}
|
|
715
|
+
iframe {
|
|
716
|
+
width: 100%;
|
|
717
|
+
height: 0;
|
|
718
|
+
opacity: 0;
|
|
719
|
+
transition: opacity var(--cxl-speed);
|
|
720
|
+
display: flex;
|
|
721
|
+
border-style: none;
|
|
722
|
+
}
|
|
723
|
+
`),e=>{let t=E("iframe",{loading:"lazy"}),n=E("slot",{name:"loading"}),r=new CSSStyleSheet;e.shadowRoot?.adoptedStyleSheets.push(r),n.style.display="none";function o(i){r.replaceSync(":host{height:"+i+"px}"),t.style.height="100%",t.style.opacity="1",n.style.display="none"}function c(i){if(i){let s=`<script type="module">
|
|
724
|
+
(${Hc.toString()})();
|
|
725
|
+
(${zc.toString()})();
|
|
726
|
+
<\/script>`;t.srcdoc=`${e.reset}${i}${s}`,n.style.display=""}}return z(e).append(t,n),f(oe(h(e,"srcdoc"),h(e,"src")).raf(([i,s])=>{(async()=>{let a=new URL(s);c(s?`${a.search||a.hash?`<script>history.replaceState(0,0,'about:srcdoc${a.search}${a.hash}');<\/script>`:""}<base href="${s}" />`+await fetch(s).then(l=>l.text()):i)})().catch(()=>{})}),S(window,"message").tap(i=>{let{height:s}=i.data;i.source===t.contentWindow&&s!==void 0&&o(s)}),h(e,"handletheme").switchMap(i=>i?S(t,"load").switchMap(()=>Dt.raf(s=>{let a=s?.css??"";t.contentWindow?.postMessage({theme:a},"*")})):T),h(e,"sandbox").tap(i=>i===void 0?t.removeAttribute("sandbox"):t.sandbox.value=i))}]});var tr=class extends g{};u(tr,{tagName:"c-nav-headline",augment:[d(`
|
|
727
|
+
:host{
|
|
728
|
+
color:var(--cxl-color-on-surface-variant);
|
|
729
|
+
font:var(--cxl-font-title-small);
|
|
730
|
+
letter-spacing:var(--cxl-letter-spacing-title-small);
|
|
731
|
+
min-height:48px;
|
|
732
|
+
display:flex;
|
|
733
|
+
align-items: center;
|
|
734
|
+
padding: 0 16px;
|
|
735
|
+
}
|
|
736
|
+
`),I]});var $c=[d(`
|
|
737
|
+
:host {
|
|
738
|
+
--cxl-color-on-surface: var(--cxl-color-on-surface-variant);
|
|
739
|
+
--cxl-color-ripple: var(--cxl-color-secondary-container);
|
|
331
740
|
background-color: var(--cxl-color-surface);
|
|
332
741
|
color: var(--cxl-color-on-surface);
|
|
333
|
-
|
|
742
|
+
${B("label-large")}
|
|
743
|
+
box-sizing: border-box;
|
|
744
|
+
position: relative;
|
|
745
|
+
cursor: pointer;
|
|
746
|
+
border-radius: 28px;
|
|
747
|
+
overflow:hidden;
|
|
334
748
|
display: flex;
|
|
335
|
-
align-items: center;
|
|
336
|
-
column-gap: 24px;
|
|
337
|
-
min-height: 64px;
|
|
338
749
|
padding: 4px 16px;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
:
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
${$("headline-small")}
|
|
345
|
-
flex-wrap: wrap;
|
|
750
|
+
min-height: 56px;
|
|
751
|
+
align-items: center;
|
|
752
|
+
column-gap: 16px;
|
|
753
|
+
-webkit-tap-highlight-color: transparent;
|
|
754
|
+
z-index: 0;
|
|
346
755
|
}
|
|
347
|
-
:host(
|
|
348
|
-
:host(
|
|
349
|
-
|
|
350
|
-
${$("headline-medium")}
|
|
351
|
-
flex-wrap: wrap;
|
|
352
|
-
}`),N,()=>I("slot",{name:"title"})];function qa(e){return e.tagName==="C-APPBAR-CONTEXTUAL"}var Ze=class extends f{size;sticky=!1;contextual};d(Ze,{tagName:"c-appbar",init:[A("size"),A("sticky"),A("contextual")],augment:[x(`
|
|
353
|
-
:host {
|
|
354
|
-
z-index: 2;
|
|
355
|
-
width:100%;
|
|
756
|
+
:host(:focus-visible) { z-index: 1; }
|
|
757
|
+
:host(:focus-visible) slot {
|
|
758
|
+
outline: 3px auto var(--cxl-color-secondary);
|
|
356
759
|
}
|
|
357
|
-
:host([
|
|
358
|
-
:
|
|
359
|
-
|
|
360
|
-
|
|
760
|
+
:host([selected]) {
|
|
761
|
+
--cxl-color-on-surface: var(--cxl-color-on-secondary-container);
|
|
762
|
+
background-color: var(--cxl-color-secondary-container);
|
|
763
|
+
font-weight: var(--cxl-font-weight-label-large-prominent);
|
|
361
764
|
}
|
|
362
|
-
|
|
363
|
-
:host([
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
765
|
+
/** Avoid accessibility errors with background */
|
|
766
|
+
:host([selected]) c-ripple { background-color: var(--cxl-color-surface); }
|
|
767
|
+
c-ripple { z-index: -1 }
|
|
768
|
+
:host([dense]) { min-height:48px; }
|
|
769
|
+
${Ot("c-ripple")}
|
|
770
|
+
`),be,xi,I],ot=class extends vt{size};u(ot,{tagName:"c-nav-item",init:[ye("size",e=>`{min-height:${56+e*8}px}`)],augment:[G("option"),...$c]});var nn=class extends ce{open=!1;target;icon="menu"};u(nn,{tagName:"c-navbar-toggle",init:[y("target"),X("open")],augment:[e=>qr(e).tap(({target:t,open:n})=>t.open=n)]});function qi(e){return f(h(e,"selected").pipe(Go(e,"selected")),He("selectable",e),q(e).tap(()=>ue(e,"selectable.action",e)))}var rn=class extends g{value;view;selected=!1;hidden=!1;focused=!1;rendered;focus(){this.rendered?.focus()}};u(rn,{tagName:"c-option",init:[y("value"),X("view"),b("selected"),b("hidden"),b("focused")],augment:[G("option"),d(":host{display:contents} :host([hidden]){display:none;}"),Oi,qi,e=>{let t;return f(h(e,"view").switchMap(n=>n?(t?.remove(),e.rendered=t=new n,t.appendChild(N("slot")),z(e).append(t),f(h(e,"selected").tap(r=>t?.toggleAttribute("selected",r)),h(e,"focused").tap(r=>t?.toggleAttribute("focused",r)))):(e.rendered=t=void 0,T)))}]});var nr=class extends g{};u(nr,{tagName:"c-page",augment:[jn,d(`
|
|
367
771
|
:host {
|
|
772
|
+
box-sizing:border-box;
|
|
368
773
|
display: flex;
|
|
774
|
+
flex-direction: column;
|
|
775
|
+
/* height:100% affects sticky appbar positioning */
|
|
776
|
+
min-height: 100vh;
|
|
777
|
+
padding-top: 0; padding-bottom: 0;
|
|
778
|
+
${re("background")}
|
|
779
|
+
}`),I]});var on=class extends g{xs=!1;sm=!1;md=!1;lg=!1;xl=!1};u(on,{tagName:"c-r",init:[b("xl"),b("lg"),b("md"),b("sm"),b("xs")],augment:[d(`
|
|
780
|
+
:host([xs]),:host { display:contents }
|
|
781
|
+
:host([xs="0"]) { display:none }
|
|
782
|
+
${U("small",':host([sm]){display:contents}:host([sm="0"]){display:none}')}
|
|
783
|
+
${U("medium",':host([md]){display:contents}:host([md="0"]){display:none}')}
|
|
784
|
+
${U("large",':host([lg]){display:contents}:host([lg="0"]){display:none}')}
|
|
785
|
+
${U("xlarge",':host([xl]){display:contents}:host([xl="0"]){display:none}')}
|
|
786
|
+
`),I]});var jc=/([^&=]+)=?([^&]*)/g,Vc=/:([\w_$@]+)/g,Uc=/\/\((.*?)\)/g,Gc=/(\(\?)?:\w+/g,Yc=/\*\w+/g,Wc=/[-{}[\]+?.,\\^$|#\s]/g,qc=/([^#]*)(?:#(.+))?/,ao="@@cxlRoute",de={location:window.location,history:window.history};function Xc(e){let t=[];return[new RegExp("^/?"+e.replace(Wc,"\\$&").replace(Uc,"\\/?(?:$1)?").replace(Gc,function(r,o){return t.push(r.substr(1)),o?r:"([^/?]*)"}).replace(Yc,"([^?]*?)")+"(?:/$|\\?|$)"),t]}function Xi(e){return e[0]==="/"&&(e=e.slice(1)),e.endsWith("/")&&(e=e.slice(0,-1)),e}function eo(e,t){return t?e.replace(Vc,(n,r)=>t[r]||""):e}function Jc(e){let t={},n;for(;n=jc.exec(e);)n[1]!==void 0&&(t[n[1]]=decodeURIComponent(n[2]??""));return t}var to=class{path;regex;parameters;constructor(t){this.path=t=Xi(t),[this.regex,this.parameters]=Xc(t)}_extractQuery(t){let n=t.indexOf("?");return n===-1?{}:Jc(t.slice(n+1))}getArguments(t){let r=this.regex.exec(t)?.slice(1);if(!r)return;let o=this._extractQuery(t);return r.forEach((c,i)=>{let s=i===r.length-1?c||"":c?decodeURIComponent(c):"",a=this.parameters[i];a&&(o[a]=s)}),o}test(t){return this.regex.test(t)}toString(){return this.path}},no=class{id;path;parent;redirectTo;definition;isDefault;constructor(t){if(t.path!==void 0)this.path=new to(t.path);else if(!t.id)throw console.log(t),new Error("An id or path is mandatory. You need at least one to define a valid route.");this.id=t.id||(t.path??`route${Math.random().toString()}`),this.isDefault=t.isDefault||!1,this.parent=t.parent,this.redirectTo=t.redirectTo,this.definition=t}create(t){let n=this.definition.render();n[ao]=this;for(let r in t)t[r]!==void 0&&(n[r]=t[r]);return n}},ro=class{routes=[];defaultRoute;findRoute(t){return this.routes.find(n=>n.path?.test(t))??this.defaultRoute}get(t){return this.routes.find(n=>n.id===t)}register(t){if(t.isDefault){if(this.defaultRoute)throw new Error("Default route already defined");this.defaultRoute=t}this.routes.unshift(t)}};function Zc(e){return e[ao]}function St(e){let t=qc.exec(e);return{path:Xi(t?.[1]||""),hash:t?.[2]||""}}var Qc={getHref(e){return e=typeof e=="string"?St(e):e,`${de.location.pathname}${e.path?`?${e.path}`:""}${e.hash?`#${e.hash}`:""}`},serialize(e){let t=or()?.url;if(!t||e.hash!==t.hash||e.path!==t.path){let n=this.getHref(e);n!==`${location.pathname}${location.search}${location.hash}`&&de.history.pushState({url:e},"",n)}},deserialize(){return{path:de.location.search.slice(1),hash:de.location.hash.slice(1)}}};function or(){return de.history.state}var Kc={getHref(e){return e=typeof e=="string"?St(e):e,`${e.path}${e.hash?`#${e.hash}`:""}`},serialize(e){let t=or()?.url;if(!t||e.hash!==t.hash||e.path!==t.path){let n=this.getHref(e);n!==`${location.pathname}${location.search}${location.hash}`&&de.history.pushState({url:e},"",n||"/")}},deserialize(){return{path:de.location.pathname,hash:de.location.hash.slice(1)}}},Ji={getHref(e){return e=typeof e=="string"?St(e):e,`#${e.path}${e.hash?`#${e.hash}`:""}`},serialize(e){let t=Ji.getHref(e);de.location.hash!==t&&(de.location.hash=t)},deserialize(){return St(de.location.hash.slice(1))}},Zi={hash:Ji,path:Kc,query:Qc},oo=class{callbackFn;state;routes=new ro;instances={};root;lastGo;constructor(t){this.callbackFn=t}getState(){if(!this.state)throw new Error("Invalid router state");return this.state}route(t){let n=new no(t);return this.routes.register(n),n}go(t){this.lastGo=t;let n=typeof t=="string"?St(t):t,r=n.path,o=this.state?.url;if(r!==o?.path){let c=this.routes.findRoute(r);if(!c)throw new Error(`Path: "${r}" not found`);let i=c.path?.getArguments(r);if(c.redirectTo)return this.go(eo(c.redirectTo,i));let s=this.execute(c,i);if(this.lastGo!==t)return;if(!this.root)throw new Error(`Route: "${r}" could not be created`);this.updateState({url:n,arguments:i,route:c,current:s,root:this.root})}else this.state&&n.hash!=o.hash&&this.updateState({...this.state,url:n})}getPath(t,n){let o=this.routes.get(t)?.path;return o&&eo(o.toString(),n)}isActiveUrl(t){let n=St(t);if(!this.state?.url)return!1;let r=this.state.url;return!!Object.values(this.instances).find(o=>{let c=o[ao],i=this.state?.arguments;if(c?.path?.test(n.path)&&(!n.hash||n.hash===r.hash)){if(i){let s=c.path.getArguments(n.path);for(let a in s)if(i[a]!=s[a])return!1}return!0}return!1})}updateState(t){this.state=t,this.callbackFn?.(t)}findRoute(t,n){let r=this.instances[t],o;if(r)for(o in n){let c=n[o];c!==void 0&&(r[o]=c)}return r}executeRoute(t,n,r){let o=t.parent,c=o&&this.routes.get(o),i=t.id,s=c&&this.executeRoute(c,n,r),a=this.findRoute(i,n)||t.create(n);return s?a.parentNode!==s&&s.appendChild(a):this.root=a,r[i]=a,a}discardOldRoutes(t){let n=this.instances;for(let r in n){let o=n[r];o&&t[r]!==o&&(o.parentNode?.removeChild(o),delete n[r])}}execute(t,n){let r={},o=this.executeRoute(t,n||{},r);return this.discardOldRoutes(r),this.instances=r,o}},an=new ct,Qi=new ct,Ee=new oo(()=>an.next());function el(e,t=Zi.query){return f(K(()=>Qi.next(t)),e.tap(()=>Ee.go(t.deserialize())),an.tap(()=>t.serialize(Ee.getState().url))).catchError(n=>{if(n?.name==="SecurityError")return T;throw n})}function tl(){return ke(F(location.hash.slice(1)),S(window,"hashchange").map(()=>location.hash.slice(1)))}var rr;function nl(){if(!rr){rr=new Nt(history.state);let e=history.pushState;history.pushState=function(...t){let n=e.apply(this,t),r=or();return r&&(r.lastAction="push",rr?.next(r)),n}}return f(S(window,"popstate").map(()=>{let e=or();return e&&(e.lastAction="pop"),e}),rr)}function rl(){let e;return f(tl(),nl()).map(()=>window.location).filter(t=>{let n=t.href!==e;return e=t.href,n})}var Zg=an.raf().map(()=>{let e=[],t=Ee.getState(),n=t.current;do n.routeTitle&&e.unshift({title:n.routeTitle,first:n===t.current,path:ol(n)});while(n=n.parentNode);return e});function ol(e){let t=Zc(e);return t&&eo(t.path?.toString()||"",Ee.state?.arguments||{})}function Ki(e,t,n=t){return f(oe(Qi,Le(e)).tap(([r])=>{e.href!==void 0&&(t.href=e.external?e.href:r.getHref(e.href)),t.target=e.target||""}),q(t).tap(r=>{e.target||r.preventDefault()}),q(n).tap(()=>{e.href!==void 0&&!e.target&&(e.external?location.assign(e.href):Ee.go(e.href))}))}function il(e,t){let n=document.createElement("div");return n.style.display="contents",n.routeTitle=t,n.appendChild(e.content.cloneNode(!0)),n}var io=class extends g{strategy="query";get state(){return Ee.state}go(t){return Ee.go(t)}};u(io,{tagName:"c-router",init:[y("strategy")],augment:[e=>{function t(n){let r=n.dataset;if(r.registered)return;r.registered="true";let o=r.title||void 0;Ee.route({path:r.path,id:r.id||void 0,parent:r.parent||void 0,isDefault:n.hasAttribute("data-default"),redirectTo:r.redirectto,render:il.bind(null,n,o)})}return Ne().switchMap(()=>{for(let n of Array.from(e.children))n instanceof HTMLTemplateElement&&t(n);return f(Mn(e).tap(n=>{n.type==="added"&&n.value instanceof HTMLTemplateElement&&t(n.value)}),h(e,"strategy").switchMap(n=>{let r=Zi[n];return el(rl(),r).catchError((o,c)=>(console.error(o),c))}))})}]});function co(e,t=e){return f(al(e,t).ignoreElements(),an.map(()=>e.href!==void 0&&Ee.isActiveUrl(e.href)))}function al(e,t=e){let n=N("a",{tabIndex:-1,className:"link",ariaLabel:"link"});return n.style.cssText=`
|
|
787
|
+
text-decoration: none;
|
|
788
|
+
outline: 0;
|
|
789
|
+
display: block;
|
|
790
|
+
position: absolute;
|
|
791
|
+
left: 0;
|
|
792
|
+
right: 0;
|
|
793
|
+
bottom: 0;
|
|
794
|
+
top: 0;
|
|
795
|
+
`,z(e).append(n),f(Ki(e,n),S(n,"click").tap(r=>{r.stopPropagation(),_t(r)||e.dispatchEvent(new PointerEvent(r.type,r)),ue(e,"toggle.close",void 0)}),q(t).tap(r=>{_t(r)&&n.click()}))}var so=class extends g{href};u(so,{tagName:"c-router-selectable",init:[y("href")],augment:[ut,()=>N("slot"),e=>Q(()=>{let t=e.parentElement;return co(e,t).raf(n=>{t.selected=n})})]});var sn=class extends ot{href;external=!1;target};u(sn,{tagName:"c-router-item",init:[y("href"),y("external"),y("target")],augment:[e=>co(e).tap(t=>{e.selected=t})]});var Se=class extends g{font};u(Se,{tagName:"c-t",init:[b("font")],augment:[d(`:host{display:inline-block;font:var(--cxl-font-body-medium);}${ti.map(e=>`:host([font="${e}"]){font:var(--cxl-font-${e});letter-spacing:var(--cxl-letter-spacing-${e})}`).join("")}
|
|
796
|
+
:host([font=h1]) { ${B("display-large")} display:block;margin-top: 64px; margin-bottom: 24px; }
|
|
797
|
+
:host([font=h2]) { ${B("display-medium")} display:block;margin-top: 56px; margin-bottom: 24px; }
|
|
798
|
+
:host([font=h3]) { ${B("display-small")} display:block; margin-top: 48px; margin-bottom: 16px; }
|
|
799
|
+
:host([font=h4]) { ${B("headline-medium")} display:block; margin-top: 40px; margin-bottom: 16px; }
|
|
800
|
+
:host([font=h5]) { ${B("title-large")} display:block;margin-top: 32px; margin-bottom: 12px; }
|
|
801
|
+
:host([font=h6]) { ${B("title-medium")} display:block;margin-top: 24px; margin-bottom: 8px; }
|
|
802
|
+
:host([font=h1]:first-child),:host([font=h2]:first-child),:host([font=h3]:first-child),:host([font=h4]:first-child),:host([font=h5]:first-child),:host([font=h6]:first-child){margin-top:0}
|
|
803
|
+
`),I,e=>h(e,"font").tap(t=>{switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":e.role="heading",e.ariaLevel=t.slice(1);break;default:e.role=e.ariaLevel=null}})]});var cn=class extends rt{};u(cn,{tagName:"c-toolbar",augment:[d(`
|
|
804
|
+
:host {
|
|
805
|
+
grid-column: 1 / -1;
|
|
806
|
+
column-gap: 24px;
|
|
807
|
+
row-gap: 8px;
|
|
808
|
+
align-items: center;
|
|
809
|
+
min-height: 48px;
|
|
810
|
+
flex-wrap: wrap;
|
|
811
|
+
flex-shrink: 0;
|
|
812
|
+
}
|
|
813
|
+
${U("small",":host{column-gap:24px}")}
|
|
814
|
+
`)]});var ln=class extends g{};u(ln,{tagName:"doc-search",augment:[d(`
|
|
815
|
+
:host { display: contents; }
|
|
816
|
+
c-appbar-contextual {
|
|
369
817
|
position: absolute;
|
|
370
818
|
inset: 0;
|
|
371
|
-
|
|
372
|
-
|
|
819
|
+
background-color: var(--cxl-color-surface);
|
|
820
|
+
color: var(--cxl-color-on-surface);
|
|
821
|
+
z-index: 1;
|
|
373
822
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
823
|
+
`),e=>{let t=ie([]),n=E(Xn,{},tt({source:t,render:s=>E(rn,{value:s.value.href},s.value.name),empty:()=>E(_e,{slot:"empty",pad:16},"No Results Found")}));n.style.maxHeight="50%";let r=E($n),o=E(Jt,{target:r},E(ce,{icon:"search"})),c=E(nt,{size:-2},E(pe,{name:"search"}),E(bt,{$:s=>h(s,"selected").tap(a=>{!CONFIG.spa&&a?.value&&(location.href=a.value)})}),n);function i(){t.next(CONFIG.symbols)}return e.shadowRoot?.append(r,o),f(Ne().tap(i),pt(e.parentElement??e).tap(s=>{s==="xsmall"?(r.style.display="",o.style.display="",r.append(c)):(r.open=!1,r.style.display="none",o.style.display="none",e.shadowRoot?.append(c))}))}]});var lo=class extends Lt{sticky=!0};u(lo,{tagName:"doc-appbar",augment:[e=>{e.append(E(cn,{id:"appbar-toolbar"},E(nn,{target:"navbar"}),E(rt,{grow:!0},CONFIG.packageName),E(ln),E(en,{persistkey:"3doc.theme"})))}]});var uo=class extends g{};u(uo,{tagName:"doc-card",augment:[d(`
|
|
824
|
+
:host{
|
|
825
|
+
margin-top: 16px;
|
|
826
|
+
display:block;
|
|
827
|
+
elevation:1;
|
|
828
|
+
scroll-margin-top: 80px;
|
|
379
829
|
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
:host{
|
|
384
|
-
`),()=>
|
|
830
|
+
:host(:target) {
|
|
831
|
+
outline: 2px dashed var(--cxl-color-primary);
|
|
832
|
+
}
|
|
833
|
+
${U("medium",":host{padding:16px}")}
|
|
834
|
+
`),()=>E("slot")]});var po=class extends g{formatter=t=>'<link rel="stylesheet" href="hljs.css" /><code style="white-space:pre;min-height:100%;font:var(--cxl-font-code);tab-size:2;">'+hljs.highlight(t,{language:"html"}).value+"</code>"};u(po,{tagName:"doc-hl",augment:[d(`
|
|
385
835
|
:host { display: block; }
|
|
386
836
|
.hljs { white-space: pre-wrap; font: var(--cxl-font-code); padding:16px; }
|
|
387
|
-
`),e=>{let t=
|
|
837
|
+
`),e=>{let t=E("div",{className:"hljs"});return t.style.tabSize="4",z(e).append(t),Ne().switchMap(()=>In(e).raf(()=>{let n=e.childNodes[0]?.textContent?.trim()||"";n&&e.formatter&&(n=e.formatter(n)),t.innerHTML=n}))}]});var fo=class extends g{};u(fo,{tagName:"doc-grd",augment:[d(`:host {
|
|
388
838
|
padding: 8px 16px;
|
|
389
839
|
display: grid;
|
|
390
840
|
gap: 16px 12px;
|
|
391
841
|
}
|
|
392
|
-
${
|
|
393
|
-
${
|
|
394
|
-
${
|
|
395
|
-
`),
|
|
842
|
+
${U("small",":host{grid-template-columns:repeat(2, minmax(0px,1fr))}")}
|
|
843
|
+
${U("medium",":host{grid-template-columns:repeat(3, minmax(0px,1fr))}")}
|
|
844
|
+
${U("large",":host{grid-template-columns:repeat(4, minmax(0px,1fr))}")}
|
|
845
|
+
`),I]});var un=class extends g{summary;selected};u(un,{tagName:"doc-nav-list",init:[X("summary"),X("selected")],augment:[e=>tt({source:h(e,"summary").map(t=>t?.index),render:t=>E(ot,{$:n=>q(n).tap(()=>e.selected=t.value.name),size:-2},t.value.name,t.value.docs?.beta?E(Xt,{size:-2},"beta"):void 0)})(e)]});var pn=class extends g{view="mobile";header="<style>html{overflow:hidden;color: var(--cxl-color-on-background);background-color:var(--cxl-color-background)}</style>";libraries;formatter;getLibraryUrl(t){return`https://cdn.jsdelivr.net/npm/${t}`}};u(pn,{tagName:"doc-demo-bare",init:[y("view"),y("libraries"),y("header")],augment:[d(`
|
|
396
846
|
:host {
|
|
397
847
|
display: flex;
|
|
398
848
|
flex-direction: column;
|
|
@@ -450,5 +900,18 @@ ${Ae("large",":host{grid-template-columns:repeat(4, minmax(0px,1fr))}")}
|
|
|
450
900
|
align-items: center;
|
|
451
901
|
display: flex;
|
|
452
902
|
}
|
|
453
|
-
`),e=>{let t=
|
|
454
|
-
background-color:var(--cxl-color-background)}</style>`,
|
|
903
|
+
`),e=>{let t=h(e,"view"),n=ie("container"),r=E(tn,{className:n}),o=E(wt,{$:m=>Me(m).tap(()=>{e.formatter?m.innerHTML=e.formatter(a):m.innerText=a}),className:t.map(m=>m==="source"?"source visible hljs":"source")}),c=E(Yt,{$:m=>q(m).tap(()=>e.view="source"),className:h(e,"view").map(m=>m==="source"?"hide":""),title:"See source"},E(pe,{name:"code"}),"Code"),i=E(ce,{$:m=>q(m).tap(()=>e.view="mobile"),height:20,className:h(e,"view").map(m=>m==="source"?"":"hide"),icon:"close",title:"Close source"}),s=E("div",{id:"toolbar"},E("slot",{name:"toolbar"}),E(ce,{$:m=>q(m).tap(async()=>{await navigator.clipboard.writeText(a),m.icon="done",setTimeout(()=>m.icon="content_copy",2e3)}),height:20,icon:"content_copy",title:"Copy source to clipboard",className:t.map(m=>m==="source"?"icon":"icon hide")}),c,i),a;function l(m){let P=m==="desktop";n.next(P?"container":"container cmobile")}function C(){let m=e.childNodes[0]?.textContent?.trim()||"";if(!m)return;let P=e.libraries?e.libraries.split(",").map(R=>`<script type="module" src="${e.getLibraryUrl(R)}"><\/script>`).join(""):"";r.srcdoc=`${e.header}${P}${m}`,a=m}return z(e).append(s,E(wt,{className:t.map(m=>m==="source"?"parent":`parent visible ${m}`)},r),o),f(h(e,"view").tap(l),Me(e).switchMap(()=>In(e).raf(C)))}]});var fn=class extends pn{header=this.getHeader();hljsCss="hljs.css";formatter=t=>`<link rel="stylesheet" href="${this.hljsCss}" />`+hljs.highlight(t,{language:"html"}).value;getHeader(){let t="<style>html{overflow:hidden;color: var(--cxl-color-on-background);background-color:var(--cxl-color-background)}</style>";return typeof CONFIG<"u"?t+`${CONFIG.demoStyles?`<style>${CONFIG.demoStyles}</style>`:""}${CONFIG.demoScripts?.map(n=>`<script type="module" src="${n}"><\/script>`).join("")??""}`:t}};u(fn,{tagName:"doc-demo"});function ta(e){let t=e.index;function n(s){if(!(!s||typeof s=="string")&&typeof s=="number")return t.find(a=>a.id===s)}function r(s){if(!(!s||typeof s=="string")){if(typeof s=="number"){let a=t.find(l=>l.id===s);return a&&(a.kind===4||a.kind===8)?a:a?r(a.resolvedType??a.type):void 0}return s.kind===6?n(s.type):s.resolvedType&&typeof s.resolvedType!="string"?s.resolvedType:s}}function o(s,a){if(s.children){for(let l of s.children)!l.name||l.flags&&l.flags&128||(a[l.name]??=l);return a}}function c(s,a={}){o(s,a);let l=r(s.type);if(l?.children)for(let C of l.children){let m=r(C);if(!m||m.kind!==35||m.name==="Component")break;c(m,a)}return a}function i(s){return s.kind===17||s.kind===16||s.kind===11||s.kind===13}return{getNodeProperties:c,getTypeSummary:r,isFunction:i,getRef:n,json:e}}var cl={31:"Constants",1:"Variables",4:"Interfaces",8:"Classes",10:"Properties",11:"Methods",12:"Getters",13:"Setters",14:"Constructor",16:"Functions",22:"Enums",35:"Components",36:"Attributes",2:"Type Alias",38:"Call Signature",39:"Construct Signature",44:"Events",24:"Index Signature",25:"Exports",37:"Namespaces"};function na(e){return typeof e=="string"?e:e.map(t=>t.value).join(" ")}function ll(e){return e.name?`docs/ui-${e.name}`:void 0}function ul(e){let t=ll(e),n=e.name??"?";return t?E("a",{href:t},n):n}function ra({summary:e,summaryJson:t,link:n=ul,uiCdn:r,importmap:o,codeHighlight:c}){let{getTypeSummary:i,getRef:s,isFunction:a}=ta(t),l=t.index;function C(w){if(w)return typeof w=="string"?w:i(w)??(typeof w=="number"?void 0:w.name)}function m(w){return w?"<"+w.map(k=>R(k)+(k.kind!==6&&k.type?` extends ${R(k.type)}`:"")).join(", ")+">":""}function P(w){return["{ ",...w.children?.map(Ve).flatMap(At("; "))??[]," }"]}function R(w){let k=C(w);if(!k||typeof k=="string")return[k||"?"];switch(k.kind){case 5:return k.children?.map(R).flatMap(At(" | "))??[];case 23:case 32:return[k.name??"?"];case 34:return P(k)??["?"];case 15:return[...R(k.type),"[]"];case 4:case 8:case 35:{let p=k.typeP?m(k.typeP):void 0;return[n(k),p]}case 17:return Ve(k);case 33:{let p=s(w);return[p?n(p):k.name??"?"]}case 21:return[...R(k.children?.[0]),"[",...R(k.children?.[1]),"]"];default:console.log(k)}return[]}function $(w){let k=w.flags??0;return[`${`${k&4?"public ":k&8?"private":k&16?"protected ":""}${k&262144?"...":""}${w.name}${k&524288?"?":""}`}: `,...R(w.type)]}function W(w){return["(",...w?.map($).flatMap(At(", "))??[],")"]}function ae(w){let k=w.flags??0,p=w.kind===12?"get ":w.kind===13?"set ":void 0;return[k&32?"static ":"",k&64?"readonly ":"",k&128?"abstract ":"",p]}function te(w){return["[",...w.parameters?.flatMap(Ve)??[]??[],"]: ",...w.type?R(w.type)??[]:["?"]]}function At(w){return(k,p)=>p!==0?[...w,...k]:k}function Ve(w){if(w.kind===24)return te(w);if(w.kind===45&&w.children?.[0])return["...",...R(w.children[0])];let k=w.flags&&w.flags&524288,p=a(w)?W(w.parameters):[],x=w.kind===17;return[...ae(w),w.name,k?"?":"",...p,x?" => ":": ",...R(w.resolvedType??w.type)]}function st(w){return[E("h3",{},E(Se,{font:"title-large"},...Ve(w))),...Mt(w)]}function hn(w,k){if(!w.children)return[];let p={};for(let x of w.children)x.kind!==14&&x.kind!==0&&(x.flags||0)&4&&!k?.(x)&&(p[x.kind]??={name:cl[x.kind],nodes:[]}).nodes.push(x);return Object.values(p).sort(Mi("name")).flatMap(x=>[E("h2",{},x.name),...x.nodes.flatMap(st)])}function lr(w){let k;w=w.replace(/<caption>(.+?)<\/caption>/,(O,Y)=>(k=Y,""));let p=`<style>body{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;overflow-x:hidden;overflow-y:auto;padding:0 24px 24px 24px;gap:32px;min-height:96px;color:var(--cxl-color-on-background);
|
|
904
|
+
background-color:var(--cxl-color-background)}</style>`,x=(o??"")+`<script type="module" src="${r}"><\/script>`,A=E(fn,{header:p+x,formatter:c},w);return[k?E(Se,{font:"title-medium"},k):void 0,A]}function ur(w){return l.find(k=>k.name===w)}function me(w){let k=w.flatMap(p=>{let x=p.value,A=na(x);if(typeof x=="string"){let O=ur(x);A=O?n(O):x}return[A,", "]});return k.pop(),E("p",{},"Related: ",k)}function xn({src:w}){let k=E("div");return k.textContent=w,k}function Mt(w){let k=w.docs;if(!k||!k.content)return[];let p=[],x=k.content.flatMap(A=>{let O=na(A.value);return A.tag==="icon"||A.tag==="title"?[]:A.tag==="example"||A.tag==="demo"||A.tag==="demoonly"?lr(O):A.tag==="see"?(p.push(A),[]):A.tag==="return"?[E(Se,{font:"headline-small"},"Returns"),E("p",void 0,O)]:A.tag==="param"?[E("p",void 0,O)]:[A.tag?E("p",void 0,`${A.tag}: `,O):xn({src:O})]});return p.length&&x.push(me(p)),x}function pr(w){let k=[],p=i(w);if(!(!p||p.kind!==33))return p.children?.forEach(x=>{if(typeof x!="object")return;let A=i(x);A&&A.name!=="Component"&&k.push(n(A))}),E(Se,{font:"headline-small"}," ",...k.length?["extends ",k]:[])}function bn(w){let k=i(w.type),p=[];if(!k?.children)return[];for(let x of k.children){let A=i(x);if(!A||A.kind!==35||A.name==="Component")break;let O=hn(A,Y=>!!((Y.flags??0)&128));O.length&&p.push(E("br"),E(Se,{font:"h6"},"Inherited from ",n(A)),...O),p.push(...bn(A))}return p}let yn=e.kind===35&&e.docs?.tagName;return E("div",{},E("h1",{},e.name," ",e.type&&pr(e.type)," ",yn?E(Se,{font:"title-medium"},`<${yn}>`):""),...Mt(e),...hn(e),...bn(e))}var dn=class extends g{name;summary;uicdn;importmap=""};u(dn,{tagName:"doc-page",init:[X("name"),X("summary"),X("uicdn")],augment:[e=>Le(e).raf(()=>{if(e.replaceChildren(),!e.name||!e.summary)return;let t=e.name,n=e.summary.index.find(r=>r.name===t);n&&e.append(ra({summary:n,summaryJson:e.summary,uiCdn:e.uicdn??"",importmap:e.importmap}))})]});var mo=class extends zt{summary;sheetstart=!0};u(mo,{tagName:"doc-root",augment:[e=>{let t=qe();fetch("summary.json").then(r=>r.json()).then(r=>t.next(r));let n=E(un,{slot:"start",summary:t});e.append(n,E(dn,{summary:t,name:h(n,"selected")}))}]});var go=class extends sn{};u(go,{tagName:"doc-item"});var ho=class extends g{};u(ho,{tagName:"doc-search-page",augment:[d(`
|
|
905
|
+
:host { display: block; margin: 64px 0 }
|
|
906
|
+
#searchbar { margin: 0 auto 32px auto; max-width: 600px; min-width: min(480px, 100%); }
|
|
907
|
+
#grid { grid-template-columns: 1fr; row-gap: 8px; }
|
|
908
|
+
c-card-item { display: flex; gap: 16px; align-items:center; }
|
|
909
|
+
.title { ${B("body-medium")}}
|
|
910
|
+
|
|
911
|
+
${U("small",`
|
|
912
|
+
#grid { grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 8px; }
|
|
913
|
+
`)}
|
|
914
|
+
${U("medium",`
|
|
915
|
+
#grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 0 8px; }
|
|
916
|
+
`)}
|
|
917
|
+
`),()=>{let t=E(Kt,{id:"grid"},tt({source:F(["components"]),render:r=>E(on,void 0,E(_e,{className:"title",xs:1,sm:2,md:3},r.value.toUpperCase()),tt({source:F(CONFIG.symbols).map(o=>o.filter(c=>c.kind===35&&c.tagName)),render:o=>E(qt,{$:c=>q(c).tap(()=>{!CONFIG.spa&&o.value?.href&&(location.href=o.value.href)}),pad:16},E(pe,{name:o.value.icon})," ",o.map(c=>c.name))}))})),n=r=>h(r,"value").raf(o=>{o=o.toLowerCase();for(let c of t.children)for(let i of c.children)i.style.display=!o||i.textContent?.toLowerCase().includes(o)?"":"none"});return E("div",void 0,E(nt,{id:"searchbar"},E(pe,{name:"search"}),E(Gt,{$:n})),t)}]});var Ca=ja(Sa(),1);var ko=Ca.default;function ka(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},i=e.inherit(c,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),a=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,a,s,i,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,i,a,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}ko.registerLanguage("html",ka);window.hljs=ko;export{po as BlogCode,Jn as Body,mo as ComponentList,lo as DocAppbar,uo as DocCard,fo as DocGrid,go as DocItem,Qn as Drawer,er as Hr,pe as Icon,tr as NavHeadline,un as NavList,dn as Page,nr as UiPage};
|