Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@phase2/outline-alert

Package Overview
Dependencies
Maintainers
9
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phase2/outline-alert - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

20

dist/index.js

@@ -1,6 +0,6 @@

"use strict";(()=>{var Fe=Object.defineProperty;var Be=Object.getOwnPropertyDescriptor;var b=(r,e,t,o)=>{for(var n=o>1?void 0:o?Be(e,t):e,s=r.length-1,i;s>=0;s--)(i=r[s])&&(n=(o?i(e,t,n):i(n))||n);return o&&n&&Fe(e,t,n),n};var F=window,B=F.ShadowRoot&&(F.ShadyCSS===void 0||F.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X=Symbol(),pe=new WeakMap,R=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==X)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(B&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=pe.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&pe.set(t,e))}return e}toString(){return this.cssText}},q=r=>new R(typeof r=="string"?r:r+"",void 0,X),k=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,n,s)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[s+1],r[0]);return new R(t,r,X)},Z=(r,e)=>{B?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let o=document.createElement("style"),n=F.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)})},V=B?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return q(t)})(r):r;var Y,j=window,me=j.trustedTypes,qe=me?me.emptyScript:"",fe=j.reactiveElementPolyfillSupport,Q={toAttribute(r,e){switch(e){case Boolean:r=r?qe:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},ve=(r,e)=>e!==r&&(e==e||r==r),J={attribute:!0,type:String,converter:Q,reflect:!1,hasChanged:ve},v=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;(t=this.h)!==null&&t!==void 0||(this.h=[]),this.h.push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,o)=>{let n=this._$Ep(o,t);n!==void 0&&(this._$Ev.set(n,o),e.push(n))}),e}static createProperty(e,t=J){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let o=typeof e=="symbol"?Symbol():"__"+e,n=this.getPropertyDescriptor(e,o,t);n!==void 0&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){return{get(){return this[t]},set(n){let s=this[e];this[t]=n,this.requestUpdate(e,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||J}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties,o=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let n of o)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(V(n))}else e!==void 0&&t.push(V(e));return t}static _$Ep(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,o;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Z(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var o;return(o=t.hostConnected)===null||o===void 0?void 0:o.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var o;return(o=t.hostDisconnected)===null||o===void 0?void 0:o.call(t)})}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t,o=J){var n;let s=this.constructor._$Ep(e,o);if(s!==void 0&&o.reflect===!0){let i=(((n=o.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?o.converter:Q).toAttribute(t,o.type);this._$El=e,i==null?this.removeAttribute(s):this.setAttribute(s,i),this._$El=null}}_$AK(e,t){var o;let n=this.constructor,s=n._$Ev.get(e);if(s!==void 0&&this._$El!==s){let i=n.getPropertyOptions(s),d=typeof i.converter=="function"?{fromAttribute:i.converter}:((o=i.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?i.converter:Q;this._$El=s,this[s]=d.fromAttribute(t,i.type),this._$El=null}}requestUpdate(e,t,o){let n=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||ve)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,s)=>this[s]=n),this._$Ei=void 0);let t=!1,o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(n=>{var s;return(s=n.hostUpdate)===null||s===void 0?void 0:s.call(n)}),this.update(o)):this._$Ek()}catch(n){throw t=!1,this._$Ek(),n}t&&this._$AE(o)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(o=>{var n;return(n=o.hostUpdated)===null||n===void 0?void 0:n.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,o)=>this._$EO(o,this[o],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},fe?.({ReactiveElement:v}),((Y=j.reactiveElementVersions)!==null&&Y!==void 0?Y:j.reactiveElementVersions=[]).push("1.4.1");var ee,K=window,_=K.trustedTypes,ge=_?_.createPolicy("lit-html",{createHTML:r=>r}):void 0,y=`lit$${(Math.random()+"").slice(9)}$`,Ae="?"+y,Ve=`<${Ae}>`,L=document,N=(r="")=>L.createComment(r),O=r=>r===null||typeof r!="object"&&typeof r!="function",$e=Array.isArray,je=r=>$e(r)||typeof r?.[Symbol.iterator]=="function",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,be=/-->/g,ye=/>/g,S=RegExp(`>|[
"use strict";(()=>{var Me=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var g=(s,e,t,o)=>{for(var r=o>1?void 0:o?Oe(e,t):e,n=s.length-1,i;n>=0;n--)(i=s[n])&&(r=(o?i(e,t,r):i(r))||r);return o&&r&&Me(e,t,r),r};var D=window,q=D.ShadowRoot&&(D.ShadyCSS===void 0||D.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,K=Symbol(),ae=new WeakMap,H=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==K)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(q&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=ae.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&ae.set(t,e))}return e}toString(){return this.cssText}},ce=s=>new H(typeof s=="string"?s:s+"",void 0,K),k=(s,...e)=>{let t=s.length===1?s[0]:e.reduce((o,r,n)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[n+1],s[0]);return new H(t,s,K)},G=(s,e)=>{q?s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let o=document.createElement("style"),r=D.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=t.cssText,s.appendChild(o)})},j=q?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return ce(t)})(s):s;var Z,B=window,de=B.trustedTypes,Ne=de?de.emptyScript:"",he=B.reactiveElementPolyfillSupport,J={toAttribute(s,e){switch(e){case Boolean:s=s?Ne:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},ue=(s,e)=>e!==s&&(e==e||s==s),X={attribute:!0,type:String,converter:J,reflect:!1,hasChanged:ue},v=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;(t=this.h)!==null&&t!==void 0||(this.h=[]),this.h.push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,o)=>{let r=this._$Ep(o,t);r!==void 0&&(this._$Ev.set(r,o),e.push(r))}),e}static createProperty(e,t=X){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let o=typeof e=="symbol"?Symbol():"__"+e,r=this.getPropertyDescriptor(e,o,t);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,o){return{get(){return this[t]},set(r){let n=this[e];this[t]=r,this.requestUpdate(e,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||X}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties,o=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let r of o)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let r of o)t.unshift(j(r))}else e!==void 0&&t.push(j(e));return t}static _$Ep(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,o;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return G(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var o;return(o=t.hostConnected)===null||o===void 0?void 0:o.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var o;return(o=t.hostDisconnected)===null||o===void 0?void 0:o.call(t)})}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t,o=X){var r;let n=this.constructor._$Ep(e,o);if(n!==void 0&&o.reflect===!0){let i=(((r=o.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?o.converter:J).toAttribute(t,o.type);this._$El=e,i==null?this.removeAttribute(n):this.setAttribute(n,i),this._$El=null}}_$AK(e,t){var o;let r=this.constructor,n=r._$Ev.get(e);if(n!==void 0&&this._$El!==n){let i=r.getPropertyOptions(n),d=typeof i.converter=="function"?{fromAttribute:i.converter}:((o=i.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?i.converter:J;this._$El=n,this[n]=d.fromAttribute(t,i.type),this._$El=null}}requestUpdate(e,t,o){let r=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||ue)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,n)=>this[n]=r),this._$Ei=void 0);let t=!1,o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostUpdate)===null||n===void 0?void 0:n.call(r)}),this.update(o)):this._$Ek()}catch(r){throw t=!1,this._$Ek(),r}t&&this._$AE(o)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(o=>{var r;return(r=o.hostUpdated)===null||r===void 0?void 0:r.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,o)=>this._$EO(o,this[o],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},he?.({ReactiveElement:v}),((Z=B.reactiveElementVersions)!==null&&Z!==void 0?Z:B.reactiveElementVersions=[]).push("1.4.1");var Y,V=window,w=V.trustedTypes,pe=w?w.createPolicy("lit-html",{createHTML:s=>s}):void 0,y=`lit$${(Math.random()+"").slice(9)}$`,xe="?"+y,Ue=`<${xe}>`,T=document,O=(s="")=>T.createComment(s),N=s=>s===null||typeof s!="object"&&typeof s!="function",Se=Array.isArray,Pe=s=>Se(s)||typeof s?.[Symbol.iterator]=="function",M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,me=/-->/g,fe=/>/g,S=RegExp(`>|[
\f\r](?:([^\\s"'>=/]+)([
\f\r]*=[
\f\r]*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ee=/'/g,xe=/"/g,we=/^(?:script|style|textarea|title)$/i,_e=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),$=_e(1),Le=_e(2),g=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),Se=new WeakMap,w=L.createTreeWalker(L,129,null,!1),Ke=(r,e)=>{let t=r.length-1,o=[],n,s=e===2?"<svg>":"",i=z;for(let l=0;l<t;l++){let a=r[l],p,c,h=-1,m=0;for(;m<a.length&&(i.lastIndex=m,c=i.exec(a),c!==null);)m=i.lastIndex,i===z?c[1]==="!--"?i=be:c[1]!==void 0?i=ye:c[2]!==void 0?(we.test(c[2])&&(n=RegExp("</"+c[2],"g")),i=S):c[3]!==void 0&&(i=S):i===S?c[0]===">"?(i=n??z,h=-1):c[1]===void 0?h=-2:(h=i.lastIndex-c[2].length,p=c[1],i=c[3]===void 0?S:c[3]==='"'?xe:Ee):i===xe||i===Ee?i=S:i===be||i===ye?i=z:(i=S,n=void 0);let U=i===S&&r[l+1].startsWith("/>")?" ":"";s+=i===z?a+Ve:h>=0?(o.push(p),a.slice(0,h)+"$lit$"+a.slice(h)+y+U):a+y+(h===-2?(o.push(void 0),l):U)}let d=s+(r[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ge!==void 0?ge.createHTML(d):d,o]},T=class{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let s=0,i=0,d=e.length-1,l=this.parts,[a,p]=Ke(e,t);if(this.el=T.createElement(a,o),w.currentNode=this.el.content,t===2){let c=this.el.content,h=c.firstChild;h.remove(),c.append(...h.childNodes)}for(;(n=w.nextNode())!==null&&l.length<d;){if(n.nodeType===1){if(n.hasAttributes()){let c=[];for(let h of n.getAttributeNames())if(h.endsWith("$lit$")||h.startsWith(y)){let m=p[i++];if(c.push(h),m!==void 0){let U=n.getAttribute(m.toLowerCase()+"$lit$").split(y),P=/([.?@])?(.*)/.exec(m);l.push({type:1,index:s,name:P[2],strings:U,ctor:P[1]==="."?oe:P[1]==="?"?re:P[1]==="@"?ne:H})}else l.push({type:6,index:s})}for(let h of c)n.removeAttribute(h)}if(we.test(n.tagName)){let c=n.textContent.split(y),h=c.length-1;if(h>0){n.textContent=_?_.emptyScript:"";for(let m=0;m<h;m++)n.append(c[m],N()),w.nextNode(),l.push({type:2,index:++s});n.append(c[h],N())}}}else if(n.nodeType===8)if(n.data===Ae)l.push({type:2,index:s});else{let c=-1;for(;(c=n.data.indexOf(y,c+1))!==-1;)l.push({type:7,index:s}),c+=y.length-1}s++}}static createElement(e,t){let o=L.createElement("template");return o.innerHTML=e,o}};function C(r,e,t=r,o){var n,s,i,d;if(e===g)return e;let l=o!==void 0?(n=t._$Co)===null||n===void 0?void 0:n[o]:t._$Cl,a=O(e)?void 0:e._$litDirective$;return l?.constructor!==a&&((s=l?._$AO)===null||s===void 0||s.call(l,!1),a===void 0?l=void 0:(l=new a(r),l._$AT(r,t,o)),o!==void 0?((i=(d=t)._$Co)!==null&&i!==void 0?i:d._$Co=[])[o]=l:t._$Cl=l),l!==void 0&&(e=C(r,l._$AS(r,e.values),l,o)),e}var te=class{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;let{el:{content:o},parts:n}=this._$AD,s=((t=e?.creationScope)!==null&&t!==void 0?t:L).importNode(o,!0);w.currentNode=s;let i=w.nextNode(),d=0,l=0,a=n[0];for(;a!==void 0;){if(d===a.index){let p;a.type===2?p=new A(i,i.nextSibling,this,e):a.type===1?p=new a.ctor(i,a.name,a.strings,this,e):a.type===6&&(p=new se(i,this,e)),this.u.push(p),a=n[++l]}d!==a?.index&&(i=w.nextNode(),d++)}return s}p(e){let t=0;for(let o of this.u)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},A=class{constructor(e,t,o,n){var s;this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cm=(s=n?.isConnected)===null||s===void 0||s}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=C(this,e,t),O(e)?e===u||e==null||e===""?(this._$AH!==u&&this._$AR(),this._$AH=u):e!==this._$AH&&e!==g&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):je(e)?this.k(e):this.g(e)}O(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==u&&O(this._$AH)?this._$AA.nextSibling.data=e:this.T(L.createTextNode(e)),this._$AH=e}$(e){var t;let{values:o,_$litType$:n}=e,s=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=T.createElement(n.h,this.options)),n);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===s)this._$AH.p(o);else{let i=new te(s,this),d=i.v(this.options);i.p(o),this.T(d),this._$AH=i}}_$AC(e){let t=Se.get(e.strings);return t===void 0&&Se.set(e.strings,t=new T(e)),t}k(e){$e(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let s of e)n===t.length?t.push(o=new A(this.O(N()),this.O(N()),this,this.options)):o=t[n],o._$AI(s),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,t);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},H=class{constructor(e,t,o,n,s){this.type=1,this._$AH=u,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=u}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,o,n){let s=this.strings,i=!1;if(s===void 0)e=C(this,e,t,0),i=!O(e)||e!==this._$AH&&e!==g,i&&(this._$AH=e);else{let d=e,l,a;for(e=s[0],l=0;l<s.length-1;l++)a=C(this,d[o+l],t,l),a===g&&(a=this._$AH[l]),i||(i=!O(a)||a!==this._$AH[l]),a===u?e=u:e!==u&&(e+=(a??"")+s[l+1]),this._$AH[l]=a}i&&!n&&this.j(e)}j(e){e===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},oe=class extends H{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===u?void 0:e}},We=_?_.emptyScript:"",re=class extends H{constructor(){super(...arguments),this.type=4}j(e){e&&e!==u?this.element.setAttribute(this.name,We):this.element.removeAttribute(this.name)}},ne=class extends H{constructor(e,t,o,n,s){super(e,t,o,n,s),this.type=5}_$AI(e,t=this){var o;if((e=(o=C(this,e,t,0))!==null&&o!==void 0?o:u)===g)return;let n=this._$AH,s=e===u&&n!==u||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==u&&(n===u||s);s&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,o;typeof this._$AH=="function"?this._$AH.call((o=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}},se=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){C(this,e)}};var Te=K.litHtmlPolyfillSupport;Te?.(T,A),((ee=K.litHtmlVersions)!==null&&ee!==void 0?ee:K.litHtmlVersions=[]).push("2.4.0");var Ce=(r,e,t)=>{var o,n;let s=(o=t?.renderBefore)!==null&&o!==void 0?o:e,i=s._$litPart$;if(i===void 0){let d=(n=t?.renderBefore)!==null&&n!==void 0?n:null;s._$litPart$=i=new A(e.insertBefore(N(),d),d,void 0,t??{})}return i._$AI(r),i};var ie,le;var E=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=o.firstChild),o}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ce(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return g}};E.finalized=!0,E._$litElement$=!0,(ie=globalThis.litElementHydrateSupport)===null||ie===void 0||ie.call(globalThis,{LitElement:E});var He=globalThis.litElementPolyfillSupport;He?.({LitElement:E});((le=globalThis.litElementVersions)!==null&&le!==void 0?le:globalThis.litElementVersions=[]).push("3.2.2");var W=r=>e=>typeof e=="function"?((t,o)=>(customElements.define(t,o),o))(r,e):((t,o)=>{let{kind:n,elements:s}=o;return{kind:n,elements:s,finisher(i){customElements.define(t,i)}}})(r,e);var Ge=(r,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,r)}};function M(r){return(e,t)=>t!==void 0?((o,n,s)=>{n.constructor.createProperty(s,o)})(r,e,t):Ge(r,e)}var ae,Ot=((ae=window.HTMLSlotElement)===null||ae===void 0?void 0:ae.prototype.assignedElements)!=null?(r,e)=>r.assignedElements(e):(r,e)=>r.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);var D=r=>r??u;var Re=Symbol.for(""),Xe=r=>{if(r?.r===Re)return r?._$litStatic$},ce=r=>({_$litStatic$:r,r:Re});var Me=new Map,ke=r=>(e,...t)=>{let o=t.length,n,s,i=[],d=[],l,a=0,p=!1;for(;a<o;){for(l=e[a];a<o&&(s=t[a],(n=Xe(s))!==void 0);)l+=n+e[++a],p=!0;d.push(s),i.push(l),a++}if(a===o&&i.push(e[o]),p){let c=i.join("$$lit$$");(e=Me.get(c))===void 0&&(i.raw=i,Me.set(c,e=i)),t=d}return r(e,...t)},ze=ke($),ro=ke(Le);var Ne=k`
\f\r"'\`<>=]|("|')|))|$)`,"g"),ve=/'/g,ge=/"/g,Ee=/^(?:script|style|textarea|title)$/i,$e=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),R=$e(1),Ae=$e(2),E=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),ye=new WeakMap,_=T.createTreeWalker(T,129,null,!1),Ie=(s,e)=>{let t=s.length-1,o=[],r,n=e===2?"<svg>":"",i=M;for(let l=0;l<t;l++){let a=s[l],p,c,h=-1,m=0;for(;m<a.length&&(i.lastIndex=m,c=i.exec(a),c!==null);)m=i.lastIndex,i===M?c[1]==="!--"?i=me:c[1]!==void 0?i=fe:c[2]!==void 0?(Ee.test(c[2])&&(r=RegExp("</"+c[2],"g")),i=S):c[3]!==void 0&&(i=S):i===S?c[0]===">"?(i=r??M,h=-1):c[1]===void 0?h=-2:(h=i.lastIndex-c[2].length,p=c[1],i=c[3]===void 0?S:c[3]==='"'?ge:ve):i===ge||i===ve?i=S:i===me||i===fe?i=M:(i=S,r=void 0);let P=i===S&&s[l+1].startsWith("/>")?" ":"";n+=i===M?a+Ue:h>=0?(o.push(p),a.slice(0,h)+"$lit$"+a.slice(h)+y+P):a+y+(h===-2?(o.push(void 0),l):P)}let d=n+(s[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return[pe!==void 0?pe.createHTML(d):d,o]},$=class{constructor({strings:e,_$litType$:t},o){let r;this.parts=[];let n=0,i=0,d=e.length-1,l=this.parts,[a,p]=Ie(e,t);if(this.el=$.createElement(a,o),_.currentNode=this.el.content,t===2){let c=this.el.content,h=c.firstChild;h.remove(),c.append(...h.childNodes)}for(;(r=_.nextNode())!==null&&l.length<d;){if(r.nodeType===1){if(r.hasAttributes()){let c=[];for(let h of r.getAttributeNames())if(h.endsWith("$lit$")||h.startsWith(y)){let m=p[i++];if(c.push(h),m!==void 0){let P=r.getAttribute(m.toLowerCase()+"$lit$").split(y),I=/([.?@])?(.*)/.exec(m);l.push({type:1,index:n,name:I[2],strings:P,ctor:I[1]==="."?ee:I[1]==="?"?te:I[1]==="@"?oe:L})}else l.push({type:6,index:n})}for(let h of c)r.removeAttribute(h)}if(Ee.test(r.tagName)){let c=r.textContent.split(y),h=c.length-1;if(h>0){r.textContent=w?w.emptyScript:"";for(let m=0;m<h;m++)r.append(c[m],O()),_.nextNode(),l.push({type:2,index:++n});r.append(c[h],O())}}}else if(r.nodeType===8)if(r.data===xe)l.push({type:2,index:n});else{let c=-1;for(;(c=r.data.indexOf(y,c+1))!==-1;)l.push({type:7,index:n}),c+=y.length-1}n++}}static createElement(e,t){let o=T.createElement("template");return o.innerHTML=e,o}};function C(s,e,t=s,o){var r,n,i,d;if(e===E)return e;let l=o!==void 0?(r=t._$Co)===null||r===void 0?void 0:r[o]:t._$Cl,a=N(e)?void 0:e._$litDirective$;return l?.constructor!==a&&((n=l?._$AO)===null||n===void 0||n.call(l,!1),a===void 0?l=void 0:(l=new a(s),l._$AT(s,t,o)),o!==void 0?((i=(d=t)._$Co)!==null&&i!==void 0?i:d._$Co=[])[o]=l:t._$Cl=l),l!==void 0&&(e=C(s,l._$AS(s,e.values),l,o)),e}var Q=class{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;let{el:{content:o},parts:r}=this._$AD,n=((t=e?.creationScope)!==null&&t!==void 0?t:T).importNode(o,!0);_.currentNode=n;let i=_.nextNode(),d=0,l=0,a=r[0];for(;a!==void 0;){if(d===a.index){let p;a.type===2?p=new A(i,i.nextSibling,this,e):a.type===1?p=new a.ctor(i,a.name,a.strings,this,e):a.type===6&&(p=new re(i,this,e)),this.u.push(p),a=r[++l]}d!==a?.index&&(i=_.nextNode(),d++)}return n}p(e){let t=0;for(let o of this.u)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},A=class{constructor(e,t,o,r){var n;this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=r,this._$Cm=(n=r?.isConnected)===null||n===void 0||n}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=C(this,e,t),N(e)?e===u||e==null||e===""?(this._$AH!==u&&this._$AR(),this._$AH=u):e!==this._$AH&&e!==E&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Pe(e)?this.k(e):this.g(e)}O(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==u&&N(this._$AH)?this._$AA.nextSibling.data=e:this.T(T.createTextNode(e)),this._$AH=e}$(e){var t;let{values:o,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=$.createElement(r.h,this.options)),r);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===n)this._$AH.p(o);else{let i=new Q(n,this),d=i.v(this.options);i.p(o),this.T(d),this._$AH=i}}_$AC(e){let t=ye.get(e.strings);return t===void 0&&ye.set(e.strings,t=new $(e)),t}k(e){Se(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,r=0;for(let n of e)r===t.length?t.push(o=new A(this.O(O()),this.O(O()),this,this.options)):o=t[r],o._$AI(n),r++;r<t.length&&(this._$AR(o&&o._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,t);e&&e!==this._$AB;){let r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},L=class{constructor(e,t,o,r,n){this.type=1,this._$AH=u,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=u}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,o,r){let n=this.strings,i=!1;if(n===void 0)e=C(this,e,t,0),i=!N(e)||e!==this._$AH&&e!==E,i&&(this._$AH=e);else{let d=e,l,a;for(e=n[0],l=0;l<n.length-1;l++)a=C(this,d[o+l],t,l),a===E&&(a=this._$AH[l]),i||(i=!N(a)||a!==this._$AH[l]),a===u?e=u:e!==u&&(e+=(a??"")+n[l+1]),this._$AH[l]=a}i&&!r&&this.j(e)}j(e){e===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ee=class extends L{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===u?void 0:e}},De=w?w.emptyScript:"",te=class extends L{constructor(){super(...arguments),this.type=4}j(e){e&&e!==u?this.element.setAttribute(this.name,De):this.element.removeAttribute(this.name)}},oe=class extends L{constructor(e,t,o,r,n){super(e,t,o,r,n),this.type=5}_$AI(e,t=this){var o;if((e=(o=C(this,e,t,0))!==null&&o!==void 0?o:u)===E)return;let r=this._$AH,n=e===u&&r!==u||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==u&&(r===u||n);n&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,o;typeof this._$AH=="function"?this._$AH.call((o=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}},re=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){C(this,e)}};var be=V.litHtmlPolyfillSupport;be?.($,A),((Y=V.litHtmlVersions)!==null&&Y!==void 0?Y:V.litHtmlVersions=[]).push("2.4.0");var _e=(s,e,t)=>{var o,r;let n=(o=t?.renderBefore)!==null&&o!==void 0?o:e,i=n._$litPart$;if(i===void 0){let d=(r=t?.renderBefore)!==null&&r!==void 0?r:null;n._$litPart$=i=new A(e.insertBefore(O(),d),d,void 0,t??{})}return i._$AI(s),i};var se,ie;var b=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=o.firstChild),o}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=_e(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return E}};b.finalized=!0,b._$litElement$=!0,(se=globalThis.litElementHydrateSupport)===null||se===void 0||se.call(globalThis,{LitElement:b});var we=globalThis.litElementPolyfillSupport;we?.({LitElement:b});((ie=globalThis.litElementVersions)!==null&&ie!==void 0?ie:globalThis.litElementVersions=[]).push("3.2.2");var W=s=>e=>typeof e=="function"?((t,o)=>(customElements.define(t,o),o))(s,e):((t,o)=>{let{kind:r,elements:n}=o;return{kind:r,elements:n,finisher(i){customElements.define(t,i)}}})(s,e);var qe=(s,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,s)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,s)}};function z(s){return(e,t)=>t!==void 0?((o,r,n)=>{r.constructor.createProperty(n,o)})(s,e,t):qe(s,e)}var ne,_t=((ne=window.HTMLSlotElement)===null||ne===void 0?void 0:ne.prototype.assignedElements)!=null?(s,e)=>s.assignedElements(e):(s,e)=>s.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);var F=s=>s??u;var Ce=Symbol.for(""),je=s=>{if(s?.r===Ce)return s?._$litStatic$},le=s=>({_$litStatic$:s,r:Ce});var Te=new Map,Le=s=>(e,...t)=>{let o=t.length,r,n,i=[],d=[],l,a=0,p=!1;for(;a<o;){for(l=e[a];a<o&&(n=t[a],(r=je(n))!==void 0);)l+=r+e[++a],p=!0;d.push(n),i.push(l),a++}if(a===o&&i.push(e[o]),p){let c=i.join("$$lit$$");(e=Te.get(c))===void 0&&(i.raw=i,Te.set(c,e=i)),t=d}return s(e,...t)},Re=Le(R),Ft=Le(Ae);var ze=k`
/* Apply standardized box sizing to the component. */

@@ -263,8 +263,8 @@ :host {

}
`;var x=class extends E{connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}_conditionalSlotTemplate({elementName:e,slotNameStub:t,wrapperElementType:o="div",ariaLabel:n=null}){let s=`${e}--${t}`;return this.querySelector(`[slot="${s}"]`)!==null?ze`<${ce(o)} id="${t}" aria-label="${D(n)}">
`;var x=class extends b{connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}_conditionalSlotTemplate({elementName:e,slotNameStub:t,wrapperElementType:o="div",ariaLabel:r=null}){let n=`${e}--${t}`;return this.querySelector(`[slot="${n}"]`)!==null?Re`<${le(o)} id="${t}" aria-label="${F(r)}">
<slot
name="${s}"
name="${n}"
@slotchange="${()=>this.requestUpdate()}"
></slot>
</${ce(o)}>`:null}};x.styles=[Ne],x=b([W("outline-element")],x);var Ze={xs:"480px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1440px",xxxl:"2160px"},yo=new Map(Object.entries(Ze).map(([r,e])=>[r,parseInt(e.slice(0,-2))]).sort(([,r],[,e])=>r-e));var Ye={xs:"480px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1440px",xxxl:"2160px"},Ao=new Map(Object.entries(Ye).map(([r,e])=>[r,parseInt(e.slice(0,-2))]).sort(([,r],[,e])=>r-e));var Oe=(()=>{let r=document.createElement("style"),e;try{document.head.appendChild(r),r.sheet.insertRule(":focus-visible { color: inherit }"),e=!0}catch(t){e=!1}finally{r.remove()}return e})(),Je=q(Oe?":focus-visible":":focus");var Ie={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},De=r=>(...e)=>({_$litDirective$:r,values:e}),G=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var Qe=De(class extends G{constructor(r){var e;if(super(r),r.type!==Ie.ATTRIBUTE||r.name!=="class"||((e=r.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){var t,o;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in e)e[s]&&!(!((t=this.st)===null||t===void 0)&&t.has(s))&&this.nt.add(s);return this.render(e)}let n=r.element.classList;this.nt.forEach(s=>{s in e||(n.remove(s),this.nt.delete(s))});for(let s in e){let i=!!e[s];i===this.nt.has(s)||((o=this.st)===null||o===void 0?void 0:o.has(s))||(i?(n.add(s),this.nt.add(s)):(n.remove(s),this.nt.delete(s)))}return g}});var he=class extends Event{constructor(t){super("formdata");this.formData=t}},ue=class extends FormData{constructor(t){super(t);this.form=t,t.dispatchEvent(new he(this))}append(t,o){let n=this.form.elements[t];if(n||(n=document.createElement("input"),n.type="hidden",n.name=t,this.form.appendChild(n)),this.has(t)){let s=this.getAll(t),i=s.indexOf(n.value);i!==-1&&s.splice(i,1),s.push(o),this.set(t,s)}else super.append(t,o);n.value=o}};function et(){let r=document.createElement("form"),e=!1;return document.body.append(r),r.addEventListener("submit",t=>{new FormData(t.target),t.preventDefault()}),r.addEventListener("formdata",()=>e=!0),r.dispatchEvent(new Event("submit",{cancelable:!0})),r.remove(),e}function Ue(){!window.FormData||et()||(window.FormData=ue,window.addEventListener("submit",r=>{r.defaultPrevented||new FormData(r.target)}))}document.readyState==="complete"?Ue():window.addEventListener("DOMContentLoaded",()=>Ue());var Pe=k`
</${le(o)}>`:null}};x.styles=[ze],x=g([W("outline-element")],x);var Be={xs:"480px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1440px",xxxl:"2160px"},lo=new Map(Object.entries(Be).map(([s,e])=>[s,parseInt(e.slice(0,-2))]).sort(([,s],[,e])=>s-e));var Ve={xs:"480px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1440px",xxxl:"2160px"},po=new Map(Object.entries(Ve).map(([s,e])=>[s,parseInt(e.slice(0,-2))]).sort(([,s],[,e])=>s-e));var ke=k`
/* Apply standardized box sizing to the component. */

@@ -345,9 +345,9 @@ :host {

}
`;var rt=["small","large"],nt=["info","warning","error","success"],f=class extends x{constructor(){super(...arguments);this.status="info";this.isInteractive=!1;this.shouldShowIcon=!1;this.size="large"}render(){return $`
`;var Fe=["small","large"],Ke=["info","warning","error","success"],f=class extends x{constructor(){super(...arguments);this.status="info";this.isInteractive=!1;this.shouldShowIcon=!1;this.size="large"}render(){return R`
<div
class="alert-body"
role="${this.isInteractive?"alertdialog":"alert"}"
aria-labelledby=${D(this.isInteractive?"message":void 0)}
aria-labelledby=${F(this.isInteractive?"message":void 0)}
>
${this.shouldShowIcon===!0?$`
${this.shouldShowIcon===!0?R`
<div class="icon">

@@ -357,3 +357,3 @@ <!--@todo include icon when we have that ready.-->

`:null}
${this.size==="large"?$`
${this.size==="large"?R`
<div class="alert-header">

@@ -367,3 +367,3 @@ <slot name="header">${this.status}</slot>

</div>
`}};f.styles=[Pe],b([M({type:String,attribute:"status"})],f.prototype,"status",2),b([M({type:Boolean,attribute:"is-interactive"})],f.prototype,"isInteractive",2),b([M({type:Boolean,attribute:"should-show-icon"})],f.prototype,"shouldShowIcon",2),b([M({type:String,attribute:"size"})],f.prototype,"size",2),f=b([W("outline-alert")],f);})();
`}};f.styles=[ke],g([z({type:String,attribute:"status"})],f.prototype,"status",2),g([z({type:Boolean,attribute:"is-interactive"})],f.prototype,"isInteractive",2),g([z({type:Boolean,attribute:"should-show-icon"})],f.prototype,"shouldShowIcon",2),g([z({type:String,attribute:"size"})],f.prototype,"size",2),f=g([W("outline-alert")],f);})();
/**

@@ -370,0 +370,0 @@ * @license

{
"name": "@phase2/outline-alert",
"version": "0.1.4",
"version": "0.1.5",
"description": "The Outline Components for the web alert component",

@@ -30,3 +30,3 @@ "keywords": [

"dependencies": {
"@phase2/outline-core": "^0.1.7",
"@phase2/outline-core": "^0.1.9",
"lit": "^2.3.1",

@@ -33,0 +33,0 @@ "tslib": "^2.1.0"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc