veilkit 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +119 -6
  3. package/assets/demo-button.gif +0 -0
  4. package/assets/demo-hero.gif +0 -0
  5. package/assets/demo-presets.gif +0 -0
  6. package/assets/demo-spinners.gif +0 -0
  7. package/dist/angular/index.cjs +5 -5
  8. package/dist/angular/index.cjs.map +1 -1
  9. package/dist/angular/index.d.cts +2 -2
  10. package/dist/angular/index.d.ts +2 -2
  11. package/dist/angular/index.js +5 -5
  12. package/dist/angular/index.js.map +1 -1
  13. package/dist/{controller-Ceub9kLC.d.ts → controller-Cmc3Hp1j.d.ts} +1 -1
  14. package/dist/{controller-B6kFsWzi.d.cts → controller-CzNTbEGd.d.cts} +1 -1
  15. package/dist/element/index.cjs +14 -14
  16. package/dist/element/index.cjs.map +1 -1
  17. package/dist/element/index.js +14 -14
  18. package/dist/element/index.js.map +1 -1
  19. package/dist/index.cjs +13 -5
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +27 -4
  22. package/dist/index.d.ts +27 -4
  23. package/dist/index.js +13 -5
  24. package/dist/index.js.map +1 -1
  25. package/dist/native/index.d.cts +1 -1
  26. package/dist/native/index.d.ts +1 -1
  27. package/dist/react/index.cjs +14 -14
  28. package/dist/react/index.cjs.map +1 -1
  29. package/dist/react/index.d.cts +14 -2
  30. package/dist/react/index.d.ts +14 -2
  31. package/dist/react/index.js +14 -14
  32. package/dist/react/index.js.map +1 -1
  33. package/dist/svelte/index.cjs +4 -4
  34. package/dist/svelte/index.cjs.map +1 -1
  35. package/dist/svelte/index.d.cts +1 -1
  36. package/dist/svelte/index.d.ts +1 -1
  37. package/dist/svelte/index.js +4 -4
  38. package/dist/svelte/index.js.map +1 -1
  39. package/dist/themes/index.d.cts +1 -1
  40. package/dist/themes/index.d.ts +1 -1
  41. package/dist/{types-CnR-rU97.d.cts → types-D2ryMkLU.d.cts} +25 -2
  42. package/dist/{types-CnR-rU97.d.ts → types-D2ryMkLU.d.ts} +25 -2
  43. package/dist/veilkit.min.js +13 -5
  44. package/dist/vue/index.cjs +3 -3
  45. package/dist/vue/index.cjs.map +1 -1
  46. package/dist/vue/index.d.cts +1 -1
  47. package/dist/vue/index.d.ts +1 -1
  48. package/dist/vue/index.js +3 -3
  49. package/dist/vue/index.js.map +1 -1
  50. package/package.json +2 -1
@@ -1,4 +1,4 @@
1
- import { L as LoadingButtonProps, O as OverlayProps, P as PresetProps, b as ProgressProps, S as SkeletonProps, c as SpinnerProps } from '../types-CnR-rU97.cjs';
1
+ import { L as LoadingButtonProps, O as OverlayProps, P as PresetProps, b as ProgressProps, S as SkeletonProps, c as SpinnerProps } from '../types-D2ryMkLU.cjs';
2
2
 
3
3
  /**
4
4
  * Veilkit - Svelte Action (`use:veil`)
@@ -1,4 +1,4 @@
1
- import { L as LoadingButtonProps, O as OverlayProps, P as PresetProps, b as ProgressProps, S as SkeletonProps, c as SpinnerProps } from '../types-CnR-rU97.js';
1
+ import { L as LoadingButtonProps, O as OverlayProps, P as PresetProps, b as ProgressProps, S as SkeletonProps, c as SpinnerProps } from '../types-D2ryMkLU.js';
2
2
 
3
3
  /**
4
4
  * Veilkit - Svelte Action (`use:veil`)
@@ -33,7 +33,7 @@ var k={light:{base:"#e5e7eb",highlight:"rgba(255, 255, 255, 0.7)",radius:"6px",d
33
33
  }
34
34
 
35
35
  /* === THEME ATTRIBUTE CLASSES === */
36
- ${Object.entries(k).map(([d,l])=>`[data-veil-theme="${d}"]{--veil-base:${l.base};--veil-highlight:${l.highlight};--veil-radius:${l.radius};--veil-duration:${l.duration};--veil-easing:${l.easing};${l.border?`--veil-border:${l.border};`:""}${l.blur?`--veil-blur:${l.blur};`:""}${l.glow?`--veil-glow:${l.glow};`:""}--veil-contrast:${l.contrast};}`).join("")}
36
+ ${Object.entries(k).map(([p,l])=>`[data-veil-theme="${p}"]{--veil-base:${l.base};--veil-highlight:${l.highlight};--veil-radius:${l.radius};--veil-duration:${l.duration};--veil-easing:${l.easing};${l.border?`--veil-border:${l.border};`:""}${l.blur?`--veil-blur:${l.blur};`:""}${l.glow?`--veil-glow:${l.glow};`:""}--veil-contrast:${l.contrast};}`).join("")}
37
37
 
38
38
  /* === BASE SKELETON ELEMENT === */
39
39
  .veil-skeleton {
@@ -508,7 +508,7 @@ ${Object.entries(k).map(([d,l])=>`[data-veil-theme="${d}"]{--veil-base:${l.base}
508
508
  }
509
509
 
510
510
  ${D()}
511
- `}function g(n){if(P||typeof document>"u")return;P=true;let e=U();if(typeof document.adoptedStyleSheets<"u"&&typeof CSSStyleSheet<"u"&&"replaceSync"in CSSStyleSheet.prototype&&true)try{let r=new CSSStyleSheet;r.replaceSync(e),document.adoptedStyleSheets=[...document.adoptedStyleSheets,r];return}catch{}let l=document.createElement("style");l.id="veilkit-styles",l.textContent=e,document.head.appendChild(l);}var E=0;function J(){return E===0&&typeof performance<"u"&&(E=performance.now()),E}function L(n=1500){if(typeof performance>"u")return "0ms";let e=performance.now()-J();return `-${Math.round(e%n)}ms`}function N(n=1500){if(typeof n=="number")return n;if(!n)return 1500;let e=n.trim().toLowerCase();return e.endsWith("ms")?parseFloat(e)||1500:e.endsWith("s")?(parseFloat(e)||1.5)*1e3:parseFloat(e)||1500}var b=null,I=new Set,z=false;function Z(n){for(let e of n){let d=e.target;e.isIntersecting?(d.removeAttribute("data-veil-offscreen"),d.style.removeProperty("--veil-play-state")):(d.setAttribute("data-veil-offscreen","true"),d.style.setProperty("--veil-play-state","paused"));}}function Q(){z||typeof document>"u"||(z=true,document.addEventListener("visibilitychange",()=>{document.hidden?document.documentElement.setAttribute("data-veil-tab-hidden","true"):document.documentElement.removeAttribute("data-veil-tab-hidden");}));}function O(n){return typeof window>"u"||typeof IntersectionObserver>"u"?()=>{}:(Q(),b||(b=new IntersectionObserver(Z,{rootMargin:"100px 0px",threshold:0})),b.observe(n),I.add(n),()=>{b&&n&&(b.unobserve(n),I.delete(n));})}function c(n={}){g();let e=document.createElement("div");e.className=`veil-skeleton ${n.className||""}`.trim(),e.setAttribute("aria-hidden","true");let d=n.type||"rect";if(e.setAttribute("data-veil-shape",d),n.animation&&e.setAttribute("data-veil-anim",n.animation),n.direction&&e.setAttribute("data-veil-dir",n.direction),typeof n.theme=="string"&&e.setAttribute("data-veil-theme",n.theme),n.width!==void 0&&(e.style.width=typeof n.width=="number"?`${n.width}px`:n.width),n.height!==void 0&&(e.style.height=typeof n.height=="number"?`${n.height}px`:n.height),n.radius!==void 0&&(e.style.setProperty("--veil-radius",typeof n.radius=="number"?`${n.radius}px`:n.radius),e.style.borderRadius=typeof n.radius=="number"?`${n.radius}px`:n.radius),n.speed!==void 0){let l=N(n.speed);e.style.setProperty("--veil-duration",`${l}ms`),e.style.setProperty("--veil-sync-delay",L(l));}else e.style.setProperty("--veil-sync-delay",L(1500));if(n.style)for(let[l,r]of Object.entries(n.style))e.style[l]=r;return O(e),e}function u(n=3,e={}){let d=document.createElement("div");d.className=`veil-lines-group ${e.className||""}`.trim(),d.setAttribute("aria-hidden","true");let l=e.gap!==void 0?typeof e.gap=="number"?`${e.gap}px`:e.gap:"0.45rem";d.style.display="flex",d.style.flexDirection="column",d.style.gap=l;let r=["100%","94%","88%","75%"],s=e.lastLineWidth!==void 0?typeof e.lastLineWidth=="number"?`${e.lastLineWidth}px`:e.lastLineWidth:"65%";for(let i=0;i<n;i++){let a=i===n-1?s:r[i%r.length]||"95%",o=c({...e,type:"line",width:a});o.style.setProperty("--veil-stagger-idx",String(i)),d.appendChild(o);}return d}function B(n,e={}){let d=e.transition||"fade";if(d==="none"){e.onComplete&&e.onComplete();return}if(n.classList.add("veil-revealing"),d==="stagger-children"){let s=Array.from(n.children);s.forEach((t,a)=>{t.classList.add("veil-reveal-fade"),t.style.animationDelay=`${a*60}ms`,e.duration&&(t.style.animationDuration=`${e.duration}ms`);});let i=(e.duration||350)+s.length*60;setTimeout(()=>{n.classList.remove("veil-revealing"),s.forEach(t=>{t.classList.remove("veil-reveal-fade"),t.style.removeProperty("animation-delay"),t.style.removeProperty("animation-duration");}),e.onComplete&&e.onComplete();},i);return}let l=`veil-reveal-${d}`;n.classList.add(l),e.duration&&(n.style.animationDuration=`${e.duration}ms`),e.easing&&(n.style.animationTimingFunction=e.easing);let r=()=>{n.removeEventListener("animationend",r),n.classList.remove("veil-revealing",l),n.style.removeProperty("animation-duration"),n.style.removeProperty("animation-timing-function"),e.onComplete&&e.onComplete();};n.addEventListener("animationend",r);}var C=new Map;function ee(n){if(C.has(n))return C.get(n);if(typeof window<"u"&&window.localStorage)try{let e=localStorage.getItem(`veil_cache_${n}`);if(e){let d=JSON.parse(e);return C.set(n,d),d}}catch{}return null}function te(n,e,d=false){if(C.set(n,e),d&&typeof window<"u"&&window.localStorage)try{localStorage.setItem(`veil_cache_${n}`,JSON.stringify(e));}catch{}}function ie(n,e){let d=n.getBoundingClientRect(),l=[];function r(i){if(i.hasAttribute("data-veil-ignore")||e&&i.matches(e))return false;let t=window.getComputedStyle(i);if(t.display==="none"||t.visibility==="hidden"||t.opacity==="0")return false;let a=i.tagName.toLowerCase();return ["img","svg","button","input","textarea","select"].includes(a)||i.hasAttribute("data-veil-shape")?true:Array.from(i.childNodes).some(p=>p.nodeType===Node.TEXT_NODE&&(p.textContent||"").trim().length>0)&&i.children.length===0}function s(i){if(i!==n&&r(i)){let a=i.getBoundingClientRect();if(a.width>2&&a.height>2){let p=window.getComputedStyle(i).borderRadius||"6px",y=i.getAttribute("data-veil-shape"),m="rect";y==="circle"||p==="50%"||p.includes("px")&&parseFloat(p)>=a.width/2?m="circle":(y==="line"||["p","span","h1","h2","h3","h4","h5","h6","a","label"].includes(i.tagName.toLowerCase()))&&(m="line"),l.push({x:Math.round(a.left-d.left),y:Math.round(a.top-d.top),width:Math.round(a.width),height:Math.round(a.height),radius:p,shape:m});}return}let t=Array.from(i.children);for(let a of t)a.hasAttribute("data-veil-ignore")||s(a);}return s(n),{width:Math.round(d.width),height:Math.round(d.height),boxes:l}}function H(n,e={},d={}){let l=document.createElement("div");if(l.className="veil-auto-overlay",l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.top="0",l.style.left="0",l.style.width="100%",l.style.height="100%",l.style.pointerEvents="none",l.style.zIndex="5",!e.preserveBackground){let o=window.getComputedStyle(n);l.style.backgroundColor=o.backgroundColor!=="rgba(0, 0, 0, 0)"?o.backgroundColor:"transparent";}function r(o){l.innerHTML="";for(let p=0;p<o.boxes.length;p++){let y=o.boxes[p],m=c({...d,type:y.shape,radius:y.radius});m.style.position="absolute",m.style.left=`${y.x}px`,m.style.top=`${y.y}px`,m.style.width=`${y.width}px`,m.style.height=`${y.height}px`,m.style.setProperty("--veil-stagger-idx",String(p)),l.appendChild(m);}}function s(){let o=ie(n,e.ignoreSelector);o.boxes.length>0&&(r(o),e.cacheKey&&te(e.cacheKey,o,e.persistCache));}if(e.cacheKey){let o=ee(e.cacheKey);o&&r(o);}window.getComputedStyle(n).position==="static"&&(n.style.position="relative"),n.appendChild(l),l.children.length===0&&s();let t=null,a=null;return e.observeResize!==false&&typeof ResizeObserver<"u"&&(t=new ResizeObserver(()=>s()),t.observe(n)),e.observeMutations!==false&&typeof MutationObserver<"u"&&(a=new MutationObserver(()=>s()),a.observe(n,{childList:true,subtree:true,attributes:false})),{overlay:l,refresh:s,destroy:()=>{t&&t.disconnect(),a&&a.disconnect(),e.reveal&&e.reveal!=="none"?B(n,{transition:e.reveal,duration:e.revealDuration,easing:e.revealEasing,onComplete:()=>l.remove()}):l.remove();}}}function ae(n,e={loading:false}){g();let d=null;function l(r){r.loading&&!d?(d=H(n,{cacheKey:r.cacheKey,persistCache:r.persistCache,reveal:r.reveal}),n.setAttribute("aria-busy","true")):!r.loading&&d&&(d.destroy(),d=null,n.removeAttribute("aria-busy"));}return l(e),{update(r){l(r);},destroy(){d&&(d.destroy(),d=null);}}}var S=class{el=null;innerEl=null;currentProgress=0;trickleTimer=null;status="idle";ensureDOM(){this.el||typeof document>"u"||(g(),this.el=document.createElement("div"),this.el.className="veil-progress-bar",this.el.setAttribute("role","progressbar"),this.el.setAttribute("aria-valuemin","0"),this.el.setAttribute("aria-valuemax","100"),this.el.setAttribute("aria-valuenow","0"),this.innerEl=document.createElement("div"),this.innerEl.className="veil-progress-inner",this.innerEl.style.width="0%",this.innerEl.style.opacity="1",this.el.appendChild(this.innerEl),document.body.appendChild(this.el));}start(){this.ensureDOM(),this.status!=="loading"&&(this.status="loading",this.currentProgress=0,this.set(.08),this.innerEl&&(this.innerEl.style.opacity="1",this.innerEl.style.backgroundColor="var(--veil-progress-color, #3b82f6)"),this.trickle());}set(e){this.ensureDOM(),this.currentProgress=Math.min(1,Math.max(0,e));let d=Math.round(this.currentProgress*100);this.innerEl&&(this.innerEl.style.width=`${d}%`),this.el&&this.el.setAttribute("aria-valuenow",String(d));}inc(e){let d=this.currentProgress;d>=1||(typeof e!="number"&&(d>=0&&d<.2?e=.1:d>=.2&&d<.5?e=.04:d>=.5&&d<.8?e=.02:d>=.8&&d<.99?e=.005:e=0),this.set(d+e));}trickle(){this.stopTrickle(),this.trickleTimer=setInterval(()=>{this.currentProgress<.95&&this.inc();},250);}stopTrickle(){this.trickleTimer&&(clearInterval(this.trickleTimer),this.trickleTimer=null);}done(){this.status!=="idle"&&(this.stopTrickle(),this.set(1),this.status="idle",setTimeout(()=>{this.innerEl&&(this.innerEl.style.opacity="0"),setTimeout(()=>{this.el&&(this.el.remove(),this.el=null,this.innerEl=null),this.currentProgress=0;},350);},200));}fail(){this.stopTrickle(),this.status="error",this.innerEl&&(this.innerEl.style.backgroundColor="#ef4444"),this.set(1),setTimeout(()=>this.done(),500);}},T=new S;function Y(n={}){g();let e=!!n.circular,d=n.color||"var(--veil-progress-color, #3b82f6)",l=n.trackColor||"rgba(0, 0, 0, 0.08)";if(e){let t=n.size!==void 0?typeof n.size=="number"?`${n.size}px`:n.size:"48px",a=n.strokeWidth||4,o=document.createElement("div");o.className=`veil-progress-circular ${n.className||""}`.trim(),o.style.width=t,o.style.height=t,o.style.display="inline-flex",o.style.alignItems="center",o.style.justifyContent="center",o.style.position="relative";let p=document.createElementNS("http://www.w3.org/2000/svg","svg");p.setAttribute("viewBox","0 0 48 48"),p.style.width="100%",p.style.height="100%",p.style.transform="rotate(-90deg)";let y=document.createElementNS("http://www.w3.org/2000/svg","circle");y.setAttribute("cx","24"),y.setAttribute("cy","24"),y.setAttribute("r","20"),y.setAttribute("fill","none"),y.setAttribute("stroke",l),y.setAttribute("stroke-width",String(a));let m=document.createElementNS("http://www.w3.org/2000/svg","circle");m.setAttribute("cx","24"),m.setAttribute("cy","24"),m.setAttribute("r","20"),m.setAttribute("fill","none"),m.setAttribute("stroke",d),m.setAttribute("stroke-width",String(a)),m.setAttribute("stroke-linecap","round");let v=2*Math.PI*20;if(m.setAttribute("stroke-dasharray",String(v)),n.value!==void 0){let h=Math.min(100,Math.max(0,n.value)),_=v-h/100*v;m.setAttribute("stroke-dashoffset",String(_)),m.style.transition="stroke-dashoffset 300ms ease";}else m.setAttribute("stroke-dashoffset",String(v*.75)),p.style.animation="veil-spin 1200ms linear infinite";if(p.append(y,m),o.appendChild(p),n.showPercentage&&n.value!==void 0){let h=document.createElement("span");h.style.position="absolute",h.style.fontSize="11px",h.style.fontWeight="600",h.textContent=`${Math.round(n.value)}%`,o.appendChild(h);}return o}let r=n.height!==void 0?typeof n.height=="number"?`${n.height}px`:n.height:"4px",s=document.createElement("div");s.className=`veil-progress-linear ${n.className||""}`.trim(),s.setAttribute("role","progressbar"),s.style.width="100%",s.style.height=r,s.style.backgroundColor=l,s.style.borderRadius="9999px",s.style.overflow="hidden",s.style.position="relative";let i=document.createElement("div");if(i.style.height="100%",i.style.backgroundColor=d,i.style.borderRadius="9999px",n.value!==void 0){let t=Math.min(100,Math.max(0,n.value));s.setAttribute("aria-valuenow",String(t)),i.style.width=`${t}%`,i.style.transition="width 250ms ease";}else i.style.width="35%",i.style.animation="veil-progress-indeterminate 1400ms ease-in-out infinite";return s.appendChild(i),s}function Me(n,e){typeof window>"u"||n&&e&&(n(()=>{T.start();}),e(()=>{T.done();}));}function A(n){let e=document.createElement("div");e.className=`veil-preset veil-preset-${n.name} ${n.className||""}`.trim(),e.setAttribute("aria-hidden","true"),e.style.width=n.width!==void 0?typeof n.width=="number"?`${n.width}px`:n.width:"100%",e.style.boxSizing="border-box";let d=n.shape||"rounded",l;d==="pill"?l="9999px":d==="square"?l="4px":d==="sharp"&&(l="0px"),d==="glass"&&(e.style.backdropFilter="blur(10px)",e.style.webkitBackdropFilter="blur(10px)",e.style.background="rgba(255, 255, 255, 0.08)",e.style.border="1px solid rgba(255, 255, 255, 0.18)",e.style.boxShadow="0 8px 32px rgba(0, 0, 0, 0.08)");let r={animation:n.animation,theme:n.theme,direction:n.direction,speed:n.speed,radius:l};switch(n.name){case "card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="16px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.08)";let s=c({...r,type:"rect",height:"180px",radius:l||"8px"}),i=c({...r,type:"heading",width:"70%",height:"24px"}),t=u(2,r),a=c({...r,type:"button",width:"110px",height:"36px"});e.append(s,i,t,a);break}case "product-card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="10px",e.style.padding="14px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"rect",height:"200px",radius:l||"10px"}),i=c({...r,type:"badge",width:"50px",height:"18px"}),t=c({...r,type:"line",width:"85%",height:"18px"}),a=c({...r,type:"line",width:"40%",height:"22px"}),o=c({...r,type:"button",width:"100%",height:"38px"});e.append(s,i,t,a,o);break}case "product-grid":{let s=n.items||4,i=n.columns||2;e.style.display="grid",e.style.gridTemplateColumns=`repeat(${i}, 1fr)`,e.style.gap="16px";for(let t=0;t<s;t++){let a=A({...n,name:"product-card",width:"100%"});e.appendChild(a);}break}case "list":{let s=n.items||4;e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px";for(let i=0;i<s;i++){let t=c({...r,type:"line",width:`${95-i%3*15}%`,height:"18px"});e.appendChild(t);}break}case "list-item":{e.style.display="flex",e.style.alignItems="center",e.style.gap="14px",e.style.padding="10px 0";let s=c({...r,type:"circle",width:"44px",height:"44px"}),i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.gap="6px",i.style.flex="1";let t=c({...r,type:"line",width:"60%",height:"16px"}),a=c({...r,type:"line",width:"40%",height:"12px"});i.append(t,a),e.append(s,i);break}case "table":{let s=n.items||5;e.style.display="flex",e.style.flexDirection="column",e.style.gap="8px",e.style.padding="12px",e.style.borderRadius=l||"8px",e.style.border="1px solid rgba(0,0,0,0.06)";let i=document.createElement("div");i.style.display="grid",i.style.gridTemplateColumns="2fr 1fr 1fr 1fr",i.style.gap="12px",i.style.paddingBottom="8px",i.style.borderBottom="2px solid rgba(0,0,0,0.08)";for(let t=0;t<4;t++)i.appendChild(c({...r,type:"line",height:"16px"}));e.appendChild(i);for(let t=0;t<s;t++){let a=document.createElement("div");a.style.display="grid",a.style.gridTemplateColumns="2fr 1fr 1fr 1fr",a.style.gap="12px",a.style.padding="8px 0",a.style.borderBottom="1px solid rgba(0,0,0,0.04)";for(let o=0;o<4;o++)a.appendChild(c({...r,type:"line",height:"14px"}));e.appendChild(a);}break}case "profile":{e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.gap="14px",e.style.padding="24px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"circle",width:"88px",height:"88px"}),i=c({...r,type:"heading",width:"160px",height:"22px"}),t=u(2,r),a=document.createElement("div");a.style.display="flex",a.style.gap="10px",a.append(c({...r,type:"button",width:"100px",height:"34px"}),c({...r,type:"button",width:"100px",height:"34px"})),e.append(s,i,t,a);break}case "profile-header":{e.style.display="flex",e.style.flexDirection="column",e.style.borderRadius=l||"16px",e.style.overflow="hidden",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"rect",height:"140px",radius:"0"}),i=document.createElement("div");i.style.display="flex",i.style.alignItems="flex-end",i.style.gap="16px",i.style.padding="0 20px 20px 20px",i.style.marginTop="-40px";let t=c({...r,type:"circle",width:"80px",height:"80px"}),a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="6px",a.style.flex="1",a.append(c({...r,type:"heading",width:"140px",height:"20px"}),c({...r,type:"line",width:"200px",height:"14px"})),i.append(t,a),e.append(s,i);break}case "feed-post":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="16px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.08)";let s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.gap="10px",s.append(c({...r,type:"circle",width:"40px",height:"40px"}),c({...r,type:"line",width:"120px",height:"16px"}));let i=u(2,r),t=c({...r,type:"rect",height:"220px",radius:l||"8px"}),a=document.createElement("div");a.style.display="flex",a.style.gap="16px",a.append(c({...r,type:"button",width:"60px",height:"28px"}),c({...r,type:"button",width:"60px",height:"28px"})),e.append(s,i,t,a);break}case "article":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";let s=c({...r,type:"heading",width:"85%",height:"36px"}),i=document.createElement("div");i.style.display="flex",i.style.gap="12px",i.append(c({...r,type:"circle",width:"32px",height:"32px"}),c({...r,type:"line",width:"140px",height:"14px"}));let t=c({...r,type:"rect",height:"260px",radius:l||"10px"}),a=u(4,r),o=u(3,r);e.append(s,i,t,a,o);break}case "comment-thread":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";for(let s=0;s<3;s++){let i=document.createElement("div");i.style.display="flex",i.style.gap="12px",s===1&&(i.style.marginLeft="40px");let t=c({...r,type:"circle",width:"36px",height:"36px"}),a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="6px",a.style.flex="1",a.append(c({...r,type:"line",width:"120px",height:"14px"}),u(2,r)),i.append(t,a),e.appendChild(i);}break}case "chat":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px",e.style.padding="16px";let s=[{align:"flex-start",w:"65%"},{align:"flex-end",w:"50%"},{align:"flex-start",w:"80%"},{align:"flex-end",w:"40%"}];for(let i of s){let t=document.createElement("div");t.style.display="flex",t.style.justifyContent=i.align;let a=c({...r,type:"rect",width:i.w,height:"42px",radius:l||"18px"});t.appendChild(a),e.appendChild(t);}break}case "dashboard":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";let s=document.createElement("div");s.style.display="grid",s.style.gridTemplateColumns="repeat(3, 1fr)",s.style.gap="12px";for(let t=0;t<3;t++){let a=document.createElement("div");a.style.padding="16px",a.style.borderRadius=l||"10px",a.style.border="1px solid rgba(0,0,0,0.06)",a.style.display="flex",a.style.flexDirection="column",a.style.gap="8px",a.append(c({...r,type:"line",width:"60%",height:"14px"}),c({...r,type:"heading",width:"80%",height:"28px"})),s.appendChild(a);}let i=c({...r,type:"rect",height:"200px",radius:l||"10px"});e.append(s,i);break}case "form":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="20px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";for(let i=0;i<3;i++){let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="6px",t.append(c({...r,type:"line",width:"30%",height:"14px"}),c({...r,type:"input",width:"100%",height:"40px"})),e.appendChild(t);}let s=c({...r,type:"button",width:"140px",height:"40px"});e.appendChild(s);break}case "media-card":{e.style.display="flex",e.style.gap="16px",e.style.padding="12px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"rect",width:"140px",height:"90px",radius:l||"8px"}),i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.gap="8px",i.style.flex="1",i.append(c({...r,type:"heading",width:"80%",height:"18px"}),c({...r,type:"line",width:"60%",height:"14px"}),c({...r,type:"line",width:"40%",height:"12px"})),e.append(s,i);break}case "navbar":{e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="space-between",e.style.padding="12px 20px",e.style.borderBottom="1px solid rgba(0,0,0,0.08)";let s=c({...r,type:"heading",width:"110px",height:"24px"}),i=document.createElement("div");i.style.display="flex",i.style.gap="18px";for(let a=0;a<4;a++)i.appendChild(c({...r,type:"line",width:"60px",height:"14px"}));let t=c({...r,type:"button",width:"90px",height:"34px"});e.append(s,i,t);break}case "sidebar":{e.style.display="flex",e.style.flexDirection="column",e.style.justifyContent="space-between",e.style.padding="18px 14px",e.style.height="100%",e.style.minHeight="320px",e.style.borderRight="1px solid rgba(0,0,0,0.08)";let s=document.createElement("div");s.style.display="flex",s.style.flexDirection="column",s.style.gap="16px",s.appendChild(c({...r,type:"heading",width:"100px",height:"22px"}));for(let t=0;t<5;t++){let a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.gap="10px",a.append(c({...r,type:"icon",width:"20px",height:"20px"}),c({...r,type:"line",width:"90px",height:"14px"})),s.appendChild(a);}let i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.gap="10px",i.append(c({...r,type:"circle",width:"36px",height:"36px"}),c({...r,type:"line",width:"80px",height:"14px"})),e.append(s,i);break}case "settings-page":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="24px",e.style.padding="24px";let s=c({...r,type:"heading",width:"220px",height:"30px"});e.appendChild(s);for(let i=0;i<3;i++){let t=document.createElement("div");t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="space-between",t.style.padding="14px 0",t.style.borderBottom="1px solid rgba(0,0,0,0.06)";let a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="6px",a.append(c({...r,type:"line",width:"160px",height:"16px"}),c({...r,type:"line",width:"240px",height:"12px"}));let o=c({...r,type:"button",width:"50px",height:"28px",radius:"14px"});t.append(a,o),e.appendChild(t);}break}case "product-detail":{e.style.display="grid",e.style.gridTemplateColumns="1fr 1.2fr",e.style.gap="24px",e.style.padding="20px";let s=document.createElement("div");s.style.display="flex",s.style.flexDirection="column",s.style.gap="12px";let i=c({...r,type:"rect",height:"280px",radius:l||"12px"}),t=document.createElement("div");t.style.display="flex",t.style.gap="8px";for(let h=0;h<4;h++)t.appendChild(c({...r,type:"rect",width:"60px",height:"60px",radius:"6px"}));s.append(i,t);let a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="14px";let o=c({...r,type:"heading",width:"85%",height:"32px"}),p=c({...r,type:"badge",width:"120px",height:"20px"}),y=c({...r,type:"heading",width:"100px",height:"28px"}),m=u(3,r),v=c({...r,type:"button",width:"180px",height:"44px"});a.append(o,p,y,m,v),e.append(s,a);break}case "news-feed":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";for(let s=0;s<3;s++){let i=document.createElement("div");i.style.display="flex",i.style.gap="16px",i.style.paddingBottom="16px",i.style.borderBottom="1px solid rgba(0,0,0,0.06)";let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="8px",t.style.flex="1",t.append(c({...r,type:"badge",width:"80px",height:"16px"}),c({...r,type:"heading",width:"90%",height:"20px"}),u(2,r));let a=c({...r,type:"rect",width:"120px",height:"90px",radius:l||"8px"});i.append(t,a),e.appendChild(i);}break}case "inbox-list":{e.style.display="flex",e.style.flexDirection="column",e.style.border="1px solid rgba(0,0,0,0.06)",e.style.borderRadius=l||"8px";for(let s=0;s<4;s++){let i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.gap="14px",i.style.padding="12px 16px",i.style.borderBottom="1px solid rgba(0,0,0,0.04)";let t=c({...r,type:"icon",width:"18px",height:"18px"}),a=c({...r,type:"line",width:"120px",height:"14px"}),o=c({...r,type:"line",width:"280px",height:"14px"}),p=c({...r,type:"badge",width:"50px",height:"16px"});i.append(t,a,o,p),e.appendChild(i);}break}case "notification-list":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="10px";for(let s=0;s<3;s++){let i=document.createElement("div");i.style.display="flex",i.style.alignItems="flex-start",i.style.gap="12px",i.style.padding="12px",i.style.borderRadius=l||"8px",i.style.background="rgba(0,0,0,0.02)";let t=c({...r,type:"circle",width:"10px",height:"10px"});t.style.marginTop="6px";let a=c({...r,type:"circle",width:"38px",height:"38px"}),o=document.createElement("div");o.style.display="flex",o.style.flexDirection="column",o.style.gap="4px",o.style.flex="1",o.append(c({...r,type:"line",width:"75%",height:"14px"}),c({...r,type:"line",width:"40%",height:"12px"})),i.append(t,a,o),e.appendChild(i);}break}case "order-list":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px";for(let s=0;s<2;s++){let i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.gap="12px",i.style.padding="16px",i.style.borderRadius=l||"10px",i.style.border="1px solid rgba(0,0,0,0.08)";let t=document.createElement("div");t.style.display="flex",t.style.justifyContent="space-between",t.append(c({...r,type:"line",width:"140px",height:"16px"}),c({...r,type:"badge",width:"80px",height:"22px"}));let a=document.createElement("div");a.style.display="flex",a.style.gap="10px";for(let p=0;p<3;p++)a.appendChild(c({...r,type:"rect",width:"50px",height:"50px",radius:"6px"}));let o=document.createElement("div");o.style.display="flex",o.style.justifyContent="space-between",o.style.alignItems="center",o.append(c({...r,type:"heading",width:"90px",height:"20px"}),c({...r,type:"button",width:"110px",height:"32px"})),i.append(t,a,o),e.appendChild(i);}break}case "kpi-card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="18px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=document.createElement("div");s.style.display="flex",s.style.justifyContent="space-between",s.style.alignItems="center",s.append(c({...r,type:"line",width:"90px",height:"14px"}),c({...r,type:"icon",width:"20px",height:"20px"}));let i=c({...r,type:"heading",width:"140px",height:"36px"}),t=c({...r,type:"badge",width:"70px",height:"18px"});e.append(s,i,t);break}case "chart-bar":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="18px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"heading",width:"140px",height:"20px"}),i=document.createElement("div");i.style.display="flex",i.style.alignItems="flex-end",i.style.justifyContent="space-between",i.style.height="140px",i.style.padding="0 10px";let t=["40%","75%","55%","90%","65%","80%","50%"];for(let a of t){let o=c({...r,type:"rect",width:"22px",height:a,radius:"4px"});i.appendChild(o);}e.append(s,i);break}case "chart-line":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px",e.style.padding="18px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"heading",width:"150px",height:"20px"}),i=c({...r,type:"rect",height:"140px",radius:"8px"});e.append(s,i);break}case "chart-pie":{e.style.display="flex",e.style.alignItems="center",e.style.gap="20px",e.style.padding="20px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"circle",width:"120px",height:"120px"}),i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.gap="10px",i.style.flex="1";for(let t=0;t<3;t++){let a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.gap="8px",a.append(c({...r,type:"circle",width:"12px",height:"12px"}),c({...r,type:"line",width:"90px",height:"14px"})),i.appendChild(a);}e.append(s,i);break}case "search-results":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="18px";let s=c({...r,type:"input",height:"42px",radius:l||"24px"});e.appendChild(s);for(let i=0;i<3;i++){let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="6px",t.append(c({...r,type:"line",width:"160px",height:"12px"}),c({...r,type:"heading",width:"70%",height:"20px"}),u(2,r)),e.appendChild(t);}break}case "video-player":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px";let s=c({...r,type:"rect",height:"240px",radius:l||"12px"}),i=c({...r,type:"heading",width:"80%",height:"24px"}),t=document.createElement("div");t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="space-between";let a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.gap="10px",a.append(c({...r,type:"circle",width:"40px",height:"40px"}),c({...r,type:"line",width:"120px",height:"14px"}));let o=c({...r,type:"button",width:"100px",height:"36px"});t.append(a,o),e.append(s,i,t);break}case "music-player":{e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.gap="14px",e.style.padding="20px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"rect",width:"180px",height:"180px",radius:l||"12px"}),i=c({...r,type:"heading",width:"160px",height:"20px"}),t=c({...r,type:"line",width:"100px",height:"14px"}),a=c({...r,type:"line",width:"100%",height:"6px"}),o=document.createElement("div");o.style.display="flex",o.style.alignItems="center",o.style.gap="20px",o.append(c({...r,type:"icon",width:"24px",height:"24px"}),c({...r,type:"circle",width:"48px",height:"48px"}),c({...r,type:"icon",width:"24px",height:"24px"})),e.append(s,i,t,a,o);break}case "stories-row":{e.style.display="flex",e.style.gap="16px",e.style.overflowX="auto",e.style.padding="8px 0";for(let s=0;s<5;s++){let i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.alignItems="center",i.style.gap="6px",i.append(c({...r,type:"circle",width:"60px",height:"60px"}),c({...r,type:"line",width:"48px",height:"10px"})),e.appendChild(i);}break}case "reels":{e.style.display="flex",e.style.flexDirection="column",e.style.justifyContent="flex-end",e.style.height="340px",e.style.padding="20px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.1)",e.style.position="relative";let s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.gap="10px",s.append(c({...r,type:"circle",width:"36px",height:"36px"}),c({...r,type:"line",width:"100px",height:"14px"}));let i=u(2,r);e.append(s,i);break}case "tabs":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";let s=document.createElement("div");s.style.display="flex",s.style.gap="20px",s.style.borderBottom="2px solid rgba(0,0,0,0.06)",s.style.paddingBottom="8px";for(let t=0;t<4;t++)s.appendChild(c({...r,type:"line",width:"70px",height:"16px"}));let i=u(3,r);e.append(s,i);break}case "calendar":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="16px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=document.createElement("div");s.style.display="flex",s.style.justifyContent="space-between",s.append(c({...r,type:"heading",width:"120px",height:"20px"}),c({...r,type:"line",width:"60px",height:"20px"}));let i=document.createElement("div");i.style.display="grid",i.style.gridTemplateColumns="repeat(7, 1fr)",i.style.gap="8px";for(let t=0;t<28;t++)i.appendChild(c({...r,type:"rect",height:"24px",radius:"4px"}));e.append(s,i);break}case "kanban":{e.style.display="grid",e.style.gridTemplateColumns="repeat(3, 1fr)",e.style.gap="14px";for(let s=0;s<3;s++){let i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.gap="10px",i.style.padding="12px",i.style.borderRadius=l||"10px",i.style.background="rgba(0,0,0,0.03)";let t=c({...r,type:"heading",width:"80px",height:"16px"});i.appendChild(t);for(let a=0;a<2;a++){let o=document.createElement("div");o.style.display="flex",o.style.flexDirection="column",o.style.gap="8px",o.style.padding="10px",o.style.borderRadius=l||"6px",o.style.background="#fff",o.style.border="1px solid rgba(0,0,0,0.06)",o.append(c({...r,type:"line",width:"85%",height:"14px"}),c({...r,type:"badge",width:"50px",height:"16px"})),i.appendChild(o);}e.appendChild(i);}break}case "timeline":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="18px",e.style.padding="10px 0";for(let s=0;s<3;s++){let i=document.createElement("div");i.style.display="flex",i.style.gap="14px";let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.alignItems="center",t.append(c({...r,type:"circle",width:"16px",height:"16px"}),c({...r,type:"rect",width:"2px",height:"40px"}));let a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="4px",a.style.flex="1",a.append(c({...r,type:"line",width:"90px",height:"12px"}),c({...r,type:"heading",width:"60%",height:"18px"}),c({...r,type:"line",width:"85%",height:"14px"})),i.append(t,a),e.appendChild(i);}break}case "map-card":{e.style.display="flex",e.style.flexDirection="column",e.style.borderRadius=l||"14px",e.style.overflow="hidden",e.style.border="1px solid rgba(0,0,0,0.08)";let s=c({...r,type:"rect",height:"160px",radius:"0"}),i=document.createElement("div");i.style.display="flex",i.style.justifyContent="space-between",i.style.alignItems="center",i.style.padding="14px";let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="6px",t.append(c({...r,type:"heading",width:"140px",height:"18px"}),c({...r,type:"line",width:"200px",height:"12px"}));let a=c({...r,type:"button",width:"90px",height:"34px"});i.append(t,a),e.append(s,i);break}case "pricing-card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="24px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.08)";let s=c({...r,type:"badge",width:"70px",height:"22px"}),i=c({...r,type:"heading",width:"130px",height:"38px"}),t=c({...r,type:"line",width:"80%",height:"14px"}),a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="10px";for(let p=0;p<4;p++){let y=document.createElement("div");y.style.display="flex",y.style.alignItems="center",y.style.gap="8px",y.append(c({...r,type:"icon",width:"16px",height:"16px"}),c({...r,type:"line",width:"70%",height:"14px"})),a.appendChild(y);}let o=c({...r,type:"button",width:"100%",height:"42px"});e.append(s,i,t,a,o);break}case "testimonial":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="20px",e.style.borderRadius=l||"14px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=u(3,r),i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.gap="12px",i.append(c({...r,type:"circle",width:"42px",height:"42px"}),c({...r,type:"line",width:"120px",height:"16px"})),e.append(s,i);break}case "faq-accordion":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px";for(let s=0;s<3;s++){let i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.gap="8px",i.style.padding="14px 16px",i.style.borderRadius=l||"8px",i.style.border="1px solid rgba(0,0,0,0.06)";let t=document.createElement("div");if(t.style.display="flex",t.style.justifyContent="space-between",t.style.alignItems="center",t.append(c({...r,type:"line",width:"75%",height:"16px"}),c({...r,type:"icon",width:"16px",height:"16px"})),i.appendChild(t),s===0){let a=u(2,r);i.appendChild(a);}e.appendChild(i);}break}case "file-explorer":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="10px",e.style.padding="12px";for(let s=0;s<5;s++){let i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.gap="10px",i.style.marginLeft=`${s%3*16}px`,i.append(c({...r,type:"icon",width:"16px",height:"16px"}),c({...r,type:"line",width:`${100+s*20}px`,height:"14px"})),e.appendChild(i);}break}case "code-block":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="8px",e.style.padding="16px",e.style.borderRadius=l||"8px",e.style.background="rgba(0,0,0,0.05)";let s=["40%","70%","55%","85%","30%","60%"];for(let i of s)e.appendChild(c({...r,type:"line",width:i,height:"12px"}));break}}return e}function f(n={}){g();let e=n.type||"ring",d=n.size!==void 0?typeof n.size=="number"?`${n.size}px`:n.size:"28px",l=n.color||"var(--veil-progress-color, #3b82f6)",r=n.secondaryColor||"rgba(0, 0, 0, 0.12)",s=n.speed!==void 0?typeof n.speed=="number"?`${n.speed}ms`:n.speed:void 0,i=document.createElement("div");switch(i.className=`veil-spinner veil-spinner-${e} ${n.glass?"veil-spinner-glass":""} ${n.className||""}`.trim(),i.setAttribute("role","status"),i.setAttribute("aria-label",n.label||"Loading"),i.style.width=d,i.style.height=d,i.style.display="inline-flex",i.style.alignItems="center",i.style.justifyContent="center",i.style.position="relative",n.glass&&(i.style.borderRadius="50%",i.style.backdropFilter="blur(8px)",i.style.webkitBackdropFilter="blur(8px)",i.style.background="rgba(255, 255, 255, 0.12)",i.style.boxShadow="0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.4)",i.style.border="1px solid rgba(255, 255, 255, 0.25)"),e){case "ring":{let t=document.createElement("div");t.style.width="100%",t.style.height="100%",t.style.borderRadius="50%",t.style.border=`3px solid ${r}`,t.style.borderTopColor=l,t.style.animation=`veil-spin ${s||"800ms"} linear infinite`,t.style.boxSizing="border-box",i.appendChild(t);break}case "dual-ring":{let t=document.createElement("div");t.style.width="100%",t.style.height="100%",t.style.borderRadius="50%",t.style.border="3px solid transparent",t.style.borderTopColor=l,t.style.borderBottomColor=l,t.style.animation=`veil-spin ${s||"900ms"} cubic-bezier(0.5, 0, 0.5, 1) infinite`,t.style.boxSizing="border-box",i.appendChild(t);break}case "dots":{i.style.gap="4px";for(let t=0;t<3;t++){let a=document.createElement("div");a.style.width="28%",a.style.height="28%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.animation=`veil-dot-bounce ${s||"1200ms"} ease-in-out infinite`,a.style.animationDelay=`${t*160}ms`,i.appendChild(a);}break}case "bars":{i.style.gap="3px";for(let t=0;t<4;t++){let a=document.createElement("div");a.style.width="18%",a.style.height="100%",a.style.borderRadius="2px",a.style.backgroundColor=l,a.style.animation=`veil-bar-wave ${s||"1000ms"} ease-in-out infinite`,a.style.animationDelay=`${t*140}ms`,i.appendChild(a);}break}case "pulse":{let t=document.createElement("div");t.style.width="100%",t.style.height="100%",t.style.borderRadius="50%",t.style.backgroundColor=l,t.style.animation=`veil-pulse-scale ${s||"1200ms"} ease-out infinite`,i.appendChild(t);break}case "orbit":{let t=document.createElement("div");t.style.width="30%",t.style.height="30%",t.style.borderRadius="50%",t.style.backgroundColor=l,t.style.position="absolute";let a=document.createElement("div");a.style.width="100%",a.style.height="100%",a.style.position="absolute",a.style.animation=`veil-spin ${s||"1200ms"} linear infinite`;let o=document.createElement("div");o.style.width="24%",o.style.height="24%",o.style.borderRadius="50%",o.style.backgroundColor=l,o.style.position="absolute",o.style.top="0",o.style.left="38%",a.appendChild(o),i.append(t,a);break}case "wave":{i.style.gap="4px";for(let t=0;t<5;t++){let a=document.createElement("div");a.style.width="12%",a.style.height="80%",a.style.borderRadius="3px",a.style.backgroundColor=l,a.style.animation=`veil-wave-dance ${s||"1100ms"} ease-in-out infinite`,a.style.animationDelay=`${t*110}ms`,i.appendChild(a);}break}case "bounce":{let t=document.createElement("div");t.style.width="60%",t.style.height="60%",t.style.borderRadius="50%",t.style.backgroundColor=l,t.style.animation=`veil-bounce-ball ${s||"900ms"} cubic-bezier(0.28, 0.84, 0.42, 1) infinite`,i.appendChild(t);break}case "ios-activity":{for(let t=0;t<12;t++){let a=document.createElement("div");a.style.position="absolute",a.style.width="8%",a.style.height="26%",a.style.backgroundColor=l,a.style.borderRadius="2px",a.style.transformOrigin="50% 190%",a.style.transform=`rotate(${t*30}deg) translateY(-90%)`,a.style.animation=`veil-ios-fade ${s||"1000ms"} linear infinite`,a.style.animationDelay=`-${(12-t)*(1e3/12)}ms`,i.appendChild(a);}break}case "glass-orb":{let t=document.createElement("div");t.style.width="100%",t.style.height="100%",t.style.borderRadius="50%",t.style.background=`radial-gradient(circle at 35% 35%, rgba(255,255,255,0.8), ${l} 70%)`,t.style.boxShadow=`0 4px 12px ${l}44, inset 0 2px 4px rgba(255,255,255,0.6)`,t.style.animation=`veil-glass-orbit ${s||"1600ms"} ease-in-out infinite`,i.appendChild(t);break}case "morph":{let t=document.createElement("div");t.style.width="80%",t.style.height="80%",t.style.backgroundColor=l,t.style.animation=`veil-morph-shape ${s||"2000ms"} ease-in-out infinite`,i.appendChild(t);break}case "progress-circle":{let t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("viewBox","0 0 36 36"),t.style.width="100%",t.style.height="100%",t.style.transform="rotate(-90deg)";let a=document.createElementNS("http://www.w3.org/2000/svg","circle");a.setAttribute("cx","18"),a.setAttribute("cy","18"),a.setAttribute("r","14"),a.setAttribute("fill","none"),a.setAttribute("stroke",r),a.setAttribute("stroke-width","3");let o=document.createElementNS("http://www.w3.org/2000/svg","circle");o.setAttribute("cx","18"),o.setAttribute("cy","18"),o.setAttribute("r","14"),o.setAttribute("fill","none"),o.setAttribute("stroke",l),o.setAttribute("stroke-width","3"),o.setAttribute("stroke-dasharray","88"),o.setAttribute("stroke-dashoffset","25"),o.setAttribute("stroke-linecap","round"),o.style.animation=`veil-spin ${s||"1200ms"} linear infinite`,o.style.transformOrigin="50% 50%",t.append(a,o),i.appendChild(t);break}case "arc-gradient":{let t=document.createElement("div");t.style.width="100%",t.style.height="100%",t.style.borderRadius="50%",t.style.background=`conic-gradient(from 0deg, transparent 20%, ${l} 100%)`,t.style.mask="radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 2.5px))",t.style.webkitMask="radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 2.5px))",t.style.animation=`veil-spin ${s||"750ms"} linear infinite`,i.appendChild(t);break}case "pulse-ring":{for(let t=0;t<2;t++){let a=document.createElement("div");a.style.position="absolute",a.style.inset="0",a.style.borderRadius="50%",a.style.border=`2px solid ${l}`,a.style.animation=`veil-pulse-ring ${s||"1400ms"} cubic-bezier(0, 0.2, 0.8, 1) infinite`,a.style.animationDelay=`${t*700}ms`,i.appendChild(a);}break}case "dots-circle":{for(let t=0;t<8;t++){let a=document.createElement("div");a.style.position="absolute",a.style.width="20%",a.style.height="20%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.transformOrigin="50% 250%",a.style.transform=`rotate(${t*45}deg) translateY(-150%)`,a.style.animation=`veil-fade-seq ${s||"1000ms"} linear infinite`,a.style.animationDelay=`-${(8-t)*(1e3/8)}ms`,i.appendChild(a);}break}case "grid-dots":{i.style.display="grid",i.style.gridTemplateColumns="repeat(3, 1fr)",i.style.gap="3px";for(let t=0;t<3;t++)for(let a=0;a<3;a++){let o=document.createElement("div");o.style.width="100%",o.style.aspectRatio="1 / 1",o.style.borderRadius="50%",o.style.backgroundColor=l,o.style.animation=`veil-dot-bounce ${s||"1200ms"} ease-in-out infinite`,o.style.animationDelay=`${(t+a)*110}ms`,i.appendChild(o);}break}case "square-flip":{let t=document.createElement("div");t.style.width="60%",t.style.height="60%",t.style.backgroundColor=l,t.style.borderRadius="4px",t.style.animation=`veil-square-flip ${s||"1200ms"} ease-in-out infinite`,i.appendChild(t);break}case "cube-fold":{i.style.display="grid",i.style.gridTemplateColumns="repeat(2, 1fr)",i.style.gap="2px";for(let t=0;t<4;t++){let a=document.createElement("div");a.style.width="100%",a.style.aspectRatio="1 / 1",a.style.backgroundColor=l,a.style.borderRadius="2px",a.style.animation=`veil-cube-fold ${s||"1400ms"} ease-in-out infinite`,a.style.animationDelay=`${t*175}ms`,i.appendChild(a);}break}case "hourglass":{let t=document.createElement("div");t.style.width="65%",t.style.height="65%",t.style.border=`3px solid ${l}`,t.style.borderLeftColor="transparent",t.style.borderRightColor="transparent",t.style.borderRadius="50%",t.style.animation=`veil-hourglass ${s||"1200ms"} cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite`,i.appendChild(t);break}case "infinity":{let t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("viewBox","0 0 48 24"),t.style.width="100%",t.style.height="100%";let a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d","M12,12 C4,12 4,4 12,4 C20,4 28,20 36,20 C44,20 44,12 36,12 C28,12 20,4 12,4"),a.setAttribute("fill","none"),a.setAttribute("stroke",l),a.setAttribute("stroke-width","3"),a.setAttribute("stroke-dasharray","80"),a.setAttribute("stroke-dashoffset","0"),a.setAttribute("stroke-linecap","round"),a.style.animation=`veil-dash ${s||"1400ms"} linear infinite`,t.appendChild(a),i.appendChild(t);break}case "heartbeat-line":{let t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("viewBox","0 0 50 24"),t.style.width="100%",t.style.height="100%";let a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d","M0,12 L14,12 L18,3 L24,21 L28,9 L32,15 L36,12 L50,12"),a.setAttribute("fill","none"),a.setAttribute("stroke",l),a.setAttribute("stroke-width","2.5"),a.setAttribute("stroke-dasharray","60"),a.setAttribute("stroke-dashoffset","60"),a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-linejoin","round"),a.style.animation=`veil-ecg ${s||"1200ms"} ease-in-out infinite`,t.appendChild(a),i.appendChild(t);break}case "equalizer":{i.style.gap="3px";let t=[0,200,100,300];for(let a=0;a<4;a++){let o=document.createElement("div");o.style.width="18%",o.style.height="100%",o.style.borderRadius="2px",o.style.backgroundColor=l,o.style.animation=`veil-eq-bounce ${s||"800ms"} ease-in-out infinite alternate`,o.style.animationDelay=`${t[a]}ms`,i.appendChild(o);}break}case "chasing-dots":{let t=document.createElement("div");t.style.width="100%",t.style.height="100%",t.style.position="relative",t.style.animation=`veil-spin ${s||"1800ms"} linear infinite`;for(let a=0;a<2;a++){let o=document.createElement("div");o.style.position="absolute",o.style.width="45%",o.style.height="45%",o.style.borderRadius="50%",o.style.backgroundColor=l,o.style.animation=`veil-chase ${s||"1800ms"} ease-in-out infinite`,a===0?(o.style.top="0",o.style.left="0"):(o.style.bottom="0",o.style.right="0",o.style.animationDelay="-900ms"),t.appendChild(o);}i.appendChild(t);break}case "typing":{i.style.gap="4px";for(let t=0;t<3;t++){let a=document.createElement("div");a.style.width="24%",a.style.height="24%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.animation=`veil-typing ${s||"1000ms"} ease-in-out infinite`,a.style.animationDelay=`${t*150}ms`,i.appendChild(a);}break}case "liquid-fill":{let t=document.createElement("div");t.style.width="85%",t.style.height="85%",t.style.borderRadius="50%",t.style.border=`2px solid ${l}`,t.style.position="relative",t.style.overflow="hidden";let a=document.createElement("div");a.style.position="absolute",a.style.inset="0",a.style.backgroundColor=l,a.style.opacity="0.7",a.style.borderRadius="40%",a.style.animation=`veil-liquid-spin ${s||"2000ms"} linear infinite`,t.appendChild(a),i.appendChild(t);break}case "atom":{let t=document.createElement("div");t.style.width="24%",t.style.height="24%",t.style.borderRadius="50%",t.style.backgroundColor=l,t.style.position="absolute",i.appendChild(t);let a=[0,60,120];for(let o of a){let p=document.createElement("div");p.style.position="absolute",p.style.width="100%",p.style.height="45%",p.style.borderRadius="50%",p.style.border=`1.5px solid ${l}`,p.style.transform=`rotate(${o}deg)`,p.style.animation=`veil-atom-spin ${s||"1600ms"} linear infinite`,i.appendChild(p);}break}case "clock":{let t=document.createElement("div");t.style.width="100%",t.style.height="100%",t.style.borderRadius="50%",t.style.border=`2.5px solid ${l}`,t.style.position="relative";let a=document.createElement("div");a.style.width="14%",a.style.height="14%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.position="absolute",a.style.top="43%",a.style.left="43%";let o=document.createElement("div");o.style.position="absolute",o.style.width="2px",o.style.height="30%",o.style.backgroundColor=l,o.style.top="20%",o.style.left="calc(50% - 1px)",o.style.transformOrigin="bottom center",o.style.animation=`veil-spin ${s||"3000ms"} linear infinite`;let p=document.createElement("div");p.style.position="absolute",p.style.width="2px",p.style.height="42%",p.style.backgroundColor=l,p.style.top="8%",p.style.left="calc(50% - 1px)",p.style.transformOrigin="bottom center",p.style.animation=`veil-spin ${s||"1000ms"} linear infinite`,t.append(a,o,p),i.appendChild(t);break}case "radar":{let t=document.createElement("div");t.style.width="100%",t.style.height="100%",t.style.borderRadius="50%",t.style.border=`1.5px solid ${l}`,t.style.position="relative",t.style.overflow="hidden";let a=document.createElement("div");a.style.position="absolute",a.style.inset="0",a.style.borderRadius="50%",a.style.background=`conic-gradient(from 0deg, transparent 60%, ${l} 100%)`,a.style.opacity="0.6",a.style.animation=`veil-spin ${s||"1500ms"} linear infinite`,t.appendChild(a),i.appendChild(t);break}case "ellipsis":{i.style.gap="3px";for(let t=0;t<3;t++){let a=document.createElement("div");a.style.width="24%",a.style.height="24%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.animation=`veil-ellipsis ${s||"1200ms"} ease-in-out infinite`,a.style.animationDelay=`${t*200}ms`,i.appendChild(a);}break}case "flower":{for(let t=0;t<6;t++){let a=document.createElement("div");a.style.position="absolute",a.style.width="28%",a.style.height="48%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.opacity="0.85",a.style.transformOrigin="50% 100%",a.style.top="2%",a.style.transform=`rotate(${t*60}deg)`,a.style.animation=`veil-flower-bloom ${s||"1600ms"} ease-in-out infinite`,a.style.animationDelay=`${t*120}ms`,i.appendChild(a);}break}}return ne(),i}var j=false;function ne(){if(j||typeof document>"u")return;j=true;let n=document.createElement("style");n.id="veilkit-spinner-keyframes",n.textContent=`
511
+ `}function g(n){if(P||typeof document>"u")return;P=true;let e=U();if(typeof document.adoptedStyleSheets<"u"&&typeof CSSStyleSheet<"u"&&"replaceSync"in CSSStyleSheet.prototype&&true)try{let r=new CSSStyleSheet;r.replaceSync(e),document.adoptedStyleSheets=[...document.adoptedStyleSheets,r];return}catch{}let l=document.createElement("style");l.id="veilkit-styles",l.textContent=e,document.head.appendChild(l);}var E=0;function J(){return E===0&&typeof performance<"u"&&(E=performance.now()),E}function L(n=1500){if(typeof performance>"u")return "0ms";let e=performance.now()-J();return `-${Math.round(e%n)}ms`}function N(n=1500){if(typeof n=="number")return n;if(!n)return 1500;let e=n.trim().toLowerCase();return e.endsWith("ms")?parseFloat(e)||1500:e.endsWith("s")?(parseFloat(e)||1.5)*1e3:parseFloat(e)||1500}var v=null,I=new Set,z=false;function Z(n){for(let e of n){let p=e.target;e.isIntersecting?(p.removeAttribute("data-veil-offscreen"),p.style.removeProperty("--veil-play-state")):(p.setAttribute("data-veil-offscreen","true"),p.style.setProperty("--veil-play-state","paused"));}}function Q(){z||typeof document>"u"||(z=true,document.addEventListener("visibilitychange",()=>{document.hidden?document.documentElement.setAttribute("data-veil-tab-hidden","true"):document.documentElement.removeAttribute("data-veil-tab-hidden");}));}function O(n){return typeof window>"u"||typeof IntersectionObserver>"u"?()=>{}:(Q(),v||(v=new IntersectionObserver(Z,{rootMargin:"100px 0px",threshold:0})),v.observe(n),I.add(n),()=>{v&&n&&(v.unobserve(n),I.delete(n));})}function o(n={}){g();let e=document.createElement("div");e.className=`veil-skeleton ${n.className||""}`.trim(),e.setAttribute("aria-hidden","true");let p=n.type||"rect";if(e.setAttribute("data-veil-shape",p),n.animation&&e.setAttribute("data-veil-anim",n.animation),n.direction&&e.setAttribute("data-veil-dir",n.direction),typeof n.theme=="string"&&e.setAttribute("data-veil-theme",n.theme),n.width!==void 0&&(e.style.width=typeof n.width=="number"?`${n.width}px`:n.width),n.height!==void 0&&(e.style.height=typeof n.height=="number"?`${n.height}px`:n.height),n.radius!==void 0&&(e.style.setProperty("--veil-radius",typeof n.radius=="number"?`${n.radius}px`:n.radius),e.style.borderRadius=typeof n.radius=="number"?`${n.radius}px`:n.radius),n.speed!==void 0){let l=N(n.speed);e.style.setProperty("--veil-duration",`${l}ms`),e.style.setProperty("--veil-sync-delay",L(l));}else e.style.setProperty("--veil-sync-delay",L(1500));if(n.style)for(let[l,r]of Object.entries(n.style))e.style[l]=r;return O(e),e}function u(n=3,e={}){let p=document.createElement("div");p.className=`veil-lines-group ${e.className||""}`.trim(),p.setAttribute("aria-hidden","true");let l=e.gap!==void 0?typeof e.gap=="number"?`${e.gap}px`:e.gap:"0.45rem";p.style.display="flex",p.style.flexDirection="column",p.style.gap=l;let r=["100%","94%","88%","75%"],s=e.lastLineWidth!==void 0?typeof e.lastLineWidth=="number"?`${e.lastLineWidth}px`:e.lastLineWidth:"65%";for(let t=0;t<n;t++){let a=t===n-1?s:r[t%r.length]||"95%",d=o({...e,type:"line",width:a});d.style.setProperty("--veil-stagger-idx",String(t)),p.appendChild(d);}return p}function B(n,e={}){let p=e.transition||"fade";if(p==="none"){e.onComplete&&e.onComplete();return}if(n.classList.add("veil-revealing"),p==="stagger-children"){let s=Array.from(n.children);s.forEach((i,a)=>{i.classList.add("veil-reveal-fade"),i.style.animationDelay=`${a*60}ms`,e.duration&&(i.style.animationDuration=`${e.duration}ms`);});let t=(e.duration||350)+s.length*60;setTimeout(()=>{n.classList.remove("veil-revealing"),s.forEach(i=>{i.classList.remove("veil-reveal-fade"),i.style.removeProperty("animation-delay"),i.style.removeProperty("animation-duration");}),e.onComplete&&e.onComplete();},t);return}let l=`veil-reveal-${p}`;n.classList.add(l),e.duration&&(n.style.animationDuration=`${e.duration}ms`),e.easing&&(n.style.animationTimingFunction=e.easing);let r=()=>{n.removeEventListener("animationend",r),n.classList.remove("veil-revealing",l),n.style.removeProperty("animation-duration"),n.style.removeProperty("animation-timing-function"),e.onComplete&&e.onComplete();};n.addEventListener("animationend",r);}var C=new Map;function ee(n){if(C.has(n))return C.get(n);if(typeof window<"u"&&window.localStorage)try{let e=localStorage.getItem(`veil_cache_${n}`);if(e){let p=JSON.parse(e);return C.set(n,p),p}}catch{}return null}function te(n,e,p=false){if(C.set(n,e),p&&typeof window<"u"&&window.localStorage)try{localStorage.setItem(`veil_cache_${n}`,JSON.stringify(e));}catch{}}function ie(n,e){let p=n.getBoundingClientRect(),l=[];function r(t){if(t.hasAttribute("data-veil-ignore")||e&&t.matches(e))return false;let i=window.getComputedStyle(t);if(i.display==="none"||i.visibility==="hidden"||i.opacity==="0")return false;let a=t.tagName.toLowerCase();return ["img","svg","button","input","textarea","select"].includes(a)||t.hasAttribute("data-veil-shape")?true:Array.from(t.childNodes).some(c=>c.nodeType===Node.TEXT_NODE&&(c.textContent||"").trim().length>0)&&t.children.length===0}function s(t){if(t!==n&&r(t)){let a=t.getBoundingClientRect();if(a.width>2&&a.height>2){let c=window.getComputedStyle(t).borderRadius||"6px",y=t.getAttribute("data-veil-shape"),m="rect";y==="circle"||c==="50%"||c.includes("px")&&parseFloat(c)>=a.width/2?m="circle":(y==="line"||["p","span","h1","h2","h3","h4","h5","h6","a","label"].includes(t.tagName.toLowerCase()))&&(m="line"),l.push({x:Math.round(a.left-p.left),y:Math.round(a.top-p.top),width:Math.round(a.width),height:Math.round(a.height),radius:c,shape:m});}return}let i=Array.from(t.children);for(let a of i)a.hasAttribute("data-veil-ignore")||s(a);}return s(n),{width:Math.round(p.width),height:Math.round(p.height),boxes:l}}function H(n,e={},p={}){let l=document.createElement("div");if(l.className="veil-auto-overlay",l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.top="0",l.style.left="0",l.style.width="100%",l.style.height="100%",l.style.pointerEvents="none",l.style.zIndex="5",!e.preserveBackground){let d=window.getComputedStyle(n);l.style.backgroundColor=d.backgroundColor!=="rgba(0, 0, 0, 0)"?d.backgroundColor:"transparent";}function r(d){l.innerHTML="";for(let c=0;c<d.boxes.length;c++){let y=d.boxes[c],m=o({...p,type:y.shape,radius:y.radius});m.style.position="absolute",m.style.left=`${y.x}px`,m.style.top=`${y.y}px`,m.style.width=`${y.width}px`,m.style.height=`${y.height}px`,m.style.setProperty("--veil-stagger-idx",String(c)),l.appendChild(m);}}function s(){let d=ie(n,e.ignoreSelector);d.boxes.length>0&&(r(d),e.cacheKey&&te(e.cacheKey,d,e.persistCache));}if(e.cacheKey){let d=ee(e.cacheKey);d&&r(d);}window.getComputedStyle(n).position==="static"&&(n.style.position="relative"),n.appendChild(l),l.children.length===0&&s();let i=null,a=null;return e.observeResize!==false&&typeof ResizeObserver<"u"&&(i=new ResizeObserver(()=>s()),i.observe(n)),e.observeMutations!==false&&typeof MutationObserver<"u"&&(a=new MutationObserver(()=>s()),a.observe(n,{childList:true,subtree:true,attributes:false})),{overlay:l,refresh:s,destroy:()=>{i&&i.disconnect(),a&&a.disconnect(),e.reveal&&e.reveal!=="none"?B(n,{transition:e.reveal,duration:e.revealDuration,easing:e.revealEasing,onComplete:()=>l.remove()}):l.remove();}}}function ae(n,e={loading:false}){g();let p=null;function l(r){r.loading&&!p?(p=H(n,{cacheKey:r.cacheKey,persistCache:r.persistCache,reveal:r.reveal}),n.setAttribute("aria-busy","true")):!r.loading&&p&&(p.destroy(),p=null,n.removeAttribute("aria-busy"));}return l(e),{update(r){l(r);},destroy(){p&&(p.destroy(),p=null);}}}var T=class{el=null;innerEl=null;currentProgress=0;trickleTimer=null;status="idle";ensureDOM(){this.el||typeof document>"u"||(g(),this.el=document.createElement("div"),this.el.className="veil-progress-bar",this.el.setAttribute("role","progressbar"),this.el.setAttribute("aria-valuemin","0"),this.el.setAttribute("aria-valuemax","100"),this.el.setAttribute("aria-valuenow","0"),this.innerEl=document.createElement("div"),this.innerEl.className="veil-progress-inner",this.innerEl.style.width="0%",this.innerEl.style.opacity="1",this.el.appendChild(this.innerEl),document.body.appendChild(this.el));}start(){this.ensureDOM(),this.status!=="loading"&&(this.status="loading",this.currentProgress=0,this.set(.08),this.innerEl&&(this.innerEl.style.opacity="1",this.innerEl.style.backgroundColor="var(--veil-progress-color, #3b82f6)"),this.trickle());}set(e){this.ensureDOM(),this.currentProgress=Math.min(1,Math.max(0,e));let p=Math.round(this.currentProgress*100);this.innerEl&&(this.innerEl.style.width=`${p}%`),this.el&&this.el.setAttribute("aria-valuenow",String(p));}inc(e){let p=this.currentProgress;p>=1||(typeof e!="number"&&(p>=0&&p<.2?e=.1:p>=.2&&p<.5?e=.04:p>=.5&&p<.8?e=.02:p>=.8&&p<.99?e=.005:e=0),this.set(p+e));}trickle(){this.stopTrickle(),this.trickleTimer=setInterval(()=>{this.currentProgress<.95&&this.inc();},250);}stopTrickle(){this.trickleTimer&&(clearInterval(this.trickleTimer),this.trickleTimer=null);}done(){this.status!=="idle"&&(this.stopTrickle(),this.set(1),this.status="idle",setTimeout(()=>{this.innerEl&&(this.innerEl.style.opacity="0"),setTimeout(()=>{this.el&&(this.el.remove(),this.el=null,this.innerEl=null),this.currentProgress=0;},350);},200));}fail(){this.stopTrickle(),this.status="error",this.innerEl&&(this.innerEl.style.backgroundColor="#ef4444"),this.set(1),setTimeout(()=>this.done(),500);}},S=new T;function Y(n={}){g();let e=!!n.circular,p=n.color||"var(--veil-progress-color, #3b82f6)",l=n.trackColor||"rgba(0, 0, 0, 0.08)";if(e){let i=n.size!==void 0?typeof n.size=="number"?`${n.size}px`:n.size:"48px",a=n.strokeWidth||4,d=document.createElement("div");d.className=`veil-progress-circular ${n.className||""}`.trim(),d.style.width=i,d.style.height=i,d.style.display="inline-flex",d.style.alignItems="center",d.style.justifyContent="center",d.style.position="relative";let c=document.createElementNS("http://www.w3.org/2000/svg","svg");c.setAttribute("viewBox","0 0 48 48"),c.style.width="100%",c.style.height="100%",c.style.transform="rotate(-90deg)";let y=document.createElementNS("http://www.w3.org/2000/svg","circle");y.setAttribute("cx","24"),y.setAttribute("cy","24"),y.setAttribute("r","20"),y.setAttribute("fill","none"),y.setAttribute("stroke",l),y.setAttribute("stroke-width",String(a));let m=document.createElementNS("http://www.w3.org/2000/svg","circle");m.setAttribute("cx","24"),m.setAttribute("cy","24"),m.setAttribute("r","20"),m.setAttribute("fill","none"),m.setAttribute("stroke",p),m.setAttribute("stroke-width",String(a)),m.setAttribute("stroke-linecap","round");let x=2*Math.PI*20;if(m.setAttribute("stroke-dasharray",String(x)),n.value!==void 0){let h=Math.min(100,Math.max(0,n.value)),_=x-h/100*x;m.setAttribute("stroke-dashoffset",String(_)),m.style.transition="stroke-dashoffset 300ms ease";}else m.setAttribute("stroke-dashoffset",String(x*.75)),c.style.animation="veil-spin 1200ms linear infinite";if(c.append(y,m),d.appendChild(c),n.showPercentage&&n.value!==void 0){let h=document.createElement("span");h.style.position="absolute",h.style.fontSize="11px",h.style.fontWeight="600",h.textContent=`${Math.round(n.value)}%`,d.appendChild(h);}return d}let r=n.height!==void 0?typeof n.height=="number"?`${n.height}px`:n.height:"4px",s=document.createElement("div");s.className=`veil-progress-linear ${n.className||""}`.trim(),s.setAttribute("role","progressbar"),s.style.width="100%",s.style.height=r,s.style.backgroundColor=l,s.style.borderRadius="9999px",s.style.overflow="hidden",s.style.position="relative";let t=document.createElement("div");if(t.style.height="100%",t.style.backgroundColor=p,t.style.borderRadius="9999px",n.value!==void 0){let i=Math.min(100,Math.max(0,n.value));s.setAttribute("aria-valuenow",String(i)),t.style.width=`${i}%`,t.style.transition="width 250ms ease";}else t.style.width="35%",t.style.animation="veil-progress-indeterminate 1400ms ease-in-out infinite";return s.appendChild(t),s}function Me(n,e){typeof window>"u"||n&&e&&(n(()=>{S.start();}),e(()=>{S.done();}));}function A(n){let e=document.createElement("div");e.className=`veil-preset veil-preset-${n.name} ${n.className||""}`.trim(),e.setAttribute("aria-hidden","true"),e.style.width=n.width!==void 0?typeof n.width=="number"?`${n.width}px`:n.width:"100%",e.style.boxSizing="border-box";let p=n.shape||"rounded",l;p==="pill"?l="9999px":p==="square"?l="4px":p==="sharp"&&(l="0px"),p==="glass"&&(e.style.backdropFilter="blur(10px)",e.style.webkitBackdropFilter="blur(10px)",e.style.background="rgba(255, 255, 255, 0.08)",e.style.border="1px solid rgba(255, 255, 255, 0.18)",e.style.boxShadow="0 8px 32px rgba(0, 0, 0, 0.08)");let r={animation:n.animation,theme:n.theme,direction:n.direction,speed:n.speed,radius:l};switch(n.name){case "card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="16px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.08)";let s=o({...r,type:"rect",height:"180px",radius:l||"8px"}),t=o({...r,type:"heading",width:"70%",height:"24px"}),i=u(2,r),a=o({...r,type:"button",width:"110px",height:"36px"});e.append(s,t,i,a);break}case "product-card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="10px",e.style.padding="14px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=o({...r,type:"rect",height:"200px",radius:l||"10px"}),t=o({...r,type:"badge",width:"50px",height:"18px"}),i=o({...r,type:"line",width:"85%",height:"18px"}),a=o({...r,type:"line",width:"40%",height:"22px"}),d=o({...r,type:"button",width:"100%",height:"38px"});e.append(s,t,i,a,d);break}case "product-grid":{let s=n.items||4,t=n.columns||2;e.style.display="grid",e.style.gridTemplateColumns=`repeat(${t}, 1fr)`,e.style.gap="16px";for(let i=0;i<s;i++){let a=A({...n,name:"product-card",width:"100%"});e.appendChild(a);}break}case "list":{let s=n.items||4;e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px";for(let t=0;t<s;t++){let i=o({...r,type:"line",width:`${95-t%3*15}%`,height:"18px"});e.appendChild(i);}break}case "list-item":{e.style.display="flex",e.style.alignItems="center",e.style.gap="14px",e.style.padding="10px 0";let s=o({...r,type:"circle",width:"44px",height:"44px"}),t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="6px",t.style.flex="1";let i=o({...r,type:"line",width:"60%",height:"16px"}),a=o({...r,type:"line",width:"40%",height:"12px"});t.append(i,a),e.append(s,t);break}case "table":{let s=n.items||5;e.style.display="flex",e.style.flexDirection="column",e.style.gap="8px",e.style.padding="12px",e.style.borderRadius=l||"8px",e.style.border="1px solid rgba(0,0,0,0.06)";let t=document.createElement("div");t.style.display="grid",t.style.gridTemplateColumns="2fr 1fr 1fr 1fr",t.style.gap="12px",t.style.paddingBottom="8px",t.style.borderBottom="2px solid rgba(0,0,0,0.08)";for(let i=0;i<4;i++)t.appendChild(o({...r,type:"line",height:"16px"}));e.appendChild(t);for(let i=0;i<s;i++){let a=document.createElement("div");a.style.display="grid",a.style.gridTemplateColumns="2fr 1fr 1fr 1fr",a.style.gap="12px",a.style.padding="8px 0",a.style.borderBottom="1px solid rgba(0,0,0,0.04)";for(let d=0;d<4;d++)a.appendChild(o({...r,type:"line",height:"14px"}));e.appendChild(a);}break}case "profile":{e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.gap="14px",e.style.padding="24px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=o({...r,type:"circle",width:"88px",height:"88px"}),t=o({...r,type:"heading",width:"160px",height:"22px"}),i=u(2,r),a=document.createElement("div");a.style.display="flex",a.style.gap="10px",a.append(o({...r,type:"button",width:"100px",height:"34px"}),o({...r,type:"button",width:"100px",height:"34px"})),e.append(s,t,i,a);break}case "profile-header":{e.style.display="flex",e.style.flexDirection="column",e.style.borderRadius=l||"16px",e.style.overflow="hidden",e.style.border="1px solid rgba(0,0,0,0.06)";let s=o({...r,type:"rect",height:"140px",radius:"0"}),t=document.createElement("div");t.style.display="flex",t.style.alignItems="flex-end",t.style.gap="16px",t.style.padding="0 20px 20px 20px",t.style.marginTop="-40px";let i=o({...r,type:"circle",width:"80px",height:"80px"}),a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="6px",a.style.flex="1",a.append(o({...r,type:"heading",width:"140px",height:"20px"}),o({...r,type:"line",width:"200px",height:"14px"})),t.append(i,a),e.append(s,t);break}case "feed-post":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="16px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.08)";let s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.gap="10px",s.append(o({...r,type:"circle",width:"40px",height:"40px"}),o({...r,type:"line",width:"120px",height:"16px"}));let t=u(2,r),i=o({...r,type:"rect",height:"220px",radius:l||"8px"}),a=document.createElement("div");a.style.display="flex",a.style.gap="16px",a.append(o({...r,type:"button",width:"60px",height:"28px"}),o({...r,type:"button",width:"60px",height:"28px"})),e.append(s,t,i,a);break}case "article":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";let s=o({...r,type:"heading",width:"85%",height:"36px"}),t=document.createElement("div");t.style.display="flex",t.style.gap="12px",t.append(o({...r,type:"circle",width:"32px",height:"32px"}),o({...r,type:"line",width:"140px",height:"14px"}));let i=o({...r,type:"rect",height:"260px",radius:l||"10px"}),a=u(4,r),d=u(3,r);e.append(s,t,i,a,d);break}case "comment-thread":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";for(let s=0;s<3;s++){let t=document.createElement("div");t.style.display="flex",t.style.gap="12px",s===1&&(t.style.marginLeft="40px");let i=o({...r,type:"circle",width:"36px",height:"36px"}),a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="6px",a.style.flex="1",a.append(o({...r,type:"line",width:"120px",height:"14px"}),u(2,r)),t.append(i,a),e.appendChild(t);}break}case "chat":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px",e.style.padding="16px";let s=[{align:"flex-start",w:"65%"},{align:"flex-end",w:"50%"},{align:"flex-start",w:"80%"},{align:"flex-end",w:"40%"}];for(let t of s){let i=document.createElement("div");i.style.display="flex",i.style.justifyContent=t.align;let a=o({...r,type:"rect",width:t.w,height:"42px",radius:l||"18px"});i.appendChild(a),e.appendChild(i);}break}case "dashboard":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";let s=document.createElement("div");s.style.display="grid",s.style.gridTemplateColumns="repeat(3, 1fr)",s.style.gap="12px";for(let i=0;i<3;i++){let a=document.createElement("div");a.style.padding="16px",a.style.borderRadius=l||"10px",a.style.border="1px solid rgba(0,0,0,0.06)",a.style.display="flex",a.style.flexDirection="column",a.style.gap="8px",a.append(o({...r,type:"line",width:"60%",height:"14px"}),o({...r,type:"heading",width:"80%",height:"28px"})),s.appendChild(a);}let t=o({...r,type:"rect",height:"200px",radius:l||"10px"});e.append(s,t);break}case "form":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="20px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";for(let t=0;t<3;t++){let i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.gap="6px",i.append(o({...r,type:"line",width:"30%",height:"14px"}),o({...r,type:"input",width:"100%",height:"40px"})),e.appendChild(i);}let s=o({...r,type:"button",width:"140px",height:"40px"});e.appendChild(s);break}case "media-card":{e.style.display="flex",e.style.gap="16px",e.style.padding="12px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=o({...r,type:"rect",width:"140px",height:"90px",radius:l||"8px"}),t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="8px",t.style.flex="1",t.append(o({...r,type:"heading",width:"80%",height:"18px"}),o({...r,type:"line",width:"60%",height:"14px"}),o({...r,type:"line",width:"40%",height:"12px"})),e.append(s,t);break}case "navbar":{e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="space-between",e.style.padding="12px 20px",e.style.borderBottom="1px solid rgba(0,0,0,0.08)";let s=o({...r,type:"heading",width:"110px",height:"24px"}),t=document.createElement("div");t.style.display="flex",t.style.gap="18px";for(let a=0;a<4;a++)t.appendChild(o({...r,type:"line",width:"60px",height:"14px"}));let i=o({...r,type:"button",width:"90px",height:"34px"});e.append(s,t,i);break}case "sidebar":{e.style.display="flex",e.style.flexDirection="column",e.style.justifyContent="space-between",e.style.padding="18px 14px",e.style.height="100%",e.style.minHeight="320px",e.style.borderRight="1px solid rgba(0,0,0,0.08)";let s=document.createElement("div");s.style.display="flex",s.style.flexDirection="column",s.style.gap="16px",s.appendChild(o({...r,type:"heading",width:"100px",height:"22px"}));for(let i=0;i<5;i++){let a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.gap="10px",a.append(o({...r,type:"icon",width:"20px",height:"20px"}),o({...r,type:"line",width:"90px",height:"14px"})),s.appendChild(a);}let t=document.createElement("div");t.style.display="flex",t.style.alignItems="center",t.style.gap="10px",t.append(o({...r,type:"circle",width:"36px",height:"36px"}),o({...r,type:"line",width:"80px",height:"14px"})),e.append(s,t);break}case "settings-page":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="24px",e.style.padding="24px";let s=o({...r,type:"heading",width:"220px",height:"30px"});e.appendChild(s);for(let t=0;t<3;t++){let i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="space-between",i.style.padding="14px 0",i.style.borderBottom="1px solid rgba(0,0,0,0.06)";let a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="6px",a.append(o({...r,type:"line",width:"160px",height:"16px"}),o({...r,type:"line",width:"240px",height:"12px"}));let d=o({...r,type:"button",width:"50px",height:"28px",radius:"14px"});i.append(a,d),e.appendChild(i);}break}case "product-detail":{e.style.display="grid",e.style.gridTemplateColumns="1fr 1.2fr",e.style.gap="24px",e.style.padding="20px";let s=document.createElement("div");s.style.display="flex",s.style.flexDirection="column",s.style.gap="12px";let t=o({...r,type:"rect",height:"280px",radius:l||"12px"}),i=document.createElement("div");i.style.display="flex",i.style.gap="8px";for(let h=0;h<4;h++)i.appendChild(o({...r,type:"rect",width:"60px",height:"60px",radius:"6px"}));s.append(t,i);let a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="14px";let d=o({...r,type:"heading",width:"85%",height:"32px"}),c=o({...r,type:"badge",width:"120px",height:"20px"}),y=o({...r,type:"heading",width:"100px",height:"28px"}),m=u(3,r),x=o({...r,type:"button",width:"180px",height:"44px"});a.append(d,c,y,m,x),e.append(s,a);break}case "news-feed":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";for(let s=0;s<3;s++){let t=document.createElement("div");t.style.display="flex",t.style.gap="16px",t.style.paddingBottom="16px",t.style.borderBottom="1px solid rgba(0,0,0,0.06)";let i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.gap="8px",i.style.flex="1",i.append(o({...r,type:"badge",width:"80px",height:"16px"}),o({...r,type:"heading",width:"90%",height:"20px"}),u(2,r));let a=o({...r,type:"rect",width:"120px",height:"90px",radius:l||"8px"});t.append(i,a),e.appendChild(t);}break}case "inbox-list":{e.style.display="flex",e.style.flexDirection="column",e.style.border="1px solid rgba(0,0,0,0.06)",e.style.borderRadius=l||"8px";for(let s=0;s<4;s++){let t=document.createElement("div");t.style.display="flex",t.style.alignItems="center",t.style.gap="14px",t.style.padding="12px 16px",t.style.borderBottom="1px solid rgba(0,0,0,0.04)";let i=o({...r,type:"icon",width:"18px",height:"18px"}),a=o({...r,type:"line",width:"120px",height:"14px"}),d=o({...r,type:"line",width:"280px",height:"14px"}),c=o({...r,type:"badge",width:"50px",height:"16px"});t.append(i,a,d,c),e.appendChild(t);}break}case "notification-list":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="10px";for(let s=0;s<3;s++){let t=document.createElement("div");t.style.display="flex",t.style.alignItems="flex-start",t.style.gap="12px",t.style.padding="12px",t.style.borderRadius=l||"8px",t.style.background="rgba(0,0,0,0.02)";let i=o({...r,type:"circle",width:"10px",height:"10px"});i.style.marginTop="6px";let a=o({...r,type:"circle",width:"38px",height:"38px"}),d=document.createElement("div");d.style.display="flex",d.style.flexDirection="column",d.style.gap="4px",d.style.flex="1",d.append(o({...r,type:"line",width:"75%",height:"14px"}),o({...r,type:"line",width:"40%",height:"12px"})),t.append(i,a,d),e.appendChild(t);}break}case "order-list":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px";for(let s=0;s<2;s++){let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="12px",t.style.padding="16px",t.style.borderRadius=l||"10px",t.style.border="1px solid rgba(0,0,0,0.08)";let i=document.createElement("div");i.style.display="flex",i.style.justifyContent="space-between",i.append(o({...r,type:"line",width:"140px",height:"16px"}),o({...r,type:"badge",width:"80px",height:"22px"}));let a=document.createElement("div");a.style.display="flex",a.style.gap="10px";for(let c=0;c<3;c++)a.appendChild(o({...r,type:"rect",width:"50px",height:"50px",radius:"6px"}));let d=document.createElement("div");d.style.display="flex",d.style.justifyContent="space-between",d.style.alignItems="center",d.append(o({...r,type:"heading",width:"90px",height:"20px"}),o({...r,type:"button",width:"110px",height:"32px"})),t.append(i,a,d),e.appendChild(t);}break}case "kpi-card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="18px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=document.createElement("div");s.style.display="flex",s.style.justifyContent="space-between",s.style.alignItems="center",s.append(o({...r,type:"line",width:"90px",height:"14px"}),o({...r,type:"icon",width:"20px",height:"20px"}));let t=o({...r,type:"heading",width:"140px",height:"36px"}),i=o({...r,type:"badge",width:"70px",height:"18px"});e.append(s,t,i);break}case "chart-bar":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="18px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=o({...r,type:"heading",width:"140px",height:"20px"}),t=document.createElement("div");t.style.display="flex",t.style.alignItems="flex-end",t.style.justifyContent="space-between",t.style.height="140px",t.style.padding="0 10px";let i=["40%","75%","55%","90%","65%","80%","50%"];for(let a of i){let d=o({...r,type:"rect",width:"22px",height:a,radius:"4px"});t.appendChild(d);}e.append(s,t);break}case "chart-line":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px",e.style.padding="18px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=o({...r,type:"heading",width:"150px",height:"20px"}),t=o({...r,type:"rect",height:"140px",radius:"8px"});e.append(s,t);break}case "chart-pie":{e.style.display="flex",e.style.alignItems="center",e.style.gap="20px",e.style.padding="20px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=o({...r,type:"circle",width:"120px",height:"120px"}),t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="10px",t.style.flex="1";for(let i=0;i<3;i++){let a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.gap="8px",a.append(o({...r,type:"circle",width:"12px",height:"12px"}),o({...r,type:"line",width:"90px",height:"14px"})),t.appendChild(a);}e.append(s,t);break}case "search-results":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="18px";let s=o({...r,type:"input",height:"42px",radius:l||"24px"});e.appendChild(s);for(let t=0;t<3;t++){let i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.gap="6px",i.append(o({...r,type:"line",width:"160px",height:"12px"}),o({...r,type:"heading",width:"70%",height:"20px"}),u(2,r)),e.appendChild(i);}break}case "video-player":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px";let s=o({...r,type:"rect",height:"240px",radius:l||"12px"}),t=o({...r,type:"heading",width:"80%",height:"24px"}),i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="space-between";let a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.gap="10px",a.append(o({...r,type:"circle",width:"40px",height:"40px"}),o({...r,type:"line",width:"120px",height:"14px"}));let d=o({...r,type:"button",width:"100px",height:"36px"});i.append(a,d),e.append(s,t,i);break}case "music-player":{e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.gap="14px",e.style.padding="20px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=o({...r,type:"rect",width:"180px",height:"180px",radius:l||"12px"}),t=o({...r,type:"heading",width:"160px",height:"20px"}),i=o({...r,type:"line",width:"100px",height:"14px"}),a=o({...r,type:"line",width:"100%",height:"6px"}),d=document.createElement("div");d.style.display="flex",d.style.alignItems="center",d.style.gap="20px",d.append(o({...r,type:"icon",width:"24px",height:"24px"}),o({...r,type:"circle",width:"48px",height:"48px"}),o({...r,type:"icon",width:"24px",height:"24px"})),e.append(s,t,i,a,d);break}case "stories-row":{e.style.display="flex",e.style.gap="16px",e.style.overflowX="auto",e.style.padding="8px 0";for(let s=0;s<5;s++){let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.alignItems="center",t.style.gap="6px",t.append(o({...r,type:"circle",width:"60px",height:"60px"}),o({...r,type:"line",width:"48px",height:"10px"})),e.appendChild(t);}break}case "reels":{e.style.display="flex",e.style.flexDirection="column",e.style.justifyContent="flex-end",e.style.height="340px",e.style.padding="20px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.1)",e.style.position="relative";let s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.gap="10px",s.append(o({...r,type:"circle",width:"36px",height:"36px"}),o({...r,type:"line",width:"100px",height:"14px"}));let t=u(2,r);e.append(s,t);break}case "tabs":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";let s=document.createElement("div");s.style.display="flex",s.style.gap="20px",s.style.borderBottom="2px solid rgba(0,0,0,0.06)",s.style.paddingBottom="8px";for(let i=0;i<4;i++)s.appendChild(o({...r,type:"line",width:"70px",height:"16px"}));let t=u(3,r);e.append(s,t);break}case "calendar":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="16px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=document.createElement("div");s.style.display="flex",s.style.justifyContent="space-between",s.append(o({...r,type:"heading",width:"120px",height:"20px"}),o({...r,type:"line",width:"60px",height:"20px"}));let t=document.createElement("div");t.style.display="grid",t.style.gridTemplateColumns="repeat(7, 1fr)",t.style.gap="8px";for(let i=0;i<28;i++)t.appendChild(o({...r,type:"rect",height:"24px",radius:"4px"}));e.append(s,t);break}case "kanban":{e.style.display="grid",e.style.gridTemplateColumns="repeat(3, 1fr)",e.style.gap="14px";for(let s=0;s<3;s++){let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="10px",t.style.padding="12px",t.style.borderRadius=l||"10px",t.style.background="rgba(0,0,0,0.03)";let i=o({...r,type:"heading",width:"80px",height:"16px"});t.appendChild(i);for(let a=0;a<2;a++){let d=document.createElement("div");d.style.display="flex",d.style.flexDirection="column",d.style.gap="8px",d.style.padding="10px",d.style.borderRadius=l||"6px",d.style.background="#fff",d.style.border="1px solid rgba(0,0,0,0.06)",d.append(o({...r,type:"line",width:"85%",height:"14px"}),o({...r,type:"badge",width:"50px",height:"16px"})),t.appendChild(d);}e.appendChild(t);}break}case "timeline":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="18px",e.style.padding="10px 0";for(let s=0;s<3;s++){let t=document.createElement("div");t.style.display="flex",t.style.gap="14px";let i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.alignItems="center",i.append(o({...r,type:"circle",width:"16px",height:"16px"}),o({...r,type:"rect",width:"2px",height:"40px"}));let a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="4px",a.style.flex="1",a.append(o({...r,type:"line",width:"90px",height:"12px"}),o({...r,type:"heading",width:"60%",height:"18px"}),o({...r,type:"line",width:"85%",height:"14px"})),t.append(i,a),e.appendChild(t);}break}case "map-card":{e.style.display="flex",e.style.flexDirection="column",e.style.borderRadius=l||"14px",e.style.overflow="hidden",e.style.border="1px solid rgba(0,0,0,0.08)";let s=o({...r,type:"rect",height:"160px",radius:"0"}),t=document.createElement("div");t.style.display="flex",t.style.justifyContent="space-between",t.style.alignItems="center",t.style.padding="14px";let i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.gap="6px",i.append(o({...r,type:"heading",width:"140px",height:"18px"}),o({...r,type:"line",width:"200px",height:"12px"}));let a=o({...r,type:"button",width:"90px",height:"34px"});t.append(i,a),e.append(s,t);break}case "pricing-card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="24px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.08)";let s=o({...r,type:"badge",width:"70px",height:"22px"}),t=o({...r,type:"heading",width:"130px",height:"38px"}),i=o({...r,type:"line",width:"80%",height:"14px"}),a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="10px";for(let c=0;c<4;c++){let y=document.createElement("div");y.style.display="flex",y.style.alignItems="center",y.style.gap="8px",y.append(o({...r,type:"icon",width:"16px",height:"16px"}),o({...r,type:"line",width:"70%",height:"14px"})),a.appendChild(y);}let d=o({...r,type:"button",width:"100%",height:"42px"});e.append(s,t,i,a,d);break}case "testimonial":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="20px",e.style.borderRadius=l||"14px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=u(3,r),t=document.createElement("div");t.style.display="flex",t.style.alignItems="center",t.style.gap="12px",t.append(o({...r,type:"circle",width:"42px",height:"42px"}),o({...r,type:"line",width:"120px",height:"16px"})),e.append(s,t);break}case "faq-accordion":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px";for(let s=0;s<3;s++){let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="8px",t.style.padding="14px 16px",t.style.borderRadius=l||"8px",t.style.border="1px solid rgba(0,0,0,0.06)";let i=document.createElement("div");if(i.style.display="flex",i.style.justifyContent="space-between",i.style.alignItems="center",i.append(o({...r,type:"line",width:"75%",height:"16px"}),o({...r,type:"icon",width:"16px",height:"16px"})),t.appendChild(i),s===0){let a=u(2,r);t.appendChild(a);}e.appendChild(t);}break}case "file-explorer":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="10px",e.style.padding="12px";for(let s=0;s<5;s++){let t=document.createElement("div");t.style.display="flex",t.style.alignItems="center",t.style.gap="10px",t.style.marginLeft=`${s%3*16}px`,t.append(o({...r,type:"icon",width:"16px",height:"16px"}),o({...r,type:"line",width:`${100+s*20}px`,height:"14px"})),e.appendChild(t);}break}case "code-block":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="8px",e.style.padding="16px",e.style.borderRadius=l||"8px",e.style.background="rgba(0,0,0,0.05)";let s=["40%","70%","55%","85%","30%","60%"];for(let t of s)e.appendChild(o({...r,type:"line",width:t,height:"12px"}));break}case "e-commerce-checkout":{e.style.display="grid",e.style.gridTemplateColumns="repeat(auto-fit, minmax(280px, 1fr))",e.style.gap="20px";let s=document.createElement("div");s.style.display="flex",s.style.flexDirection="column",s.style.gap="12px",s.append(o({...r,type:"heading",width:"60%",height:"22px"}),o({...r,type:"input",width:"100%",height:"40px",radius:l||"6px"}),o({...r,type:"input",width:"100%",height:"40px",radius:l||"6px"}),o({...r,type:"input",width:"100%",height:"40px",radius:l||"6px"}));let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="12px",t.style.padding="16px",t.style.borderRadius=l||"8px",t.style.background="rgba(255,255,255,0.03)",t.append(o({...r,type:"heading",width:"50%",height:"20px"}),o({...r,type:"line",width:"100%",height:"14px"}),o({...r,type:"line",width:"80%",height:"14px"}),o({...r,type:"button",width:"100%",height:"44px",radius:l||"8px"})),e.append(s,t);break}case "social-story":{e.style.display="flex",e.style.flexDirection="column",e.style.width="240px",e.style.height="380px",e.style.borderRadius=l||"16px",e.style.padding="14px",e.style.position="relative",e.style.overflow="hidden",e.style.background="rgba(255,255,255,0.05)";let s=document.createElement("div");s.style.display="flex",s.style.gap="4px",s.style.width="100%";for(let i=0;i<4;i++){let a=o({...r,type:"rect",width:"100%",height:"3px",radius:"2px"});s.appendChild(a);}let t=document.createElement("div");t.style.display="flex",t.style.alignItems="center",t.style.gap="8px",t.style.marginTop="8px",t.append(o({...r,type:"circle",width:"32px",height:"32px"}),o({...r,type:"line",width:"80px",height:"12px"})),e.append(s,t);break}case "hero-banner":{e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.textAlign="center",e.style.gap="14px",e.style.padding="40px 20px";let s=o({...r,type:"badge",width:"110px",height:"24px",radius:"9999px"}),t=o({...r,type:"heading",width:"70%",height:"36px"}),i=o({...r,type:"line",width:"50%",height:"16px"}),a=o({...r,type:"line",width:"40%",height:"16px"}),d=document.createElement("div");d.style.display="flex",d.style.gap="12px",d.style.marginTop="10px",d.append(o({...r,type:"button",width:"140px",height:"44px",radius:l||"8px"}),o({...r,type:"button",width:"120px",height:"44px",radius:l||"8px"})),e.append(s,t,i,a,d);break}}return e}function f(n={}){g();let e=n.type||"ring",p=n.size!==void 0?typeof n.size=="number"?`${n.size}px`:n.size:"28px",l=n.color||"var(--veil-progress-color, #3b82f6)",r=n.secondaryColor||"rgba(0, 0, 0, 0.12)",s=n.speed!==void 0?typeof n.speed=="number"?`${n.speed}ms`:n.speed:void 0,t=document.createElement("div");switch(t.className=`veil-spinner veil-spinner-${e} ${n.glass?"veil-spinner-glass":""} ${n.className||""}`.trim(),t.setAttribute("role","status"),t.setAttribute("aria-label",n.label||"Loading"),t.style.width=p,t.style.height=p,t.style.display="inline-flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.position="relative",n.glass&&(t.style.borderRadius="50%",t.style.backdropFilter="blur(8px)",t.style.webkitBackdropFilter="blur(8px)",t.style.background="rgba(255, 255, 255, 0.12)",t.style.boxShadow="0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.4)",t.style.border="1px solid rgba(255, 255, 255, 0.25)"),e){case "ring":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.borderRadius="50%",i.style.border=`3px solid ${r}`,i.style.borderTopColor=l,i.style.animation=`veil-spin ${s||"800ms"} linear infinite`,i.style.boxSizing="border-box",t.appendChild(i);break}case "dual-ring":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.borderRadius="50%",i.style.border="3px solid transparent",i.style.borderTopColor=l,i.style.borderBottomColor=l,i.style.animation=`veil-spin ${s||"900ms"} cubic-bezier(0.5, 0, 0.5, 1) infinite`,i.style.boxSizing="border-box",t.appendChild(i);break}case "dots":{t.style.gap="4px";for(let i=0;i<3;i++){let a=document.createElement("div");a.style.width="28%",a.style.height="28%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.animation=`veil-dot-bounce ${s||"1200ms"} ease-in-out infinite`,a.style.animationDelay=`${i*160}ms`,t.appendChild(a);}break}case "bars":{t.style.gap="3px";for(let i=0;i<4;i++){let a=document.createElement("div");a.style.width="18%",a.style.height="100%",a.style.borderRadius="2px",a.style.backgroundColor=l,a.style.animation=`veil-bar-wave ${s||"1000ms"} ease-in-out infinite`,a.style.animationDelay=`${i*140}ms`,t.appendChild(a);}break}case "pulse":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.borderRadius="50%",i.style.backgroundColor=l,i.style.animation=`veil-pulse-scale ${s||"1200ms"} ease-out infinite`,t.appendChild(i);break}case "orbit":{let i=document.createElement("div");i.style.width="30%",i.style.height="30%",i.style.borderRadius="50%",i.style.backgroundColor=l,i.style.position="absolute";let a=document.createElement("div");a.style.width="100%",a.style.height="100%",a.style.position="absolute",a.style.animation=`veil-spin ${s||"1200ms"} linear infinite`;let d=document.createElement("div");d.style.width="24%",d.style.height="24%",d.style.borderRadius="50%",d.style.backgroundColor=l,d.style.position="absolute",d.style.top="0",d.style.left="38%",a.appendChild(d),t.append(i,a);break}case "wave":{t.style.gap="4px";for(let i=0;i<5;i++){let a=document.createElement("div");a.style.width="12%",a.style.height="80%",a.style.borderRadius="3px",a.style.backgroundColor=l,a.style.animation=`veil-wave-dance ${s||"1100ms"} ease-in-out infinite`,a.style.animationDelay=`${i*110}ms`,t.appendChild(a);}break}case "bounce":{let i=document.createElement("div");i.style.width="60%",i.style.height="60%",i.style.borderRadius="50%",i.style.backgroundColor=l,i.style.animation=`veil-bounce-ball ${s||"900ms"} cubic-bezier(0.28, 0.84, 0.42, 1) infinite`,t.appendChild(i);break}case "ios-activity":{for(let i=0;i<12;i++){let a=document.createElement("div");a.style.position="absolute",a.style.width="8%",a.style.height="26%",a.style.backgroundColor=l,a.style.borderRadius="2px",a.style.transformOrigin="50% 190%",a.style.transform=`rotate(${i*30}deg) translateY(-90%)`,a.style.animation=`veil-ios-fade ${s||"1000ms"} linear infinite`,a.style.animationDelay=`-${(12-i)*(1e3/12)}ms`,t.appendChild(a);}break}case "glass-orb":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.borderRadius="50%",i.style.background=`radial-gradient(circle at 35% 35%, rgba(255,255,255,0.8), ${l} 70%)`,i.style.boxShadow=`0 4px 12px ${l}44, inset 0 2px 4px rgba(255,255,255,0.6)`,i.style.animation=`veil-glass-orbit ${s||"1600ms"} ease-in-out infinite`,t.appendChild(i);break}case "morph":{let i=document.createElement("div");i.style.width="80%",i.style.height="80%",i.style.backgroundColor=l,i.style.animation=`veil-morph-shape ${s||"2000ms"} ease-in-out infinite`,t.appendChild(i);break}case "progress-circle":{let i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("viewBox","0 0 36 36"),i.style.width="100%",i.style.height="100%",i.style.transform="rotate(-90deg)";let a=document.createElementNS("http://www.w3.org/2000/svg","circle");a.setAttribute("cx","18"),a.setAttribute("cy","18"),a.setAttribute("r","14"),a.setAttribute("fill","none"),a.setAttribute("stroke",r),a.setAttribute("stroke-width","3");let d=document.createElementNS("http://www.w3.org/2000/svg","circle");d.setAttribute("cx","18"),d.setAttribute("cy","18"),d.setAttribute("r","14"),d.setAttribute("fill","none"),d.setAttribute("stroke",l),d.setAttribute("stroke-width","3"),d.setAttribute("stroke-dasharray","88"),d.setAttribute("stroke-dashoffset","25"),d.setAttribute("stroke-linecap","round"),d.style.animation=`veil-spin ${s||"1200ms"} linear infinite`,d.style.transformOrigin="50% 50%",i.append(a,d),t.appendChild(i);break}case "arc-gradient":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.borderRadius="50%",i.style.background=`conic-gradient(from 0deg, transparent 20%, ${l} 100%)`,i.style.mask="radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 2.5px))",i.style.webkitMask="radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 2.5px))",i.style.animation=`veil-spin ${s||"750ms"} linear infinite`,t.appendChild(i);break}case "pulse-ring":{for(let i=0;i<2;i++){let a=document.createElement("div");a.style.position="absolute",a.style.inset="0",a.style.borderRadius="50%",a.style.border=`2px solid ${l}`,a.style.animation=`veil-pulse-ring ${s||"1400ms"} cubic-bezier(0, 0.2, 0.8, 1) infinite`,a.style.animationDelay=`${i*700}ms`,t.appendChild(a);}break}case "dots-circle":{for(let i=0;i<8;i++){let a=document.createElement("div");a.style.position="absolute",a.style.width="20%",a.style.height="20%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.transformOrigin="50% 250%",a.style.transform=`rotate(${i*45}deg) translateY(-150%)`,a.style.animation=`veil-fade-seq ${s||"1000ms"} linear infinite`,a.style.animationDelay=`-${(8-i)*(1e3/8)}ms`,t.appendChild(a);}break}case "grid-dots":{t.style.display="grid",t.style.gridTemplateColumns="repeat(3, 1fr)",t.style.gap="3px";for(let i=0;i<3;i++)for(let a=0;a<3;a++){let d=document.createElement("div");d.style.width="100%",d.style.aspectRatio="1 / 1",d.style.borderRadius="50%",d.style.backgroundColor=l,d.style.animation=`veil-dot-bounce ${s||"1200ms"} ease-in-out infinite`,d.style.animationDelay=`${(i+a)*110}ms`,t.appendChild(d);}break}case "square-flip":{let i=document.createElement("div");i.style.width="60%",i.style.height="60%",i.style.backgroundColor=l,i.style.borderRadius="4px",i.style.animation=`veil-square-flip ${s||"1200ms"} ease-in-out infinite`,t.appendChild(i);break}case "cube-fold":{t.style.display="grid",t.style.gridTemplateColumns="repeat(2, 1fr)",t.style.gap="2px";for(let i=0;i<4;i++){let a=document.createElement("div");a.style.width="100%",a.style.aspectRatio="1 / 1",a.style.backgroundColor=l,a.style.borderRadius="2px",a.style.animation=`veil-cube-fold ${s||"1400ms"} ease-in-out infinite`,a.style.animationDelay=`${i*175}ms`,t.appendChild(a);}break}case "hourglass":{let i=document.createElement("div");i.style.width="65%",i.style.height="65%",i.style.border=`3px solid ${l}`,i.style.borderLeftColor="transparent",i.style.borderRightColor="transparent",i.style.borderRadius="50%",i.style.animation=`veil-hourglass ${s||"1200ms"} cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite`,t.appendChild(i);break}case "infinity":{let i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("viewBox","0 0 48 24"),i.style.width="100%",i.style.height="100%";let a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d","M12,12 C4,12 4,4 12,4 C20,4 28,20 36,20 C44,20 44,12 36,12 C28,12 20,4 12,4"),a.setAttribute("fill","none"),a.setAttribute("stroke",l),a.setAttribute("stroke-width","3"),a.setAttribute("stroke-dasharray","80"),a.setAttribute("stroke-dashoffset","0"),a.setAttribute("stroke-linecap","round"),a.style.animation=`veil-dash ${s||"1400ms"} linear infinite`,i.appendChild(a),t.appendChild(i);break}case "heartbeat-line":{let i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("viewBox","0 0 50 24"),i.style.width="100%",i.style.height="100%";let a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d","M0,12 L14,12 L18,3 L24,21 L28,9 L32,15 L36,12 L50,12"),a.setAttribute("fill","none"),a.setAttribute("stroke",l),a.setAttribute("stroke-width","2.5"),a.setAttribute("stroke-dasharray","60"),a.setAttribute("stroke-dashoffset","60"),a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-linejoin","round"),a.style.animation=`veil-ecg ${s||"1200ms"} ease-in-out infinite`,i.appendChild(a),t.appendChild(i);break}case "equalizer":{t.style.gap="3px";let i=[0,200,100,300];for(let a=0;a<4;a++){let d=document.createElement("div");d.style.width="18%",d.style.height="100%",d.style.borderRadius="2px",d.style.backgroundColor=l,d.style.animation=`veil-eq-bounce ${s||"800ms"} ease-in-out infinite alternate`,d.style.animationDelay=`${i[a]}ms`,t.appendChild(d);}break}case "chasing-dots":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.position="relative",i.style.animation=`veil-spin ${s||"1800ms"} linear infinite`;for(let a=0;a<2;a++){let d=document.createElement("div");d.style.position="absolute",d.style.width="45%",d.style.height="45%",d.style.borderRadius="50%",d.style.backgroundColor=l,d.style.animation=`veil-chase ${s||"1800ms"} ease-in-out infinite`,a===0?(d.style.top="0",d.style.left="0"):(d.style.bottom="0",d.style.right="0",d.style.animationDelay="-900ms"),i.appendChild(d);}t.appendChild(i);break}case "typing":{t.style.gap="4px";for(let i=0;i<3;i++){let a=document.createElement("div");a.style.width="24%",a.style.height="24%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.animation=`veil-typing ${s||"1000ms"} ease-in-out infinite`,a.style.animationDelay=`${i*150}ms`,t.appendChild(a);}break}case "liquid-fill":{let i=document.createElement("div");i.style.width="85%",i.style.height="85%",i.style.borderRadius="50%",i.style.border=`2px solid ${l}`,i.style.position="relative",i.style.overflow="hidden";let a=document.createElement("div");a.style.position="absolute",a.style.inset="0",a.style.backgroundColor=l,a.style.opacity="0.7",a.style.borderRadius="40%",a.style.animation=`veil-liquid-spin ${s||"2000ms"} linear infinite`,i.appendChild(a),t.appendChild(i);break}case "atom":{let i=document.createElement("div");i.style.width="24%",i.style.height="24%",i.style.borderRadius="50%",i.style.backgroundColor=l,i.style.position="absolute",t.appendChild(i);let a=[0,60,120];for(let d of a){let c=document.createElement("div");c.style.position="absolute",c.style.width="100%",c.style.height="45%",c.style.borderRadius="50%",c.style.border=`1.5px solid ${l}`,c.style.transform=`rotate(${d}deg)`,c.style.animation=`veil-atom-spin ${s||"1600ms"} linear infinite`,t.appendChild(c);}break}case "clock":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.borderRadius="50%",i.style.border=`2.5px solid ${l}`,i.style.position="relative";let a=document.createElement("div");a.style.width="14%",a.style.height="14%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.position="absolute",a.style.top="43%",a.style.left="43%";let d=document.createElement("div");d.style.position="absolute",d.style.width="2px",d.style.height="30%",d.style.backgroundColor=l,d.style.top="20%",d.style.left="calc(50% - 1px)",d.style.transformOrigin="bottom center",d.style.animation=`veil-spin ${s||"3000ms"} linear infinite`;let c=document.createElement("div");c.style.position="absolute",c.style.width="2px",c.style.height="42%",c.style.backgroundColor=l,c.style.top="8%",c.style.left="calc(50% - 1px)",c.style.transformOrigin="bottom center",c.style.animation=`veil-spin ${s||"1000ms"} linear infinite`,i.append(a,d,c),t.appendChild(i);break}case "radar":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.borderRadius="50%",i.style.border=`1.5px solid ${l}`,i.style.position="relative",i.style.overflow="hidden";let a=document.createElement("div");a.style.position="absolute",a.style.inset="0",a.style.borderRadius="50%",a.style.background=`conic-gradient(from 0deg, transparent 60%, ${l} 100%)`,a.style.opacity="0.6",a.style.animation=`veil-spin ${s||"1500ms"} linear infinite`,i.appendChild(a),t.appendChild(i);break}case "ellipsis":{t.style.gap="3px";for(let i=0;i<3;i++){let a=document.createElement("div");a.style.width="24%",a.style.height="24%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.animation=`veil-ellipsis ${s||"1200ms"} ease-in-out infinite`,a.style.animationDelay=`${i*200}ms`,t.appendChild(a);}break}case "flower":{for(let i=0;i<6;i++){let a=document.createElement("div");a.style.position="absolute",a.style.width="28%",a.style.height="48%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.opacity="0.85",a.style.transformOrigin="50% 100%",a.style.top="2%",a.style.transform=`rotate(${i*60}deg)`,a.style.animation=`veil-flower-bloom ${s||"1600ms"} ease-in-out infinite`,a.style.animationDelay=`${i*120}ms`,t.appendChild(a);}break}}return ne(),t}var j=false;function ne(){if(j||typeof document>"u")return;j=true;let n=document.createElement("style");n.id="veilkit-spinner-keyframes",n.textContent=`
512
512
  @keyframes veil-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
513
513
  @keyframes veil-dot-bounce { 0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
514
514
  @keyframes veil-bar-wave { 0%, 100% { transform: scaleY(0.3); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }
@@ -580,7 +580,7 @@ ${D()}
580
580
  0%, 100% { transform: scale(0.7); opacity: 0.5; }
581
581
  50% { transform: scale(1); opacity: 1; }
582
582
  }
583
- `,document.head.appendChild(n);}var $={en:{loading:"Loading content, please wait\u2026",loaded:"Content loaded.",progress:"Loading progress",busy:"Busy"},es:{loading:"Cargando contenido, por favor espere\u2026",loaded:"Contenido cargado.",progress:"Progreso de carga",busy:"Ocupado"},fr:{loading:"Chargement du contenu, veuillez patienter\u2026",loaded:"Contenu charg\xE9.",progress:"Progression du chargement",busy:"Occup\xE9"},de:{loading:"Inhalt wird geladen, bitte warten\u2026",loaded:"Inhalt geladen.",progress:"Ladefortschritt",busy:"Besch\xE4ftigt"},ja:{loading:"\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u8AAD\u307F\u8FBC\u3093\u3067\u3044\u307E\u3059\u2026",loaded:"\u8AAD\u307F\u8FBC\u307F\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002",progress:"\u8AAD\u307F\u8FBC\u307F\u72B6\u6CC1",busy:"\u51E6\u7406\u4E2D"},zh:{loading:"\u6B63\u5728\u52A0\u8F7D\u5185\u5BB9\uFF0C\u8BF7\u7A0D\u5019\u2026",loaded:"\u5185\u5BB9\u52A0\u8F7D\u5B8C\u6210\u3002",progress:"\u52A0\u8F7D\u8FDB\u5EA6",busy:"\u5FD9\u788C\u4E2D"},ar:{loading:"\u062C\u0627\u0631\u064A \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0645\u062D\u062A\u0648\u0649\u060C \u064A\u0631\u062C\u0649 \u0627\u0644\u0627\u0646\u062A\u0638\u0627\u0631\u2026",loaded:"\u062A\u0645 \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0645\u062D\u062A\u0648\u0649.",progress:"\u062A\u0642\u062F\u0645 \u0627\u0644\u062A\u062D\u0645\u064A\u0644",busy:"\u0645\u0634\u063A\u0648\u0644"}},se="en",X={};function re(n){return X[n]?X[n]:($[se]||$.en)[n]||$.en[n]||"Loading\u2026"}function q(n,e){n.setAttribute("aria-busy","true");let d=n.querySelector(".veil-sr-only");return d||(d=document.createElement("span"),d.className="veil-sr-only",d.setAttribute("role","status"),d.setAttribute("aria-live","polite"),n.appendChild(d)),d.textContent=e||re("loading"),d}function V(n){n.removeAttribute("aria-busy");let e=n.querySelector(".veil-sr-only");e&&e.remove();}var x=new Map,R="",M=class{show(e,d={}){g();let l,r=!e;if(r?l=document.body:typeof e=="string"?(l=document.querySelector(e),l||(l=document.body)):l=e,x.has(l))return x.get(l);let s=document.createElement("div");if(s.className=`veil-overlay ${r?"veil-overlay-fullscreen":""} ${d.className||""}`.trim(),s.setAttribute("role","status"),d.color&&s.style.setProperty("--veil-overlay-bg",d.color),d.blur!==void 0){let i=typeof d.blur=="boolean"?d.blur?"8px":"0px":d.blur;s.style.setProperty("--veil-overlay-blur",i);}if(d.zIndex!==void 0&&(s.style.zIndex=String(d.zIndex)),d.spinner!==false){let i=typeof d.spinner=="string"?d.spinner:"ring",t=f({type:i,size:36});s.appendChild(t);}if(d.message){let i=document.createElement("span");i.className="veil-overlay-message",i.style.fontSize="14px",i.style.fontWeight="500",i.style.color="var(--veil-contrast, #1f2937)",i.textContent=d.message,s.appendChild(i);}return r||window.getComputedStyle(l).position==="static"&&(l.style.position="relative"),q(l,d.message),d.lockScroll&&r&&typeof document<"u"&&(R=document.body.style.overflow,document.body.style.overflow="hidden"),l.appendChild(s),x.set(l,s),s}hide(e){let d,l=!e;l?d=document.body:typeof e=="string"?(d=document.querySelector(e),d||(d=document.body)):d=e;let r=x.get(d);r&&(r.style.opacity="0",setTimeout(()=>{r.remove(),x.delete(d),V(d),l&&R!==void 0&&(document.body.style.overflow=R);},200));}},w=new M;function K(n,e={}){g(),de();let d=e.status||(e.loading?"loading":"idle"),l="",r="",s=n.innerHTML,i=null,t=e.pressFeedback||"press-scale";le(n,t);function a(){i&&(clearTimeout(i),i=null);}function o(y,m){a();let v=d;if(d=y,e.onStatusChange&&v!==y&&e.onStatusChange(y),y==="idle"){n.classList.remove("veil-btn-loading","veil-btn-success","veil-btn-error","veil-btn-shake","veil-btn-morph"),n.removeAttribute("aria-disabled"),n.removeAttribute("aria-busy"),n.style.width=l,n.style.height=r,n.innerHTML=s;return}if(v==="idle"){let h=n.getBoundingClientRect();l=n.style.width,r=n.style.height,s=n.innerHTML,h.width>0&&(n.style.width=`${h.width}px`),h.height>0&&(n.style.height=`${h.height}px`);}if(y==="loading"){n.classList.add("veil-btn-loading"),n.classList.remove("veil-btn-success","veil-btn-error"),n.setAttribute("aria-disabled","true"),n.setAttribute("aria-busy","true");let h=e.styleType||(e.spinnerPlacement==="replace"?"spinner-replace":e.spinnerPlacement==="end"?"spinner-right":"spinner-left");oe(n,h,e,m||e.loadingText);}else if(y==="success"){n.classList.remove("veil-btn-loading","veil-btn-error"),n.classList.add("veil-btn-success"),n.setAttribute("aria-busy","false"),F(n,"success",m||e.successText||"Success",e.resultAnimation);let h=e.resetAfter!==void 0?e.resetAfter:2e3;h>0&&(i=setTimeout(()=>o("idle"),h));}else if(y==="error"){n.classList.remove("veil-btn-loading","veil-btn-success"),n.classList.add("veil-btn-error"),n.setAttribute("aria-busy","false"),F(n,"error",m||e.errorText||"Failed",e.resultAnimation);let h=e.resetAfter!==void 0?e.resetAfter:2e3;h>0&&(i=setTimeout(()=>o("idle"),h));}}let p=async y=>{if(d!=="idle"){y.preventDefault(),y.stopPropagation();return}if(e.onClick)try{let m=e.onClick(y);m&&typeof m.then=="function"&&(o("loading"),await m,o("success"));}catch{o("error");}};return n.addEventListener("click",p),e.status?o(e.status):e.loading&&o("loading",e.loadingText),{setStatus:o,setLoading:(y,m)=>o(y?"loading":"idle",m),getStatus:()=>d,destroy:()=>{a(),n.removeEventListener("click",p),o("idle");}}}function le(n,e){if(e!=="none")if(e==="press-scale"){n.style.transition="transform 100ms ease, box-shadow 150ms ease",n.addEventListener("mousedown",()=>{n.style.transform="scale(0.97)";});let d=()=>{n.style.transform="scale(1)";};n.addEventListener("mouseup",d),n.addEventListener("mouseleave",d);}else e==="ripple"?(n.style.position="relative",n.style.overflow="hidden",n.addEventListener("click",d=>{let l=n.getBoundingClientRect(),r=document.createElement("span"),s=Math.max(l.width,l.height),i=s/2;r.style.width=r.style.height=`${s}px`,r.style.left=`${d.clientX-l.left-i}px`,r.style.top=`${d.clientY-l.top-i}px`,r.className="veil-btn-ripple";let t=n.querySelector(".veil-btn-ripple");t&&t.remove(),n.appendChild(r);})):e==="glow-follow"&&n.addEventListener("mousemove",d=>{let l=n.getBoundingClientRect(),r=d.clientX-l.left,s=d.clientY-l.top;n.style.setProperty("--veil-mouse-x",`${r}px`),n.style.setProperty("--veil-mouse-y",`${s}px`);});}function oe(n,e,d,l){let r=d.spinner||"ring",s=l||n.textContent?.trim()||"";switch(n.innerHTML="",e){case "spinner-left":{let i=f({type:r,size:16,color:"currentColor"});i.classList.add("veil-btn-spinner-wrap");let t=document.createElement("span");t.textContent=s,n.append(i,t);break}case "spinner-right":{let i=document.createElement("span");i.textContent=s;let t=f({type:r,size:16,color:"currentColor"});t.classList.add("veil-btn-spinner-wrap"),t.style.marginLeft="8px",t.style.marginRight="0",n.append(i,t);break}case "spinner-replace":{let i=f({type:r,size:20,color:"currentColor"});n.appendChild(i);break}case "dots-after-text":{let i=document.createElement("span");i.textContent=s;let t=document.createElement("span");t.className="veil-btn-typing-dots",t.textContent="...",n.append(i,t);break}case "progress-fill":{let i=document.createElement("div");i.className="veil-btn-progress-bar";let t=d.progress!==void 0?d.progress:60;i.style.width=`${t}%`;let a=document.createElement("span");a.style.position="relative",a.style.zIndex="2",a.textContent=s,n.append(i,a);break}case "shimmer-surface":{let i=document.createElement("span");i.textContent=s,i.style.position="relative",i.style.zIndex="2";let t=document.createElement("div");t.className="veil-btn-shimmer",n.append(i,t);break}case "pulse-glow":{n.classList.add("veil-btn-pulse-glow");let i=document.createElement("span");i.textContent=s,n.appendChild(i);break}case "stripes-progress":{let i=document.createElement("div");i.className="veil-btn-stripes";let t=document.createElement("span");t.style.position="relative",t.style.zIndex="2",t.textContent=s,n.append(i,t);break}case "morph-circle":{n.classList.add("veil-btn-morph");let i=f({type:r,size:20,color:"currentColor"});n.appendChild(i);break}case "slide-text":{let i=document.createElement("span");i.className="veil-btn-slide-wrap";let t=document.createElement("span");t.className="veil-btn-slide-out",t.textContent=s;let a=document.createElement("span");a.className="veil-btn-slide-in",a.textContent=l||"Loading\u2026",i.append(t,a),n.appendChild(i);break}case "border-trace":{let i=document.createElement("span");i.textContent=s,i.style.position="relative",i.style.zIndex="2";let t=document.createElement("div");t.className="veil-btn-border-trace",n.append(i,t);break}case "liquid-fill":{let i=document.createElement("div");i.className="veil-btn-liquid";let t=document.createElement("span");t.style.position="relative",t.style.zIndex="2",t.textContent=s,n.append(i,t);break}case "bounce-dots":{let i=f({type:"dots",size:22,color:"currentColor"}),t=document.createElement("span");t.textContent=s?` ${s}`:"",n.append(i,t);break}case "glass-shine":{n.classList.add("veil-btn-glass-shine");let i=document.createElement("span");i.textContent=s,n.appendChild(i);break}case "neon-pulse":{n.classList.add("veil-btn-neon-pulse");let i=document.createElement("span");i.textContent=s,n.appendChild(i);break}case "skeleton-button":{let i=document.createElement("div");i.className="veil-skeleton",i.setAttribute("data-veil-shape","button"),i.setAttribute("data-veil-anim","shimmer"),i.style.width="100%",i.style.height="100%",n.appendChild(i);break}}}function F(n,e,d,l="checkmark"){if(n.innerHTML="",n.style.display="inline-flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.gap="8px",e==="error"&&(l==="shake"||l==="cross"||l==="none")&&n.classList.add("veil-btn-shake"),e==="success"&&l==="success-burst"){let t=document.createElement("div");t.className="veil-btn-burst",n.appendChild(t);}let r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("viewBox","0 0 24 24"),r.style.width="18px",r.style.height="18px",r.style.stroke="currentColor",r.style.strokeWidth="2.5",r.style.fill="none",r.style.strokeLinecap="round",r.style.strokeLinejoin="round";let s=document.createElementNS("http://www.w3.org/2000/svg","path");e==="success"?s.setAttribute("d","M5 13l4 4L19 7"):s.setAttribute("d","M6 18L18 6M6 6l12 12"),s.style.strokeDasharray="30",s.style.strokeDashoffset="30",s.style.animation="veil-draw 300ms ease forwards",r.appendChild(s);let i=document.createElement("span");i.textContent=d,n.append(r,i);}var W=false;function de(){if(W||typeof document>"u")return;W=true;let n=document.createElement("style");n.id="veilkit-button-styles",n.textContent=`
583
+ `,document.head.appendChild(n);}var $={en:{loading:"Loading content, please wait\u2026",loaded:"Content loaded.",progress:"Loading progress",busy:"Busy"},es:{loading:"Cargando contenido, por favor espere\u2026",loaded:"Contenido cargado.",progress:"Progreso de carga",busy:"Ocupado"},fr:{loading:"Chargement du contenu, veuillez patienter\u2026",loaded:"Contenu charg\xE9.",progress:"Progression du chargement",busy:"Occup\xE9"},de:{loading:"Inhalt wird geladen, bitte warten\u2026",loaded:"Inhalt geladen.",progress:"Ladefortschritt",busy:"Besch\xE4ftigt"},ja:{loading:"\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u8AAD\u307F\u8FBC\u3093\u3067\u3044\u307E\u3059\u2026",loaded:"\u8AAD\u307F\u8FBC\u307F\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002",progress:"\u8AAD\u307F\u8FBC\u307F\u72B6\u6CC1",busy:"\u51E6\u7406\u4E2D"},zh:{loading:"\u6B63\u5728\u52A0\u8F7D\u5185\u5BB9\uFF0C\u8BF7\u7A0D\u5019\u2026",loaded:"\u5185\u5BB9\u52A0\u8F7D\u5B8C\u6210\u3002",progress:"\u52A0\u8F7D\u8FDB\u5EA6",busy:"\u5FD9\u788C\u4E2D"},ar:{loading:"\u062C\u0627\u0631\u064A \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0645\u062D\u062A\u0648\u0649\u060C \u064A\u0631\u062C\u0649 \u0627\u0644\u0627\u0646\u062A\u0638\u0627\u0631\u2026",loaded:"\u062A\u0645 \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0645\u062D\u062A\u0648\u0649.",progress:"\u062A\u0642\u062F\u0645 \u0627\u0644\u062A\u062D\u0645\u064A\u0644",busy:"\u0645\u0634\u063A\u0648\u0644"}},se="en",X={};function re(n){return X[n]?X[n]:($[se]||$.en)[n]||$.en[n]||"Loading\u2026"}function q(n,e){n.setAttribute("aria-busy","true");let p=n.querySelector(".veil-sr-only");return p||(p=document.createElement("span"),p.className="veil-sr-only",p.setAttribute("role","status"),p.setAttribute("aria-live","polite"),n.appendChild(p)),p.textContent=e||re("loading"),p}function V(n){n.removeAttribute("aria-busy");let e=n.querySelector(".veil-sr-only");e&&e.remove();}var b=new Map,R="",M=class{show(e,p={}){g();let l,r=!e;if(r?l=document.body:typeof e=="string"?(l=document.querySelector(e),l||(l=document.body)):l=e,b.has(l))return b.get(l);let s=document.createElement("div");if(s.className=`veil-overlay ${r?"veil-overlay-fullscreen":""} ${p.className||""}`.trim(),s.setAttribute("role","status"),p.color&&s.style.setProperty("--veil-overlay-bg",p.color),p.blur!==void 0){let t=typeof p.blur=="boolean"?p.blur?"8px":"0px":p.blur;s.style.setProperty("--veil-overlay-blur",t);}if(p.zIndex!==void 0&&(s.style.zIndex=String(p.zIndex)),p.spinner!==false){let t=typeof p.spinner=="string"?p.spinner:"ring",i=f({type:t,size:36});s.appendChild(i);}if(p.message){let t=document.createElement("span");t.className="veil-overlay-message",t.style.fontSize="14px",t.style.fontWeight="500",t.style.color="var(--veil-contrast, #1f2937)",t.textContent=p.message,s.appendChild(t);}return r||window.getComputedStyle(l).position==="static"&&(l.style.position="relative"),q(l,p.message),p.lockScroll&&r&&typeof document<"u"&&(R=document.body.style.overflow,document.body.style.overflow="hidden"),l.appendChild(s),b.set(l,s),s}hide(e){let p,l=!e;l?p=document.body:typeof e=="string"?(p=document.querySelector(e),p||(p=document.body)):p=e;let r=b.get(p);r&&(r.style.opacity="0",setTimeout(()=>{r.remove(),b.delete(p),V(p),l&&R!==void 0&&(document.body.style.overflow=R);},200));}},w=new M;function K(n,e={}){g(),de();let p=e.status||(e.loading?"loading":"idle"),l="",r="",s=n.innerHTML,t=null,i=e.pressFeedback||"press-scale";le(n,i);function a(){t&&(clearTimeout(t),t=null);}function d(y,m){a();let x=p;if(p=y,e.onStatusChange&&x!==y&&e.onStatusChange(y),y==="idle"){n.classList.remove("veil-btn-loading","veil-btn-success","veil-btn-error","veil-btn-shake","veil-btn-morph"),n.removeAttribute("aria-disabled"),n.removeAttribute("aria-busy"),n.style.width=l,n.style.height=r,n.innerHTML=s;return}if(x==="idle"){let h=n.getBoundingClientRect();l=n.style.width,r=n.style.height,s=n.innerHTML,h.width>0&&(n.style.width=`${h.width}px`),h.height>0&&(n.style.height=`${h.height}px`);}if(y==="loading"){n.classList.add("veil-btn-loading"),n.classList.remove("veil-btn-success","veil-btn-error"),n.setAttribute("aria-disabled","true"),n.setAttribute("aria-busy","true");let h=e.styleType||(e.spinnerPlacement==="replace"?"spinner-replace":e.spinnerPlacement==="end"?"spinner-right":"spinner-left");oe(n,h,e,m||e.loadingText);}else if(y==="success"){n.classList.remove("veil-btn-loading","veil-btn-error"),n.classList.add("veil-btn-success"),n.setAttribute("aria-busy","false"),F(n,"success",m||e.successText||"Success",e.resultAnimation);let h=e.resetAfter!==void 0?e.resetAfter:2e3;h>0&&(t=setTimeout(()=>d("idle"),h));}else if(y==="error"){n.classList.remove("veil-btn-loading","veil-btn-success"),n.classList.add("veil-btn-error"),n.setAttribute("aria-busy","false"),F(n,"error",m||e.errorText||"Failed",e.resultAnimation);let h=e.resetAfter!==void 0?e.resetAfter:2e3;h>0&&(t=setTimeout(()=>d("idle"),h));}}let c=async y=>{if(p!=="idle"){y.preventDefault(),y.stopPropagation();return}if(e.onClick)try{let m=e.onClick(y);m&&typeof m.then=="function"&&(d("loading"),await m,d("success"));}catch{d("error");}};return n.addEventListener("click",c),e.status?d(e.status):e.loading&&d("loading",e.loadingText),{setStatus:d,setLoading:(y,m)=>d(y?"loading":"idle",m),getStatus:()=>p,destroy:()=>{a(),n.removeEventListener("click",c),d("idle");}}}function le(n,e){if(e!=="none")if(e==="press-scale"){n.style.transition="transform 100ms ease, box-shadow 150ms ease",n.addEventListener("mousedown",()=>{n.style.transform="scale(0.97)";});let p=()=>{n.style.transform="scale(1)";};n.addEventListener("mouseup",p),n.addEventListener("mouseleave",p);}else e==="ripple"?(n.style.position="relative",n.style.overflow="hidden",n.addEventListener("click",p=>{let l=n.getBoundingClientRect(),r=document.createElement("span"),s=Math.max(l.width,l.height),t=s/2;r.style.width=r.style.height=`${s}px`,r.style.left=`${p.clientX-l.left-t}px`,r.style.top=`${p.clientY-l.top-t}px`,r.className="veil-btn-ripple";let i=n.querySelector(".veil-btn-ripple");i&&i.remove(),n.appendChild(r);})):e==="glow-follow"&&n.addEventListener("mousemove",p=>{let l=n.getBoundingClientRect(),r=p.clientX-l.left,s=p.clientY-l.top;n.style.setProperty("--veil-mouse-x",`${r}px`),n.style.setProperty("--veil-mouse-y",`${s}px`);});}function oe(n,e,p,l){let r=p.spinner||"ring",s=l||n.textContent?.trim()||"";switch(n.innerHTML="",e){case "spinner-left":{let t=f({type:r,size:16,color:"currentColor"});t.classList.add("veil-btn-spinner-wrap");let i=document.createElement("span");i.textContent=s,n.append(t,i);break}case "spinner-right":{let t=document.createElement("span");t.textContent=s;let i=f({type:r,size:16,color:"currentColor"});i.classList.add("veil-btn-spinner-wrap"),i.style.marginLeft="8px",i.style.marginRight="0",n.append(t,i);break}case "spinner-replace":{let t=f({type:r,size:20,color:"currentColor"});n.appendChild(t);break}case "dots-after-text":{let t=document.createElement("span");t.textContent=s;let i=document.createElement("span");i.className="veil-btn-typing-dots",i.textContent="...",n.append(t,i);break}case "progress-fill":{let t=document.createElement("div");t.className="veil-btn-progress-bar";let i=p.progress!==void 0?p.progress:60;t.style.width=`${i}%`;let a=document.createElement("span");a.style.position="relative",a.style.zIndex="2",a.textContent=s,n.append(t,a);break}case "shimmer-surface":{let t=document.createElement("span");t.textContent=s,t.style.position="relative",t.style.zIndex="2";let i=document.createElement("div");i.className="veil-btn-shimmer",n.append(t,i);break}case "pulse-glow":{n.classList.add("veil-btn-pulse-glow");let t=document.createElement("span");t.textContent=s,n.appendChild(t);break}case "stripes-progress":{let t=document.createElement("div");t.className="veil-btn-stripes";let i=document.createElement("span");i.style.position="relative",i.style.zIndex="2",i.textContent=s,n.append(t,i);break}case "morph-circle":{n.classList.add("veil-btn-morph");let t=f({type:r,size:20,color:"currentColor"});n.appendChild(t);break}case "slide-text":{let t=document.createElement("span");t.className="veil-btn-slide-wrap";let i=document.createElement("span");i.className="veil-btn-slide-out",i.textContent=s;let a=document.createElement("span");a.className="veil-btn-slide-in",a.textContent=l||"Loading\u2026",t.append(i,a),n.appendChild(t);break}case "border-trace":{let t=document.createElement("span");t.textContent=s,t.style.position="relative",t.style.zIndex="2";let i=document.createElement("div");i.className="veil-btn-border-trace",n.append(t,i);break}case "liquid-fill":{let t=document.createElement("div");t.className="veil-btn-liquid";let i=document.createElement("span");i.style.position="relative",i.style.zIndex="2",i.textContent=s,n.append(t,i);break}case "bounce-dots":{let t=f({type:"dots",size:22,color:"currentColor"}),i=document.createElement("span");i.textContent=s?` ${s}`:"",n.append(t,i);break}case "glass-shine":{n.classList.add("veil-btn-glass-shine");let t=document.createElement("span");t.textContent=s,n.appendChild(t);break}case "neon-pulse":{n.classList.add("veil-btn-neon-pulse");let t=document.createElement("span");t.textContent=s,n.appendChild(t);break}case "skeleton-button":{let t=document.createElement("div");t.className="veil-skeleton",t.setAttribute("data-veil-shape","button"),t.setAttribute("data-veil-anim","shimmer"),t.style.width="100%",t.style.height="100%",n.appendChild(t);break}}}function F(n,e,p,l="checkmark"){if(n.innerHTML="",n.style.display="inline-flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.gap="8px",e==="error"&&(l==="shake"||l==="cross"||l==="none")&&n.classList.add("veil-btn-shake"),e==="success"&&l==="success-burst"){let i=document.createElement("div");i.className="veil-btn-burst",n.appendChild(i);}let r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("viewBox","0 0 24 24"),r.style.width="18px",r.style.height="18px",r.style.stroke="currentColor",r.style.strokeWidth="2.5",r.style.fill="none",r.style.strokeLinecap="round",r.style.strokeLinejoin="round";let s=document.createElementNS("http://www.w3.org/2000/svg","path");e==="success"?s.setAttribute("d","M5 13l4 4L19 7"):s.setAttribute("d","M6 18L18 6M6 6l12 12"),s.style.strokeDasharray="30",s.style.strokeDashoffset="30",s.style.animation="veil-draw 300ms ease forwards",r.appendChild(s);let t=document.createElement("span");t.textContent=p,n.append(r,t);}var W=false;function de(){if(W||typeof document>"u")return;W=true;let n=document.createElement("style");n.id="veilkit-button-styles",n.textContent=`
584
584
  .veil-btn-loading { position: relative; cursor: wait !important; pointer-events: none; }
585
585
  .veil-btn-success { background-color: #10b981 !important; color: #fff !important; }
586
586
  .veil-btn-error { background-color: #ef4444 !important; color: #fff !important; }
@@ -656,5 +656,5 @@ ${D()}
656
656
  @keyframes veil-liquid-wave { from { transform: scaleY(0.7); } to { transform: scaleY(1); } }
657
657
  @keyframes veil-burst { 0% { opacity: 1; transform: scale(0.95); } 100% { opacity: 0; transform: scale(1.2); } }
658
658
  @keyframes veil-typing-text { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
659
- `,document.head.appendChild(n);}function Je(n,e={}){let d=e.lines||e.count&&e.count>1?u(e.lines||e.count||3,e):c(e);return n.appendChild(d),{destroy(){d.remove();}}}function Ze(n,e={}){let d=f(e);return n.appendChild(d),{destroy(){d.remove();}}}function Qe(n,e={}){let d=Y(e);return n.appendChild(d),{destroy(){d.remove();}}}function et(n,e={}){return e.visible&&w.show(n,e),{update(d){d.visible?w.show(n,d):w.hide(n);},destroy(){w.hide(n);}}}function tt(n,e){let d=A(e);return n.appendChild(d),{destroy(){d.remove();}}}function it(n,e={}){let d=K(n,e);return {update(l){l.status?d.setStatus(l.status,l.loadingText):d.setLoading(!!l.loading,l.loadingText);},destroy(){d.destroy();}}}export{ae as default,it as loadingButtonAction,et as overlayAction,tt as presetAction,Qe as progressAction,Me as setupSvelteKitProgress,Je as skeletonAction,Ze as spinnerAction,ae as veil};//# sourceMappingURL=index.js.map
659
+ `,document.head.appendChild(n);}function Je(n,e={}){let p=e.lines||e.count&&e.count>1?u(e.lines||e.count||3,e):o(e);return n.appendChild(p),{destroy(){p.remove();}}}function Ze(n,e={}){let p=f(e);return n.appendChild(p),{destroy(){p.remove();}}}function Qe(n,e={}){let p=Y(e);return n.appendChild(p),{destroy(){p.remove();}}}function et(n,e={}){return e.visible&&w.show(n,e),{update(p){p.visible?w.show(n,p):w.hide(n);},destroy(){w.hide(n);}}}function tt(n,e){let p=A(e);return n.appendChild(p),{destroy(){p.remove();}}}function it(n,e={}){let p=K(n,e);return {update(l){l.status?p.setStatus(l.status,l.loadingText):p.setLoading(!!l.loading,l.loadingText);},destroy(){p.destroy();}}}export{ae as default,it as loadingButtonAction,et as overlayAction,tt as presetAction,Qe as progressAction,Me as setupSvelteKitProgress,Je as skeletonAction,Ze as spinnerAction,ae as veil};//# sourceMappingURL=index.js.map
660
660
  //# sourceMappingURL=index.js.map