nve-designsystem 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index-6oen7Ixs.js → index-IhwG20yj.js} +105 -105
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/src/nve-button.ts +18 -18
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2019 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const pi=globalThis,as=pi.ShadowRoot&&(pi.ShadyCSS===void 0||pi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ns=Symbol(),ys=new WeakMap;let Zs=class{constructor(e,i,s){if(this._$cssResult$=!0,s!==ns)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(as&&e===void 0){const s=i!==void 0&&i.length===1;s&&(e=ys.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&ys.set(i,e))}return e}toString(){return this.cssText}};const
|
|
9
|
+
*/const pi=globalThis,as=pi.ShadowRoot&&(pi.ShadyCSS===void 0||pi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ns=Symbol(),ys=new WeakMap;let Zs=class{constructor(e,i,s){if(this._$cssResult$=!0,s!==ns)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(as&&e===void 0){const s=i!==void 0&&i.length===1;s&&(e=ys.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&ys.set(i,e))}return e}toString(){return this.cssText}};const Vo=t=>new Zs(typeof t=="string"?t:t+"",void 0,ns),T=(t,...e)=>{const i=t.length===1?t[0]:e.reduce((s,o,a)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[a+1],t[0]);return new Zs(i,t,ns)},Bo=(t,e)=>{if(as)t.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(const i of e){const s=document.createElement("style"),o=pi.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=i.cssText,t.appendChild(s)}},_s=as?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(const s of e.cssRules)i+=s.cssText;return Vo(i)})(t):t;/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const{is:
|
|
13
|
+
*/const{is:Uo,defineProperty:No,getOwnPropertyDescriptor:Ho,getOwnPropertyNames:qo,getOwnPropertySymbols:jo,getPrototypeOf:Ko}=Object,te=globalThis,ws=te.trustedTypes,Wo=ws?ws.emptyScript:"",Li=te.reactiveElementPolyfillSupport,Re=(t,e)=>t,ke={toAttribute(t,e){switch(e){case Boolean:t=t?Wo:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch{i=null}}return i}},ls=(t,e)=>!Uo(t,e),xs={attribute:!0,type:String,converter:ke,reflect:!1,hasChanged:ls};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),te.litPropertyMetadata??(te.litPropertyMetadata=new WeakMap);class ye extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=xs){if(i.state&&(i.attribute=!1),this._$Ei(),this.elementProperties.set(e,i),!i.noAccessor){const s=Symbol(),o=this.getPropertyDescriptor(e,s,i);o!==void 0&&No(this.prototype,e,o)}}static getPropertyDescriptor(e,i,s){const{get:o,set:a}=Ho(this.prototype,e)??{get(){return this[i]},set(n){this[i]=n}};return{get(){return o==null?void 0:o.call(this)},set(n){const d=o==null?void 0:o.call(this);a.call(this,n),this.requestUpdate(e,d,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??xs}static _$Ei(){if(this.hasOwnProperty(Re("elementProperties")))return;const e=Ko(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Re("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Re("properties"))){const i=this.properties,s=[...qo(i),...jo(i)];for(const o of s)this.createProperty(o,i[o])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[s,o]of i)this.elementProperties.set(s,o)}this._$Eh=new Map;for(const[i,s]of this.elementProperties){const o=this._$Eu(i,s);o!==void 0&&this._$Eh.set(o,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const s=new Set(e.flat(1/0).reverse());for(const o of s)i.unshift(_s(o))}else e!==void 0&&i.push(_s(e));return i}static _$Eu(e,i){const s=i.attribute;return s===!1?void 0:typeof s=="string"?s:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$Eg=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$ES(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(i=>i(this))}addController(e){var i;(this._$E_??(this._$E_=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var i;(i=this._$E_)==null||i.delete(e)}_$ES(){const e=new Map,i=this.constructor.elementProperties;for(const s of i.keys())this.hasOwnProperty(s)&&(e.set(s,this[s]),delete this[s]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Bo(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$E_)==null||e.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$E_)==null||e.forEach(i=>{var s;return(s=i.hostDisconnected)==null?void 0:s.call(i)})}attributeChangedCallback(e,i,s){this._$AK(e,s)}_$EO(e,i){var a;const s=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,s);if(o!==void 0&&s.reflect===!0){const n=(((a=s.converter)==null?void 0:a.toAttribute)!==void 0?s.converter:ke).toAttribute(i,s.type);this._$Em=e,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(e,i){var a;const s=this.constructor,o=s._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const n=s.getPropertyOptions(o),d=typeof n.converter=="function"?{fromAttribute:n.converter}:((a=n.converter)==null?void 0:a.fromAttribute)!==void 0?n.converter:ke;this._$Em=o,this[o]=d.fromAttribute(i,n.type),this._$Em=null}}requestUpdate(e,i,s,o=!1,a){if(e!==void 0){if(s??(s=this.constructor.getPropertyOptions(e)),!(s.hasChanged??ls)(o?a:this[e],i))return;this.C(e,i,s)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,i,s){this._$AL.has(e)||this._$AL.set(e,i),s.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,n]of this._$Ep)this[a]=n;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[a,n]of o)n.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.C(a,this[a],n)}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(s=this._$E_)==null||s.forEach(o=>{var a;return(a=o.hostUpdate)==null?void 0:a.call(o)}),this.update(i)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(i)}willUpdate(e){}_$AE(e){var i;(i=this._$E_)==null||i.forEach(s=>{var o;return(o=s.hostUpdated)==null?void 0:o.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(i=>this._$EO(i,this[i]))),this._$ET()}updated(e){}firstUpdated(e){}}ye.elementStyles=[],ye.shadowRootOptions={mode:"open"},ye[Re("elementProperties")]=new Map,ye[Re("finalized")]=new Map,Li==null||Li({ReactiveElement:ye}),(te.reactiveElementVersions??(te.reactiveElementVersions=[])).push("2.0.2");/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/const
|
|
17
|
+
*/const Xo={attribute:!0,type:String,converter:ke,reflect:!1,hasChanged:ls},Yo=(t=Xo,e,i)=>{const{kind:s,metadata:o}=i;let a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(i.name,t),s==="accessor"){const{name:n}=i;return{set(d){const c=e.get.call(this);e.set.call(this,d),this.requestUpdate(n,c,t)},init(d){return d!==void 0&&this.C(n,void 0,t),d}}}if(s==="setter"){const{name:n}=i;return function(d){const c=this[n];e.call(this,d),this.requestUpdate(n,c,t)}}throw Error("Unsupported decorator location: "+s)};function l(t){return(e,i)=>typeof i=="object"?Yo(t,e,i):((s,o,a)=>{const n=o.hasOwnProperty(a);return o.constructor.createProperty(a,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(o,a):void 0})(t,e,i)}/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -26,25 +26,25 @@
|
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/const
|
|
29
|
+
*/const ji=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,i),i);/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
-
*/function k(t,e){return(i,s,o)=>{const a=n=>{var d;return((d=n.renderRoot)==null?void 0:d.querySelector(t))??null};if(e){const{get:n,set:d}=typeof s=="object"?i:o??(()=>{const c=Symbol();return{get(){return this[c]},set(h){this[c]=h}}})();return
|
|
33
|
+
*/function k(t,e){return(i,s,o)=>{const a=n=>{var d;return((d=n.renderRoot)==null?void 0:d.querySelector(t))??null};if(e){const{get:n,set:d}=typeof s=="object"?i:o??(()=>{const c=Symbol();return{get(){return this[c]},set(h){this[c]=h}}})();return ji(i,s,{get(){let c=n.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&d.call(this,c)),c}})}return ji(i,s,{get(){return a(this)}})}}/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/function
|
|
37
|
+
*/function Go(t){return(e,i)=>ji(e,i,{async get(){var s;return await this.updateComplete,((s=this.renderRoot)==null?void 0:s.querySelector(t))??null}})}var to=Object.defineProperty,Qo=Object.defineProperties,Zo=Object.getOwnPropertyDescriptor,Jo=Object.getOwnPropertyDescriptors,ks=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable,Ii=(t,e)=>{if(e=Symbol[t])return e;throw Error("Symbol."+t+" is not defined")},$s=(t,e,i)=>e in t?to(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Yt=(t,e)=>{for(var i in e||(e={}))tr.call(e,i)&&$s(t,i,e[i]);if(ks)for(var i of ks(e))er.call(e,i)&&$s(t,i,e[i]);return t},Ye=(t,e)=>Qo(t,Jo(e)),r=(t,e,i,s)=>{for(var o=s>1?void 0:s?Zo(e,i):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(o=(s?n(e,i,o):n(o))||o);return s&&o&&to(e,i,o),o},ir=function(t,e){this[0]=t,this[1]=e},sr=t=>{var e=t[Ii("asyncIterator")],i=!1,s,o={};return e==null?(e=t[Ii("iterator")](),s=a=>o[a]=n=>e[a](n)):(e=e.call(t),s=a=>o[a]=n=>{if(i){if(i=!1,a==="throw")throw n;return n}return i=!0,{done:!1,value:new ir(new Promise(d=>{var c=e[a](n);if(!(c instanceof Object))throw TypeError("Object expected");d(c)}),1)}}),o[Ii("iterator")]=()=>o,s("next"),"throw"in e?s("throw"):o.throw=a=>{throw a},"return"in e&&s("return"),o},Le=new WeakMap,Ie=new WeakMap,Oi=new WeakSet,ni=new WeakMap,Gt=class{constructor(t,e){this.handleFormData=i=>{const s=this.options.disabled(this.host),o=this.options.name(this.host),a=this.options.value(this.host),n=this.host.tagName.toLowerCase()==="sl-button";!s&&!n&&typeof o=="string"&&o.length>0&&typeof a<"u"&&(Array.isArray(a)?a.forEach(d=>{i.formData.append(o,d.toString())}):i.formData.append(o,a.toString()))},this.handleFormSubmit=i=>{var s;const o=this.options.disabled(this.host),a=this.options.reportValidity;this.form&&!this.form.noValidate&&((s=Le.get(this.form))==null||s.forEach(n=>{this.setUserInteracted(n,!0)})),this.form&&!this.form.noValidate&&!o&&!a(this.host)&&(i.preventDefault(),i.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),ni.set(this.host,[])},this.handleInteraction=i=>{const s=ni.get(this.host);s.includes(i.type)||s.push(i.type),s.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){const i=this.form.querySelectorAll("*");for(const s of i)if(typeof s.reportValidity=="function"&&!s.reportValidity())return!1}return!0},(this.host=t).addController(this),this.options=Yt({form:i=>{if(i.hasAttribute("form")&&i.getAttribute("form")!==""){const s=i.getRootNode(),o=i.getAttribute("form");if(o)return s.getElementById(o)}return i.closest("form")},name:i=>i.name,value:i=>i.value,defaultValue:i=>i.defaultValue,disabled:i=>{var s;return(s=i.disabled)!=null?s:!1},reportValidity:i=>typeof i.reportValidity=="function"?i.reportValidity():!0,setValue:(i,s)=>i.value=s,assumeInteractionOn:["sl-input"]},e)}hostConnected(){const t=this.options.form(this.host);t&&this.attachForm(t),ni.set(this.host,[]),this.options.assumeInteractionOn.forEach(e=>{this.host.addEventListener(e,this.handleInteraction)})}hostDisconnected(){this.detachForm(),ni.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){const t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(t){t?(this.form=t,Le.has(this.form)?Le.get(this.form).add(this.host):Le.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),Ie.has(this.form)||(Ie.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var t;this.form&&((t=Le.get(this.form))==null||t.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),Ie.has(this.form)&&(this.form.reportValidity=Ie.get(this.form),Ie.delete(this.form))),this.form=void 0}setUserInteracted(t,e){e?Oi.add(t):Oi.delete(t),t.requestUpdate()}doAction(t,e){if(this.form){const i=document.createElement("button");i.type=t,i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.clipPath="inset(50%)",i.style.overflow="hidden",i.style.whiteSpace="nowrap",e&&(i.name=e.name,i.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(s=>{e.hasAttribute(s)&&i.setAttribute(s,e.getAttribute(s))})),this.form.append(i),i.click(),i.remove()}}getForm(){var t;return(t=this.form)!=null?t:null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){const e=this.host,i=!!Oi.has(e),s=!!e.required;e.toggleAttribute("data-required",s),e.toggleAttribute("data-optional",!s),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&i),e.toggleAttribute("data-user-valid",t&&i)}updateValidity(){const t=this.host;this.setValidity(t.validity.valid)}emitInvalidEvent(t){const e=new CustomEvent("sl-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault(),this.host.dispatchEvent(e)||t==null||t.preventDefault()}},$i=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),or=Object.freeze(Ye(Yt({},$i),{valid:!1,valueMissing:!0})),rr=Object.freeze(Ye(Yt({},$i),{valid:!1,customError:!0}));/**
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright 2017 Google LLC
|
|
40
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
|
-
*/const Fe=globalThis,bi=Fe.trustedTypes,Cs=bi?bi.createPolicy("lit-html",{createHTML:t=>t}):void 0,eo="$lit$",Zt=`lit$${(Math.random()+"").slice(9)}$`,io="?"+Zt,
|
|
42
|
-
\f\r]`,Oe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ss=/-->/g,zs=/>/g,ne=RegExp(`>|${
|
|
43
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),As=/'/g,Es=/"/g,oo=/^(?:script|style|textarea|title)$/i,
|
|
41
|
+
*/const Fe=globalThis,bi=Fe.trustedTypes,Cs=bi?bi.createPolicy("lit-html",{createHTML:t=>t}):void 0,eo="$lit$",Zt=`lit$${(Math.random()+"").slice(9)}$`,io="?"+Zt,ar=`<${io}>`,he=document,je=()=>he.createComment(""),Ke=t=>t===null||typeof t!="object"&&typeof t!="function",so=Array.isArray,nr=t=>so(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Di=`[
|
|
42
|
+
\f\r]`,Oe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ss=/-->/g,zs=/>/g,ne=RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
|
|
43
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),As=/'/g,Es=/"/g,oo=/^(?:script|style|textarea|title)$/i,lr=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),y=lr(1),wt=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Ts=new WeakMap,ce=he.createTreeWalker(he,129);function ro(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cs!==void 0?Cs.createHTML(e):e}const cr=(t,e)=>{const i=t.length-1,s=[];let o,a=e===2?"<svg>":"",n=Oe;for(let d=0;d<i;d++){const c=t[d];let h,b,u=-1,p=0;for(;p<c.length&&(n.lastIndex=p,b=n.exec(c),b!==null);)p=n.lastIndex,n===Oe?b[1]==="!--"?n=Ss:b[1]!==void 0?n=zs:b[2]!==void 0?(oo.test(b[2])&&(o=RegExp("</"+b[2],"g")),n=ne):b[3]!==void 0&&(n=ne):n===ne?b[0]===">"?(n=o??Oe,u=-1):b[1]===void 0?u=-2:(u=n.lastIndex-b[2].length,h=b[1],n=b[3]===void 0?ne:b[3]==='"'?Es:As):n===Es||n===As?n=ne:n===Ss||n===zs?n=Oe:(n=ne,o=void 0);const f=n===ne&&t[d+1].startsWith("/>")?" ":"";a+=n===Oe?c+ar:u>=0?(s.push(h),c.slice(0,u)+eo+c.slice(u)+Zt+f):c+Zt+(u===-2?d:f)}return[ro(t,a+(t[i]||"<?>")+(e===2?"</svg>":"")),s]};class We{constructor({strings:e,_$litType$:i},s){let o;this.parts=[];let a=0,n=0;const d=e.length-1,c=this.parts,[h,b]=cr(e,i);if(this.el=We.createElement(h,s),ce.currentNode=this.el.content,i===2){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=ce.nextNode())!==null&&c.length<d;){if(o.nodeType===1){if(o.hasAttributes())for(const u of o.getAttributeNames())if(u.endsWith(eo)){const p=b[n++],f=o.getAttribute(u).split(Zt),m=/([.?@])?(.*)/.exec(p);c.push({type:1,index:a,name:m[2],strings:f,ctor:m[1]==="."?hr:m[1]==="?"?ur:m[1]==="@"?pr:Ci}),o.removeAttribute(u)}else u.startsWith(Zt)&&(c.push({type:6,index:a}),o.removeAttribute(u));if(oo.test(o.tagName)){const u=o.textContent.split(Zt),p=u.length-1;if(p>0){o.textContent=bi?bi.emptyScript:"";for(let f=0;f<p;f++)o.append(u[f],je()),ce.nextNode(),c.push({type:2,index:++a});o.append(u[p],je())}}}else if(o.nodeType===8)if(o.data===io)c.push({type:2,index:a});else{let u=-1;for(;(u=o.data.indexOf(Zt,u+1))!==-1;)c.push({type:7,index:a}),u+=Zt.length-1}a++}}static createElement(e,i){const s=he.createElement("template");return s.innerHTML=e,s}}function $e(t,e,i=t,s){var n,d;if(e===wt)return e;let o=s!==void 0?(n=i._$Co)==null?void 0:n[s]:i._$Cl;const a=Ke(e)?void 0:e._$litDirective$;return(o==null?void 0:o.constructor)!==a&&((d=o==null?void 0:o._$AO)==null||d.call(o,!1),a===void 0?o=void 0:(o=new a(t),o._$AT(t,i,s)),s!==void 0?(i._$Co??(i._$Co=[]))[s]=o:i._$Cl=o),o!==void 0&&(e=$e(t,o._$AS(t,e.values),o,s)),e}class dr{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:i},parts:s}=this._$AD,o=((e==null?void 0:e.creationScope)??he).importNode(i,!0);ce.currentNode=o;let a=ce.nextNode(),n=0,d=0,c=s[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new Ge(a,a.nextSibling,this,e):c.type===1?h=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(h=new fr(a,this,e)),this._$AV.push(h),c=s[++d]}n!==(c==null?void 0:c.index)&&(a=ce.nextNode(),n++)}return ce.currentNode=he,o}p(e){let i=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(e,s,i),i+=s.strings.length-2):s._$AI(e[i])),i++}}class Ge{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,i,s,o){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=s,this.options=o,this._$Cv=(o==null?void 0:o.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=$e(this,e,i),Ke(e)?e===W||e==null||e===""?(this._$AH!==W&&this._$AR(),this._$AH=W):e!==this._$AH&&e!==wt&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):nr(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==W&&Ke(this._$AH)?this._$AA.nextSibling.data=e:this.$(he.createTextNode(e)),this._$AH=e}g(e){var a;const{values:i,_$litType$:s}=e,o=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=We.createElement(ro(s.h,s.h[0]),this.options)),s);if(((a=this._$AH)==null?void 0:a._$AD)===o)this._$AH.p(i);else{const n=new dr(o,this),d=n.u(this.options);n.p(i),this.$(d),this._$AH=n}}_$AC(e){let i=Ts.get(e.strings);return i===void 0&&Ts.set(e.strings,i=new We(e)),i}T(e){so(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,o=0;for(const a of e)o===i.length?i.push(s=new Ge(this.k(je()),this.k(je()),this,this.options)):s=i[o],s._$AI(a),o++;o<i.length&&(this._$AR(s&&s._$AB.nextSibling,o),i.length=o)}_$AR(e=this._$AA.nextSibling,i){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,i);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var i;this._$AM===void 0&&(this._$Cv=e,(i=this._$AP)==null||i.call(this,e))}}class Ci{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,s,o,a){this.type=1,this._$AH=W,this._$AN=void 0,this.element=e,this.name=i,this._$AM=o,this.options=a,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=W}_$AI(e,i=this,s,o){const a=this.strings;let n=!1;if(a===void 0)e=$e(this,e,i,0),n=!Ke(e)||e!==this._$AH&&e!==wt,n&&(this._$AH=e);else{const d=e;let c,h;for(e=a[0],c=0;c<a.length-1;c++)h=$e(this,d[s+c],i,c),h===wt&&(h=this._$AH[c]),n||(n=!Ke(h)||h!==this._$AH[c]),h===W?e=W:e!==W&&(e+=(h??"")+a[c+1]),this._$AH[c]=h}n&&!o&&this.O(e)}O(e){e===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class hr extends Ci{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===W?void 0:e}}let ur=class extends Ci{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==W)}};class pr extends Ci{constructor(e,i,s,o,a){super(e,i,s,o,a),this.type=5}_$AI(e,i=this){if((e=$e(this,e,i,0)??W)===wt)return;const s=this._$AH,o=e===W&&s!==W||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,a=e!==W&&(s===W||o);o&&this.element.removeEventListener(this.name,this,s),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i;typeof this._$AH=="function"?this._$AH.call(((i=this.options)==null?void 0:i.host)??this.element,e):this._$AH.handleEvent(e)}}class fr{constructor(e,i,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){$e(this,e)}}const Pi=Fe.litHtmlPolyfillSupport;Pi==null||Pi(We,Ge),(Fe.litHtmlVersions??(Fe.litHtmlVersions=[])).push("3.1.0");const ao=(t,e,i)=>{const s=(i==null?void 0:i.renderBefore)??e;let o=s._$litPart$;if(o===void 0){const a=(i==null?void 0:i.renderBefore)??null;s._$litPart$=o=new Ge(e.insertBefore(je(),a),a,void 0,i??{})}return o._$AI(t),o};/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/let we=class extends ye{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var i;const e=super.createRenderRoot();return(i=this.renderOptions).renderBefore??(i.renderBefore=e.firstChild),e}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ao(i,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return wt}};var Qs;we._$litElement$=!0,we.finalized=!0,(Qs=globalThis.litElementHydrateSupport)==null||Qs.call(globalThis,{LitElement:we});const
|
|
47
|
+
*/let we=class extends ye{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var i;const e=super.createRenderRoot();return(i=this.renderOptions).renderBefore??(i.renderBefore=e.firstChild),e}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ao(i,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return wt}};var Qs;we._$litElement$=!0,we.finalized=!0,(Qs=globalThis.litElementHydrateSupport)==null||Qs.call(globalThis,{LitElement:we});const Mi=globalThis.litElementPolyfillSupport;Mi==null||Mi({LitElement:we});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.2");var L=T`
|
|
48
48
|
:host {
|
|
49
49
|
box-sizing: border-box;
|
|
50
50
|
}
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
[hidden] {
|
|
59
59
|
display: none !important;
|
|
60
60
|
}
|
|
61
|
-
`,
|
|
61
|
+
`,mr=T`
|
|
62
62
|
${L}
|
|
63
63
|
|
|
64
64
|
:host {
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
outline: dashed 1px SelectedItem;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
`,
|
|
215
|
+
`,br=T`
|
|
216
216
|
${L}
|
|
217
217
|
|
|
218
218
|
:host {
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
content: var(--sl-input-required-content);
|
|
332
332
|
margin-inline-start: var(--sl-input-required-content-offset);
|
|
333
333
|
}
|
|
334
|
-
`,fe=(t="value")=>(e,i)=>{const s=e.constructor,o=s.prototype.attributeChangedCallback;s.prototype.attributeChangedCallback=function(a,n,d){var c;const h=s.getPropertyOptions(t),b=typeof h.attribute=="string"?h.attribute:t;if(a===b){const u=h.converter||ke,f=(typeof u=="function"?u:(c=u==null?void 0:u.fromAttribute)!=null?c:ke.fromAttribute)(d,h.type);this[t]!==f&&(this[i]=f)}o.call(this,a,n,d)}},
|
|
334
|
+
`,fe=(t="value")=>(e,i)=>{const s=e.constructor,o=s.prototype.attributeChangedCallback;s.prototype.attributeChangedCallback=function(a,n,d){var c;const h=s.getPropertyOptions(t),b=typeof h.attribute=="string"?h.attribute:t;if(a===b){const u=h.converter||ke,f=(typeof u=="function"?u:(c=u==null?void 0:u.fromAttribute)!=null?c:ke.fromAttribute)(d,h.type);this[t]!==f&&(this[i]=f)}o.call(this,a,n,d)}},gr=T`
|
|
335
335
|
${L}
|
|
336
336
|
|
|
337
337
|
:host {
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
height: 100%;
|
|
347
347
|
width: 100%;
|
|
348
348
|
}
|
|
349
|
-
`,
|
|
349
|
+
`,Ki="";function Ls(t){Ki=t}function vr(t=""){if(!Ki){const e=[...document.getElementsByTagName("script")],i=e.find(s=>s.hasAttribute("data-shoelace"));if(i)Ls(i.getAttribute("data-shoelace"));else{const s=e.find(a=>/shoelace(\.min)?\.js($|\?)/.test(a.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(a.src));let o="";s&&(o=s.getAttribute("src")),Ls(o.split("/").slice(0,-1).join("/"))}}return Ki.replace(/\/$/,"")+(t?`/${t.replace(/^\//,"")}`:"")}var yr={name:"default",resolver:t=>vr(`assets/icons/${t}.svg`)},_r=yr,Is={caret:`
|
|
350
350
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
351
351
|
<polyline points="6 9 12 15 18 9"></polyline>
|
|
352
352
|
</svg>
|
|
@@ -438,13 +438,13 @@
|
|
|
438
438
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
|
|
439
439
|
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>
|
|
440
440
|
</svg>
|
|
441
|
-
`},
|
|
441
|
+
`},wr={name:"system",resolver:t=>t in Is?`data:image/svg+xml,${encodeURIComponent(Is[t])}`:""},xr=wr,kr=[_r,xr],Wi=[];function $r(t){Wi.push(t)}function Cr(t){Wi=Wi.filter(e=>e!==t)}function Os(t){return kr.find(e=>e.name===t)}function x(t,e){const i=Yt({waitUntilFirstUpdate:!1},e);return(s,o)=>{const{update:a}=s,n=Array.isArray(t)?t:[t];s.update=function(d){n.forEach(c=>{const h=c;if(d.has(h)){const b=d.get(h),u=this[h];b!==u&&(!i.waitUntilFirstUpdate||this.hasUpdated)&&this[o](b,u)}}),a.call(this,d)}}}var z=class extends we{constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([t,e])=>{this.constructor.define(t,e)})}emit(t,e){const i=new CustomEvent(t,Yt({bubbles:!0,cancelable:!1,composed:!0,detail:{}},e));return this.dispatchEvent(i),i}static define(t,e=this,i={}){const s=customElements.get(t);if(!s){customElements.define(t,class extends e{},i);return}let o=" (unknown version)",a=o;"version"in e&&e.version&&(o=" v"+e.version),"version"in s&&s.version&&(a=" v"+s.version),!(o&&a&&o===a)&&console.warn(`Attempted to register <${t}>${o}, but <${t}>${a} has already been registered.`)}};z.version="2.11.2";z.dependencies={};r([l()],z.prototype,"dir",2);r([l()],z.prototype,"lang",2);/**
|
|
442
442
|
* @license
|
|
443
443
|
* Copyright 2020 Google LLC
|
|
444
444
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
445
|
-
*/const
|
|
445
|
+
*/const Sr=(t,e)=>e===void 0?(t==null?void 0:t._$litType$)!==void 0:(t==null?void 0:t._$litType$)===e,no=t=>t.strings===void 0,zr={},Ar=(t,e=zr)=>t._$AH=e;var De=Symbol(),li=Symbol(),Ri,Fi=new Map,K=class extends z{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default"}async resolveIcon(t,e){var i;let s;if(e!=null&&e.spriteSheet)return y`<svg part="svg">
|
|
446
446
|
<use part="use" href="${t}"></use>
|
|
447
|
-
</svg>`;try{if(s=await fetch(t,{mode:"cors"}),!s.ok)return s.status===410?De:li}catch{return li}try{const o=document.createElement("div");o.innerHTML=await s.text();const a=o.firstElementChild;if(((i=a==null?void 0:a.tagName)==null?void 0:i.toLowerCase())!=="svg")return De;
|
|
447
|
+
</svg>`;try{if(s=await fetch(t,{mode:"cors"}),!s.ok)return s.status===410?De:li}catch{return li}try{const o=document.createElement("div");o.innerHTML=await s.text();const a=o.firstElementChild;if(((i=a==null?void 0:a.tagName)==null?void 0:i.toLowerCase())!=="svg")return De;Ri||(Ri=new DOMParser);const d=Ri.parseFromString(a.outerHTML,"text/html").body.querySelector("svg");return d?(d.part.add("svg"),document.adoptNode(d)):De}catch{return De}}connectedCallback(){super.connectedCallback(),$r(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),Cr(this)}getIconSource(){const t=Os(this.library);return this.name&&t?{url:t.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var t;const{url:e,fromLibrary:i}=this.getIconSource(),s=i?Os(this.library):void 0;if(!e){this.svg=null;return}let o=Fi.get(e);if(o||(o=this.resolveIcon(e,s),Fi.set(e,o)),!this.initialRender)return;const a=await o;if(a===li&&Fi.delete(e),e===this.getIconSource().url){if(Sr(a)){this.svg=a;return}switch(a){case li:case De:this.svg=null,this.emit("sl-error");break;default:this.svg=a.cloneNode(!0),(t=s==null?void 0:s.mutator)==null||t.call(s,this.svg),this.emit("sl-load")}}}render(){return this.svg}};K.styles=gr;r([D()],K.prototype,"svg",2);r([l({reflect:!0})],K.prototype,"name",2);r([l()],K.prototype,"src",2);r([l()],K.prototype,"label",2);r([l({reflect:!0})],K.prototype,"library",2);r([x("label")],K.prototype,"handleLabelChange",1);r([x(["name","src","library"])],K.prototype,"setIcon",1);/**
|
|
448
448
|
* @license
|
|
449
449
|
* Copyright 2017 Google LLC
|
|
450
450
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
* @license
|
|
461
461
|
* Copyright 2020 Google LLC
|
|
462
462
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
463
|
-
*/const ue=Qe(class extends Ze{constructor(t){if(super(t),t.type!==Ft.PROPERTY&&t.type!==Ft.ATTRIBUTE&&t.type!==Ft.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!no(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===wt||e===W)return e;const i=t.element,s=t.name;if(t.type===Ft.PROPERTY){if(e===i[s])return wt}else if(t.type===Ft.BOOLEAN_ATTRIBUTE){if(!!e===i.hasAttribute(s))return wt}else if(t.type===Ft.ATTRIBUTE&&i.getAttribute(s)===e+"")return wt;return
|
|
463
|
+
*/const ue=Qe(class extends Ze{constructor(t){if(super(t),t.type!==Ft.PROPERTY&&t.type!==Ft.ATTRIBUTE&&t.type!==Ft.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!no(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===wt||e===W)return e;const i=t.element,s=t.name;if(t.type===Ft.PROPERTY){if(e===i[s])return wt}else if(t.type===Ft.BOOLEAN_ATTRIBUTE){if(!!e===i.hasAttribute(s))return wt}else if(t.type===Ft.ATTRIBUTE&&i.getAttribute(s)===e+"")return wt;return Ar(t),e}});var rt=class extends z{constructor(){super(...arguments),this.formControlController=new Gt(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e}),this.hasFocus=!1,this.title="",this.name="",this.size="medium",this.disabled=!1,this.checked=!1,this.indeterminate=!1,this.defaultChecked=!1,this.form="",this.required=!1}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.emit("sl-change")}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleInput(){this.emit("sl-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){return y`
|
|
464
464
|
<label
|
|
465
465
|
part="base"
|
|
466
466
|
class=${O({checkbox:!0,"checkbox--checked":this.checked,"checkbox--disabled":this.disabled,"checkbox--focused":this.hasFocus,"checkbox--indeterminate":this.indeterminate,"checkbox--small":this.size==="small","checkbox--medium":this.size==="medium","checkbox--large":this.size==="large"})}
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
<slot></slot>
|
|
505
505
|
</div>
|
|
506
506
|
</label>
|
|
507
|
-
`}};rt.styles=
|
|
507
|
+
`}};rt.styles=br;rt.dependencies={"sl-icon":K};r([k('input[type="checkbox"]')],rt.prototype,"input",2);r([D()],rt.prototype,"hasFocus",2);r([l()],rt.prototype,"title",2);r([l()],rt.prototype,"name",2);r([l()],rt.prototype,"value",2);r([l({reflect:!0})],rt.prototype,"size",2);r([l({type:Boolean,reflect:!0})],rt.prototype,"disabled",2);r([l({type:Boolean,reflect:!0})],rt.prototype,"checked",2);r([l({type:Boolean,reflect:!0})],rt.prototype,"indeterminate",2);r([fe("checked")],rt.prototype,"defaultChecked",2);r([l({reflect:!0})],rt.prototype,"form",2);r([l({type:Boolean,reflect:!0})],rt.prototype,"required",2);r([x("disabled",{waitUntilFirstUpdate:!0})],rt.prototype,"handleDisabledChange",1);r([x(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],rt.prototype,"handleStateChange",1);var Er=T`
|
|
508
508
|
${L}
|
|
509
509
|
|
|
510
510
|
:host {
|
|
@@ -562,16 +562,16 @@
|
|
|
562
562
|
stroke-dasharray: 0.01em, 2.75em;
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
`;const
|
|
565
|
+
`;const Xi=new Set,Tr=new MutationObserver(ho),_e=new Map;let lo=document.documentElement.dir||"ltr",co=document.documentElement.lang||navigator.language,le;Tr.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});function Lr(...t){t.map(e=>{const i=e.$code.toLowerCase();_e.has(i)?_e.set(i,Object.assign(Object.assign({},_e.get(i)),e)):_e.set(i,e),le||(le=e)}),ho()}function ho(){lo=document.documentElement.dir||"ltr",co=document.documentElement.lang||navigator.language,[...Xi.keys()].map(t=>{typeof t.requestUpdate=="function"&&t.requestUpdate()})}let Ir=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Xi.add(this.host)}hostDisconnected(){Xi.delete(this.host)}dir(){return`${this.host.dir||lo}`.toLowerCase()}lang(){return`${this.host.lang||co}`.toLowerCase()}getTranslationData(e){var i,s;const o=new Intl.Locale(e.replace(/_/g,"-")),a=o==null?void 0:o.language.toLowerCase(),n=(s=(i=o==null?void 0:o.region)===null||i===void 0?void 0:i.toLowerCase())!==null&&s!==void 0?s:"",d=_e.get(`${a}-${n}`),c=_e.get(a);return{locale:o,language:a,region:n,primary:d,secondary:c}}exists(e,i){var s;const{primary:o,secondary:a}=this.getTranslationData((s=i.lang)!==null&&s!==void 0?s:this.lang());return i=Object.assign({includeFallback:!1},i),!!(o&&o[e]||a&&a[e]||i.includeFallback&&le&&le[e])}term(e,...i){const{primary:s,secondary:o}=this.getTranslationData(this.lang());let a;if(s&&s[e])a=s[e];else if(o&&o[e])a=o[e];else if(le&&le[e])a=le[e];else return console.error(`No translation found for: ${String(e)}`),String(e);return typeof a=="function"?a(...i):a}date(e,i){return e=new Date(e),new Intl.DateTimeFormat(this.lang(),i).format(e)}number(e,i){return e=Number(e),isNaN(e)?"":new Intl.NumberFormat(this.lang(),i).format(e)}relativeTime(e,i,s){return new Intl.RelativeTimeFormat(this.lang(),s).format(e,i)}};var U=class extends Ir{},Je=class extends z{constructor(){super(...arguments),this.localize=new U(this)}render(){return y`
|
|
566
566
|
<svg part="base" class="spinner" role="progressbar" aria-label=${this.localize.term("loading")}>
|
|
567
567
|
<circle class="spinner__track"></circle>
|
|
568
568
|
<circle class="spinner__indicator"></circle>
|
|
569
569
|
</svg>
|
|
570
|
-
`}};Je.styles=
|
|
570
|
+
`}};Je.styles=Er;var uo=new Map,Or=new WeakMap;function Dr(t){return t??{keyframes:[],options:{duration:0}}}function Ds(t,e){return e.toLowerCase()==="rtl"?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function q(t,e){uo.set(t,Dr(e))}function X(t,e,i){const s=Or.get(t);if(s!=null&&s[e])return Ds(s[e],i.dir);const o=uo.get(e);return o?Ds(o,i.dir):{keyframes:[],options:{duration:0}}}function Z(t,e,i){return new Promise(s=>{if((i==null?void 0:i.duration)===1/0)throw new Error("Promise-based animations must be finite.");const o=t.animate(e,Ye(Yt({},i),{duration:cs()?0:i.duration}));o.addEventListener("cancel",s,{once:!0}),o.addEventListener("finish",s,{once:!0})})}function Ps(t){return t=t.toString().toLowerCase(),t.indexOf("ms")>-1?parseFloat(t):t.indexOf("s")>-1?parseFloat(t)*1e3:parseFloat(t)}function cs(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function et(t){return Promise.all(t.getAnimations().map(e=>new Promise(i=>{const s=requestAnimationFrame(i);e.addEventListener("cancel",()=>s,{once:!0}),e.addEventListener("finish",()=>s,{once:!0}),e.cancel()})))}function gi(t,e){return t.map(i=>Ye(Yt({},i),{height:i.height==="auto"?`${e}px`:i.height}))}/**
|
|
571
571
|
* @license
|
|
572
572
|
* Copyright 2021 Google LLC
|
|
573
573
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
574
|
-
*/function Ms(t,e,i){return t?e(t):i==null?void 0:i(t)}var J=class
|
|
574
|
+
*/function Ms(t,e,i){return t?e(t):i==null?void 0:i(t)}var J=class Yi extends z{constructor(){super(...arguments),this.localize=new U(this),this.indeterminate=!1,this.isLeaf=!1,this.loading=!1,this.selectable=!1,this.expanded=!1,this.selected=!1,this.disabled=!1,this.lazy=!1}static isTreeItem(e){return e instanceof Element&&e.getAttribute("role")==="treeitem"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","treeitem"),this.setAttribute("tabindex","-1"),this.isNestedItem()&&(this.slot="children")}firstUpdated(){this.childrenContainer.hidden=!this.expanded,this.childrenContainer.style.height=this.expanded?"auto":"0",this.isLeaf=!this.lazy&&this.getChildrenItems().length===0,this.handleExpandedChange()}async animateCollapse(){this.emit("sl-collapse"),await et(this.childrenContainer);const{keyframes:e,options:i}=X(this,"tree-item.collapse",{dir:this.localize.dir()});await Z(this.childrenContainer,gi(e,this.childrenContainer.scrollHeight),i),this.childrenContainer.hidden=!0,this.emit("sl-after-collapse")}isNestedItem(){const e=this.parentElement;return!!e&&Yi.isTreeItem(e)}handleChildrenSlotChange(){this.loading=!1,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0}willUpdate(e){e.has("selected")&&!e.has("indeterminate")&&(this.indeterminate=!1)}async animateExpand(){this.emit("sl-expand"),await et(this.childrenContainer),this.childrenContainer.hidden=!1;const{keyframes:e,options:i}=X(this,"tree-item.expand",{dir:this.localize.dir()});await Z(this.childrenContainer,gi(e,this.childrenContainer.scrollHeight),i),this.childrenContainer.style.height="auto",this.emit("sl-after-expand")}handleLoadingChange(){this.setAttribute("aria-busy",this.loading?"true":"false"),this.loading||this.animateExpand()}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleExpandedChange(){this.isLeaf?this.removeAttribute("aria-expanded"):this.setAttribute("aria-expanded",this.expanded?"true":"false")}handleExpandAnimation(){this.expanded?this.lazy?(this.loading=!0,this.emit("sl-lazy-load")):this.animateExpand():this.animateCollapse()}handleLazyChange(){this.emit("sl-lazy-change")}getChildrenItems({includeDisabled:e=!0}={}){return this.childrenSlot?[...this.childrenSlot.assignedElements({flatten:!0})].filter(i=>Yi.isTreeItem(i)&&(e||!i.disabled)):[]}render(){const e=this.localize.dir()==="rtl",i=!this.loading&&(!this.isLeaf||this.lazy);return y`
|
|
575
575
|
<div
|
|
576
576
|
part="base"
|
|
577
577
|
class="${O({"tree-item":!0,"tree-item--expanded":this.expanded,"tree-item--selected":this.selected,"tree-item--disabled":this.disabled,"tree-item--leaf":this.isLeaf,"tree-item--has-expand-button":i,"tree-item--rtl":this.localize.dir()==="rtl"})}"
|
|
@@ -629,7 +629,7 @@
|
|
|
629
629
|
<slot name="children" @slotchange="${this.handleChildrenSlotChange}"></slot>
|
|
630
630
|
</div>
|
|
631
631
|
</div>
|
|
632
|
-
`}};J.styles=
|
|
632
|
+
`}};J.styles=mr;J.dependencies={"sl-checkbox":rt,"sl-icon":K,"sl-spinner":Je};r([D()],J.prototype,"indeterminate",2);r([D()],J.prototype,"isLeaf",2);r([D()],J.prototype,"loading",2);r([D()],J.prototype,"selectable",2);r([l({type:Boolean,reflect:!0})],J.prototype,"expanded",2);r([l({type:Boolean,reflect:!0})],J.prototype,"selected",2);r([l({type:Boolean,reflect:!0})],J.prototype,"disabled",2);r([l({type:Boolean,reflect:!0})],J.prototype,"lazy",2);r([k("slot:not([name])")],J.prototype,"defaultSlot",2);r([k("slot[name=children]")],J.prototype,"childrenSlot",2);r([k(".tree-item__item")],J.prototype,"itemElement",2);r([k(".tree-item__children")],J.prototype,"childrenContainer",2);r([k(".tree-item__expand-button slot")],J.prototype,"expandButtonSlot",2);r([x("loading",{waitUntilFirstUpdate:!0})],J.prototype,"handleLoadingChange",1);r([x("disabled")],J.prototype,"handleDisabledChange",1);r([x("selected")],J.prototype,"handleSelectedChange",1);r([x("expanded",{waitUntilFirstUpdate:!0})],J.prototype,"handleExpandedChange",1);r([x("expanded",{waitUntilFirstUpdate:!0})],J.prototype,"handleExpandAnimation",1);r([x("lazy",{waitUntilFirstUpdate:!0})],J.prototype,"handleLazyChange",1);var Ve=J;q("tree-item.expand",{keyframes:[{height:"0",opacity:"0",overflow:"hidden"},{height:"auto",opacity:"1",overflow:"hidden"}],options:{duration:250,easing:"cubic-bezier(0.4, 0.0, 0.2, 1)"}});q("tree-item.collapse",{keyframes:[{height:"auto",opacity:"1",overflow:"hidden"},{height:"0",opacity:"0",overflow:"hidden"}],options:{duration:200,easing:"cubic-bezier(0.4, 0.0, 0.2, 1)"}});Ve.define("sl-tree-item");var Pr=T`
|
|
633
633
|
${L}
|
|
634
634
|
|
|
635
635
|
:host(:not(:focus-within)) {
|
|
@@ -643,7 +643,7 @@
|
|
|
643
643
|
white-space: nowrap !important;
|
|
644
644
|
padding: 0 !important;
|
|
645
645
|
}
|
|
646
|
-
`,ds=class extends z{render(){return y` <slot></slot> `}};ds.styles=
|
|
646
|
+
`,ds=class extends z{render(){return y` <slot></slot> `}};ds.styles=Pr;ds.define("sl-visually-hidden");var Mr=T`
|
|
647
647
|
${L}
|
|
648
648
|
|
|
649
649
|
:host {
|
|
@@ -696,7 +696,7 @@
|
|
|
696
696
|
user-select: none;
|
|
697
697
|
-webkit-user-select: none;
|
|
698
698
|
}
|
|
699
|
-
`,
|
|
699
|
+
`,Rr=T`
|
|
700
700
|
${L}
|
|
701
701
|
|
|
702
702
|
:host {
|
|
@@ -736,7 +736,7 @@
|
|
|
736
736
|
background: var(--arrow-color);
|
|
737
737
|
z-index: -1;
|
|
738
738
|
}
|
|
739
|
-
`;const ee=Math.min,_t=Math.max,vi=Math.round,ci=Math.floor,ie=t=>({x:t,y:t}),Vr={left:"right",right:"left",bottom:"top",top:"bottom"},Br={start:"end",end:"start"};function Qi(t,e,i){return _t(t,ee(e,i))}function Se(t,e){return typeof t=="function"?t(e):t}function se(t){return t.split("-")[0]}function ze(t){return t.split("-")[1]}function po(t){return t==="x"?"y":"x"}function hs(t){return t==="y"?"height":"width"}function ti(t){return["top","bottom"].includes(se(t))?"y":"x"}function us(t){return po(ti(t))}function Ur(t,e,i){i===void 0&&(i=!1);const s=ze(t),o=us(t),a=hs(o);let n=o==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(n=yi(n)),[n,yi(n)]}function Nr(t){const e=yi(t);return[Zi(t),e,Zi(e)]}function Zi(t){return t.replace(/start|end/g,e=>Br[e])}function Hr(t,e,i){const s=["left","right"],o=["right","left"],a=["top","bottom"],n=["bottom","top"];switch(t){case"top":case"bottom":return i?e?o:s:e?s:o;case"left":case"right":return e?a:n;default:return[]}}function qr(t,e,i,s){const o=ze(t);let a=Hr(se(t),i==="start",s);return o&&(a=a.map(n=>n+"-"+o),e&&(a=a.concat(a.map(Zi)))),a}function yi(t){return t.replace(/left|right|bottom|top/g,e=>Vr[e])}function jr(t){return{top:0,right:0,bottom:0,left:0,...t}}function fo(t){return typeof t!="number"?jr(t):{top:t,right:t,bottom:t,left:t}}function _i(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Rs(t,e,i){let{reference:s,floating:o}=t;const a=ti(e),n=us(e),d=hs(n),c=se(e),h=a==="y",b=s.x+s.width/2-o.width/2,u=s.y+s.height/2-o.height/2,p=s[d]/2-o[d]/2;let f;switch(c){case"top":f={x:b,y:s.y-o.height};break;case"bottom":f={x:b,y:s.y+s.height};break;case"right":f={x:s.x+s.width,y:u};break;case"left":f={x:s.x-o.width,y:u};break;default:f={x:s.x,y:s.y}}switch(ze(e)){case"start":f[n]-=p*(i&&h?-1:1);break;case"end":f[n]+=p*(i&&h?-1:1);break}return f}const Kr=async(t,e,i)=>{const{placement:s="bottom",strategy:o="absolute",middleware:a=[],platform:n}=i,d=a.filter(Boolean),c=await(n.isRTL==null?void 0:n.isRTL(e));let h=await n.getElementRects({reference:t,floating:e,strategy:o}),{x:b,y:u}=Rs(h,s,c),p=s,f={},m=0;for(let v=0;v<d.length;v++){const{name:C,fn:E}=d[v],{x:w,y:$,data:g,reset:_}=await E({x:b,y:u,initialPlacement:s,placement:p,strategy:o,middlewareData:f,rects:h,platform:n,elements:{reference:t,floating:e}});if(b=w??b,u=$??u,f={...f,[C]:{...f[C],...g}},_&&m<=50){m++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(h=_.rects===!0?await n.getElementRects({reference:t,floating:e,strategy:o}):_.rects),{x:b,y:u}=Rs(h,p,c)),v=-1;continue}}return{x:b,y:u,placement:p,strategy:o,middlewareData:f}};async function ps(t,e){var i;e===void 0&&(e={});const{x:s,y:o,platform:a,rects:n,elements:d,strategy:c}=t,{boundary:h="clippingAncestors",rootBoundary:b="viewport",elementContext:u="floating",altBoundary:p=!1,padding:f=0}=Se(e,t),m=fo(f),C=d[p?u==="floating"?"reference":"floating":u],E=_i(await a.getClippingRect({element:(i=await(a.isElement==null?void 0:a.isElement(C)))==null||i?C:C.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:h,rootBoundary:b,strategy:c})),w=u==="floating"?{...n.floating,x:s,y:o}:n.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),g=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},_=_i(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w,offsetParent:$,strategy:c}):w);return{top:(E.top-_.top+m.top)/g.y,bottom:(_.bottom-E.bottom+m.bottom)/g.y,left:(E.left-_.left+m.left)/g.x,right:(_.right-E.right+m.right)/g.x}}const Wr=t=>({name:"arrow",options:t,async fn(e){const{x:i,y:s,placement:o,rects:a,platform:n,elements:d,middlewareData:c}=e,{element:h,padding:b=0}=Se(t,e)||{};if(h==null)return{};const u=fo(b),p={x:i,y:s},f=us(o),m=hs(f),v=await n.getDimensions(h),C=f==="y",E=C?"top":"left",w=C?"bottom":"right",$=C?"clientHeight":"clientWidth",g=a.reference[m]+a.reference[f]-p[f]-a.floating[m],_=p[f]-a.reference[f],S=await(n.getOffsetParent==null?void 0:n.getOffsetParent(h));let R=S?S[$]:0;(!R||!await(n.isElement==null?void 0:n.isElement(S)))&&(R=d.floating[$]||a.floating[m]);const F=g/2-_/2,P=R/2-v[m]/2-1,I=ee(u[E],P),ht=ee(u[w],P),G=I,vt=R-v[m]-ht,ot=R/2-v[m]/2+F,ft=Qi(G,ot,vt),Lt=!c.arrow&&ze(o)!=null&&ot!=ft&&a.reference[m]/2-(ot<G?I:ht)-v[m]/2<0,Kt=Lt?ot<G?ot-G:ot-vt:0;return{[f]:p[f]+Kt,data:{[f]:ft,centerOffset:ot-ft-Kt,...Lt&&{alignmentOffset:Kt}},reset:Lt}}}),Xr=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var i,s;const{placement:o,middlewareData:a,rects:n,initialPlacement:d,platform:c,elements:h}=e,{mainAxis:b=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...C}=Se(t,e);if((i=a.arrow)!=null&&i.alignmentOffset)return{};const E=se(o),w=se(d)===d,$=await(c.isRTL==null?void 0:c.isRTL(h.floating)),g=p||(w||!v?[yi(d)]:Nr(d));!p&&m!=="none"&&g.push(...qr(d,v,m,$));const _=[d,...g],S=await ps(e,C),R=[];let F=((s=a.flip)==null?void 0:s.overflows)||[];if(b&&R.push(S[E]),u){const G=Ur(o,n,$);R.push(S[G[0]],S[G[1]])}if(F=[...F,{placement:o,overflows:R}],!R.every(G=>G<=0)){var P,I;const G=(((P=a.flip)==null?void 0:P.index)||0)+1,vt=_[G];if(vt)return{data:{index:G,overflows:F},reset:{placement:vt}};let ot=(I=F.filter(ft=>ft.overflows[0]<=0).sort((ft,Lt)=>ft.overflows[1]-Lt.overflows[1])[0])==null?void 0:I.placement;if(!ot)switch(f){case"bestFit":{var ht;const ft=(ht=F.map(Lt=>[Lt.placement,Lt.overflows.filter(Kt=>Kt>0).reduce((Kt,Vo)=>Kt+Vo,0)]).sort((Lt,Kt)=>Lt[1]-Kt[1])[0])==null?void 0:ht[0];ft&&(ot=ft);break}case"initialPlacement":ot=d;break}if(o!==ot)return{reset:{placement:ot}}}return{}}}};async function Yr(t,e){const{placement:i,platform:s,elements:o}=t,a=await(s.isRTL==null?void 0:s.isRTL(o.floating)),n=se(i),d=ze(i),c=ti(i)==="y",h=["left","top"].includes(n)?-1:1,b=a&&c?-1:1,u=Se(e,t);let{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return d&&typeof m=="number"&&(f=d==="end"?m*-1:m),c?{x:f*b,y:p*h}:{x:p*h,y:f*b}}const Gr=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:i,y:s}=e,o=await Yr(e,t);return{x:i+o.x,y:s+o.y,data:o}}}},Qr=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:s,placement:o}=e,{mainAxis:a=!0,crossAxis:n=!1,limiter:d={fn:C=>{let{x:E,y:w}=C;return{x:E,y:w}}},...c}=Se(t,e),h={x:i,y:s},b=await ps(e,c),u=ti(se(o)),p=po(u);let f=h[p],m=h[u];if(a){const C=p==="y"?"top":"left",E=p==="y"?"bottom":"right",w=f+b[C],$=f-b[E];f=Qi(w,f,$)}if(n){const C=u==="y"?"top":"left",E=u==="y"?"bottom":"right",w=m+b[C],$=m-b[E];m=Qi(w,m,$)}const v=d.fn({...e,[p]:f,[u]:m});return{...v,data:{x:v.x-i,y:v.y-s}}}}},Fs=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:i,rects:s,platform:o,elements:a}=e,{apply:n=()=>{},...d}=Se(t,e),c=await ps(e,d),h=se(i),b=ze(i),u=ti(i)==="y",{width:p,height:f}=s.floating;let m,v;h==="top"||h==="bottom"?(m=h,v=b===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=h,m=b==="end"?"top":"bottom");const C=f-c[m],E=p-c[v],w=!e.middlewareData.shift;let $=C,g=E;if(u){const S=p-c.left-c.right;g=b||w?ee(E,S):S}else{const S=f-c.top-c.bottom;$=b||w?ee(C,S):S}if(w&&!b){const S=_t(c.left,0),R=_t(c.right,0),F=_t(c.top,0),P=_t(c.bottom,0);u?g=p-2*(S!==0||R!==0?S+R:_t(c.left,c.right)):$=f-2*(F!==0||P!==0?F+P:_t(c.top,c.bottom))}await n({...e,availableWidth:g,availableHeight:$});const _=await o.getDimensions(a.floating);return p!==_.width||f!==_.height?{reset:{rects:!0}}:{}}}};function oe(t){return mo(t)?(t.nodeName||"").toLowerCase():"#document"}function xt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Qt(t){var e;return(e=(mo(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function mo(t){return t instanceof Node||t instanceof xt(t).Node}function Xt(t){return t instanceof Element||t instanceof xt(t).Element}function Vt(t){return t instanceof HTMLElement||t instanceof xt(t).HTMLElement}function Vs(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof xt(t).ShadowRoot}function ei(t){const{overflow:e,overflowX:i,overflowY:s,display:o}=At(t);return/auto|scroll|overlay|hidden|clip/.test(e+s+i)&&!["inline","contents"].includes(o)}function Zr(t){return["table","td","th"].includes(oe(t))}function fs(t){const e=ms(),i=At(t);return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(i.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(i.contain||"").includes(s))}function Jr(t){let e=Ce(t);for(;Vt(e)&&!zi(e);){if(fs(e))return e;e=Ce(e)}return null}function ms(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zi(t){return["html","body","#document"].includes(oe(t))}function At(t){return xt(t).getComputedStyle(t)}function Ai(t){return Xt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ce(t){if(oe(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Vs(t)&&t.host||Qt(t);return Vs(e)?e.host:e}function bo(t){const e=Ce(t);return zi(e)?t.ownerDocument?t.ownerDocument.body:t.body:Vt(e)&&ei(e)?e:bo(e)}function Xe(t,e,i){var s;e===void 0&&(e=[]),i===void 0&&(i=!0);const o=bo(t),a=o===((s=t.ownerDocument)==null?void 0:s.body),n=xt(o);return a?e.concat(n,n.visualViewport||[],ei(o)?o:[],n.frameElement&&i?Xe(n.frameElement):[]):e.concat(o,Xe(o,[],i))}function go(t){const e=At(t);let i=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const o=Vt(t),a=o?t.offsetWidth:i,n=o?t.offsetHeight:s,d=vi(i)!==a||vi(s)!==n;return d&&(i=a,s=n),{width:i,height:s,$:d}}function bs(t){return Xt(t)?t:t.contextElement}function xe(t){const e=bs(t);if(!Vt(e))return ie(1);const i=e.getBoundingClientRect(),{width:s,height:o,$:a}=go(e);let n=(a?vi(i.width):i.width)/s,d=(a?vi(i.height):i.height)/o;return(!n||!Number.isFinite(n))&&(n=1),(!d||!Number.isFinite(d))&&(d=1),{x:n,y:d}}const ta=ie(0);function vo(t){const e=xt(t);return!ms()||!e.visualViewport?ta:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ea(t,e,i){return e===void 0&&(e=!1),!i||e&&i!==xt(t)?!1:e}function pe(t,e,i,s){e===void 0&&(e=!1),i===void 0&&(i=!1);const o=t.getBoundingClientRect(),a=bs(t);let n=ie(1);e&&(s?Xt(s)&&(n=xe(s)):n=xe(t));const d=ea(a,i,s)?vo(a):ie(0);let c=(o.left+d.x)/n.x,h=(o.top+d.y)/n.y,b=o.width/n.x,u=o.height/n.y;if(a){const p=xt(a),f=s&&Xt(s)?xt(s):s;let m=p.frameElement;for(;m&&s&&f!==p;){const v=xe(m),C=m.getBoundingClientRect(),E=At(m),w=C.left+(m.clientLeft+parseFloat(E.paddingLeft))*v.x,$=C.top+(m.clientTop+parseFloat(E.paddingTop))*v.y;c*=v.x,h*=v.y,b*=v.x,u*=v.y,c+=w,h+=$,m=xt(m).frameElement}}return _i({width:b,height:u,x:c,y:h})}function ia(t){let{rect:e,offsetParent:i,strategy:s}=t;const o=Vt(i),a=Qt(i);if(i===a)return e;let n={scrollLeft:0,scrollTop:0},d=ie(1);const c=ie(0);if((o||!o&&s!=="fixed")&&((oe(i)!=="body"||ei(a))&&(n=Ai(i)),Vt(i))){const h=pe(i);d=xe(i),c.x=h.x+i.clientLeft,c.y=h.y+i.clientTop}return{width:e.width*d.x,height:e.height*d.y,x:e.x*d.x-n.scrollLeft*d.x+c.x,y:e.y*d.y-n.scrollTop*d.y+c.y}}function sa(t){return Array.from(t.getClientRects())}function yo(t){return pe(Qt(t)).left+Ai(t).scrollLeft}function oa(t){const e=Qt(t),i=Ai(t),s=t.ownerDocument.body,o=_t(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),a=_t(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let n=-i.scrollLeft+yo(t);const d=-i.scrollTop;return At(s).direction==="rtl"&&(n+=_t(e.clientWidth,s.clientWidth)-o),{width:o,height:a,x:n,y:d}}function ra(t,e){const i=xt(t),s=Qt(t),o=i.visualViewport;let a=s.clientWidth,n=s.clientHeight,d=0,c=0;if(o){a=o.width,n=o.height;const h=ms();(!h||h&&e==="fixed")&&(d=o.offsetLeft,c=o.offsetTop)}return{width:a,height:n,x:d,y:c}}function aa(t,e){const i=pe(t,!0,e==="fixed"),s=i.top+t.clientTop,o=i.left+t.clientLeft,a=Vt(t)?xe(t):ie(1),n=t.clientWidth*a.x,d=t.clientHeight*a.y,c=o*a.x,h=s*a.y;return{width:n,height:d,x:c,y:h}}function Bs(t,e,i){let s;if(e==="viewport")s=ra(t,i);else if(e==="document")s=oa(Qt(t));else if(Xt(e))s=aa(e,i);else{const o=vo(t);s={...e,x:e.x-o.x,y:e.y-o.y}}return _i(s)}function _o(t,e){const i=Ce(t);return i===e||!Xt(i)||zi(i)?!1:At(i).position==="fixed"||_o(i,e)}function na(t,e){const i=e.get(t);if(i)return i;let s=Xe(t,[],!1).filter(d=>Xt(d)&&oe(d)!=="body"),o=null;const a=At(t).position==="fixed";let n=a?Ce(t):t;for(;Xt(n)&&!zi(n);){const d=At(n),c=fs(n);!c&&d.position==="fixed"&&(o=null),(a?!c&&!o:!c&&d.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ei(n)&&!c&&_o(t,n))?s=s.filter(b=>b!==n):o=d,n=Ce(n)}return e.set(t,s),s}function la(t){let{element:e,boundary:i,rootBoundary:s,strategy:o}=t;const n=[...i==="clippingAncestors"?na(e,this._c):[].concat(i),s],d=n[0],c=n.reduce((h,b)=>{const u=Bs(e,b,o);return h.top=_t(u.top,h.top),h.right=ee(u.right,h.right),h.bottom=ee(u.bottom,h.bottom),h.left=_t(u.left,h.left),h},Bs(e,d,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ca(t){return go(t)}function da(t,e,i){const s=Vt(e),o=Qt(e),a=i==="fixed",n=pe(t,!0,a,e);let d={scrollLeft:0,scrollTop:0};const c=ie(0);if(s||!s&&!a)if((oe(e)!=="body"||ei(o))&&(d=Ai(e)),s){const h=pe(e,!0,a,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else o&&(c.x=yo(o));return{x:n.left+d.scrollLeft-c.x,y:n.top+d.scrollTop-c.y,width:n.width,height:n.height}}function Us(t,e){return!Vt(t)||At(t).position==="fixed"?null:e?e(t):t.offsetParent}function wo(t,e){const i=xt(t);if(!Vt(t))return i;let s=Us(t,e);for(;s&&Zr(s)&&At(s).position==="static";)s=Us(s,e);return s&&(oe(s)==="html"||oe(s)==="body"&&At(s).position==="static"&&!fs(s))?i:s||Jr(t)||i}const ha=async function(t){let{reference:e,floating:i,strategy:s}=t;const o=this.getOffsetParent||wo,a=this.getDimensions;return{reference:da(e,await o(i),s),floating:{x:0,y:0,...await a(i)}}};function ua(t){return At(t).direction==="rtl"}const fi={convertOffsetParentRelativeRectToViewportRelativeRect:ia,getDocumentElement:Qt,getClippingRect:la,getOffsetParent:wo,getElementRects:ha,getClientRects:sa,getDimensions:ca,getScale:xe,isElement:Xt,isRTL:ua};function pa(t,e){let i=null,s;const o=Qt(t);function a(){clearTimeout(s),i&&i.disconnect(),i=null}function n(d,c){d===void 0&&(d=!1),c===void 0&&(c=1),a();const{left:h,top:b,width:u,height:p}=t.getBoundingClientRect();if(d||e(),!u||!p)return;const f=ci(b),m=ci(o.clientWidth-(h+u)),v=ci(o.clientHeight-(b+p)),C=ci(h),w={rootMargin:-f+"px "+-m+"px "+-v+"px "+-C+"px",threshold:_t(0,ee(1,c))||1};let $=!0;function g(_){const S=_[0].intersectionRatio;if(S!==c){if(!$)return n();S?n(!1,S):s=setTimeout(()=>{n(!1,1e-7)},100)}$=!1}try{i=new IntersectionObserver(g,{...w,root:o.ownerDocument})}catch{i=new IntersectionObserver(g,w)}i.observe(t)}return n(!0),a}function fa(t,e,i,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,h=bs(t),b=o||a?[...h?Xe(h):[],...Xe(e)]:[];b.forEach(E=>{o&&E.addEventListener("scroll",i,{passive:!0}),a&&E.addEventListener("resize",i)});const u=h&&d?pa(h,i):null;let p=-1,f=null;n&&(f=new ResizeObserver(E=>{let[w]=E;w&&w.target===h&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{f&&f.observe(e)})),i()}),h&&!c&&f.observe(h),f.observe(e));let m,v=c?pe(t):null;c&&C();function C(){const E=pe(t);v&&(E.x!==v.x||E.y!==v.y||E.width!==v.width||E.height!==v.height)&&i(),v=E,m=requestAnimationFrame(C)}return i(),()=>{b.forEach(E=>{o&&E.removeEventListener("scroll",i),a&&E.removeEventListener("resize",i)}),u&&u(),f&&f.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const ma=(t,e,i)=>{const s=new Map,o={platform:fi,...i},a={...o.platform,_c:s};return Kr(t,e,{...o,platform:a})};function ba(t){return ga(t)}function Bi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function ga(t){for(let e=t;e;e=Bi(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Bi(t);e;e=Bi(e)){if(!(e instanceof Element))continue;const i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||i.filter!=="none"||e.tagName==="BODY"))return e}return null}function va(t){return t!==null&&typeof t=="object"&&"getBoundingClientRect"in t}var j=class extends z{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||va(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=fa(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;const t=[Gr({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Fs({apply:({rects:i})=>{const s=this.sync==="width"||this.sync==="both",o=this.sync==="height"||this.sync==="both";this.popup.style.width=s?`${i.reference.width}px`:"",this.popup.style.height=o?`${i.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(Xr({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(Qr({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Fs({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:i,availableHeight:s})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${s}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${i}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(Wr({element:this.arrowEl,padding:this.arrowPadding}));const e=this.strategy==="absolute"?i=>fi.getOffsetParent(i,ba):fi.getOffsetParent;ma(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:Ye(Yt({},fi),{getOffsetParent:e})}).then(({x:i,y:s,middlewareData:o,placement:a})=>{const n=getComputedStyle(this).direction==="rtl",d={top:"bottom",right:"left",bottom:"top",left:"right"}[a.split("-")[0]];if(this.setAttribute("data-current-placement",a),Object.assign(this.popup.style,{left:`${i}px`,top:`${s}px`}),this.arrow){const c=o.arrow.x,h=o.arrow.y;let b="",u="",p="",f="";if(this.arrowPlacement==="start"){const m=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";b=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",u=n?m:"",f=n?"":m}else if(this.arrowPlacement==="end"){const m=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";u=n?"":m,f=n?m:"",p=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(f=typeof c=="number"?"calc(50% - var(--arrow-size-diagonal))":"",b=typeof h=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(f=typeof c=="number"?`${c}px`:"",b=typeof h=="number"?`${h}px`:"");Object.assign(this.arrowEl.style,{top:b,right:u,bottom:p,left:f,[d]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sl-reposition")}render(){return y`
|
|
739
|
+
`;const ee=Math.min,_t=Math.max,vi=Math.round,ci=Math.floor,ie=t=>({x:t,y:t}),Fr={left:"right",right:"left",bottom:"top",top:"bottom"},Vr={start:"end",end:"start"};function Gi(t,e,i){return _t(t,ee(e,i))}function Se(t,e){return typeof t=="function"?t(e):t}function se(t){return t.split("-")[0]}function ze(t){return t.split("-")[1]}function po(t){return t==="x"?"y":"x"}function hs(t){return t==="y"?"height":"width"}function ti(t){return["top","bottom"].includes(se(t))?"y":"x"}function us(t){return po(ti(t))}function Br(t,e,i){i===void 0&&(i=!1);const s=ze(t),o=us(t),a=hs(o);let n=o==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(n=yi(n)),[n,yi(n)]}function Ur(t){const e=yi(t);return[Qi(t),e,Qi(e)]}function Qi(t){return t.replace(/start|end/g,e=>Vr[e])}function Nr(t,e,i){const s=["left","right"],o=["right","left"],a=["top","bottom"],n=["bottom","top"];switch(t){case"top":case"bottom":return i?e?o:s:e?s:o;case"left":case"right":return e?a:n;default:return[]}}function Hr(t,e,i,s){const o=ze(t);let a=Nr(se(t),i==="start",s);return o&&(a=a.map(n=>n+"-"+o),e&&(a=a.concat(a.map(Qi)))),a}function yi(t){return t.replace(/left|right|bottom|top/g,e=>Fr[e])}function qr(t){return{top:0,right:0,bottom:0,left:0,...t}}function fo(t){return typeof t!="number"?qr(t):{top:t,right:t,bottom:t,left:t}}function _i(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Rs(t,e,i){let{reference:s,floating:o}=t;const a=ti(e),n=us(e),d=hs(n),c=se(e),h=a==="y",b=s.x+s.width/2-o.width/2,u=s.y+s.height/2-o.height/2,p=s[d]/2-o[d]/2;let f;switch(c){case"top":f={x:b,y:s.y-o.height};break;case"bottom":f={x:b,y:s.y+s.height};break;case"right":f={x:s.x+s.width,y:u};break;case"left":f={x:s.x-o.width,y:u};break;default:f={x:s.x,y:s.y}}switch(ze(e)){case"start":f[n]-=p*(i&&h?-1:1);break;case"end":f[n]+=p*(i&&h?-1:1);break}return f}const jr=async(t,e,i)=>{const{placement:s="bottom",strategy:o="absolute",middleware:a=[],platform:n}=i,d=a.filter(Boolean),c=await(n.isRTL==null?void 0:n.isRTL(e));let h=await n.getElementRects({reference:t,floating:e,strategy:o}),{x:b,y:u}=Rs(h,s,c),p=s,f={},m=0;for(let v=0;v<d.length;v++){const{name:C,fn:E}=d[v],{x:w,y:$,data:g,reset:_}=await E({x:b,y:u,initialPlacement:s,placement:p,strategy:o,middlewareData:f,rects:h,platform:n,elements:{reference:t,floating:e}});if(b=w??b,u=$??u,f={...f,[C]:{...f[C],...g}},_&&m<=50){m++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(h=_.rects===!0?await n.getElementRects({reference:t,floating:e,strategy:o}):_.rects),{x:b,y:u}=Rs(h,p,c)),v=-1;continue}}return{x:b,y:u,placement:p,strategy:o,middlewareData:f}};async function ps(t,e){var i;e===void 0&&(e={});const{x:s,y:o,platform:a,rects:n,elements:d,strategy:c}=t,{boundary:h="clippingAncestors",rootBoundary:b="viewport",elementContext:u="floating",altBoundary:p=!1,padding:f=0}=Se(e,t),m=fo(f),C=d[p?u==="floating"?"reference":"floating":u],E=_i(await a.getClippingRect({element:(i=await(a.isElement==null?void 0:a.isElement(C)))==null||i?C:C.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:h,rootBoundary:b,strategy:c})),w=u==="floating"?{...n.floating,x:s,y:o}:n.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),g=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},_=_i(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w,offsetParent:$,strategy:c}):w);return{top:(E.top-_.top+m.top)/g.y,bottom:(_.bottom-E.bottom+m.bottom)/g.y,left:(E.left-_.left+m.left)/g.x,right:(_.right-E.right+m.right)/g.x}}const Kr=t=>({name:"arrow",options:t,async fn(e){const{x:i,y:s,placement:o,rects:a,platform:n,elements:d,middlewareData:c}=e,{element:h,padding:b=0}=Se(t,e)||{};if(h==null)return{};const u=fo(b),p={x:i,y:s},f=us(o),m=hs(f),v=await n.getDimensions(h),C=f==="y",E=C?"top":"left",w=C?"bottom":"right",$=C?"clientHeight":"clientWidth",g=a.reference[m]+a.reference[f]-p[f]-a.floating[m],_=p[f]-a.reference[f],S=await(n.getOffsetParent==null?void 0:n.getOffsetParent(h));let R=S?S[$]:0;(!R||!await(n.isElement==null?void 0:n.isElement(S)))&&(R=d.floating[$]||a.floating[m]);const F=g/2-_/2,P=R/2-v[m]/2-1,I=ee(u[E],P),ht=ee(u[w],P),G=I,vt=R-v[m]-ht,ot=R/2-v[m]/2+F,ft=Gi(G,ot,vt),Lt=!c.arrow&&ze(o)!=null&&ot!=ft&&a.reference[m]/2-(ot<G?I:ht)-v[m]/2<0,Kt=Lt?ot<G?ot-G:ot-vt:0;return{[f]:p[f]+Kt,data:{[f]:ft,centerOffset:ot-ft-Kt,...Lt&&{alignmentOffset:Kt}},reset:Lt}}}),Wr=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var i,s;const{placement:o,middlewareData:a,rects:n,initialPlacement:d,platform:c,elements:h}=e,{mainAxis:b=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...C}=Se(t,e);if((i=a.arrow)!=null&&i.alignmentOffset)return{};const E=se(o),w=se(d)===d,$=await(c.isRTL==null?void 0:c.isRTL(h.floating)),g=p||(w||!v?[yi(d)]:Ur(d));!p&&m!=="none"&&g.push(...Hr(d,v,m,$));const _=[d,...g],S=await ps(e,C),R=[];let F=((s=a.flip)==null?void 0:s.overflows)||[];if(b&&R.push(S[E]),u){const G=Br(o,n,$);R.push(S[G[0]],S[G[1]])}if(F=[...F,{placement:o,overflows:R}],!R.every(G=>G<=0)){var P,I;const G=(((P=a.flip)==null?void 0:P.index)||0)+1,vt=_[G];if(vt)return{data:{index:G,overflows:F},reset:{placement:vt}};let ot=(I=F.filter(ft=>ft.overflows[0]<=0).sort((ft,Lt)=>ft.overflows[1]-Lt.overflows[1])[0])==null?void 0:I.placement;if(!ot)switch(f){case"bestFit":{var ht;const ft=(ht=F.map(Lt=>[Lt.placement,Lt.overflows.filter(Kt=>Kt>0).reduce((Kt,Fo)=>Kt+Fo,0)]).sort((Lt,Kt)=>Lt[1]-Kt[1])[0])==null?void 0:ht[0];ft&&(ot=ft);break}case"initialPlacement":ot=d;break}if(o!==ot)return{reset:{placement:ot}}}return{}}}};async function Xr(t,e){const{placement:i,platform:s,elements:o}=t,a=await(s.isRTL==null?void 0:s.isRTL(o.floating)),n=se(i),d=ze(i),c=ti(i)==="y",h=["left","top"].includes(n)?-1:1,b=a&&c?-1:1,u=Se(e,t);let{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return d&&typeof m=="number"&&(f=d==="end"?m*-1:m),c?{x:f*b,y:p*h}:{x:p*h,y:f*b}}const Yr=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:i,y:s}=e,o=await Xr(e,t);return{x:i+o.x,y:s+o.y,data:o}}}},Gr=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:s,placement:o}=e,{mainAxis:a=!0,crossAxis:n=!1,limiter:d={fn:C=>{let{x:E,y:w}=C;return{x:E,y:w}}},...c}=Se(t,e),h={x:i,y:s},b=await ps(e,c),u=ti(se(o)),p=po(u);let f=h[p],m=h[u];if(a){const C=p==="y"?"top":"left",E=p==="y"?"bottom":"right",w=f+b[C],$=f-b[E];f=Gi(w,f,$)}if(n){const C=u==="y"?"top":"left",E=u==="y"?"bottom":"right",w=m+b[C],$=m-b[E];m=Gi(w,m,$)}const v=d.fn({...e,[p]:f,[u]:m});return{...v,data:{x:v.x-i,y:v.y-s}}}}},Fs=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:i,rects:s,platform:o,elements:a}=e,{apply:n=()=>{},...d}=Se(t,e),c=await ps(e,d),h=se(i),b=ze(i),u=ti(i)==="y",{width:p,height:f}=s.floating;let m,v;h==="top"||h==="bottom"?(m=h,v=b===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=h,m=b==="end"?"top":"bottom");const C=f-c[m],E=p-c[v],w=!e.middlewareData.shift;let $=C,g=E;if(u){const S=p-c.left-c.right;g=b||w?ee(E,S):S}else{const S=f-c.top-c.bottom;$=b||w?ee(C,S):S}if(w&&!b){const S=_t(c.left,0),R=_t(c.right,0),F=_t(c.top,0),P=_t(c.bottom,0);u?g=p-2*(S!==0||R!==0?S+R:_t(c.left,c.right)):$=f-2*(F!==0||P!==0?F+P:_t(c.top,c.bottom))}await n({...e,availableWidth:g,availableHeight:$});const _=await o.getDimensions(a.floating);return p!==_.width||f!==_.height?{reset:{rects:!0}}:{}}}};function oe(t){return mo(t)?(t.nodeName||"").toLowerCase():"#document"}function xt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Qt(t){var e;return(e=(mo(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function mo(t){return t instanceof Node||t instanceof xt(t).Node}function Xt(t){return t instanceof Element||t instanceof xt(t).Element}function Vt(t){return t instanceof HTMLElement||t instanceof xt(t).HTMLElement}function Vs(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof xt(t).ShadowRoot}function ei(t){const{overflow:e,overflowX:i,overflowY:s,display:o}=At(t);return/auto|scroll|overlay|hidden|clip/.test(e+s+i)&&!["inline","contents"].includes(o)}function Qr(t){return["table","td","th"].includes(oe(t))}function fs(t){const e=ms(),i=At(t);return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(i.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(i.contain||"").includes(s))}function Zr(t){let e=Ce(t);for(;Vt(e)&&!Si(e);){if(fs(e))return e;e=Ce(e)}return null}function ms(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Si(t){return["html","body","#document"].includes(oe(t))}function At(t){return xt(t).getComputedStyle(t)}function zi(t){return Xt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ce(t){if(oe(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Vs(t)&&t.host||Qt(t);return Vs(e)?e.host:e}function bo(t){const e=Ce(t);return Si(e)?t.ownerDocument?t.ownerDocument.body:t.body:Vt(e)&&ei(e)?e:bo(e)}function Xe(t,e,i){var s;e===void 0&&(e=[]),i===void 0&&(i=!0);const o=bo(t),a=o===((s=t.ownerDocument)==null?void 0:s.body),n=xt(o);return a?e.concat(n,n.visualViewport||[],ei(o)?o:[],n.frameElement&&i?Xe(n.frameElement):[]):e.concat(o,Xe(o,[],i))}function go(t){const e=At(t);let i=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const o=Vt(t),a=o?t.offsetWidth:i,n=o?t.offsetHeight:s,d=vi(i)!==a||vi(s)!==n;return d&&(i=a,s=n),{width:i,height:s,$:d}}function bs(t){return Xt(t)?t:t.contextElement}function xe(t){const e=bs(t);if(!Vt(e))return ie(1);const i=e.getBoundingClientRect(),{width:s,height:o,$:a}=go(e);let n=(a?vi(i.width):i.width)/s,d=(a?vi(i.height):i.height)/o;return(!n||!Number.isFinite(n))&&(n=1),(!d||!Number.isFinite(d))&&(d=1),{x:n,y:d}}const Jr=ie(0);function vo(t){const e=xt(t);return!ms()||!e.visualViewport?Jr:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ta(t,e,i){return e===void 0&&(e=!1),!i||e&&i!==xt(t)?!1:e}function pe(t,e,i,s){e===void 0&&(e=!1),i===void 0&&(i=!1);const o=t.getBoundingClientRect(),a=bs(t);let n=ie(1);e&&(s?Xt(s)&&(n=xe(s)):n=xe(t));const d=ta(a,i,s)?vo(a):ie(0);let c=(o.left+d.x)/n.x,h=(o.top+d.y)/n.y,b=o.width/n.x,u=o.height/n.y;if(a){const p=xt(a),f=s&&Xt(s)?xt(s):s;let m=p.frameElement;for(;m&&s&&f!==p;){const v=xe(m),C=m.getBoundingClientRect(),E=At(m),w=C.left+(m.clientLeft+parseFloat(E.paddingLeft))*v.x,$=C.top+(m.clientTop+parseFloat(E.paddingTop))*v.y;c*=v.x,h*=v.y,b*=v.x,u*=v.y,c+=w,h+=$,m=xt(m).frameElement}}return _i({width:b,height:u,x:c,y:h})}function ea(t){let{rect:e,offsetParent:i,strategy:s}=t;const o=Vt(i),a=Qt(i);if(i===a)return e;let n={scrollLeft:0,scrollTop:0},d=ie(1);const c=ie(0);if((o||!o&&s!=="fixed")&&((oe(i)!=="body"||ei(a))&&(n=zi(i)),Vt(i))){const h=pe(i);d=xe(i),c.x=h.x+i.clientLeft,c.y=h.y+i.clientTop}return{width:e.width*d.x,height:e.height*d.y,x:e.x*d.x-n.scrollLeft*d.x+c.x,y:e.y*d.y-n.scrollTop*d.y+c.y}}function ia(t){return Array.from(t.getClientRects())}function yo(t){return pe(Qt(t)).left+zi(t).scrollLeft}function sa(t){const e=Qt(t),i=zi(t),s=t.ownerDocument.body,o=_t(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),a=_t(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let n=-i.scrollLeft+yo(t);const d=-i.scrollTop;return At(s).direction==="rtl"&&(n+=_t(e.clientWidth,s.clientWidth)-o),{width:o,height:a,x:n,y:d}}function oa(t,e){const i=xt(t),s=Qt(t),o=i.visualViewport;let a=s.clientWidth,n=s.clientHeight,d=0,c=0;if(o){a=o.width,n=o.height;const h=ms();(!h||h&&e==="fixed")&&(d=o.offsetLeft,c=o.offsetTop)}return{width:a,height:n,x:d,y:c}}function ra(t,e){const i=pe(t,!0,e==="fixed"),s=i.top+t.clientTop,o=i.left+t.clientLeft,a=Vt(t)?xe(t):ie(1),n=t.clientWidth*a.x,d=t.clientHeight*a.y,c=o*a.x,h=s*a.y;return{width:n,height:d,x:c,y:h}}function Bs(t,e,i){let s;if(e==="viewport")s=oa(t,i);else if(e==="document")s=sa(Qt(t));else if(Xt(e))s=ra(e,i);else{const o=vo(t);s={...e,x:e.x-o.x,y:e.y-o.y}}return _i(s)}function _o(t,e){const i=Ce(t);return i===e||!Xt(i)||Si(i)?!1:At(i).position==="fixed"||_o(i,e)}function aa(t,e){const i=e.get(t);if(i)return i;let s=Xe(t,[],!1).filter(d=>Xt(d)&&oe(d)!=="body"),o=null;const a=At(t).position==="fixed";let n=a?Ce(t):t;for(;Xt(n)&&!Si(n);){const d=At(n),c=fs(n);!c&&d.position==="fixed"&&(o=null),(a?!c&&!o:!c&&d.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ei(n)&&!c&&_o(t,n))?s=s.filter(b=>b!==n):o=d,n=Ce(n)}return e.set(t,s),s}function na(t){let{element:e,boundary:i,rootBoundary:s,strategy:o}=t;const n=[...i==="clippingAncestors"?aa(e,this._c):[].concat(i),s],d=n[0],c=n.reduce((h,b)=>{const u=Bs(e,b,o);return h.top=_t(u.top,h.top),h.right=ee(u.right,h.right),h.bottom=ee(u.bottom,h.bottom),h.left=_t(u.left,h.left),h},Bs(e,d,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function la(t){return go(t)}function ca(t,e,i){const s=Vt(e),o=Qt(e),a=i==="fixed",n=pe(t,!0,a,e);let d={scrollLeft:0,scrollTop:0};const c=ie(0);if(s||!s&&!a)if((oe(e)!=="body"||ei(o))&&(d=zi(e)),s){const h=pe(e,!0,a,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else o&&(c.x=yo(o));return{x:n.left+d.scrollLeft-c.x,y:n.top+d.scrollTop-c.y,width:n.width,height:n.height}}function Us(t,e){return!Vt(t)||At(t).position==="fixed"?null:e?e(t):t.offsetParent}function wo(t,e){const i=xt(t);if(!Vt(t))return i;let s=Us(t,e);for(;s&&Qr(s)&&At(s).position==="static";)s=Us(s,e);return s&&(oe(s)==="html"||oe(s)==="body"&&At(s).position==="static"&&!fs(s))?i:s||Zr(t)||i}const da=async function(t){let{reference:e,floating:i,strategy:s}=t;const o=this.getOffsetParent||wo,a=this.getDimensions;return{reference:ca(e,await o(i),s),floating:{x:0,y:0,...await a(i)}}};function ha(t){return At(t).direction==="rtl"}const fi={convertOffsetParentRelativeRectToViewportRelativeRect:ea,getDocumentElement:Qt,getClippingRect:na,getOffsetParent:wo,getElementRects:da,getClientRects:ia,getDimensions:la,getScale:xe,isElement:Xt,isRTL:ha};function ua(t,e){let i=null,s;const o=Qt(t);function a(){clearTimeout(s),i&&i.disconnect(),i=null}function n(d,c){d===void 0&&(d=!1),c===void 0&&(c=1),a();const{left:h,top:b,width:u,height:p}=t.getBoundingClientRect();if(d||e(),!u||!p)return;const f=ci(b),m=ci(o.clientWidth-(h+u)),v=ci(o.clientHeight-(b+p)),C=ci(h),w={rootMargin:-f+"px "+-m+"px "+-v+"px "+-C+"px",threshold:_t(0,ee(1,c))||1};let $=!0;function g(_){const S=_[0].intersectionRatio;if(S!==c){if(!$)return n();S?n(!1,S):s=setTimeout(()=>{n(!1,1e-7)},100)}$=!1}try{i=new IntersectionObserver(g,{...w,root:o.ownerDocument})}catch{i=new IntersectionObserver(g,w)}i.observe(t)}return n(!0),a}function pa(t,e,i,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,h=bs(t),b=o||a?[...h?Xe(h):[],...Xe(e)]:[];b.forEach(E=>{o&&E.addEventListener("scroll",i,{passive:!0}),a&&E.addEventListener("resize",i)});const u=h&&d?ua(h,i):null;let p=-1,f=null;n&&(f=new ResizeObserver(E=>{let[w]=E;w&&w.target===h&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{f&&f.observe(e)})),i()}),h&&!c&&f.observe(h),f.observe(e));let m,v=c?pe(t):null;c&&C();function C(){const E=pe(t);v&&(E.x!==v.x||E.y!==v.y||E.width!==v.width||E.height!==v.height)&&i(),v=E,m=requestAnimationFrame(C)}return i(),()=>{b.forEach(E=>{o&&E.removeEventListener("scroll",i),a&&E.removeEventListener("resize",i)}),u&&u(),f&&f.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const fa=(t,e,i)=>{const s=new Map,o={platform:fi,...i},a={...o.platform,_c:s};return jr(t,e,{...o,platform:a})};function ma(t){return ba(t)}function Vi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function ba(t){for(let e=t;e;e=Vi(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Vi(t);e;e=Vi(e)){if(!(e instanceof Element))continue;const i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||i.filter!=="none"||e.tagName==="BODY"))return e}return null}function ga(t){return t!==null&&typeof t=="object"&&"getBoundingClientRect"in t}var j=class extends z{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||ga(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=pa(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;const t=[Yr({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Fs({apply:({rects:i})=>{const s=this.sync==="width"||this.sync==="both",o=this.sync==="height"||this.sync==="both";this.popup.style.width=s?`${i.reference.width}px`:"",this.popup.style.height=o?`${i.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(Wr({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(Gr({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Fs({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:i,availableHeight:s})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${s}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${i}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(Kr({element:this.arrowEl,padding:this.arrowPadding}));const e=this.strategy==="absolute"?i=>fi.getOffsetParent(i,ma):fi.getOffsetParent;fa(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:Ye(Yt({},fi),{getOffsetParent:e})}).then(({x:i,y:s,middlewareData:o,placement:a})=>{const n=getComputedStyle(this).direction==="rtl",d={top:"bottom",right:"left",bottom:"top",left:"right"}[a.split("-")[0]];if(this.setAttribute("data-current-placement",a),Object.assign(this.popup.style,{left:`${i}px`,top:`${s}px`}),this.arrow){const c=o.arrow.x,h=o.arrow.y;let b="",u="",p="",f="";if(this.arrowPlacement==="start"){const m=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";b=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",u=n?m:"",f=n?"":m}else if(this.arrowPlacement==="end"){const m=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";u=n?"":m,f=n?m:"",p=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(f=typeof c=="number"?"calc(50% - var(--arrow-size-diagonal))":"",b=typeof h=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(f=typeof c=="number"?`${c}px`:"",b=typeof h=="number"?`${h}px`:"");Object.assign(this.arrowEl.style,{top:b,right:u,bottom:p,left:f,[d]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sl-reposition")}render(){return y`
|
|
740
740
|
<slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
|
|
741
741
|
|
|
742
742
|
<div
|
|
@@ -746,7 +746,7 @@
|
|
|
746
746
|
<slot></slot>
|
|
747
747
|
${this.arrow?y`<div part="arrow" class="popup__arrow" role="presentation"></div>`:""}
|
|
748
748
|
</div>
|
|
749
|
-
`}};j.styles=
|
|
749
|
+
`}};j.styles=Rr;r([k(".popup")],j.prototype,"popup",2);r([k(".popup__arrow")],j.prototype,"arrowEl",2);r([l()],j.prototype,"anchor",2);r([l({type:Boolean,reflect:!0})],j.prototype,"active",2);r([l({reflect:!0})],j.prototype,"placement",2);r([l({reflect:!0})],j.prototype,"strategy",2);r([l({type:Number})],j.prototype,"distance",2);r([l({type:Number})],j.prototype,"skidding",2);r([l({type:Boolean})],j.prototype,"arrow",2);r([l({attribute:"arrow-placement"})],j.prototype,"arrowPlacement",2);r([l({attribute:"arrow-padding",type:Number})],j.prototype,"arrowPadding",2);r([l({type:Boolean})],j.prototype,"flip",2);r([l({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],j.prototype,"flipFallbackPlacements",2);r([l({attribute:"flip-fallback-strategy"})],j.prototype,"flipFallbackStrategy",2);r([l({type:Object})],j.prototype,"flipBoundary",2);r([l({attribute:"flip-padding",type:Number})],j.prototype,"flipPadding",2);r([l({type:Boolean})],j.prototype,"shift",2);r([l({type:Object})],j.prototype,"shiftBoundary",2);r([l({attribute:"shift-padding",type:Number})],j.prototype,"shiftPadding",2);r([l({attribute:"auto-size"})],j.prototype,"autoSize",2);r([l()],j.prototype,"sync",2);r([l({type:Object})],j.prototype,"autoSizeBoundary",2);r([l({attribute:"auto-size-padding",type:Number})],j.prototype,"autoSizePadding",2);function mt(t,e){return new Promise(i=>{function s(o){o.target===t&&(t.removeEventListener(e,s),i())}t.addEventListener(e,s)})}var at=class extends z{constructor(){super(),this.localize=new U(this),this.content="",this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger="hover focus",this.hoist=!1,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleKeyDown=t=>{this.open&&!this.disabled&&t.key==="Escape"&&(t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger("hover")){const t=Ps(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),t)}},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const t=Ps(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),t)}},this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}connectedCallback(){super.connectedCallback()}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sl-show"),await et(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=X(this,"tooltip.show",{dir:this.localize.dir()});await Z(this.popup.popup,t,e),this.emit("sl-after-show")}else{this.emit("sl-hide"),await et(this.body);const{keyframes:t,options:e}=X(this,"tooltip.hide",{dir:this.localize.dir()});await Z(this.popup.popup,t,e),this.popup.active=!1,this.body.hidden=!0,this.emit("sl-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,mt(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,mt(this,"sl-after-hide")}render(){return y`
|
|
750
750
|
<sl-popup
|
|
751
751
|
part="base"
|
|
752
752
|
exportparts="
|
|
@@ -770,7 +770,7 @@
|
|
|
770
770
|
<slot name="content">${this.content}</slot>
|
|
771
771
|
</div>
|
|
772
772
|
</sl-popup>
|
|
773
|
-
`}};at.styles=
|
|
773
|
+
`}};at.styles=Mr;at.dependencies={"sl-popup":j};r([k("slot:not([name])")],at.prototype,"defaultSlot",2);r([k(".tooltip__body")],at.prototype,"body",2);r([k("sl-popup")],at.prototype,"popup",2);r([l()],at.prototype,"content",2);r([l()],at.prototype,"placement",2);r([l({type:Boolean,reflect:!0})],at.prototype,"disabled",2);r([l({type:Number})],at.prototype,"distance",2);r([l({type:Boolean,reflect:!0})],at.prototype,"open",2);r([l({type:Number})],at.prototype,"skidding",2);r([l()],at.prototype,"trigger",2);r([l({type:Boolean})],at.prototype,"hoist",2);r([x("open",{waitUntilFirstUpdate:!0})],at.prototype,"handleOpenChange",1);r([x(["content","distance","hoist","placement","skidding"])],at.prototype,"handleOptionsChange",1);r([x("disabled")],at.prototype,"handleDisabledChange",1);q("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}});q("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});at.define("sl-tooltip");var va=T`
|
|
774
774
|
${L}
|
|
775
775
|
|
|
776
776
|
:host {
|
|
@@ -805,7 +805,7 @@
|
|
|
805
805
|
<span hidden aria-hidden="true"><slot name="expand-icon"></slot></span>
|
|
806
806
|
<span hidden aria-hidden="true"><slot name="collapse-icon"></slot></span>
|
|
807
807
|
</div>
|
|
808
|
-
`}};me.styles=
|
|
808
|
+
`}};me.styles=va;r([k("slot:not([name])")],me.prototype,"defaultSlot",2);r([k("slot[name=expand-icon]")],me.prototype,"expandedIconSlot",2);r([k("slot[name=collapse-icon]")],me.prototype,"collapsedIconSlot",2);r([l()],me.prototype,"selection",2);r([x("selection")],me.prototype,"handleSelectionChange",1);me.define("sl-tree");var ya=T`
|
|
809
809
|
${L}
|
|
810
810
|
|
|
811
811
|
:host {
|
|
@@ -822,12 +822,12 @@
|
|
|
822
822
|
display: block;
|
|
823
823
|
padding: var(--padding);
|
|
824
824
|
}
|
|
825
|
-
`,
|
|
825
|
+
`,_a=0,ii=class extends z{constructor(){super(...arguments),this.attrId=++_a,this.componentId=`sl-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return y`
|
|
826
826
|
<slot
|
|
827
827
|
part="base"
|
|
828
828
|
class=${O({"tab-panel":!0,"tab-panel--active":this.active})}
|
|
829
829
|
></slot>
|
|
830
|
-
`}};ii.styles=
|
|
830
|
+
`}};ii.styles=ya;r([l({reflect:!0})],ii.prototype,"name",2);r([l({type:Boolean,reflect:!0})],ii.prototype,"active",2);r([x("active")],ii.prototype,"handleActiveChange",1);ii.define("sl-tab-panel");var wa=T`
|
|
831
831
|
${L}
|
|
832
832
|
|
|
833
833
|
:host {
|
|
@@ -942,7 +942,7 @@
|
|
|
942
942
|
.tag--pill {
|
|
943
943
|
border-radius: var(--sl-border-radius-pill);
|
|
944
944
|
}
|
|
945
|
-
`,
|
|
945
|
+
`,xa=T`
|
|
946
946
|
${L}
|
|
947
947
|
|
|
948
948
|
:host {
|
|
@@ -995,8 +995,8 @@
|
|
|
995
995
|
* @license
|
|
996
996
|
* Copyright 2020 Google LLC
|
|
997
997
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
998
|
-
*/const xo=Symbol.for("")
|
|
999
|
-
take care to ensure page security.`)})(s)+t[o+1],t[0]),r:xo}),Hs=new Map
|
|
998
|
+
*/const xo=Symbol.for(""),ka=t=>{if((t==null?void 0:t.r)===xo)return t==null?void 0:t._$litStatic$},wi=(t,...e)=>({_$litStatic$:e.reduce((i,s,o)=>i+(a=>{if(a._$litStatic$!==void 0)return a._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${a}. Use 'unsafeStatic' to pass non-literal values, but
|
|
999
|
+
take care to ensure page security.`)})(s)+t[o+1],t[0]),r:xo}),Hs=new Map,$a=t=>(e,...i)=>{const s=i.length;let o,a;const n=[],d=[];let c,h=0,b=!1;for(;h<s;){for(c=e[h];h<s&&(a=i[h],(o=ka(a))!==void 0);)c+=o+e[++h],b=!0;h!==s&&d.push(a),n.push(c),h++}if(h===s&&n.push(e[s]),b){const u=n.join("$$lit$$");(e=Hs.get(u))===void 0&&(n.raw=n,Hs.set(u,e=n)),i=d}return t(e,...i)},Be=$a(y);var st=class extends z{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t=!!this.href,e=t?wi`a`:wi`button`;return Be`
|
|
1000
1000
|
<${e}
|
|
1001
1001
|
part="base"
|
|
1002
1002
|
class=${O({"icon-button":!0,"icon-button--disabled":!t&&this.disabled,"icon-button--focused":this.hasFocus})}
|
|
@@ -1022,7 +1022,7 @@
|
|
|
1022
1022
|
aria-hidden="true"
|
|
1023
1023
|
></sl-icon>
|
|
1024
1024
|
</${e}>
|
|
1025
|
-
`}};st.styles=
|
|
1025
|
+
`}};st.styles=xa;st.dependencies={"sl-icon":K};r([k(".icon-button")],st.prototype,"button",2);r([D()],st.prototype,"hasFocus",2);r([l()],st.prototype,"name",2);r([l()],st.prototype,"library",2);r([l()],st.prototype,"src",2);r([l()],st.prototype,"href",2);r([l()],st.prototype,"target",2);r([l()],st.prototype,"download",2);r([l()],st.prototype,"label",2);r([l({type:Boolean,reflect:!0})],st.prototype,"disabled",2);var re=class extends z{constructor(){super(...arguments),this.localize=new U(this),this.variant="neutral",this.size="medium",this.pill=!1,this.removable=!1}handleRemoveClick(){this.emit("sl-remove")}render(){return y`
|
|
1026
1026
|
<span
|
|
1027
1027
|
part="base"
|
|
1028
1028
|
class=${O({tag:!0,"tag--primary":this.variant==="primary","tag--success":this.variant==="success","tag--neutral":this.variant==="neutral","tag--warning":this.variant==="warning","tag--danger":this.variant==="danger","tag--text":this.variant==="text","tag--small":this.size==="small","tag--medium":this.size==="medium","tag--large":this.size==="large","tag--pill":this.pill,"tag--removable":this.removable})}
|
|
@@ -1042,7 +1042,7 @@
|
|
|
1042
1042
|
></sl-icon-button>
|
|
1043
1043
|
`:""}
|
|
1044
1044
|
</span>
|
|
1045
|
-
`}};re.styles=
|
|
1045
|
+
`}};re.styles=wa;re.dependencies={"sl-icon-button":st};r([l({reflect:!0})],re.prototype,"variant",2);r([l({reflect:!0})],re.prototype,"size",2);r([l({type:Boolean,reflect:!0})],re.prototype,"pill",2);r([l({type:Boolean})],re.prototype,"removable",2);re.define("sl-tag");var si=T`
|
|
1046
1046
|
.form-control .form-control__label {
|
|
1047
1047
|
display: none;
|
|
1048
1048
|
}
|
|
@@ -1098,7 +1098,7 @@
|
|
|
1098
1098
|
.form-control--has-help-text.form-control--radio-group .form-control__help-text {
|
|
1099
1099
|
margin-top: var(--sl-spacing-2x-small);
|
|
1100
1100
|
}
|
|
1101
|
-
`,
|
|
1101
|
+
`,Ca=T`
|
|
1102
1102
|
${L}
|
|
1103
1103
|
${si}
|
|
1104
1104
|
|
|
@@ -1266,7 +1266,7 @@
|
|
|
1266
1266
|
resize: none;
|
|
1267
1267
|
overflow-y: hidden;
|
|
1268
1268
|
}
|
|
1269
|
-
`,kt=class{constructor(t,...e){this.slotNames=[],this.handleSlotChange=i=>{const s=i.target;(this.slotNames.includes("[default]")&&!s.name||s.name&&this.slotNames.includes(s.name))&&this.host.requestUpdate()},(this.host=t).addController(this),this.slotNames=e}hasDefaultSlot(){return[...this.host.childNodes].some(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent.trim()!=="")return!0;if(t.nodeType===t.ELEMENT_NODE){const e=t;if(e.tagName.toLowerCase()==="sl-visually-hidden")return!1;if(!e.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}};function
|
|
1269
|
+
`,kt=class{constructor(t,...e){this.slotNames=[],this.handleSlotChange=i=>{const s=i.target;(this.slotNames.includes("[default]")&&!s.name||s.name&&this.slotNames.includes(s.name))&&this.host.requestUpdate()},(this.host=t).addController(this),this.slotNames=e}hasDefaultSlot(){return[...this.host.childNodes].some(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent.trim()!=="")return!0;if(t.nodeType===t.ELEMENT_NODE){const e=t;if(e.tagName.toLowerCase()==="sl-visually-hidden")return!1;if(!e.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}};function Sa(t){if(!t)return"";const e=t.assignedNodes({flatten:!0});let i="";return[...e].forEach(s=>{s.nodeType===Node.TEXT_NODE&&(i+=s.textContent)}),i}var N=class extends z{constructor(){super(...arguments),this.formControlController=new Gt(this,{assumeInteractionOn:["sl-blur","sl-input"]}),this.hasSlotController=new kt(this,"help-text","label"),this.hasFocus=!1,this.title="",this.name="",this.value="",this.size="medium",this.filled=!1,this.label="",this.helpText="",this.placeholder="",this.rows=4,this.resize="vertical",this.disabled=!1,this.readonly=!1,this.form="",this.required=!1,this.spellcheck=!0,this.defaultValue=""}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>this.setTextareaHeight()),this.updateComplete.then(()=>{this.setTextareaHeight(),this.resizeObserver.observe(this.input)})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.input)}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleChange(){this.value=this.input.value,this.setTextareaHeight(),this.emit("sl-change")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleInput(){this.value=this.input.value,this.emit("sl-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}setTextareaHeight(){this.resize==="auto"?(this.input.style.height="auto",this.input.style.height=`${this.input.scrollHeight}px`):this.input.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}scrollPosition(t){if(t){typeof t.top=="number"&&(this.input.scrollTop=t.top),typeof t.left=="number"&&(this.input.scrollLeft=t.left);return}return{top:this.input.scrollTop,left:this.input.scrollTop}}setSelectionRange(t,e,i="none"){this.input.setSelectionRange(t,e,i)}setRangeText(t,e,i,s){this.input.setRangeText(t,e,i,s),this.value!==this.input.value&&(this.value=this.input.value),this.value!==this.input.value&&(this.value=this.input.value,this.setTextareaHeight())}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=this.label?!0:!!t,s=this.helpText?!0:!!e;return y`
|
|
1270
1270
|
<div
|
|
1271
1271
|
part="form-control"
|
|
1272
1272
|
class=${O({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":i,"form-control--has-help-text":s})}
|
|
@@ -1324,7 +1324,7 @@
|
|
|
1324
1324
|
<slot name="help-text">${this.helpText}</slot>
|
|
1325
1325
|
</div>
|
|
1326
1326
|
</div>
|
|
1327
|
-
`}};N.styles=
|
|
1327
|
+
`}};N.styles=Ca;r([k(".textarea__control")],N.prototype,"input",2);r([D()],N.prototype,"hasFocus",2);r([l()],N.prototype,"title",2);r([l()],N.prototype,"name",2);r([l()],N.prototype,"value",2);r([l({reflect:!0})],N.prototype,"size",2);r([l({type:Boolean,reflect:!0})],N.prototype,"filled",2);r([l()],N.prototype,"label",2);r([l({attribute:"help-text"})],N.prototype,"helpText",2);r([l()],N.prototype,"placeholder",2);r([l({type:Number})],N.prototype,"rows",2);r([l()],N.prototype,"resize",2);r([l({type:Boolean,reflect:!0})],N.prototype,"disabled",2);r([l({type:Boolean,reflect:!0})],N.prototype,"readonly",2);r([l({reflect:!0})],N.prototype,"form",2);r([l({type:Boolean,reflect:!0})],N.prototype,"required",2);r([l({type:Number})],N.prototype,"minlength",2);r([l({type:Number})],N.prototype,"maxlength",2);r([l()],N.prototype,"autocapitalize",2);r([l()],N.prototype,"autocorrect",2);r([l()],N.prototype,"autocomplete",2);r([l({type:Boolean})],N.prototype,"autofocus",2);r([l()],N.prototype,"enterkeyhint",2);r([l({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],N.prototype,"spellcheck",2);r([l()],N.prototype,"inputmode",2);r([fe()],N.prototype,"defaultValue",2);r([x("disabled",{waitUntilFirstUpdate:!0})],N.prototype,"handleDisabledChange",1);r([x("rows",{waitUntilFirstUpdate:!0})],N.prototype,"handleRowsChange",1);r([x("value",{waitUntilFirstUpdate:!0})],N.prototype,"handleValueChange",1);N.define("sl-textarea");var za=T`
|
|
1328
1328
|
${L}
|
|
1329
1329
|
|
|
1330
1330
|
:host {
|
|
@@ -1522,7 +1522,7 @@
|
|
|
1522
1522
|
<slot></slot>
|
|
1523
1523
|
</div>
|
|
1524
1524
|
</label>
|
|
1525
|
-
`}};bt.styles=
|
|
1525
|
+
`}};bt.styles=za;r([k('input[type="checkbox"]')],bt.prototype,"input",2);r([D()],bt.prototype,"hasFocus",2);r([l()],bt.prototype,"title",2);r([l()],bt.prototype,"name",2);r([l()],bt.prototype,"value",2);r([l({reflect:!0})],bt.prototype,"size",2);r([l({type:Boolean,reflect:!0})],bt.prototype,"disabled",2);r([l({type:Boolean,reflect:!0})],bt.prototype,"checked",2);r([fe("checked")],bt.prototype,"defaultChecked",2);r([l({reflect:!0})],bt.prototype,"form",2);r([l({type:Boolean,reflect:!0})],bt.prototype,"required",2);r([x("checked",{waitUntilFirstUpdate:!0})],bt.prototype,"handleCheckedChange",1);r([x("disabled",{waitUntilFirstUpdate:!0})],bt.prototype,"handleDisabledChange",1);bt.define("sl-switch");var Aa=T`
|
|
1526
1526
|
${L}
|
|
1527
1527
|
|
|
1528
1528
|
:host {
|
|
@@ -1592,7 +1592,7 @@
|
|
|
1592
1592
|
outline-offset: -3px;
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
|
-
`,
|
|
1595
|
+
`,Ea=0,Bt=class extends z{constructor(){super(...arguments),this.localize=new U(this),this.attrId=++Ea,this.componentId=`sl-tab-${this.attrId}`,this.panel="",this.active=!1,this.closable=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleCloseClick(t){t.stopPropagation(),this.emit("sl-close")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.tab.focus(t)}blur(){this.tab.blur()}render(){return this.id=this.id.length>0?this.id:this.componentId,y`
|
|
1596
1596
|
<div
|
|
1597
1597
|
part="base"
|
|
1598
1598
|
class=${O({tab:!0,"tab--active":this.active,"tab--closable":this.closable,"tab--disabled":this.disabled})}
|
|
@@ -1612,7 +1612,7 @@
|
|
|
1612
1612
|
></sl-icon-button>
|
|
1613
1613
|
`:""}
|
|
1614
1614
|
</div>
|
|
1615
|
-
`}};Bt.styles=
|
|
1615
|
+
`}};Bt.styles=Aa;Bt.dependencies={"sl-icon-button":st};r([k(".tab")],Bt.prototype,"tab",2);r([l({reflect:!0})],Bt.prototype,"panel",2);r([l({type:Boolean,reflect:!0})],Bt.prototype,"active",2);r([l({type:Boolean})],Bt.prototype,"closable",2);r([l({type:Boolean,reflect:!0})],Bt.prototype,"disabled",2);r([x("active")],Bt.prototype,"handleActiveChange",1);r([x("disabled")],Bt.prototype,"handleDisabledChange",1);Bt.define("sl-tab");var Ta=T`
|
|
1616
1616
|
${L}
|
|
1617
1617
|
|
|
1618
1618
|
:host {
|
|
@@ -1843,7 +1843,7 @@
|
|
|
1843
1843
|
.tab-group--end ::slotted(sl-tab-panel) {
|
|
1844
1844
|
--padding: 0 var(--sl-spacing-medium);
|
|
1845
1845
|
}
|
|
1846
|
-
`;function
|
|
1846
|
+
`;function La(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}var Zi=new Set;function Ia(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ue(t){if(Zi.add(t),!document.body.classList.contains("sl-scroll-lock")){const e=Ia();document.body.classList.add("sl-scroll-lock"),document.body.style.setProperty("--sl-scroll-lock-size",`${e}px`)}}function Ne(t){Zi.delete(t),Zi.size===0&&(document.body.classList.remove("sl-scroll-lock"),document.body.style.removeProperty("--sl-scroll-lock-size"))}function Ji(t,e,i="vertical",s="smooth"){const o=La(t,e),a=o.top+e.scrollTop,n=o.left+e.scrollLeft,d=e.scrollLeft,c=e.scrollLeft+e.offsetWidth,h=e.scrollTop,b=e.scrollTop+e.offsetHeight;(i==="horizontal"||i==="both")&&(n<d?e.scrollTo({left:n,behavior:s}):n+t.clientWidth>c&&e.scrollTo({left:n-e.offsetWidth+t.clientWidth,behavior:s})),(i==="vertical"||i==="both")&&(a<h?e.scrollTo({top:a,behavior:s}):a+t.clientHeight>b&&e.scrollTo({top:a-e.offsetHeight+t.clientHeight,behavior:s}))}var $t=class extends z{constructor(){super(...arguments),this.localize=new U(this),this.tabs=[],this.panels=[],this.hasScrollControls=!1,this.placement="top",this.activation="auto",this.noScrollControls=!1}connectedCallback(){const t=Promise.all([customElements.whenDefined("sl-tab"),customElements.whenDefined("sl-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.repositionIndicator(),this.updateScrollControls()}),this.mutationObserver=new MutationObserver(e=>{e.some(i=>!["aria-labelledby","aria-controls"].includes(i.attributeName))&&setTimeout(()=>this.setAriaLabels()),e.some(i=>i.attributeName==="disabled")&&this.syncTabsAndPanels()}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then(()=>{new IntersectionObserver((i,s)=>{var o;i[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((o=this.getActiveTab())!=null?o:this.tabs[0],{emitEvents:!1}),s.unobserve(i[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect(),this.resizeObserver.unobserve(this.nav)}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter(i=>t.includeDisabled?i.tagName.toLowerCase()==="sl-tab":i.tagName.toLowerCase()==="sl-tab"&&!i.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sl-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.active)}handleClick(t){const i=t.target.closest("sl-tab");(i==null?void 0:i.closest("sl-tab-group"))===this&&i!==null&&this.setActiveTab(i,{scrollBehavior:"smooth"})}handleKeyDown(t){const i=t.target.closest("sl-tab");if((i==null?void 0:i.closest("sl-tab-group"))===this&&(["Enter"," "].includes(t.key)&&i!==null&&(this.setActiveTab(i,{scrollBehavior:"smooth"}),t.preventDefault()),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key))){const o=this.tabs.find(n=>n.matches(":focus")),a=this.localize.dir()==="rtl";if((o==null?void 0:o.tagName.toLowerCase())==="sl-tab"){let n=this.tabs.indexOf(o);t.key==="Home"?n=0:t.key==="End"?n=this.tabs.length-1:["top","bottom"].includes(this.placement)&&t.key===(a?"ArrowRight":"ArrowLeft")||["start","end"].includes(this.placement)&&t.key==="ArrowUp"?n--:(["top","bottom"].includes(this.placement)&&t.key===(a?"ArrowLeft":"ArrowRight")||["start","end"].includes(this.placement)&&t.key==="ArrowDown")&&n++,n<0&&(n=this.tabs.length-1),n>this.tabs.length-1&&(n=0),this.tabs[n].focus({preventScroll:!0}),this.activation==="auto"&&this.setActiveTab(this.tabs[n],{scrollBehavior:"smooth"}),["top","bottom"].includes(this.placement)&&Ji(this.tabs[n],this.nav,"horizontal"),t.preventDefault()}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,e){if(e=Yt({emitEvents:!0,scrollBehavior:"auto"},e),t!==this.activeTab&&!t.disabled){const i=this.activeTab;this.activeTab=t,this.tabs.forEach(s=>s.active=s===this.activeTab),this.panels.forEach(s=>{var o;return s.active=s.name===((o=this.activeTab)==null?void 0:o.panel)}),this.syncIndicator(),["top","bottom"].includes(this.placement)&&Ji(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(i&&this.emit("sl-tab-hide",{detail:{name:i.panel}}),this.emit("sl-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(t=>{const e=this.panels.find(i=>i.name===t.panel);e&&(t.setAttribute("aria-controls",e.getAttribute("id")),e.setAttribute("aria-labelledby",t.getAttribute("id")))})}repositionIndicator(){const t=this.getActiveTab();if(!t)return;const e=t.clientWidth,i=t.clientHeight,s=this.localize.dir()==="rtl",o=this.getAllTabs(),n=o.slice(0,o.indexOf(t)).reduce((d,c)=>({left:d.left+c.clientWidth,top:d.top+c.clientHeight}),{left:0,top:0});switch(this.placement){case"top":case"bottom":this.indicator.style.width=`${e}px`,this.indicator.style.height="auto",this.indicator.style.translate=s?`${-1*n.left}px`:`${n.left}px`;break;case"start":case"end":this.indicator.style.width="auto",this.indicator.style.height=`${i}px`,this.indicator.style.translate=`0 ${n.top}px`;break}}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then(()=>this.updateScrollControls())}updateScrollControls(){this.noScrollControls?this.hasScrollControls=!1:this.hasScrollControls=["top","bottom"].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth}syncIndicator(){this.getActiveTab()?(this.indicator.style.display="block",this.repositionIndicator()):this.indicator.style.display="none"}show(t){const e=this.tabs.find(i=>i.panel===t);e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){const t=this.localize.dir()==="rtl";return y`
|
|
1847
1847
|
<div
|
|
1848
1848
|
part="base"
|
|
1849
1849
|
class=${O({"tab-group":!0,"tab-group--top":this.placement==="top","tab-group--bottom":this.placement==="bottom","tab-group--start":this.placement==="start","tab-group--end":this.placement==="end","tab-group--rtl":this.localize.dir()==="rtl","tab-group--has-scroll-controls":this.hasScrollControls})}
|
|
@@ -1885,7 +1885,7 @@
|
|
|
1885
1885
|
|
|
1886
1886
|
<slot part="body" class="tab-group__body" @slotchange=${this.syncTabsAndPanels}></slot>
|
|
1887
1887
|
</div>
|
|
1888
|
-
`}};$t.styles=
|
|
1888
|
+
`}};$t.styles=Ta;$t.dependencies={"sl-icon-button":st};r([k(".tab-group")],$t.prototype,"tabGroup",2);r([k(".tab-group__body")],$t.prototype,"body",2);r([k(".tab-group__nav")],$t.prototype,"nav",2);r([k(".tab-group__indicator")],$t.prototype,"indicator",2);r([D()],$t.prototype,"hasScrollControls",2);r([l()],$t.prototype,"placement",2);r([l()],$t.prototype,"activation",2);r([l({attribute:"no-scroll-controls",type:Boolean})],$t.prototype,"noScrollControls",2);r([x("noScrollControls",{waitUntilFirstUpdate:!0})],$t.prototype,"updateScrollControls",1);r([x("placement",{waitUntilFirstUpdate:!0})],$t.prototype,"syncIndicator",1);$t.define("sl-tab-group");var ko=Je;Je.define("sl-spinner");var Oa=T`
|
|
1889
1889
|
${L}
|
|
1890
1890
|
|
|
1891
1891
|
:host {
|
|
@@ -1992,13 +1992,13 @@
|
|
|
1992
1992
|
</div>
|
|
1993
1993
|
|
|
1994
1994
|
<slot name="end" part="panel end" class="end"></slot>
|
|
1995
|
-
`}};Ct.styles=
|
|
1995
|
+
`}};Ct.styles=Oa;r([k(".divider")],Ct.prototype,"divider",2);r([l({type:Number,reflect:!0})],Ct.prototype,"position",2);r([l({attribute:"position-in-pixels",type:Number})],Ct.prototype,"positionInPixels",2);r([l({type:Boolean,reflect:!0})],Ct.prototype,"vertical",2);r([l({type:Boolean,reflect:!0})],Ct.prototype,"disabled",2);r([l()],Ct.prototype,"primary",2);r([l()],Ct.prototype,"snap",2);r([l({type:Number,attribute:"snap-threshold"})],Ct.prototype,"snapThreshold",2);r([x("position")],Ct.prototype,"handlePositionChange",1);r([x("positionInPixels")],Ct.prototype,"handlePositionInPixelsChange",1);r([x("vertical")],Ct.prototype,"handleVerticalChange",1);Ct.define("sl-split-panel");var Da=T`
|
|
1996
1996
|
${L}
|
|
1997
1997
|
|
|
1998
1998
|
:host {
|
|
1999
1999
|
display: contents;
|
|
2000
2000
|
}
|
|
2001
|
-
`,
|
|
2001
|
+
`,Ai=class extends z{constructor(){super(...arguments),this.observedElements=[],this.disabled=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(t=>{this.emit("sl-resize",{detail:{entries:t}})}),this.disabled||this.startObserver()}disconnectedCallback(){super.disconnectedCallback(),this.stopObserver()}handleSlotChange(){this.disabled||this.startObserver()}startObserver(){const t=this.shadowRoot.querySelector("slot");if(t!==null){const e=t.assignedElements({flatten:!0});this.observedElements.forEach(i=>this.resizeObserver.unobserve(i)),this.observedElements=[],e.forEach(i=>{this.resizeObserver.observe(i),this.observedElements.push(i)})}}stopObserver(){this.resizeObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}render(){return y` <slot @slotchange=${this.handleSlotChange}></slot> `}};Ai.styles=Da;r([l({type:Boolean,reflect:!0})],Ai.prototype,"disabled",2);r([x("disabled",{waitUntilFirstUpdate:!0})],Ai.prototype,"handleDisabledChange",1);Ai.define("sl-resize-observer");var Pa=T`
|
|
2002
2002
|
${L}
|
|
2003
2003
|
${si}
|
|
2004
2004
|
|
|
@@ -2329,7 +2329,7 @@
|
|
|
2329
2329
|
* @license
|
|
2330
2330
|
* Copyright 2017 Google LLC
|
|
2331
2331
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2332
|
-
*/let
|
|
2332
|
+
*/let ts=class extends Ze{constructor(e){if(super(e),this.et=W,e.type!==Ft.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===W||e==null)return this.vt=void 0,this.et=e;if(e===wt)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;const i=[e];return i.raw=i,this.vt={_$litType$:this.constructor.resultType,strings:i,values:[]}}};ts.directiveName="unsafeHTML",ts.resultType=1;const mi=Qe(ts);var V=class extends z{constructor(){super(...arguments),this.formControlController=new Gt(this,{assumeInteractionOn:["sl-blur","sl-input"]}),this.hasSlotController=new kt(this,"help-text","label"),this.localize=new U(this),this.typeToSelectString="",this.hasFocus=!1,this.displayLabel="",this.selectedOptions=[],this.name="",this.value="",this.defaultValue="",this.size="medium",this.placeholder="",this.multiple=!1,this.maxOptionsVisible=3,this.disabled=!1,this.clearable=!1,this.open=!1,this.hoist=!1,this.filled=!1,this.pill=!1,this.label="",this.placement="bottom",this.helpText="",this.form="",this.required=!1,this.getTag=t=>y`
|
|
2333
2333
|
<sl-tag
|
|
2334
2334
|
part="tag"
|
|
2335
2335
|
exportparts="
|
|
@@ -2347,7 +2347,7 @@
|
|
|
2347
2347
|
</sl-tag>
|
|
2348
2348
|
`,this.handleDocumentFocusIn=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()},this.handleDocumentKeyDown=t=>{const e=t.target,i=e.closest(".select__clear")!==null,s=e.closest("sl-icon-button")!==null;if(!(i||s)){if(t.key==="Escape"&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),t.key==="Enter"||t.key===" "&&this.typeToSelectString===""){if(t.preventDefault(),t.stopImmediatePropagation(),!this.open){this.show();return}this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then(()=>{this.emit("sl-input"),this.emit("sl-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})));return}if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const o=this.getAllOptions(),a=o.indexOf(this.currentOption);let n=Math.max(0,a);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;t.key==="ArrowDown"?(n=a+1,n>o.length-1&&(n=0)):t.key==="ArrowUp"?(n=a-1,n<0&&(n=o.length-1)):t.key==="Home"?n=0:t.key==="End"&&(n=o.length-1),this.setCurrentOption(o[n])}if(t.key.length===1||t.key==="Backspace"){const o=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if(t.key==="Backspace")return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout(()=>this.typeToSelectString="",1e3),t.key==="Backspace"?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(const a of o)if(a.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(a);break}}}},this.handleDocumentMouseDown=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.open=!1}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sl-focus")}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(t){const i=t.composedPath().some(s=>s instanceof Element&&s.tagName.toLowerCase()==="sl-icon-button");this.disabled||i||(t.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.value!==""&&(this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sl-clear"),this.emit("sl-input"),this.emit("sl-change")}))}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){const i=t.target.closest("sl-option"),s=this.value;i&&!i.disabled&&(this.multiple?this.toggleOptionSelection(i):this.setSelectedOptions(i),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})),this.value!==s&&this.updateComplete.then(()=>{this.emit("sl-input"),this.emit("sl-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],i=[];customElements.get("sl-option")?(t.forEach(s=>i.push(s.value)),this.setSelectedOptions(t.filter(s=>e.includes(s.value)))):customElements.whenDefined("sl-option").then(()=>this.handleDefaultSlotChange())}handleTagRemove(t,e){t.stopPropagation(),this.disabled||(this.toggleOptionSelection(e,!1),this.updateComplete.then(()=>{this.emit("sl-input"),this.emit("sl-change")}))}getAllOptions(){return[...this.querySelectorAll("sl-option")]}getFirstOption(){return this.querySelector("sl-option")}setCurrentOption(t){this.getAllOptions().forEach(i=>{i.current=!1,i.tabIndex=-1}),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus())}setSelectedOptions(t){const e=this.getAllOptions(),i=Array.isArray(t)?t:[t];e.forEach(s=>s.selected=!1),i.length&&i.forEach(s=>s.selected=!0),this.selectionChanged()}toggleOptionSelection(t,e){e===!0||e===!1?t.selected=e:t.selected=!t.selected,this.selectionChanged()}selectionChanged(){var t,e,i,s;this.selectedOptions=this.getAllOptions().filter(o=>o.selected),this.multiple?(this.value=this.selectedOptions.map(o=>o.value),this.placeholder&&this.value.length===0?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(e=(t=this.selectedOptions[0])==null?void 0:t.value)!=null?e:"",this.displayLabel=(s=(i=this.selectedOptions[0])==null?void 0:i.getTextLabel())!=null?s:""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}get tags(){return this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){const i=this.getTag(t,e);return y`<div @sl-remove=${s=>this.handleTagRemove(s,t)}>
|
|
2349
2349
|
${typeof i=="string"?mi(i):i}
|
|
2350
|
-
</div>`}else if(e===this.maxOptionsVisible)return y`<sl-tag>+${this.selectedOptions.length-e}</sl-tag>`;return y``})}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}handleValueChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter(i=>e.includes(i.value)))}async handleOpenChange(){if(this.open&&!this.disabled){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sl-show"),this.addOpenListeners(),await et(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});const{keyframes:t,options:e}=X(this,"select.show",{dir:this.localize.dir()});await Z(this.popup.popup,t,e),this.currentOption&&
|
|
2350
|
+
</div>`}else if(e===this.maxOptionsVisible)return y`<sl-tag>+${this.selectedOptions.length-e}</sl-tag>`;return y``})}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}handleValueChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter(i=>e.includes(i.value)))}async handleOpenChange(){if(this.open&&!this.disabled){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sl-show"),this.addOpenListeners(),await et(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});const{keyframes:t,options:e}=X(this,"select.show",{dir:this.localize.dir()});await Z(this.popup.popup,t,e),this.currentOption&&Ji(this.currentOption,this.listbox,"vertical","auto"),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),await et(this);const{keyframes:t,options:e}=X(this,"select.hide",{dir:this.localize.dir()});await Z(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sl-after-hide")}}async show(){if(this.open||this.disabled){this.open=!1;return}return this.open=!0,mt(this,"sl-after-show")}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.open=!1,mt(this,"sl-after-hide")}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=this.label?!0:!!t,s=this.helpText?!0:!!e,o=this.clearable&&!this.disabled&&this.value.length>0,a=this.placeholder&&this.value.length===0;return y`
|
|
2351
2351
|
<div
|
|
2352
2352
|
part="form-control"
|
|
2353
2353
|
class=${O({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":i,"form-control--has-help-text":s})}
|
|
@@ -2466,7 +2466,7 @@
|
|
|
2466
2466
|
<slot name="help-text">${this.helpText}</slot>
|
|
2467
2467
|
</div>
|
|
2468
2468
|
</div>
|
|
2469
|
-
`}};V.styles=
|
|
2469
|
+
`}};V.styles=Pa;V.dependencies={"sl-icon":K,"sl-popup":j,"sl-tag":re};r([k(".select")],V.prototype,"popup",2);r([k(".select__combobox")],V.prototype,"combobox",2);r([k(".select__display-input")],V.prototype,"displayInput",2);r([k(".select__value-input")],V.prototype,"valueInput",2);r([k(".select__listbox")],V.prototype,"listbox",2);r([D()],V.prototype,"hasFocus",2);r([D()],V.prototype,"displayLabel",2);r([D()],V.prototype,"currentOption",2);r([D()],V.prototype,"selectedOptions",2);r([l()],V.prototype,"name",2);r([l({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],V.prototype,"value",2);r([fe()],V.prototype,"defaultValue",2);r([l({reflect:!0})],V.prototype,"size",2);r([l()],V.prototype,"placeholder",2);r([l({type:Boolean,reflect:!0})],V.prototype,"multiple",2);r([l({attribute:"max-options-visible",type:Number})],V.prototype,"maxOptionsVisible",2);r([l({type:Boolean,reflect:!0})],V.prototype,"disabled",2);r([l({type:Boolean})],V.prototype,"clearable",2);r([l({type:Boolean,reflect:!0})],V.prototype,"open",2);r([l({type:Boolean})],V.prototype,"hoist",2);r([l({type:Boolean,reflect:!0})],V.prototype,"filled",2);r([l({type:Boolean,reflect:!0})],V.prototype,"pill",2);r([l()],V.prototype,"label",2);r([l({reflect:!0})],V.prototype,"placement",2);r([l({attribute:"help-text"})],V.prototype,"helpText",2);r([l({reflect:!0})],V.prototype,"form",2);r([l({type:Boolean,reflect:!0})],V.prototype,"required",2);r([l()],V.prototype,"getTag",2);r([x("disabled",{waitUntilFirstUpdate:!0})],V.prototype,"handleDisabledChange",1);r([x("value",{waitUntilFirstUpdate:!0})],V.prototype,"handleValueChange",1);r([x("open",{waitUntilFirstUpdate:!0})],V.prototype,"handleOpenChange",1);q("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});q("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});V.define("sl-select");var Ma=T`
|
|
2470
2470
|
${L}
|
|
2471
2471
|
|
|
2472
2472
|
:host {
|
|
@@ -2536,7 +2536,7 @@
|
|
|
2536
2536
|
>
|
|
2537
2537
|
<div part="indicator" class="skeleton__indicator"></div>
|
|
2538
2538
|
</div>
|
|
2539
|
-
`}};gs.styles=
|
|
2539
|
+
`}};gs.styles=Ma;r([l()],gs.prototype,"effect",2);gs.define("sl-skeleton");var Ra=T`
|
|
2540
2540
|
${L}
|
|
2541
2541
|
${si}
|
|
2542
2542
|
|
|
@@ -2824,7 +2824,7 @@
|
|
|
2824
2824
|
<slot name="help-text">${this.helpText}</slot>
|
|
2825
2825
|
</div>
|
|
2826
2826
|
</div>
|
|
2827
|
-
`}};Y.styles=
|
|
2827
|
+
`}};Y.styles=Ra;r([k(".range__control")],Y.prototype,"input",2);r([k(".range__tooltip")],Y.prototype,"output",2);r([D()],Y.prototype,"hasFocus",2);r([D()],Y.prototype,"hasTooltip",2);r([l()],Y.prototype,"title",2);r([l()],Y.prototype,"name",2);r([l({type:Number})],Y.prototype,"value",2);r([l()],Y.prototype,"label",2);r([l({attribute:"help-text"})],Y.prototype,"helpText",2);r([l({type:Boolean,reflect:!0})],Y.prototype,"disabled",2);r([l({type:Number})],Y.prototype,"min",2);r([l({type:Number})],Y.prototype,"max",2);r([l({type:Number})],Y.prototype,"step",2);r([l()],Y.prototype,"tooltip",2);r([l({attribute:!1})],Y.prototype,"tooltipFormatter",2);r([l({reflect:!0})],Y.prototype,"form",2);r([fe()],Y.prototype,"defaultValue",2);r([Js({passive:!0})],Y.prototype,"handleThumbDragStart",1);r([x("value",{waitUntilFirstUpdate:!0})],Y.prototype,"handleValueChange",1);r([x("disabled",{waitUntilFirstUpdate:!0})],Y.prototype,"handleDisabledChange",1);r([x("hasTooltip",{waitUntilFirstUpdate:!0})],Y.prototype,"syncRange",1);Y.define("sl-range");var Fa=T`
|
|
2828
2828
|
${L}
|
|
2829
2829
|
|
|
2830
2830
|
:host {
|
|
@@ -2917,7 +2917,7 @@
|
|
|
2917
2917
|
* @license
|
|
2918
2918
|
* Copyright 2018 Google LLC
|
|
2919
2919
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2920
|
-
*/const $o="important",
|
|
2920
|
+
*/const $o="important",Va=" !"+$o,gt=Qe(class extends Ze{constructor(t){var e;if(super(t),t.type!==Ft.ATTRIBUTE||t.name!=="style"||((e=t.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,i)=>{const s=t[i];return s==null?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(t,[e]){const{style:i}=t.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(const s of this.ut)e[s]==null&&(this.ut.delete(s),s.includes("-")?i.removeProperty(s):i[s]=null);for(const s in e){const o=e[s];if(o!=null){this.ut.add(s);const a=typeof o=="string"&&o.endsWith(Va);s.includes("-")||a?i.setProperty(s,a?o.slice(0,-11):o,a?$o:""):i[s]=o}}return wt}});var ut=class extends z{constructor(){super(...arguments),this.localize=new U(this),this.hoverValue=0,this.isHovering=!1,this.label="",this.value=0,this.max=5,this.precision=1,this.readonly=!1,this.disabled=!1,this.getSymbol=()=>'<sl-icon name="star-fill" library="system"></sl-icon>'}getValueFromMousePosition(t){return this.getValueFromXCoordinate(t.clientX)}getValueFromTouchPosition(t){return this.getValueFromXCoordinate(t.touches[0].clientX)}getValueFromXCoordinate(t){const e=this.localize.dir()==="rtl",{left:i,right:s,width:o}=this.rating.getBoundingClientRect(),a=e?this.roundToPrecision((s-t)/o*this.max,this.precision):this.roundToPrecision((t-i)/o*this.max,this.precision);return tt(a,0,this.max)}handleClick(t){this.disabled||(this.setValue(this.getValueFromMousePosition(t)),this.emit("sl-change"))}setValue(t){this.disabled||this.readonly||(this.value=t===this.value?0:t,this.isHovering=!1)}handleKeyDown(t){const e=this.localize.dir()==="ltr",i=this.localize.dir()==="rtl",s=this.value;if(!(this.disabled||this.readonly)){if(t.key==="ArrowDown"||e&&t.key==="ArrowLeft"||i&&t.key==="ArrowRight"){const o=t.shiftKey?1:this.precision;this.value=Math.max(0,this.value-o),t.preventDefault()}if(t.key==="ArrowUp"||e&&t.key==="ArrowRight"||i&&t.key==="ArrowLeft"){const o=t.shiftKey?1:this.precision;this.value=Math.min(this.max,this.value+o),t.preventDefault()}t.key==="Home"&&(this.value=0,t.preventDefault()),t.key==="End"&&(this.value=this.max,t.preventDefault()),this.value!==s&&this.emit("sl-change")}}handleMouseEnter(t){this.isHovering=!0,this.hoverValue=this.getValueFromMousePosition(t)}handleMouseMove(t){this.hoverValue=this.getValueFromMousePosition(t)}handleMouseLeave(){this.isHovering=!1}handleTouchStart(t){this.isHovering=!0,this.hoverValue=this.getValueFromTouchPosition(t),t.preventDefault()}handleTouchMove(t){this.hoverValue=this.getValueFromTouchPosition(t)}handleTouchEnd(t){this.isHovering=!1,this.setValue(this.hoverValue),this.emit("sl-change"),t.preventDefault()}roundToPrecision(t,e=.5){const i=1/e;return Math.ceil(t*i)/i}handleHoverValueChange(){this.emit("sl-hover",{detail:{phase:"move",value:this.hoverValue}})}handleIsHoveringChange(){this.emit("sl-hover",{detail:{phase:this.isHovering?"start":"end",value:this.hoverValue}})}focus(t){this.rating.focus(t)}blur(){this.rating.blur()}render(){const t=this.localize.dir()==="rtl",e=Array.from(Array(this.max).keys());let i=0;return this.disabled||this.readonly?i=this.value:i=this.isHovering?this.hoverValue:this.value,y`
|
|
2921
2921
|
<div
|
|
2922
2922
|
part="base"
|
|
2923
2923
|
class=${O({rating:!0,"rating--readonly":this.readonly,"rating--disabled":this.disabled,"rating--rtl":t})}
|
|
@@ -2968,7 +2968,7 @@
|
|
|
2968
2968
|
`)}
|
|
2969
2969
|
</span>
|
|
2970
2970
|
</div>
|
|
2971
|
-
`}};ut.styles=
|
|
2971
|
+
`}};ut.styles=Fa;ut.dependencies={"sl-icon":K};r([k(".rating")],ut.prototype,"rating",2);r([D()],ut.prototype,"hoverValue",2);r([D()],ut.prototype,"isHovering",2);r([l()],ut.prototype,"label",2);r([l({type:Number})],ut.prototype,"value",2);r([l({type:Number})],ut.prototype,"max",2);r([l({type:Number})],ut.prototype,"precision",2);r([l({type:Boolean,reflect:!0})],ut.prototype,"readonly",2);r([l({type:Boolean,reflect:!0})],ut.prototype,"disabled",2);r([l()],ut.prototype,"getSymbol",2);r([Js({passive:!0})],ut.prototype,"handleTouchMove",1);r([x("hoverValue")],ut.prototype,"handleHoverValueChange",1);r([x("isHovering")],ut.prototype,"handleIsHoveringChange",1);ut.define("sl-rating");var Ba=[{max:276e4,value:6e4,unit:"minute"},{max:72e6,value:36e5,unit:"hour"},{max:5184e5,value:864e5,unit:"day"},{max:24192e5,value:6048e5,unit:"week"},{max:28512e6,value:2592e6,unit:"month"},{max:1/0,value:31536e6,unit:"year"}],ae=class extends z{constructor(){super(...arguments),this.localize=new U(this),this.isoTime="",this.relativeTime="",this.titleTime="",this.date=new Date,this.format="long",this.numeric="auto",this.sync=!1}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.updateTimeout)}render(){const t=new Date,e=new Date(this.date);if(isNaN(e.getMilliseconds()))return this.relativeTime="",this.isoTime="","";const i=e.getTime()-t.getTime(),{unit:s,value:o}=Ba.find(a=>Math.abs(i)<a.max);if(this.isoTime=e.toISOString(),this.titleTime=this.localize.date(e,{month:"long",year:"numeric",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"}),this.relativeTime=this.localize.relativeTime(Math.round(i/o),s,{numeric:this.numeric,style:this.format}),clearTimeout(this.updateTimeout),this.sync){let a;s==="minute"?a=di("second"):s==="hour"?a=di("minute"):s==="day"?a=di("hour"):a=di("day"),this.updateTimeout=window.setTimeout(()=>this.requestUpdate(),a)}return y` <time datetime=${this.isoTime} title=${this.titleTime}>${this.relativeTime}</time> `}};r([D()],ae.prototype,"isoTime",2);r([D()],ae.prototype,"relativeTime",2);r([D()],ae.prototype,"titleTime",2);r([l()],ae.prototype,"date",2);r([l()],ae.prototype,"format",2);r([l()],ae.prototype,"numeric",2);r([l({type:Boolean})],ae.prototype,"sync",2);function di(t){const i={second:1e3,minute:6e4,hour:36e5,day:864e5}[t];return i-Date.now()%i}ae.define("sl-relative-time");var Ua=T`
|
|
2972
2972
|
${L}
|
|
2973
2973
|
|
|
2974
2974
|
:host {
|
|
@@ -3093,7 +3093,7 @@
|
|
|
3093
3093
|
|
|
3094
3094
|
<slot part="label" class="radio__label"></slot>
|
|
3095
3095
|
</span>
|
|
3096
|
-
`}};Ut.styles=
|
|
3096
|
+
`}};Ut.styles=Ua;Ut.dependencies={"sl-icon":K};r([D()],Ut.prototype,"checked",2);r([D()],Ut.prototype,"hasFocus",2);r([l()],Ut.prototype,"value",2);r([l({reflect:!0})],Ut.prototype,"size",2);r([l({type:Boolean,reflect:!0})],Ut.prototype,"disabled",2);r([x("checked")],Ut.prototype,"handleCheckedChange",1);r([x("disabled",{waitUntilFirstUpdate:!0})],Ut.prototype,"handleDisabledChange",1);Ut.define("sl-radio");var Co=T`
|
|
3097
3097
|
${L}
|
|
3098
3098
|
|
|
3099
3099
|
:host {
|
|
@@ -3688,7 +3688,7 @@
|
|
|
3688
3688
|
:host(.sl-button-group__button[checked]) {
|
|
3689
3689
|
z-index: 2;
|
|
3690
3690
|
}
|
|
3691
|
-
`,
|
|
3691
|
+
`,Na=T`
|
|
3692
3692
|
${Co}
|
|
3693
3693
|
|
|
3694
3694
|
.button__prefix,
|
|
@@ -3732,7 +3732,7 @@
|
|
|
3732
3732
|
<slot name="suffix" part="suffix" class="button__suffix"></slot>
|
|
3733
3733
|
</button>
|
|
3734
3734
|
</div>
|
|
3735
|
-
`}};Ot.styles=
|
|
3735
|
+
`}};Ot.styles=Na;r([k(".button")],Ot.prototype,"input",2);r([k(".hidden-input")],Ot.prototype,"hiddenInput",2);r([D()],Ot.prototype,"hasFocus",2);r([l({type:Boolean,reflect:!0})],Ot.prototype,"checked",2);r([l()],Ot.prototype,"value",2);r([l({type:Boolean,reflect:!0})],Ot.prototype,"disabled",2);r([l({reflect:!0})],Ot.prototype,"size",2);r([l({type:Boolean,reflect:!0})],Ot.prototype,"pill",2);r([x("disabled",{waitUntilFirstUpdate:!0})],Ot.prototype,"handleDisabledChange",1);Ot.define("sl-radio-button");var Ha=T`
|
|
3736
3736
|
${L}
|
|
3737
3737
|
${si}
|
|
3738
3738
|
|
|
@@ -3767,7 +3767,7 @@
|
|
|
3767
3767
|
white-space: nowrap;
|
|
3768
3768
|
border: 0;
|
|
3769
3769
|
}
|
|
3770
|
-
`,
|
|
3770
|
+
`,qa=T`
|
|
3771
3771
|
${L}
|
|
3772
3772
|
|
|
3773
3773
|
:host {
|
|
@@ -3791,7 +3791,7 @@
|
|
|
3791
3791
|
>
|
|
3792
3792
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
3793
3793
|
</div>
|
|
3794
|
-
`}};be.styles=
|
|
3794
|
+
`}};be.styles=qa;r([k("slot")],be.prototype,"defaultSlot",2);r([D()],be.prototype,"disableRole",2);r([l()],be.prototype,"label",2);function Pe(t){var e;const i="sl-button, sl-radio-button";return(e=t.closest(i))!=null?e:t.querySelector(i)}var dt=class extends z{constructor(){super(...arguments),this.formControlController=new Gt(this),this.hasSlotController=new kt(this,"help-text","label"),this.customValidityMessage="",this.hasButtonGroup=!1,this.errorMessage="",this.defaultValue="",this.label="",this.helpText="",this.name="option",this.value="",this.size="medium",this.form="",this.required=!1}get validity(){const t=this.required&&!this.value;return this.customValidityMessage!==""?rr:t?or:$i}get validationMessage(){const t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sl-radio, sl-radio-button")]}handleRadioClick(t){const e=t.target.closest("sl-radio, sl-radio-button"),i=this.getAllRadios(),s=this.value;e.disabled||(this.value=e.value,i.forEach(o=>o.checked=o===e),this.value!==s&&(this.emit("sl-change"),this.emit("sl-input")))}handleKeyDown(t){var e;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;const i=this.getAllRadios().filter(d=>!d.disabled),s=(e=i.find(d=>d.checked))!=null?e:i[0],o=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,a=this.value;let n=i.indexOf(s)+o;n<0&&(n=i.length-1),n>i.length-1&&(n=0),this.getAllRadios().forEach(d=>{d.checked=!1,this.hasButtonGroup||(d.tabIndex=-1)}),this.value=i[n].value,i[n].checked=!0,this.hasButtonGroup?i[n].shadowRoot.querySelector("button").focus():(i[n].tabIndex=0,i[n].focus()),this.value!==a&&(this.emit("sl-change"),this.emit("sl-input")),t.preventDefault()}handleLabelClick(){const t=this.getAllRadios(),i=t.find(s=>s.checked)||t[0];i&&i.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}async syncRadioElements(){var t,e;const i=this.getAllRadios();if(await Promise.all(i.map(async s=>{await s.updateComplete,s.checked=s.value===this.value,s.size=this.size})),this.hasButtonGroup=i.some(s=>s.tagName.toLowerCase()==="sl-radio-button"),!i.some(s=>s.checked))if(this.hasButtonGroup){const s=(t=i[0].shadowRoot)==null?void 0:t.querySelector("button");s&&(s.tabIndex=0)}else i[0].tabIndex=0;if(this.hasButtonGroup){const s=(e=this.shadowRoot)==null?void 0:e.querySelector("sl-button-group");s&&(s.disableRole=!0)}}syncRadios(){if(customElements.get("sl-radio")&&customElements.get("sl-radio-button")){this.syncRadioElements();return}customElements.get("sl-radio")?this.syncRadioElements():customElements.whenDefined("sl-radio").then(()=>this.syncRadios()),customElements.get("sl-radio-button")?this.syncRadioElements():customElements.whenDefined("sl-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){const t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){const t=this.validity.valid;return this.errorMessage=this.customValidityMessage||t?"":this.validationInput.validationMessage,this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.errorMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=this.label?!0:!!t,s=this.helpText?!0:!!e,o=y`
|
|
3795
3795
|
<slot @slotchange=${this.syncRadios} @click=${this.handleRadioClick} @keydown=${this.handleKeyDown}></slot>
|
|
3796
3796
|
`;return y`
|
|
3797
3797
|
<fieldset
|
|
@@ -3843,7 +3843,7 @@
|
|
|
3843
3843
|
<slot name="help-text">${this.helpText}</slot>
|
|
3844
3844
|
</div>
|
|
3845
3845
|
</fieldset>
|
|
3846
|
-
`}};dt.styles=
|
|
3846
|
+
`}};dt.styles=Ha;dt.dependencies={"sl-button-group":be};r([k("slot:not([name])")],dt.prototype,"defaultSlot",2);r([k(".radio-group__validation-input")],dt.prototype,"validationInput",2);r([D()],dt.prototype,"hasButtonGroup",2);r([D()],dt.prototype,"errorMessage",2);r([D()],dt.prototype,"defaultValue",2);r([l()],dt.prototype,"label",2);r([l({attribute:"help-text"})],dt.prototype,"helpText",2);r([l()],dt.prototype,"name",2);r([l({reflect:!0})],dt.prototype,"value",2);r([l({reflect:!0})],dt.prototype,"size",2);r([l({reflect:!0})],dt.prototype,"form",2);r([l({type:Boolean,reflect:!0})],dt.prototype,"required",2);r([x("size",{waitUntilFirstUpdate:!0})],dt.prototype,"handleSizeChange",1);r([x("value")],dt.prototype,"handleValueChange",1);dt.define("sl-radio-group");var ja=T`
|
|
3847
3847
|
${L}
|
|
3848
3848
|
|
|
3849
3849
|
:host {
|
|
@@ -3929,13 +3929,13 @@
|
|
|
3929
3929
|
|
|
3930
3930
|
<slot id="label" part="label" class="progress-ring__label"></slot>
|
|
3931
3931
|
</div>
|
|
3932
|
-
`}};Ae.styles=
|
|
3932
|
+
`}};Ae.styles=ja;r([k(".progress-ring__indicator")],Ae.prototype,"indicator",2);r([D()],Ae.prototype,"indicatorOffset",2);r([l({type:Number,reflect:!0})],Ae.prototype,"value",2);r([l()],Ae.prototype,"label",2);Ae.define("sl-progress-ring");var Ka=T`
|
|
3933
3933
|
${L}
|
|
3934
3934
|
|
|
3935
3935
|
:host {
|
|
3936
3936
|
display: inline-block;
|
|
3937
3937
|
}
|
|
3938
|
-
`;let So=null;class zo{}zo.render=function(t,e){So(t,e)};self.QrCreator=zo;(function(t){function e(d,c,h,b){var u={},p=t(h,c);p.u(d),p.J(),b=b||0;var f=p.h(),m=p.h()+2*b;return u.text=d,u.level=c,u.version=h,u.O=m,u.a=function(v,C){return v-=b,C-=b,0>v||v>=f||0>C||C>=f?!1:p.a(v,C)},u}function i(d,c,h,b,u,p,f,m,v,C){function E(w,$,g,_,S,R,F){w?(d.lineTo($+R,g+F),d.arcTo($,g,_,S,p)):d.lineTo($,g)}f?d.moveTo(c+p,h):d.moveTo(c,h),E(m,b,h,b,u,-p,0),E(v,b,u,c,u,0,-p),E(C,c,u,c,h,p,0),E(f,c,h,b,h,0,p)}function s(d,c,h,b,u,p,f,m,v,C){function E(w,$,g,_){d.moveTo(w+g,$),d.lineTo(w,$),d.lineTo(w,$+_),d.arcTo(w,$,w+g,$,p)}f&&E(c,h,p,p),m&&E(b,h,-p,p),v&&E(b,u,-p,-p),C&&E(c,u,p,-p)}function o(d,c){var h=c.fill;if(typeof h=="string")d.fillStyle=h;else{var b=h.type,u=h.colorStops;if(h=h.position.map(f=>Math.round(f*c.size)),b==="linear-gradient")var p=d.createLinearGradient.apply(d,h);else if(b==="radial-gradient")p=d.createRadialGradient.apply(d,h);else throw Error("Unsupported fill");u.forEach(([f,m])=>{p.addColorStop(f,m)}),d.fillStyle=p}}function a(d,c){t:{var h=c.text,b=c.v,u=c.N,p=c.K,f=c.P;for(u=Math.max(1,u||1),p=Math.min(40,p||40);u<=p;u+=1)try{var m=e(h,b,u,f);break t}catch{}m=void 0}if(!m)return null;for(h=d.getContext("2d"),c.background&&(h.fillStyle=c.background,h.fillRect(c.left,c.top,c.size,c.size)),b=m.O,p=c.size/b,h.beginPath(),f=0;f<b;f+=1)for(u=0;u<b;u+=1){var v=h,C=c.left+u*p,E=c.top+f*p,w=f,$=u,g=m.a,_=C+p,S=E+p,R=w-1,F=w+1,P=$-1,I=$+1,ht=Math.floor(Math.min(.5,Math.max(0,c.R))*p),G=g(w,$),vt=g(R,P),ot=g(R,$);R=g(R,I);var ft=g(w,I);I=g(F,I),$=g(F,$),F=g(F,P),w=g(w,P),C=Math.round(C),E=Math.round(E),_=Math.round(_),S=Math.round(S),G?i(v,C,E,_,S,ht,!ot&&!w,!ot&&!ft,!$&&!ft,!$&&!w):s(v,C,E,_,S,ht,ot&&w&&vt,ot&&ft&&R,$&&ft&&I,$&&w&&F)}return o(h,c),h.fill(),d}var n={minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:.5,quiet:0};So=function(d,c){var h={};Object.assign(h,n,d),h.N=h.minVersion,h.K=h.maxVersion,h.v=h.ecLevel,h.left=h.left,h.top=h.top,h.size=h.size,h.fill=h.fill,h.background=h.background,h.text=h.text,h.R=h.radius,h.P=h.quiet,c instanceof HTMLCanvasElement?((c.width!==h.size||c.height!==h.size)&&(c.width=h.size,c.height=h.size),c.getContext("2d").clearRect(0,0,c.width,c.height),a(c,h)):(d=document.createElement("canvas"),d.width=h.size,d.height=h.size,h=a(d,h),c.appendChild(h))}})(function(){function t(c){var h=i.s(c);return{S:function(){return 4},b:function(){return h.length},write:function(b){for(var u=0;u<h.length;u+=1)b.put(h[u],8)}}}function e(){var c=[],h=0,b={B:function(){return c},c:function(u){return(c[Math.floor(u/8)]>>>7-u%8&1)==1},put:function(u,p){for(var f=0;f<p;f+=1)b.m((u>>>p-f-1&1)==1)},f:function(){return h},m:function(u){var p=Math.floor(h/8);c.length<=p&&c.push(0),u&&(c[p]|=128>>>h%8),h+=1}};return b}function i(c,h){function b(w,$){for(var g=-1;7>=g;g+=1)if(!(-1>=w+g||m<=w+g))for(var _=-1;7>=_;_+=1)-1>=$+_||m<=$+_||(f[w+g][$+_]=0<=g&&6>=g&&(_==0||_==6)||0<=_&&6>=_&&(g==0||g==6)||2<=g&&4>=g&&2<=_&&4>=_)}function u(w,$){for(var g=m=4*c+17,_=Array(g),S=0;S<g;S+=1){_[S]=Array(g);for(var R=0;R<g;R+=1)_[S][R]=null}for(f=_,b(0,0),b(m-7,0),b(0,m-7),g=a.G(c),_=0;_<g.length;_+=1)for(S=0;S<g.length;S+=1){R=g[_];var F=g[S];if(f[R][F]==null)for(var P=-2;2>=P;P+=1)for(var I=-2;2>=I;I+=1)f[R+P][F+I]=P==-2||P==2||I==-2||I==2||P==0&&I==0}for(g=8;g<m-8;g+=1)f[g][6]==null&&(f[g][6]=g%2==0);for(g=8;g<m-8;g+=1)f[6][g]==null&&(f[6][g]=g%2==0);for(g=a.w(p<<3|$),_=0;15>_;_+=1)S=!w&&(g>>_&1)==1,f[6>_?_:8>_?_+1:m-15+_][8]=S,f[8][8>_?m-_-1:9>_?15-_:14-_]=S;if(f[m-8][8]=!w,7<=c){for(g=a.A(c),_=0;18>_;_+=1)S=!w&&(g>>_&1)==1,f[Math.floor(_/3)][_%3+m-8-3]=S;for(_=0;18>_;_+=1)S=!w&&(g>>_&1)==1,f[_%3+m-8-3][Math.floor(_/3)]=S}if(v==null){for(w=d.I(c,p),g=e(),_=0;_<C.length;_+=1)S=C[_],g.put(4,4),g.put(S.b(),a.f(4,c)),S.write(g);for(_=S=0;_<w.length;_+=1)S+=w[_].j;if(g.f()>8*S)throw Error("code length overflow. ("+g.f()+">"+8*S+")");for(g.f()+4<=8*S&&g.put(0,4);g.f()%8!=0;)g.m(!1);for(;!(g.f()>=8*S)&&(g.put(236,8),!(g.f()>=8*S));)g.put(17,8);var ht=0;for(S=_=0,R=Array(w.length),F=Array(w.length),P=0;P<w.length;P+=1){var G=w[P].j,vt=w[P].o-G;for(_=Math.max(_,G),S=Math.max(S,vt),R[P]=Array(G),I=0;I<R[P].length;I+=1)R[P][I]=255&g.B()[I+ht];for(ht+=G,I=a.C(vt),G=s(R[P],I.b()-1).l(I),F[P]=Array(I.b()-1),I=0;I<F[P].length;I+=1)vt=I+G.b()-F[P].length,F[P][I]=0<=vt?G.c(vt):0}for(I=g=0;I<w.length;I+=1)g+=w[I].o;for(g=Array(g),I=ht=0;I<_;I+=1)for(P=0;P<w.length;P+=1)I<R[P].length&&(g[ht]=R[P][I],ht+=1);for(I=0;I<S;I+=1)for(P=0;P<w.length;P+=1)I<F[P].length&&(g[ht]=F[P][I],ht+=1);v=g}for(w=v,g=-1,_=m-1,S=7,R=0,$=a.F($),F=m-1;0<F;F-=2)for(F==6&&--F;;){for(P=0;2>P;P+=1)f[_][F-P]==null&&(I=!1,R<w.length&&(I=(w[R]>>>S&1)==1),$(_,F-P)&&(I=!I),f[_][F-P]=I,--S,S==-1&&(R+=1,S=7));if(_+=g,0>_||m<=_){_-=g,g=-g;break}}}var p=o[h],f=null,m=0,v=null,C=[],E={u:function(w){w=t(w),C.push(w),v=null},a:function(w,$){if(0>w||m<=w||0>$||m<=$)throw Error(w+","+$);return f[w][$]},h:function(){return m},J:function(){for(var w=0,$=0,g=0;8>g;g+=1){u(!0,g);var _=a.D(E);(g==0||w>_)&&(w=_,$=g)}u(!1,$)}};return E}function s(c,h){if(typeof c.length>"u")throw Error(c.length+"/"+h);var b=function(){for(var p=0;p<c.length&&c[p]==0;)p+=1;for(var f=Array(c.length-p+h),m=0;m<c.length-p;m+=1)f[m]=c[m+p];return f}(),u={c:function(p){return b[p]},b:function(){return b.length},multiply:function(p){for(var f=Array(u.b()+p.b()-1),m=0;m<u.b();m+=1)for(var v=0;v<p.b();v+=1)f[m+v]^=n.i(n.g(u.c(m))+n.g(p.c(v)));return s(f,0)},l:function(p){if(0>u.b()-p.b())return u;for(var f=n.g(u.c(0))-n.g(p.c(0)),m=Array(u.b()),v=0;v<u.b();v+=1)m[v]=u.c(v);for(v=0;v<p.b();v+=1)m[v]^=n.i(n.g(p.c(v))+f);return s(m,0).l(p)}};return u}i.s=function(c){for(var h=[],b=0;b<c.length;b++){var u=c.charCodeAt(b);128>u?h.push(u):2048>u?h.push(192|u>>6,128|u&63):55296>u||57344<=u?h.push(224|u>>12,128|u>>6&63,128|u&63):(b++,u=65536+((u&1023)<<10|c.charCodeAt(b)&1023),h.push(240|u>>18,128|u>>12&63,128|u>>6&63,128|u&63))}return h};var o={L:1,M:0,Q:3,H:2},a=function(){function c(u){for(var p=0;u!=0;)p+=1,u>>>=1;return p}var h=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],b={w:function(u){for(var p=u<<10;0<=c(p)-c(1335);)p^=1335<<c(p)-c(1335);return(u<<10|p)^21522},A:function(u){for(var p=u<<12;0<=c(p)-c(7973);)p^=7973<<c(p)-c(7973);return u<<12|p},G:function(u){return h[u-1]},F:function(u){switch(u){case 0:return function(p,f){return(p+f)%2==0};case 1:return function(p){return p%2==0};case 2:return function(p,f){return f%3==0};case 3:return function(p,f){return(p+f)%3==0};case 4:return function(p,f){return(Math.floor(p/2)+Math.floor(f/3))%2==0};case 5:return function(p,f){return p*f%2+p*f%3==0};case 6:return function(p,f){return(p*f%2+p*f%3)%2==0};case 7:return function(p,f){return(p*f%3+(p+f)%2)%2==0};default:throw Error("bad maskPattern:"+u)}},C:function(u){for(var p=s([1],0),f=0;f<u;f+=1)p=p.multiply(s([1,n.i(f)],0));return p},f:function(u,p){if(u!=4||1>p||40<p)throw Error("mode: "+u+"; type: "+p);return 10>p?8:16},D:function(u){for(var p=u.h(),f=0,m=0;m<p;m+=1)for(var v=0;v<p;v+=1){for(var C=0,E=u.a(m,v),w=-1;1>=w;w+=1)if(!(0>m+w||p<=m+w))for(var $=-1;1>=$;$+=1)0>v+$||p<=v+$||(w!=0||$!=0)&&E==u.a(m+w,v+$)&&(C+=1);5<C&&(f+=3+C-5)}for(m=0;m<p-1;m+=1)for(v=0;v<p-1;v+=1)C=0,u.a(m,v)&&(C+=1),u.a(m+1,v)&&(C+=1),u.a(m,v+1)&&(C+=1),u.a(m+1,v+1)&&(C+=1),(C==0||C==4)&&(f+=3);for(m=0;m<p;m+=1)for(v=0;v<p-6;v+=1)u.a(m,v)&&!u.a(m,v+1)&&u.a(m,v+2)&&u.a(m,v+3)&&u.a(m,v+4)&&!u.a(m,v+5)&&u.a(m,v+6)&&(f+=40);for(v=0;v<p;v+=1)for(m=0;m<p-6;m+=1)u.a(m,v)&&!u.a(m+1,v)&&u.a(m+2,v)&&u.a(m+3,v)&&u.a(m+4,v)&&!u.a(m+5,v)&&u.a(m+6,v)&&(f+=40);for(v=C=0;v<p;v+=1)for(m=0;m<p;m+=1)u.a(m,v)&&(C+=1);return f+=Math.abs(100*C/p/p-50)/5*10}};return b}(),n=function(){for(var c=Array(256),h=Array(256),b=0;8>b;b+=1)c[b]=1<<b;for(b=8;256>b;b+=1)c[b]=c[b-4]^c[b-5]^c[b-6]^c[b-8];for(b=0;255>b;b+=1)h[c[b]]=b;return{g:function(u){if(1>u)throw Error("glog("+u+")");return h[u]},i:function(u){for(;0>u;)u+=255;for(;256<=u;)u-=255;return c[u]}}}(),d=function(){function c(u,p){switch(p){case o.L:return h[4*(u-1)];case o.M:return h[4*(u-1)+1];case o.Q:return h[4*(u-1)+2];case o.H:return h[4*(u-1)+3]}}var h=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],b={I:function(u,p){var f=c(u,p);if(typeof f>"u")throw Error("bad rs block @ typeNumber:"+u+"/errorCorrectLevel:"+p);u=f.length/3,p=[];for(var m=0;m<u;m+=1)for(var v=f[3*m],C=f[3*m+1],E=f[3*m+2],w=0;w<v;w+=1){var $=E,g={};g.o=C,g.j=$,p.push(g)}return p}};return b}();return i}());const Xa=QrCreator;var Dt=class extends z{constructor(){super(...arguments),this.value="",this.label="",this.size=128,this.fill="black",this.background="white",this.radius=0,this.errorCorrection="H"}firstUpdated(){this.generate()}generate(){this.hasUpdated&&Xa.render({text:this.value,radius:this.radius,ecLevel:this.errorCorrection,fill:this.fill,background:this.background,size:this.size*2},this.canvas)}render(){var t;return y`
|
|
3938
|
+
`;let So=null;class zo{}zo.render=function(t,e){So(t,e)};self.QrCreator=zo;(function(t){function e(d,c,h,b){var u={},p=t(h,c);p.u(d),p.J(),b=b||0;var f=p.h(),m=p.h()+2*b;return u.text=d,u.level=c,u.version=h,u.O=m,u.a=function(v,C){return v-=b,C-=b,0>v||v>=f||0>C||C>=f?!1:p.a(v,C)},u}function i(d,c,h,b,u,p,f,m,v,C){function E(w,$,g,_,S,R,F){w?(d.lineTo($+R,g+F),d.arcTo($,g,_,S,p)):d.lineTo($,g)}f?d.moveTo(c+p,h):d.moveTo(c,h),E(m,b,h,b,u,-p,0),E(v,b,u,c,u,0,-p),E(C,c,u,c,h,p,0),E(f,c,h,b,h,0,p)}function s(d,c,h,b,u,p,f,m,v,C){function E(w,$,g,_){d.moveTo(w+g,$),d.lineTo(w,$),d.lineTo(w,$+_),d.arcTo(w,$,w+g,$,p)}f&&E(c,h,p,p),m&&E(b,h,-p,p),v&&E(b,u,-p,-p),C&&E(c,u,p,-p)}function o(d,c){var h=c.fill;if(typeof h=="string")d.fillStyle=h;else{var b=h.type,u=h.colorStops;if(h=h.position.map(f=>Math.round(f*c.size)),b==="linear-gradient")var p=d.createLinearGradient.apply(d,h);else if(b==="radial-gradient")p=d.createRadialGradient.apply(d,h);else throw Error("Unsupported fill");u.forEach(([f,m])=>{p.addColorStop(f,m)}),d.fillStyle=p}}function a(d,c){t:{var h=c.text,b=c.v,u=c.N,p=c.K,f=c.P;for(u=Math.max(1,u||1),p=Math.min(40,p||40);u<=p;u+=1)try{var m=e(h,b,u,f);break t}catch{}m=void 0}if(!m)return null;for(h=d.getContext("2d"),c.background&&(h.fillStyle=c.background,h.fillRect(c.left,c.top,c.size,c.size)),b=m.O,p=c.size/b,h.beginPath(),f=0;f<b;f+=1)for(u=0;u<b;u+=1){var v=h,C=c.left+u*p,E=c.top+f*p,w=f,$=u,g=m.a,_=C+p,S=E+p,R=w-1,F=w+1,P=$-1,I=$+1,ht=Math.floor(Math.min(.5,Math.max(0,c.R))*p),G=g(w,$),vt=g(R,P),ot=g(R,$);R=g(R,I);var ft=g(w,I);I=g(F,I),$=g(F,$),F=g(F,P),w=g(w,P),C=Math.round(C),E=Math.round(E),_=Math.round(_),S=Math.round(S),G?i(v,C,E,_,S,ht,!ot&&!w,!ot&&!ft,!$&&!ft,!$&&!w):s(v,C,E,_,S,ht,ot&&w&&vt,ot&&ft&&R,$&&ft&&I,$&&w&&F)}return o(h,c),h.fill(),d}var n={minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:.5,quiet:0};So=function(d,c){var h={};Object.assign(h,n,d),h.N=h.minVersion,h.K=h.maxVersion,h.v=h.ecLevel,h.left=h.left,h.top=h.top,h.size=h.size,h.fill=h.fill,h.background=h.background,h.text=h.text,h.R=h.radius,h.P=h.quiet,c instanceof HTMLCanvasElement?((c.width!==h.size||c.height!==h.size)&&(c.width=h.size,c.height=h.size),c.getContext("2d").clearRect(0,0,c.width,c.height),a(c,h)):(d=document.createElement("canvas"),d.width=h.size,d.height=h.size,h=a(d,h),c.appendChild(h))}})(function(){function t(c){var h=i.s(c);return{S:function(){return 4},b:function(){return h.length},write:function(b){for(var u=0;u<h.length;u+=1)b.put(h[u],8)}}}function e(){var c=[],h=0,b={B:function(){return c},c:function(u){return(c[Math.floor(u/8)]>>>7-u%8&1)==1},put:function(u,p){for(var f=0;f<p;f+=1)b.m((u>>>p-f-1&1)==1)},f:function(){return h},m:function(u){var p=Math.floor(h/8);c.length<=p&&c.push(0),u&&(c[p]|=128>>>h%8),h+=1}};return b}function i(c,h){function b(w,$){for(var g=-1;7>=g;g+=1)if(!(-1>=w+g||m<=w+g))for(var _=-1;7>=_;_+=1)-1>=$+_||m<=$+_||(f[w+g][$+_]=0<=g&&6>=g&&(_==0||_==6)||0<=_&&6>=_&&(g==0||g==6)||2<=g&&4>=g&&2<=_&&4>=_)}function u(w,$){for(var g=m=4*c+17,_=Array(g),S=0;S<g;S+=1){_[S]=Array(g);for(var R=0;R<g;R+=1)_[S][R]=null}for(f=_,b(0,0),b(m-7,0),b(0,m-7),g=a.G(c),_=0;_<g.length;_+=1)for(S=0;S<g.length;S+=1){R=g[_];var F=g[S];if(f[R][F]==null)for(var P=-2;2>=P;P+=1)for(var I=-2;2>=I;I+=1)f[R+P][F+I]=P==-2||P==2||I==-2||I==2||P==0&&I==0}for(g=8;g<m-8;g+=1)f[g][6]==null&&(f[g][6]=g%2==0);for(g=8;g<m-8;g+=1)f[6][g]==null&&(f[6][g]=g%2==0);for(g=a.w(p<<3|$),_=0;15>_;_+=1)S=!w&&(g>>_&1)==1,f[6>_?_:8>_?_+1:m-15+_][8]=S,f[8][8>_?m-_-1:9>_?15-_:14-_]=S;if(f[m-8][8]=!w,7<=c){for(g=a.A(c),_=0;18>_;_+=1)S=!w&&(g>>_&1)==1,f[Math.floor(_/3)][_%3+m-8-3]=S;for(_=0;18>_;_+=1)S=!w&&(g>>_&1)==1,f[_%3+m-8-3][Math.floor(_/3)]=S}if(v==null){for(w=d.I(c,p),g=e(),_=0;_<C.length;_+=1)S=C[_],g.put(4,4),g.put(S.b(),a.f(4,c)),S.write(g);for(_=S=0;_<w.length;_+=1)S+=w[_].j;if(g.f()>8*S)throw Error("code length overflow. ("+g.f()+">"+8*S+")");for(g.f()+4<=8*S&&g.put(0,4);g.f()%8!=0;)g.m(!1);for(;!(g.f()>=8*S)&&(g.put(236,8),!(g.f()>=8*S));)g.put(17,8);var ht=0;for(S=_=0,R=Array(w.length),F=Array(w.length),P=0;P<w.length;P+=1){var G=w[P].j,vt=w[P].o-G;for(_=Math.max(_,G),S=Math.max(S,vt),R[P]=Array(G),I=0;I<R[P].length;I+=1)R[P][I]=255&g.B()[I+ht];for(ht+=G,I=a.C(vt),G=s(R[P],I.b()-1).l(I),F[P]=Array(I.b()-1),I=0;I<F[P].length;I+=1)vt=I+G.b()-F[P].length,F[P][I]=0<=vt?G.c(vt):0}for(I=g=0;I<w.length;I+=1)g+=w[I].o;for(g=Array(g),I=ht=0;I<_;I+=1)for(P=0;P<w.length;P+=1)I<R[P].length&&(g[ht]=R[P][I],ht+=1);for(I=0;I<S;I+=1)for(P=0;P<w.length;P+=1)I<F[P].length&&(g[ht]=F[P][I],ht+=1);v=g}for(w=v,g=-1,_=m-1,S=7,R=0,$=a.F($),F=m-1;0<F;F-=2)for(F==6&&--F;;){for(P=0;2>P;P+=1)f[_][F-P]==null&&(I=!1,R<w.length&&(I=(w[R]>>>S&1)==1),$(_,F-P)&&(I=!I),f[_][F-P]=I,--S,S==-1&&(R+=1,S=7));if(_+=g,0>_||m<=_){_-=g,g=-g;break}}}var p=o[h],f=null,m=0,v=null,C=[],E={u:function(w){w=t(w),C.push(w),v=null},a:function(w,$){if(0>w||m<=w||0>$||m<=$)throw Error(w+","+$);return f[w][$]},h:function(){return m},J:function(){for(var w=0,$=0,g=0;8>g;g+=1){u(!0,g);var _=a.D(E);(g==0||w>_)&&(w=_,$=g)}u(!1,$)}};return E}function s(c,h){if(typeof c.length>"u")throw Error(c.length+"/"+h);var b=function(){for(var p=0;p<c.length&&c[p]==0;)p+=1;for(var f=Array(c.length-p+h),m=0;m<c.length-p;m+=1)f[m]=c[m+p];return f}(),u={c:function(p){return b[p]},b:function(){return b.length},multiply:function(p){for(var f=Array(u.b()+p.b()-1),m=0;m<u.b();m+=1)for(var v=0;v<p.b();v+=1)f[m+v]^=n.i(n.g(u.c(m))+n.g(p.c(v)));return s(f,0)},l:function(p){if(0>u.b()-p.b())return u;for(var f=n.g(u.c(0))-n.g(p.c(0)),m=Array(u.b()),v=0;v<u.b();v+=1)m[v]=u.c(v);for(v=0;v<p.b();v+=1)m[v]^=n.i(n.g(p.c(v))+f);return s(m,0).l(p)}};return u}i.s=function(c){for(var h=[],b=0;b<c.length;b++){var u=c.charCodeAt(b);128>u?h.push(u):2048>u?h.push(192|u>>6,128|u&63):55296>u||57344<=u?h.push(224|u>>12,128|u>>6&63,128|u&63):(b++,u=65536+((u&1023)<<10|c.charCodeAt(b)&1023),h.push(240|u>>18,128|u>>12&63,128|u>>6&63,128|u&63))}return h};var o={L:1,M:0,Q:3,H:2},a=function(){function c(u){for(var p=0;u!=0;)p+=1,u>>>=1;return p}var h=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],b={w:function(u){for(var p=u<<10;0<=c(p)-c(1335);)p^=1335<<c(p)-c(1335);return(u<<10|p)^21522},A:function(u){for(var p=u<<12;0<=c(p)-c(7973);)p^=7973<<c(p)-c(7973);return u<<12|p},G:function(u){return h[u-1]},F:function(u){switch(u){case 0:return function(p,f){return(p+f)%2==0};case 1:return function(p){return p%2==0};case 2:return function(p,f){return f%3==0};case 3:return function(p,f){return(p+f)%3==0};case 4:return function(p,f){return(Math.floor(p/2)+Math.floor(f/3))%2==0};case 5:return function(p,f){return p*f%2+p*f%3==0};case 6:return function(p,f){return(p*f%2+p*f%3)%2==0};case 7:return function(p,f){return(p*f%3+(p+f)%2)%2==0};default:throw Error("bad maskPattern:"+u)}},C:function(u){for(var p=s([1],0),f=0;f<u;f+=1)p=p.multiply(s([1,n.i(f)],0));return p},f:function(u,p){if(u!=4||1>p||40<p)throw Error("mode: "+u+"; type: "+p);return 10>p?8:16},D:function(u){for(var p=u.h(),f=0,m=0;m<p;m+=1)for(var v=0;v<p;v+=1){for(var C=0,E=u.a(m,v),w=-1;1>=w;w+=1)if(!(0>m+w||p<=m+w))for(var $=-1;1>=$;$+=1)0>v+$||p<=v+$||(w!=0||$!=0)&&E==u.a(m+w,v+$)&&(C+=1);5<C&&(f+=3+C-5)}for(m=0;m<p-1;m+=1)for(v=0;v<p-1;v+=1)C=0,u.a(m,v)&&(C+=1),u.a(m+1,v)&&(C+=1),u.a(m,v+1)&&(C+=1),u.a(m+1,v+1)&&(C+=1),(C==0||C==4)&&(f+=3);for(m=0;m<p;m+=1)for(v=0;v<p-6;v+=1)u.a(m,v)&&!u.a(m,v+1)&&u.a(m,v+2)&&u.a(m,v+3)&&u.a(m,v+4)&&!u.a(m,v+5)&&u.a(m,v+6)&&(f+=40);for(v=0;v<p;v+=1)for(m=0;m<p-6;m+=1)u.a(m,v)&&!u.a(m+1,v)&&u.a(m+2,v)&&u.a(m+3,v)&&u.a(m+4,v)&&!u.a(m+5,v)&&u.a(m+6,v)&&(f+=40);for(v=C=0;v<p;v+=1)for(m=0;m<p;m+=1)u.a(m,v)&&(C+=1);return f+=Math.abs(100*C/p/p-50)/5*10}};return b}(),n=function(){for(var c=Array(256),h=Array(256),b=0;8>b;b+=1)c[b]=1<<b;for(b=8;256>b;b+=1)c[b]=c[b-4]^c[b-5]^c[b-6]^c[b-8];for(b=0;255>b;b+=1)h[c[b]]=b;return{g:function(u){if(1>u)throw Error("glog("+u+")");return h[u]},i:function(u){for(;0>u;)u+=255;for(;256<=u;)u-=255;return c[u]}}}(),d=function(){function c(u,p){switch(p){case o.L:return h[4*(u-1)];case o.M:return h[4*(u-1)+1];case o.Q:return h[4*(u-1)+2];case o.H:return h[4*(u-1)+3]}}var h=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],b={I:function(u,p){var f=c(u,p);if(typeof f>"u")throw Error("bad rs block @ typeNumber:"+u+"/errorCorrectLevel:"+p);u=f.length/3,p=[];for(var m=0;m<u;m+=1)for(var v=f[3*m],C=f[3*m+1],E=f[3*m+2],w=0;w<v;w+=1){var $=E,g={};g.o=C,g.j=$,p.push(g)}return p}};return b}();return i}());const Wa=QrCreator;var Dt=class extends z{constructor(){super(...arguments),this.value="",this.label="",this.size=128,this.fill="black",this.background="white",this.radius=0,this.errorCorrection="H"}firstUpdated(){this.generate()}generate(){this.hasUpdated&&Wa.render({text:this.value,radius:this.radius,ecLevel:this.errorCorrection,fill:this.fill,background:this.background,size:this.size*2},this.canvas)}render(){var t;return y`
|
|
3939
3939
|
<canvas
|
|
3940
3940
|
part="base"
|
|
3941
3941
|
class="qr-code"
|
|
@@ -3943,7 +3943,7 @@
|
|
|
3943
3943
|
aria-label=${((t=this.label)==null?void 0:t.length)>0?this.label:this.value}
|
|
3944
3944
|
style=${gt({width:`${this.size}px`,height:`${this.size}px`})}
|
|
3945
3945
|
></canvas>
|
|
3946
|
-
`}};Dt.styles=
|
|
3946
|
+
`}};Dt.styles=Ka;r([k("canvas")],Dt.prototype,"canvas",2);r([l()],Dt.prototype,"value",2);r([l()],Dt.prototype,"label",2);r([l({type:Number})],Dt.prototype,"size",2);r([l()],Dt.prototype,"fill",2);r([l()],Dt.prototype,"background",2);r([l({type:Number})],Dt.prototype,"radius",2);r([l({attribute:"error-correction"})],Dt.prototype,"errorCorrection",2);r([x(["background","errorCorrection","fill","radius","size","value"])],Dt.prototype,"generate",1);Dt.define("sl-qr-code");var Xa=T`
|
|
3947
3947
|
${L}
|
|
3948
3948
|
|
|
3949
3949
|
:host {
|
|
@@ -4041,7 +4041,7 @@
|
|
|
4041
4041
|
<slot part="label" class="option__label" @slotchange=${this.handleDefaultSlotChange}></slot>
|
|
4042
4042
|
<slot part="suffix" name="suffix" class="option__suffix"></slot>
|
|
4043
4043
|
</div>
|
|
4044
|
-
`}};Et.styles=
|
|
4044
|
+
`}};Et.styles=Xa;Et.dependencies={"sl-icon":K};r([k(".option__label")],Et.prototype,"defaultSlot",2);r([D()],Et.prototype,"current",2);r([D()],Et.prototype,"selected",2);r([D()],Et.prototype,"hasHover",2);r([l({reflect:!0})],Et.prototype,"value",2);r([l({type:Boolean,reflect:!0})],Et.prototype,"disabled",2);r([x("disabled")],Et.prototype,"handleDisabledChange",1);r([x("selected")],Et.prototype,"handleSelectedChange",1);r([x("value")],Et.prototype,"handleValueChange",1);Et.define("sl-option");j.define("sl-popup");var Ya=T`
|
|
4045
4045
|
${L}
|
|
4046
4046
|
|
|
4047
4047
|
:host {
|
|
@@ -4140,7 +4140,7 @@
|
|
|
4140
4140
|
${this.indeterminate?"":y` <slot part="label" class="progress-bar__label"></slot> `}
|
|
4141
4141
|
</div>
|
|
4142
4142
|
</div>
|
|
4143
|
-
`}};oi.styles=
|
|
4143
|
+
`}};oi.styles=Ya;r([l({type:Number,reflect:!0})],oi.prototype,"value",2);r([l({type:Boolean,reflect:!0})],oi.prototype,"indeterminate",2);r([l()],oi.prototype,"label",2);oi.define("sl-progress-bar");var Ga=T`
|
|
4144
4144
|
${L}
|
|
4145
4145
|
|
|
4146
4146
|
:host {
|
|
@@ -4282,13 +4282,13 @@
|
|
|
4282
4282
|
* @license
|
|
4283
4283
|
* Copyright 2017 Google LLC
|
|
4284
4284
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4285
|
-
*/const qe=(t,e)=>{var s;const i=t._$AN;if(i===void 0)return!1;for(const o of i)(s=o._$AO)==null||s.call(o,e,!1),qe(o,e);return!0},xi=t=>{let e,i;do{if((e=t._$AM)===void 0)break;i=e._$AN,i.delete(t),t=e}while((i==null?void 0:i.size)===0)},Ao=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(i===void 0)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),
|
|
4285
|
+
*/const qe=(t,e)=>{var s;const i=t._$AN;if(i===void 0)return!1;for(const o of i)(s=o._$AO)==null||s.call(o,e,!1),qe(o,e);return!0},xi=t=>{let e,i;do{if((e=t._$AM)===void 0)break;i=e._$AN,i.delete(t),t=e}while((i==null?void 0:i.size)===0)},Ao=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(i===void 0)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),Ja(e)}};function Qa(t){this._$AN!==void 0?(xi(this),this._$AM=t,Ao(this)):this._$AM=t}function Za(t,e=!1,i=0){const s=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(s))for(let a=i;a<s.length;a++)qe(s[a],!1),xi(s[a]);else s!=null&&(qe(s,!1),xi(s));else qe(this,t)}const Ja=t=>{t.type==Ft.CHILD&&(t._$AP??(t._$AP=Za),t._$AQ??(t._$AQ=Qa))};class tn extends Ze{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,i,s){super._$AT(e,i,s),Ao(this),this.isConnected=e._$AU}_$AO(e,i=!0){var s,o;e!==this.isConnected&&(this.isConnected=e,e?(s=this.reconnected)==null||s.call(this):(o=this.disconnected)==null||o.call(this)),i&&(qe(this,e),xi(this))}setValue(e){if(no(this._$Ct))this._$Ct._$AI(e,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=e,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}/**
|
|
4286
4286
|
* @license
|
|
4287
4287
|
* Copyright 2020 Google LLC
|
|
4288
4288
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4289
|
-
*/const
|
|
4289
|
+
*/const en=()=>new sn;class sn{}const Bi=new WeakMap,on=Qe(class extends tn{render(t){return W}update(t,[e]){var s;const i=e!==this.G;return i&&this.G!==void 0&&this.ot(void 0),(i||this.rt!==this.lt)&&(this.G=e,this.ct=(s=t.options)==null?void 0:s.host,this.ot(this.lt=t.element)),W}ot(t){if(typeof this.G=="function"){const e=this.ct??globalThis;let i=Bi.get(e);i===void 0&&(i=new WeakMap,Bi.set(e,i)),i.get(this.G)!==void 0&&this.G.call(this.ct,void 0),i.set(this.G,t),t!==void 0&&this.G.call(this.ct,t)}else this.G.value=t}get rt(){var t,e;return typeof this.G=="function"?(t=Bi.get(this.ct??globalThis))==null?void 0:t.get(this.G):(e=this.G)==null?void 0:e.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var rn=class{constructor(t,e,i){this.popupRef=en(),this.enableSubmenuTimer=-1,this.isConnected=!1,this.isPopupConnected=!1,this.skidding=0,this.submenuOpenDelay=100,this.handleMouseMove=s=>{this.host.style.setProperty("--safe-triangle-cursor-x",`${s.clientX}px`),this.host.style.setProperty("--safe-triangle-cursor-y",`${s.clientY}px`)},this.handleMouseOver=()=>{this.hasSlotController.test("submenu")&&this.enableSubmenu()},this.handleKeyDown=s=>{switch(s.key){case"Escape":case"Tab":this.disableSubmenu();break;case"ArrowLeft":s.target!==this.host&&(s.preventDefault(),s.stopPropagation(),this.host.focus(),this.disableSubmenu());break;case"ArrowRight":case"Enter":case" ":this.handleSubmenuEntry(s);break}},this.handleClick=s=>{var o;s.target===this.host?(s.preventDefault(),s.stopPropagation()):s.target instanceof Element&&(s.target.tagName==="sl-menu-item"||(o=s.target.role)!=null&&o.startsWith("menuitem"))&&this.disableSubmenu()},this.handleFocusOut=s=>{s.relatedTarget&&s.relatedTarget instanceof Element&&this.host.contains(s.relatedTarget)||this.disableSubmenu()},this.handlePopupMouseover=s=>{s.stopPropagation()},this.handlePopupReposition=()=>{const s=this.host.renderRoot.querySelector("slot[name='submenu']"),o=s==null?void 0:s.assignedElements({flatten:!0}).filter(b=>b.localName==="sl-menu")[0],a=this.localize.dir()==="rtl";if(!o)return;const{left:n,top:d,width:c,height:h}=o.getBoundingClientRect();this.host.style.setProperty("--safe-triangle-submenu-start-x",`${a?n+c:n}px`),this.host.style.setProperty("--safe-triangle-submenu-start-y",`${d}px`),this.host.style.setProperty("--safe-triangle-submenu-end-x",`${a?n+c:n}px`),this.host.style.setProperty("--safe-triangle-submenu-end-y",`${d+h}px`)},(this.host=t).addController(this),this.hasSlotController=e,this.localize=i}hostConnected(){this.hasSlotController.test("submenu")&&!this.host.disabled&&this.addListeners()}hostDisconnected(){this.removeListeners()}hostUpdated(){this.hasSlotController.test("submenu")&&!this.host.disabled?(this.addListeners(),this.updateSkidding()):this.removeListeners()}addListeners(){this.isConnected||(this.host.addEventListener("mousemove",this.handleMouseMove),this.host.addEventListener("mouseover",this.handleMouseOver),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick),this.host.addEventListener("focusout",this.handleFocusOut),this.isConnected=!0),this.isPopupConnected||this.popupRef.value&&(this.popupRef.value.addEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.addEventListener("sl-reposition",this.handlePopupReposition),this.isPopupConnected=!0)}removeListeners(){this.isConnected&&(this.host.removeEventListener("mousemove",this.handleMouseMove),this.host.removeEventListener("mouseover",this.handleMouseOver),this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick),this.host.removeEventListener("focusout",this.handleFocusOut),this.isConnected=!1),this.isPopupConnected&&this.popupRef.value&&(this.popupRef.value.removeEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.removeEventListener("sl-reposition",this.handlePopupReposition),this.isPopupConnected=!1)}handleSubmenuEntry(t){const e=this.host.renderRoot.querySelector("slot[name='submenu']");if(!e){console.error("Cannot activate a submenu if no corresponding menuitem can be found.",this);return}let i=null;for(const s of e.assignedElements())if(i=s.querySelectorAll("sl-menu-item, [role^='menuitem']"),i.length!==0)break;if(!(!i||i.length===0)){i[0].setAttribute("tabindex","0");for(let s=1;s!==i.length;++s)i[s].setAttribute("tabindex","-1");this.popupRef.value&&(t.preventDefault(),t.stopPropagation(),this.popupRef.value.active?i[0]instanceof HTMLElement&&i[0].focus():(this.enableSubmenu(!1),this.host.updateComplete.then(()=>{i[0]instanceof HTMLElement&&i[0].focus()}),this.host.requestUpdate()))}}setSubmenuState(t){this.popupRef.value&&this.popupRef.value.active!==t&&(this.popupRef.value.active=t,this.host.requestUpdate())}enableSubmenu(t=!0){t?this.enableSubmenuTimer=window.setTimeout(()=>{this.setSubmenuState(!0)},this.submenuOpenDelay):this.setSubmenuState(!0)}disableSubmenu(){clearTimeout(this.enableSubmenuTimer),this.setSubmenuState(!1)}updateSkidding(){var t;if(!((t=this.host.parentElement)!=null&&t.computedStyleMap))return;const e=this.host.parentElement.computedStyleMap(),s=["padding-top","border-top-width","margin-top"].reduce((o,a)=>{var n;const d=(n=e.get(a))!=null?n:new CSSUnitValue(0,"px"),h=(d instanceof CSSUnitValue?d:new CSSUnitValue(0,"px")).to("px");return o-h.value},0);this.skidding=s}isExpanded(){return this.popupRef.value?this.popupRef.value.active:!1}renderSubmenu(){const t=this.localize.dir()==="ltr";return this.isConnected?y`
|
|
4290
4290
|
<sl-popup
|
|
4291
|
-
${
|
|
4291
|
+
${on(this.popupRef)}
|
|
4292
4292
|
placement=${t?"right-start":"left-start"}
|
|
4293
4293
|
anchor="anchor"
|
|
4294
4294
|
flip
|
|
@@ -4298,7 +4298,7 @@
|
|
|
4298
4298
|
>
|
|
4299
4299
|
<slot name="submenu"></slot>
|
|
4300
4300
|
</sl-popup>
|
|
4301
|
-
`:y` <slot name="submenu" hidden></slot> `}},Tt=class extends z{constructor(){super(...arguments),this.type="normal",this.checked=!1,this.value="",this.disabled=!1,this.localize=new U(this),this.hasSlotController=new kt(this,"submenu"),this.submenuController=new
|
|
4301
|
+
`:y` <slot name="submenu" hidden></slot> `}},Tt=class extends z{constructor(){super(...arguments),this.type="normal",this.checked=!1,this.value="",this.disabled=!1,this.localize=new U(this),this.hasSlotController=new kt(this,"submenu"),this.submenuController=new rn(this,this.hasSlotController,this.localize),this.handleHostClick=t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())},this.handleMouseOver=t=>{this.focus(),t.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleHostClick),this.addEventListener("mouseover",this.handleMouseOver)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick),this.removeEventListener("mouseover",this.handleMouseOver)}handleDefaultSlotChange(){const t=this.getTextLabel();if(typeof this.cachedTextLabel>"u"){this.cachedTextLabel=t;return}t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleCheckedChange(){if(this.checked&&this.type!=="checkbox"){this.checked=!1,console.error('The checked attribute can only be used on menu items with type="checkbox"',this);return}this.type==="checkbox"?this.setAttribute("aria-checked",this.checked?"true":"false"):this.removeAttribute("aria-checked")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleTypeChange(){this.type==="checkbox"?(this.setAttribute("role","menuitemcheckbox"),this.setAttribute("aria-checked",this.checked?"true":"false")):(this.setAttribute("role","menuitem"),this.removeAttribute("aria-checked"))}getTextLabel(){return Sa(this.defaultSlot)}isSubmenu(){return this.hasSlotController.test("submenu")}render(){const t=this.localize.dir()==="rtl",e=this.submenuController.isExpanded();return y`
|
|
4302
4302
|
<div
|
|
4303
4303
|
id="anchor"
|
|
4304
4304
|
part="base"
|
|
@@ -4322,13 +4322,13 @@
|
|
|
4322
4322
|
|
|
4323
4323
|
${this.submenuController.renderSubmenu()}
|
|
4324
4324
|
</div>
|
|
4325
|
-
`}};Tt.styles=
|
|
4325
|
+
`}};Tt.styles=Ga;Tt.dependencies={"sl-icon":K,"sl-popup":j};r([k("slot:not([name])")],Tt.prototype,"defaultSlot",2);r([k(".menu-item")],Tt.prototype,"menuItem",2);r([l()],Tt.prototype,"type",2);r([l({type:Boolean,reflect:!0})],Tt.prototype,"checked",2);r([l()],Tt.prototype,"value",2);r([l({type:Boolean,reflect:!0})],Tt.prototype,"disabled",2);r([x("checked")],Tt.prototype,"handleCheckedChange",1);r([x("disabled")],Tt.prototype,"handleDisabledChange",1);r([x("type")],Tt.prototype,"handleTypeChange",1);Tt.define("sl-menu-item");var an=T`
|
|
4326
4326
|
${L}
|
|
4327
4327
|
|
|
4328
4328
|
:host {
|
|
4329
4329
|
display: contents;
|
|
4330
4330
|
}
|
|
4331
|
-
`,Nt=class extends z{constructor(){super(...arguments),this.attrOldValue=!1,this.charData=!1,this.charDataOldValue=!1,this.childList=!1,this.disabled=!1,this.handleMutation=t=>{this.emit("sl-mutation",{detail:{mutationList:t}})}}connectedCallback(){super.connectedCallback(),this.mutationObserver=new MutationObserver(this.handleMutation),this.disabled||this.startObserver()}disconnectedCallback(){super.disconnectedCallback(),this.stopObserver()}startObserver(){const t=typeof this.attr=="string"&&this.attr.length>0,e=t&&this.attr!=="*"?this.attr.split(" "):void 0;try{this.mutationObserver.observe(this,{subtree:!0,childList:this.childList,attributes:t,attributeFilter:e,attributeOldValue:this.attrOldValue,characterData:this.charData,characterDataOldValue:this.charDataOldValue})}catch{}}stopObserver(){this.mutationObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}handleChange(){this.stopObserver(),this.startObserver()}render(){return y` <slot></slot> `}};Nt.styles=
|
|
4331
|
+
`,Nt=class extends z{constructor(){super(...arguments),this.attrOldValue=!1,this.charData=!1,this.charDataOldValue=!1,this.childList=!1,this.disabled=!1,this.handleMutation=t=>{this.emit("sl-mutation",{detail:{mutationList:t}})}}connectedCallback(){super.connectedCallback(),this.mutationObserver=new MutationObserver(this.handleMutation),this.disabled||this.startObserver()}disconnectedCallback(){super.disconnectedCallback(),this.stopObserver()}startObserver(){const t=typeof this.attr=="string"&&this.attr.length>0,e=t&&this.attr!=="*"?this.attr.split(" "):void 0;try{this.mutationObserver.observe(this,{subtree:!0,childList:this.childList,attributes:t,attributeFilter:e,attributeOldValue:this.attrOldValue,characterData:this.charData,characterDataOldValue:this.charDataOldValue})}catch{}}stopObserver(){this.mutationObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}handleChange(){this.stopObserver(),this.startObserver()}render(){return y` <slot></slot> `}};Nt.styles=an;r([l({reflect:!0})],Nt.prototype,"attr",2);r([l({attribute:"attr-old-value",type:Boolean,reflect:!0})],Nt.prototype,"attrOldValue",2);r([l({attribute:"char-data",type:Boolean,reflect:!0})],Nt.prototype,"charData",2);r([l({attribute:"char-data-old-value",type:Boolean,reflect:!0})],Nt.prototype,"charDataOldValue",2);r([l({attribute:"child-list",type:Boolean,reflect:!0})],Nt.prototype,"childList",2);r([l({type:Boolean,reflect:!0})],Nt.prototype,"disabled",2);r([x("disabled")],Nt.prototype,"handleDisabledChange",1);r([x("attr",{waitUntilFirstUpdate:!0}),x("attr-old-value",{waitUntilFirstUpdate:!0}),x("char-data",{waitUntilFirstUpdate:!0}),x("char-data-old-value",{waitUntilFirstUpdate:!0}),x("childList",{waitUntilFirstUpdate:!0})],Nt.prototype,"handleChange",1);Nt.define("sl-mutation-observer");var nn=T`
|
|
4332
4332
|
${L}
|
|
4333
4333
|
|
|
4334
4334
|
:host {
|
|
@@ -4352,7 +4352,7 @@
|
|
|
4352
4352
|
@keydown=${this.handleKeyDown}
|
|
4353
4353
|
@mousedown=${this.handleMouseDown}
|
|
4354
4354
|
></slot>
|
|
4355
|
-
`}};vs.styles=
|
|
4355
|
+
`}};vs.styles=nn;r([k("slot")],vs.prototype,"defaultSlot",2);vs.define("sl-menu");var ln=T`
|
|
4356
4356
|
${L}
|
|
4357
4357
|
${si}
|
|
4358
4358
|
|
|
@@ -4756,7 +4756,7 @@
|
|
|
4756
4756
|
<slot name="help-text">${this.helpText}</slot>
|
|
4757
4757
|
</div>
|
|
4758
4758
|
</div>
|
|
4759
|
-
`}};M.styles=
|
|
4759
|
+
`}};M.styles=ln;M.dependencies={"sl-icon":K};r([k(".input__control")],M.prototype,"input",2);r([D()],M.prototype,"hasFocus",2);r([l()],M.prototype,"title",2);r([l({reflect:!0})],M.prototype,"type",2);r([l()],M.prototype,"name",2);r([l()],M.prototype,"value",2);r([fe()],M.prototype,"defaultValue",2);r([l({reflect:!0})],M.prototype,"size",2);r([l({type:Boolean,reflect:!0})],M.prototype,"filled",2);r([l({type:Boolean,reflect:!0})],M.prototype,"pill",2);r([l()],M.prototype,"label",2);r([l({attribute:"help-text"})],M.prototype,"helpText",2);r([l({type:Boolean})],M.prototype,"clearable",2);r([l({type:Boolean,reflect:!0})],M.prototype,"disabled",2);r([l()],M.prototype,"placeholder",2);r([l({type:Boolean,reflect:!0})],M.prototype,"readonly",2);r([l({attribute:"password-toggle",type:Boolean})],M.prototype,"passwordToggle",2);r([l({attribute:"password-visible",type:Boolean})],M.prototype,"passwordVisible",2);r([l({attribute:"no-spin-buttons",type:Boolean})],M.prototype,"noSpinButtons",2);r([l({reflect:!0})],M.prototype,"form",2);r([l({type:Boolean,reflect:!0})],M.prototype,"required",2);r([l()],M.prototype,"pattern",2);r([l({type:Number})],M.prototype,"minlength",2);r([l({type:Number})],M.prototype,"maxlength",2);r([l()],M.prototype,"min",2);r([l()],M.prototype,"max",2);r([l()],M.prototype,"step",2);r([l()],M.prototype,"autocapitalize",2);r([l()],M.prototype,"autocorrect",2);r([l()],M.prototype,"autocomplete",2);r([l({type:Boolean})],M.prototype,"autofocus",2);r([l()],M.prototype,"enterkeyhint",2);r([l({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],M.prototype,"spellcheck",2);r([l()],M.prototype,"inputmode",2);r([x("disabled",{waitUntilFirstUpdate:!0})],M.prototype,"handleDisabledChange",1);r([x("step",{waitUntilFirstUpdate:!0})],M.prototype,"handleStepChange",1);r([x("value",{waitUntilFirstUpdate:!0})],M.prototype,"handleValueChange",1);M.define("sl-input");var cn=T`
|
|
4760
4760
|
${L}
|
|
4761
4761
|
|
|
4762
4762
|
:host {
|
|
@@ -4775,7 +4775,7 @@
|
|
|
4775
4775
|
user-select: none;
|
|
4776
4776
|
-webkit-user-select: none;
|
|
4777
4777
|
}
|
|
4778
|
-
`,Eo=class extends z{render(){return y` <slot part="base" class="menu-label"></slot> `}};Eo.styles=
|
|
4778
|
+
`,Eo=class extends z{render(){return y` <slot part="base" class="menu-label"></slot> `}};Eo.styles=cn;Eo.define("sl-menu-label");var dn=T`
|
|
4779
4779
|
${L}
|
|
4780
4780
|
|
|
4781
4781
|
:host {
|
|
@@ -4892,13 +4892,13 @@
|
|
|
4892
4892
|
</div>
|
|
4893
4893
|
</div>
|
|
4894
4894
|
</div>
|
|
4895
|
-
`}};ge.styles=
|
|
4895
|
+
`}};ge.styles=dn;ge.scopedElement={"sl-icon":K};r([k(".image-comparer")],ge.prototype,"base",2);r([k(".image-comparer__handle")],ge.prototype,"handle",2);r([l({type:Number,reflect:!0})],ge.prototype,"position",2);r([x("position",{waitUntilFirstUpdate:!0})],ge.prototype,"handlePositionChange",1);ge.define("sl-image-comparer");var hn=T`
|
|
4896
4896
|
${L}
|
|
4897
4897
|
|
|
4898
4898
|
:host {
|
|
4899
4899
|
display: block;
|
|
4900
4900
|
}
|
|
4901
|
-
`,
|
|
4901
|
+
`,Ui=new Map;function un(t,e="cors"){const i=Ui.get(t);if(i!==void 0)return Promise.resolve(i);const s=fetch(t,{mode:e}).then(async o=>{const a={ok:o.ok,status:o.status,html:await o.text()};return Ui.set(t,a),a});return Ui.set(t,s),s}var Ee=class extends z{constructor(){super(...arguments),this.mode="cors",this.allowScripts=!1}executeScript(t){const e=document.createElement("script");[...t.attributes].forEach(i=>e.setAttribute(i.name,i.value)),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}async handleSrcChange(){try{const t=this.src,e=await un(t,this.mode);if(t!==this.src)return;if(!e.ok){this.emit("sl-error",{detail:{status:e.status}});return}this.innerHTML=e.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(i=>this.executeScript(i)),this.emit("sl-load")}catch{this.emit("sl-error",{detail:{status:-1}})}}render(){return y`<slot></slot>`}};Ee.styles=hn;r([l()],Ee.prototype,"src",2);r([l()],Ee.prototype,"mode",2);r([l({attribute:"allow-scripts",type:Boolean})],Ee.prototype,"allowScripts",2);r([x("src")],Ee.prototype,"handleSrcChange",1);Ee.define("sl-include");K.define("sl-icon");st.define("sl-icon-button");var pn=T`
|
|
4902
4902
|
${L}
|
|
4903
4903
|
|
|
4904
4904
|
:host {
|
|
@@ -5053,7 +5053,7 @@
|
|
|
5053
5053
|
border: solid 1px var(--sl-color-neutral-0);
|
|
5054
5054
|
}
|
|
5055
5055
|
}
|
|
5056
|
-
`;function
|
|
5056
|
+
`;function fn(t){return!!(t.offsetParent||t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function mn(t){const e=t.tagName.toLowerCase();return t.getAttribute("tabindex")==="-1"||t.hasAttribute("disabled")||e==="input"&&t.getAttribute("type")==="radio"&&!t.hasAttribute("checked")||!fn(t)||window.getComputedStyle(t).visibility==="hidden"?!1:(e==="audio"||e==="video")&&t.hasAttribute("controls")||t.hasAttribute("tabindex")||t.hasAttribute("contenteditable")&&t.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(e)}function bn(t){var e,i;const s=es(t),o=(e=s[0])!=null?e:null,a=(i=s[s.length-1])!=null?i:null;return{start:o,end:a}}function es(t){const e=[];function i(s){if(s instanceof Element){if(s.hasAttribute("inert"))return;!e.includes(s)&&mn(s)&&e.push(s);const o=a=>{var n;return((n=a.getRootNode({composed:!0}))==null?void 0:n.host)!==t};s instanceof HTMLSlotElement&&o(s)&&s.assignedElements({flatten:!0}).forEach(a=>{i(a)}),s.shadowRoot!==null&&s.shadowRoot.mode==="open"&&i(s.shadowRoot)}[...s.children].forEach(o=>i(o))}return i(t),e.sort((s,o)=>{const a=Number(s.getAttribute("tabindex"))||0;return(Number(o.getAttribute("tabindex"))||0)-a})}function*To(t=document.activeElement){t!=null&&(yield t,"shadowRoot"in t&&t.shadowRoot&&t.shadowRoot.mode!=="closed"&&(yield*sr(To(t.shadowRoot.activeElement))))}function gn(){return[...To()].pop()}var Me=[],Lo=class{constructor(t){this.tabDirection="forward",this.handleFocusIn=()=>{this.checkFocus()},this.handleKeyDown=e=>{var i,s;if(e.key!=="Tab"||this.isExternalActivated)return;e.shiftKey?this.tabDirection="backward":this.tabDirection="forward",e.preventDefault();const o=es(this.element),a=gn();let n=o.findIndex(c=>c===a);if(n===-1){this.currentFocus=o[0],(i=this.currentFocus)==null||i.focus({preventScroll:!0});return}const d=this.tabDirection==="forward"?1:-1;n+d>=o.length?n=0:n+d<0?n=o.length-1:n+=d,this.currentFocus=o[n],(s=this.currentFocus)==null||s.focus({preventScroll:!0}),setTimeout(()=>this.checkFocus())},this.handleKeyUp=()=>{this.tabDirection="forward"},this.element=t}activate(){Me.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Me=Me.filter(t=>t!==this.element),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Me[Me.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const t=es(this.element);if(!this.element.matches(":focus-within")){const e=t[0],i=t[t.length-1],s=this.tabDirection==="forward"?e:i;typeof(s==null?void 0:s.focus)=="function"&&(this.currentFocus=s,s.focus({preventScroll:!0}))}}}};function qs(t){return t.charAt(0).toUpperCase()+t.slice(1)}var St=class extends z{constructor(){super(...arguments),this.hasSlotController=new kt(this,"footer"),this.localize=new U(this),this.modal=new Lo(this),this.open=!1,this.label="",this.placement="end",this.contained=!1,this.noHeader=!1,this.handleDocumentKeyDown=t=>{this.contained||t.key==="Escape"&&this.modal.isActive()&&this.open&&(t.stopImmediatePropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),Ue(this)))}disconnectedCallback(){super.disconnectedCallback(),Ne(this)}requestClose(t){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const i=X(this,"drawer.denyClose",{dir:this.localize.dir()});Z(this.panel,i.keyframes,i.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),Ue(this));const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([et(this.drawer),et(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame(()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")});const e=X(this,`drawer.show${qs(this.placement)}`,{dir:this.localize.dir()}),i=X(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([Z(this.panel,e.keyframes,e.options),Z(this.overlay,i.keyframes,i.options)]),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),Ne(this)),await Promise.all([et(this.drawer),et(this.overlay)]);const t=X(this,`drawer.hide${qs(this.placement)}`,{dir:this.localize.dir()}),e=X(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([Z(this.overlay,e.keyframes,e.options).then(()=>{this.overlay.hidden=!0}),Z(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;const i=this.originalTrigger;typeof(i==null?void 0:i.focus)=="function"&&setTimeout(()=>i.focus()),this.emit("sl-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),Ue(this)),this.open&&this.contained&&(this.modal.deactivate(),Ne(this))}async show(){if(!this.open)return this.open=!0,mt(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,mt(this,"sl-after-hide")}render(){return y`
|
|
5057
5057
|
<div
|
|
5058
5058
|
part="base"
|
|
5059
5059
|
class=${O({drawer:!0,"drawer--open":this.open,"drawer--top":this.placement==="top","drawer--end":this.placement==="end","drawer--bottom":this.placement==="bottom","drawer--start":this.placement==="start","drawer--contained":this.contained,"drawer--fixed":!this.contained,"drawer--rtl":this.localize.dir()==="rtl","drawer--has-footer":this.hasSlotController.test("footer")})}
|
|
@@ -5098,11 +5098,11 @@
|
|
|
5098
5098
|
</footer>
|
|
5099
5099
|
</div>
|
|
5100
5100
|
</div>
|
|
5101
|
-
`}};St.styles=
|
|
5101
|
+
`}};St.styles=pn;St.dependencies={"sl-icon-button":st};r([k(".drawer")],St.prototype,"drawer",2);r([k(".drawer__panel")],St.prototype,"panel",2);r([k(".drawer__overlay")],St.prototype,"overlay",2);r([l({type:Boolean,reflect:!0})],St.prototype,"open",2);r([l({reflect:!0})],St.prototype,"label",2);r([l({reflect:!0})],St.prototype,"placement",2);r([l({type:Boolean,reflect:!0})],St.prototype,"contained",2);r([l({attribute:"no-header",type:Boolean,reflect:!0})],St.prototype,"noHeader",2);r([x("open",{waitUntilFirstUpdate:!0})],St.prototype,"handleOpenChange",1);r([x("contained",{waitUntilFirstUpdate:!0})],St.prototype,"handleNoModalChange",1);q("drawer.showTop",{keyframes:[{opacity:0,translate:"0 -100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});q("drawer.hideTop",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 -100%"}],options:{duration:250,easing:"ease"}});q("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});q("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}});q("drawer.showBottom",{keyframes:[{opacity:0,translate:"0 100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});q("drawer.hideBottom",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 100%"}],options:{duration:250,easing:"ease"}});q("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});q("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}});q("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}});q("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});q("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});St.define("sl-drawer");var Ei=class extends z{constructor(){super(...arguments),this.localize=new U(this),this.value=0,this.unit="byte",this.display="short"}render(){if(isNaN(this.value))return"";const t=["","kilo","mega","giga","tera"],e=["","kilo","mega","giga","tera","peta"],i=this.unit==="bit"?t:e,s=Math.max(0,Math.min(Math.floor(Math.log10(this.value)/3),i.length-1)),o=i[s]+this.unit,a=parseFloat((this.value/Math.pow(1e3,s)).toPrecision(3));return this.localize.number(a,{style:"unit",unit:o,unitDisplay:this.display})}};r([l({type:Number})],Ei.prototype,"value",2);r([l()],Ei.prototype,"unit",2);r([l()],Ei.prototype,"display",2);Ei.define("sl-format-bytes");var zt=class extends z{constructor(){super(...arguments),this.localize=new U(this),this.date=new Date,this.hourFormat="auto"}render(){const t=new Date(this.date),e=this.hourFormat==="auto"?void 0:this.hourFormat==="12";if(!isNaN(t.getMilliseconds()))return y`
|
|
5102
5102
|
<time datetime=${t.toISOString()}>
|
|
5103
5103
|
${this.localize.date(t,{weekday:this.weekday,era:this.era,year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,timeZoneName:this.timeZoneName,timeZone:this.timeZone,hour12:e})}
|
|
5104
5104
|
</time>
|
|
5105
|
-
`}};r([l()],zt.prototype,"date",2);r([l()],zt.prototype,"weekday",2);r([l()],zt.prototype,"era",2);r([l()],zt.prototype,"year",2);r([l()],zt.prototype,"month",2);r([l()],zt.prototype,"day",2);r([l()],zt.prototype,"hour",2);r([l()],zt.prototype,"minute",2);r([l()],zt.prototype,"second",2);r([l({attribute:"time-zone-name"})],zt.prototype,"timeZoneName",2);r([l({attribute:"time-zone"})],zt.prototype,"timeZone",2);r([l({attribute:"hour-format"})],zt.prototype,"hourFormat",2);zt.define("sl-format-date");var Pt=class extends z{constructor(){super(...arguments),this.localize=new U(this),this.value=0,this.type="decimal",this.noGrouping=!1,this.currency="USD",this.currencyDisplay="symbol"}render(){return isNaN(this.value)?"":this.localize.number(this.value,{style:this.type,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:!this.noGrouping,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits,minimumSignificantDigits:this.minimumSignificantDigits,maximumSignificantDigits:this.maximumSignificantDigits})}};r([l({type:Number})],Pt.prototype,"value",2);r([l()],Pt.prototype,"type",2);r([l({attribute:"no-grouping",type:Boolean})],Pt.prototype,"noGrouping",2);r([l()],Pt.prototype,"currency",2);r([l({attribute:"currency-display"})],Pt.prototype,"currencyDisplay",2);r([l({attribute:"minimum-integer-digits",type:Number})],Pt.prototype,"minimumIntegerDigits",2);r([l({attribute:"minimum-fraction-digits",type:Number})],Pt.prototype,"minimumFractionDigits",2);r([l({attribute:"maximum-fraction-digits",type:Number})],Pt.prototype,"maximumFractionDigits",2);r([l({attribute:"minimum-significant-digits",type:Number})],Pt.prototype,"minimumSignificantDigits",2);r([l({attribute:"maximum-significant-digits",type:Number})],Pt.prototype,"maximumSignificantDigits",2);Pt.define("sl-format-number");var
|
|
5105
|
+
`}};r([l()],zt.prototype,"date",2);r([l()],zt.prototype,"weekday",2);r([l()],zt.prototype,"era",2);r([l()],zt.prototype,"year",2);r([l()],zt.prototype,"month",2);r([l()],zt.prototype,"day",2);r([l()],zt.prototype,"hour",2);r([l()],zt.prototype,"minute",2);r([l()],zt.prototype,"second",2);r([l({attribute:"time-zone-name"})],zt.prototype,"timeZoneName",2);r([l({attribute:"time-zone"})],zt.prototype,"timeZone",2);r([l({attribute:"hour-format"})],zt.prototype,"hourFormat",2);zt.define("sl-format-date");var Pt=class extends z{constructor(){super(...arguments),this.localize=new U(this),this.value=0,this.type="decimal",this.noGrouping=!1,this.currency="USD",this.currencyDisplay="symbol"}render(){return isNaN(this.value)?"":this.localize.number(this.value,{style:this.type,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:!this.noGrouping,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits,minimumSignificantDigits:this.minimumSignificantDigits,maximumSignificantDigits:this.maximumSignificantDigits})}};r([l({type:Number})],Pt.prototype,"value",2);r([l()],Pt.prototype,"type",2);r([l({attribute:"no-grouping",type:Boolean})],Pt.prototype,"noGrouping",2);r([l()],Pt.prototype,"currency",2);r([l({attribute:"currency-display"})],Pt.prototype,"currencyDisplay",2);r([l({attribute:"minimum-integer-digits",type:Number})],Pt.prototype,"minimumIntegerDigits",2);r([l({attribute:"minimum-fraction-digits",type:Number})],Pt.prototype,"minimumFractionDigits",2);r([l({attribute:"maximum-fraction-digits",type:Number})],Pt.prototype,"maximumFractionDigits",2);r([l({attribute:"minimum-significant-digits",type:Number})],Pt.prototype,"minimumSignificantDigits",2);r([l({attribute:"maximum-significant-digits",type:Number})],Pt.prototype,"maximumSignificantDigits",2);Pt.define("sl-format-number");var vn=T`
|
|
5106
5106
|
${L}
|
|
5107
5107
|
|
|
5108
5108
|
:host {
|
|
@@ -5123,7 +5123,7 @@
|
|
|
5123
5123
|
border-left: solid var(--width) var(--color);
|
|
5124
5124
|
margin: 0 var(--spacing);
|
|
5125
5125
|
}
|
|
5126
|
-
`,
|
|
5126
|
+
`,Ti=class extends z{constructor(){super(...arguments),this.vertical=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}handleVerticalChange(){this.setAttribute("aria-orientation",this.vertical?"vertical":"horizontal")}};Ti.styles=vn;r([l({type:Boolean,reflect:!0})],Ti.prototype,"vertical",2);r([x("vertical")],Ti.prototype,"handleVerticalChange",1);Ti.define("sl-divider");var yn=T`
|
|
5127
5127
|
${L}
|
|
5128
5128
|
|
|
5129
5129
|
:host {
|
|
@@ -5173,7 +5173,7 @@
|
|
|
5173
5173
|
max-width: var(--auto-size-available-width) !important;
|
|
5174
5174
|
max-height: var(--auto-size-available-height) !important;
|
|
5175
5175
|
}
|
|
5176
|
-
`,pt=class extends z{constructor(){super(...arguments),this.localize=new U(this),this.open=!1,this.placement="bottom-start",this.disabled=!1,this.stayOpenOnSelect=!1,this.distance=0,this.skidding=0,this.hoist=!1,this.handleKeyDown=t=>{this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())},this.handleDocumentKeyDown=t=>{var e;if(t.key==="Escape"&&this.open){t.stopPropagation(),this.focusOnTrigger(),this.hide();return}if(t.key==="Tab"){if(this.open&&((e=document.activeElement)==null?void 0:e.tagName.toLowerCase())==="sl-menu-item"){t.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{var i,s,o;const a=((i=this.containingElement)==null?void 0:i.getRootNode())instanceof ShadowRoot?(o=(s=document.activeElement)==null?void 0:s.shadowRoot)==null?void 0:o.activeElement:document.activeElement;(!this.containingElement||(a==null?void 0:a.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()})}},this.handleDocumentMouseDown=t=>{const e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()},this.handlePanelSelect=t=>{const e=t.target;!this.stayOpenOnSelect&&e.tagName.toLowerCase()==="sl-menu"&&(this.hide(),this.focusOnTrigger())}}connectedCallback(){super.connectedCallback(),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}focusOnTrigger(){const t=this.trigger.assignedElements({flatten:!0})[0];typeof(t==null?void 0:t.focus)=="function"&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(t=>t.tagName.toLowerCase()==="sl-menu")}handleTriggerClick(){this.open?this.hide():(this.show(),this.focusOnTrigger())}async handleTriggerKeyDown(t){if([" ","Enter"].includes(t.key)){t.preventDefault(),this.handleTriggerClick();return}const e=this.getMenu();if(e){const i=e.getAllItems(),s=i[0],o=i[i.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||(this.show(),await this.updateComplete),i.length>0&&this.updateComplete.then(()=>{(t.key==="ArrowDown"||t.key==="Home")&&(e.setCurrentItem(s),s.focus()),(t.key==="ArrowUp"||t.key==="End")&&(e.setCurrentItem(o),o.focus())}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}updateAccessibleTrigger(){const e=this.trigger.assignedElements({flatten:!0}).find(s=>
|
|
5176
|
+
`,pt=class extends z{constructor(){super(...arguments),this.localize=new U(this),this.open=!1,this.placement="bottom-start",this.disabled=!1,this.stayOpenOnSelect=!1,this.distance=0,this.skidding=0,this.hoist=!1,this.handleKeyDown=t=>{this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())},this.handleDocumentKeyDown=t=>{var e;if(t.key==="Escape"&&this.open){t.stopPropagation(),this.focusOnTrigger(),this.hide();return}if(t.key==="Tab"){if(this.open&&((e=document.activeElement)==null?void 0:e.tagName.toLowerCase())==="sl-menu-item"){t.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{var i,s,o;const a=((i=this.containingElement)==null?void 0:i.getRootNode())instanceof ShadowRoot?(o=(s=document.activeElement)==null?void 0:s.shadowRoot)==null?void 0:o.activeElement:document.activeElement;(!this.containingElement||(a==null?void 0:a.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()})}},this.handleDocumentMouseDown=t=>{const e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()},this.handlePanelSelect=t=>{const e=t.target;!this.stayOpenOnSelect&&e.tagName.toLowerCase()==="sl-menu"&&(this.hide(),this.focusOnTrigger())}}connectedCallback(){super.connectedCallback(),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}focusOnTrigger(){const t=this.trigger.assignedElements({flatten:!0})[0];typeof(t==null?void 0:t.focus)=="function"&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(t=>t.tagName.toLowerCase()==="sl-menu")}handleTriggerClick(){this.open?this.hide():(this.show(),this.focusOnTrigger())}async handleTriggerKeyDown(t){if([" ","Enter"].includes(t.key)){t.preventDefault(),this.handleTriggerClick();return}const e=this.getMenu();if(e){const i=e.getAllItems(),s=i[0],o=i[i.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||(this.show(),await this.updateComplete),i.length>0&&this.updateComplete.then(()=>{(t.key==="ArrowDown"||t.key==="Home")&&(e.setCurrentItem(s),s.focus()),(t.key==="ArrowUp"||t.key==="End")&&(e.setCurrentItem(o),o.focus())}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}updateAccessibleTrigger(){const e=this.trigger.assignedElements({flatten:!0}).find(s=>bn(s).start);let i;if(e){switch(e.tagName.toLowerCase()){case"sl-button":case"sl-icon-button":i=e.button;break;default:i=e}i.setAttribute("aria-haspopup","true"),i.setAttribute("aria-expanded",this.open?"true":"false")}}async show(){if(!this.open)return this.open=!0,mt(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,mt(this,"sl-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sl-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sl-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){this.emit("sl-show"),this.addOpenListeners(),await et(this),this.panel.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=X(this,"dropdown.show",{dir:this.localize.dir()});await Z(this.popup.popup,t,e),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),await et(this);const{keyframes:t,options:e}=X(this,"dropdown.hide",{dir:this.localize.dir()});await Z(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sl-after-hide")}}render(){return y`
|
|
5177
5177
|
<sl-popup
|
|
5178
5178
|
part="base"
|
|
5179
5179
|
id="dropdown"
|
|
@@ -5202,7 +5202,7 @@
|
|
|
5202
5202
|
<slot part="panel" class="dropdown__panel"></slot>
|
|
5203
5203
|
</div>
|
|
5204
5204
|
</sl-popup>
|
|
5205
|
-
`}};pt.styles=
|
|
5205
|
+
`}};pt.styles=yn;pt.dependencies={"sl-popup":j};r([k(".dropdown")],pt.prototype,"popup",2);r([k(".dropdown__trigger")],pt.prototype,"trigger",2);r([k(".dropdown__panel")],pt.prototype,"panel",2);r([l({type:Boolean,reflect:!0})],pt.prototype,"open",2);r([l({reflect:!0})],pt.prototype,"placement",2);r([l({type:Boolean,reflect:!0})],pt.prototype,"disabled",2);r([l({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],pt.prototype,"stayOpenOnSelect",2);r([l({attribute:!1})],pt.prototype,"containingElement",2);r([l({type:Number})],pt.prototype,"distance",2);r([l({type:Number})],pt.prototype,"skidding",2);r([l({type:Boolean})],pt.prototype,"hoist",2);r([x("open",{waitUntilFirstUpdate:!0})],pt.prototype,"handleOpenChange",1);q("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});q("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});pt.define("sl-dropdown");var _n=T`
|
|
5206
5206
|
${L}
|
|
5207
5207
|
|
|
5208
5208
|
:host {
|
|
@@ -5279,7 +5279,7 @@
|
|
|
5279
5279
|
</slot>
|
|
5280
5280
|
</button>
|
|
5281
5281
|
</sl-tooltip>
|
|
5282
|
-
`}};nt.styles=
|
|
5282
|
+
`}};nt.styles=_n;nt.dependencies={"sl-icon":K,"sl-tooltip":at};r([k('slot[name="copy-icon"]')],nt.prototype,"copyIcon",2);r([k('slot[name="success-icon"]')],nt.prototype,"successIcon",2);r([k('slot[name="error-icon"]')],nt.prototype,"errorIcon",2);r([k("sl-tooltip")],nt.prototype,"tooltip",2);r([D()],nt.prototype,"isCopying",2);r([D()],nt.prototype,"status",2);r([l()],nt.prototype,"value",2);r([l()],nt.prototype,"from",2);r([l({type:Boolean,reflect:!0})],nt.prototype,"disabled",2);r([l({attribute:"copy-label"})],nt.prototype,"copyLabel",2);r([l({attribute:"success-label"})],nt.prototype,"successLabel",2);r([l({attribute:"error-label"})],nt.prototype,"errorLabel",2);r([l({attribute:"feedback-duration",type:Number})],nt.prototype,"feedbackDuration",2);r([l({attribute:"tooltip-placement"})],nt.prototype,"tooltipPlacement",2);r([l({type:Boolean})],nt.prototype,"hoist",2);q("copy.in",{keyframes:[{scale:".25",opacity:".25"},{scale:"1",opacity:"1"}],options:{duration:100}});q("copy.out",{keyframes:[{scale:"1",opacity:"1"},{scale:".25",opacity:"0"}],options:{duration:100}});nt.define("sl-copy-button");var wn=T`
|
|
5283
5283
|
${L}
|
|
5284
5284
|
|
|
5285
5285
|
:host {
|
|
@@ -5396,7 +5396,7 @@
|
|
|
5396
5396
|
<slot part="content" id="content" class="details__content"></slot>
|
|
5397
5397
|
</div>
|
|
5398
5398
|
</details>
|
|
5399
|
-
`}};Mt.styles=
|
|
5399
|
+
`}};Mt.styles=wn;Mt.dependencies={"sl-icon":K};r([k(".details")],Mt.prototype,"details",2);r([k(".details__header")],Mt.prototype,"header",2);r([k(".details__body")],Mt.prototype,"body",2);r([k(".details__expand-icon-slot")],Mt.prototype,"expandIconSlot",2);r([l({type:Boolean,reflect:!0})],Mt.prototype,"open",2);r([l()],Mt.prototype,"summary",2);r([l({type:Boolean,reflect:!0})],Mt.prototype,"disabled",2);r([x("open",{waitUntilFirstUpdate:!0})],Mt.prototype,"handleOpenChange",1);q("details.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:250,easing:"linear"}});q("details.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:250,easing:"linear"}});Mt.define("sl-details");var xn=T`
|
|
5400
5400
|
${L}
|
|
5401
5401
|
|
|
5402
5402
|
:host {
|
|
@@ -5559,7 +5559,7 @@
|
|
|
5559
5559
|
</footer>
|
|
5560
5560
|
</div>
|
|
5561
5561
|
</div>
|
|
5562
|
-
`}};Ht.styles=
|
|
5562
|
+
`}};Ht.styles=xn;Ht.dependencies={"sl-icon-button":st};r([k(".dialog")],Ht.prototype,"dialog",2);r([k(".dialog__panel")],Ht.prototype,"panel",2);r([k(".dialog__overlay")],Ht.prototype,"overlay",2);r([l({type:Boolean,reflect:!0})],Ht.prototype,"open",2);r([l({reflect:!0})],Ht.prototype,"label",2);r([l({attribute:"no-header",type:Boolean,reflect:!0})],Ht.prototype,"noHeader",2);r([x("open",{waitUntilFirstUpdate:!0})],Ht.prototype,"handleOpenChange",1);q("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});q("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});q("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});q("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});q("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});Ht.define("sl-dialog");var kn=T`
|
|
5563
5563
|
${L}
|
|
5564
5564
|
|
|
5565
5565
|
:host {
|
|
@@ -5581,7 +5581,7 @@
|
|
|
5581
5581
|
height: 100% !important;
|
|
5582
5582
|
object-fit: cover;
|
|
5583
5583
|
}
|
|
5584
|
-
`,Io=class extends z{connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return y` <slot></slot> `}};Io.styles
|
|
5584
|
+
`,Io=class extends z{connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return y` <slot></slot> `}};Io.styles=kn;Io.define("sl-carousel-item");rt.define("sl-checkbox");var $n=T`
|
|
5585
5585
|
${L}
|
|
5586
5586
|
|
|
5587
5587
|
:host {
|
|
@@ -5918,7 +5918,7 @@
|
|
|
5918
5918
|
opacity: 0.5;
|
|
5919
5919
|
cursor: not-allowed;
|
|
5920
5920
|
}
|
|
5921
|
-
`,H=class extends z{constructor(){super(...arguments),this.formControlController=new Gt(this,{form:t=>{if(t.hasAttribute("form")){const e=t.getRootNode(),i=t.getAttribute("form");return e.getElementById(i)}return t.closest("form")},assumeInteractionOn:["click"]}),this.hasSlotController=new kt(this,"[default]","prefix","suffix"),this.localize=new U(this),this.hasFocus=!1,this.invalid=!1,this.title="",this.variant="default",this.size="medium",this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type="button",this.name="",this.value="",this.href="",this.rel="noreferrer noopener"}get validity(){return this.isButton()?this.button.validity
|
|
5921
|
+
`,H=class extends z{constructor(){super(...arguments),this.formControlController=new Gt(this,{form:t=>{if(t.hasAttribute("form")){const e=t.getRootNode(),i=t.getAttribute("form");return e.getElementById(i)}return t.closest("form")},assumeInteractionOn:["click"]}),this.hasSlotController=new kt(this,"[default]","prefix","suffix"),this.localize=new U(this),this.hasFocus=!1,this.invalid=!1,this.title="",this.variant="default",this.size="medium",this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type="button",this.name="",this.value="",this.href="",this.rel="noreferrer noopener"}get validity(){return this.isButton()?this.button.validity:$i}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(){this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){const t=this.isLink(),e=t?wi`a`:wi`button`;return Be`
|
|
5922
5922
|
<${e}
|
|
5923
5923
|
part="base"
|
|
5924
5924
|
class=${O({button:!0,"button--default":this.variant==="default","button--primary":this.variant==="primary","button--success":this.variant==="success","button--neutral":this.variant==="neutral","button--warning":this.variant==="warning","button--danger":this.variant==="danger","button--text":this.variant==="text","button--small":this.size==="small","button--medium":this.size==="medium","button--large":this.size==="large","button--caret":this.caret,"button--circle":this.circle,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--standard":!this.outline,"button--outline":this.outline,"button--pill":this.pill,"button--rtl":this.localize.dir()==="rtl","button--has-label":this.hasSlotController.test("[default]"),"button--has-prefix":this.hasSlotController.test("prefix"),"button--has-suffix":this.hasSlotController.test("suffix")})}
|
|
@@ -5945,7 +5945,7 @@
|
|
|
5945
5945
|
${this.caret?Be` <sl-icon part="caret" class="button__caret" library="system" name="caret"></sl-icon> `:""}
|
|
5946
5946
|
${this.loading?Be`<sl-spinner part="spinner"></sl-spinner>`:""}
|
|
5947
5947
|
</${e}>
|
|
5948
|
-
`}};H.styles=Co;H.dependencies={"sl-icon":K,"sl-spinner":Je};r([k(".button")],H.prototype,"button",2);r([D()],H.prototype,"hasFocus",2);r([D()],H.prototype,"invalid",2);r([l()],H.prototype,"title",2);r([l({reflect:!0})],H.prototype,"variant",2);r([l({reflect:!0})],H.prototype,"size",2);r([l({type:Boolean,reflect:!0})],H.prototype,"caret",2);r([l({type:Boolean,reflect:!0})],H.prototype,"disabled",2);r([l({type:Boolean,reflect:!0})],H.prototype,"loading",2);r([l({type:Boolean,reflect:!0})],H.prototype,"outline",2);r([l({type:Boolean,reflect:!0})],H.prototype,"pill",2);r([l({type:Boolean,reflect:!0})],H.prototype,"circle",2);r([l()],H.prototype,"type",2);r([l()],H.prototype,"name",2);r([l()],H.prototype,"value",2);r([l()],H.prototype,"href",2);r([l()],H.prototype,"target",2);r([l()],H.prototype,"rel",2);r([l()],H.prototype,"download",2);r([l()],H.prototype,"form",2);r([l({attribute:"formaction"})],H.prototype,"formAction",2);r([l({attribute:"formenctype"})],H.prototype,"formEnctype",2);r([l({attribute:"formmethod"})],H.prototype,"formMethod",2);r([l({attribute:"formnovalidate",type:Boolean})],H.prototype,"formNoValidate",2);r([l({attribute:"formtarget"})],H.prototype,"formTarget",2);r([x("disabled",{waitUntilFirstUpdate:!0})],H.prototype,"handleDisabledChange",1);function ct(t,e){Sn(t)&&(t="100%");const i=zn(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),i&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function hi(t){return Math.min(1,Math.max(0,t))}function Sn(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function zn(t){return typeof t=="string"&&t.indexOf("%")!==-1}function Oo(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function ui(t){return Number(t)<=1?`${Number(t)*100}%`:t}function de(t){return t.length===1?"0"+t:String(t)}function An(t,e,i){return{r:ct(t,255)*255,g:ct(e,255)*255,b:ct(i,255)*255}}function js(t,e,i){t=ct(t,255),e=ct(e,255),i=ct(i,255);const s=Math.max(t,e,i),o=Math.min(t,e,i);let a=0,n=0;const d=(s+o)/2;if(s===o)n=0,a=0;else{const c=s-o;switch(n=d>.5?c/(2-s-o):c/(s+o),s){case t:a=(e-i)/c+(e<i?6:0);break;case e:a=(i-t)/c+2;break;case i:a=(t-e)/c+4;break}a/=6}return{h:a,s:n,l:d}}function Hi(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*(6*i):i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function En(t,e,i){let s,o,a;if(t=ct(t,360),e=ct(e,100),i=ct(i,100),e===0)o=i,a=i,s=i;else{const n=i<.5?i*(1+e):i+e-i*e,d=2*i-n;s=Hi(d,n,t+1/3),o=Hi(d,n,t),a=Hi(d,n,t-1/3)}return{r:s*255,g:o*255,b:a*255}}function Ks(t,e,i){t=ct(t,255),e=ct(e,255),i=ct(i,255);const s=Math.max(t,e,i),o=Math.min(t,e,i);let a=0;const n=s,d=s-o,c=s===0?0:d/s;if(s===o)a=0;else{switch(s){case t:a=(e-i)/d+(e<i?6:0);break;case e:a=(i-t)/d+2;break;case i:a=(t-e)/d+4;break}a/=6}return{h:a,s:c,v:n}}function Tn(t,e,i){t=ct(t,360)*6,e=ct(e,100),i=ct(i,100);const s=Math.floor(t),o=t-s,a=i*(1-e),n=i*(1-o*e),d=i*(1-(1-o)*e),c=s%6,h=[i,n,a,a,d,i][c],b=[d,i,i,n,a,a][c],u=[a,a,d,i,i,n][c];return{r:h*255,g:b*255,b:u*255}}function Ws(t,e,i,s){const o=[de(Math.round(t).toString(16)),de(Math.round(e).toString(16)),de(Math.round(i).toString(16))];return s&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Ln(t,e,i,s,o){const a=[de(Math.round(t).toString(16)),de(Math.round(e).toString(16)),de(Math.round(i).toString(16)),de(In(s))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function In(t){return Math.round(parseFloat(t)*255).toString(16)}function Xs(t){return yt(t)/255}function yt(t){return parseInt(t,16)}function On(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}const ss={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Dn(t){let e={r:0,g:0,b:0},i=1,s=null,o=null,a=null,n=!1,d=!1;return typeof t=="string"&&(t=Rn(t)),typeof t=="object"&&(Wt(t.r)&&Wt(t.g)&&Wt(t.b)?(e=An(t.r,t.g,t.b),n=!0,d=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Wt(t.h)&&Wt(t.s)&&Wt(t.v)?(s=ui(t.s),o=ui(t.v),e=Tn(t.h,s,o),n=!0,d="hsv"):Wt(t.h)&&Wt(t.s)&&Wt(t.l)&&(s=ui(t.s),a=ui(t.l),e=En(t.h,s,a),n=!0,d="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(i=t.a)),i=Oo(i),{ok:n,format:t.format||d,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:i}}const Pn="[-\\+]?\\d+%?",Mn="[-\\+]?\\d*\\.\\d+%?",Jt=`(?:${Mn})|(?:${Pn})`,qi=`[\\s|\\(]+(${Jt})[,|\\s]+(${Jt})[,|\\s]+(${Jt})\\s*\\)?`,ji=`[\\s|\\(]+(${Jt})[,|\\s]+(${Jt})[,|\\s]+(${Jt})[,|\\s]+(${Jt})\\s*\\)?`,It={CSS_UNIT:new RegExp(Jt),rgb:new RegExp("rgb"+qi),rgba:new RegExp("rgba"+ji),hsl:new RegExp("hsl"+qi),hsla:new RegExp("hsla"+ji),hsv:new RegExp("hsv"+qi),hsva:new RegExp("hsva"+ji),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Rn(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;let e=!1;if(ss[t])t=ss[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let i=It.rgb.exec(t);return i?{r:i[1],g:i[2],b:i[3]}:(i=It.rgba.exec(t),i?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=It.hsl.exec(t),i?{h:i[1],s:i[2],l:i[3]}:(i=It.hsla.exec(t),i?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=It.hsv.exec(t),i?{h:i[1],s:i[2],v:i[3]}:(i=It.hsva.exec(t),i?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=It.hex8.exec(t),i?{r:yt(i[1]),g:yt(i[2]),b:yt(i[3]),a:Xs(i[4]),format:e?"name":"hex8"}:(i=It.hex6.exec(t),i?{r:yt(i[1]),g:yt(i[2]),b:yt(i[3]),format:e?"name":"hex"}:(i=It.hex4.exec(t),i?{r:yt(i[1]+i[1]),g:yt(i[2]+i[2]),b:yt(i[3]+i[3]),a:Xs(i[4]+i[4]),format:e?"name":"hex8"}:(i=It.hex3.exec(t),i?{r:yt(i[1]+i[1]),g:yt(i[2]+i[2]),b:yt(i[3]+i[3]),format:e?"name":"hex"}:!1)))))))))}function Wt(t){return!!It.CSS_UNIT.exec(String(t))}class Q{constructor(e="",i={}){if(e instanceof Q)return e;typeof e=="number"&&(e=On(e)),this.originalInput=e;const s=Dn(e);this.originalInput=e,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=i.format??s.format,this.gradientType=i.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3}getLuminance(){const e=this.toRgb();let i,s,o;const a=e.r/255,n=e.g/255,d=e.b/255;return a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),n<=.03928?s=n/12.92:s=Math.pow((n+.055)/1.055,2.4),d<=.03928?o=d/12.92:o=Math.pow((d+.055)/1.055,2.4),.2126*i+.7152*s+.0722*o}getAlpha(){return this.a}setAlpha(e){return this.a=Oo(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:e}=this.toHsl();return e===0}toHsv(){const e=Ks(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}}toHsvString(){const e=Ks(this.r,this.g,this.b),i=Math.round(e.h*360),s=Math.round(e.s*100),o=Math.round(e.v*100);return this.a===1?`hsv(${i}, ${s}%, ${o}%)`:`hsva(${i}, ${s}%, ${o}%, ${this.roundA})`}toHsl(){const e=js(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}}toHslString(){const e=js(this.r,this.g,this.b),i=Math.round(e.h*360),s=Math.round(e.s*100),o=Math.round(e.l*100);return this.a===1?`hsl(${i}, ${s}%, ${o}%)`:`hsla(${i}, ${s}%, ${o}%, ${this.roundA})`}toHex(e=!1){return Ws(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return Ln(this.r,this.g,this.b,this.a,e)}toHex8String(e=!1){return"#"+this.toHex8(e)}toHexShortString(e=!1){return this.a===1?this.toHexString(e):this.toHex8String(e)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const e=Math.round(this.r),i=Math.round(this.g),s=Math.round(this.b);return this.a===1?`rgb(${e}, ${i}, ${s})`:`rgba(${e}, ${i}, ${s}, ${this.roundA})`}toPercentageRgb(){const e=i=>`${Math.round(ct(i,255)*100)}%`;return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){const e=i=>Math.round(ct(i,255)*100);return this.a===1?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const e="#"+Ws(this.r,this.g,this.b,!1);for(const[i,s]of Object.entries(ss))if(e===s)return i;return!1}toString(e){const i=!!e;e=e??this.format;let s=!1;const o=this.a<1&&this.a>=0;return!i&&o&&(e.startsWith("hex")||e==="name")?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(s=this.toRgbString()),e==="prgb"&&(s=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(s=this.toHexString()),e==="hex3"&&(s=this.toHexString(!0)),e==="hex4"&&(s=this.toHex8String(!0)),e==="hex8"&&(s=this.toHex8String()),e==="name"&&(s=this.toName()),e==="hsl"&&(s=this.toHslString()),e==="hsv"&&(s=this.toHsvString()),s||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new Q(this.toString())}lighten(e=10){const i=this.toHsl();return i.l+=e/100,i.l=hi(i.l),new Q(i)}brighten(e=10){const i=this.toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(255*-(e/100)))),i.g=Math.max(0,Math.min(255,i.g-Math.round(255*-(e/100)))),i.b=Math.max(0,Math.min(255,i.b-Math.round(255*-(e/100)))),new Q(i)}darken(e=10){const i=this.toHsl();return i.l-=e/100,i.l=hi(i.l),new Q(i)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){const i=this.toHsl();return i.s-=e/100,i.s=hi(i.s),new Q(i)}saturate(e=10){const i=this.toHsl();return i.s+=e/100,i.s=hi(i.s),new Q(i)}greyscale(){return this.desaturate(100)}spin(e){const i=this.toHsl(),s=(i.h+e)%360;return i.h=s<0?360+s:s,new Q(i)}mix(e,i=50){const s=this.toRgb(),o=new Q(e).toRgb(),a=i/100,n={r:(o.r-s.r)*a+s.r,g:(o.g-s.g)*a+s.g,b:(o.b-s.b)*a+s.b,a:(o.a-s.a)*a+s.a};return new Q(n)}analogous(e=6,i=30){const s=this.toHsl(),o=360/i,a=[this];for(s.h=(s.h-(o*e>>1)+720)%360;--e;)s.h=(s.h+o)%360,a.push(new Q(s));return a}complement(){const e=this.toHsl();return e.h=(e.h+180)%360,new Q(e)}monochromatic(e=6){const i=this.toHsv(),{h:s}=i,{s:o}=i;let{v:a}=i;const n=[],d=1/e;for(;e--;)n.push(new Q({h:s,s:o,v:a})),a=(a+d)%1;return n}splitcomplement(){const e=this.toHsl(),{h:i}=e;return[this,new Q({h:(i+72)%360,s:e.s,l:e.l}),new Q({h:(i+216)%360,s:e.s,l:e.l})]}onBackground(e){const i=this.toRgb(),s=new Q(e).toRgb(),o=i.a+s.a*(1-i.a);return new Q({r:(i.r*i.a+s.r*s.a*(1-i.a))/o,g:(i.g*i.a+s.g*s.a*(1-i.a))/o,b:(i.b*i.a+s.b*s.a*(1-i.a))/o,a:o})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){const i=this.toHsl(),{h:s}=i,o=[this],a=360/e;for(let n=1;n<e;n++)o.push(new Q({h:(s+n*a)%360,s:i.s,l:i.l}));return o}equals(e){return this.toRgbString()===new Q(e).toRgbString()}}var Ys="EyeDropper"in window,B=class extends z{constructor(){super(),this.formControlController=new Gt(this),this.isSafeValue=!1,this.localize=new U(this),this.hasFocus=!1,this.isDraggingGridHandle=!1,this.isEmpty=!1,this.inputValue="",this.hue=0,this.saturation=100,this.brightness=100,this.alpha=100,this.value="",this.defaultValue="",this.label="",this.format="hex",this.inline=!1,this.size="medium",this.noFormatToggle=!1,this.name="",this.disabled=!1,this.hoist=!1,this.opacity=!1,this.uppercase=!1,this.swatches="",this.form="",this.required=!1,this.handleFocusIn=()=>{this.hasFocus=!0,this.emit("sl-focus")},this.handleFocusOut=()=>{this.hasFocus=!1,this.emit("sl-blur")},this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut)}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.input.updateComplete.then(()=>{this.formControlController.updateValidity()})}handleCopy(){this.input.select(),document.execCommand("copy"),this.previewButton.focus(),this.previewButton.classList.add("color-picker__preview-color--copied"),this.previewButton.addEventListener("animationend",()=>{this.previewButton.classList.remove("color-picker__preview-color--copied")})}handleFormatToggle(){const t=["hex","rgb","hsl","hsv"],e=(t.indexOf(this.format)+1)%t.length;this.format=t[e],this.setColor(this.value),this.emit("sl-change"),this.emit("sl-input")}handleAlphaDrag(t){const e=this.shadowRoot.querySelector(".color-picker__slider.color-picker__alpha"),i=e.querySelector(".color-picker__slider-handle"),{width:s}=e.getBoundingClientRect();let o=this.value;i.focus(),t.preventDefault(),He(e,{onMove:a=>{this.alpha=tt(a/s*100,0,100),this.syncValues(),this.value!==o&&(o=this.value,this.emit("sl-change"),this.emit("sl-input"))},initialEvent:t})}handleHueDrag(t){const e=this.shadowRoot.querySelector(".color-picker__slider.color-picker__hue"),i=e.querySelector(".color-picker__slider-handle"),{width:s}=e.getBoundingClientRect();let o=this.value;i.focus(),t.preventDefault(),He(e,{onMove:a=>{this.hue=tt(a/s*360,0,360),this.syncValues(),this.value!==o&&(o=this.value,this.emit("sl-change"),this.emit("sl-input"))},initialEvent:t})}handleGridDrag(t){const e=this.shadowRoot.querySelector(".color-picker__grid"),i=e.querySelector(".color-picker__grid-handle"),{width:s,height:o}=e.getBoundingClientRect();let a=this.value;i.focus(),t.preventDefault(),this.isDraggingGridHandle=!0,He(e,{onMove:(n,d)=>{this.saturation=tt(n/s*100,0,100),this.brightness=tt(100-d/o*100,0,100),this.syncValues(),this.value!==a&&(a=this.value,this.emit("sl-change"),this.emit("sl-input"))},onStop:()=>this.isDraggingGridHandle=!1,initialEvent:t})}handleAlphaKeyDown(t){const e=t.shiftKey?10:1,i=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.alpha=tt(this.alpha-e,0,100),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.alpha=tt(this.alpha+e,0,100),this.syncValues()),t.key==="Home"&&(t.preventDefault(),this.alpha=0,this.syncValues()),t.key==="End"&&(t.preventDefault(),this.alpha=100,this.syncValues()),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleHueKeyDown(t){const e=t.shiftKey?10:1,i=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.hue=tt(this.hue-e,0,360),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.hue=tt(this.hue+e,0,360),this.syncValues()),t.key==="Home"&&(t.preventDefault(),this.hue=0,this.syncValues()),t.key==="End"&&(t.preventDefault(),this.hue=360,this.syncValues()),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleGridKeyDown(t){const e=t.shiftKey?10:1,i=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.saturation=tt(this.saturation-e,0,100),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.saturation=tt(this.saturation+e,0,100),this.syncValues()),t.key==="ArrowUp"&&(t.preventDefault(),this.brightness=tt(this.brightness+e,0,100),this.syncValues()),t.key==="ArrowDown"&&(t.preventDefault(),this.brightness=tt(this.brightness-e,0,100),this.syncValues()),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleInputChange(t){const e=t.target,i=this.value;t.stopPropagation(),this.input.value?(this.setColor(e.value),e.value=this.value):this.value="",this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleInputInput(t){this.formControlController.updateValidity(),t.stopPropagation()}handleInputKeyDown(t){if(t.key==="Enter"){const e=this.value;this.input.value?(this.setColor(this.input.value),this.input.value=this.value,this.value!==e&&(this.emit("sl-change"),this.emit("sl-input")),setTimeout(()=>this.input.select())):this.hue=0}}handleInputInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleTouchMove(t){t.preventDefault()}parseColor(t){const e=new Q(t);if(!e.isValid)return null;const i=e.toHsl(),s={h:i.h,s:i.s*100,l:i.l*100,a:i.a},o=e.toRgb(),a=e.toHexString(),n=e.toHex8String(),d=e.toHsv(),c={h:d.h,s:d.s*100,v:d.v*100,a:d.a};return{hsl:{h:s.h,s:s.s,l:s.l,string:this.setLetterCase(`hsl(${Math.round(s.h)}, ${Math.round(s.s)}%, ${Math.round(s.l)}%)`)},hsla:{h:s.h,s:s.s,l:s.l,a:s.a,string:this.setLetterCase(`hsla(${Math.round(s.h)}, ${Math.round(s.s)}%, ${Math.round(s.l)}%, ${s.a.toFixed(2).toString()})`)},hsv:{h:c.h,s:c.s,v:c.v,string:this.setLetterCase(`hsv(${Math.round(c.h)}, ${Math.round(c.s)}%, ${Math.round(c.v)}%)`)},hsva:{h:c.h,s:c.s,v:c.v,a:c.a,string:this.setLetterCase(`hsva(${Math.round(c.h)}, ${Math.round(c.s)}%, ${Math.round(c.v)}%, ${c.a.toFixed(2).toString()})`)},rgb:{r:o.r,g:o.g,b:o.b,string:this.setLetterCase(`rgb(${Math.round(o.r)}, ${Math.round(o.g)}, ${Math.round(o.b)})`)},rgba:{r:o.r,g:o.g,b:o.b,a:o.a,string:this.setLetterCase(`rgba(${Math.round(o.r)}, ${Math.round(o.g)}, ${Math.round(o.b)}, ${o.a.toFixed(2).toString()})`)},hex:this.setLetterCase(a),hexa:this.setLetterCase(n)}}setColor(t){const e=this.parseColor(t);return e===null?!1:(this.hue=e.hsva.h,this.saturation=e.hsva.s,this.brightness=e.hsva.v,this.alpha=this.opacity?e.hsva.a*100:100,this.syncValues(),!0)}setLetterCase(t){return typeof t!="string"?"":this.uppercase?t.toUpperCase():t.toLowerCase()}async syncValues(){const t=this.parseColor(`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha/100})`);t!==null&&(this.format==="hsl"?this.inputValue=this.opacity?t.hsla.string:t.hsl.string:this.format==="rgb"?this.inputValue=this.opacity?t.rgba.string:t.rgb.string:this.format==="hsv"?this.inputValue=this.opacity?t.hsva.string:t.hsv.string:this.inputValue=this.opacity?t.hexa:t.hex,this.isSafeValue=!0,this.value=this.inputValue,await this.updateComplete,this.isSafeValue=!1)}handleAfterHide(){this.previewButton.classList.remove("color-picker__preview-color--copied")}handleEyeDropper(){if(!Ys)return;new EyeDropper().open().then(e=>{const i=this.value;this.setColor(e.sRGBHex),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}).catch(()=>{})}selectSwatch(t){const e=this.value;this.disabled||(this.setColor(t),this.value!==e&&(this.emit("sl-change"),this.emit("sl-input")))}getHexString(t,e,i,s=100){const o=new Q(`hsva(${t}, ${e}, ${i}, ${s/100})`);return o.isValid?o.toHex8String():""}stopNestedEventPropagation(t){t.stopImmediatePropagation()}handleFormatChange(){this.syncValues()}handleOpacityChange(){this.alpha=100}handleValueChange(t,e){if(this.isEmpty=!e,e||(this.hue=0,this.saturation=0,this.brightness=100,this.alpha=100),!this.isSafeValue){const i=this.parseColor(e);i!==null?(this.inputValue=this.value,this.hue=i.hsva.h,this.saturation=i.hsva.s,this.brightness=i.hsva.v,this.alpha=i.hsva.a*100,this.syncValues()):this.inputValue=t??""}}focus(t){this.inline?this.base.focus(t):this.trigger.focus(t)}blur(){var t;const e=this.inline?this.base:this.trigger;this.hasFocus&&(e.focus({preventScroll:!0}),e.blur()),(t=this.dropdown)!=null&&t.open&&this.dropdown.hide()}getFormattedValue(t="hex"){const e=this.parseColor(`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha/100})`);if(e===null)return"";switch(t){case"hex":return e.hex;case"hexa":return e.hexa;case"rgb":return e.rgb.string;case"rgba":return e.rgba.string;case"hsl":return e.hsl.string;case"hsla":return e.hsla.string;case"hsv":return e.hsv.string;case"hsva":return e.hsva.string;default:return""}}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.inline&&!this.validity.valid?(this.dropdown.show(),this.addEventListener("sl-after-show",()=>this.input.reportValidity(),{once:!0}),this.disabled||this.formControlController.emitInvalidEvent(),!1):this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.saturation,e=100-this.brightness,i=Array.isArray(this.swatches)?this.swatches:this.swatches.split(";").filter(o=>o.trim()!==""),s=y`
|
|
5948
|
+
`}};H.styles=Co;H.dependencies={"sl-icon":K,"sl-spinner":Je};r([k(".button")],H.prototype,"button",2);r([D()],H.prototype,"hasFocus",2);r([D()],H.prototype,"invalid",2);r([l()],H.prototype,"title",2);r([l({reflect:!0})],H.prototype,"variant",2);r([l({reflect:!0})],H.prototype,"size",2);r([l({type:Boolean,reflect:!0})],H.prototype,"caret",2);r([l({type:Boolean,reflect:!0})],H.prototype,"disabled",2);r([l({type:Boolean,reflect:!0})],H.prototype,"loading",2);r([l({type:Boolean,reflect:!0})],H.prototype,"outline",2);r([l({type:Boolean,reflect:!0})],H.prototype,"pill",2);r([l({type:Boolean,reflect:!0})],H.prototype,"circle",2);r([l()],H.prototype,"type",2);r([l()],H.prototype,"name",2);r([l()],H.prototype,"value",2);r([l()],H.prototype,"href",2);r([l()],H.prototype,"target",2);r([l()],H.prototype,"rel",2);r([l()],H.prototype,"download",2);r([l()],H.prototype,"form",2);r([l({attribute:"formaction"})],H.prototype,"formAction",2);r([l({attribute:"formenctype"})],H.prototype,"formEnctype",2);r([l({attribute:"formmethod"})],H.prototype,"formMethod",2);r([l({attribute:"formnovalidate",type:Boolean})],H.prototype,"formNoValidate",2);r([l({attribute:"formtarget"})],H.prototype,"formTarget",2);r([x("disabled",{waitUntilFirstUpdate:!0})],H.prototype,"handleDisabledChange",1);function ct(t,e){Cn(t)&&(t="100%");const i=Sn(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),i&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function hi(t){return Math.min(1,Math.max(0,t))}function Cn(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function Sn(t){return typeof t=="string"&&t.indexOf("%")!==-1}function Oo(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function ui(t){return Number(t)<=1?`${Number(t)*100}%`:t}function de(t){return t.length===1?"0"+t:String(t)}function zn(t,e,i){return{r:ct(t,255)*255,g:ct(e,255)*255,b:ct(i,255)*255}}function js(t,e,i){t=ct(t,255),e=ct(e,255),i=ct(i,255);const s=Math.max(t,e,i),o=Math.min(t,e,i);let a=0,n=0;const d=(s+o)/2;if(s===o)n=0,a=0;else{const c=s-o;switch(n=d>.5?c/(2-s-o):c/(s+o),s){case t:a=(e-i)/c+(e<i?6:0);break;case e:a=(i-t)/c+2;break;case i:a=(t-e)/c+4;break}a/=6}return{h:a,s:n,l:d}}function Ni(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*(6*i):i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function An(t,e,i){let s,o,a;if(t=ct(t,360),e=ct(e,100),i=ct(i,100),e===0)o=i,a=i,s=i;else{const n=i<.5?i*(1+e):i+e-i*e,d=2*i-n;s=Ni(d,n,t+1/3),o=Ni(d,n,t),a=Ni(d,n,t-1/3)}return{r:s*255,g:o*255,b:a*255}}function Ks(t,e,i){t=ct(t,255),e=ct(e,255),i=ct(i,255);const s=Math.max(t,e,i),o=Math.min(t,e,i);let a=0;const n=s,d=s-o,c=s===0?0:d/s;if(s===o)a=0;else{switch(s){case t:a=(e-i)/d+(e<i?6:0);break;case e:a=(i-t)/d+2;break;case i:a=(t-e)/d+4;break}a/=6}return{h:a,s:c,v:n}}function En(t,e,i){t=ct(t,360)*6,e=ct(e,100),i=ct(i,100);const s=Math.floor(t),o=t-s,a=i*(1-e),n=i*(1-o*e),d=i*(1-(1-o)*e),c=s%6,h=[i,n,a,a,d,i][c],b=[d,i,i,n,a,a][c],u=[a,a,d,i,i,n][c];return{r:h*255,g:b*255,b:u*255}}function Ws(t,e,i,s){const o=[de(Math.round(t).toString(16)),de(Math.round(e).toString(16)),de(Math.round(i).toString(16))];return s&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Tn(t,e,i,s,o){const a=[de(Math.round(t).toString(16)),de(Math.round(e).toString(16)),de(Math.round(i).toString(16)),de(Ln(s))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Ln(t){return Math.round(parseFloat(t)*255).toString(16)}function Xs(t){return yt(t)/255}function yt(t){return parseInt(t,16)}function In(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}const is={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function On(t){let e={r:0,g:0,b:0},i=1,s=null,o=null,a=null,n=!1,d=!1;return typeof t=="string"&&(t=Mn(t)),typeof t=="object"&&(Wt(t.r)&&Wt(t.g)&&Wt(t.b)?(e=zn(t.r,t.g,t.b),n=!0,d=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Wt(t.h)&&Wt(t.s)&&Wt(t.v)?(s=ui(t.s),o=ui(t.v),e=En(t.h,s,o),n=!0,d="hsv"):Wt(t.h)&&Wt(t.s)&&Wt(t.l)&&(s=ui(t.s),a=ui(t.l),e=An(t.h,s,a),n=!0,d="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(i=t.a)),i=Oo(i),{ok:n,format:t.format||d,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:i}}const Dn="[-\\+]?\\d+%?",Pn="[-\\+]?\\d*\\.\\d+%?",Jt=`(?:${Pn})|(?:${Dn})`,Hi=`[\\s|\\(]+(${Jt})[,|\\s]+(${Jt})[,|\\s]+(${Jt})\\s*\\)?`,qi=`[\\s|\\(]+(${Jt})[,|\\s]+(${Jt})[,|\\s]+(${Jt})[,|\\s]+(${Jt})\\s*\\)?`,It={CSS_UNIT:new RegExp(Jt),rgb:new RegExp("rgb"+Hi),rgba:new RegExp("rgba"+qi),hsl:new RegExp("hsl"+Hi),hsla:new RegExp("hsla"+qi),hsv:new RegExp("hsv"+Hi),hsva:new RegExp("hsva"+qi),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Mn(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;let e=!1;if(is[t])t=is[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let i=It.rgb.exec(t);return i?{r:i[1],g:i[2],b:i[3]}:(i=It.rgba.exec(t),i?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=It.hsl.exec(t),i?{h:i[1],s:i[2],l:i[3]}:(i=It.hsla.exec(t),i?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=It.hsv.exec(t),i?{h:i[1],s:i[2],v:i[3]}:(i=It.hsva.exec(t),i?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=It.hex8.exec(t),i?{r:yt(i[1]),g:yt(i[2]),b:yt(i[3]),a:Xs(i[4]),format:e?"name":"hex8"}:(i=It.hex6.exec(t),i?{r:yt(i[1]),g:yt(i[2]),b:yt(i[3]),format:e?"name":"hex"}:(i=It.hex4.exec(t),i?{r:yt(i[1]+i[1]),g:yt(i[2]+i[2]),b:yt(i[3]+i[3]),a:Xs(i[4]+i[4]),format:e?"name":"hex8"}:(i=It.hex3.exec(t),i?{r:yt(i[1]+i[1]),g:yt(i[2]+i[2]),b:yt(i[3]+i[3]),format:e?"name":"hex"}:!1)))))))))}function Wt(t){return!!It.CSS_UNIT.exec(String(t))}class Q{constructor(e="",i={}){if(e instanceof Q)return e;typeof e=="number"&&(e=In(e)),this.originalInput=e;const s=On(e);this.originalInput=e,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=i.format??s.format,this.gradientType=i.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3}getLuminance(){const e=this.toRgb();let i,s,o;const a=e.r/255,n=e.g/255,d=e.b/255;return a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),n<=.03928?s=n/12.92:s=Math.pow((n+.055)/1.055,2.4),d<=.03928?o=d/12.92:o=Math.pow((d+.055)/1.055,2.4),.2126*i+.7152*s+.0722*o}getAlpha(){return this.a}setAlpha(e){return this.a=Oo(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:e}=this.toHsl();return e===0}toHsv(){const e=Ks(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}}toHsvString(){const e=Ks(this.r,this.g,this.b),i=Math.round(e.h*360),s=Math.round(e.s*100),o=Math.round(e.v*100);return this.a===1?`hsv(${i}, ${s}%, ${o}%)`:`hsva(${i}, ${s}%, ${o}%, ${this.roundA})`}toHsl(){const e=js(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}}toHslString(){const e=js(this.r,this.g,this.b),i=Math.round(e.h*360),s=Math.round(e.s*100),o=Math.round(e.l*100);return this.a===1?`hsl(${i}, ${s}%, ${o}%)`:`hsla(${i}, ${s}%, ${o}%, ${this.roundA})`}toHex(e=!1){return Ws(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return Tn(this.r,this.g,this.b,this.a,e)}toHex8String(e=!1){return"#"+this.toHex8(e)}toHexShortString(e=!1){return this.a===1?this.toHexString(e):this.toHex8String(e)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const e=Math.round(this.r),i=Math.round(this.g),s=Math.round(this.b);return this.a===1?`rgb(${e}, ${i}, ${s})`:`rgba(${e}, ${i}, ${s}, ${this.roundA})`}toPercentageRgb(){const e=i=>`${Math.round(ct(i,255)*100)}%`;return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){const e=i=>Math.round(ct(i,255)*100);return this.a===1?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const e="#"+Ws(this.r,this.g,this.b,!1);for(const[i,s]of Object.entries(is))if(e===s)return i;return!1}toString(e){const i=!!e;e=e??this.format;let s=!1;const o=this.a<1&&this.a>=0;return!i&&o&&(e.startsWith("hex")||e==="name")?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(s=this.toRgbString()),e==="prgb"&&(s=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(s=this.toHexString()),e==="hex3"&&(s=this.toHexString(!0)),e==="hex4"&&(s=this.toHex8String(!0)),e==="hex8"&&(s=this.toHex8String()),e==="name"&&(s=this.toName()),e==="hsl"&&(s=this.toHslString()),e==="hsv"&&(s=this.toHsvString()),s||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new Q(this.toString())}lighten(e=10){const i=this.toHsl();return i.l+=e/100,i.l=hi(i.l),new Q(i)}brighten(e=10){const i=this.toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(255*-(e/100)))),i.g=Math.max(0,Math.min(255,i.g-Math.round(255*-(e/100)))),i.b=Math.max(0,Math.min(255,i.b-Math.round(255*-(e/100)))),new Q(i)}darken(e=10){const i=this.toHsl();return i.l-=e/100,i.l=hi(i.l),new Q(i)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){const i=this.toHsl();return i.s-=e/100,i.s=hi(i.s),new Q(i)}saturate(e=10){const i=this.toHsl();return i.s+=e/100,i.s=hi(i.s),new Q(i)}greyscale(){return this.desaturate(100)}spin(e){const i=this.toHsl(),s=(i.h+e)%360;return i.h=s<0?360+s:s,new Q(i)}mix(e,i=50){const s=this.toRgb(),o=new Q(e).toRgb(),a=i/100,n={r:(o.r-s.r)*a+s.r,g:(o.g-s.g)*a+s.g,b:(o.b-s.b)*a+s.b,a:(o.a-s.a)*a+s.a};return new Q(n)}analogous(e=6,i=30){const s=this.toHsl(),o=360/i,a=[this];for(s.h=(s.h-(o*e>>1)+720)%360;--e;)s.h=(s.h+o)%360,a.push(new Q(s));return a}complement(){const e=this.toHsl();return e.h=(e.h+180)%360,new Q(e)}monochromatic(e=6){const i=this.toHsv(),{h:s}=i,{s:o}=i;let{v:a}=i;const n=[],d=1/e;for(;e--;)n.push(new Q({h:s,s:o,v:a})),a=(a+d)%1;return n}splitcomplement(){const e=this.toHsl(),{h:i}=e;return[this,new Q({h:(i+72)%360,s:e.s,l:e.l}),new Q({h:(i+216)%360,s:e.s,l:e.l})]}onBackground(e){const i=this.toRgb(),s=new Q(e).toRgb(),o=i.a+s.a*(1-i.a);return new Q({r:(i.r*i.a+s.r*s.a*(1-i.a))/o,g:(i.g*i.a+s.g*s.a*(1-i.a))/o,b:(i.b*i.a+s.b*s.a*(1-i.a))/o,a:o})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){const i=this.toHsl(),{h:s}=i,o=[this],a=360/e;for(let n=1;n<e;n++)o.push(new Q({h:(s+n*a)%360,s:i.s,l:i.l}));return o}equals(e){return this.toRgbString()===new Q(e).toRgbString()}}var Ys="EyeDropper"in window,B=class extends z{constructor(){super(),this.formControlController=new Gt(this),this.isSafeValue=!1,this.localize=new U(this),this.hasFocus=!1,this.isDraggingGridHandle=!1,this.isEmpty=!1,this.inputValue="",this.hue=0,this.saturation=100,this.brightness=100,this.alpha=100,this.value="",this.defaultValue="",this.label="",this.format="hex",this.inline=!1,this.size="medium",this.noFormatToggle=!1,this.name="",this.disabled=!1,this.hoist=!1,this.opacity=!1,this.uppercase=!1,this.swatches="",this.form="",this.required=!1,this.handleFocusIn=()=>{this.hasFocus=!0,this.emit("sl-focus")},this.handleFocusOut=()=>{this.hasFocus=!1,this.emit("sl-blur")},this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut)}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.input.updateComplete.then(()=>{this.formControlController.updateValidity()})}handleCopy(){this.input.select(),document.execCommand("copy"),this.previewButton.focus(),this.previewButton.classList.add("color-picker__preview-color--copied"),this.previewButton.addEventListener("animationend",()=>{this.previewButton.classList.remove("color-picker__preview-color--copied")})}handleFormatToggle(){const t=["hex","rgb","hsl","hsv"],e=(t.indexOf(this.format)+1)%t.length;this.format=t[e],this.setColor(this.value),this.emit("sl-change"),this.emit("sl-input")}handleAlphaDrag(t){const e=this.shadowRoot.querySelector(".color-picker__slider.color-picker__alpha"),i=e.querySelector(".color-picker__slider-handle"),{width:s}=e.getBoundingClientRect();let o=this.value;i.focus(),t.preventDefault(),He(e,{onMove:a=>{this.alpha=tt(a/s*100,0,100),this.syncValues(),this.value!==o&&(o=this.value,this.emit("sl-change"),this.emit("sl-input"))},initialEvent:t})}handleHueDrag(t){const e=this.shadowRoot.querySelector(".color-picker__slider.color-picker__hue"),i=e.querySelector(".color-picker__slider-handle"),{width:s}=e.getBoundingClientRect();let o=this.value;i.focus(),t.preventDefault(),He(e,{onMove:a=>{this.hue=tt(a/s*360,0,360),this.syncValues(),this.value!==o&&(o=this.value,this.emit("sl-change"),this.emit("sl-input"))},initialEvent:t})}handleGridDrag(t){const e=this.shadowRoot.querySelector(".color-picker__grid"),i=e.querySelector(".color-picker__grid-handle"),{width:s,height:o}=e.getBoundingClientRect();let a=this.value;i.focus(),t.preventDefault(),this.isDraggingGridHandle=!0,He(e,{onMove:(n,d)=>{this.saturation=tt(n/s*100,0,100),this.brightness=tt(100-d/o*100,0,100),this.syncValues(),this.value!==a&&(a=this.value,this.emit("sl-change"),this.emit("sl-input"))},onStop:()=>this.isDraggingGridHandle=!1,initialEvent:t})}handleAlphaKeyDown(t){const e=t.shiftKey?10:1,i=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.alpha=tt(this.alpha-e,0,100),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.alpha=tt(this.alpha+e,0,100),this.syncValues()),t.key==="Home"&&(t.preventDefault(),this.alpha=0,this.syncValues()),t.key==="End"&&(t.preventDefault(),this.alpha=100,this.syncValues()),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleHueKeyDown(t){const e=t.shiftKey?10:1,i=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.hue=tt(this.hue-e,0,360),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.hue=tt(this.hue+e,0,360),this.syncValues()),t.key==="Home"&&(t.preventDefault(),this.hue=0,this.syncValues()),t.key==="End"&&(t.preventDefault(),this.hue=360,this.syncValues()),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleGridKeyDown(t){const e=t.shiftKey?10:1,i=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.saturation=tt(this.saturation-e,0,100),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.saturation=tt(this.saturation+e,0,100),this.syncValues()),t.key==="ArrowUp"&&(t.preventDefault(),this.brightness=tt(this.brightness+e,0,100),this.syncValues()),t.key==="ArrowDown"&&(t.preventDefault(),this.brightness=tt(this.brightness-e,0,100),this.syncValues()),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleInputChange(t){const e=t.target,i=this.value;t.stopPropagation(),this.input.value?(this.setColor(e.value),e.value=this.value):this.value="",this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleInputInput(t){this.formControlController.updateValidity(),t.stopPropagation()}handleInputKeyDown(t){if(t.key==="Enter"){const e=this.value;this.input.value?(this.setColor(this.input.value),this.input.value=this.value,this.value!==e&&(this.emit("sl-change"),this.emit("sl-input")),setTimeout(()=>this.input.select())):this.hue=0}}handleInputInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleTouchMove(t){t.preventDefault()}parseColor(t){const e=new Q(t);if(!e.isValid)return null;const i=e.toHsl(),s={h:i.h,s:i.s*100,l:i.l*100,a:i.a},o=e.toRgb(),a=e.toHexString(),n=e.toHex8String(),d=e.toHsv(),c={h:d.h,s:d.s*100,v:d.v*100,a:d.a};return{hsl:{h:s.h,s:s.s,l:s.l,string:this.setLetterCase(`hsl(${Math.round(s.h)}, ${Math.round(s.s)}%, ${Math.round(s.l)}%)`)},hsla:{h:s.h,s:s.s,l:s.l,a:s.a,string:this.setLetterCase(`hsla(${Math.round(s.h)}, ${Math.round(s.s)}%, ${Math.round(s.l)}%, ${s.a.toFixed(2).toString()})`)},hsv:{h:c.h,s:c.s,v:c.v,string:this.setLetterCase(`hsv(${Math.round(c.h)}, ${Math.round(c.s)}%, ${Math.round(c.v)}%)`)},hsva:{h:c.h,s:c.s,v:c.v,a:c.a,string:this.setLetterCase(`hsva(${Math.round(c.h)}, ${Math.round(c.s)}%, ${Math.round(c.v)}%, ${c.a.toFixed(2).toString()})`)},rgb:{r:o.r,g:o.g,b:o.b,string:this.setLetterCase(`rgb(${Math.round(o.r)}, ${Math.round(o.g)}, ${Math.round(o.b)})`)},rgba:{r:o.r,g:o.g,b:o.b,a:o.a,string:this.setLetterCase(`rgba(${Math.round(o.r)}, ${Math.round(o.g)}, ${Math.round(o.b)}, ${o.a.toFixed(2).toString()})`)},hex:this.setLetterCase(a),hexa:this.setLetterCase(n)}}setColor(t){const e=this.parseColor(t);return e===null?!1:(this.hue=e.hsva.h,this.saturation=e.hsva.s,this.brightness=e.hsva.v,this.alpha=this.opacity?e.hsva.a*100:100,this.syncValues(),!0)}setLetterCase(t){return typeof t!="string"?"":this.uppercase?t.toUpperCase():t.toLowerCase()}async syncValues(){const t=this.parseColor(`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha/100})`);t!==null&&(this.format==="hsl"?this.inputValue=this.opacity?t.hsla.string:t.hsl.string:this.format==="rgb"?this.inputValue=this.opacity?t.rgba.string:t.rgb.string:this.format==="hsv"?this.inputValue=this.opacity?t.hsva.string:t.hsv.string:this.inputValue=this.opacity?t.hexa:t.hex,this.isSafeValue=!0,this.value=this.inputValue,await this.updateComplete,this.isSafeValue=!1)}handleAfterHide(){this.previewButton.classList.remove("color-picker__preview-color--copied")}handleEyeDropper(){if(!Ys)return;new EyeDropper().open().then(e=>{const i=this.value;this.setColor(e.sRGBHex),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}).catch(()=>{})}selectSwatch(t){const e=this.value;this.disabled||(this.setColor(t),this.value!==e&&(this.emit("sl-change"),this.emit("sl-input")))}getHexString(t,e,i,s=100){const o=new Q(`hsva(${t}, ${e}, ${i}, ${s/100})`);return o.isValid?o.toHex8String():""}stopNestedEventPropagation(t){t.stopImmediatePropagation()}handleFormatChange(){this.syncValues()}handleOpacityChange(){this.alpha=100}handleValueChange(t,e){if(this.isEmpty=!e,e||(this.hue=0,this.saturation=0,this.brightness=100,this.alpha=100),!this.isSafeValue){const i=this.parseColor(e);i!==null?(this.inputValue=this.value,this.hue=i.hsva.h,this.saturation=i.hsva.s,this.brightness=i.hsva.v,this.alpha=i.hsva.a*100,this.syncValues()):this.inputValue=t??""}}focus(t){this.inline?this.base.focus(t):this.trigger.focus(t)}blur(){var t;const e=this.inline?this.base:this.trigger;this.hasFocus&&(e.focus({preventScroll:!0}),e.blur()),(t=this.dropdown)!=null&&t.open&&this.dropdown.hide()}getFormattedValue(t="hex"){const e=this.parseColor(`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha/100})`);if(e===null)return"";switch(t){case"hex":return e.hex;case"hexa":return e.hexa;case"rgb":return e.rgb.string;case"rgba":return e.rgba.string;case"hsl":return e.hsl.string;case"hsla":return e.hsla.string;case"hsv":return e.hsv.string;case"hsva":return e.hsva.string;default:return""}}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.inline&&!this.validity.valid?(this.dropdown.show(),this.addEventListener("sl-after-show",()=>this.input.reportValidity(),{once:!0}),this.disabled||this.formControlController.emitInvalidEvent(),!1):this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.saturation,e=100-this.brightness,i=Array.isArray(this.swatches)?this.swatches:this.swatches.split(";").filter(o=>o.trim()!==""),s=y`
|
|
5949
5949
|
<div
|
|
5950
5950
|
part="base"
|
|
5951
5951
|
class=${O({"color-picker":!0,"color-picker--inline":this.inline,"color-picker--disabled":this.disabled,"color-picker--focused":this.hasFocus})}
|
|
@@ -6149,7 +6149,7 @@
|
|
|
6149
6149
|
</button>
|
|
6150
6150
|
${s}
|
|
6151
6151
|
</sl-dropdown>
|
|
6152
|
-
`}};B.styles
|
|
6152
|
+
`}};B.styles=$n;B.dependencies={"sl-button-group":be,"sl-button":H,"sl-dropdown":pt,"sl-icon":K,"sl-input":M,"sl-visually-hidden":ds};r([k('[part~="base"]')],B.prototype,"base",2);r([k('[part~="input"]')],B.prototype,"input",2);r([k(".color-dropdown")],B.prototype,"dropdown",2);r([k('[part~="preview"]')],B.prototype,"previewButton",2);r([k('[part~="trigger"]')],B.prototype,"trigger",2);r([D()],B.prototype,"hasFocus",2);r([D()],B.prototype,"isDraggingGridHandle",2);r([D()],B.prototype,"isEmpty",2);r([D()],B.prototype,"inputValue",2);r([D()],B.prototype,"hue",2);r([D()],B.prototype,"saturation",2);r([D()],B.prototype,"brightness",2);r([D()],B.prototype,"alpha",2);r([l()],B.prototype,"value",2);r([fe()],B.prototype,"defaultValue",2);r([l()],B.prototype,"label",2);r([l()],B.prototype,"format",2);r([l({type:Boolean,reflect:!0})],B.prototype,"inline",2);r([l({reflect:!0})],B.prototype,"size",2);r([l({attribute:"no-format-toggle",type:Boolean})],B.prototype,"noFormatToggle",2);r([l()],B.prototype,"name",2);r([l({type:Boolean,reflect:!0})],B.prototype,"disabled",2);r([l({type:Boolean})],B.prototype,"hoist",2);r([l({type:Boolean})],B.prototype,"opacity",2);r([l({type:Boolean})],B.prototype,"uppercase",2);r([l()],B.prototype,"swatches",2);r([l({reflect:!0})],B.prototype,"form",2);r([l({type:Boolean,reflect:!0})],B.prototype,"required",2);r([x("format",{waitUntilFirstUpdate:!0})],B.prototype,"handleFormatChange",1);r([x("opacity",{waitUntilFirstUpdate:!0})],B.prototype,"handleOpacityChange",1);r([x("value")],B.prototype,"handleValueChange",1);B.define("sl-color-picker");var Rn=T`
|
|
6153
6153
|
${L}
|
|
6154
6154
|
|
|
6155
6155
|
:host {
|
|
@@ -6226,7 +6226,7 @@
|
|
|
6226
6226
|
<slot part="body" class="card__body"></slot>
|
|
6227
6227
|
<slot name="footer" part="footer" class="card__footer"></slot>
|
|
6228
6228
|
</div>
|
|
6229
|
-
`}};Do.styles=
|
|
6229
|
+
`}};Do.styles=Rn;Do.define("sl-card");var Fn=class{constructor(t,e){this.timerId=0,this.activeInteractions=0,this.paused=!1,this.stopped=!0,this.pause=()=>{this.activeInteractions++||(this.paused=!0,this.host.requestUpdate())},this.resume=()=>{--this.activeInteractions||(this.paused=!1,this.host.requestUpdate())},t.addController(this),this.host=t,this.tickCallback=e}hostConnected(){this.host.addEventListener("mouseenter",this.pause),this.host.addEventListener("mouseleave",this.resume),this.host.addEventListener("focusin",this.pause),this.host.addEventListener("focusout",this.resume),this.host.addEventListener("touchstart",this.pause,{passive:!0}),this.host.addEventListener("touchend",this.resume)}hostDisconnected(){this.stop(),this.host.removeEventListener("mouseenter",this.pause),this.host.removeEventListener("mouseleave",this.resume),this.host.removeEventListener("focusin",this.pause),this.host.removeEventListener("focusout",this.resume),this.host.removeEventListener("touchstart",this.pause),this.host.removeEventListener("touchend",this.resume)}start(t){this.stop(),this.stopped=!1,this.timerId=window.setInterval(()=>{this.paused||this.tickCallback()},t)}stop(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}},Vn=T`
|
|
6230
6230
|
${L}
|
|
6231
6231
|
|
|
6232
6232
|
:host {
|
|
@@ -6382,15 +6382,15 @@
|
|
|
6382
6382
|
outline: var(--sl-focus-ring);
|
|
6383
6383
|
outline-offset: var(--sl-focus-ring-offset);
|
|
6384
6384
|
}
|
|
6385
|
-
`,
|
|
6385
|
+
`,Bn=class{constructor(t){this.dragging=!1,this.scrolling=!1,this.mouseDragging=!1,this.handleScroll=()=>{this.scrolling||(this.scrolling=!0,this.host.requestUpdate())},this.handleScrollEnd=()=>{this.scrolling&&!this.dragging&&(this.scrolling=!1,this.host.requestUpdate())},this.handlePointerDown=e=>{if(e.pointerType==="touch")return;this.mouseDragging&&e.button===0&&(e.preventDefault(),this.host.scrollContainer.addEventListener("pointermove",this.handlePointerMove))},this.handlePointerMove=e=>{const i=this.host.scrollContainer,s=!!e.movementX||!!e.movementY;!this.dragging&&s?(i.setPointerCapture(e.pointerId),this.handleDragStart()):i.hasPointerCapture(e.pointerId)&&this.handleDrag(e)},this.handlePointerUp=e=>{this.host.scrollContainer.releasePointerCapture(e.pointerId),this.handleDragEnd()},this.host=t,t.addController(this)}async hostConnected(){const t=this.host;await t.updateComplete;const e=t.scrollContainer;e.addEventListener("scroll",this.handleScroll,{passive:!0}),e.addEventListener("scrollend",this.handleScrollEnd,!0),e.addEventListener("pointerdown",this.handlePointerDown),e.addEventListener("pointerup",this.handlePointerUp),e.addEventListener("pointercancel",this.handlePointerUp)}hostDisconnected(){const e=this.host.scrollContainer;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("scrollend",this.handleScrollEnd,!0),e.removeEventListener("pointerdown",this.handlePointerDown),e.removeEventListener("pointerup",this.handlePointerUp),e.removeEventListener("pointercancel",this.handlePointerUp)}handleDragStart(){const t=this.host;this.dragging=!0,t.scrollContainer.style.setProperty("scroll-snap-type","unset"),t.requestUpdate()}handleDrag(t){this.host.scrollContainer.scrollBy({left:-t.movementX,top:-t.movementY})}handleDragEnd(){const t=this.host,e=t.scrollContainer;e.removeEventListener("pointermove",this.handlePointerMove);const i=e.scrollLeft,s=e.scrollTop;e.style.removeProperty("scroll-snap-type");const o=e.scrollLeft,a=e.scrollTop;e.style.setProperty("scroll-snap-type","unset"),e.scrollTo({left:i,top:s,behavior:"auto"}),e.scrollTo({left:o,top:a,behavior:cs()?"auto":"smooth"}),requestAnimationFrame(async()=>{(i!==o||s!==a)&&await mt(e,"scrollend"),e.style.removeProperty("scroll-snap-type"),this.dragging=!1,t.requestUpdate()})}};/**
|
|
6386
6386
|
* @license
|
|
6387
6387
|
* Copyright 2021 Google LLC
|
|
6388
6388
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6389
|
-
*/function*
|
|
6389
|
+
*/function*Un(t,e){if(t!==void 0){let i=0;for(const s of t)yield e(s,i++)}}/**
|
|
6390
6390
|
* @license
|
|
6391
6391
|
* Copyright 2021 Google LLC
|
|
6392
6392
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6393
|
-
*/function*
|
|
6393
|
+
*/function*Nn(t,e,i=1){const s=e===void 0?0:t;e??(e=t);for(let o=s;i>0?o<e:e<o;o+=i)yield o}var Hn=(t,e)=>{let i=0;return function(...s){window.clearTimeout(i),i=window.setTimeout(()=>{t.call(this,...s)},e)}},Gs=(t,e,i)=>{const s=t[e];t[e]=function(...o){s.call(this,...o),i.call(this,s,...o)}},qn="onscrollend"in window;if(!qn){const t=new Set,e=new WeakMap,i=o=>{t.add(o.pointerId)},s=o=>{t.delete(o.pointerId)};document.addEventListener("pointerdown",i),document.addEventListener("pointerup",s),Gs(EventTarget.prototype,"addEventListener",function(o,a){if(a!=="scroll")return;const n=Hn(()=>{t.size?n():this.dispatchEvent(new Event("scrollend"))},100);o.call(this,"scroll",n,{passive:!0}),e.set(this,n)}),Gs(EventTarget.prototype,"removeEventListener",function(o,a){if(a!=="scroll")return;const n=e.get(this);n&&o.call(this,"scroll",n,{passive:!0})})}var it=class extends z{constructor(){super(...arguments),this.loop=!1,this.navigation=!1,this.pagination=!1,this.autoplay=!1,this.autoplayInterval=3e3,this.slidesPerPage=1,this.slidesPerMove=1,this.orientation="horizontal",this.mouseDragging=!1,this.activeSlide=0,this.autoplayController=new Fn(this,()=>this.next()),this.scrollController=new Bn(this),this.intersectionObserverEntries=new Map,this.localize=new U(this),this.handleSlotChange=t=>{t.some(i=>[...i.addedNodes,...i.removedNodes].some(s=>this.isCarouselItem(s)&&!s.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel"));const t=new IntersectionObserver(e=>{e.forEach(i=>{this.intersectionObserverEntries.set(i.target,i);const s=i.target;s.toggleAttribute("inert",!i.isIntersecting),s.classList.toggle("--in-view",i.isIntersecting),s.setAttribute("aria-hidden",i.isIntersecting?"false":"true")})},{root:this,threshold:.6});this.intersectionObserver=t,t.takeRecords().forEach(e=>{this.intersectionObserverEntries.set(e.target,e)})}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect()}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}willUpdate(t){(t.has("slidesPerMove")||t.has("slidesPerPage"))&&(this.slidesPerMove=Math.min(this.slidesPerMove,this.slidesPerPage))}getPageCount(){const t=this.getSlides().length,{slidesPerPage:e,slidesPerMove:i,loop:s}=this,o=s?t/i:(t-e)/i+1;return Math.ceil(o)}getCurrentPage(){return Math.ceil(this.activeSlide/this.slidesPerMove)}canScrollNext(){return this.loop||this.getCurrentPage()<this.getPageCount()-1}canScrollPrev(){return this.loop||this.getCurrentPage()>0}getSlides({excludeClones:t=!0}={}){return[...this.children].filter(e=>this.isCarouselItem(e)&&(!t||!e.hasAttribute("data-clone")))}handleKeyDown(t){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=t.target,i=this.localize.dir()==="rtl",s=e.closest('[part~="pagination-item"]')!==null,o=t.key==="ArrowDown"||!i&&t.key==="ArrowRight"||i&&t.key==="ArrowLeft",a=t.key==="ArrowUp"||!i&&t.key==="ArrowLeft"||i&&t.key==="ArrowRight";t.preventDefault(),a&&this.previous(),o&&this.next(),t.key==="Home"&&this.goToSlide(0),t.key==="End"&&this.goToSlide(this.getSlides().length-1),s&&this.updateComplete.then(()=>{var n;const d=(n=this.shadowRoot)==null?void 0:n.querySelector('[part~="pagination-item--active"]');d&&d.focus()})}}handleScrollEnd(){const t=this.getSlides(),i=[...this.intersectionObserverEntries.values()].find(s=>s.isIntersecting);if(this.loop&&(i!=null&&i.target.hasAttribute("data-clone"))){const s=Number(i.target.getAttribute("data-clone"));this.goToSlide(s,"auto")}else if(i){const s=t.indexOf(i.target);this.activeSlide=Math.ceil(s/this.slidesPerMove)*this.slidesPerMove}}isCarouselItem(t){return t instanceof Element&&t.tagName.toLowerCase()==="sl-carousel-item"}initializeSlides(){const t=this.intersectionObserver;this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach((e,i)=>{t.unobserve(e),e.classList.remove("--in-view"),e.classList.remove("--is-active"),e.setAttribute("aria-label",this.localize.term("slideNum",i+1)),e.hasAttribute("data-clone")&&e.remove()}),this.updateSlidesSnap(),this.loop&&this.createClones(),this.getSlides({excludeClones:!1}).forEach(e=>{t.observe(e)}),this.goToSlide(this.activeSlide,"auto")}createClones(){const t=this.getSlides(),e=this.slidesPerPage,i=t.slice(-e),s=t.slice(0,e);i.reverse().forEach((o,a)=>{const n=o.cloneNode(!0);n.setAttribute("data-clone",String(t.length-a-1)),this.prepend(n)}),s.forEach((o,a)=>{const n=o.cloneNode(!0);n.setAttribute("data-clone",String(a)),this.append(n)})}handelSlideChange(){const t=this.getSlides();t.forEach((e,i)=>{e.classList.toggle("--is-active",i===this.activeSlide)}),this.hasUpdated&&this.emit("sl-slide-change",{detail:{index:this.activeSlide,slide:t[this.activeSlide]}})}updateSlidesSnap(){const t=this.getSlides(),e=this.slidesPerMove;t.forEach((i,s)=>{(s+e)%e===0?i.style.removeProperty("scroll-snap-align"):i.style.setProperty("scroll-snap-align","none")})}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&this.autoplayController.start(this.autoplayInterval)}handleMouseDraggingChange(){this.scrollController.mouseDragging=this.mouseDragging}previous(t="smooth"){this.goToSlide(this.activeSlide-this.slidesPerMove,t)}next(t="smooth"){this.goToSlide(this.activeSlide+this.slidesPerMove,t)}goToSlide(t,e="smooth"){const{slidesPerPage:i,loop:s,scrollContainer:o}=this,a=this.getSlides(),n=this.getSlides({excludeClones:!1});if(!a.length)return;const d=s?(t+a.length)%a.length:tt(t,0,a.length-1);this.activeSlide=d;const c=tt(t+(s?i:0),0,n.length-1),h=n[c],b=o.getBoundingClientRect(),u=h.getBoundingClientRect();o.scrollTo({left:u.left-b.left+o.scrollLeft,top:u.top-b.top+o.scrollTop,behavior:cs()?"auto":e})}render(){const{scrollController:t,slidesPerMove:e}=this,i=this.getPageCount(),s=this.getCurrentPage(),o=this.canScrollPrev(),a=this.canScrollNext(),n=this.localize.dir()==="ltr";return y`
|
|
6394
6394
|
<div part="base" class="carousel">
|
|
6395
6395
|
<div
|
|
6396
6396
|
id="scroll-container"
|
|
@@ -6437,7 +6437,7 @@
|
|
|
6437
6437
|
`:""}
|
|
6438
6438
|
${this.pagination?y`
|
|
6439
6439
|
<div part="pagination" role="tablist" class="carousel__pagination" aria-controls="scroll-container">
|
|
6440
|
-
${Nn(
|
|
6440
|
+
${Un(Nn(i),d=>{const c=d===s;return y`
|
|
6441
6441
|
<button
|
|
6442
6442
|
part="pagination-item ${c?"pagination-item--active":""}"
|
|
6443
6443
|
class="${O({"carousel__pagination-item":!0,"carousel__pagination-item--active":c})}"
|
|
@@ -6452,7 +6452,7 @@
|
|
|
6452
6452
|
</div>
|
|
6453
6453
|
`:""}
|
|
6454
6454
|
</div>
|
|
6455
|
-
`}};it.styles=
|
|
6455
|
+
`}};it.styles=Vn;it.dependencies={"sl-icon":K};r([l({type:Boolean,reflect:!0})],it.prototype,"loop",2);r([l({type:Boolean,reflect:!0})],it.prototype,"navigation",2);r([l({type:Boolean,reflect:!0})],it.prototype,"pagination",2);r([l({type:Boolean,reflect:!0})],it.prototype,"autoplay",2);r([l({type:Number,attribute:"autoplay-interval"})],it.prototype,"autoplayInterval",2);r([l({type:Number,attribute:"slides-per-page"})],it.prototype,"slidesPerPage",2);r([l({type:Number,attribute:"slides-per-move"})],it.prototype,"slidesPerMove",2);r([l()],it.prototype,"orientation",2);r([l({type:Boolean,reflect:!0,attribute:"mouse-dragging"})],it.prototype,"mouseDragging",2);r([k(".carousel__slides")],it.prototype,"scrollContainer",2);r([k(".carousel__pagination")],it.prototype,"paginationContainer",2);r([D()],it.prototype,"activeSlide",2);r([x("loop",{waitUntilFirstUpdate:!0}),x("slidesPerPage",{waitUntilFirstUpdate:!0})],it.prototype,"initializeSlides",1);r([x("activeSlide")],it.prototype,"handelSlideChange",1);r([x("slidesPerMove")],it.prototype,"updateSlidesSnap",1);r([x("autoplay")],it.prototype,"handleAutoplayChange",1);r([x("mouseDragging")],it.prototype,"handleMouseDraggingChange",1);it.define("sl-carousel");var Po=H;H.define("sl-button");be.define("sl-button-group");var jn=T`
|
|
6456
6456
|
${L}
|
|
6457
6457
|
|
|
6458
6458
|
.breadcrumb {
|
|
@@ -6470,7 +6470,7 @@
|
|
|
6470
6470
|
<sl-icon name=${this.localize.dir()==="rtl"?"chevron-left":"chevron-right"} library="system"></sl-icon>
|
|
6471
6471
|
</slot>
|
|
6472
6472
|
</span>
|
|
6473
|
-
`}};Te.styles=
|
|
6473
|
+
`}};Te.styles=jn;Te.dependencies={"sl-icon":K};r([k("slot")],Te.prototype,"defaultSlot",2);r([k('slot[name="separator"]')],Te.prototype,"separatorSlot",2);r([l()],Te.prototype,"label",2);Te.define("sl-breadcrumb");var Kn=T`
|
|
6474
6474
|
${L}
|
|
6475
6475
|
|
|
6476
6476
|
:host {
|
|
@@ -6559,7 +6559,7 @@
|
|
|
6559
6559
|
>
|
|
6560
6560
|
${this.image&&!this.hasError?t:e}
|
|
6561
6561
|
</div>
|
|
6562
|
-
`}};qt.styles=
|
|
6562
|
+
`}};qt.styles=Kn;qt.dependencies={"sl-icon":K};r([D()],qt.prototype,"hasError",2);r([l()],qt.prototype,"image",2);r([l()],qt.prototype,"label",2);r([l()],qt.prototype,"initials",2);r([l()],qt.prototype,"loading",2);r([l({reflect:!0})],qt.prototype,"shape",2);r([x("image")],qt.prototype,"handleImageChange",1);qt.define("sl-avatar");var Wn=T`
|
|
6563
6563
|
${L}
|
|
6564
6564
|
|
|
6565
6565
|
:host {
|
|
@@ -6677,16 +6677,16 @@
|
|
|
6677
6677
|
<slot name="separator"></slot>
|
|
6678
6678
|
</span>
|
|
6679
6679
|
</div>
|
|
6680
|
-
`}};ri.styles=
|
|
6680
|
+
`}};ri.styles=Wn;r([l()],ri.prototype,"href",2);r([l()],ri.prototype,"target",2);r([l()],ri.prototype,"rel",2);ri.define("sl-breadcrumb-item");var Xn=T`
|
|
6681
6681
|
${L}
|
|
6682
6682
|
|
|
6683
6683
|
:host {
|
|
6684
6684
|
display: contents;
|
|
6685
6685
|
}
|
|
6686
|
-
`;const Gn=[{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.4,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.43,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.53,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.7,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -15px, 0) scaleY(1.05)"},{offset:.8,"transition-timing-function":"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0) scaleY(0.95)"},{offset:.9,transform:"translate3d(0, -4px, 0) scaleY(1.02)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"}],Qn=[{offset:0,opacity:"1"},{offset:.25,opacity:"0"},{offset:.5,opacity:"1"},{offset:.75,opacity:"0"},{offset:1,opacity:"1"}],Zn=[{offset:0,transform:"translateX(0)"},{offset:.065,transform:"translateX(-6px) rotateY(-9deg)"},{offset:.185,transform:"translateX(5px) rotateY(7deg)"},{offset:.315,transform:"translateX(-3px) rotateY(-5deg)"},{offset:.435,transform:"translateX(2px) rotateY(3deg)"},{offset:.5,transform:"translateX(0)"}],Jn=[{offset:0,transform:"scale(1)"},{offset:.14,transform:"scale(1.3)"},{offset:.28,transform:"scale(1)"},{offset:.42,transform:"scale(1.3)"},{offset:.7,transform:"scale(1)"}],tl=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.111,transform:"translate3d(0, 0, 0)"},{offset:.222,transform:"skewX(-12.5deg) skewY(-12.5deg)"},{offset:.33299999999999996,transform:"skewX(6.25deg) skewY(6.25deg)"},{offset:.444,transform:"skewX(-3.125deg) skewY(-3.125deg)"},{offset:.555,transform:"skewX(1.5625deg) skewY(1.5625deg)"},{offset:.6659999999999999,transform:"skewX(-0.78125deg) skewY(-0.78125deg)"},{offset:.777,transform:"skewX(0.390625deg) skewY(0.390625deg)"},{offset:.888,transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],el=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.5,transform:"scale3d(1.05, 1.05, 1.05)"},{offset:1,transform:"scale3d(1, 1, 1)"}],il=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.3,transform:"scale3d(1.25, 0.75, 1)"},{offset:.4,transform:"scale3d(0.75, 1.25, 1)"},{offset:.5,transform:"scale3d(1.15, 0.85, 1)"},{offset:.65,transform:"scale3d(0.95, 1.05, 1)"},{offset:.75,transform:"scale3d(1.05, 0.95, 1)"},{offset:1,transform:"scale3d(1, 1, 1)"}],sl=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],ol=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],rl=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(0, -10px, 0)"},{offset:.2,transform:"translate3d(0, 10px, 0)"},{offset:.3,transform:"translate3d(0, -10px, 0)"},{offset:.4,transform:"translate3d(0, 10px, 0)"},{offset:.5,transform:"translate3d(0, -10px, 0)"},{offset:.6,transform:"translate3d(0, 10px, 0)"},{offset:.7,transform:"translate3d(0, -10px, 0)"},{offset:.8,transform:"translate3d(0, 10px, 0)"},{offset:.9,transform:"translate3d(0, -10px, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],al=[{offset:.2,transform:"rotate3d(0, 0, 1, 15deg)"},{offset:.4,transform:"rotate3d(0, 0, 1, -10deg)"},{offset:.6,transform:"rotate3d(0, 0, 1, 5deg)"},{offset:.8,transform:"rotate3d(0, 0, 1, -5deg)"},{offset:1,transform:"rotate3d(0, 0, 1, 0deg)"}],nl=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.1,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.2,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.3,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.4,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.5,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.6,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.7,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.8,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.9,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:1,transform:"scale3d(1, 1, 1)"}],ll=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.15,transform:"translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)"},{offset:.3,transform:"translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)"},{offset:.45,transform:"translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)"},{offset:.6,transform:"translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)"},{offset:.75,transform:"translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],cl=[{offset:0,transform:"translateY(-1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],dl=[{offset:0,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],hl=[{offset:0,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],ul=[{offset:0,transform:"translateY(1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],pl=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(700px) scale(0.7)",opacity:"0.7"}],fl=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"}],ml=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"}],bl=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(-700px) scale(0.7)",opacity:"0.7"}],gl=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.2,transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.4,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.4,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"scale3d(1.03, 1.03, 1.03)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.8,transform:"scale3d(0.97, 0.97, 0.97)"},{offset:.8,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,opacity:"1",transform:"scale3d(1, 1, 1)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],vl=[{offset:0,opacity:"0",transform:"translate3d(0, -3000px, 0) scaleY(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, 25px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, -10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, 5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],yl=[{offset:0,opacity:"0",transform:"translate3d(-3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],_l=[{offset:0,opacity:"0",transform:"translate3d(3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(-25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],wl=[{offset:0,opacity:"0",transform:"translate3d(0, 3000px, 0) scaleY(5)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, 10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, -5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],xl=[{offset:.2,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.5,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.55,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:1,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"}],kl=[{offset:.2,transform:"translate3d(0, 10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0) scaleY(3)"}],$l=[{offset:.2,opacity:"1",transform:"translate3d(20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0) scaleX(2)"}],Cl=[{offset:.2,opacity:"1",transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0) scaleX(2)"}],Sl=[{offset:.2,transform:"translate3d(0, -10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0) scaleY(3)"}],zl=[{offset:0,opacity:"0"},{offset:1,opacity:"1"}],Al=[{offset:0,opacity:"0",transform:"translate3d(-100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],El=[{offset:0,opacity:"0",transform:"translate3d(100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Tl=[{offset:0,opacity:"0",transform:"translate3d(0, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Ll=[{offset:0,opacity:"0",transform:"translate3d(0, -2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Il=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Ol=[{offset:0,opacity:"0",transform:"translate3d(-2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Dl=[{offset:0,opacity:"0",transform:"translate3d(100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Pl=[{offset:0,opacity:"0",transform:"translate3d(2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Ml=[{offset:0,opacity:"0",transform:"translate3d(-100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Rl=[{offset:0,opacity:"0",transform:"translate3d(100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Fl=[{offset:0,opacity:"0",transform:"translate3d(0, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Vl=[{offset:0,opacity:"0",transform:"translate3d(0, 2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Bl=[{offset:0,opacity:"1"},{offset:1,opacity:"0"}],Ul=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, 100%, 0)"}],Nl=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, 100%, 0)"}],Hl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 100%, 0)"}],ql=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0)"}],jl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-100%, 0, 0)"}],Kl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0)"}],Wl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0)"}],Xl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0)"}],Yl=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, -100%, 0)"}],Gl=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, -100%, 0)"}],Ql=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -100%, 0)"}],Zl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0)"}],Jl=[{offset:0,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg)",easing:"ease-out"},{offset:.4,transform:`perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)
|
|
6686
|
+
`;const Yn=[{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.4,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.43,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.53,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.7,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -15px, 0) scaleY(1.05)"},{offset:.8,"transition-timing-function":"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0) scaleY(0.95)"},{offset:.9,transform:"translate3d(0, -4px, 0) scaleY(1.02)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"}],Gn=[{offset:0,opacity:"1"},{offset:.25,opacity:"0"},{offset:.5,opacity:"1"},{offset:.75,opacity:"0"},{offset:1,opacity:"1"}],Qn=[{offset:0,transform:"translateX(0)"},{offset:.065,transform:"translateX(-6px) rotateY(-9deg)"},{offset:.185,transform:"translateX(5px) rotateY(7deg)"},{offset:.315,transform:"translateX(-3px) rotateY(-5deg)"},{offset:.435,transform:"translateX(2px) rotateY(3deg)"},{offset:.5,transform:"translateX(0)"}],Zn=[{offset:0,transform:"scale(1)"},{offset:.14,transform:"scale(1.3)"},{offset:.28,transform:"scale(1)"},{offset:.42,transform:"scale(1.3)"},{offset:.7,transform:"scale(1)"}],Jn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.111,transform:"translate3d(0, 0, 0)"},{offset:.222,transform:"skewX(-12.5deg) skewY(-12.5deg)"},{offset:.33299999999999996,transform:"skewX(6.25deg) skewY(6.25deg)"},{offset:.444,transform:"skewX(-3.125deg) skewY(-3.125deg)"},{offset:.555,transform:"skewX(1.5625deg) skewY(1.5625deg)"},{offset:.6659999999999999,transform:"skewX(-0.78125deg) skewY(-0.78125deg)"},{offset:.777,transform:"skewX(0.390625deg) skewY(0.390625deg)"},{offset:.888,transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],tl=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.5,transform:"scale3d(1.05, 1.05, 1.05)"},{offset:1,transform:"scale3d(1, 1, 1)"}],el=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.3,transform:"scale3d(1.25, 0.75, 1)"},{offset:.4,transform:"scale3d(0.75, 1.25, 1)"},{offset:.5,transform:"scale3d(1.15, 0.85, 1)"},{offset:.65,transform:"scale3d(0.95, 1.05, 1)"},{offset:.75,transform:"scale3d(1.05, 0.95, 1)"},{offset:1,transform:"scale3d(1, 1, 1)"}],il=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],sl=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],ol=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(0, -10px, 0)"},{offset:.2,transform:"translate3d(0, 10px, 0)"},{offset:.3,transform:"translate3d(0, -10px, 0)"},{offset:.4,transform:"translate3d(0, 10px, 0)"},{offset:.5,transform:"translate3d(0, -10px, 0)"},{offset:.6,transform:"translate3d(0, 10px, 0)"},{offset:.7,transform:"translate3d(0, -10px, 0)"},{offset:.8,transform:"translate3d(0, 10px, 0)"},{offset:.9,transform:"translate3d(0, -10px, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],rl=[{offset:.2,transform:"rotate3d(0, 0, 1, 15deg)"},{offset:.4,transform:"rotate3d(0, 0, 1, -10deg)"},{offset:.6,transform:"rotate3d(0, 0, 1, 5deg)"},{offset:.8,transform:"rotate3d(0, 0, 1, -5deg)"},{offset:1,transform:"rotate3d(0, 0, 1, 0deg)"}],al=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.1,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.2,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.3,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.4,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.5,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.6,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.7,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.8,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.9,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:1,transform:"scale3d(1, 1, 1)"}],nl=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.15,transform:"translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)"},{offset:.3,transform:"translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)"},{offset:.45,transform:"translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)"},{offset:.6,transform:"translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)"},{offset:.75,transform:"translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],ll=[{offset:0,transform:"translateY(-1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],cl=[{offset:0,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],dl=[{offset:0,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],hl=[{offset:0,transform:"translateY(1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],ul=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(700px) scale(0.7)",opacity:"0.7"}],pl=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"}],fl=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"}],ml=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(-700px) scale(0.7)",opacity:"0.7"}],bl=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.2,transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.4,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.4,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"scale3d(1.03, 1.03, 1.03)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.8,transform:"scale3d(0.97, 0.97, 0.97)"},{offset:.8,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,opacity:"1",transform:"scale3d(1, 1, 1)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],gl=[{offset:0,opacity:"0",transform:"translate3d(0, -3000px, 0) scaleY(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, 25px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, -10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, 5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],vl=[{offset:0,opacity:"0",transform:"translate3d(-3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],yl=[{offset:0,opacity:"0",transform:"translate3d(3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(-25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],_l=[{offset:0,opacity:"0",transform:"translate3d(0, 3000px, 0) scaleY(5)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, 10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, -5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],wl=[{offset:.2,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.5,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.55,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:1,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"}],xl=[{offset:.2,transform:"translate3d(0, 10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0) scaleY(3)"}],kl=[{offset:.2,opacity:"1",transform:"translate3d(20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0) scaleX(2)"}],$l=[{offset:.2,opacity:"1",transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0) scaleX(2)"}],Cl=[{offset:.2,transform:"translate3d(0, -10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0) scaleY(3)"}],Sl=[{offset:0,opacity:"0"},{offset:1,opacity:"1"}],zl=[{offset:0,opacity:"0",transform:"translate3d(-100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Al=[{offset:0,opacity:"0",transform:"translate3d(100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],El=[{offset:0,opacity:"0",transform:"translate3d(0, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Tl=[{offset:0,opacity:"0",transform:"translate3d(0, -2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Ll=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Il=[{offset:0,opacity:"0",transform:"translate3d(-2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Ol=[{offset:0,opacity:"0",transform:"translate3d(100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Dl=[{offset:0,opacity:"0",transform:"translate3d(2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Pl=[{offset:0,opacity:"0",transform:"translate3d(-100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Ml=[{offset:0,opacity:"0",transform:"translate3d(100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Rl=[{offset:0,opacity:"0",transform:"translate3d(0, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Fl=[{offset:0,opacity:"0",transform:"translate3d(0, 2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Vl=[{offset:0,opacity:"1"},{offset:1,opacity:"0"}],Bl=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, 100%, 0)"}],Ul=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, 100%, 0)"}],Nl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 100%, 0)"}],Hl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0)"}],ql=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-100%, 0, 0)"}],jl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0)"}],Kl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0)"}],Wl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0)"}],Xl=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, -100%, 0)"}],Yl=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, -100%, 0)"}],Gl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -100%, 0)"}],Ql=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0)"}],Zl=[{offset:0,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg)",easing:"ease-out"},{offset:.4,transform:`perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)
|
|
6687
6687
|
rotate3d(0, 1, 0, -190deg)`,easing:"ease-out"},{offset:.5,transform:`perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)
|
|
6688
6688
|
rotate3d(0, 1, 0, -170deg)`,easing:"ease-in"},{offset:.8,transform:`perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0)
|
|
6689
|
-
rotate3d(0, 1, 0, 0deg)`,easing:"ease-in"},{offset:1,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg)",easing:"ease-in"}],tc=[{offset:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}],ec=[{offset:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}],ic=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",opacity:"0"}],sc=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",opacity:"0"}],oc=[{offset:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)",opacity:"0"},{offset:.6,transform:"skewX(-20deg)",opacity:"1"},{offset:.8,transform:"skewX(5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],rc=[{offset:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:"0"},{offset:.6,transform:"skewX(20deg)",opacity:"1"},{offset:.8,transform:"skewX(-5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],ac=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(-100%, 0, 0) skewX(-30deg)",opacity:"0"}],nc=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:"0"}],lc=[{offset:0,transform:"rotate3d(0, 0, 1, -200deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],cc=[{offset:0,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],dc=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],hc=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],uc=[{offset:0,transform:"rotate3d(0, 0, 1, -90deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],pc=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 200deg)",opacity:"0"}],fc=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"}],mc=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}],bc=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}],gc=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 90deg)",opacity:"0"}],vc=[{offset:0,transform:"translate3d(0, -100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],yc=[{offset:0,transform:"translate3d(-100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],_c=[{offset:0,transform:"translate3d(100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],wc=[{offset:0,transform:"translate3d(0, 100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],xc=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, 100%, 0)"}],kc=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(-100%, 0, 0)"}],$c=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(100%, 0, 0)"}],Cc=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, -100%, 0)"}],Sc=[{offset:0,easing:"ease-in-out"},{offset:.2,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.4,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:.6,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.8,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:1,transform:"translate3d(0, 700px, 0)",opacity:"0"}],zc=[{offset:0,opacity:"0",transform:"scale(0.1) rotate(30deg)","transform-origin":"center bottom"},{offset:.5,transform:"rotate(-10deg)"},{offset:.7,transform:"rotate(3deg)"},{offset:1,opacity:"1",transform:"scale(1)"}],Ac=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Ec=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}],Tc=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:.5,opacity:"1"}],Lc=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Ic=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Oc=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Dc=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Pc=[{offset:0,opacity:"1"},{offset:.5,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:1,opacity:"0"}],Mc=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Rc=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(-2000px, 0, 0)"}],Fc=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(2000px, 0, 0)"}],Vc=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Mo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",easeInSine:"cubic-bezier(0.47, 0, 0.745, 0.715)",easeOutSine:"cubic-bezier(0.39, 0.575, 0.565, 1)",easeInOutSine:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeInQuad:"cubic-bezier(0.55, 0.085, 0.68, 0.53)",easeOutQuad:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",easeInOutQuad:"cubic-bezier(0.455, 0.03, 0.515, 0.955)",easeInCubic:"cubic-bezier(0.55, 0.055, 0.675, 0.19)",easeOutCubic:"cubic-bezier(0.215, 0.61, 0.355, 1)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1)",easeInQuart:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",easeOutQuart:"cubic-bezier(0.165, 0.84, 0.44, 1)",easeInOutQuart:"cubic-bezier(0.77, 0, 0.175, 1)",easeInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",easeOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutQuint:"cubic-bezier(0.86, 0, 0.07, 1)",easeInExpo:"cubic-bezier(0.95, 0.05, 0.795, 0.035)",easeOutExpo:"cubic-bezier(0.19, 1, 0.22, 1)",easeInOutExpo:"cubic-bezier(1, 0, 0, 1)",easeInCirc:"cubic-bezier(0.6, 0.04, 0.98, 0.335)",easeOutCirc:"cubic-bezier(0.075, 0.82, 0.165, 1)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.15, 0.86)",easeInBack:"cubic-bezier(0.6, -0.28, 0.735, 0.045)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",easeInOutBack:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"},Bc=Object.freeze(Object.defineProperty({__proto__:null,backInDown:cl,backInLeft:dl,backInRight:hl,backInUp:ul,backOutDown:pl,backOutLeft:fl,backOutRight:ml,backOutUp:bl,bounce:Gn,bounceIn:gl,bounceInDown:vl,bounceInLeft:yl,bounceInRight:_l,bounceInUp:wl,bounceOut:xl,bounceOutDown:kl,bounceOutLeft:$l,bounceOutRight:Cl,bounceOutUp:Sl,easings:Mo,fadeIn:zl,fadeInBottomLeft:Al,fadeInBottomRight:El,fadeInDown:Tl,fadeInDownBig:Ll,fadeInLeft:Il,fadeInLeftBig:Ol,fadeInRight:Dl,fadeInRightBig:Pl,fadeInTopLeft:Ml,fadeInTopRight:Rl,fadeInUp:Fl,fadeInUpBig:Vl,fadeOut:Bl,fadeOutBottomLeft:Ul,fadeOutBottomRight:Nl,fadeOutDown:Hl,fadeOutDownBig:ql,fadeOutLeft:jl,fadeOutLeftBig:Kl,fadeOutRight:Wl,fadeOutRightBig:Xl,fadeOutTopLeft:Yl,fadeOutTopRight:Gl,fadeOutUp:Ql,fadeOutUpBig:Zl,flash:Qn,flip:Jl,flipInX:tc,flipInY:ec,flipOutX:ic,flipOutY:sc,headShake:Zn,heartBeat:Jn,hinge:Sc,jackInTheBox:zc,jello:tl,lightSpeedInLeft:oc,lightSpeedInRight:rc,lightSpeedOutLeft:ac,lightSpeedOutRight:nc,pulse:el,rollIn:Ac,rollOut:Ec,rotateIn:lc,rotateInDownLeft:cc,rotateInDownRight:dc,rotateInUpLeft:hc,rotateInUpRight:uc,rotateOut:pc,rotateOutDownLeft:fc,rotateOutDownRight:mc,rotateOutUpLeft:bc,rotateOutUpRight:gc,rubberBand:il,shake:sl,shakeX:ol,shakeY:rl,slideInDown:vc,slideInLeft:yc,slideInRight:_c,slideInUp:wc,slideOutDown:xc,slideOutLeft:kc,slideOutRight:$c,slideOutUp:Cc,swing:al,tada:nl,wobble:ll,zoomIn:Tc,zoomInDown:Lc,zoomInLeft:Ic,zoomInRight:Oc,zoomInUp:Dc,zoomOut:Pc,zoomOutDown:Mc,zoomOutLeft:Rc,zoomOutRight:Fc,zoomOutUp:Vc},Symbol.toStringTag,{value:"Module"}));var lt=class extends z{constructor(){super(...arguments),this.hasStarted=!1,this.name="none",this.play=!1,this.delay=0,this.direction="normal",this.duration=1e3,this.easing="linear",this.endDelay=0,this.fill="auto",this.iterations=1/0,this.iterationStart=0,this.playbackRate=1,this.handleAnimationFinish=()=>{this.play=!1,this.hasStarted=!1,this.emit("sl-finish")},this.handleAnimationCancel=()=>{this.play=!1,this.hasStarted=!1,this.emit("sl-cancel")}}get currentTime(){var t,e;return(e=(t=this.animation)==null?void 0:t.currentTime)!=null?e:0}set currentTime(t){this.animation&&(this.animation.currentTime=t)}connectedCallback(){super.connectedCallback(),this.createAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.destroyAnimation()}handleSlotChange(){this.destroyAnimation(),this.createAnimation()}async createAnimation(){var t,e;const i=(t=Mo[this.easing])!=null?t:this.easing,s=(e=this.keyframes)!=null?e:Bc[this.name],a=(await this.defaultSlot).assignedElements()[0];return!a||!s?!1:(this.destroyAnimation(),this.animation=a.animate(s,{delay:this.delay,direction:this.direction,duration:this.duration,easing:i,endDelay:this.endDelay,fill:this.fill,iterationStart:this.iterationStart,iterations:this.iterations}),this.animation.playbackRate=this.playbackRate,this.animation.addEventListener("cancel",this.handleAnimationCancel),this.animation.addEventListener("finish",this.handleAnimationFinish),this.play?(this.hasStarted=!0,this.emit("sl-start")):this.animation.pause(),!0)}destroyAnimation(){this.animation&&(this.animation.cancel(),this.animation.removeEventListener("cancel",this.handleAnimationCancel),this.animation.removeEventListener("finish",this.handleAnimationFinish),this.hasStarted=!1)}handleAnimationChange(){this.hasUpdated&&this.createAnimation()}handlePlayChange(){return this.animation?(this.play&&!this.hasStarted&&(this.hasStarted=!0,this.emit("sl-start")),this.play?this.animation.play():this.animation.pause(),!0):!1}handlePlaybackRateChange(){this.animation&&(this.animation.playbackRate=this.playbackRate)}cancel(){var t;(t=this.animation)==null||t.cancel()}finish(){var t;(t=this.animation)==null||t.finish()}render(){return y` <slot @slotchange=${this.handleSlotChange}></slot> `}};lt.styles=Yn;r([Qo("slot")],lt.prototype,"defaultSlot",2);r([l()],lt.prototype,"name",2);r([l({type:Boolean,reflect:!0})],lt.prototype,"play",2);r([l({type:Number})],lt.prototype,"delay",2);r([l()],lt.prototype,"direction",2);r([l({type:Number})],lt.prototype,"duration",2);r([l()],lt.prototype,"easing",2);r([l({attribute:"end-delay",type:Number})],lt.prototype,"endDelay",2);r([l()],lt.prototype,"fill",2);r([l({type:Number})],lt.prototype,"iterations",2);r([l({attribute:"iteration-start",type:Number})],lt.prototype,"iterationStart",2);r([l({attribute:!1})],lt.prototype,"keyframes",2);r([l({attribute:"playback-rate",type:Number})],lt.prototype,"playbackRate",2);r([x(["name","delay","direction","duration","easing","endDelay","fill","iterations","iterationsStart","keyframes"])],lt.prototype,"handleAnimationChange",1);r([x("play")],lt.prototype,"handlePlayChange",1);r([x("playbackRate")],lt.prototype,"handlePlaybackRateChange",1);lt.define("sl-animation");var Uc=T`
|
|
6689
|
+
rotate3d(0, 1, 0, 0deg)`,easing:"ease-in"},{offset:1,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg)",easing:"ease-in"}],Jl=[{offset:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}],tc=[{offset:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}],ec=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",opacity:"0"}],ic=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",opacity:"0"}],sc=[{offset:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)",opacity:"0"},{offset:.6,transform:"skewX(-20deg)",opacity:"1"},{offset:.8,transform:"skewX(5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],oc=[{offset:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:"0"},{offset:.6,transform:"skewX(20deg)",opacity:"1"},{offset:.8,transform:"skewX(-5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],rc=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(-100%, 0, 0) skewX(-30deg)",opacity:"0"}],ac=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:"0"}],nc=[{offset:0,transform:"rotate3d(0, 0, 1, -200deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],lc=[{offset:0,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],cc=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],dc=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],hc=[{offset:0,transform:"rotate3d(0, 0, 1, -90deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],uc=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 200deg)",opacity:"0"}],pc=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"}],fc=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}],mc=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}],bc=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 90deg)",opacity:"0"}],gc=[{offset:0,transform:"translate3d(0, -100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],vc=[{offset:0,transform:"translate3d(-100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],yc=[{offset:0,transform:"translate3d(100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],_c=[{offset:0,transform:"translate3d(0, 100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],wc=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, 100%, 0)"}],xc=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(-100%, 0, 0)"}],kc=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(100%, 0, 0)"}],$c=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, -100%, 0)"}],Cc=[{offset:0,easing:"ease-in-out"},{offset:.2,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.4,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:.6,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.8,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:1,transform:"translate3d(0, 700px, 0)",opacity:"0"}],Sc=[{offset:0,opacity:"0",transform:"scale(0.1) rotate(30deg)","transform-origin":"center bottom"},{offset:.5,transform:"rotate(-10deg)"},{offset:.7,transform:"rotate(3deg)"},{offset:1,opacity:"1",transform:"scale(1)"}],zc=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Ac=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}],Ec=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:.5,opacity:"1"}],Tc=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Lc=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Ic=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Oc=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Dc=[{offset:0,opacity:"1"},{offset:.5,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:1,opacity:"0"}],Pc=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Mc=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(-2000px, 0, 0)"}],Rc=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(2000px, 0, 0)"}],Fc=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Mo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",easeInSine:"cubic-bezier(0.47, 0, 0.745, 0.715)",easeOutSine:"cubic-bezier(0.39, 0.575, 0.565, 1)",easeInOutSine:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeInQuad:"cubic-bezier(0.55, 0.085, 0.68, 0.53)",easeOutQuad:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",easeInOutQuad:"cubic-bezier(0.455, 0.03, 0.515, 0.955)",easeInCubic:"cubic-bezier(0.55, 0.055, 0.675, 0.19)",easeOutCubic:"cubic-bezier(0.215, 0.61, 0.355, 1)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1)",easeInQuart:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",easeOutQuart:"cubic-bezier(0.165, 0.84, 0.44, 1)",easeInOutQuart:"cubic-bezier(0.77, 0, 0.175, 1)",easeInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",easeOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutQuint:"cubic-bezier(0.86, 0, 0.07, 1)",easeInExpo:"cubic-bezier(0.95, 0.05, 0.795, 0.035)",easeOutExpo:"cubic-bezier(0.19, 1, 0.22, 1)",easeInOutExpo:"cubic-bezier(1, 0, 0, 1)",easeInCirc:"cubic-bezier(0.6, 0.04, 0.98, 0.335)",easeOutCirc:"cubic-bezier(0.075, 0.82, 0.165, 1)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.15, 0.86)",easeInBack:"cubic-bezier(0.6, -0.28, 0.735, 0.045)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",easeInOutBack:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"},Vc=Object.freeze(Object.defineProperty({__proto__:null,backInDown:ll,backInLeft:cl,backInRight:dl,backInUp:hl,backOutDown:ul,backOutLeft:pl,backOutRight:fl,backOutUp:ml,bounce:Yn,bounceIn:bl,bounceInDown:gl,bounceInLeft:vl,bounceInRight:yl,bounceInUp:_l,bounceOut:wl,bounceOutDown:xl,bounceOutLeft:kl,bounceOutRight:$l,bounceOutUp:Cl,easings:Mo,fadeIn:Sl,fadeInBottomLeft:zl,fadeInBottomRight:Al,fadeInDown:El,fadeInDownBig:Tl,fadeInLeft:Ll,fadeInLeftBig:Il,fadeInRight:Ol,fadeInRightBig:Dl,fadeInTopLeft:Pl,fadeInTopRight:Ml,fadeInUp:Rl,fadeInUpBig:Fl,fadeOut:Vl,fadeOutBottomLeft:Bl,fadeOutBottomRight:Ul,fadeOutDown:Nl,fadeOutDownBig:Hl,fadeOutLeft:ql,fadeOutLeftBig:jl,fadeOutRight:Kl,fadeOutRightBig:Wl,fadeOutTopLeft:Xl,fadeOutTopRight:Yl,fadeOutUp:Gl,fadeOutUpBig:Ql,flash:Gn,flip:Zl,flipInX:Jl,flipInY:tc,flipOutX:ec,flipOutY:ic,headShake:Qn,heartBeat:Zn,hinge:Cc,jackInTheBox:Sc,jello:Jn,lightSpeedInLeft:sc,lightSpeedInRight:oc,lightSpeedOutLeft:rc,lightSpeedOutRight:ac,pulse:tl,rollIn:zc,rollOut:Ac,rotateIn:nc,rotateInDownLeft:lc,rotateInDownRight:cc,rotateInUpLeft:dc,rotateInUpRight:hc,rotateOut:uc,rotateOutDownLeft:pc,rotateOutDownRight:fc,rotateOutUpLeft:mc,rotateOutUpRight:bc,rubberBand:el,shake:il,shakeX:sl,shakeY:ol,slideInDown:gc,slideInLeft:vc,slideInRight:yc,slideInUp:_c,slideOutDown:wc,slideOutLeft:xc,slideOutRight:kc,slideOutUp:$c,swing:rl,tada:al,wobble:nl,zoomIn:Ec,zoomInDown:Tc,zoomInLeft:Lc,zoomInRight:Ic,zoomInUp:Oc,zoomOut:Dc,zoomOutDown:Pc,zoomOutLeft:Mc,zoomOutRight:Rc,zoomOutUp:Fc},Symbol.toStringTag,{value:"Module"}));var lt=class extends z{constructor(){super(...arguments),this.hasStarted=!1,this.name="none",this.play=!1,this.delay=0,this.direction="normal",this.duration=1e3,this.easing="linear",this.endDelay=0,this.fill="auto",this.iterations=1/0,this.iterationStart=0,this.playbackRate=1,this.handleAnimationFinish=()=>{this.play=!1,this.hasStarted=!1,this.emit("sl-finish")},this.handleAnimationCancel=()=>{this.play=!1,this.hasStarted=!1,this.emit("sl-cancel")}}get currentTime(){var t,e;return(e=(t=this.animation)==null?void 0:t.currentTime)!=null?e:0}set currentTime(t){this.animation&&(this.animation.currentTime=t)}connectedCallback(){super.connectedCallback(),this.createAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.destroyAnimation()}handleSlotChange(){this.destroyAnimation(),this.createAnimation()}async createAnimation(){var t,e;const i=(t=Mo[this.easing])!=null?t:this.easing,s=(e=this.keyframes)!=null?e:Vc[this.name],a=(await this.defaultSlot).assignedElements()[0];return!a||!s?!1:(this.destroyAnimation(),this.animation=a.animate(s,{delay:this.delay,direction:this.direction,duration:this.duration,easing:i,endDelay:this.endDelay,fill:this.fill,iterationStart:this.iterationStart,iterations:this.iterations}),this.animation.playbackRate=this.playbackRate,this.animation.addEventListener("cancel",this.handleAnimationCancel),this.animation.addEventListener("finish",this.handleAnimationFinish),this.play?(this.hasStarted=!0,this.emit("sl-start")):this.animation.pause(),!0)}destroyAnimation(){this.animation&&(this.animation.cancel(),this.animation.removeEventListener("cancel",this.handleAnimationCancel),this.animation.removeEventListener("finish",this.handleAnimationFinish),this.hasStarted=!1)}handleAnimationChange(){this.hasUpdated&&this.createAnimation()}handlePlayChange(){return this.animation?(this.play&&!this.hasStarted&&(this.hasStarted=!0,this.emit("sl-start")),this.play?this.animation.play():this.animation.pause(),!0):!1}handlePlaybackRateChange(){this.animation&&(this.animation.playbackRate=this.playbackRate)}cancel(){var t;(t=this.animation)==null||t.cancel()}finish(){var t;(t=this.animation)==null||t.finish()}render(){return y` <slot @slotchange=${this.handleSlotChange}></slot> `}};lt.styles=Xn;r([Go("slot")],lt.prototype,"defaultSlot",2);r([l()],lt.prototype,"name",2);r([l({type:Boolean,reflect:!0})],lt.prototype,"play",2);r([l({type:Number})],lt.prototype,"delay",2);r([l()],lt.prototype,"direction",2);r([l({type:Number})],lt.prototype,"duration",2);r([l()],lt.prototype,"easing",2);r([l({attribute:"end-delay",type:Number})],lt.prototype,"endDelay",2);r([l()],lt.prototype,"fill",2);r([l({type:Number})],lt.prototype,"iterations",2);r([l({attribute:"iteration-start",type:Number})],lt.prototype,"iterationStart",2);r([l({attribute:!1})],lt.prototype,"keyframes",2);r([l({attribute:"playback-rate",type:Number})],lt.prototype,"playbackRate",2);r([x(["name","delay","direction","duration","easing","endDelay","fill","iterations","iterationsStart","keyframes"])],lt.prototype,"handleAnimationChange",1);r([x("play")],lt.prototype,"handlePlayChange",1);r([x("playbackRate")],lt.prototype,"handlePlaybackRateChange",1);lt.define("sl-animation");var Bc=T`
|
|
6690
6690
|
${L}
|
|
6691
6691
|
|
|
6692
6692
|
:host {
|
|
@@ -6785,7 +6785,7 @@
|
|
|
6785
6785
|
>
|
|
6786
6786
|
<slot></slot>
|
|
6787
6787
|
</span>
|
|
6788
|
-
`}};ai.styles=
|
|
6788
|
+
`}};ai.styles=Bc;r([l({reflect:!0})],ai.prototype,"variant",2);r([l({type:Boolean,reflect:!0})],ai.prototype,"pill",2);r([l({type:Boolean,reflect:!0})],ai.prototype,"pulse",2);ai.define("sl-badge");var Uc=T`
|
|
6789
6789
|
${L}
|
|
6790
6790
|
|
|
6791
6791
|
:host {
|
|
@@ -6906,7 +6906,7 @@
|
|
|
6906
6906
|
></sl-icon-button>
|
|
6907
6907
|
`:""}
|
|
6908
6908
|
</div>
|
|
6909
|
-
`}};jt.styles=
|
|
6909
|
+
`}};jt.styles=Uc;jt.dependencies={"sl-icon-button":st};r([k('[part~="base"]')],jt.prototype,"base",2);r([l({type:Boolean,reflect:!0})],jt.prototype,"open",2);r([l({type:Boolean,reflect:!0})],jt.prototype,"closable",2);r([l({reflect:!0})],jt.prototype,"variant",2);r([l({type:Number})],jt.prototype,"duration",2);r([x("open",{waitUntilFirstUpdate:!0})],jt.prototype,"handleOpenChange",1);r([x("duration")],jt.prototype,"handleDurationChange",1);q("alert.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});q("alert.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});jt.define("sl-alert");var Nc={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:t=>t===0?"No options selected":t===1?"1 option selected":`${t} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format"};Lr(Nc);var Hc=T`
|
|
6910
6910
|
${L}
|
|
6911
6911
|
|
|
6912
6912
|
:host {
|
|
@@ -6987,7 +6987,7 @@
|
|
|
6987
6987
|
</div>
|
|
6988
6988
|
`:""}
|
|
6989
6989
|
</div>
|
|
6990
|
-
`}};Rt.styles=
|
|
6990
|
+
`}};Rt.styles=Hc;Rt.dependencies={"sl-icon":K};r([k(".animated-image__animated")],Rt.prototype,"animatedImage",2);r([D()],Rt.prototype,"frozenFrame",2);r([D()],Rt.prototype,"isLoaded",2);r([l()],Rt.prototype,"src",2);r([l()],Rt.prototype,"alt",2);r([l({type:Boolean,reflect:!0})],Rt.prototype,"play",2);r([x("play",{waitUntilFirstUpdate:!0})],Rt.prototype,"handlePlayChange",1);r([x("src")],Rt.prototype,"handleSrcChange",1);Rt.define("sl-animated-image");var qc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,Kc=(t,e,i,s)=>{for(var o=s>1?void 0:s?jc(e,i):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(o=(s?n(e,i,o):n(o))||o);return s&&o&&qc(e,i,o),o};let ss=class extends Po{constructor(){super()}};ss.styles=[Po.styles,T`
|
|
6991
6991
|
.button {
|
|
6992
6992
|
font: var(--label-medium);
|
|
6993
6993
|
}
|
|
@@ -7035,16 +7035,16 @@
|
|
|
7035
7035
|
border-color: var(--interactive-outlined-border-hover);
|
|
7036
7036
|
color: var(--sl-color-neutral-700);
|
|
7037
7037
|
}
|
|
7038
|
-
`];
|
|
7038
|
+
`];ss=Kc([rs("nve-button")],ss);var Wc=Object.defineProperty,Xc=Object.getOwnPropertyDescriptor,Yc=(t,e,i,s)=>{for(var o=s>1?void 0:s?Xc(e,i):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(o=(s?n(e,i,o):n(o))||o);return s&&o&&Wc(e,i,o),o};let os=class extends ko{constructor(){super()}};os.styles=[ko.styles,T`
|
|
7039
7039
|
.spinner__track {
|
|
7040
7040
|
stroke: transparent;
|
|
7041
7041
|
}
|
|
7042
|
-
`];os=Yc([rs("nve-spinner")],os);var Gc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,
|
|
7042
|
+
`];os=Yc([rs("nve-spinner")],os);var Gc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,Ro=(t,e,i,s)=>{for(var o=s>1?void 0:s?Qc(e,i):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(o=(s?n(e,i,o):n(o))||o);return s&&o&&Gc(e,i,o),o};let ki=class extends we{constructor(){super(...arguments),this.name=""}render(){return y` <span class="material-symbols-outlined">${this.name}</span> `}};ki.styles=T`
|
|
7043
7043
|
:host {
|
|
7044
7044
|
/* Apply Material Icons font-family to the Shadow DOM */
|
|
7045
7045
|
font-family: 'Material Symbols Outlined';
|
|
7046
7046
|
}
|
|
7047
|
-
`;
|
|
7047
|
+
`;Ro([l()],ki.prototype,"name",2);ki=Ro([rs("nve-icon")],ki);const Zc=y`<table>
|
|
7048
7048
|
<hr />
|
|
7049
7049
|
<th>Variant</th>
|
|
7050
7050
|
<th>Primary</th>
|