UNPKG

@glance-networks/agent-plugin

Version:

Glance Networks Agent Plugin

55 lines 103 kB
(function(E,S){typeof exports=="object"&&typeof module<"u"?module.exports=S():typeof define=="function"&&define.amd?define(S):(E=typeof globalThis<"u"?globalThis:E||self,E.Button=S())})(this,function(){"use strict";var No=Object.defineProperty;var Lo=(E,S,J)=>S in E?No(E,S,{enumerable:!0,configurable:!0,writable:!0,value:J}):E[S]=J;var Ir=(E,S,J)=>Lo(E,typeof S!="symbol"?S+"":S,J);var E=r=>{throw TypeError(r)},S=(r,e,o)=>e.has(r)||E("Cannot "+o),J=(r,e,o)=>(S(r,e,"read from private field"),o?o.call(r):e.get(r)),ge=(r,e,o)=>e.has(r)?E("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,o),be=(r,e,o,t)=>(S(r,e,"write to private field"),e.set(r,o),o);const pe=new Set(["string","number","boolean"]),he=r=>{let e;return{c(){e=document.createElement("slot"),r&&e.setAttribute("name",r)},m(o,t){o.insertBefore(e,t||null)},p(){},d(o){o&&e.parentNode&&e.parentNode.removeChild(e)}}};function ye(r,{name:e,mode:o,styles:t}){var n;if(!globalThis.customElements){console.log(`Component ${e} not registered as there is no customElements in this environment. Perhaps this is an SSR compile, which is not supported for Leo components yet.`);return}if(customElements.get(e)){console.log(`Attempted to register ${e} component multiple times.`);return}const a=new r({target:document.createElement("div")}),s=Object.keys(a.$$.props),i=s.reduce((m,y)=>(m.set(y.toLowerCase(),y),m),new Map),c=Array.from(i.keys()),l=new Set(s.filter(m=>typeof a.$$.ctx[a.$$.props[m]]=="boolean"));class u extends HTMLElement{constructor(){super(),ge(this,n),this.listenerRemovers=new Map;const y=this.shadowRoot??this.attachShadow({mode:o});if(t){const b=new CSSStyleSheet;b.replaceSync((t==null?void 0:t.default)||t),y.adoptedStyleSheets&&(y.adoptedStyleSheets=[b])}y.replaceChildren();let p=new Set;const w=()=>{var b;const g=Array.from(this.children).map(C=>C.getAttribute("slot"));if(this.childNodes.length&&g.push(void 0),this.component&&p.size===g.length&&g.every(C=>p.has(C)))return;p=new Set(g);const k=g.reduce((C,z)=>({...C,[z??"default"]:[()=>he(z)]}),{}),U=Object.keys(((b=this.component)==null?void 0:b.$$.props)??{}).map(C=>[C,this[C]]).reduce((C,[z,A])=>({...C,[z]:A}),{});this.component&&this.component.$destroy(),this.component=new r({target:y,props:{...U,$$slots:k,$$scope:{ctx:[]}}})};new MutationObserver(w).observe(this,{childList:!0,attributes:!1,attributeOldValue:!1,subtree:!1,characterData:!1,characterDataOldValue:!1}),w();for(const b of s)Object.defineProperty(this,b,{enumerable:!0,get(){const g=this.component.$$.props[b];return this.component.$$.ctx[g]},set(g){pe.has(typeof g)&&(l.has(b)?g?this.setAttribute(b,""):this.removeAttribute(b):this.setAttribute(b,g)),this.component.$set({[b]:g})}})}get component(){return J(this,n)}set component(y){be(this,n,y);for(const[p,w]of this.listenerRemovers.entries())for(const[b,g]of w.entries())g(),this.addEventListener(p,b)}static get observedAttributes(){return c}attributeChangedCallback(y,p,w){const b=i.get(y);b&&p!==w&&(this[b]=l.has(b)?w!==null:w)}addEventListener(y,p){this.listenerRemovers.has(y)||this.listenerRemovers.set(y,new Map);const w=this.component.$on(y,p);this.listenerRemovers.get(y).set(p,w)}removeEventListener(y,p){var w,b,g;(b=(w=this.listenerRemovers.get(y))==null?void 0:w.get(p))==null||b(),(g=this.listenerRemovers.get(y))==null||g.delete(p)}}n=new WeakMap,customElements.define(e,u)}function zr(){}function N(r,e){for(const o in e)r[o]=e[o];return r}function jr(r){return r()}function Gr(){return Object.create(null)}function W(r){r.forEach(jr)}function Or(r){return typeof r=="function"}function Fr(r,e){return r!=r?e==e:r!==e||r&&typeof r=="object"||typeof r=="function"}function we(r){return Object.keys(r).length===0}function fr(r,e,o,t){if(r){const n=Pr(r,e,o,t);return r[0](n)}}function Pr(r,e,o,t){return r[1]&&t?N(o.ctx.slice(),r[1](t(e))):o.ctx}function ur(r,e,o,t){if(r[2]&&t){const n=r[2](t(o));if(e.dirty===void 0)return n;if(typeof n=="object"){const a=[],s=Math.max(e.dirty.length,n.length);for(let i=0;i<s;i+=1)a[i]=e.dirty[i]|n[i];return a}return e.dirty|n}return e.dirty}function gr(r,e,o,t,n,a){if(n){const s=Pr(e,o,t,a);r.p(s,n)}}function br(r){if(r.ctx.length>32){const e=[],o=r.ctx.length/32;for(let t=0;t<o;t++)e[t]=-1;return e}return-1}function kr(r){const e={};for(const o in r)o[0]!=="$"&&(e[o]=r[o]);return e}function xr(r,e){const o={};e=new Set(e);for(const t in r)!e.has(t)&&t[0]!=="$"&&(o[t]=r[t]);return o}function Dr(r,e){r.appendChild(e)}function me(r,e,o){const t=ve(r);if(!t.getElementById(e)){const n=Y("style");n.id=e,n.textContent=o,ke(t,n)}}function ve(r){if(!r)return document;const e=r.getRootNode?r.getRootNode():r.ownerDocument;return e&&e.host?e:r.ownerDocument}function ke(r,e){return Dr(r.head||r,e),e.sheet}function q(r,e,o){r.insertBefore(e,o||null)}function j(r){r.parentNode&&r.parentNode.removeChild(r)}function Y(r){return document.createElement(r)}function xe(r){return document.createTextNode(r)}function Sr(){return xe("")}function F(r,e,o,t){return r.addEventListener(e,o,t),()=>r.removeEventListener(e,o,t)}function $(r,e,o){o==null?r.removeAttribute(e):r.getAttribute(e)!==o&&r.setAttribute(e,o)}const _e=["width","height"];function pr(r,e){const o=Object.getOwnPropertyDescriptors(r.__proto__);for(const t in e)e[t]==null?r.removeAttribute(t):t==="style"?r.style.cssText=e[t]:t==="__value"?r.value=r[t]=e[t]:o[t]&&o[t].set&&_e.indexOf(t)===-1?r[t]=e[t]:$(r,t,e[t])}function Ce(r,e){Object.keys(e).forEach(o=>{Ue(r,o,e[o])})}function Ue(r,e,o){const t=e.toLowerCase();t in r?r[t]=typeof r[t]=="boolean"&&o===""?!0:o:e in r?r[e]=typeof r[e]=="boolean"&&o===""?!0:o:$(r,e,o)}function Wr(r){return/-/.test(r)?Ce:pr}function ze(r){return Array.from(r.childNodes)}let hr;function yr(r){hr=r}function Fe(){if(!hr)throw new Error("Function called outside component initialization");return hr}function qr(r){return Fe().$$.context.get(r)}function v(r,e){const o=r.$$.callbacks[e.type];o&&o.slice().forEach(t=>t.call(this,e))}const rr=[],Kr=[];let er=[];const Qr=[],Se=Promise.resolve();let Ar=!1;function Ae(){Ar||(Ar=!0,Se.then(Vr))}function Er(r){er.push(r)}const Mr=new Set;let or=0;function Vr(){if(or!==0)return;const r=hr;do{try{for(;or<rr.length;){const e=rr[or];or++,yr(e),Ee(e.$$)}}catch(e){throw rr.length=0,or=0,e}for(yr(null),rr.length=0,or=0;Kr.length;)Kr.pop()();for(let e=0;e<er.length;e+=1){const o=er[e];Mr.has(o)||(Mr.add(o),o())}er.length=0}while(rr.length);for(;Qr.length;)Qr.pop()();Ar=!1,Mr.clear(),yr(r)}function Ee(r){if(r.fragment!==null){r.update(),W(r.before_update);const e=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(Er)}}function Me(r){const e=[],o=[];er.forEach(t=>r.indexOf(t)===-1?e.push(t):o.push(t)),o.forEach(t=>t()),er=e}const _r=new Set;let K;function Zr(){K={r:0,c:[],p:K}}function Hr(){K.r||W(K.c),K=K.p}function M(r,e){r&&r.i&&(_r.delete(r),r.i(e))}function T(r,e,o,t){if(r&&r.o){if(_r.has(r))return;_r.add(r),K.c.push(()=>{_r.delete(r),t&&(o&&r.d(1),t())}),r.o(e)}else t&&t()}function Cr(r,e){const o={},t={},n={$$scope:1};let a=r.length;for(;a--;){const s=r[a],i=e[a];if(i){for(const c in s)c in i||(t[c]=1);for(const c in i)n[c]||(o[c]=i[c],n[c]=1);r[a]=i}else for(const c in s)n[c]=1}for(const s in t)s in o||(o[s]=void 0);return o}function Be(r){return typeof r=="object"&&r!==null?r:{}}function Te(r){r&&r.c()}function Xr(r,e,o){const{fragment:t,after_update:n}=r.$$;t&&t.m(e,o),Er(()=>{const a=r.$$.on_mount.map(jr).filter(Or);r.$$.on_destroy?r.$$.on_destroy.push(...a):W(a),r.$$.on_mount=[]}),n.forEach(Er)}function Jr(r,e){const o=r.$$;o.fragment!==null&&(Me(o.after_update),W(o.on_destroy),o.fragment&&o.fragment.d(e),o.on_destroy=o.fragment=null,o.ctx=[])}function Re(r,e){r.$$.dirty[0]===-1&&(rr.push(r),Ae(),r.$$.dirty.fill(0)),r.$$.dirty[e/31|0]|=1<<e%31}function Yr(r,e,o,t,n,a,s=null,i=[-1]){const c=hr;yr(r);const l=r.$$={fragment:null,ctx:[],props:a,update:zr,not_equal:n,bound:Gr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Gr(),dirty:i,skip_bound:!1,root:e.target||c.$$.root};s&&s(l.root);let u=!1;if(l.ctx=o?o(r,e.props||{},(m,y,...p)=>{const w=p.length?p[0]:y;return l.ctx&&n(l.ctx[m],l.ctx[m]=w)&&(!l.skip_bound&&l.bound[m]&&l.bound[m](w),u&&Re(r,m)),y}):[],l.update(),u=!0,W(l.before_update),l.fragment=t?t(l.ctx):!1,e.target){if(e.hydrate){const m=ze(e.target);l.fragment&&l.fragment.l(m),m.forEach(j)}else l.fragment&&l.fragment.c();e.intro&&M(r.$$.fragment),Xr(r,e.target,e.anchor),Vr()}yr(c)}class $r{constructor(){Ir(this,"$$");Ir(this,"$$set")}$destroy(){Jr(this,1),this.$destroy=zr}$on(e,o){if(!Or(o))return zr;const t=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return t.push(o),()=>{const n=t.indexOf(o);n!==-1&&t.splice(n,1)}}$set(e){this.$$set&&!we(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ne="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ne);const Br="-",Le=r=>{const e=je(r),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=r;return{getClassGroupId:s=>{const i=s.split(Br);return i[0]===""&&i.length!==1&&i.shift(),re(i,e)||Ie(s)},getConflictingClassGroupIds:(s,i)=>{const c=o[s]||[];return i&&t[s]?[...c,...t[s]]:c}}},re=(r,e)=>{var s;if(r.length===0)return e.classGroupId;const o=r[0],t=e.nextPart.get(o),n=t?re(r.slice(1),t):void 0;if(n)return n;if(e.validators.length===0)return;const a=r.join(Br);return(s=e.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},ee=/^\[(.+)\]$/,Ie=r=>{if(ee.test(r)){const e=ee.exec(r)[1],o=e==null?void 0:e.substring(0,e.indexOf(":"));if(o)return"arbitrary.."+o}},je=r=>{const{theme:e,prefix:o}=r,t={nextPart:new Map,validators:[]};return Oe(Object.entries(r.classGroups),o).forEach(([a,s])=>{Tr(s,t,a,e)}),t},Tr=(r,e,o,t)=>{r.forEach(n=>{if(typeof n=="string"){const a=n===""?e:oe(e,n);a.classGroupId=o;return}if(typeof n=="function"){if(Ge(n)){Tr(n(t),e,o,t);return}e.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,s])=>{Tr(s,oe(e,a),o,t)})})},oe=(r,e)=>{let o=r;return e.split(Br).forEach(t=>{o.nextPart.has(t)||o.nextPart.set(t,{nextPart:new Map,validators:[]}),o=o.nextPart.get(t)}),o},Ge=r=>r.isThemeGetter,Oe=(r,e)=>e?r.map(([o,t])=>{const n=t.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[e+s,i])):a);return[o,n]}):r,Pe=r=>{if(r<1)return{get:()=>{},set:()=>{}};let e=0,o=new Map,t=new Map;const n=(a,s)=>{o.set(a,s),e++,e>r&&(e=0,t=o,o=new Map)};return{get(a){let s=o.get(a);if(s!==void 0)return s;if((s=t.get(a))!==void 0)return n(a,s),s},set(a,s){o.has(a)?o.set(a,s):n(a,s)}}},te="!",De=r=>{const{separator:e,experimentalParseClassName:o}=r,t=e.length===1,n=e[0],a=e.length,s=i=>{const c=[];let l=0,u=0,m;for(let g=0;g<i.length;g++){let k=i[g];if(l===0){if(k===n&&(t||i.slice(g,g+a)===e)){c.push(i.slice(u,g)),u=g+a;continue}if(k==="/"){m=g;continue}}k==="["?l++:k==="]"&&l--}const y=c.length===0?i:i.substring(u),p=y.startsWith(te),w=p?y.substring(1):y,b=m&&m>u?m-u:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:w,maybePostfixModifierPosition:b}};return o?i=>o({className:i,parseClassName:s}):s},We=r=>{if(r.length<=1)return r;const e=[];let o=[];return r.forEach(t=>{t[0]==="["?(e.push(...o.sort(),t),o=[]):o.push(t)}),e.push(...o.sort()),e},qe=r=>({cache:Pe(r.cacheSize),parseClassName:De(r),...Le(r)}),Ke=/\s+/,Qe=(r,e)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n}=e,a=[],s=r.trim().split(Ke);let i="";for(let c=s.length-1;c>=0;c-=1){const l=s[c],{modifiers:u,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:p}=o(l);let w=!!p,b=t(w?y.substring(0,p):y);if(!b){if(!w){i=l+(i.length>0?" "+i:i);continue}if(b=t(y),!b){i=l+(i.length>0?" "+i:i);continue}w=!1}const g=We(u).join(":"),k=m?g+te:g,U=k+b;if(a.includes(U))continue;a.push(U);const C=n(b,w);for(let z=0;z<C.length;++z){const A=C[z];a.push(k+A)}i=l+(i.length>0?" "+i:i)}return i};function Ve(){let r=0,e,o,t="";for(;r<arguments.length;)(e=arguments[r++])&&(o=ae(e))&&(t&&(t+=" "),t+=o);return t}const ae=r=>{if(typeof r=="string")return r;let e,o="";for(let t=0;t<r.length;t++)r[t]&&(e=ae(r[t]))&&(o&&(o+=" "),o+=e);return o};function Ze(r,...e){let o,t,n,a=s;function s(c){const l=e.reduce((u,m)=>m(u),r());return o=qe(l),t=o.cache.get,n=o.cache.set,a=i,i(c)}function i(c){const l=t(c);if(l)return l;const u=Qe(c,o);return n(c,u),u}return function(){return a(Ve.apply(null,arguments))}}const _=r=>{const e=o=>o[r]||[];return e.isThemeGetter=!0,e},ne=/^\[(?:([a-z-]+):)?(.+)\]$/i,He=/^\d+\/\d+$/,Xe=new Set(["px","full","screen"]),Je=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ye=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$e=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ro=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=r=>tr(r)||Xe.has(r)||He.test(r),G=r=>ar(r,"length",co),tr=r=>!!r&&!Number.isNaN(Number(r)),Rr=r=>ar(r,"number",tr),wr=r=>!!r&&Number.isInteger(Number(r)),oo=r=>r.endsWith("%")&&tr(r.slice(0,-1)),h=r=>ne.test(r),O=r=>Je.test(r),to=new Set(["length","size","percentage"]),ao=r=>ar(r,to,se),no=r=>ar(r,"position",se),so=new Set(["image","url"]),io=r=>ar(r,so,uo),lo=r=>ar(r,"",fo),mr=()=>!0,ar=(r,e,o)=>{const t=ne.exec(r);return t?t[1]?typeof e=="string"?t[1]===e:e.has(t[1]):o(t[2]):!1},co=r=>Ye.test(r)&&!$e.test(r),se=()=>!1,fo=r=>ro.test(r),uo=r=>eo.test(r),vr=Ze(()=>{const r=_("colors"),e=_("spacing"),o=_("blur"),t=_("brightness"),n=_("borderColor"),a=_("borderRadius"),s=_("borderSpacing"),i=_("borderWidth"),c=_("contrast"),l=_("grayscale"),u=_("hueRotate"),m=_("invert"),y=_("gap"),p=_("gradientColorStops"),w=_("gradientColorStopPositions"),b=_("inset"),g=_("margin"),k=_("opacity"),U=_("padding"),C=_("saturate"),z=_("scale"),A=_("sepia"),Q=_("skew"),V=_("space"),R=_("translate"),B=()=>["auto","contain","none"],Z=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",h,e],x=()=>[h,e],ir=()=>["",L,G],P=()=>["auto",tr,h],lr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],cr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",h],dr=()=>["auto","avoid","all","avoid-page","page","left","right","column"],d=()=>[tr,h];return{cacheSize:500,separator:":",theme:{colors:[mr],spacing:[L,G],blur:["none","",O,h],brightness:d(),borderColor:[r],borderRadius:["none","","full",O,h],borderSpacing:x(),borderWidth:ir(),contrast:d(),grayscale:I(),hueRotate:d(),invert:I(),gap:x(),gradientColorStops:[r],gradientColorStopPositions:[oo,G],inset:H(),margin:H(),opacity:d(),padding:x(),saturate:d(),scale:d(),sepia:I(),skew:d(),space:x(),translate:x()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[O]}],"break-after":[{"break-after":dr()}],"break-before":[{"break-before":dr()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...lr(),h]}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",wr,h]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",wr,h]}],"grid-cols":[{"grid-cols":[mr]}],"col-start-end":[{col:["auto",{span:["full",wr,h]},h]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[mr]}],"row-start-end":[{row:["auto",{span:[wr,h]},h]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[U]}],px:[{px:[U]}],py:[{py:[U]}],ps:[{ps:[U]}],pe:[{pe:[U]}],pt:[{pt:[U]}],pr:[{pr:[U]}],pb:[{pb:[U]}],pl:[{pl:[U]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,e]}],"min-w":[{"min-w":[h,e,"min","max","fit"]}],"max-w":[{"max-w":[h,e,"none","full","min","max","fit","prose",{screen:[O]},O]}],h:[{h:[h,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,e,"auto","min","max","fit"]}],"font-size":[{text:["base",O,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rr]}],"font-family":[{font:[mr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",tr,Rr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",L,G]}],"underline-offset":[{"underline-offset":["auto",L,h]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...lr(),no]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ao]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},io]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:D()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[L,h]}],"outline-w":[{outline:[L,G]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:ir()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[L,G]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",O,lo]}],"shadow-color":[{shadow:[mr]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...cr(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":cr()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[t]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",O,h]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[m]}],saturate:[{saturate:[C]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:d()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:d()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[wr,h]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[Q]}],"skew-y":[{"skew-y":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[L,G,Rr]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function go(r){let e=r[2],o,t,n=r[2]&&Nr(r);return{c(){n&&n.c(),o=Sr()},m(a,s){n&&n.m(a,s),q(a,o,s),t=!0},p(a,s){a[2]?e?Fr(e,a[2])?(n.d(1),n=Nr(a),e=a[2],n.c(),n.m(o.parentNode,o)):n.p(a,s):(n=Nr(a),e=a[2],n.c(),n.m(o.parentNode,o)):e&&(n.d(1),n=null,e=a[2])},i(a){t||(M(n,a),t=!0)},o(a){T(n,a),t=!1},d(a){a&&j(o),n&&n.d(a)}}}function bo(r){let e,o,t,n;const a=r[13].default,s=fr(a,r,r[12],null);let i=[{type:r[1]},r[5],{disabled:r[3]},{class:r[4]}],c={};for(let l=0;l<i.length;l+=1)c=N(c,i[l]);return{c(){e=Y("button"),s&&s.c(),pr(e,c)},m(l,u){q(l,e,u),s&&s.m(e,null),e.autofocus&&e.focus(),o=!0,t||(n=[F(e,"click",r[23]),F(e,"change",r[24]),F(e,"keydown",r[25]),F(e,"keyup",r[26]),F(e,"touchstart",r[27],{passive:!0}),F(e,"touchend",r[28]),F(e,"touchcancel",r[29]),F(e,"mouseenter",r[30]),F(e,"mouseleave",r[31])],t=!0)},p(l,u){s&&s.p&&(!o||u[0]&4096)&&gr(s,a,l,l[12],o?ur(a,l[12],u,null):br(l[12]),null),pr(e,c=Cr(i,[(!o||u[0]&2)&&{type:l[1]},u[0]&32&&l[5],(!o||u[0]&8)&&{disabled:l[3]},(!o||u[0]&16)&&{class:l[4]}]))},i(l){o||(M(s,l),o=!0)},o(l){T(s,l),o=!1},d(l){l&&j(e),s&&s.d(l),t=!1,W(n)}}}function po(r){let e,o,t,n;const a=r[13].default,s=fr(a,r,r[12],null);let i=[{href:r[0]},r[5],{class:r[4]},{role:"button"}],c={};for(let l=0;l<i.length;l+=1)c=N(c,i[l]);return{c(){e=Y("a"),s&&s.c(),pr(e,c)},m(l,u){q(l,e,u),s&&s.m(e,null),o=!0,t||(n=[F(e,"click",r[14]),F(e,"change",r[15]),F(e,"keydown",r[16]),F(e,"keyup",r[17]),F(e,"touchstart",r[18],{passive:!0}),F(e,"touchend",r[19]),F(e,"touchcancel",r[20]),F(e,"mouseenter",r[21]),F(e,"mouseleave",r[22])],t=!0)},p(l,u){s&&s.p&&(!o||u[0]&4096)&&gr(s,a,l,l[12],o?ur(a,l[12],u,null):br(l[12]),null),pr(e,c=Cr(i,[(!o||u[0]&1)&&{href:l[0]},u[0]&32&&l[5],(!o||u[0]&16)&&{class:l[4]},{role:"button"}]))},i(l){o||(M(s,l),o=!0)},o(l){T(s,l),o=!1},d(l){l&&j(e),s&&s.d(l),t=!1,W(n)}}}function Nr(r){let e,o;const t=r[13].default,n=fr(t,r,r[12],null);let a=[r[5],{class:r[4]}],s={};for(let i=0;i<a.length;i+=1)s=N(s,a[i]);return{c(){e=Y(r[2]),n&&n.c(),Wr(r[2])(e,s)},m(i,c){q(i,e,c),n&&n.m(e,null),o=!0},p(i,c){n&&n.p&&(!o||c[0]&4096)&&gr(n,t,i,i[12],o?ur(t,i[12],c,null):br(i[12]),null),Wr(i[2])(e,s=Cr(a,[c[0]&32&&i[5],(!o||c[0]&16)&&{class:i[4]}]))},i(i){o||(M(n,i),o=!0)},o(i){T(n,i),o=!1},d(i){i&&j(e),n&&n.d(i)}}}function ho(r){let e,o,t,n;const a=[po,bo,go],s=[];function i(c,l){return c[0]&&!c[3]?0:c[2]==="button"?1:2}return e=i(r),o=s[e]=a[e](r),{c(){o.c(),t=Sr()},m(c,l){s[e].m(c,l),q(c,t,l),n=!0},p(c,l){let u=e;e=i(c),e===u?s[e].p(c,l):(Zr(),T(s[u],1,1,()=>{s[u]=null}),Hr(),o=s[e],o?o.p(c,l):(o=s[e]=a[e](c),o.c()),M(o,1),o.m(t.parentNode,t))},i(c){n||(M(o),n=!0)},o(c){T(o),n=!1},d(c){c&&j(t),s[e].d(c)}}}function yo(r,e,o){const t=["pill","outline","size","href","type","color","shadow","tag","checked","disabled"];let n=xr(e,t),{$$slots:a={},$$scope:s}=e;const i=qr("group");let{pill:c=!1}=e,{outline:l=!1}=e,{size:u=i?"sm":"md"}=e,{href:m=void 0}=e,{type:y="button"}=e,{color:p=i?l?"dark":"alternative":"primary"}=e,{shadow:w=!1}=e,{tag:b="button"}=e,{checked:g=void 0}=e,{disabled:k=!1}=e;const U={alternative:"text-gray-900 bg-white border border-gray-200 hover:bg-gray-100 dark:bg-gray-800 dark:text-gray-400 hover:text-primary-700 focus-within:text-primary-700 dark:focus-within:text-white dark:hover:text-white dark:hover:bg-gray-700",blue:"text-white bg-blue-700 hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700",dark:"text-white bg-gray-800 hover:bg-gray-900 dark:bg-gray-800 dark:hover:bg-gray-700",green:"text-white bg-green-700 hover:bg-green-800 dark:bg-green-600 dark:hover:bg-green-700",light:"text-gray-900 bg-white border border-gray-300 hover:bg-gray-100 dark:bg-gray-800 dark:text-white dark:border-gray-600 dark:hover:bg-gray-700 dark:hover:border-gray-600",primary:"text-white bg-primary-700 hover:bg-primary-800 dark:bg-primary-600 dark:hover:bg-primary-700",purple:"text-white bg-purple-700 hover:bg-purple-800 dark:bg-purple-600 dark:hover:bg-purple-700",red:"text-white bg-red-700 hover:bg-red-800 dark:bg-red-600 dark:hover:bg-red-700",yellow:"text-white bg-yellow-400 hover:bg-yellow-500 ",none:""},C={alternative:"text-primary-700 border dark:text-primary-500 bg-gray-100 dark:bg-gray-700 border-gray-300 shadow-gray-300 dark:shadow-gray-800 shadow-inner",blue:"text-blue-900 bg-blue-400 dark:bg-blue-500 shadow-blue-700 dark:shadow-blue-800 shadow-inner",dark:"text-white bg-gray-500 dark:bg-gray-600 shadow-gray-800 dark:shadow-gray-900 shadow-inner",green:"text-green-900 bg-green-400 dark:bg-green-500 shadow-green-700 dark:shadow-green-800 shadow-inner",light:"text-gray-900 bg-gray-100 border border-gray-300 dark:bg-gray-500 dark:text-gray-900 dark:border-gray-700 shadow-gray-300 dark:shadow-gray-700 shadow-inner",primary:"text-primary-900 bg-primary-400 dark:bg-primary-500 shadow-primary-700 dark:shadow-primary-800 shadow-inner",purple:"text-purple-900 bg-purple-400 dark:bg-purple-500 shadow-purple-700 dark:shadow-purple-800 shadow-inner",red:"text-red-900 bg-red-400 dark:bg-red-500 shadow-red-700 dark:shadow-red-800 shadow-inner",yellow:"text-yellow-900 bg-yellow-300 dark:bg-yellow-400 shadow-yellow-500 dark:shadow-yellow-700 shadow-inner",none:""},z={alternative:"focus-within:ring-gray-200 dark:focus-within:ring-gray-700",blue:"focus-within:ring-blue-300 dark:focus-within:ring-blue-800",dark:"focus-within:ring-gray-300 dark:focus-within:ring-gray-700",green:"focus-within:ring-green-300 dark:focus-within:ring-green-800",light:"focus-within:ring-gray-200 dark:focus-within:ring-gray-700",primary:"focus-within:ring-primary-300 dark:focus-within:ring-primary-800",purple:"focus-within:ring-purple-300 dark:focus-within:ring-purple-900",red:"focus-within:ring-red-300 dark:focus-within:ring-red-900",yellow:"focus-within:ring-yellow-300 dark:focus-within:ring-yellow-900",none:""},A={alternative:"shadow-gray-500/50 dark:shadow-gray-800/80",blue:"shadow-blue-500/50 dark:shadow-blue-800/80",dark:"shadow-gray-500/50 dark:shadow-gray-800/80",green:"shadow-green-500/50 dark:shadow-green-800/80",light:"shadow-gray-500/50 dark:shadow-gray-800/80",primary:"shadow-primary-500/50 dark:shadow-primary-800/80",purple:"shadow-purple-500/50 dark:shadow-purple-800/80",red:"shadow-red-500/50 dark:shadow-red-800/80 ",yellow:"shadow-yellow-500/50 dark:shadow-yellow-800/80 ",none:""},Q={alternative:"text-gray-900 dark:text-gray-400 hover:text-white border border-gray-800 hover:bg-gray-900 focus-within:bg-gray-900 focus-within:text-white focus-within:ring-gray-300 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-600 dark:focus-within:ring-gray-800",blue:"text-blue-700 hover:text-white border border-blue-700 hover:bg-blue-800 dark:border-blue-500 dark:text-blue-500 dark:hover:text-white dark:hover:bg-blue-600",dark:"text-gray-900 hover:text-white border border-gray-800 hover:bg-gray-900 focus-within:bg-gray-900 focus-within:text-white dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-600",green:"text-green-700 hover:text-white border border-green-700 hover:bg-green-800 dark:border-green-500 dark:text-green-500 dark:hover:text-white dark:hover:bg-green-600",light:"text-gray-500 hover:text-gray-900 bg-white border border-gray-200 dark:border-gray-600 dark:hover:text-white dark:text-gray-400 hover:bg-gray-50 dark:bg-gray-700 dark:hover:bg-gray-600",primary:"text-primary-700 hover:text-white border border-primary-700 hover:bg-primary-700 dark:border-primary-500 dark:text-primary-500 dark:hover:text-white dark:hover:bg-primary-600",purple:"text-purple-700 hover:text-white border border-purple-700 hover:bg-purple-800 dark:border-purple-400 dark:text-purple-400 dark:hover:text-white dark:hover:bg-purple-500",red:"text-red-700 hover:text-white border border-red-700 hover:bg-red-800 dark:border-red-500 dark:text-red-500 dark:hover:text-white dark:hover:bg-red-600",yellow:"text-yellow-400 hover:text-white border border-yellow-400 hover:bg-yellow-500 dark:border-yellow-300 dark:text-yellow-300 dark:hover:text-white dark:hover:bg-yellow-400",none:""},V={xs:"px-3 py-2 text-xs",sm:"px-4 py-2 text-sm",md:"px-5 py-2.5 text-sm",lg:"px-5 py-3 text-base",xl:"px-6 py-3.5 text-base"},R=()=>l||p==="alternative"||p==="light";let B;function Z(f){v.call(this,r,f)}function H(f){v.call(this,r,f)}function x(f){v.call(this,r,f)}function ir(f){v.call(this,r,f)}function P(f){v.call(this,r,f)}function lr(f){v.call(this,r,f)}function D(f){v.call(this,r,f)}function cr(f){v.call(this,r,f)}function X(f){v.call(this,r,f)}function I(f){v.call(this,r,f)}function dr(f){v.call(this,r,f)}function d(f){v.call(this,r,f)}function Ao(f){v.call(this,r,f)}function Eo(f){v.call(this,r,f)}function Mo(f){v.call(this,r,f)}function Bo(f){v.call(this,r,f)}function To(f){v.call(this,r,f)}function Ro(f){v.call(this,r,f)}return r.$$set=f=>{o(40,e=N(N({},e),kr(f))),o(5,n=xr(e,t)),"pill"in f&&o(6,c=f.pill),"outline"in f&&o(7,l=f.outline),"size"in f&&o(8,u=f.size),"href"in f&&o(0,m=f.href),"type"in f&&o(1,y=f.type),"color"in f&&o(9,p=f.color),"shadow"in f&&o(10,w=f.shadow),"tag"in f&&o(2,b=f.tag),"checked"in f&&o(11,g=f.checked),"disabled"in f&&o(3,k=f.disabled),"$$scope"in f&&o(12,s=f.$$scope)},r.$$.update=()=>{o(4,B=vr("text-center font-medium",i?"focus-within:ring-2":"focus-within:ring-4",i&&"focus-within:z-10",i||"focus-within:outline-none","inline-flex items-center justify-center "+V[u],l&&g&&"border dark:border-gray-900",l&&g&&C[p],l&&!g&&Q[p],!l&&g&&C[p],!l&&!g&&U[p],p==="alternative"&&(i&&!g?"dark:bg-gray-700 dark:text-white dark:border-gray-700 dark:hover:border-gray-600 dark:hover:bg-gray-600":"dark:bg-transparent dark:border-gray-600 dark:hover:border-gray-600"),l&&p==="dark"&&(i?g?"bg-gray-900 border-gray-800 dark:border-white dark:bg-gray-600":"dark:text-white border-gray-800 dark:border-white":"dark:text-gray-400 dark:border-gray-700"),z[p],R()&&i&&"[&:not(:first-child)]:-ms-px",i?c&&"first:rounded-s-full last:rounded-e-full"||"first:rounded-s-lg last:rounded-e-lg":c&&"rounded-full"||"rounded-lg",w&&"shadow-lg",w&&A[p],k&&"cursor-not-allowed opacity-50",e.class))},e=kr(e),[m,y,b,k,B,n,c,l,u,p,w,g,s,a,Z,H,x,ir,P,lr,D,cr,X,I,dr,d,Ao,Eo,Mo,Bo,To,Ro]}class wo extends $r{constructor(e){super(),Yr(this,e,yo,ho,Fr,{pill:6,outline:7,size:8,href:0,type:1,color:9,shadow:10,tag:2,checked:11,disabled:3},null,[-1,-1])}}function mo(r){me(r,"svelte-1c65wv9",`:root{--button-border-width:1px;--button-primary-animation-ring-color:#5c8ee5;--button-primary-animation-background-color:#134fb9;--button-primary-outline-animation-ring-color:#5c8ee5;--button-primary-outline-animation-background-color:transparent;--button-secondary-animation-ring-color:#b8c1cc;--button-secondary-animation-background-color:#f8fafc;--button-secondary-outline-animation-background-color:transparent;--button-secondary-outline-animation-ring-color:#b8c1cc;--button-tertiary-animation-ring-color:#36b278;--button-tertiary-animation-background-color:#1f9960;--button-tertiary-outline-animation-background-color:transparent;--button-tertiary-outline-animation-ring-color:#36b278;--button-clear-animation-ring-color:#55bbe6;--button-clear-animation-background-color:#ffffff;--button-clear-outline-animation-background-color:transparent;--button-clear-outline-animation-ring-color:#55bbe6;--button-error-animation-ring-color:#ffa6a6;--button-error-animation-background-color:#ef4444;--button-error-outline-animation-background-color:transparent;--button-error-outline-animation-ring-color:#ffa6a6;--button-warning-animation-ring-color:#ff9b38;--button-warning-animation-background-color:#e27303;--button-warning-outline-animation-ring-color:#ff9b38;--button-warning-outline-animation-background-color:transparent;--focus-outline-offset:2px;--focus-outline-width:2px}.pulse-animation{animation:svelte-1c65wv9-animate 2.6s ease-out infinite;will-change:outline, opacity, border-color, background-color;transition:border-color 0.3s ease-out, background-color 0.3s ease-out, outline-width 0.3s ease-out}.pulse-animation:disabled,.pulse-animation:active,.pulse-animation:hover,.pulse-animation:visited,.pulse-animation:focus,.pulse-animation:focus-within,.pulse-animation:focus-visible{animation-name:none;transition:none}@keyframes svelte-1c65wv9-animate{5%{outline:1px solid var(--button-animation-ring-color);outline-offset:0}15%{--button-background-color:var(--button-animation-background-color);--button-border-color:transparent;outline:2px solid var(--button-animation-ring-color);outline-offset:0}42%{outline:8px solid transparent}100%{outline:0px solid transparent}}`)}function vo(r){let e,o;const t=[r[15],{"data-testid":r[15]["data-testid"]||"Button"},{class:vr(r[13],r[3]&&r[8],r[12],r[10],Ur[r[5]],r[9],ue,r[14]&&de,r[14]&&r[16].checked&&fe[r[0]],r[11],r[15].class)},{tag:r[6]},{href:r[7]},{type:r[4]},{disabled:r[1]},{"aria-disabled":r[1]},{"aria-label":r[15]["aria-label"]},{style:`--button-animation-ring-color: var(--button-${r[0]}${r[3]?"-outline":""}-animation-ring-color); --button-animation-background-color: var(--button-${r[0]}${r[3]?"-outline":""}-animation-background-color);`}];let n={$$slots:{default:[xo]},$$scope:{ctx:r}};for(let a=0;a<t.length;a+=1)n=N(n,t[a]);return e=new wo({props:n}),e.$on("click",r[22]),e.$on("change",r[23]),e.$on("keydown",r[24]),e.$on("keyup",r[25]),e.$on("touchstart",r[26]),e.$on("touchend",r[27]),e.$on("touchcancel",r[28]),e.$on("mouseenter",r[29]),e.$on("mouseleave",r[30]),e.$on("focus",r[31]),e.$on("blur",r[32]),{c(){Te(e.$$.fragment)},m(a,s){Xr(e,a,s),o=!0},p(a,s){const i=s[0]&131067?Cr(t,[s[0]&32768&&Be(a[15]),s[0]&32768&&{"data-testid":a[15]["data-testid"]||"Button"},s[0]&130857&&{class:vr(a[13],a[3]&&a[8],a[12],a[10],Ur[a[5]],a[9],ue,a[14]&&de,a[14]&&a[16].checked&&fe[a[0]],a[11],a[15].class)},s[0]&64&&{tag:a[6]},s[0]&128&&{href:a[7]},s[0]&16&&{type:a[4]},s[0]&2&&{disabled:a[1]},s[0]&2&&{"aria-disabled":a[1]},s[0]&32768&&{"aria-label":a[15]["aria-label"]},s[0]&9&&{style:`--button-animation-ring-color: var(--button-${a[0]}${a[3]?"-outline":""}-animation-ring-color); --button-animation-background-color: var(--button-${a[0]}${a[3]?"-outline":""}-animation-background-color);`}]):{};s[1]&4&&(i.$$scope={dirty:s,ctx:a}),e.$set(i)},i(a){o||(M(e.$$.fragment,a),o=!0)},o(a){T(e.$$.fragment,a),o=!1},d(a){Jr(e,a)}}}function ko(r){let e,o,t,n;const a=r[21].default,s=fr(a,r,r[33],null);return{c(){e=Y("div"),o=Y("span"),s&&s.c(),$(o,"class","invisible"),$(e,"data-testid","Skeleton"),$(e,"class",t=vr(r[13],r[12],Ur[r[5]],r[9],r[15].class,"bg-slate-100 inline-flex animate-pulse border-slate-100 hover:border-slate-100 hover:bg-slate-100 focus:border-slate-100 focus:bg-slate-100 active:border-slate-100 active:bg-slate-100 ",r[14]&&"group-item rounded-none"))},m(i,c){q(i,e,c),Dr(e,o),s&&s.m(o,null),n=!0},p(i,c){s&&s.p&&(!n||c[1]&4)&&gr(s,a,i,i[33],n?ur(a,i[33],c,null):br(i[33]),null),(!n||c[0]&45600&&t!==(t=vr(i[13],i[12],Ur[i[5]],i[9],i[15].class,"bg-slate-100 inline-flex animate-pulse border-slate-100 hover:border-slate-100 hover:bg-slate-100 focus:border-slate-100 focus:bg-slate-100 active:border-slate-100 active:bg-slate-100 ",i[14]&&"group-item rounded-none")))&&$(e,"class",t)},i(i){n||(M(s,i),n=!0)},o(i){T(s,i),n=!1},d(i){i&&j(e),s&&s.d(i)}}}function xo(r){let e;const o=r[21].default,t=fr(o,r,r[33],null);return{c(){t&&t.c()},m(n,a){t&&t.m(n,a),e=!0},p(n,a){t&&t.p&&(!e||a[1]&4)&&gr(t,o,n,n[33],e?ur(o,n[33],a,null):br(n[33]),null)},i(n){e||(M(t,n),e=!0)},o(n){T(t,n),e=!1},d(n){t&&t.d(n)}}}function _o(r){let e,o,t,n;const a=[ko,vo],s=[];function i(c,l){return c[2]?0:1}return e=i(r),o=s[e]=a[e](r),{c(){o.c(),t=Sr()},m(c,l){s[e].m(c,l),q(c,t,l),n=!0},p(c,l){let u=e;e=i(c),e===u?s[e].p(c,l):(Zr(),T(s[u],1,1,()=>{s[u]=null}),Hr(),o=s[e],o?o.p(c,l):(o=s[e]=a[e](c),o.c()),M(o,1),o.m(t.parentNode,t))},i(c){n||(M(o),n=!0)},o(c){T(o),n=!1},d(c){c&&j(t),s[e].d(c)}}}const Lr={"x-small":"x-small",small:"small",medium:"medium",large:"large"},ie={primary:"primary",secondary:"secondary",tertiary:"tertiary",clear:"clear",error:"error",warning:"warning"},le=["button","submit","reset"],Co={rounded:"rounded"},nr={size:Lr.medium,variant:ie.primary,shape:Co.rounded,type:le[0]},Uo={"x-small":"px-3.5 py-1.5 h-8 min-h-8 max-h-8 w-fit gap-x-1 typography-link-medium-link20",small:"px-4 py-2 h-9 min-h-9 max-h-9 w-fit gap-x-1 typography-link-medium-link20",medium:"px-4.5 py-2.5 h-10 min-h-10 max-h-10 w-fit gap-x-1.5 typography-link-medium-link20",large:"px-5 py-2.5 h-11 min-h-11 max-h-11 w-fit gap-x-2 typography-link-medium-link30"},Ur={rounded:"rounded","rounded-full":"rounded-full",none:"rounded-none"},zo={primary:` bg-primary-surface-default border-transparent text-primary-on-surface-fixed-light active:bg-primary-surface-dim active:text-primary-on-surface-fixed-light active:border-transparent hover:bg-primary-surface-cloudy hover:text-primary-on-surface-fixed-light hover:border-transparent focus:outline-primary-border-ring aria-disabled:focus:outline-primary-border-ring/20 aria-disabled:bg-primary-surface-disabled aria-disabled:text-primary-on-surface-inverse aria-disabled:border-transparent `,secondary:` bg-neutral-surface-subtle border-transparent text-neutral-on-surface-text-default active:bg-neutral-surface-weak active:border-transparent hover:bg-neutral-surface-weak hover:border-transparent focus:outline-neutral-border-ring aria-disabled:focus:outline-neutral-border-ring/20 aria-disabled:bg-neutral-surface-subtle aria-disabled:text-neutral-on-surface-text-disabled aria-disabled:border-transparent `,tertiary:` bg-tertiary-surface-default border-transparent text-tertiary-on-surface-inverse active:bg-tertiary-surface-dim active:text-tertiary-on-surface-inverse active:border-transparent hover:bg-tertiary-surface-cloudy hover:text-tertiary-on-surface-inverse hover:border-transparent focus:outline-tertiary-border-ring aria-disabled:focus:outline-tertiary-border-ring/20 aria-disabled:bg-tertiary-surface-disabled aria-disabled:text-tertiary-on-surface-inverse aria-disabled:border-transparent `,clear:` bg-transparent border-transparent text-neutral-on-surface-default active:bg-secondary-surface-weaker active:border-transparent hover:bg-secondary-surface-weakest hover:border-transparent focus:outline-neutral-border-ring aria-disabled:focus:outline-neutral-border-ring/20 aria-disabled:bg-transparent aria-disabled:text-neutral-on-surface-disabled aria-disabled:border-transparent `,error:` bg-error-surface-default border-transparent text-error-on-surface-fixed-light active:bg-error-surface-dim active:text-error-on-surface-fixed-light active:border-transparent hover:bg-error-surface-cloudy hover:text-error-on-surface-fixed-light hover:border-transparent focus:outline-error-border-ring aria-disabled:focus:outline-error-border-ring/20 aria-disabled:bg-error-surface-disabled aria-disabled:text-error-on-surface-inverse aria-disabled:border-transparent `,warning:` bg-warning-surface-default border-transparent text-warning-on-surface-fixed-light active:bg-warning-surface-dim active:text-warning-on-surface-fixed-light active:border-transparent hover:bg-warning-surface-cloudy hover:text-warning-on-surface-fixed-light hover:border-transparent focus:outline-warning-border-ring aria-disabled:focus:outline-warning-border-ring/20 aria-disabled:bg-warning-surface-disabled aria-disabled:text-warning-on-surface-inverse aria-disabled:border-transparent `},ce={primary:` bg-transparent border-neutral-border-default text-primary-on-surface-default active:bg-primary-surface-weaker active:text-primary-on-surface-dim active:border-neutral-border-default hover:bg-primary-surface-weakest hover:text-primary-on-surface-cloudy hover:border-neutral-border-default focus:border-primary-border-ring focus:outline-primary-border-ring aria-disabled:focus:outline-primary-border-ring/20 aria-disabled:bg-transparent aria-disabled:text-primary-on-surface-disabled aria-disabled:border-neutral-border-disabled `,secondary:` bg-transparent border-neutral-border-default text-neutral-on-surface-text-default active:bg-neutral-surface-weak active:text-neutral-on-surface-text-default active:border-neutral-border-default hover:bg-primary-surface-weakest hover:text-neutral-on-surface-text-default hover:border-neutral-border-default focus:outline-neutral-border-ring aria-disabled:focus:outline-neutral-border-ring/20 focus:border-neutral-border-ring focus-within:outline-neutral-border-ring aria-disabled:focus-within:outline-neutral-border-ring/20 aria-disabled:bg-transparent aria-disabled:text-neutral-on-surface-disabled aria-disabled:border-neutral-border-disabled `,tertiary:` bg-transparent border-neutral-border-default text-tertiary-on-surface-default active:bg-tertiary-surface-weaker active:text-tertiary-on-surface-dim active:border-neutral-border-default hover:bg-tertiary-surface-weakest hover:text-tertiary-on-surface-cloudy hover:border-neutral-b