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

@phase2/outline-core

Package Overview
Dependencies
Maintainers
10
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phase2/outline-core - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

1

dist/index.d.ts

@@ -8,3 +8,2 @@ export { OutlineElement } from './src/outline-element/outline-element';

export { SlotsController } from './src/controllers/slots-controller';
export { LightDomStyles } from './src/controllers/light-dom-styles';
export { animateTo } from './src/internal/animate';

@@ -11,0 +10,0 @@ export { emit, waitForEvent } from './src/internal/event';

@@ -1,54 +0,11 @@

"use strict";(()=>{var Rt=Object.defineProperty,Ue=Object.defineProperties,Ie=Object.getOwnPropertyDescriptor,De=Object.getOwnPropertyDescriptors;var wt=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var Ct=(i,t,e)=>t in i?Rt(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,M=(i,t)=>{for(var e in t||={})Ve.call(t,e)&&Ct(i,e,t[e]);if(wt)for(var e of wt(t))je.call(t,e)&&Ct(i,e,t[e]);return i},Ht=(i,t)=>Ue(i,De(t));var Mt=(i,t,e,s)=>{for(var n=s>1?void 0:s?Ie(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=(s?o(t,e,n):o(n))||n);return s&&n&&Rt(t,e,n),n};var B=window,F=B.ShadowRoot&&(B.ShadyCSS===void 0||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,kt=Symbol(),Ot=new WeakMap,L=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==kt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(F&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=Ot.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Ot.set(e,t))}return t}toString(){return this.cssText}},zt=i=>new L(typeof i=="string"?i:i+"",void 0,kt);var et=(i,t)=>{F?i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let s=document.createElement("style"),n=B.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,i.appendChild(s)})},W=F?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return zt(e)})(i):i;var st,G=window,Nt=G.trustedTypes,qe=Nt?Nt.emptyScript:"",Pt=G.reactiveElementPolyfillSupport,nt={toAttribute(i,t){switch(t){case Boolean:i=i?qe:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},Ut=(i,t)=>t!==i&&(t==t||i==i),it={attribute:!0,type:String,converter:nt,reflect:!1,hasChanged:Ut},A=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;(e=this.h)!==null&&e!==void 0||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((e,s)=>{let n=this._$Ep(s,e);n!==void 0&&(this._$Ev.set(n,s),t.push(n))}),t}static createProperty(t,e=it){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){let s=typeof t=="symbol"?Symbol():"__"+t,n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(n){let r=this[t];this[e]=n,this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||it}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let e=this.properties,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let n of s)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)e.unshift(W(n))}else t!==void 0&&e.push(W(t));return e}static _$Ep(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;let e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return et(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=it){var n;let r=this.constructor._$Ep(t,s);if(r!==void 0&&s.reflect===!0){let o=(((n=s.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?s.converter:nt).toAttribute(e,s.type);this._$El=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$El=null}}_$AK(t,e){var s;let n=this.constructor,r=n._$Ev.get(t);if(r!==void 0&&this._$El!==r){let o=n.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?o.converter:nt;this._$El=r,this[r]=a.fromAttribute(e,o.type),this._$El=null}}requestUpdate(t,e,s){let n=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||Ut)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,r)=>this[r]=n),this._$Ei=void 0);let e=!1,s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(n=>{var r;return(r=n.hostUpdate)===null||r===void 0?void 0:r.call(n)}),this.update(s)):this._$Ek()}catch(n){throw e=!1,this._$Ek(),n}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var n;return(n=s.hostUpdated)===null||n===void 0?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};A.finalized=!0,A.elementProperties=new Map,A.elementStyles=[],A.shadowRootOptions={mode:"open"},Pt?.({ReactiveElement:A}),((st=G.reactiveElementVersions)!==null&&st!==void 0?st:G.reactiveElementVersions=[]).push("1.4.1");var rt,K=window,k=K.trustedTypes,It=k?k.createPolicy("lit-html",{createHTML:i=>i}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,Wt="?"+S,Be=`<${Wt}>`,z=document,I=(i="")=>z.createComment(i),D=i=>i===null||typeof i!="object"&&typeof i!="function",Gt=Array.isArray,Fe=i=>Gt(i)||typeof i?.[Symbol.iterator]=="function",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Dt=/-->/g,Vt=/>/g,w=RegExp(`>|[
"use strict";(()=>{var de=Object.defineProperty,Xe=Object.defineProperties,Ye=Object.getOwnPropertyDescriptor,Je=Object.getOwnPropertyDescriptors;var ce=Object.getOwnPropertySymbols;var Qe=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable;var he=(o,e,t)=>e in o?de(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,A=(o,e)=>{for(var t in e||={})Qe.call(e,t)&&he(o,t,e[t]);if(ce)for(var t of ce(e))et.call(e,t)&&he(o,t,e[t]);return o},ue=(o,e)=>Xe(o,Je(e));var pe=(o,e,t,s)=>{for(var i=s>1?void 0:s?Ye(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(e,t,i):n(i))||i);return s&&i&&de(e,t,i),i};var k=window,P=k.ShadowRoot&&(k.ShadyCSS===void 0||k.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fe=Symbol(),me=new WeakMap,U=class{constructor(e,t,s){if(this._$cssResult$=!0,s!==fe)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(P&&e===void 0){let s=t!==void 0&&t.length===1;s&&(e=me.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&me.set(t,e))}return e}toString(){return this.cssText}},ve=o=>new U(typeof o=="string"?o:o+"",void 0,fe);var j=(o,e)=>{P?o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let s=document.createElement("style"),i=k.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=t.cssText,o.appendChild(s)})},N=P?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(let s of e.cssRules)t+=s.cssText;return ve(t)})(o):o;var V,I=window,ge=I.trustedTypes,tt=ge?ge.emptyScript:"",ye=I.reactiveElementPolyfillSupport,F={toAttribute(o,e){switch(e){case Boolean:o=o?tt:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},Ee=(o,e)=>e!==o&&(e==e||o==o),W={attribute:!0,type:String,converter:F,reflect:!1,hasChanged:Ee},f=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,s)=>{let i=this._$Ep(s,t);i!==void 0&&(this._$Ev.set(i,s),e.push(i))}),e}static createProperty(e,t=W){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let s=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,s,t);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,s){return{get(){return this[t]},set(i){let r=this[e];this[t]=i,this.requestUpdate(e,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||W}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,s=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let i of s)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let s=new Set(e.flat(1/0).reverse());for(let i of s)t.unshift(N(i))}else e!==void 0&&t.push(N(e));return t}static _$Ep(e,t){let s=t.attribute;return s===!1?void 0:typeof s=="string"?s: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,s;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((s=e.hostConnected)===null||s===void 0||s.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 j(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 s;return(s=t.hostConnected)===null||s===void 0?void 0:s.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var s;return(s=t.hostDisconnected)===null||s===void 0?void 0:s.call(t)})}attributeChangedCallback(e,t,s){this._$AK(e,s)}_$EO(e,t,s=W){var i;let r=this.constructor._$Ep(e,s);if(r!==void 0&&s.reflect===!0){let n=(((i=s.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?s.converter:F).toAttribute(t,s.type);this._$El=e,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(e,t){var s;let i=this.constructor,r=i._$Ev.get(e);if(r!==void 0&&this._$El!==r){let n=i.getPropertyOptions(r),c=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?n.converter:F;this._$El=r,this[r]=c.fromAttribute(t,n.type),this._$El=null}}requestUpdate(e,t,s){let i=!0;e!==void 0&&(((s=s||this.constructor.getPropertyOptions(e)).hasChanged||Ee)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),s.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,s))):i=!1),!this.isUpdatePending&&i&&(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((i,r)=>this[r]=i),this._$Ei=void 0);let t=!1,s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var r;return(r=i.hostUpdate)===null||r===void 0?void 0:r.call(i)}),this.update(s)):this._$Ek()}catch(i){throw t=!1,this._$Ek(),i}t&&this._$AE(s)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(s=>{var i;return(i=s.hostUpdated)===null||i===void 0?void 0:i.call(s)}),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,s)=>this._$EO(s,this[s],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};f.finalized=!0,f.elementProperties=new Map,f.elementStyles=[],f.shadowRootOptions={mode:"open"},ye?.({ReactiveElement:f}),((V=I.reactiveElementVersions)!==null&&V!==void 0?V:I.reactiveElementVersions=[]).push("1.4.1");var K,D=window,b=D.trustedTypes,$e=b?b.createPolicy("lit-html",{createHTML:o=>o}):void 0,g=`lit$${(Math.random()+"").slice(9)}$`,Le="?"+g,st=`<${Le}>`,S=document,w=(o="")=>S.createComment(o),H=o=>o===null||typeof o!="object"&&typeof o!="function",Ce=Array.isArray,ot=o=>Ce(o)||typeof o?.[Symbol.iterator]=="function",C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_e=/-->/g,Ae=/>/g,E=RegExp(`>|[
\f\r](?:([^\\s"'>=/]+)([
\f\r]*=[
\f\r]*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),jt=/'/g,qt=/"/g,Kt=/^(?:script|style|textarea|title)$/i,Zt=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),Xt=Zt(1),Yt=Zt(2),b=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),Bt=new WeakMap,O=z.createTreeWalker(z,129,null,!1),We=(i,t)=>{let e=i.length-1,s=[],n,r=t===2?"<svg>":"",o=U;for(let u=0;u<e;u++){let h=i[u],g,d,p=-1,E=0;for(;E<h.length&&(o.lastIndex=E,d=o.exec(h),d!==null);)E=o.lastIndex,o===U?d[1]==="!--"?o=Dt:d[1]!==void 0?o=Vt:d[2]!==void 0?(Kt.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=w):d[3]!==void 0&&(o=w):o===w?d[0]===">"?(o=n??U,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,g=d[1],o=d[3]===void 0?w:d[3]==='"'?qt:jt):o===qt||o===jt?o=w:o===Dt||o===Vt?o=U:(o=w,n=void 0);let y=o===w&&i[u+1].startsWith("/>")?" ":"";r+=o===U?h+Be:p>=0?(s.push(g),h.slice(0,p)+"$lit$"+h.slice(p)+S+y):h+S+(p===-2?(s.push(void 0),u):y)}let a=r+(i[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return[It!==void 0?It.createHTML(a):a,s]},C=class{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,o=0,a=t.length-1,u=this.parts,[h,g]=We(t,e);if(this.el=C.createElement(h,s),O.currentNode=this.el.content,e===2){let d=this.el.content,p=d.firstChild;p.remove(),d.append(...p.childNodes)}for(;(n=O.nextNode())!==null&&u.length<a;){if(n.nodeType===1){if(n.hasAttributes()){let d=[];for(let p of n.getAttributeNames())if(p.endsWith("$lit$")||p.startsWith(S)){let E=g[o++];if(d.push(p),E!==void 0){let y=n.getAttribute(E.toLowerCase()+"$lit$").split(S),H=/([.?@])?(.*)/.exec(E);u.push({type:1,index:r,name:H[2],strings:y,ctor:H[1]==="."?lt:H[1]==="?"?at:H[1]==="@"?ct:P})}else u.push({type:6,index:r})}for(let p of d)n.removeAttribute(p)}if(Kt.test(n.tagName)){let d=n.textContent.split(S),p=d.length-1;if(p>0){n.textContent=k?k.emptyScript:"";for(let E=0;E<p;E++)n.append(d[E],I()),O.nextNode(),u.push({type:2,index:++r});n.append(d[p],I())}}}else if(n.nodeType===8)if(n.data===Wt)u.push({type:2,index:r});else{let d=-1;for(;(d=n.data.indexOf(S,d+1))!==-1;)u.push({type:7,index:r}),d+=S.length-1}r++}}static createElement(t,e){let s=z.createElement("template");return s.innerHTML=t,s}};function N(i,t,e=i,s){var n,r,o,a;if(t===b)return t;let u=s!==void 0?(n=e._$Co)===null||n===void 0?void 0:n[s]:e._$Cl,h=D(t)?void 0:t._$litDirective$;return u?.constructor!==h&&((r=u?._$AO)===null||r===void 0||r.call(u,!1),h===void 0?u=void 0:(u=new h(i),u._$AT(i,e,s)),s!==void 0?((o=(a=e)._$Co)!==null&&o!==void 0?o:a._$Co=[])[s]=u:e._$Cl=u),u!==void 0&&(t=N(i,u._$AS(i,t.values),u,s)),t}var ot=class{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;let{el:{content:s},parts:n}=this._$AD,r=((e=t?.creationScope)!==null&&e!==void 0?e:z).importNode(s,!0);O.currentNode=r;let o=O.nextNode(),a=0,u=0,h=n[0];for(;h!==void 0;){if(a===h.index){let g;h.type===2?g=new R(o,o.nextSibling,this,t):h.type===1?g=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(g=new ht(o,this,t)),this.u.push(g),h=n[++u]}a!==h?.index&&(o=O.nextNode(),a++)}return r}p(t){let e=0;for(let s of this.u)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},R=class{constructor(t,e,s,n){var r;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cm=(r=n?.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=N(this,t,e),D(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==b&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Fe(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==$&&D(this._$AH)?this._$AA.nextSibling.data=t:this.T(z.createTextNode(t)),this._$AH=t}$(t){var e;let{values:s,_$litType$:n}=t,r=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=C.createElement(n.h,this.options)),n);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.p(s);else{let o=new ot(r,this),a=o.v(this.options);o.p(s),this.T(a),this._$AH=o}}_$AC(t){let e=Bt.get(t.strings);return e===void 0&&Bt.set(t.strings,e=new C(t)),e}k(t){Gt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new R(this.O(I()),this.O(I()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,e);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this._$Cm=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},P=class{constructor(t,e,s,n,r){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,n){let r=this.strings,o=!1;if(r===void 0)t=N(this,t,e,0),o=!D(t)||t!==this._$AH&&t!==b,o&&(this._$AH=t);else{let a=t,u,h;for(t=r[0],u=0;u<r.length-1;u++)h=N(this,a[s+u],e,u),h===b&&(h=this._$AH[u]),o||(o=!D(h)||h!==this._$AH[u]),h===$?t=$:t!==$&&(t+=(h??"")+r[u+1]),this._$AH[u]=h}o&&!n&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},lt=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}},Ge=k?k.emptyScript:"",at=class extends P{constructor(){super(...arguments),this.type=4}j(t){t&&t!==$?this.element.setAttribute(this.name,Ge):this.element.removeAttribute(this.name)}},ct=class extends P{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){var s;if((t=(s=N(this,t,e,0))!==null&&s!==void 0?s:$)===b)return;let n=this._$AH,r=t===$&&n!==$||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==$&&(n===$||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}},ht=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}};var Ft=K.litHtmlPolyfillSupport;Ft?.(C,R),((rt=K.litHtmlVersions)!==null&&rt!==void 0?rt:K.litHtmlVersions=[]).push("2.4.0");var Jt=(i,t,e)=>{var s,n;let r=(s=e?.renderBefore)!==null&&s!==void 0?s:t,o=r._$litPart$;if(o===void 0){let a=(n=e?.renderBefore)!==null&&n!==void 0?n:null;r._$litPart$=o=new R(t.insertBefore(I(),a),a,void 0,e??{})}return o._$AI(i),o};var ut,pt;var T=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;let s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Jt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return b}};T.finalized=!0,T._$litElement$=!0,(ut=globalThis.litElementHydrateSupport)===null||ut===void 0||ut.call(globalThis,{LitElement:T});var Qt=globalThis.litElementPolyfillSupport;Qt?.({LitElement:T});((pt=globalThis.litElementVersions)!==null&&pt!==void 0?pt:globalThis.litElementVersions=[]).push("3.2.2");var te=i=>t=>typeof t=="function"?((e,s)=>(customElements.define(e,s),s))(i,t):((e,s)=>{let{kind:n,elements:r}=s;return{kind:n,elements:r,finisher(o){customElements.define(e,o)}}})(i,t);var dt,ni=((dt=window.HTMLSlotElement)===null||dt===void 0?void 0:dt.prototype.assignedElements)!=null?(i,t)=>i.assignedElements(t):(i,t)=>i.assignedNodes(t).filter(e=>e.nodeType===Node.ELEMENT_NODE);var j=class extends T{};j=Mt([te("outline-element")],j);var Ke={xs:"480px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1440px",xxxl:"2160px"},ee=new Map(Object.entries(Ke).map(([i,t])=>[i,parseInt(t.slice(0,-2))]).sort(([,i],[,t])=>i-t)),mt=class{constructor(t){this.containerSizes=[];this.handleResize=()=>{var s,n;let t=this.containerSizes,e=(n=(s=this.host.parentElement)==null?void 0:s.clientWidth)!=null?n:0;this.containerSizes=Array.from(ee).filter(([,r])=>e>=r).map(([r])=>r),this.containerSizes.length!==t.length&&(Array.from(ee).forEach(([r])=>{this.containerSizes.includes(r)&&this.host.setAttribute(`container-size-${r}`,"true"),this.containerSizes.includes(r)===!1&&this.host.removeAttribute(`container-size-${r}`)}),this.host.requestUpdate())};this.host=t,this.host.addController(this),this.handleResize()}hostConnected(){this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(document.querySelector("body"))}hostDisconnected(){this.resizeObserver.disconnect()}};var ft=class{constructor(t){this.isHoverableDevice=!1;this.handleResize=()=>{let t=this.isHoverableDevice;this.isHoverableDevice=window.matchMedia("(any-hover: hover) and (any-pointer: fine)").matches,this.isHoverableDevice!==t&&this.host.requestUpdate()};this.host=t,this.host.addController(this),this.handleResize()}hostConnected(){this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(document.querySelector("body"))}hostDisconnected(){this.resizeObserver.disconnect()}};var vt=class{constructor(t,e){this._lastMouseDownTimestamp=0;this.host=t,this.host.addController(this),this._getLink=e,this.isLinked=this.isLinked.bind(this)}hostConnected(){this.isLinked()&&(this._handleClicks(),this._handleHover(),this._handleFocus())}isLinked(){return this.host.href!==void 0&&this.host.href.length>0}_handleClicks(){this.host.addEventListener("mousedown",()=>{this._lastMouseDownTimestamp=Date.now()}),this.host.addEventListener("mouseup",t=>{var e,s;t.composedPath()[0]!==this._getLink()&&this._isClickNotDrag()&&(t.stopPropagation(),(e=this._getLink())==null||e.dispatchEvent(new Event("mousedown")),(s=this._getLink())==null||s.dispatchEvent(new Event("mouseup")))}),this.host.addEventListener("click",t=>{var e;t.composedPath()[0]!==this._getLink()&&this._isClickNotDrag()&&(t.stopPropagation(),(e=this._getLink())==null||e.click())})}_isClickNotDrag(){return Date.now()-this._lastMouseDownTimestamp<200}_handleHover(){let t=this.host.querySelectorAll("labcoat-button");this.host.addEventListener("mouseover",()=>{t.forEach(e=>{e.classList.add("state--hover")})}),this.host.addEventListener("mouseout",()=>{t.forEach(e=>{e.classList.remove("state--hover")})})}_handleFocus(){let t=this.host.querySelectorAll("labcoat-button");this.host.addEventListener("focus",()=>{t.forEach(e=>{e.classList.add("state--focus")})}),this.host.addEventListener("blur",()=>{t.forEach(e=>{e.classList.remove("state--focus")})})}};var Ze={xs:"480px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1440px",xxxl:"2160px"},gt=class{constructor(t,e="md"){this.isMobile=!1;this.handleResize=()=>{let t=this.formatScreenSize(Ze[this.mobileBreakpoint]);window.innerWidth<t?this.isMobile=!0:this.isMobile=!1,this.host.requestUpdate()};this.formatScreenSize=t=>parseInt(t.slice(0,-2));this.mobileBreakpoint=e,(this.host=t).addController(this),this.handleResize()}hostConnected(){window.addEventListener("resize",this.handleResize)}hostDisconnected(){window.removeEventListener("resize",this.handleResize)}};var Xe={xs:"480px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1440px",xxxl:"2160px"},se=new Map(Object.entries(Xe).map(([i,t])=>[i,parseInt(t.slice(0,-2))]).sort(([,i],[,t])=>i-t)),yt=class{constructor(t){this.isMobile=!1;this.screenSize="xxs";this.handleResize=()=>{let t=[["isMobile",this.isMobile],["screenSize",this.screenSize]];this.isMobile=window.innerWidth<=se.get("sm"),this.screenSize=Array.from(se).reduce((e,[s,n])=>window.innerWidth>=n?s:e,"xxs"),t.map(([e,s])=>this[e]!==s).reduce((e,s)=>e||s)&&this.host.requestUpdate()};(this.host=t).addController(this),this.handleResize()}hostConnected(){this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(document.querySelector("body"))}hostDisconnected(){this.resizeObserver.disconnect()}};var ie={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ne=i=>(...t)=>({_$litDirective$:i,values:t}),Z=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var re=ne(class extends Z{constructor(i){var t;if(super(i),i.type!==ie.ATTRIBUTE||i.name!=="class"||((t=i.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var e,s;if(this.nt===void 0){this.nt=new Set,i.strings!==void 0&&(this.st=new Set(i.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(let r in t)t[r]&&!(!((e=this.st)===null||e===void 0)&&e.has(r))&&this.nt.add(r);return this.render(t)}let n=i.element.classList;this.nt.forEach(r=>{r in t||(n.remove(r),this.nt.delete(r))});for(let r in t){let o=!!t[r];o===this.nt.has(r)||((s=this.st)===null||s===void 0?void 0:s.has(r))||(o?(n.add(r),this.nt.add(r)):(n.remove(r),this.nt.delete(r)))}return b}});var oe=i=>i??$;var ae=Symbol.for(""),Ye=i=>{if(i?.r===ae)return i?._$litStatic$},ce=i=>({_$litStatic$:i,r:ae});var le=new Map,he=i=>(t,...e)=>{let s=e.length,n,r,o=[],a=[],u,h=0,g=!1;for(;h<s;){for(u=t[h];h<s&&(r=e[h],(n=Ye(r))!==void 0);)u+=n+t[++h],g=!0;a.push(r),o.push(u),h++}if(h===s&&o.push(t[s]),g){let d=o.join("$$lit$$");(t=le.get(d))===void 0&&(o.raw=o,le.set(d,t=o)),e=a}return i(t,...e)},X=he(Xt),Vi=he(Yt);var $t=class{constructor(t){this._mutationObserver=new MutationObserver(this._handleMutation.bind(this));this.host=t,t.addController(this)}hostConnected(){}_handleMutation(){this._mutationObserver.disconnect(),this.host.requestUpdate()}getSlottedNodes(t=null){let e=t===""||t===null,s=[];return e?s=Array.from(this.host.childNodes).filter(n=>this.isDefaultSlotText(n)||this.isDefaultSlotElement(n)):s=Array.from(this.host.querySelectorAll(`[slot=${t}]`)),s.length?s:!1}exist(t=null){return Boolean(this.getSlottedNodes(t))}isDefaultSlotText(t){return t.nodeType===t.TEXT_NODE&&t.textContent.trim()!==""}isDefaultSlotElement(t){return t.nodeType===t.ELEMENT_NODE&&t.getAttribute("slot")===null}addAnnotations(t,e){var o;let s=e.cloneNode(!0),n="slotsController cloned this "+(t===""?"default-slot":`named-slot '${t}'`)+" into the shadow DOM";if(Array.from(this.host.childNodes).some(a=>a.nodeValue===n)||e.before(document.createComment(n)),t!=="")return s.setAttribute("cloned-slot-type","named-slot"),s.setAttribute("cloned-slot-name",t),s.removeAttribute("slot"),s;if(this.isDefaultSlotElement(e))return s.setAttribute("cloned-slot-type","default-slot--element"),s.setAttribute("cloned-slot-name","default"),s.removeAttribute("slot"),s;{let a=document.createElement("cloned-slot");return(o=s.parentNode)==null||o.insertBefore(a,s),a.appendChild(s),a.setAttribute("cloned-slot-type","default-slot--text"),a.setAttribute("cloned-slot-name","default"),a}}dispatchEventsToLightDom(t,e){t.forEach(s=>{e.addEventListener(s,n=>{if(n.target){let r=this.getElementPathInShadowDom(n),o=this.getElementPathInLightDom(r);o&&o.dispatchEvent(new Event(s)),setTimeout(()=>{let a=this.getElementPathInLightDom(r,!0);a&&a.focus()},0)}})})}renderInShadow(t="",e=[],s=!0){let n=this.getSlottedNodes(t);if(n){let r=n.map(o=>{let a=o,u;return s?u=this.addAnnotations(t,a):u=a.cloneNode(!0),this.dispatchEventsToLightDom(e,u),u});return this._mutationObserver.observe(this.host,{subtree:!0,childList:!0,attributes:!0,characterData:!0}),r}return null}getElementPathInShadowDom(t){let e=t.composedPath(),s=[],n=!1;for(let o=0;!n&&o<e.length;o++){let a=e[o];if(a.nodeName==="#document-fragment")n=!0;else{let u=this.getSelectorForSingleElement(a);u&&s.push(u)}}return s.reverse()}getSelectorForSingleElement(t){if(!t.parentElement)return null;let e=Array.from(t.classList).join("."),s=`${t.localName}${e!==""?"."+e:""}`,r=Array.from(t.parentElement.querySelectorAll(s)).indexOf(t);return{name:s,index:r}}getElementPathInLightDom(t,e=!1){let s=e?this.host.shadowRoot:this.host;if(!s)return null;for(let n=0;n<t.length;n++)s=s.querySelectorAll(t[n].name)[t[n].index];return s}printExtraAttributes(t){return ce(t.map(e=>`${e.name}=${e.value}`).join(" "))}conditionalSlot(t,e=!0,s=null,n=[]){let r=t===""||t===null,o={"default-slot":r,[`${t}`]:!r,[`${s}`]:s!=null?s:!1};return this.exist(t)?X` <div
class="${oe(re(o))}"
${this.printExtraAttributes(n)}
\f\r"'\`<>=]|("|')|))|$)`,"g"),xe=/'/g,be=/"/g,we=/^(?:script|style|textarea|title)$/i,He=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),Re=He(1),Me=He(2),v=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),Se=new WeakMap,x=S.createTreeWalker(S,129,null,!1),it=(o,e)=>{let t=o.length-1,s=[],i,r=e===2?"<svg>":"",n=C;for(let l=0;l<t;l++){let a=o[l],p,h,d=-1,m=0;for(;m<a.length&&(n.lastIndex=m,h=n.exec(a),h!==null);)m=n.lastIndex,n===C?h[1]==="!--"?n=_e:h[1]!==void 0?n=Ae:h[2]!==void 0?(we.test(h[2])&&(i=RegExp("</"+h[2],"g")),n=E):h[3]!==void 0&&(n=E):n===E?h[0]===">"?(n=i??C,d=-1):h[1]===void 0?d=-2:(d=n.lastIndex-h[2].length,p=h[1],n=h[3]===void 0?E:h[3]==='"'?be:xe):n===be||n===xe?n=E:n===_e||n===Ae?n=C:(n=E,i=void 0);let O=n===E&&o[l+1].startsWith("/>")?" ":"";r+=n===C?a+st:d>=0?(s.push(p),a.slice(0,d)+"$lit$"+a.slice(d)+g+O):a+g+(d===-2?(s.push(void 0),l):O)}let c=r+(o[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return[$e!==void 0?$e.createHTML(c):c,s]},$=class{constructor({strings:e,_$litType$:t},s){let i;this.parts=[];let r=0,n=0,c=e.length-1,l=this.parts,[a,p]=it(e,t);if(this.el=$.createElement(a,s),x.currentNode=this.el.content,t===2){let h=this.el.content,d=h.firstChild;d.remove(),h.append(...d.childNodes)}for(;(i=x.nextNode())!==null&&l.length<c;){if(i.nodeType===1){if(i.hasAttributes()){let h=[];for(let d of i.getAttributeNames())if(d.endsWith("$lit$")||d.startsWith(g)){let m=p[n++];if(h.push(d),m!==void 0){let O=i.getAttribute(m.toLowerCase()+"$lit$").split(g),z=/([.?@])?(.*)/.exec(m);l.push({type:1,index:r,name:z[2],strings:O,ctor:z[1]==="."?Z:z[1]==="?"?X:z[1]==="@"?Y:L})}else l.push({type:6,index:r})}for(let d of h)i.removeAttribute(d)}if(we.test(i.tagName)){let h=i.textContent.split(g),d=h.length-1;if(d>0){i.textContent=b?b.emptyScript:"";for(let m=0;m<d;m++)i.append(h[m],w()),x.nextNode(),l.push({type:2,index:++r});i.append(h[d],w())}}}else if(i.nodeType===8)if(i.data===Le)l.push({type:2,index:r});else{let h=-1;for(;(h=i.data.indexOf(g,h+1))!==-1;)l.push({type:7,index:r}),h+=g.length-1}r++}}static createElement(e,t){let s=S.createElement("template");return s.innerHTML=e,s}};function T(o,e,t=o,s){var i,r,n,c;if(e===v)return e;let l=s!==void 0?(i=t._$Co)===null||i===void 0?void 0:i[s]:t._$Cl,a=H(e)?void 0:e._$litDirective$;return l?.constructor!==a&&((r=l?._$AO)===null||r===void 0||r.call(l,!1),a===void 0?l=void 0:(l=new a(o),l._$AT(o,t,s)),s!==void 0?((n=(c=t)._$Co)!==null&&n!==void 0?n:c._$Co=[])[s]=l:t._$Cl=l),l!==void 0&&(e=T(o,l._$AS(o,e.values),l,s)),e}var G=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:s},parts:i}=this._$AD,r=((t=e?.creationScope)!==null&&t!==void 0?t:S).importNode(s,!0);x.currentNode=r;let n=x.nextNode(),c=0,l=0,a=i[0];for(;a!==void 0;){if(c===a.index){let p;a.type===2?p=new _(n,n.nextSibling,this,e):a.type===1?p=new a.ctor(n,a.name,a.strings,this,e):a.type===6&&(p=new J(n,this,e)),this.u.push(p),a=i[++l]}c!==a?.index&&(n=x.nextNode(),c++)}return r}p(e){let t=0;for(let s of this.u)s!==void 0&&(s.strings!==void 0?(s._$AI(e,s,t),t+=s.strings.length-2):s._$AI(e[t])),t++}},_=class{constructor(e,t,s,i){var r;this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=s,this.options=i,this._$Cm=(r=i?.isConnected)===null||r===void 0||r}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=T(this,e,t),H(e)?e===u||e==null||e===""?(this._$AH!==u&&this._$AR(),this._$AH=u):e!==this._$AH&&e!==v&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ot(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&&H(this._$AH)?this._$AA.nextSibling.data=e:this.T(S.createTextNode(e)),this._$AH=e}$(e){var t;let{values:s,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=$.createElement(i.h,this.options)),i);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===r)this._$AH.p(s);else{let n=new G(r,this),c=n.v(this.options);n.p(s),this.T(c),this._$AH=n}}_$AC(e){let t=Se.get(e.strings);return t===void 0&&Se.set(e.strings,t=new $(e)),t}k(e){Ce(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,s,i=0;for(let r of e)i===t.length?t.push(s=new _(this.O(w()),this.O(w()),this,this.options)):s=t[i],s._$AI(r),i++;i<t.length&&(this._$AR(s&&s._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,t);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}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,s,i,r){this.type=1,this._$AH=u,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=u}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,s,i){let r=this.strings,n=!1;if(r===void 0)e=T(this,e,t,0),n=!H(e)||e!==this._$AH&&e!==v,n&&(this._$AH=e);else{let c=e,l,a;for(e=r[0],l=0;l<r.length-1;l++)a=T(this,c[s+l],t,l),a===v&&(a=this._$AH[l]),n||(n=!H(a)||a!==this._$AH[l]),a===u?e=u:e!==u&&(e+=(a??"")+r[l+1]),this._$AH[l]=a}n&&!i&&this.j(e)}j(e){e===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Z=class extends L{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===u?void 0:e}},rt=b?b.emptyScript:"",X=class extends L{constructor(){super(...arguments),this.type=4}j(e){e&&e!==u?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}},Y=class extends L{constructor(e,t,s,i,r){super(e,t,s,i,r),this.type=5}_$AI(e,t=this){var s;if((e=(s=T(this,e,t,0))!==null&&s!==void 0?s:u)===v)return;let i=this._$AH,r=e===u&&i!==u||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==u&&(i===u||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,s;typeof this._$AH=="function"?this._$AH.call((s=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&s!==void 0?s:this.element,e):this._$AH.handleEvent(e)}},J=class{constructor(e,t,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){T(this,e)}};var Te=D.litHtmlPolyfillSupport;Te?.($,_),((K=D.litHtmlVersions)!==null&&K!==void 0?K:D.litHtmlVersions=[]).push("2.4.0");var Oe=(o,e,t)=>{var s,i;let r=(s=t?.renderBefore)!==null&&s!==void 0?s:e,n=r._$litPart$;if(n===void 0){let c=(i=t?.renderBefore)!==null&&i!==void 0?i:null;r._$litPart$=n=new _(e.insertBefore(w(),c),c,void 0,t??{})}return n._$AI(o),n};var Q,ee;var y=class extends f{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let s=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=s.firstChild),s}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Oe(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 v}};y.finalized=!0,y._$litElement$=!0,(Q=globalThis.litElementHydrateSupport)===null||Q===void 0||Q.call(globalThis,{LitElement:y});var ze=globalThis.litElementPolyfillSupport;ze?.({LitElement:y});((ee=globalThis.litElementVersions)!==null&&ee!==void 0?ee:globalThis.litElementVersions=[]).push("3.2.2");var ke=o=>e=>typeof e=="function"?((t,s)=>(customElements.define(t,s),s))(o,e):((t,s)=>{let{kind:i,elements:r}=s;return{kind:i,elements:r,finisher(n){customElements.define(t,n)}}})(o,e);var te,as=((te=window.HTMLSlotElement)===null||te===void 0?void 0:te.prototype.assignedElements)!=null?(o,e)=>o.assignedElements(e):(o,e)=>o.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);var M=class extends y{};M=pe([ke("outline-element")],M);var nt={xs:"480px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1440px",xxxl:"2160px"},Ue=new Map(Object.entries(nt).map(([o,e])=>[o,parseInt(e.slice(0,-2))]).sort(([,o],[,e])=>o-e)),se=class{constructor(e){this.containerSizes=[];this.handleResize=()=>{var s,i;let e=this.containerSizes,t=(i=(s=this.host.parentElement)==null?void 0:s.clientWidth)!=null?i:0;this.containerSizes=Array.from(Ue).filter(([,r])=>t>=r).map(([r])=>r),this.containerSizes.length!==e.length&&(Array.from(Ue).forEach(([r])=>{this.containerSizes.includes(r)&&this.host.setAttribute(`container-size-${r}`,"true"),this.containerSizes.includes(r)===!1&&this.host.removeAttribute(`container-size-${r}`)}),this.host.requestUpdate())};this.host=e,this.host.addController(this),this.handleResize()}hostConnected(){this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(document.querySelector("body"))}hostDisconnected(){this.resizeObserver.disconnect()}};var oe=class{constructor(e){this.isHoverableDevice=!1;this.handleResize=()=>{let e=this.isHoverableDevice;this.isHoverableDevice=window.matchMedia("(any-hover: hover) and (any-pointer: fine)").matches,this.isHoverableDevice!==e&&this.host.requestUpdate()};this.host=e,this.host.addController(this),this.handleResize()}hostConnected(){this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(document.querySelector("body"))}hostDisconnected(){this.resizeObserver.disconnect()}};var ie=class{constructor(e,t){this._lastMouseDownTimestamp=0;this.host=e,this.host.addController(this),this._getLink=t,this.isLinked=this.isLinked.bind(this)}hostConnected(){this.isLinked()&&(this._handleClicks(),this._handleHover(),this._handleFocus())}isLinked(){return this.host.href!==void 0&&this.host.href.length>0}_handleClicks(){this.host.addEventListener("mousedown",()=>{this._lastMouseDownTimestamp=Date.now()}),this.host.addEventListener("mouseup",e=>{var t,s;e.composedPath()[0]!==this._getLink()&&this._isClickNotDrag()&&(e.stopPropagation(),(t=this._getLink())==null||t.dispatchEvent(new Event("mousedown")),(s=this._getLink())==null||s.dispatchEvent(new Event("mouseup")))}),this.host.addEventListener("click",e=>{var t;e.composedPath()[0]!==this._getLink()&&this._isClickNotDrag()&&(e.stopPropagation(),(t=this._getLink())==null||t.click())})}_isClickNotDrag(){return Date.now()-this._lastMouseDownTimestamp<200}_handleHover(){let e=this.host.querySelectorAll("labcoat-button");this.host.addEventListener("mouseover",()=>{e.forEach(t=>{t.classList.add("state--hover")})}),this.host.addEventListener("mouseout",()=>{e.forEach(t=>{t.classList.remove("state--hover")})})}_handleFocus(){let e=this.host.querySelectorAll("labcoat-button");this.host.addEventListener("focus",()=>{e.forEach(t=>{t.classList.add("state--focus")})}),this.host.addEventListener("blur",()=>{e.forEach(t=>{t.classList.remove("state--focus")})})}};var lt={xs:"480px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1440px",xxxl:"2160px"},re=class{constructor(e,t="md"){this.isMobile=!1;this.handleResize=()=>{let e=this.formatScreenSize(lt[this.mobileBreakpoint]);window.innerWidth<e?this.isMobile=!0:this.isMobile=!1,this.host.requestUpdate()};this.formatScreenSize=e=>parseInt(e.slice(0,-2));this.mobileBreakpoint=t,(this.host=e).addController(this),this.handleResize()}hostConnected(){window.addEventListener("resize",this.handleResize)}hostDisconnected(){window.removeEventListener("resize",this.handleResize)}};var at={xs:"480px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1440px",xxxl:"2160px"},Pe=new Map(Object.entries(at).map(([o,e])=>[o,parseInt(e.slice(0,-2))]).sort(([,o],[,e])=>o-e)),ne=class{constructor(e){this.isMobile=!1;this.screenSize="xxs";this.handleResize=()=>{let e=[["isMobile",this.isMobile],["screenSize",this.screenSize]];this.isMobile=window.innerWidth<=Pe.get("sm"),this.screenSize=Array.from(Pe).reduce((t,[s,i])=>window.innerWidth>=i?s:t,"xxs"),e.map(([t,s])=>this[t]!==s).reduce((t,s)=>t||s)&&this.host.requestUpdate()};(this.host=e).addController(this),this.handleResize()}hostConnected(){this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(document.querySelector("body"))}hostDisconnected(){this.resizeObserver.disconnect()}};var Ne={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ie=o=>(...e)=>({_$litDirective$:o,values:e}),q=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,s){this._$Ct=e,this._$AM=t,this._$Ci=s}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var De=Ie(class extends q{constructor(o){var e;if(super(o),o.type!==Ne.ATTRIBUTE||o.name!=="class"||((e=o.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(o){return" "+Object.keys(o).filter(e=>o[e]).join(" ")+" "}update(o,[e]){var t,s;if(this.nt===void 0){this.nt=new Set,o.strings!==void 0&&(this.st=new Set(o.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(let r in e)e[r]&&!(!((t=this.st)===null||t===void 0)&&t.has(r))&&this.nt.add(r);return this.render(e)}let i=o.element.classList;this.nt.forEach(r=>{r in e||(i.remove(r),this.nt.delete(r))});for(let r in e){let n=!!e[r];n===this.nt.has(r)||((s=this.st)===null||s===void 0?void 0:s.has(r))||(n?(i.add(r),this.nt.add(r)):(i.remove(r),this.nt.delete(r)))}return v}});var qe=o=>o??u;var je=Symbol.for(""),ct=o=>{if(o?.r===je)return o?._$litStatic$},Ve=o=>({_$litStatic$:o,r:je});var Be=new Map,We=o=>(e,...t)=>{let s=t.length,i,r,n=[],c=[],l,a=0,p=!1;for(;a<s;){for(l=e[a];a<s&&(r=t[a],(i=ct(r))!==void 0);)l+=i+e[++a],p=!0;c.push(r),n.push(l),a++}if(a===s&&n.push(e[s]),p){let h=n.join("$$lit$$");(e=Be.get(h))===void 0&&(n.raw=n,Be.set(h,e=n)),t=c}return o(e,...t)},B=We(Re),Ws=We(Me);var le=class{constructor(e){this._mutationObserver=new MutationObserver(this._handleMutation.bind(this));this.host=e,e.addController(this)}hostConnected(){}_handleMutation(){this._mutationObserver.disconnect(),this.host.requestUpdate()}getSlottedNodes(e=null){let t=e===""||e===null,s=[];return t?s=Array.from(this.host.childNodes).filter(i=>this.isDefaultSlotText(i)||this.isDefaultSlotElement(i)):s=Array.from(this.host.querySelectorAll(`[slot=${e}]`)),s.length?s:!1}exist(e=null){return Boolean(this.getSlottedNodes(e))}isDefaultSlotText(e){return e.nodeType===e.TEXT_NODE&&e.textContent.trim()!==""}isDefaultSlotElement(e){return e.nodeType===e.ELEMENT_NODE&&e.getAttribute("slot")===null}addAnnotations(e,t){var n;let s=t.cloneNode(!0),i="slotsController cloned this "+(e===""?"default-slot":`named-slot '${e}'`)+" into the shadow DOM";if(Array.from(this.host.childNodes).some(c=>c.nodeValue===i)||t.before(document.createComment(i)),e!=="")return s.setAttribute("cloned-slot-type","named-slot"),s.setAttribute("cloned-slot-name",e),s.removeAttribute("slot"),s;if(this.isDefaultSlotElement(t))return s.setAttribute("cloned-slot-type","default-slot--element"),s.setAttribute("cloned-slot-name","default"),s.removeAttribute("slot"),s;{let c=document.createElement("cloned-slot");return(n=s.parentNode)==null||n.insertBefore(c,s),c.appendChild(s),c.setAttribute("cloned-slot-type","default-slot--text"),c.setAttribute("cloned-slot-name","default"),c}}dispatchEventsToLightDom(e,t){e.forEach(s=>{t.addEventListener(s,i=>{if(i.target){let r=this.getElementPathInShadowDom(i),n=this.getElementPathInLightDom(r);n&&n.dispatchEvent(new Event(s)),setTimeout(()=>{let c=this.getElementPathInLightDom(r,!0);c&&c.focus()},0)}})})}renderInShadow(e="",t=[],s=!0){let i=this.getSlottedNodes(e);if(i){let r=i.map(n=>{let c=n,l;return s?l=this.addAnnotations(e,c):l=c.cloneNode(!0),this.dispatchEventsToLightDom(t,l),l});return this._mutationObserver.observe(this.host,{subtree:!0,childList:!0,attributes:!0,characterData:!0}),r}return null}getElementPathInShadowDom(e){let t=e.composedPath(),s=[],i=!1;for(let n=0;!i&&n<t.length;n++){let c=t[n];if(c.nodeName==="#document-fragment")i=!0;else{let l=this.getSelectorForSingleElement(c);l&&s.push(l)}}return s.reverse()}getSelectorForSingleElement(e){if(!e.parentElement)return null;let t=Array.from(e.classList).join("."),s=`${e.localName}${t!==""?"."+t:""}`,r=Array.from(e.parentElement.querySelectorAll(s)).indexOf(e);return{name:s,index:r}}getElementPathInLightDom(e,t=!1){let s=t?this.host.shadowRoot:this.host;if(!s)return null;for(let i=0;i<e.length;i++)s=s.querySelectorAll(e[i].name)[e[i].index];return s}printExtraAttributes(e){return Ve(e.map(t=>`${t.name}=${t.value}`).join(" "))}conditionalSlot(e,t=!0,s=null,i=[]){let r=e===""||e===null,n={"default-slot":r,[`${e}`]:!r,[`${s}`]:s!=null?s:!1};return this.exist(e)?B` <div
class="${qe(De(n))}"
${this.printExtraAttributes(i)}
>
${e?X`${this.renderInShadow(t)}`:X`<slot name=${t}></slot> `}
</div>`:null}};function pe(i){Object.defineProperty(i,"__esModule",{value:!0,configurable:!0})}function xt(i,t,e,s){Object.defineProperty(i,t,{get:e,set:s,enumerable:!0,configurable:!0})}var de={};pe(de);xt(de,"default",()=>Y);var Y=class extends Error{constructor(t,e,s,n,r){super(t+":"+s+":"+n+": "+e),this.reason=e,this.filename=t,this.line=s,this.column=n,this.source=r}},me={};pe(me);xt(me,"default",()=>J);var J=class{constructor(t,e,s){this.start=t,this.end=e,this.source=s}},Je={};xt(Je,"CssTypes",()=>f);var f;(function(i){i.stylesheet="stylesheet",i.rule="rule",i.declaration="declaration",i.comment="comment",i.container="container",i.charset="charset",i.document="document",i.customMedia="custom-media",i.fontFace="font-face",i.host="host",i.import="import",i.keyframes="keyframes",i.keyframe="keyframe",i.layer="layer",i.media="media",i.namespace="namespace",i.page="page",i.supports="supports"})(f||(f={}));var ue=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Qe=(i,t)=>{t=t||{};let e=1,s=1;function n(c){let l=c.match(/\n/g);l&&(e+=l.length);let m=c.lastIndexOf(`
`);s=~m?c.length-m:s+c.length}function r(){let c={line:e,column:s};return function(l){return l.position=new J(c,{line:e,column:s},t?.source||""),E(),l}}let o=[];function a(c){let l=new Y(t?.source||"",c,e,s,i);if(t?.silent)o.push(l);else throw l}function u(){let c=d();return{type:f.stylesheet,stylesheet:{source:t?.source,rules:c,parsingErrors:o}}}function h(){return p(/^{\s*/)}function g(){return p(/^}/)}function d(){let c,l=[];for(E(),y(l);i.length&&i.charAt(0)!=="}"&&(c=Ne()||Pe());)c&&(l.push(c),y(l));return l}function p(c){let l=c.exec(i);if(!l)return;let m=l[0];return n(m),i=i.slice(m.length),l}function E(){p(/^\s*/)}function y(c){let l;for(c=c||[];l=H();)l&&c.push(l);return c}function H(){let c=r();if(i.charAt(0)!=="/"||i.charAt(1)!=="*")return;let l=p(/^\/\*[^]*?\*\//);return l?c({type:f.comment,comment:l[0].slice(2,-2)}):a("End of comment missing")}function St(){let c=p(/^([^{]+)/);if(!c)return;let l=_(c[0]).replace(/\/\*[^]*?\*\//gm,"");return l.indexOf(",")===-1?[l]:l.replace(/("|')(?:\\\1|.)*?\1|\(.*?\)/g,m=>m.replace(/,/g,"\u200C")).split(",").map(m=>_(m.replace(/\u200C/g,",")))}function Q(){let c=r(),l=p(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!l)return;let m=_(l[0]);if(!p(/^:\s*/))return a("property missing ':'");let v=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),x=c({type:f.declaration,property:m.replace(ue,""),value:v?_(v[0]).replace(ue,""):""});return p(/^[;\s]*/),x}function Tt(){let c=[];if(!h())return a("missing '{'");y(c);let l;for(;l=Q();)l&&(c.push(l),y(c));return g()?c:a("missing '}'")}function xe(){let c,l=[],m=r();for(;c=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)l.push(c[1]),p(/^,\s*/);if(!!l.length)return m({type:f.keyframe,values:l,declarations:Tt()||[]})}function Ae(){let c=r(),l=p(/^@([-\w]+)?keyframes\s*/);if(!l)return;let m=l[1],v=p(/^([-\w]+)\s*/);if(!v)return a("@keyframes missing name");let x=v[1];if(!h())return a("@keyframes missing '{'");let Lt,q=y();for(;Lt=xe();)q.push(Lt),q=q.concat(y());return g()?c({type:f.keyframes,name:x,vendor:m,keyframes:q}):a("@keyframes missing '}'")}function be(){let c=r(),l=p(/^@supports *([^{]+)/);if(!l)return;let m=_(l[1]);if(!h())return a("@supports missing '{'");let v=y().concat(d());return g()?c({type:f.supports,supports:m,rules:v}):a("@supports missing '}'")}function Se(){let c=r();if(!p(/^@host\s*/))return;if(!h())return a("@host missing '{'");let m=y().concat(d());return g()?c({type:f.host,rules:m}):a("@host missing '}'")}function Te(){let c=r(),l=p(/^@container *([^{]+)/);if(!l)return;let m=_(l[1]);if(!h())return a("@container missing '{'");let v=y().concat(d());return g()?c({type:f.container,container:m,rules:v}):a("@container missing '}'")}function Le(){let c=r(),l=p(/^@layer *([^{;@]+)/);if(!l)return;let m=_(l[1]);if(!h())return p(/^[;\s]*/),c({type:f.layer,layer:m});let v=y().concat(d());return g()?c({type:f.layer,layer:m,rules:v}):a("@layer missing '}'")}function we(){let c=r(),l=p(/^@media *([^{]+)/);if(!l)return;let m=_(l[1]);if(!h())return a("@media missing '{'");let v=y().concat(d());return g()?c({type:f.media,media:m,rules:v}):a("@media missing '}'")}function Ce(){let c=r(),l=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(!!l)return c({type:f.customMedia,name:_(l[1]),media:_(l[2])})}function Re(){let c=r();if(!p(/^@page */))return;let m=St()||[];if(!h())return a("@page missing '{'");let v=y(),x;for(;x=Q();)v.push(x),v=v.concat(y());return g()?c({type:f.page,selectors:m,declarations:v}):a("@page missing '}'")}function He(){let c=r(),l=p(/^@([-\w]+)?document *([^{]+)/);if(!l)return;let m=_(l[1]),v=_(l[2]);if(!h())return a("@document missing '{'");let x=y().concat(d());return g()?c({type:f.document,document:v,vendor:m,rules:x}):a("@document missing '}'")}function Me(){let c=r();if(!p(/^@font-face\s*/))return;if(!h())return a("@font-face missing '{'");let m=y(),v;for(;v=Q();)m.push(v),m=m.concat(y());return g()?c({type:f.fontFace,declarations:m}):a("@font-face missing '}'")}let Oe=tt("import"),ke=tt("charset"),ze=tt("namespace");function tt(c){let l=new RegExp("^@"+c+`\\s*((:?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+);`);return function(){let m=r(),v=p(l);if(!v)return;let x={type:c};return x[c]=v[1].trim(),m(x)}}function Ne(){if(i[0]==="@")return Ae()||we()||Ce()||be()||Oe()||ke()||ze()||He()||Re()||Se()||Me()||Te()||Le()}function Pe(){let c=r(),l=St();return l?(y(),c({type:f.rule,selectors:l,declarations:Tt()||[]})):a("selector missing")}return Et(u())};function _(i){return i?i.trim():""}function Et(i,t){let e=i&&typeof i.type=="string",s=e?i:t;for(let n in i){let r=i[n];Array.isArray(r)?r.forEach(o=>{Et(o,s)}):r&&typeof r=="object"&&Et(r,s)}return e&&Object.defineProperty(i,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),i}var ts=Qe,_t=class{constructor(t){this.level=0,this.indentation=" ",this.compress=!1,typeof t?.indent=="string"&&(this.indentation=t?.indent),t?.compress&&(this.compress=!0)}emit(t,e){return t}indent(t){return this.level=this.level||1,t?(this.level+=t,""):Array(this.level).join(this.indentation)}visit(t){switch(t.type){case f.stylesheet:return this.stylesheet(t);case f.rule:return this.rule(t);case f.declaration:return this.declaration(t);case f.comment:return this.comment(t);case f.container:return this.container(t);case f.charset:return this.charset(t);case f.document:return this.document(t);case f.customMedia:return this.customMedia(t);case f.fontFace:return this.fontFace(t);case f.host:return this.host(t);case f.import:return this.import(t);case f.keyframes:return this.keyframes(t);case f.keyframe:return this.keyframe(t);case f.layer:return this.layer(t);case f.media:return this.media(t);case f.namespace:return this.namespace(t);case f.page:return this.page(t);case f.supports:return this.supports(t)}}mapVisit(t,e){let s="";e=e||"";for(let n=0,r=t.length;n<r;n++)s+=this.visit(t[n]),e&&n<r-1&&(s+=this.emit(e));return s}compile(t){return this.compress?t.stylesheet.rules.map(this.visit,this).join(""):this.stylesheet(t)}stylesheet(t){return this.mapVisit(t.stylesheet.rules,`
`)}comment(t){return this.compress?this.emit("",t.position):this.emit(this.indent()+"/*"+t.comment+"*/",t.position)}container(t){return this.compress?this.emit("@container "+t.container,t.position)+this.emit("{")+this.mapVisit(t.rules)+this.emit("}"):this.emit(this.indent()+"@container "+t.container,t.position)+this.emit(` {
`+this.indent(1))+this.mapVisit(t.rules,`
`)+this.emit(`
`+this.indent(-1)+this.indent()+"}")}layer(t){return this.compress?this.emit("@layer "+t.layer,t.position)+(t.rules?this.emit("{")+this.mapVisit(t.rules)+this.emit("}"):";"):this.emit(this.indent()+"@layer "+t.layer,t.position)+(t.rules?this.emit(` {
`+this.indent(1))+this.mapVisit(t.rules,`
`)+this.emit(`
`+this.indent(-1)+this.indent()+"}"):";")}import(t){return this.emit("@import "+t.import+";",t.position)}media(t){return this.compress?this.emit("@media "+t.media,t.position)+this.emit("{")+this.mapVisit(t.rules)+this.emit("}"):this.emit(this.indent()+"@media "+t.media,t.position)+this.emit(` {
`+this.indent(1))+this.mapVisit(t.rules,`
`)+this.emit(`
`+this.indent(-1)+this.indent()+"}")}document(t){let e="@"+(t.vendor||"")+"document "+t.document;return this.compress?this.emit(e,t.position)+this.emit("{")+this.mapVisit(t.rules)+this.emit("}"):this.emit(e,t.position)+this.emit(` {
`+this.indent(1))+this.mapVisit(t.rules,`
`)+this.emit(this.indent(-1)+`
}`)}charset(t){return this.emit("@charset "+t.charset+";",t.position)}namespace(t){return this.emit("@namespace "+t.namespace+";",t.position)}supports(t){return this.compress?this.emit("@supports "+t.supports,t.position)+this.emit("{")+this.mapVisit(t.rules)+this.emit("}"):this.emit(this.indent()+"@supports "+t.supports,t.position)+this.emit(` {
`+this.indent(1))+this.mapVisit(t.rules,`
`)+this.emit(`
`+this.indent(-1)+this.indent()+"}")}keyframes(t){return this.compress?this.emit("@"+(t.vendor||"")+"keyframes "+t.name,t.position)+this.emit("{")+this.mapVisit(t.keyframes)+this.emit("}"):this.emit("@"+(t.vendor||"")+"keyframes "+t.name,t.position)+this.emit(` {
`+this.indent(1))+this.mapVisit(t.keyframes,`
`)+this.emit(this.indent(-1)+"}")}keyframe(t){let e=t.declarations;return this.compress?this.emit(t.values.join(","),t.position)+this.emit("{")+this.mapVisit(e)+this.emit("}"):this.emit(this.indent())+this.emit(t.values.join(", "),t.position)+this.emit(` {
`+this.indent(1))+this.mapVisit(e,`
`)+this.emit(this.indent(-1)+`
`+this.indent()+`}
`)}page(t){if(this.compress){let s=t.selectors.length?t.selectors.join(", "):"";return this.emit("@page "+s,t.position)+this.emit("{")+this.mapVisit(t.declarations)+this.emit("}")}let e=t.selectors.length?t.selectors.join(", ")+" ":"";return this.emit("@page "+e,t.position)+this.emit(`{
`)+this.emit(this.indent(1))+this.mapVisit(t.declarations,`
`)+this.emit(this.indent(-1))+this.emit(`
}`)}fontFace(t){return this.compress?this.emit("@font-face",t.position)+this.emit("{")+this.mapVisit(t.declarations)+this.emit("}"):this.emit("@font-face ",t.position)+this.emit(`{
`)+this.emit(this.indent(1))+this.mapVisit(t.declarations,`
`)+this.emit(this.indent(-1))+this.emit(`
}`)}host(t){return this.compress?this.emit("@host",t.position)+this.emit("{")+this.mapVisit(t.rules)+this.emit("}"):this.emit("@host",t.position)+this.emit(` {
`+this.indent(1))+this.mapVisit(t.rules,`
`)+this.emit(this.indent(-1)+`
}`)}customMedia(t){return this.emit("@custom-media "+t.name+" "+t.media+";",t.position)}rule(t){let e=t.declarations;if(!e.length)return"";if(this.compress)return this.emit(t.selectors.join(","),t.position)+this.emit("{")+this.mapVisit(e)+this.emit("}");let s=this.indent();return this.emit(t.selectors.map(n=>s+n).join(`,
`),t.position)+this.emit(` {
`)+this.emit(this.indent(1))+this.mapVisit(e,`
`)+this.emit(this.indent(-1))+this.emit(`
`+this.indent()+"}")}declaration(t){return this.compress?this.emit(t.property+":"+t.value,t.position)+this.emit(";"):this.emit(this.indent())+this.emit(t.property+": "+t.value,t.position)+this.emit(";")}},es=_t,ss=(i,t)=>new es(t||{}).compile(i),fe=ts,ve=ss;var ns=(i,t)=>i.startsWith(t)||i.includes(":root")?i:i.includes(":host(")?i.replace(/:host\((.+?)\)/,t+"$1"):i.includes(":host")?i.replace(":host",t):i.includes("::slotted(")?i.replace(/::slotted\((.+?)\)/,t+" $1"):t+" "+i,ge=(i,t)=>{var e;if("selectors"in i&&i.selectors.length>0)for(let s=0;s<i.selectors.length;s++)i.selectors[s]=ns(i.selectors[s],t);else"rules"in i&&((e=i.rules)==null||e.forEach(s=>{ge(s,t)}))},rs=(i,t)=>{let e=fe(i);return e&&e.stylesheet&&e.stylesheet.rules.length>0&&e.stylesheet.rules.forEach(function(s){ge(s,t)}),ve(e,{compress:!0})},At=class{constructor(t,e,s=""){this.ruleIndex=0;this.host=t,this.componentName=t.tagName.toLowerCase(),this.cssStyles=e,this.scopeId=s,t.addController(this)}hostConnected(){let t=`'${this.componentName}' using light DOM styles injected into <head>`;this.host.before(document.createComment(t)),document.getElementById(this.componentName)||(this.ruleIndex=0,this._addLightDomGroup(this.cssStyles))}_addLightDomStyle(t){let e=this.ruleIndex!==0?this.componentName+"-"+this.ruleIndex:this.componentName;if(!document.getElementById(e)){let s=document.createElement("style");s.id=e;let n=`${t}`;this.scopeId!==""&&(n=rs(n,this.scopeId)),s.innerHTML=n,document.head.prepend(s);let r=`styles injected into DOM by '${this.componentName}'`;s.before(document.createComment(r))}this.ruleIndex++}_addLightDomGroup(t,e=0){if(t instanceof Array)for(let s=t.length-1;s>=0;s--){let n=t[s];n instanceof Array?this._addLightDomGroup(n,e+1):n instanceof L&&this._addLightDomStyle(n)}else t instanceof L&&this._addLightDomStyle(t)}};function os(i,t,e){return new Promise(s=>{if((e==null?void 0:e.duration)===1/0)throw new Error("Promise-based animations must be finite.");let n=i.animate(t,Ht(M({},e),{duration:ls()?0:e.duration}));n.addEventListener("cancel",s,{once:!0}),n.addEventListener("finish",s,{once:!0})})}function ls(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function as(i,t,e){let s=new CustomEvent(t,M({bubbles:!0,cancelable:!1,composed:!0,detail:{}},e));return i.dispatchEvent(s),s}function cs(i,t){return new Promise(e=>{function s(n){n.target===i&&(i.removeEventListener(t,s),e())}i.addEventListener(t,s)})}function hs(i,t){let e=M({waitUntilFirstUpdate:!1},t);return(s,n)=>{let{update:r}=s;if(i in s){let o=i;s.update=function(a){if(a.has(o)){let u=a.get(o),h=this[o];u!==h&&(!e.waitUntilFirstUpdate||this.hasUpdated)&&this[n](u,h)}r.call(this,a)}}}}function bt(i,t){return{top:Math.round(i.getBoundingClientRect().top-t.getBoundingClientRect().top),left:Math.round(i.getBoundingClientRect().left-t.getBoundingClientRect().left)}}function us(i,t,e="vertical",s="smooth"){let n=bt(i,t),r=n.top+t.scrollTop,o=n.left+t.scrollLeft,a=t.scrollLeft,u=t.scrollLeft+t.offsetWidth,h=t.scrollTop,g=t.scrollTop+t.offsetHeight;(e==="horizontal"||e==="both")&&(o<a?t.scrollTo({left:o,behavior:s}):o+i.clientWidth>u&&t.scrollTo({left:o-t.offsetWidth+i.clientWidth,behavior:s})),(e==="vertical"||e==="both")&&(r<h?t.scrollTo({top:r,behavior:s}):r+i.clientHeight>g&&t.scrollTo({top:r-t.offsetHeight+i.clientHeight,behavior:s}))}var ye=["small","medium","large","none"],$e=["top","middle","bottom"],Ee=["left","center","right","none"],_e=["vertical","horizontal"];function ps(i,t,e){return(i||"")+(t!==void 0?` ${t}`:"")+(e!==void 0?` ${e}`:"")}var ds={defaultSlot:{table:{category:"Slots",defaultValue:{summary:"NULL"}},name:"Default Slot",description:"Renders anything that is passed into the inner HTML of the given element."}},ms={orientation:{name:"Orientation",control:{type:"radio",options:_e}}},fs={name:"Number of Columns to Span",control:{type:"range",min:1,max:12,step:1}},vs={name:"Number of Rows to Span",control:{type:"range",min:1,max:6,step:1}},gs={name:"Gap Size",control:{type:"select",options:["large","medium","small","none"]}},ys={name:"Vertical Alignment",control:{type:"select",options:$e}},$s={name:"Horizontal Alignment",control:{type:"select",options:Ee}},Es={name:"Size",control:{type:"select",options:ye}},_s={name:"Image URL",description:"The image URL to use for this demo.",control:{type:"text"}},xs={table:{disable:!0}},As={defaultSlot:{table:{category:"Slots",defaultValue:{summary:"NULL"}},name:"Map Marker Slots",description:"Renders all Map Marker and User Marker custome elements passed into the inner Map html."}},bs=i=>{let[t,e]=i.split("rem");return e==="px"||e===void 0?i:`${parseFloat(t)*16}px`};var pn={sets:["outline","primary","secondary","tertiary","neutral"]},dn={libraries:{bootstrap:!0,boxicons:!0,fontawesome:!0,heroicons:!0,iconoir:!0,ionicons:!0,jam:!0,lucide:!0,material:!0,remix:!0,unicons:!0},defaults:{library:"bootstrap",size:"16px",icon:"chevron-right"}};})();
${t?B`${this.renderInShadow(e)}`:B`<slot name=${e}></slot> `}
</div>`:null}};function ht(o,e,t){return new Promise(s=>{if((t==null?void 0:t.duration)===1/0)throw new Error("Promise-based animations must be finite.");let i=o.animate(e,ue(A({},t),{duration:dt()?0:t.duration}));i.addEventListener("cancel",s,{once:!0}),i.addEventListener("finish",s,{once:!0})})}function dt(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function ut(o,e,t){let s=new CustomEvent(e,A({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return o.dispatchEvent(s),s}function pt(o,e){return new Promise(t=>{function s(i){i.target===o&&(o.removeEventListener(e,s),t())}o.addEventListener(e,s)})}function mt(o,e){let t=A({waitUntilFirstUpdate:!1},e);return(s,i)=>{let{update:r}=s;if(o in s){let n=o;s.update=function(c){if(c.has(n)){let l=c.get(n),a=this[n];l!==a&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[i](l,a)}r.call(this,c)}}}}function ae(o,e){return{top:Math.round(o.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(o.getBoundingClientRect().left-e.getBoundingClientRect().left)}}function ft(o,e,t="vertical",s="smooth"){let i=ae(o,e),r=i.top+e.scrollTop,n=i.left+e.scrollLeft,c=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,a=e.scrollTop,p=e.scrollTop+e.offsetHeight;(t==="horizontal"||t==="both")&&(n<c?e.scrollTo({left:n,behavior:s}):n+o.clientWidth>l&&e.scrollTo({left:n-e.offsetWidth+o.clientWidth,behavior:s})),(t==="vertical"||t==="both")&&(r<a?e.scrollTo({top:r,behavior:s}):r+o.clientHeight>p&&e.scrollTo({top:r-e.offsetHeight+o.clientHeight,behavior:s}))}var Fe=["small","medium","large","none"],Ke=["top","middle","bottom"],Ge=["left","center","right","none"],Ze=["vertical","horizontal"];function vt(o,e,t){return(o||"")+(e!==void 0?` ${e}`:"")+(t!==void 0?` ${t}`:"")}var gt={defaultSlot:{table:{category:"Slots",defaultValue:{summary:"NULL"}},name:"Default Slot",description:"Renders anything that is passed into the inner HTML of the given element."}},yt={orientation:{name:"Orientation",control:{type:"radio",options:Ze}}},Et={name:"Number of Columns to Span",control:{type:"range",min:1,max:12,step:1}},$t={name:"Number of Rows to Span",control:{type:"range",min:1,max:6,step:1}},_t={name:"Gap Size",control:{type:"select",options:["large","medium","small","none"]}},At={name:"Vertical Alignment",control:{type:"select",options:Ke}},xt={name:"Horizontal Alignment",control:{type:"select",options:Ge}},bt={name:"Size",control:{type:"select",options:Fe}},St={name:"Image URL",description:"The image URL to use for this demo.",control:{type:"text"}},Tt={table:{disable:!0}},Lt={defaultSlot:{table:{category:"Slots",defaultValue:{summary:"NULL"}},name:"Map Marker Slots",description:"Renders all Map Marker and User Marker custome elements passed into the inner Map html."}},Ct=o=>{let[e,t]=o.split("rem");return t==="px"||t===void 0?o:`${parseFloat(e)*16}px`};var uo={sets:["outline","primary","secondary","tertiary","neutral"]},po={libraries:{bootstrap:!0,boxicons:!0,fontawesome:!0,heroicons:!0,iconoir:!0,ionicons:!0,jam:!0,lucide:!0,material:!0,remix:!0,unicons:!0},defaults:{library:"bootstrap",size:"16px",icon:"chevron-right"}};})();
/**

@@ -55,0 +12,0 @@ * @license

@@ -9,3 +9,2 @@ export { OutlineElement } from './src/outline-element/outline-element';

export { SlotsController } from './src/controllers/slots-controller';
export { LightDomStyles } from './src/controllers/light-dom-styles';
export { animateTo } from './src/internal/animate';

@@ -12,0 +11,0 @@ export { emit, waitForEvent } from './src/internal/event';

2

package.json
{
"name": "@phase2/outline-core",
"version": "0.2.3",
"version": "0.2.4",
"description": "Core functionality that is shared across all Outline Web Components",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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