var lt=Object.defineProperty;var st=(t,e,r)=>e in t?lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Te=(t,e,r)=>(st(t,typeof e!="symbol"?e+"":e,r),r);import{s as he,e as H,i as A,d as _,A as Z,B as Sr,C as L,D as J,r as Q,f as D,g as G,h as F,E as tr,F as ct,G as U,u as $,v as ee,w as re,H as Wr,I as hr,J as O,p as Hr,K as dt,L as ut,M as ft,N as Zr,a as Be,c as Ue,O as ke,x as K,l as q,m as W,j,n as or,P as Ar,Q as Tr,R as bt,y as zr,z as Yr,o as gt,S as ht,k as Nr}from"../chunks/scheduler.2f27f277.js";import{S as xe,i as Ce,a as y,t as x,g as Me,c as Ie,b as ie,d as ne,m as ae,e as le,f as Or}from"../chunks/index.d9978d1c.js";import{w as Xr}from"../chunks/index.6e61dc83.js";function me(t,e){const r={},o={},i={$$scope:1};let n=t.length;for(;n--;){const a=t[n],l=e[n];if(l){for(const s in a)s in l||(o[s]=1);for(const s in l)i[s]||(r[s]=l[s],i[s]=1);t[n]=l}else for(const s in a)i[s]=1}for(const a in o)a in r||(r[a]=void 0);return r}function ir(t){return typeof t=="object"&&t!==null?t:{}}const mt=!1,pt=!1,mi=Object.freeze(Object.defineProperty({__proto__:null,prerender:mt,ssr:pt},Symbol.toStringTag,{value:"Module"})),Re=Xr("DISCONNECTED");let mr=Xr({});class wt{constructor(){Te(this,"__currentOffset");Te(this,"__currentFluctuation");Te(this,"__currentAcceptanceRate");Te(this,"__acceptedFluctuationFactor",4n);Te(this,"__latestOffsets",[]);Te(this,"__latestFluctuations",[]);Te(this,"__latestAcceptanceResults",[]);this.__currentOffset=void 0,this.__currentFluctuation=void 0,this.__latestOffsets=[],this.__latestFluctuations=[],this.__latestAcceptanceResults=[]}currentOffset(){return this.__currentOffset}currentAcceptanceRate(){return this.__currentAcceptanceRate}handleTimeSync(e,r,o){let i=r-e,n=o+i/2n-r;this.__handleNewOffset(n)}__handleNewOffset(e){const r=this.__isOffsetInMargin(e);this.__handleAcceptanceResult(r),r&&(this.__currentOffset=this.__pushValueAndCaluclateAverage(this.__latestOffsets,e))}__handleAcceptanceResult(e){this.__currentAcceptanceRate=this.__pushValueAndCaluclateAverage(this.__latestAcceptanceResults,e?100n:0n),this.__currentAcceptanceRate>90n?this.__acceptedFluctuationFactor=4n:this.__currentAcceptanceRate>80n?this.__acceptedFluctuationFactor=6n:this.__currentAcceptanceRate>50n?this.__acceptedFluctuationFactor=10n:this.__acceptedFluctuationFactor=100n}__isOffsetInMargin(e){if(!this.__currentOffset)return!0;let r=this.__currentOffset-e;return r<0&&(r=-r),this.__currentFluctuation&&this.__latestFluctuations.length>5&&r>this.__currentFluctuation*this.__acceptedFluctuationFactor?!1:(this.__currentFluctuation=this.__pushValueAndCaluclateAverage(this.__latestFluctuations,r),this.__latestFluctuations.length<10?!0:r10&&e.shift();let o=0n;for(let i=0;i Requested "+Oe.name+" ("+Oe.id+")");let t;try{t=await Oe.gatt.connect()}catch{console.log("> Error connecting to "+Oe.name+" ("+Oe.id+")"),Re.set("DISCONNECTED");return}Oe.addEventListener("gattserverdisconnected",vt),rr=await t.getPrimaryService(sr),Fe.currentTime=await rr.getCharacteristic(ur+"0001"),Fe.lastTriggerTime=await rr.getCharacteristic(ur+"0002"),await Fe.lastTriggerTime.startNotifications(),Fe.lastTriggerTime.addEventListener("characteristicvaluechanged",xt),Pe=new wt,fr=setInterval(Ct,1e3),Re.set("CONNECTED")}function vt(){console.log("> Bluetooth Device disconnected"),Oe=void 0,rr=void 0,Pe=void 0,Kr=void 0,fr!==void 0&&clearInterval(fr),Re.set("DISCONNECTED")}function xt(t){var r;if(!t.target)return;const e=t.target;e.uuid==((r=Fe.lastTriggerTime)==null?void 0:r.uuid)&&Et(new DataView(e.value.buffer,0).getBigUint64(0,!0))}async function Ct(){if(Pe===void 0||Fe.currentTime===void 0||Kr!==void 0)return!1;let t=performance.now(),r=(await Fe.currentTime.readValue()).getBigUint64(0,!0),o=performance.now();Pe.handleTimeSync(BigInt(Math.floor(t)),BigInt(Math.floor(o)),r),mr.update(i=>(i.offset=Pe.currentOffset(),i))}function Et(t){if(Pe===void 0)return;const e=Pe.currentOffset();e!==void 0&&mr.update(r=>(r.lastTriggerTime=t-e,r.connectionQuality=Pe.currentAcceptanceRate(),r))}const pr="-";function St(t){const e=Tt(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=t;function i(a){const l=a.split(pr);return l[0]===""&&l.length!==1&&l.shift(),Jr(l,e)||At(a)}function n(a,l){const s=r[a]||[];return l&&o[a]?[...s,...o[a]]:s}return{getClassGroupId:i,getConflictingClassGroupIds:n}}function Jr(t,e){var a;if(t.length===0)return e.classGroupId;const r=t[0],o=e.nextPart.get(r),i=o?Jr(t.slice(1),o):void 0;if(i)return i;if(e.validators.length===0)return;const n=t.join(pr);return(a=e.validators.find(({validator:l})=>l(n)))==null?void 0:a.classGroupId}const Rr=/^\[(.+)\]$/;function At(t){if(Rr.test(t)){const e=Rr.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}}function Tt(t){const{theme:e,prefix:r}=t,o={nextPart:new Map,validators:[]};return Nt(Object.entries(t.classGroups),r).forEach(([n,a])=>{br(a,o,n,e)}),o}function br(t,e,r,o){t.forEach(i=>{if(typeof i=="string"){const n=i===""?e:Mr(e,i);n.classGroupId=r;return}if(typeof i=="function"){if(zt(i)){br(i(o),e,r,o);return}e.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([n,a])=>{br(a,Mr(e,n),r,o)})})}function Mr(t,e){let r=t;return e.split(pr).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function zt(t){return t.isThemeGetter}function Nt(t,e){return e?t.map(([r,o])=>{const i=o.map(n=>typeof n=="string"?e+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([a,l])=>[e+a,l])):n);return[r,i]}):t}function Ot(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,o=new Map;function i(n,a){r.set(n,a),e++,e>t&&(e=0,o=r,r=new Map)}return{get(n){let a=r.get(n);if(a!==void 0)return a;if((a=o.get(n))!==void 0)return i(n,a),a},set(n,a){r.has(n)?r.set(n,a):i(n,a)}}}const Qr="!";function Rt(t){const e=t.separator,r=e.length===1,o=e[0],i=e.length;return function(a){const l=[];let s=0,c=0,u;for(let b=0;bc?u-c:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:g}}}function Mt(t){if(t.length<=1)return t;const e=[];let r=[];return t.forEach(o=>{o[0]==="["?(e.push(...r.sort(),o),r=[]):r.push(o)}),e.push(...r.sort()),e}function It(t){return{cache:Ot(t.cacheSize),splitModifiers:Rt(t),...St(t)}}const Pt=/\s+/;function Bt(t,e){const{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:i}=e,n=new Set;return t.trim().split(Pt).map(a=>{const{modifiers:l,hasImportantModifier:s,baseClassName:c,maybePostfixModifierPosition:u}=r(a);let h=o(u?c.substring(0,u):c),d=!!u;if(!h){if(!u)return{isTailwindClass:!1,originalClassName:a};if(h=o(c),!h)return{isTailwindClass:!1,originalClassName:a};d=!1}const f=Mt(l).join(":");return{isTailwindClass:!0,modifierId:s?f+Qr:f,classGroupId:h,originalClassName:a,hasPostfixModifier:d}}).reverse().filter(a=>{if(!a.isTailwindClass)return!0;const{modifierId:l,classGroupId:s,hasPostfixModifier:c}=a,u=l+s;return n.has(u)?!1:(n.add(u),i(s,c).forEach(h=>n.add(l+h)),!0)}).reverse().map(a=>a.originalClassName).join(" ")}function Ut(){let t=0,e,r,o="";for(;th(u),t());return r=It(c),o=r.cache.get,i=r.cache.set,n=l,l(s)}function l(s){const c=o(s);if(c)return c;const u=Bt(s,r);return i(s,u),u}return function(){return n(Ut.apply(null,arguments))}}function B(t){const e=r=>r[t]||[];return e.isThemeGetter=!0,e}const et=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ft=/^\d+\/\d+$/,Vt=new Set(["px","full","screen"]),Dt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gt=/\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$/,jt=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ge(t){return Ve(t)||Vt.has(t)||Ft.test(t)}function ze(t){return We(t,"length",Qt)}function Ve(t){return!!t&&!Number.isNaN(Number(t))}function er(t){return We(t,"number",Ve)}function Xe(t){return!!t&&Number.isInteger(Number(t))}function Wt(t){return t.endsWith("%")&&Ve(t.slice(0,-1))}function S(t){return et.test(t)}function Ne(t){return Dt.test(t)}const Ht=new Set(["length","size","percentage"]);function Zt(t){return We(t,Ht,rt)}function Yt(t){return We(t,"position",rt)}const Xt=new Set(["image","url"]);function Kt(t){return We(t,Xt,eo)}function Jt(t){return We(t,"",$t)}function Ke(){return!0}function We(t,e,r){const o=et.exec(t);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1}function Qt(t){return Gt.test(t)}function rt(){return!1}function $t(t){return jt.test(t)}function eo(t){return qt.test(t)}function ro(){const t=B("colors"),e=B("spacing"),r=B("blur"),o=B("brightness"),i=B("borderColor"),n=B("borderRadius"),a=B("borderSpacing"),l=B("borderWidth"),s=B("contrast"),c=B("grayscale"),u=B("hueRotate"),h=B("invert"),d=B("gap"),f=B("gradientColorStops"),g=B("gradientColorStopPositions"),b=B("inset"),m=B("margin"),z=B("opacity"),T=B("padding"),k=B("saturate"),p=B("scale"),V=B("sepia"),Y=B("skew"),pe=B("space"),se=B("translate"),te=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",S,e],M=()=>[S,e],oe=()=>["",ge,ze],ce=()=>["auto",Ve,S],De=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],de=()=>["solid","dashed","dotted","double","none"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],Ee=()=>["start","end","center","between","around","evenly","stretch"],ue=()=>["","0",S],Se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],we=()=>[Ve,er],fe=()=>[Ve,S];return{cacheSize:500,separator:":",theme:{colors:[Ke],spacing:[ge,ze],blur:["none","",Ne,S],brightness:we(),borderColor:[t],borderRadius:["none","","full",Ne,S],borderSpacing:M(),borderWidth:oe(),contrast:we(),grayscale:ue(),hueRotate:fe(),invert:ue(),gap:M(),gradientColorStops:[t],gradientColorStopPositions:[Wt,ze],inset:C(),margin:C(),opacity:we(),padding:M(),saturate:we(),scale:we(),sepia:ue(),skew:fe(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",S]}],container:["container"],columns:[{columns:[Ne]}],"break-after":[{"break-after":Se()}],"break-before":[{"break-before":Se()}],"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"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...De(),S]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],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",Xe,S]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",S]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",Xe,S]}],"grid-cols":[{"grid-cols":[Ke]}],"col-start-end":[{col:["auto",{span:["full",Xe,S]},S]}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":[Ke]}],"row-start-end":[{row:["auto",{span:[Xe,S]},S]}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",S]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",S]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...Ee()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ee(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ee(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[pe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[pe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",S,e]}],"min-w":[{"min-w":["min","max","fit",S,ge]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Ne]},Ne,S]}],h:[{h:[S,e,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ge,S]}],"max-h":[{"max-h":[S,e,"min","max","fit"]}],"font-size":[{text:["base",Ne,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",er]}],"font-family":[{font:[Ke]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",S]}],"line-clamp":[{"line-clamp":["none",Ve,er]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ge,S]}],"list-image":[{"list-image":["none",S]}],"list-style-type":[{list:["none","disc","decimal",S]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[z]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ge,ze]}],"underline-offset":[{"underline-offset":["auto",ge,S]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S]}],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",S]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[z]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...De(),Yt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Zt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Kt]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[z]}],"border-style":[{border:[...de(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[z]}],"divide-style":[{divide:de()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...de()]}],"outline-offset":[{"outline-offset":[ge,S]}],"outline-w":[{outline:[ge,ze]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[z]}],"ring-offset-w":[{"ring-offset":[ge,ze]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Ne,Jt]}],"shadow-color":[{shadow:[Ke]}],opacity:[{opacity:[z]}],"mix-blend":[{"mix-blend":ve()}],"bg-blend":[{"bg-blend":ve()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",Ne,S]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[k]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[z]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",S]}],duration:[{duration:fe()}],ease:[{ease:["linear","in","out","in-out",S]}],delay:[{delay:fe()}],animate:[{animate:["none","spin","ping","pulse","bounce",S]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[p]}],"scale-x":[{"scale-x":[p]}],"scale-y":[{"scale-y":[p]}],rotate:[{rotate:[Xe,S]}],"translate-x":[{"translate-x":[se]}],"translate-y":[{"translate-y":[se]}],"skew-x":[{"skew-x":[Y]}],"skew-y":[{"skew-y":[Y]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",S]}],accent:[{accent:["auto",t]}],appearance:["appearance-none"],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",S]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",S]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ge,ze,er]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"]},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"],"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-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"]}}}const Le=Lt(ro);function cr(t){let e,r,o,i,n;const a=t[12].default,l=Q(a,t,t[11],null);let s=[{role:t[4]},t[6],{class:t[5]}],c={};for(let u=0;u{};Sr("background",!0);let{tag:s=i.href?"a":"div"}=e,{color:c="default"}=e,{rounded:u=!1}=e,{border:h=!1}=e,{shadow:d=!1}=e,{node:f=void 0}=e,{use:g=l}=e,{options:b={}}=e,{role:m=void 0}=e;const z={gray:"bg-gray-50 dark:bg-gray-800",red:"bg-red-50 dark:bg-gray-800",yellow:"bg-yellow-50 dark:bg-gray-800 ",green:"bg-green-50 dark:bg-gray-800 ",indigo:"bg-indigo-50 dark:bg-gray-800 ",purple:"bg-purple-50 dark:bg-gray-800 ",pink:"bg-pink-50 dark:bg-gray-800 ",blue:"bg-blue-50 dark:bg-gray-800 ",light:"bg-gray-50 dark:bg-gray-700",dark:"bg-gray-50 dark:bg-gray-800",default:"bg-white dark:bg-gray-800",dropdown:"bg-white dark:bg-gray-700",navbar:"bg-white dark:bg-gray-900",navbarUl:"bg-gray-50 dark:bg-gray-800",form:"bg-gray-50 dark:bg-gray-700",primary:"bg-primary-50 dark:bg-gray-800 ",orange:"bg-orange-50 dark:bg-orange-800",none:""},T={gray:"text-gray-800 dark:text-gray-300",red:"text-red-800 dark:text-red-400",yellow:"text-yellow-800 dark:text-yellow-300",green:"text-green-800 dark:text-green-400",indigo:"text-indigo-800 dark:text-indigo-400",purple:"text-purple-800 dark:text-purple-400",pink:"text-pink-800 dark:text-pink-400",blue:"text-blue-800 dark:text-blue-400",light:"text-gray-700 dark:text-gray-300",dark:"text-gray-700 dark:text-gray-300",default:"text-gray-500 dark:text-gray-400",dropdown:"text-gray-700 dark:text-gray-200",navbar:"text-gray-700 dark:text-gray-200",navbarUl:"text-gray-700 dark:text-gray-400",form:"text-gray-900 dark:text-white",primary:"text-primary-800 dark:text-primary-400",orange:"text-orange-800 dark:text-orange-400",none:""},k={gray:"border-gray-300 dark:border-gray-800 divide-gray-300 dark:divide-gray-800",red:"border-red-300 dark:border-red-800 divide-red-300 dark:divide-red-800",yellow:"border-yellow-300 dark:border-yellow-800 divide-yellow-300 dark:divide-yellow-800",green:"border-green-300 dark:border-green-800 divide-green-300 dark:divide-green-800",indigo:"border-indigo-300 dark:border-indigo-800 divide-indigo-300 dark:divide-indigo-800",purple:"border-purple-300 dark:border-purple-800 divide-purple-300 dark:divide-purple-800",pink:"border-pink-300 dark:border-pink-800 divide-pink-300 dark:divide-pink-800",blue:"border-blue-300 dark:border-blue-800 divide-blue-300 dark:divide-blue-800",light:"border-gray-500 divide-gray-500",dark:"border-gray-500 divide-gray-500",default:"border-gray-200 dark:border-gray-700 divide-gray-200 dark:divide-gray-700",dropdown:"border-gray-100 dark:border-gray-600 divide-gray-100 dark:divide-gray-600",navbar:"border-gray-100 dark:border-gray-700 divide-gray-100 dark:divide-gray-700",navbarUl:"border-gray-100 dark:border-gray-700 divide-gray-100 dark:divide-gray-700",form:"border-gray-300 dark:border-gray-700 divide-gray-300 dark:divide-gray-700",primary:"border-primary-500 dark:border-primary-200 divide-primary-500 dark:divide-primary-200 ",orange:"border-orange-300 dark:border-orange-800 divide-orange-300 dark:divide-orange-800",none:""};let p;function V(C){O.call(this,t,C)}function Y(C){O.call(this,t,C)}function pe(C){O.call(this,t,C)}function se(C){O.call(this,t,C)}function te(C){O.call(this,t,C)}function X(C){Hr[C?"unshift":"push"](()=>{f=C,r(0,f)})}return t.$$set=C=>{r(23,e=L(L({},e),J(C))),r(6,i=Z(e,o)),"tag"in C&&r(1,s=C.tag),"color"in C&&r(7,c=C.color),"rounded"in C&&r(8,u=C.rounded),"border"in C&&r(9,h=C.border),"shadow"in C&&r(10,d=C.shadow),"node"in C&&r(0,f=C.node),"use"in C&&r(2,g=C.use),"options"in C&&r(3,b=C.options),"role"in C&&r(4,m=C.role),"$$scope"in C&&r(11,a=C.$$scope)},t.$$.update=()=>{t.$$.dirty&128&&r(7,c=c??"default"),t.$$.dirty&128&&Sr("color",c),r(5,p=Le(z[c],T[c],u&&"rounded-lg",h&&"border",k[c],d&&"shadow-md",e.class))},e=J(e),[f,s,g,b,m,p,i,c,u,h,d,a,n,V,Y,pe,se,te,X]}class tt extends xe{constructor(e){super(),Ce(this,e,oo,to,he,{tag:1,color:7,rounded:8,border:9,shadow:10,node:0,use:2,options:3,role:4})}}function io(t,{delay:e=0,duration:r=400,easing:o=dt}={}){const i=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:o,css:n=>`opacity: ${n*i}`}}const no=t=>({}),Ir=t=>({close:t[4]}),ao=t=>({}),Pr=t=>({close:t[4]});function lo(t){let e,r;const o=[t[5]];let i={$$slots:{default:[co]},$$scope:{ctx:t}};for(let n=0;n{o=null}),Ie())},i(i){r||(y(o),r=!0)},o(i){x(o),r=!1},d(i){i&&_(e),o&&o.d(i)}}}function co(t){let e;const r=t[6].default,o=Q(r,t,t[7],Ir);return{c(){o&&o.c()},l(i){o&&o.l(i)},m(i,n){o&&o.m(i,n),e=!0},p(i,n){o&&o.p&&(!e||n&128)&&$(o,r,i,i[7],e?re(r,i[7],n,no):ee(i[7]),Ir)},i(i){e||(y(o,i),e=!0)},o(i){x(o,i),e=!1},d(i){o&&o.d(i)}}}function Br(t){let e,r,o,i;const n=[t[5]];let a={$$slots:{default:[uo]},$$scope:{ctx:t}};for(let l=0;l{i&&(o||(o=Or(e,t[1],t[2],!0)),o.run(1))}),i=!0)},o(l){x(r.$$.fragment,l),l&&(o||(o=Or(e,t[1],t[2],!1)),o.run(0)),i=!1},d(l){l&&_(e),le(r),l&&o&&o.end()}}}function uo(t){let e;const r=t[6].default,o=Q(r,t,t[7],Pr);return{c(){o&&o.c()},l(i){o&&o.l(i)},m(i,n){o&&o.m(i,n),e=!0},p(i,n){o&&o.p&&(!e||n&128)&&$(o,r,i,i[7],e?re(r,i[7],n,ao):ee(i[7]),Pr)},i(i){e||(y(o,i),e=!0)},o(i){x(o,i),e=!1},d(i){o&&o.d(i)}}}function fo(t){let e,r,o,i;const n=[so,lo],a=[];function l(s,c){return s[3]?0:1}return e=l(t),r=a[e]=n[e](t),{c(){r.c(),o=H()},l(s){r.l(s),o=H()},m(s,c){a[e].m(s,c),A(s,o,c),i=!0},p(s,[c]){let u=e;e=l(s),e===u?a[e].p(s,c):(Me(),x(a[u],1,1,()=>{a[u]=null}),Ie(),r=a[e],r?r.p(s,c):(r=a[e]=n[e](s),r.c()),y(r,1),r.m(o.parentNode,o))},i(s){i||(y(r),i=!0)},o(s){x(r),i=!1},d(s){s&&_(o),a[e].d(s)}}}function bo(t,e,r){const o=["transition","params","open","dismissable"];let i=Z(e,o),{$$slots:n={},$$scope:a}=e,{transition:l=io}=e,{params:s={}}=e,{open:c=!0}=e,{dismissable:u=!1}=e;const h=ut();function d(f){f!=null&&f.stopPropagation&&f.stopPropagation(),r(0,c=!1)}return t.$$set=f=>{e=L(L({},e),J(f)),r(5,i=Z(e,o)),"transition"in f&&r(1,l=f.transition),"params"in f&&r(2,s=f.params),"open"in f&&r(0,c=f.open),"dismissable"in f&&r(3,u=f.dismissable),"$$scope"in f&&r(7,a=f.$$scope)},t.$$.update=()=>{t.$$.dirty&1&&h(c?"open":"close")},[c,l,s,u,d,i,n,a]}class go extends xe{constructor(e){super(),Ce(this,e,bo,fo,he,{transition:1,params:2,open:0,dismissable:3})}}const ho=t=>({svgSize:t&4}),Ur=t=>({svgSize:t[5][t[2]]}),mo=t=>({svgSize:t&4}),Lr=t=>({svgSize:t[5][t[2]]});function po(t){let e,r,o,i,n,a,l=t[0]&&Fr(t);const s=t[9].default,c=Q(s,t,t[8],Ur);let u=[{type:"button"},t[6],{class:t[4]},{"aria-label":o=t[1]??t[0]}],h={};for(let d=0;d{a[u]=null}),Ie(),r=a[e],r?r.p(s,c):(r=a[e]=n[e](s),r.c()),y(r,1),r.m(o.parentNode,o))},i(s){i||(y(r),i=!0)},o(s){x(r),i=!1},d(s){s&&_(o),a[e].d(s)}}}function yo(t,e,r){const o=["color","name","ariaLabel","size","href"];let i=Z(e,o),{$$slots:n={},$$scope:a}=e;const l=Zr("background");let{color:s="default"}=e,{name:c=void 0}=e,{ariaLabel:u=void 0}=e,{size:h="md"}=e,{href:d=void 0}=e;const f={dark:"text-gray-500 hover:text-gray-900 hover:bg-gray-200 dark:text-gray-400 dark:hover:text-white dark:hover:bg-gray-600",gray:"text-gray-500 focus:ring-gray-400 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-gray-300",red:"text-red-500 focus:ring-red-400 hover:bg-red-200 dark:hover:bg-red-800 dark:hover:text-red-300",yellow:"text-yellow-500 focus:ring-yellow-400 hover:bg-yellow-200 dark:hover:bg-yellow-800 dark:hover:text-yellow-300",green:"text-green-500 focus:ring-green-400 hover:bg-green-200 dark:hover:bg-green-800 dark:hover:text-green-300",indigo:"text-indigo-500 focus:ring-indigo-400 hover:bg-indigo-200 dark:hover:bg-indigo-800 dark:hover:text-indigo-300",purple:"text-purple-500 focus:ring-purple-400 hover:bg-purple-200 dark:hover:bg-purple-800 dark:hover:text-purple-300",pink:"text-pink-500 focus:ring-pink-400 hover:bg-pink-200 dark:hover:bg-pink-800 dark:hover:text-pink-300",blue:"text-blue-500 focus:ring-blue-400 hover:bg-blue-200 dark:hover:bg-blue-800 dark:hover:text-blue-300",primary:"text-primary-500 focus:ring-primary-400 hover:bg-primary-200 dark:hover:bg-primary-800 dark:hover:text-primary-300",default:"focus:ring-gray-400"},g={xs:"m-0.5 rounded-sm focus:ring-1 p-0.5",sm:"m-0.5 rounded focus:ring-1 p-0.5",md:"m-0.5 rounded-lg focus:ring-2 p-1.5",lg:"m-0.5 rounded-lg focus:ring-2 p-2.5"};let b;const m={xs:"w-3 h-3",sm:"w-3.5 h-3.5",md:"w-5 h-5",lg:"w-5 h-5"};function z(T){O.call(this,t,T)}return t.$$set=T=>{r(14,e=L(L({},e),J(T))),r(6,i=Z(e,o)),"color"in T&&r(7,s=T.color),"name"in T&&r(0,c=T.name),"ariaLabel"in T&&r(1,u=T.ariaLabel),"size"in T&&r(2,h=T.size),"href"in T&&r(3,d=T.href),"$$scope"in T&&r(8,a=T.$$scope)},t.$$.update=()=>{r(4,b=Le("focus:outline-none whitespace-normal",g[h],f[s],s==="default"&&(l?"hover:bg-gray-100 dark:hover:bg-gray-600":"hover:bg-gray-100 dark:hover:bg-gray-700"),e.class))},e=J(e),[c,u,h,d,b,m,i,s,a,n,z]}class ko extends xe{constructor(e){super(),Ce(this,e,yo,_o,he,{color:7,name:0,ariaLabel:1,size:2,href:3})}}function vo(t){let e,r,o;return{c(){e=Ar("svg"),r=Ar("path"),this.h()},l(i){e=Tr(i,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0});var n=F(e);r=Tr(n,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),F(r).forEach(_),n.forEach(_),this.h()},h(){j(r,"fill-rule","evenodd"),j(r,"d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"),j(r,"clip-rule","evenodd"),j(e,"class",o=t[4]),j(e,"fill","currentColor"),j(e,"viewBox","0 0 20 20"),j(e,"xmlns","http://www.w3.org/2000/svg")},m(i,n){A(i,e,n),K(e,r)},p(i,n){n&16&&o!==(o=i[4])&&j(e,"class",o)},d(i){i&&_(e)}}}function xo(t){let e,r;const o=[{name:t[0]},t[1],{class:Le("ml-auto",t[2].class)}];let i={$$slots:{default:[vo,({svgSize:n})=>({4:n}),({svgSize:n})=>n?16:0]},$$scope:{ctx:t}};for(let n=0;n{r(2,e=L(L({},e),J(l))),r(1,i=Z(e,o)),"name"in l&&r(0,n=l.name)},e=J(e),[n,i,e,a]}class Eo extends xe{constructor(e){super(),Ce(this,e,Co,xo,he,{name:0})}}const So=t=>({close:t&131072}),Dr=t=>({close:t[17]}),Ao=t=>({}),Gr=t=>({});function jr(t){let e;const r=t[5].icon,o=Q(r,t,t[15],Gr);return{c(){o&&o.c()},l(i){o&&o.l(i)},m(i,n){o&&o.m(i,n),e=!0},p(i,n){o&&o.p&&(!e||n&32768)&&$(o,r,i,i[15],e?re(r,i[15],n,Ao):ee(i[15]),Gr)},i(i){e||(y(o,i),e=!0)},o(i){x(o,i),e=!1},d(i){o&&o.d(i)}}}function To(t){let e;const r=t[5].default,o=Q(r,t,t[15],null);return{c(){o&&o.c()},l(i){o&&o.l(i)},m(i,n){o&&o.m(i,n),e=!0},p(i,n){o&&o.p&&(!e||n&32768)&&$(o,r,i,i[15],e?re(r,i[15],n,null):ee(i[15]),null)},i(i){e||(y(o,i),e=!0)},o(i){x(o,i),e=!1},d(i){o&&o.d(i)}}}function zo(t){let e,r;const o=t[5].default,i=Q(o,t,t[15],null);return{c(){e=D("div"),i&&i.c()},l(n){e=G(n,"DIV",{});var a=F(e);i&&i.l(a),a.forEach(_)},m(n,a){A(n,e,a),i&&i.m(e,null),r=!0},p(n,a){i&&i.p&&(!r||a&32768)&&$(i,o,n,n[15],r?re(o,n[15],a,null):ee(n[15]),null)},i(n){r||(y(i,n),r=!0)},o(n){x(i,n),r=!1},d(n){n&&_(e),i&&i.d(n)}}}function qr(t){let e;const r=t[5]["close-button"],o=Q(r,t,t[15],Dr),i=o||No(t);return{c(){i&&i.c()},l(n){i&&i.l(n)},m(n,a){i&&i.m(n,a),e=!0},p(n,a){o?o.p&&(!e||a&163840)&&$(o,r,n,n[15],e?re(r,n[15],a,So):ee(n[15]),Dr):i&&i.p&&(!e||a&131080)&&i.p(n,e?a:-1)},i(n){e||(y(i,n),e=!0)},o(n){x(i,n),e=!1},d(n){i&&i.d(n)}}}function No(t){let e,r;return e=new Eo({props:{class:"ml-auto -mr-1.5 -my-1.5 dark:hover:bg-gray-700",color:t[3].color}}),e.$on("click",function(){Wr(t[17])&&t[17].apply(this,arguments)}),e.$on("click",t[6]),e.$on("change",t[7]),e.$on("keydown",t[8]),e.$on("keyup",t[9]),e.$on("focus",t[10]),e.$on("blur",t[11]),e.$on("mouseenter",t[12]),e.$on("mouseleave",t[13]),{c(){ie(e.$$.fragment)},l(o){ne(e.$$.fragment,o)},m(o,i){ae(e,o,i),r=!0},p(o,i){t=o;const n={};i&8&&(n.color=t[3].color),e.$set(n)},i(o){r||(y(e.$$.fragment,o),r=!0)},o(o){x(e.$$.fragment,o),r=!1},d(o){le(e,o)}}}function Oo(t){let e,r,o,i,n,a,l=t[2].icon&&jr(t);const s=[zo,To],c=[];function u(d,f){return d[2].icon||d[0]?0:1}r=u(t),o=c[r]=s[r](t);let h=t[0]&&qr(t);return{c(){l&&l.c(),e=Be(),o.c(),i=Be(),h&&h.c(),n=H()},l(d){l&&l.l(d),e=Ue(d),o.l(d),i=Ue(d),h&&h.l(d),n=H()},m(d,f){l&&l.m(d,f),A(d,e,f),c[r].m(d,f),A(d,i,f),h&&h.m(d,f),A(d,n,f),a=!0},p(d,f){d[2].icon?l?(l.p(d,f),f&4&&y(l,1)):(l=jr(d),l.c(),y(l,1),l.m(e.parentNode,e)):l&&(Me(),x(l,1,1,()=>{l=null}),Ie());let g=r;r=u(d),r===g?c[r].p(d,f):(Me(),x(c[g],1,1,()=>{c[g]=null}),Ie(),o=c[r],o?o.p(d,f):(o=c[r]=s[r](d),o.c()),y(o,1),o.m(i.parentNode,i)),d[0]?h?(h.p(d,f),f&1&&y(h,1)):(h=qr(d),h.c(),y(h,1),h.m(n.parentNode,n)):h&&(Me(),x(h,1,1,()=>{h=null}),Ie())},i(d){a||(y(l),y(o),y(h),a=!0)},o(d){x(l),x(o),x(h),a=!1},d(d){d&&(_(e),_(i),_(n)),l&&l.d(d),c[r].d(d),h&&h.d(d)}}}function Ro(t){let e,r;const o=[{dismissable:t[0]},{color:"primary"},{role:"alert"},{rounded:!0},t[3],{class:t[1]}];let i={$$slots:{default:[Oo,({close:n})=>({17:n}),({close:n})=>n?131072:0]},$$scope:{ctx:t}};for(let n=0;n{r(16,e=L(L({},e),J(p))),r(3,i=Z(e,o)),"dismissable"in p&&r(0,s=p.dismissable),"defaultClass"in p&&r(4,c=p.defaultClass),"$$scope"in p&&r(15,a=p.$$scope)},t.$$.update=()=>{r(1,u=Le(c,(l.icon||s)&&"flex items-center",e.class))},e=J(e),[s,u,l,i,c,n,h,d,f,g,b,m,z,T,k,a]}class Io extends xe{constructor(e){super(),Ce(this,e,Mo,Ro,he,{dismissable:0,defaultClass:4})}}function Po(t){let e=t[2],r,o,i=t[2]&&dr(t);return{c(){i&&i.c(),r=H()},l(n){i&&i.l(n),r=H()},m(n,a){i&&i.m(n,a),A(n,r,a),o=!0},p(n,a){n[2]?e?he(e,n[2])?(i.d(1),i=dr(n),e=n[2],i.c(),i.m(r.parentNode,r)):i.p(n,a):(i=dr(n),e=n[2],i.c(),i.m(r.parentNode,r)):e&&(i.d(1),i=null,e=n[2])},i(n){o||(y(i,n),o=!0)},o(n){x(i,n),o=!1},d(n){n&&_(r),i&&i.d(n)}}}function Bo(t){let e,r,o,i;const n=t[12].default,a=Q(n,t,t[11],null);let l=[{type:t[1]},t[4],{class:t[3]}],s={};for(let c=0;c{a[u]=null}),Ie(),r=a[e],r?r.p(s,c):(r=a[e]=n[e](s),r.c()),y(r,1),r.m(o.parentNode,o))},i(s){i||(y(r),i=!0)},o(s){x(r),i=!1},d(s){s&&_(o),a[e].d(s)}}}function Fo(t,e,r){const o=["pill","outline","size","href","type","color","shadow","tag","checked"];let i=Z(e,o),{$$slots:n={},$$scope:a}=e;const l=Zr("group");let{pill:s=!1}=e,{outline:c=!1}=e,{size:u=l?"sm":"md"}=e,{href:h=void 0}=e,{type:d="button"}=e,{color:f=l?c?"dark":"alternative":"primary"}=e,{shadow:g=!1}=e,{tag:b="button"}=e,{checked:m=void 0}=e;const z={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",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:""},T={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:""},k={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:""},p={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:""},V={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:""},Y={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"},pe=()=>c||f==="alternative"||f==="light";let se;function te(w){O.call(this,t,w)}function X(w){O.call(this,t,w)}function C(w){O.call(this,t,w)}function M(w){O.call(this,t,w)}function oe(w){O.call(this,t,w)}function ce(w){O.call(this,t,w)}function De(w){O.call(this,t,w)}function de(w){O.call(this,t,w)}function ve(w){O.call(this,t,w)}function Ee(w){O.call(this,t,w)}function ue(w){O.call(this,t,w)}function Se(w){O.call(this,t,w)}function we(w){O.call(this,t,w)}function fe(w){O.call(this,t,w)}function Ge(w){O.call(this,t,w)}function Je(w){O.call(this,t,w)}function je(w){O.call(this,t,w)}function He(w){O.call(this,t,w)}return t.$$set=w=>{r(39,e=L(L({},e),J(w))),r(4,i=Z(e,o)),"pill"in w&&r(5,s=w.pill),"outline"in w&&r(6,c=w.outline),"size"in w&&r(7,u=w.size),"href"in w&&r(0,h=w.href),"type"in w&&r(1,d=w.type),"color"in w&&r(8,f=w.color),"shadow"in w&&r(9,g=w.shadow),"tag"in w&&r(2,b=w.tag),"checked"in w&&r(10,m=w.checked),"$$scope"in w&&r(11,a=w.$$scope)},t.$$.update=()=>{r(3,se=Le("text-center font-medium",l?"focus-within:ring-2":"focus-within:ring-4",l&&"focus-within:z-10",l||"focus-within:outline-none","inline-flex items-center justify-center "+Y[u],c&&m&&"border dark:border-gray-900",c&&m&&T[f],c&&!m&&V[f],!c&&m&&T[f],!c&&!m&&z[f],f==="alternative"&&(l&&!m?"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-700"),c&&f==="dark"&&(l?m?"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"),k[f],pe()&&l&&"border-l-0 first:border-l",l?s&&"first:rounded-l-full last:rounded-r-full"||"first:rounded-l-lg last:rounded-r-lg":s&&"rounded-full"||"rounded-lg",g&&"shadow-lg",g&&p[f],e.disabled&&"cursor-not-allowed opacity-50",e.class))},e=J(e),[h,d,b,se,i,s,c,u,f,g,m,a,n,te,X,C,M,oe,ce,De,de,ve,Ee,ue,Se,we,fe,Ge,Je,je,He]}class ot extends xe{constructor(e){super(),Ce(this,e,Fo,Lo,he,{pill:5,outline:6,size:7,href:0,type:1,color:8,shadow:9,tag:2,checked:10},null,[-1,-1])}}function Vo(t){let e,r,o,i,n;const a=t[6].default,l=Q(a,t,t[5],null);let s=[t[3],{href:t[0]},{class:r=Le(t[2],t[1],t[4].class)}],c={};for(let u=0;u{r(4,e=L(L({},e),J(h))),r(3,i=Z(e,o)),"href"in h&&r(0,l=h.href),"color"in h&&r(1,s=h.color),"aClass"in h&&r(2,c=h.aClass),"$$scope"in h&&r(5,a=h.$$scope)},e=J(e),[l,s,c,i,e,a,n,u]}class wr extends xe{constructor(e){super(),Ce(this,e,Do,Vo,he,{href:0,color:1,aClass:2})}}var Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gr={exports:{}};(function(t,e){(function(r,o){var i="1.0.37",n="",a="?",l="function",s="undefined",c="object",u="string",h="major",d="model",f="name",g="type",b="vendor",m="version",z="architecture",T="console",k="mobile",p="tablet",V="smarttv",Y="wearable",pe="embedded",se=500,te="Amazon",X="Apple",C="ASUS",M="BlackBerry",oe="Browser",ce="Chrome",De="Edge",de="Firefox",ve="Google",Ee="Huawei",ue="LG",Se="Microsoft",we="Motorola",fe="Opera",Ge="Samsung",Je="Sharp",je="Sony",He="Xiaomi",w="Zebra",_r="Facebook",yr="Chromium OS",kr="Mac OS",it=function(N,I){var E={};for(var P in N)I[P]&&I[P].length%2===0?E[P]=I[P].concat(N[P]):E[P]=N[P];return E},Qe=function(N){for(var I={},E=0;E0?R.length===2?typeof R[1]==l?this[R[0]]=R[1].call(this,ye):this[R[0]]=R[1]:R.length===3?typeof R[1]===l&&!(R[1].exec&&R[1].test)?this[R[0]]=ye?R[1].call(this,ye,R[2]):o:this[R[0]]=ye?ye.replace(R[1],R[2]):o:R.length===4&&(this[R[0]]=ye?R[3].call(this,ye.replace(R[1],R[2])):o):this[R]=ye||o;E+=2}},ar=function(N,I){for(var E in I)if(typeof I[E]===c&&I[E].length>0){for(var P=0;P2&&(v[d]="iPad",v[g]=p),v},this.getEngine=function(){var v={};return v[f]=o,v[m]=o,Ye.call(v,P,_e.engine),v},this.getOS=function(){var v={};return v[f]=o,v[m]=o,Ye.call(v,P,_e.os),R&&!v[f]&&Ae&&Ae.platform!="Unknown"&&(v[f]=Ae.platform.replace(/chrome os/i,yr).replace(/macos/i,kr)),v},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return P},this.setUA=function(v){return P=typeof v===u&&v.length>se?nr(v,se):v,this},this.setUA(P),this};be.VERSION=i,be.BROWSER=Qe([f,m,h]),be.CPU=Qe([z]),be.DEVICE=Qe([d,b,g,T,k,V,p,Y,pe]),be.ENGINE=be.OS=Qe([f,m]),t.exports&&(e=t.exports=be),e.UAParser=be;var qe=typeof r!==s&&(r.jQuery||r.Zepto);if(qe&&!qe.ua){var $e=new be;qe.ua=$e.getResult(),qe.ua.get=function(){return $e.getUA()},qe.ua.set=function(N){$e.setUA(N);var I=$e.getResult();for(var E in I)qe.ua[E]=I[E]}}})(typeof window=="object"?window:Go)})(gr,gr.exports);var jo=gr.exports;function qo(t){let e,r=(Number(t[3]??0)/1e3).toFixed(3)+"",o;return{c(){e=D("span"),o=q(r),this.h()},l(i){e=G(i,"SPAN",{class:!0,style:!0});var n=F(e);o=W(n,r),n.forEach(_),this.h()},h(){j(e,"class","text-9xl font-bold"),Nr(e,"color",t[4](t[1],t[2]))},m(i,n){A(i,e,n),K(e,o)},p(i,n){n&8&&r!==(r=(Number(i[3]??0)/1e3).toFixed(3)+"")&&or(o,r),n&6&&Nr(e,"color",i[4](i[1],i[2]))},d(i){i&&_(e)}}}function Wo(t){let e,r;return{c(){e=D("span"),r=q(t[0]),this.h()},l(o){e=G(o,"SPAN",{class:!0});var i=F(e);r=W(i,t[0]),i.forEach(_),this.h()},h(){j(e,"class","text-6xl font-bold text-white py-6 text-center")},m(o,i){A(o,e,i),K(e,r)},p(o,i){i&1&&or(r,o[0])},d(o){o&&_(e)}}}function Ho(t){let e,r,o;function i(l,s){return l[0].length>0?Wo:qo}let n=i(t),a=n(t);return{c(){e=D("div"),r=D("div"),o=D("div"),a.c(),this.h()},l(l){e=G(l,"DIV",{class:!0});var s=F(e);r=G(s,"DIV",{class:!0});var c=F(r);o=G(c,"DIV",{class:!0});var u=F(o);a.l(u),u.forEach(_),c.forEach(_),s.forEach(_),this.h()},h(){j(o,"class","flex flex-grow flex-col items-center"),j(r,"class","w-full flex flex-row flex-wrap gap-3 justify-center"),j(e,"class","flex flex-col items-center gap-3 pb-6")},m(l,s){A(l,e,s),K(e,r),K(r,o),a.m(o,null)},p(l,[s]){n===(n=i(l))&&a?a.p(l,s):(a.d(1),a=n(l),a&&(a.c(),a.m(o,null)))},i:zr,o:zr,d(l){l&&_(e),a.d()}}}function Zo(t,e,r){let o;Yr(t,mr,d=>r(7,o=d));const i=(d=0n)=>{r(1,l=BigInt(Math.floor(performance.now()))-d),r(2,s=void 0)},n=()=>{r(1,l=void 0),r(2,s=void 0),r(3,c=void 0)};let{placeholder:a=""}=e,l,s,c,u;gt(()=>{u=setInterval(()=>{if(l){let d=BigInt(Math.floor(performance.now()));const f=(s??d)-l;r(3,c=s===void 0?f-f%100n:f)}},100)}),ht(()=>{clearInterval(u)});const h=(d,f)=>d===void 0?"white":d!==void 0&&f===void 0?"red":d!==void 0&&f!==void 0?"green":"white";return t.$$set=d=>{"placeholder"in d&&r(0,a=d.placeholder)},t.$$.update=()=>{if(t.$$.dirty&130)e:{if(!l||!o.lastTriggerTime)break e;o.lastTriggerTime>l&&r(2,s=o.lastTriggerTime)}},[a,l,s,c,h,i,n,o]}class Yo extends xe{constructor(e){super(),Ce(this,e,Zo,Ho,he,{start:5,reset:6,placeholder:0})}get start(){return this.$$.ctx[5]}get reset(){return this.$$.ctx[6]}}function Xo(t){let e,r;return e=new Io({props:{color:"yellow",$$slots:{default:[$o]},$$scope:{ctx:t}}}),{c(){ie(e.$$.fragment)},l(o){ne(e.$$.fragment,o)},m(o,i){ae(e,o,i),r=!0},p(o,i){const n={};i&1024&&(n.$$scope={dirty:i,ctx:o}),e.$set(n)},i(o){r||(y(e.$$.fragment,o),r=!0)},o(o){x(e.$$.fragment,o),r=!1},d(o){le(e,o)}}}function Ko(t){let e,r,o,i,n={placeholder:t[5][t[1]]};return e=new Yo({props:n}),t[7](e),o=new ot({props:{disabled:t[1]=="wait"||t[1]=="ready",$$slots:{default:[oi]},$$scope:{ctx:t}}}),o.$on("click",t[8]),{c(){ie(e.$$.fragment),r=Be(),ie(o.$$.fragment)},l(a){ne(e.$$.fragment,a),r=Ue(a),ne(o.$$.fragment,a)},m(a,l){ae(e,a,l),A(a,r,l),ae(o,a,l),i=!0},p(a,l){const s={};l&2&&(s.placeholder=a[5][a[1]]),e.$set(s);const c={};l&2&&(c.disabled=a[1]=="wait"||a[1]=="ready"),l&1026&&(c.$$scope={dirty:l,ctx:a}),o.$set(c)},i(a){i||(y(e.$$.fragment,a),y(o.$$.fragment,a),i=!0)},o(a){x(e.$$.fragment,a),x(o.$$.fragment,a),i=!1},d(a){a&&_(r),t[7](null),le(e,a),le(o,a)}}}function Jo(t){let e,r,o,i,n,a,l,s,c,u,h;o=new wr({props:{class:"font-bold",href:"https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API#browser_compatibility",$$slots:{default:[ii]},$$scope:{ctx:t}}});const d=[ai,ni],f=[];function g(b,m){return b[3].getOS().name==="iOS"?0:1}return s=g(t),c=f[s]=d[s](t),{c(){e=D("span"),r=q("Your Browser is not compatible with this website, as it does not support "),ie(o.$$.fragment),i=q("."),n=Be(),a=D("span"),l=q(`Please use a browser which supports web bluetooth, for example `),c.c(),u=q("."),this.h()},l(b){e=G(b,"SPAN",{class:!0});var m=F(e);r=W(m,"Your Browser is not compatible with this website, as it does not support "),ne(o.$$.fragment,m),i=W(m,"."),m.forEach(_),n=Ue(b),a=G(b,"SPAN",{class:!0});var z=F(a);l=W(z,`Please use a browser which supports web bluetooth, for example `),c.l(z),u=W(z,"."),z.forEach(_),this.h()},h(){j(e,"class","text-xl text-white rounded-md font-bold border-primary-600 border-4 border-r-4 p-3"),j(a,"class","text-xl mt-3")},m(b,m){A(b,e,m),K(e,r),ae(o,e,null),K(e,i),A(b,n,m),A(b,a,m),K(a,l),f[s].m(a,null),K(a,u),h=!0},p(b,m){const z={};m&1024&&(z.$$scope={dirty:m,ctx:b}),o.$set(z)},i(b){h||(y(o.$$.fragment,b),y(c),h=!0)},o(b){x(o.$$.fragment,b),x(c),h=!1},d(b){b&&(_(e),_(n),_(a)),le(o),f[s].d()}}}function Qo(t){let e,r;return e=new ot({props:{$$slots:{default:[ci]},$$scope:{ctx:t}}}),e.$on("click",t[6]),{c(){ie(e.$$.fragment)},l(o){ne(e.$$.fragment,o)},m(o,i){ae(e,o,i),r=!0},p(o,i){const n={};i&1024&&(n.$$scope={dirty:i,ctx:o}),e.$set(n)},i(o){r||(y(e.$$.fragment,o),r=!0)},o(o){x(e.$$.fragment,o),r=!1},d(o){le(e,o)}}}function $o(t){let e;return{c(){e=q("Connecting...")},l(r){e=W(r,"Connecting...")},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function ei(t){let e;return{c(){e=q("Wait ...")},l(r){e=W(r,"Wait ...")},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function ri(t){let e;return{c(){e=q("Reset!")},l(r){e=W(r,"Reset!")},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function ti(t){let e;return{c(){e=q("Start!")},l(r){e=W(r,"Start!")},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function oi(t){let e;function r(n,a){return n[1]=="idle"?ti:n[1]=="running"?ri:ei}let o=r(t),i=o(t);return{c(){i.c(),e=H()},l(n){i.l(n),e=H()},m(n,a){i.m(n,a),A(n,e,a)},p(n,a){o!==(o=r(n))&&(i.d(1),i=o(n),i&&(i.c(),i.m(e.parentNode,e)))},d(n){n&&_(e),i.d(n)}}}function ii(t){let e;return{c(){e=q(`web bluetooth `)},l(r){e=W(r,`web bluetooth `)},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function ni(t){let e,r,o;return e=new wr({props:{href:"https://www.google.com/chrome/",$$slots:{default:[li]},$$scope:{ctx:t}}}),{c(){ie(e.$$.fragment),r=Be()},l(i){ne(e.$$.fragment,i),r=Ue(i)},m(i,n){ae(e,i,n),A(i,r,n),o=!0},i(i){o||(y(e.$$.fragment,i),o=!0)},o(i){x(e.$$.fragment,i),o=!1},d(i){i&&_(r),le(e,i)}}}function ai(t){let e,r,o;return e=new wr({props:{href:"https://apps.apple.com/us/app/bluefy-web-ble-browser/id1492822055",$$slots:{default:[si]},$$scope:{ctx:t}}}),{c(){ie(e.$$.fragment),r=Be()},l(i){ne(e.$$.fragment,i),r=Ue(i)},m(i,n){ae(e,i,n),A(i,r,n),o=!0},i(i){o||(y(e.$$.fragment,i),o=!0)},o(i){x(e.$$.fragment,i),o=!1},d(i){i&&_(r),le(e,i)}}}function li(t){let e;return{c(){e=q("Google Chrome")},l(r){e=W(r,"Google Chrome")},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function si(t){let e;return{c(){e=q("Bluefy")},l(r){e=W(r,"Bluefy")},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function ci(t){let e;return{c(){e=q("Connect")},l(r){e=W(r,"Connect")},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function di(t){let e,r,o,i;const n=[Qo,Jo,Ko,Xo],a=[];function l(s,c){return s[2]=="DISCONNECTED"?0:s[2]=="UNAVAILABLE"?1:s[2]=="CONNECTED"?2:3}return r=l(t),o=a[r]=n[r](t),{c(){e=D("div"),o.c(),this.h()},l(s){e=G(s,"DIV",{class:!0});var c=F(e);o.l(c),c.forEach(_),this.h()},h(){j(e,"class","p-8 flex flex-col")},m(s,c){A(s,e,c),a[r].m(e,null),i=!0},p(s,[c]){let u=r;r=l(s),r===u?a[r].p(s,c):(Me(),x(a[u],1,1,()=>{a[u]=null}),Ie(),o=a[r],o?o.p(s,c):(o=a[r]=n[r](s),o.c()),y(o,1),o.m(e,null))},i(s){i||(y(o),i=!0)},o(s){x(o),i=!1},d(s){s&&_(e),a[r].d()}}}function ui(t,e,r){let o;Yr(t,Re,f=>r(2,o=f));const i=new jo.UAParser;let n,a="idle";const l=f=>new Promise(g=>setTimeout(g,f)),s=async()=>{r(1,a="wait"),await l(3e3),r(1,a="ready");const f=new Audio("/sound/ok-ready-go.mp3"),g=new Promise(b=>{f.onended=()=>{b()}});await f.play(),await g,n.start(200n),r(1,a="running")},c={idle:"Press start!",wait:"At your marks!",ready:"Ready!",running:""},u=()=>{kt()};function h(f){Hr[f?"unshift":"push"](()=>{n=f,r(0,n)})}const d=()=>{a=="idle"?s():a=="running"&&(n.reset(),r(1,a="idle"))};return yt(),[n,a,o,i,s,c,u,h,d]}class pi extends xe{constructor(e){super(),Ce(this,e,ui,di,he,{})}}export{pi as component,mi as universal};