vanilla-breeze 0.7.2 → 0.7.3

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 (95) hide show
  1. package/custom-elements.json +1 -1
  2. package/dist/cdn/components/manifest.json +1 -1
  3. package/dist/cdn/components/settings-panel.js +43 -44
  4. package/dist/cdn/packs/ambient.bundle.js +2 -0
  5. package/dist/cdn/packs/ambient.core.js +2 -0
  6. package/dist/cdn/packs/ambient.effects.css +2 -0
  7. package/dist/cdn/packs/ambient.full.css +5 -0
  8. package/dist/cdn/packs/ambient.full.js +2 -0
  9. package/dist/cdn/packs/ambient.head.js +1 -0
  10. package/dist/cdn/packs/ambient.resolve.js +2 -0
  11. package/dist/cdn/packs/ambient.theme.css +2 -0
  12. package/dist/cdn/packs/manifest.json +35 -1
  13. package/dist/cdn/packs/ui.full.js +23 -23
  14. package/dist/cdn/themes/8bit.tokens.json +1 -1
  15. package/dist/cdn/themes/alpha1999-dark.tokens.json +1 -1
  16. package/dist/cdn/themes/alpha1999.tokens.json +1 -1
  17. package/dist/cdn/themes/art-deco-dark.tokens.json +1 -1
  18. package/dist/cdn/themes/art-deco.tokens.json +1 -1
  19. package/dist/cdn/themes/bauhaus-dark.tokens.json +1 -1
  20. package/dist/cdn/themes/bauhaus.tokens.json +1 -1
  21. package/dist/cdn/themes/brutalist-dark.tokens.json +1 -1
  22. package/dist/cdn/themes/brutalist.tokens.json +1 -1
  23. package/dist/cdn/themes/catppuccin-frappe.tokens.json +1 -1
  24. package/dist/cdn/themes/catppuccin-latte-dark.tokens.json +1 -1
  25. package/dist/cdn/themes/catppuccin-latte.tokens.json +1 -1
  26. package/dist/cdn/themes/catppuccin-macchiato.tokens.json +1 -1
  27. package/dist/cdn/themes/catppuccin-mocha.tokens.json +1 -1
  28. package/dist/cdn/themes/classic-dark.tokens.json +1 -1
  29. package/dist/cdn/themes/classic.tokens.json +1 -1
  30. package/dist/cdn/themes/claymorphism-dark.tokens.json +1 -1
  31. package/dist/cdn/themes/claymorphism.tokens.json +1 -1
  32. package/dist/cdn/themes/clinical-dark.tokens.json +1 -1
  33. package/dist/cdn/themes/clinical.tokens.json +1 -1
  34. package/dist/cdn/themes/cottagecore-dark.tokens.json +1 -1
  35. package/dist/cdn/themes/cottagecore.tokens.json +1 -1
  36. package/dist/cdn/themes/cyber.tokens.json +1 -1
  37. package/dist/cdn/themes/dawn-dark.tokens.json +1 -1
  38. package/dist/cdn/themes/dawn.tokens.json +1 -1
  39. package/dist/cdn/themes/dracula.tokens.json +1 -1
  40. package/dist/cdn/themes/dusk.tokens.json +1 -1
  41. package/dist/cdn/themes/editorial-dark.tokens.json +1 -1
  42. package/dist/cdn/themes/editorial.tokens.json +1 -1
  43. package/dist/cdn/themes/financial-dark.tokens.json +1 -1
  44. package/dist/cdn/themes/financial.tokens.json +1 -1
  45. package/dist/cdn/themes/genai.tokens.json +1 -1
  46. package/dist/cdn/themes/glassmorphism-dark.tokens.json +1 -1
  47. package/dist/cdn/themes/glassmorphism.tokens.json +1 -1
  48. package/dist/cdn/themes/government-dark.tokens.json +1 -1
  49. package/dist/cdn/themes/government.tokens.json +1 -1
  50. package/dist/cdn/themes/gruvbox-dark.tokens.json +1 -1
  51. package/dist/cdn/themes/gruvbox.tokens.json +1 -1
  52. package/dist/cdn/themes/high-noon-dark.tokens.json +1 -1
  53. package/dist/cdn/themes/high-noon.tokens.json +1 -1
  54. package/dist/cdn/themes/journal-dark.tokens.json +1 -1
  55. package/dist/cdn/themes/journal.tokens.json +1 -1
  56. package/dist/cdn/themes/kawaii-dark.tokens.json +1 -1
  57. package/dist/cdn/themes/kawaii.tokens.json +1 -1
  58. package/dist/cdn/themes/magna-dark.tokens.json +1 -1
  59. package/dist/cdn/themes/magna.tokens.json +1 -1
  60. package/dist/cdn/themes/midnight.tokens.json +1 -1
  61. package/dist/cdn/themes/minimal-dark.tokens.json +1 -1
  62. package/dist/cdn/themes/minimal.tokens.json +1 -1
  63. package/dist/cdn/themes/modern-dark.tokens.json +1 -1
  64. package/dist/cdn/themes/modern.tokens.json +1 -1
  65. package/dist/cdn/themes/nes-dark.tokens.json +1 -1
  66. package/dist/cdn/themes/nes.tokens.json +1 -1
  67. package/dist/cdn/themes/neumorphism-dark.tokens.json +1 -1
  68. package/dist/cdn/themes/neumorphism.tokens.json +1 -1
  69. package/dist/cdn/themes/nord-dark.tokens.json +1 -1
  70. package/dist/cdn/themes/nord.tokens.json +1 -1
  71. package/dist/cdn/themes/organic-dark.tokens.json +1 -1
  72. package/dist/cdn/themes/organic.tokens.json +1 -1
  73. package/dist/cdn/themes/rose-pine-dark.tokens.json +1 -1
  74. package/dist/cdn/themes/rose-pine.tokens.json +1 -1
  75. package/dist/cdn/themes/rough-dark.tokens.json +1 -1
  76. package/dist/cdn/themes/rough.tokens.json +1 -1
  77. package/dist/cdn/themes/solarized-dark.tokens.json +1 -1
  78. package/dist/cdn/themes/solarized.tokens.json +1 -1
  79. package/dist/cdn/themes/startup-dark.tokens.json +1 -1
  80. package/dist/cdn/themes/startup.tokens.json +1 -1
  81. package/dist/cdn/themes/super2026-dark.tokens.json +1 -1
  82. package/dist/cdn/themes/super2026.tokens.json +1 -1
  83. package/dist/cdn/themes/swiss-dark.tokens.json +1 -1
  84. package/dist/cdn/themes/swiss.tokens.json +1 -1
  85. package/dist/cdn/themes/terminal.tokens.json +1 -1
  86. package/dist/cdn/themes/tokyo-night-dark.tokens.json +1 -1
  87. package/dist/cdn/themes/tokyo-night.tokens.json +1 -1
  88. package/dist/cdn/themes/vaporwave-dark.tokens.json +1 -1
  89. package/dist/cdn/themes/vaporwave.tokens.json +1 -1
  90. package/dist/cdn/themes/win9x-dark.tokens.json +1 -1
  91. package/dist/cdn/themes/win9x.tokens.json +1 -1
  92. package/dist/cdn/vanilla-breeze-autoload.js +114 -115
  93. package/dist/cdn/vanilla-breeze-core.js +77 -78
  94. package/dist/cdn/vanilla-breeze.js +145 -146
  95. package/package.json +7 -2
@@ -1,14 +1,14 @@
1
- var bb=Object.defineProperty;var v=(e,t)=>()=>(e&&(t=e(e=0)),t);var T=(e,t)=>{for(var i in t)bb(e,i,{get:t[i],enumerable:!0})};function Fe(){return vn()}function vn(){if(typeof window<"u"&&window.__VB_THEME_BASE)return String(window.__VB_THEME_BASE).replace(/\/$/,"");if(nl)return nl;if(typeof document<"u"){let e=document.querySelectorAll('script[src*="vanilla-breeze"]');for(let t of e){let i=t.getAttribute("src");if(i){let s=i.lastIndexOf("/");if(s!==-1)return i.slice(0,s)}}}return"/cdn"}function rl(e){return typeof CSS<"u"&&CSS.escape?CSS.escape(e):String(e).replace(/["\\]/g,"\\$&")}function al(e){document.querySelectorAll(`link[data-vb-theme-preload="${rl(e)}"]`).forEach(t=>t.remove())}function wn(e){return vb.has(e)}function wb(e,t){return`${t}/themes/${e}.css`}function ol(e,t){if(!wn(e))return Promise.resolve();if(yn.has(e))return yn.get(e);let i=import(`${t}/packs/${e}.full.js`).catch(()=>{});return yn.set(e,i),i}function Ab(e,t){let i=vn(),s=()=>{(wn(t)||e.hasAttribute("data-vb-pack"))&&ol(t,i)};return e.getAttribute("data-vb-theme-state")==="error"?Promise.reject(new Error(`Failed to load theme: ${t}`)):e.getAttribute("data-vb-theme-state")==="ready"||e.sheet?(s(),Promise.resolve()):new Promise((n,r)=>{let a=()=>{e.setAttribute("data-vb-theme-state","ready"),c(),s(),n(void 0)},o=()=>{e.setAttribute("data-vb-theme-state","error"),$t.delete(t),c(),r(new Error(`Failed to load theme: ${t}`))},c=()=>{e.removeEventListener("load",a),e.removeEventListener("error",o)};e.addEventListener("load",a,{once:!0}),e.addEventListener("error",o,{once:!0})})}async function Pe(e){if(!e||yb.has(e))return;if($t.has(e))return $t.get(e);if(typeof document<"u"){let s=document.querySelector(`link[data-vb-theme="${rl(e)}"]`);if(s){let n=Ab(s,e);return $t.set(e,n),n}}let t=vn(),i=wn(e)?kb(e,t):Eb(e,t);return $t.set(e,i),i}async function Eb(e,t){let i=wb(e,t);return new Promise((s,n)=>{al(e);let r=document.createElement("link");r.rel="stylesheet",r.href=i,r.setAttribute("data-vb-theme",e),r.setAttribute("data-vb-theme-state","loading"),r.onload=()=>{r.setAttribute("data-vb-theme-state","ready"),s()},r.onerror=()=>{r.setAttribute("data-vb-theme-state","error"),r.remove(),$t.delete(e),n(new Error(`Failed to load theme: ${e}`))},document.head.appendChild(r)})}function kb(e,t){let i=`${t}/packs/${e}.theme.css`,s=`${t}/packs/${e}.effects.css`;return new Promise((n,r)=>{al(e);let a=document.createElement("link");a.rel="stylesheet",a.href=i,a.setAttribute("data-vb-theme",e),a.setAttribute("data-vb-pack",e),a.setAttribute("data-vb-theme-state","loading"),a.onload=()=>{a.setAttribute("data-vb-theme-state","ready");let o=document.createElement("link");o.rel="stylesheet",o.href=s,o.setAttribute("data-vb-pack-effects",e),document.head.appendChild(o),ol(e,t),n()},a.onerror=()=>{a.setAttribute("data-vb-theme-state","error"),a.remove(),$t.delete(e),r(new Error(`Failed to load pack: ${e}`))},document.head.appendChild(a)})}var $t,yn,nl,yb,vb,Oe=v(()=>{$t=new Map,yn=new Map,nl=null;yb=new Set(["default","a11y-high-contrast","a11y-large-text","a11y-dyslexia","modern","minimal","classic"]),vb=new Set(["kawaii","memphis"])});function Sb(){let e=globalThis.localStorage;if(!e)throw new Error("VBStore: localStorage is not available in this environment");return{async getRaw(t){return e.getItem(t)},async setRaw(t,i){e.setItem(t,i)},async removeRaw(t){e.removeItem(t)},async keys(t){let i=[];for(let s=0;s<e.length;s++){let n=e.key(s);n&&n.startsWith(t)&&i.push(n)}return i}}}function gt(){return $i[_i]||($i[_i]=Sb()),$i[_i]}function kn(e,t){if(typeof e!="string"||!e)throw new TypeError("VBStore: namespace must be a non-empty string");if(typeof t!="string"||!t)throw new TypeError("VBStore: key must be a non-empty string");return`vb:${e}:${t}`}function hl(e){if(typeof e!="string"||!e)throw new TypeError("VBStore: namespace must be a non-empty string");return`vb:${e}:`}function fl(e){try{let t=JSON.parse(e);if(t&&typeof t=="object"&&typeof t.timestamp=="number")return t}catch{}return null}var _i,$i,x,ct=v(()=>{_i="__vbStoreBackend",$i=globalThis;x={configure(e={}){$i[_i]=e.backend??null},async set(e,t,i){let s={data:i,timestamp:Date.now()};await gt().setRaw(kn(e,t),JSON.stringify(s))},async get(e,t,i){let s=await gt().getRaw(kn(e,t));if(s==null)return null;let n=fl(s);return!n||i?.maxAge!=null&&Date.now()-n.timestamp>i.maxAge?null:n.data},async remove(e,t){await gt().removeRaw(kn(e,t))},async list(e){let t=hl(e),i=await gt().keys(t),s=[];for(let n of i){let r=await gt().getRaw(n);if(r==null)continue;let a=fl(r);a&&s.push({key:n.slice(t.length),data:a.data,timestamp:a.timestamp})}return s},async clear(e){let t=hl(e),i=await gt().keys(t);for(let s of i)await gt().removeRaw(s)},async clearAll(){let e=await gt().keys("vb:");for(let t of e)await gt().removeRaw(t)},async setMany(e,t){for(let[i,s]of t)await x.set(e,i,s)}};if(typeof window<"u"){let e=window.VB??(window.VB={});e.store??=x}});function yy(e){return String(e).replace(/[\u0000- \u007f-\u009f]/g,"").toLowerCase()}function Ml(e,t=!1){let i=yy(e);return t?/(^|,)(javascript|vbscript|livescript):/.test(i)?!0:/(^|,)data:/.test(i)?i.split(/(?=data:)/).filter(n=>n.startsWith("data:")).some(n=>!/^data:(image|audio|video|font)\//.test(n)):!1:/^(javascript|vbscript|livescript|data):/.test(i)}function Il(e){let t=String(e).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\\/g,"").replace(/\s+/g,"").toLowerCase();return/expression\(|javascript:|vbscript:|-moz-binding|behavior:|@import|position:fixed/.test(t)}function wy(e,t){if(_l.has(t))return!0;let i=e.namespaceURI;return!!(i&&!oy.has(i)||t==="title"&&i!==zn||$l.has(t)&&i===zn&&e.children?.length||cy.has(t)&&(e.getAttribute("attributeName")||e.getAttribute("attributename")||"").toLowerCase().includes("href"))}function Ay(e,t){for(let i of[...e.attributes]){let s=i.name.toLowerCase();if(s.startsWith("on")||dy.has(s)||!t.keepIds&&hy.has(s)){e.removeAttribute(i.name);continue}if(s==="style"){(!t.keepStyle||Il(i.value))&&e.removeAttribute(i.name);continue}if((s==="id"||s==="name")&&!t.keepIds){let n=vy(i.value);s==="id"?t.ids.set(i.value,n):t.ids.set(`name:${i.value}`,n),e.setAttribute(i.name,n);continue}if(ly.has(s)||s.endsWith(":href")){Ml(i.value,!1)&&e.removeAttribute(i.name);continue}uy.has(s)&&Ml(i.value,!0)&&e.removeAttribute(i.name)}}function Ey(e,t){let i=(e.getAttribute("type")||"").toLowerCase();t==="button"&&i!=="button"&&e.setAttribute("type","button"),t==="input"&&/^(submit|reset|image)$/.test(i)&&e.setAttribute("type","button")}function ky(e,t){for(let i of e)for(let s of[...i.attributes]){let n=s.name.toLowerCase(),r=s.value;if((n==="href"||n.endsWith(":href"))&&r.startsWith("#")){let a=Sy(r.slice(1));t.has(a)&&i.setAttribute(s.name,`#${t.get(a)}`)}else if(n==="usemap"&&r.startsWith("#")){let a=t.get(`name:${r.slice(1)}`);a?i.setAttribute(s.name,`#${a}`):i.removeAttribute(s.name)}else if(fy.has(n)){let a=r.split(/\s+/).filter(Boolean).map(o=>t.get(o)||(o.startsWith(Un)?o:null)).filter(Boolean);a.length?i.setAttribute(s.name,a.join(" ")):i.removeAttribute(s.name)}else r.includes("url(#")&&i.setAttribute(s.name,r.replace(/url\(#([^)]+)\)/g,(a,o)=>t.has(o)?`url(#${t.get(o)})`:a))}}function Sy(e){try{return decodeURIComponent(e)}catch{return e}}function Wn(e){let t=e.childNodes;if(t)for(let i of[...t])i.nodeType===8?i.remove():(i.nodeType===1||i.nodeType===11)&&Wn(i)}function Gn(e,t){Wn(e);let i=[...e.querySelectorAll("*")];t.includeRoot&&i.unshift(e);let s=new Map,n=[],r={...t,ids:s};for(let a of i){if(!Cy(a,e))continue;let o=Bl(a);if(t.svgOnly&&($l.has(o)||o==="style")){if(o==="style"&&Il(a.textContent||"")){a.remove();continue}}else if(wy(a,o)){a.remove();continue}if(!t.keepIds&&!t.svgOnly&&my.has(o)){xy(a);continue}if(o==="template"){let l=a.content;l&&Gn(l,{...t,includeRoot:!1})}Ay(a,r),t.keepIds||Ey(a,o);let c=py[o];if(c)for(let l of c)a.removeAttribute(l);if(o==="include-file"&&!t.allowIncludeFile&&a.removeAttribute("src"),!t.keepIds&&!t.svgOnly&&o.includes("-")&&o!=="include-file"&&!by.has(o))for(let l of gy)a.removeAttribute(l);n.push(a)}!t.keepIds&&s.size&&ky(n,s)}function xy(e){let t=e.parentNode;if(t){for(let i of[...e.childNodes])t.insertBefore(i,e);e.remove()}}function Cy(e,t){let i=e;for(;i;){if(i===t)return!0;i=i.parentNode??i.parent??null}return!1}function ne(e,t={}){let i=document.createElement("template");return e&&typeof e=="string"&&(i.innerHTML=e,Gn(i.content,{allowIncludeFile:!!t.allowIncludeFile,keepIds:!!t.keepIds,keepStyle:!!t.keepStyle})),i.content}function Rl(e){return!e||typeof e!="object"||!("attributes"in e)||Gn(e,{includeRoot:!0,keepIds:!0,keepStyle:!0,svgOnly:!0}),e}function Fl(e){let t=document.createElement("template");if(!e||typeof e!="string")return t.content;t.innerHTML=e,t.content.querySelector("math")||(t.innerHTML=`<math>${e}</math>`);let i=t.content;Wn(i);for(let s of[...i.childNodes])s.nodeType===3&&!s.textContent?.trim()||(s.nodeType!==1||s.namespaceURI!==Vn)&&s.remove();for(let s of[...i.querySelectorAll("*")]){if(!i.contains(s))continue;let n=Bl(s);if(s.namespaceURI!==Vn||_l.has(n)){s.remove();continue}for(let r of[...s.attributes])Ty.test(r.name.toLowerCase())&&s.removeAttribute(r.name)}return i}var ay,zn,Vn,oy,Un,_l,$l,cy,ly,uy,dy,hy,fy,py,my,gy,by,Bl,vy,Ty,Rt=v(()=>{ay="http://www.w3.org/1999/xhtml",zn="http://www.w3.org/2000/svg",Vn="http://www.w3.org/1998/Math/MathML",oy=new Set([ay,zn,Vn]),Un="user-content-",_l=new Set(["script","iframe","frame","frameset","object","embed","applet","portal","fencedframe","form","base","link","meta","noscript","foreignobject","style","xmp","noembed","noframes","plaintext","mglyph","malignmark","annotation-xml"]),$l=new Set(["title","desc"]),cy=new Set(["animate","set","animatemotion","animatetransform"]),ly=new Set(["href","xlink:href","action","formaction","data","codebase","cite","background","longdesc","manifest","to","from","values","by"]),uy=new Set(["src","poster","srcset"]),dy=new Set(["srcdoc","form","formaction","formmethod","formtarget","formenctype","formnovalidate","action","method","ping"]),hy=new Set(["popovertarget","popovertargetaction","commandfor","command","interestfor","autofocus"]),fy=new Set(["for","headers","list","aria-labelledby","aria-describedby","aria-controls","aria-owns","aria-flowto","aria-details","aria-errormessage","aria-activedescendant"]),py={"include-file":["trusted","allow-scripts","allow-cross-origin"],"markdown-viewer":["src","sanitize","ping","allow-cross-origin"]},my=new Set(["social-embed","youtube-player","geo-map"]),gy=["src","src-dark","data-src","url","endpoint","tile-url","data-versions"],by=new Set(["audio-player","video-player","image-map","brand-mark"]);Bl=e=>String(e.localName||e.tagName||"").toLowerCase(),vy=e=>e.startsWith(Un)?e:Un+e;Ty=/^(on|href$|src$|style$|id$|name$|xlink|xml:|form[a-z])/});function $y(e,t){let i=jl.get(t);i||jl.set(t,i=new Map);let s=i.get(e);if(!s||!s.region.isConnected){let r=(t.ownerDocument||document).createElement("span");r.setAttribute("data-vb-announcer",e),r.setAttribute("role",e==="assertive"?"alert":"status"),r.setAttribute("aria-live",e),r.setAttribute("aria-atomic","true"),r.style.cssText=_y,t.appendChild(r),s={region:r},i.set(e,s)}return s}function G(e,{politeness:t="polite",root:i}={}){let s=String(e??"").trim();if(!s||typeof document>"u")return null;let n=i||document.body;if(!n)return null;let a=$y(t==="assertive"?"assertive":"polite",n);return clearTimeout(a.write),clearTimeout(a.clear),a.region.textContent="",a.write=setTimeout(()=>{a.region.textContent=s,a.clear=setTimeout(()=>{a.region.textContent=""},7e3)},50),a.region}function B(e,t,i,s){let n=`data-label-${t}`,a=e?.closest?.(`[${n}]`)?.getAttribute(n)||i;return s?a.replace(/\{(\w+)\}/g,(o,c)=>c in s?String(s[c]):o):a}var _y,jl,dt=v(()=>{_y=["position:absolute","inline-size:1px","block-size:1px","padding:0","margin:-1px","overflow:hidden","clip-path:inset(50%)","white-space:nowrap","border:0"].join(";"),jl=new WeakMap});var Vl={};T(Vl,{copyRich:()=>Fy,copyText:()=>bt,initCopyButtons:()=>qy,pasteFromClipboard:()=>Hl});function By(e){if(typeof document.execCommand!="function"||!document.body)return!1;let t=document.activeElement,i=document.createElement("textarea");i.value=e,i.setAttribute("readonly",""),i.setAttribute("aria-hidden","true"),i.style.cssText="position:fixed;inset-block-start:0;inset-inline-start:0;opacity:0;pointer-events:none",document.body.appendChild(i),i.select();let s=!1;try{s=document.execCommand("copy")}catch{s=!1}return i.remove(),t?.focus?.({preventScroll:!0}),s}function Ry(e){if(!e)return!1;if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)return e.focus(),e.select(),!0;let t=window.getSelection?.();if(!t)return!1;let i=document.createRange();return i.selectNodeContents(e),t.removeAllRanges(),t.addRange(i),!t.isCollapsed}async function bt(e,t={}){if(e==null||e==="")return!1;let{button:i,duration:s=Qn}=t,n=!1,r=null;try{if(!navigator.clipboard?.writeText)throw new Error("Clipboard API unavailable");await navigator.clipboard.writeText(e),n=!0}catch(o){r=o,n=By(e)}if(n)return re({button:i,duration:s,state:"copied",eventName:"copy:done",eventDetail:{text:e},message:t.announceMessage??B(i,"copied",Ft.copied)}),!0;let a=Ry(t.source);return re({button:i,duration:s,state:"failed",eventName:"copy:error",eventDetail:{text:e,error:r},message:t.failureMessage??B(i,"copy-failed",a?Ft["copy-failed-selected"]:Ft["copy-failed"])}),!1}async function Fy(e,t={}){let{text:i,html:s,blob:n}=e??{};if(!i&&!s&&!n)return!1;let{button:r,duration:a=Qn}=t;if(typeof ClipboardItem<"u"&&typeof navigator.clipboard?.write=="function"){let c={};i&&(c["text/plain"]=new Blob([i],{type:"text/plain"})),s&&(c["text/html"]=new Blob([s],{type:"text/html"})),n&&(c[n.type]=n);try{return await navigator.clipboard.write([new ClipboardItem(c)]),re({button:r,duration:a,state:"copied",eventName:"copy:done",eventDetail:{payload:e},message:t.announceMessage??B(r,"copied",Ft.copied)}),!0}catch{}}return i?bt(i,t):(re({button:r,duration:a,state:"failed",eventName:"copy:error",eventDetail:{payload:e,error:null},message:t.failureMessage??B(r,"copy-failed",Ft["copy-failed"])}),!1)}function re({button:e,duration:t,message:i,eventDetail:s,state:n,eventName:r}){if(e){e.dataset.state=n;let a=Jn.get(e);a&&clearTimeout(a),Jn.set(e,setTimeout(()=>{e.dataset.state===n&&delete e.dataset.state,Jn.delete(e)},t)),e.dispatchEvent(new CustomEvent(r,{bubbles:!0,detail:s}))}G(i,{politeness:n==="failed"?"assertive":"polite"})}async function Hl(e,t={}){let{button:i,duration:s=Qn}=t,n;try{if(!navigator.clipboard?.readText)throw new Error("Clipboard API unavailable");n=await navigator.clipboard.readText()}catch(r){return re({button:i,duration:s,state:"failed",eventName:"paste:error",eventDetail:{target:e,error:r},message:t.failureMessage??B(i,"paste-failed",Ft["paste-failed"])}),null}return e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement?e.value=n:e.textContent=n,e.dispatchEvent(new Event("input",{bubbles:!0}))),re({button:i,duration:s,state:"pasted",eventName:"paste:done",eventDetail:{text:n,target:e},message:t.announceMessage??B(i,"pasted",Ft.pasted)}),n}function zl(e){let t=e.dataset.copyTarget;if(!t)return null;try{return document.querySelector(t)}catch{return null}}function Py(e){if(e.dataset.copy)return e.dataset.copy;let t=zl(e);if(!t)return"";let i=e.dataset.copyAttr;return i?t.getAttribute(i)??"":t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t.value:t.textContent??""}function Oy(e){let t=e.target?.closest?.(Iy);if(!t||t.matches(':disabled, [aria-disabled="true"]'))return;if(t.dataset.pasteTarget){let s=null;try{s=document.querySelector(t.dataset.pasteTarget)}catch{}if(!s)return;Hl(s,{button:t});return}let i=Py(t);i&&bt(i,{button:t,source:zl(t)??void 0})}function qy(e=document){e.querySelectorAll("[data-copy-init]").forEach(t=>t.removeAttribute("data-copy-init"))}var Qn,Iy,Ft,Jn,ae=v(()=>{dt();Qn=1500,Iy="[data-copy], [data-copy-target], [data-paste-target]",Ft={copied:"Copied to clipboard",pasted:"Pasted from clipboard","copy-failed":"Copy failed","copy-failed-selected":"Copy failed. Text selected, press Ctrl+C to copy","paste-failed":"Paste failed"},Jn=new WeakMap;typeof document<"u"&&!document.__vbCopyDelegated&&(document.__vbCopyDelegated=!0,document.addEventListener("click",Oy))});function Pt(e,t){return e.replace(/\{(\w+)\}/g,(i,s)=>s in t?String(t[s]):i)}function sr(e){switch(e.style){case"load-more":return Xy(e);case"prev-next":return Yy(e);default:return Ky(e)}}function nr(e="Pagination"){let t=document.createElement("nav");return t.setAttribute("data-paged-nav",""),t.setAttribute("aria-label",e),t}function Ky({page:e,totalPages:t,pageNumbers:i,navLabel:s,prevLabel:n="Previous",nextLabel:r="Next",pageLabel:a=o=>`Page ${o}`}){let o=nr(s),c=document.createElement("ol");c.setAttribute("role","list"),c.appendChild(ze(n,e-1,e===1,!1,"prev"));for(let l of i)if(l==="\u2026"){let u=document.createElement("li");u.textContent="\u2026",u.setAttribute("aria-hidden","true"),u.setAttribute("data-paged-ellipsis",""),c.appendChild(u)}else{let u=ze(String(l),l,!1,l===e,"page");u.firstElementChild?.setAttribute("aria-label",a(l)),c.appendChild(u)}return c.appendChild(ze(r,e+1,e===t,!1,"next")),o.appendChild(c),o}function Yy({page:e,totalPages:t,navLabel:i,prevLabel:s="Previous",nextLabel:n="Next",statusLabel:r=(a,o)=>`Page ${a} of ${o}`}){let a=nr(i),o=document.createElement("ol");o.setAttribute("role","list"),o.appendChild(ze(s,e-1,e===1,!1,"prev"));let c=document.createElement("li");return c.setAttribute("data-paged-status",""),c.setAttribute("aria-live","polite"),c.textContent=r(e,t),o.appendChild(c),o.appendChild(ze(n,e+1,e===t,!1,"next")),a.appendChild(o),a}function Xy({total:e,visible:t,navLabel:i,loadMoreLabel:s=r=>`Load more (${r})`,noMoreLabel:n="No more"}){let r=nr(i),a=document.createElement("button");a.type="button",a.setAttribute("data-paged-loadmore","");let o=Math.max(0,e-t);return a.textContent=o>0?s(o):n,a.disabled=o<=0,r.appendChild(a),r}function ze(e,t,i,s,n){let r=document.createElement("li"),a=document.createElement("button");return a.type="button",a.setAttribute("data-paged-action",n),a.dataset.pagedTarget=String(t),a.textContent=e,s&&a.setAttribute("aria-current","page"),i&&(a.disabled=!0),r.appendChild(a),r}function rr(e,{onNavigate:t,onLoadMore:i}){t&&e.querySelectorAll("button[data-paged-target]").forEach(s=>{s.addEventListener("click",()=>t(parseInt(s.dataset.pagedTarget||"1",10)))}),i&&e.querySelectorAll("button[data-paged-loadmore]").forEach(s=>{s.addEventListener("click",()=>i())})}function Wl(e,t){if(!e||!e.parentNode)return;let i=document.activeElement,n=!!i&&e.contains(i)&&i?{action:i.getAttribute("data-paged-action"),target:i.getAttribute("data-paged-target"),loadMore:i.hasAttribute("data-paged-loadmore")}:null,r=e.querySelector("[data-paged-status]"),a=t.querySelector("[data-paged-status]");r&&a&&(r.textContent!==a.textContent&&(r.textContent=a.textContent),a.hasAttribute("aria-live")?r.setAttribute("aria-live",a.getAttribute("aria-live")||"polite"):r.removeAttribute("aria-live"),a.replaceWith(r)),e.replaceWith(t),n&&Zy(t,n)}function Zy(e,t){let i=n=>e.querySelector(`${n}:not([disabled])`),s=[];t.loadMore&&s.push("button[data-paged-loadmore]"),t.action&&(s.push(`button[data-paged-action="${t.action}"][data-paged-target="${t.target}"]`),t.action!=="page"&&s.push(`button[data-paged-action="${t.action}"]`)),s.push('button[aria-current="page"]',"button");for(let n of s){let r=i(n);if(r){r.focus();return}}e.tabIndex=-1,e.focus()}var ar=v(()=>{});function Ui(e){return e.split("-")[0].toLowerCase()}function Qy(e){return Jy.has(Ui(e??R()))}function R(e){return At(e&&e.closest("[lang]")?.lang||document.documentElement.lang||navigator.language||"en")}function At(e,t="en-US"){try{if(e)return Intl.getCanonicalLocales(e),e}catch{}try{return Intl.getCanonicalLocales(t),t}catch{return"en-US"}}var Jy,or,Q=v(()=>{Jy=new Set(["ar","arc","dv","fa","ha","he","khw","ks","ku","ps","sd","ug","ur","uz","yi"]);or=class{constructor({locale:t,messages:i={},fallbackLocale:s="en",root:n=document}={}){this.locale=t??R(),this.messages=i,this.fallbackLocale=s,this.root=n}t(t,i={}){let s=Ui(this.locale),r=(this.messages[s]??this.messages[this.locale]??this.messages[this.fallbackLocale]??{})[t]??this.messages[this.fallbackLocale]?.[t]??t;for(let[a,o]of Object.entries(i))r=r.replaceAll(`{{${a}}}`,o);return r}apply(t=this.root){let i=t.querySelectorAll("[data-i18n]");for(let s of i){let n=s,r=n.dataset.i18n??"",a=n.dataset.i18nAttr,o=n.dataset.i18nVars?JSON.parse(n.dataset.i18nVars):{},c=this.t(r,o);if(a)n.setAttribute(a,c);else if(n.children.length===0)n.textContent=c;else{let l=[...n.childNodes].find(u=>u.nodeType===Node.TEXT_NODE);l?l.textContent=c:n.prepend(document.createTextNode(c))}}}async load(t,i){let s=await fetch(i);if(!s.ok)throw new Error(`VbI18n: failed to load messages from ${i}`);let n=await s.json();this.messages[t]={...this.messages[t]??{},...n}}setLocale(t){this.locale=t,this.apply(),document.dispatchEvent(new CustomEvent("vb:locale-change",{bubbles:!0,detail:{locale:t}}))}watch(){let t=i=>{this.locale=i.detail.locale,this.apply()};return document.addEventListener("vb:locale-change",t),()=>document.removeEventListener("vb:locale-change",t)}}});function Wi(e){return[...String(e??"").trim().toLowerCase().matchAll(/([^+]+|\+)(?:\+|$)/g)].map(i=>i[1].trim()).filter(Boolean).map(i=>i==="plus"?"+":i)}function dr(e,t=tt){let i=t?Gl.mac:Gl.other;if(e in i)return{label:i[e],spoken:(t?Kl.mac:Kl.other)[e],modifier:!0};let s=tv[e];if(s)return{...s,modifier:!1};let n=e.toUpperCase();return{label:n,spoken:n,modifier:!1}}function Yl(e){return Wi(e).map(t=>dr(t).label).join(tt?"":"+")}function iv(e){let t=String(e??"").toLowerCase();return ev[t]??t}function oe(e){let t=Wi(e);return{key:iv(t.pop()??""),meta:t.includes("meta")||t.includes("cmd"),ctrl:t.includes("ctrl")||t.includes("control"),shift:t.includes("shift"),alt:t.includes("alt")||t.includes("option")}}function Xl(e){return e.length===1&&!/[a-z0-9 ]/.test(e)}function Zl(e,t){let s=(e.key==="Spacebar"?" ":String(e.key??"").toLowerCase())===t.key;if(!s&&(e.altKey||e.shiftKey)&&/^[a-z0-9]$/.test(t.key)){let a=/\d/.test(t.key)?`Digit${t.key}`:`Key${t.key.toUpperCase()}`;s=e.code===a}if(!s)return!1;let n,r;return tt?(n=t.meta,r=t.ctrl):(n=!1,r=t.meta||t.ctrl),!(n!==e.metaKey||r!==e.ctrlKey||!Xl(t.key)&&t.shift!==e.shiftKey||t.alt!==e.altKey)}function Gi(e){let t=typeof e=="string"?oe(e):e;return!t.meta&&!t.ctrl&&!t.alt&&t.key.length===1}function Jl(e,t){let i=oe(e),s=oe(t),n=tt?i.ctrl:i.ctrl||i.meta,r=tt?s.ctrl:s.ctrl||s.meta,a=tt&&i.meta,o=tt&&s.meta,c=!Xl(i.key);return i.key===s.key&&n===r&&a===o&&i.alt===s.alt&&(!c||i.shift===s.shift)}function Ki(e,t=tt){let i=oe(e),s=[];i.alt&&s.push("Alt"),(i.ctrl||i.meta&&!t)&&s.push("Control"),i.meta&&t&&s.push("Meta"),i.shift&&s.push("Shift");let n=sv[i.key];return n||(n=/^f\d{1,2}$/.test(i.key)||i.key.length===1?i.key.toUpperCase():i.key[0].toUpperCase()+i.key.slice(1)),[...s,n].join("+")}var tt,Gl,Kl,tv,ev,sv,Ve=v(()=>{tt=/Mac|iPhone|iPad|iPod/.test(navigator.platform??""),Gl={mac:{meta:"\u2318",cmd:"\u2318",alt:"\u2325",option:"\u2325",shift:"\u21E7",ctrl:"\u2303",control:"\u2303"},other:{meta:"Ctrl",cmd:"Ctrl",alt:"Alt",option:"Alt",shift:"Shift",ctrl:"Ctrl",control:"Ctrl"}},Kl={mac:{meta:"Command",cmd:"Command",alt:"Option",option:"Option",shift:"Shift",ctrl:"Control",control:"Control"},other:{meta:"Control",cmd:"Control",alt:"Alt",option:"Alt",shift:"Shift",ctrl:"Control",control:"Control"}},tv={escape:{label:"Esc",spoken:"Escape"},esc:{label:"Esc",spoken:"Escape"},enter:{label:"Enter",spoken:"Enter"},return:{label:"Enter",spoken:"Enter"},tab:{label:"Tab",spoken:"Tab"},space:{label:"Space",spoken:"Space"},backspace:{label:"Backspace",spoken:"Backspace"},delete:{label:"Del",spoken:"Delete"},del:{label:"Del",spoken:"Delete"},insert:{label:"Ins",spoken:"Insert"},home:{label:"Home",spoken:"Home"},end:{label:"End",spoken:"End"},pageup:{label:"PgUp",spoken:"Page up"},pagedown:{label:"PgDn",spoken:"Page down"},arrowup:{label:"\u2191",spoken:"Up arrow"},up:{label:"\u2191",spoken:"Up arrow"},arrowdown:{label:"\u2193",spoken:"Down arrow"},down:{label:"\u2193",spoken:"Down arrow"},arrowleft:{label:"\u2190",spoken:"Left arrow"},left:{label:"\u2190",spoken:"Left arrow"},arrowright:{label:"\u2192",spoken:"Right arrow"},right:{label:"\u2192",spoken:"Right arrow"},"+":{label:"+",spoken:"Plus"},plus:{label:"+",spoken:"Plus"}};ev={esc:"escape",return:"enter",del:"delete",ins:"insert",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",space:" ",spacebar:" ",plus:"+",pgup:"pageup",pgdn:"pagedown"};sv={" ":"Space","+":"Plus",escape:"Escape",enter:"Enter",tab:"Tab",backspace:"Backspace",delete:"Delete",insert:"Insert",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",arrowup:"ArrowUp",arrowdown:"ArrowDown",arrowleft:"ArrowLeft",arrowright:"ArrowRight"}});function Ot(){return typeof document>"u"?!0:document.documentElement.getAttribute(Ue)!=="off"}function Ql(e){let t=document.documentElement,i=Ot();e?t.removeAttribute(Ue):t.setAttribute(Ue,"off"),i!==!!e&&window.dispatchEvent(new CustomEvent(nv,{detail:{enabled:!!e}}))}function av(){try{let e=globalThis.localStorage?.getItem(rv);if(!e)return null;let t=JSON.parse(e)?.data?.charShortcuts;return typeof t=="boolean"?t:null}catch{return null}}function eu(){return tu}var Ue,nv,rv,tu,hr=v(()=>{Ue="data-char-shortcuts",nv="vb:char-shortcuts-change",rv="vb:settings:extensions";tu=!0;if(typeof document<"u"){let e=av();e===null&&(tu=Ot()),e===!1?document.documentElement.setAttribute(Ue,"off"):e===!0&&document.documentElement.removeAttribute(Ue)}});function cv(e){let t=e;return!t||!t.tagName?!1:ov.has(t.tagName)||t.isContentEditable}function lv(e){if(e.repeat||e.isComposing||e.defaultPrevented)return;let t=cv(e.target),i=!Ot(),s=document.activeElement;for(let n of ce)if(!(t&&!n.global)&&!(n.scope&&!(n.scope.isConnected&&n.scope.contains(s)))&&!(i&&n.character&&!n.scope)&&!(n.enabled&&!n.enabled())&&Zl(e,n.descriptor)){e.preventDefault(),n.callback(e);return}}function uv(){iu||(document.addEventListener("keydown",lv),iu=!0)}function Et(e,t,i={}){uv();let s=oe(e),n={combo:e,descriptor:s,callback:t,global:i.global===!0,scope:i.scope??null,enabled:typeof i.enabled=="function"?i.enabled:null,character:Gi(s)},r=ce.find(a=>!a.scope&&!n.scope&&Jl(a.combo,e));return r&&console.warn(`[hotkey-bind] Shortcut "${e}" is already bound as "${r.combo}". Last-bound wins.`),ce.unshift(n),function(){let o=ce.indexOf(n);o!==-1&&ce.splice(o,1)}}function su(){return ce.map(e=>e.combo)}var ov,ce,iu,We=v(()=>{Ve();hr();ov=new Set(["INPUT","TEXTAREA","SELECT"]),ce=[],iu=!1});var vr={};T(vr,{addDialogDismiss:()=>bu,addFlickListener:()=>pu,addLongPress:()=>gu,addPullToRefresh:()=>Bv,addSwipeListener:()=>fu,haptic:()=>ts,initGestures:()=>yu,makeSwipeable:()=>mu});function fu(e,t={}){let i=t.threshold??50,s=t.restraint??100,n=t.timeout??300,r=t.velocity??.5,a=t.minFlickDistance??10,o,c,l;function u(h){h.isPrimary&&(o=h.clientX,c=h.clientY,l=Date.now())}function d(h){if(!h.isPrimary)return;let f=h.clientX-o,p=h.clientY-c,m=Date.now()-l;if(m>n)return;let g=Math.abs(f),b=Math.abs(p),A=Math.max(g,b),w=m>0?A/m:0,_=w>=r&&A>=a,D;if((g>=i||_&&g>b)&&b<=s?D=f<0?"left":"right":(b>=i||_&&b>g)&&g<=s&&(D=p<0?"up":"down"),D){let V=D==="left"||D==="right"?g:b;e.dispatchEvent(new CustomEvent(`swipe-${D}`,{bubbles:!0,detail:{distance:V,duration:m,velocity:w,flick:_}}))}}return e.addEventListener("pointerdown",u,{passive:!0}),e.addEventListener("pointerup",d,{passive:!0}),()=>{e.removeEventListener("pointerdown",u),e.removeEventListener("pointerup",d)}}function pu(e,t={}){let i=t.minDistance??10,s=t.velocity??.6,n=t.timeout??250,r=t.restraint??80,a,o,c;function l(d){d.isPrimary&&(a=d.clientX,o=d.clientY,c=Date.now())}function u(d){if(!d.isPrimary)return;let h=d.clientX-a,f=d.clientY-o,p=Date.now()-c;if(p===0||p>n)return;let m=Math.abs(h),g=Math.abs(f),b=Math.max(m,g);if(b<i)return;let A=b/p;if(A<s)return;let w;if(m>g&&g<=r?w=h<0?"left":"right":g>m&&m<=r&&(w=f<0?"up":"down"),w){let _=w==="left"||w==="right"?m:g;e.dispatchEvent(new CustomEvent(`swipe-${w}`,{bubbles:!0,detail:{distance:_,duration:p,velocity:A,flick:!0}}))}}return e.addEventListener("pointerdown",l,{passive:!0}),e.addEventListener("pointerup",u,{passive:!0}),()=>{e.removeEventListener("pointerdown",l),e.removeEventListener("pointerup",u)}}function mu(e,t={}){let i=t.threshold??100,s=t.direction??"horizontal",n=t.removeOnDismiss??!0,r=s==="horizontal",a=0,o=0,c=!1;function l(m){!m.isPrimary||e.hasAttribute("data-dismissed")||(m.preventDefault(),c=!0,a=r?m.clientX:m.clientY,o=0,e.setPointerCapture(m.pointerId),e.setAttribute("data-swiping",""))}function u(m){if(!c||!m.isPrimary)return;o=(r?m.clientX:m.clientY)-a;let b=1-Math.min(Math.abs(o)/i,1)*.5;r?e.style.transform=`translateX(${o}px)`:e.style.transform=`translateY(${o}px)`,e.style.opacity=String(b)}function d(m){!c||!m.isPrimary||(c=!1,e.releasePointerCapture(m.pointerId),e.removeAttribute("data-swiping"),Math.abs(o)>=i?f(o>0?"right":"left"):p())}function h(m){!c||!m.isPrimary||(c=!1,e.releasePointerCapture(m.pointerId),e.removeAttribute("data-swiping"),p())}function f(m){let g=m==="right"?"100%":"-100%";e.style.transition="transform 0.2s ease-out, opacity 0.2s ease-out",e.style.transform=r?`translateX(${g})`:`translateY(${g})`,e.style.opacity="0",e.setAttribute("data-dismissed",""),ts.dismiss(),e.dispatchEvent(new CustomEvent("swipe-dismiss",{bubbles:!0,detail:{direction:m,distance:Math.abs(o)}})),n&&e.addEventListener("transitionend",()=>e.remove(),{once:!0})}function p(){e.style.transition="transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease",e.style.transform="",e.style.opacity="",e.addEventListener("transitionend",()=>{e.style.transition=""},{once:!0})}return e.addEventListener("pointerdown",l),e.addEventListener("pointermove",u),e.addEventListener("pointerup",d),e.addEventListener("pointercancel",h),()=>{e.removeEventListener("pointerdown",l),e.removeEventListener("pointermove",u),e.removeEventListener("pointerup",d),e.removeEventListener("pointercancel",h)}}function Bv(e,t,i={}){let s=i.threshold??70,n=i.maxPull??120,r=document.createElement("div");r.setAttribute("data-pull-indicator",""),r.setAttribute("aria-hidden","true");let a=document.createElement("div");a.setAttribute("data-pull-spinner",""),r.appendChild(a),e.prepend(r);let o=0,c=!1,l=!1;function u(g){!g.isPrimary||l||e.scrollTop<=0&&(o=g.clientY,c=!0)}function d(g){if(!c||!g.isPrimary||l)return;let b=g.clientY-o;if(b<=0){r.style.transform="",r.style.opacity="";return}let A=Math.min(b,n),w=A/s;r.style.transform=`translateY(${A}px)`,r.style.opacity=String(Math.min(w,1)),w>=1?r.setAttribute("data-pull-ready",""):r.removeAttribute("data-pull-ready")}function h(g){!c||!g.isPrimary||(c=!1,r.hasAttribute("data-pull-ready")&&!l?p():m())}function f(g){!c||!g.isPrimary||(c=!1,m())}async function p(){l=!0,r.removeAttribute("data-pull-ready"),r.setAttribute("data-pull-loading",""),r.style.transform=`translateY(${s}px)`,r.style.opacity="1";try{await t()}finally{l=!1,r.removeAttribute("data-pull-loading"),m()}}function m(){r.style.transition="transform 0.3s ease, opacity 0.3s ease",r.style.transform="",r.style.opacity="",r.removeAttribute("data-pull-ready"),r.addEventListener("transitionend",()=>{r.style.transition=""},{once:!0})}return e.addEventListener("pointerdown",u,{passive:!0}),e.addEventListener("pointermove",d,{passive:!0}),e.addEventListener("pointerup",h,{passive:!0}),e.addEventListener("pointercancel",f,{passive:!0}),()=>{e.removeEventListener("pointerdown",u),e.removeEventListener("pointermove",d),e.removeEventListener("pointerup",h),e.removeEventListener("pointercancel",f),r.remove()}}function gu(e,t,i={}){let s=i.duration??500,n=i.hapticFeedback??!0,r=i.blockContextMenu??!0,a=null;function o(u){u.isPrimary&&(a=setTimeout(()=>{n&&ts.tap(),t(u),a=null},s))}function c(){a&&(clearTimeout(a),a=null)}function l(u){r&&u.preventDefault()}return e.addEventListener("pointerdown",o,{passive:!0}),e.addEventListener("pointermove",c,{passive:!0}),e.addEventListener("pointerup",c,{passive:!0}),e.addEventListener("pointercancel",c,{passive:!0}),e.addEventListener("contextmenu",l),()=>{c(),e.removeEventListener("pointerdown",o),e.removeEventListener("pointermove",c),e.removeEventListener("pointerup",c),e.removeEventListener("pointercancel",c),e.removeEventListener("contextmenu",l)}}function bu(e,t={}){let i=t.threshold??80,s=0,n=0,r=!1;function a(h){if(!h.isPrimary||!e.open)return;let f=h.target;f.closest("a, button, input, select, textarea, [contenteditable]")&&!f.closest("header")||(r=!0,s=h.clientY,n=0,e.setPointerCapture(h.pointerId),e.style.transition="none")}function o(h){if(!r||!h.isPrimary)return;if(n=h.clientY-s,n<=0){e.style.transform="",e.style.opacity="";return}let p=1-Math.min(n/i,1)*.4;e.style.transform=`translateY(${n}px)`,e.style.opacity=String(p)}function c(h){!r||!h.isPrimary||(r=!1,e.releasePointerCapture(h.pointerId),n>=i?u():d())}function l(h){!r||!h.isPrimary||(r=!1,e.releasePointerCapture(h.pointerId),d())}function u(){e.style.transition="transform 0.2s ease-out, opacity 0.2s ease-out",e.style.transform="translateY(100%)",e.style.opacity="0",ts.dismiss(),e.addEventListener("transitionend",()=>{e.style.transition="",e.style.transform="",e.style.opacity="",e.close("dismiss")},{once:!0})}function d(){e.style.transition="transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease",e.style.transform="",e.style.opacity="",e.addEventListener("transitionend",()=>{e.style.transition=""},{once:!0})}return e.addEventListener("pointerdown",a),e.addEventListener("pointermove",o),e.addEventListener("pointerup",c),e.addEventListener("pointercancel",l),()=>{e.removeEventListener("pointerdown",a),e.removeEventListener("pointermove",o),e.removeEventListener("pointerup",c),e.removeEventListener("pointercancel",l)}}function yu(e=document){let t=[];for(let i of e.querySelectorAll('[data-gesture="swipe"]'))t.push(fu(i));for(let i of e.querySelectorAll('[data-gesture="flick"]'))t.push(pu(i));for(let i of e.querySelectorAll('[data-gesture="dismiss"]'))t.push(mu(i));for(let i of e.querySelectorAll('[data-gesture="long-press"]'))t.push(gu(i,()=>{i.dispatchEvent(new CustomEvent("long-press",{bubbles:!0}))}));for(let i of e.querySelectorAll('dialog[data-gesture="dismiss-down"]'))t.push(bu(i));return()=>t.forEach(i=>i())}var ts,yr,wr=v(()=>{ts={tap:()=>navigator.vibrate?.(8),confirm:()=>navigator.vibrate?.([8,40,8]),error:()=>navigator.vibrate?.([30,60,30]),dismiss:()=>navigator.vibrate?.(15)};yr=typeof document<"u"?document.documentElement:null;(!yr||!yr.hasAttribute("data-vb-gestures-init"))&&(yr?.setAttribute("data-vb-gestures-init",""),yu())});var Hu={};T(Hu,{destroyStickyManager:()=>S0,findBannerHeader:()=>qu,initStickyManager:()=>k0});function qu(){for(let e of document.querySelectorAll("header"))if(!e.parentElement?.closest(E0))return e;return null}function Ct(){let e=document.documentElement;if(!e.hasAttribute("data-sticky"))return;let t=qu();t&&!t.hasAttribute("data-sticky")&&(t.dataset.sticky="",zr.add(t)),t&&os&&!Vr.has(t)&&(os.observe(t),Vr.add(t));let i=t?.hasAttribute("data-sticky")&&getComputedStyle(t).position!=="static",s=t&&i?t.getBoundingClientRect().height:0;e.style.setProperty("--sticky-offset",`${s}px`)}function ju(){Ct()}function k0(){if(as){Ct();return}as=!0,os=new ResizeObserver(Ct),Vr=new WeakSet,Ct(),requestAnimationFrame(Ct),document.fonts?.ready?.then(Ct),window.addEventListener("resize",Ct,{passive:!0}),document.addEventListener("toggle",ju,!0)}function S0(){if(as){as=!1,window.removeEventListener("resize",Ct),document.removeEventListener("toggle",ju,!0),os?.disconnect();for(let e of zr)delete e.dataset.sticky;zr.clear(),document.documentElement.style.removeProperty("--sticky-offset")}}var as,os,zr,Vr,E0,zu=v(()=>{as=!1,zr=new Set,Vr=new WeakSet,E0='article, aside, main, nav, section, [role="article"], [role="complementary"], [role="main"], [role="navigation"], [role="region"]'});var Uu={};T(Uu,{SoundManager:()=>x0});var Vu,Ur,x0,Wu=v(()=>{Vu="vb-sound",Ur={enabled:!1,volume:.5},x0={_ctx:null,_enabled:!1,_volume:.5,_initialized:!1,init(){if(this._initialized)return this;let e=this._load();return this._enabled=e.enabled,this._volume=e.volume,this._initialized=!0,this},_getContext(){return this._ctx||(this._ctx=new(window.AudioContext||window.webkitAudioContext)),this._ctx.state==="suspended"&&this._ctx.resume(),this._ctx},_load(){try{let e=localStorage.getItem(Vu);return e?{...Ur,...JSON.parse(e)}:{...Ur}}catch{return{...Ur}}},_save(e){try{let t=this._load();localStorage.setItem(Vu,JSON.stringify({...t,...e}))}catch{}},_playTone(e,t,i="sine"){if(!this._enabled)return;let s=this._getContext(),n=s.createOscillator(),r=s.createGain();n.connect(r),r.connect(s.destination),n.frequency.value=e,n.type=i,r.gain.value=this._volume*.3,n.start(),r.gain.exponentialRampToValueAtTime(.01,s.currentTime+t),n.stop(s.currentTime+t)},enable(){this._enabled=!0,this._save({enabled:!0}),this.play("click")},disable(){this._enabled=!1,this._save({enabled:!1})},toggle(){return this._enabled?this.disable():this.enable(),this._enabled},isEnabled(){return this._enabled},setVolume(e){this._volume=Math.max(0,Math.min(1,e)),this._save({volume:this._volume})},getVolume(){return this._volume},play(e){if(this._enabled)switch(e){case"click":this._playTone(800,.1);break;case"success":this._playTone(523,.1),setTimeout(()=>this._playTone(659,.1),100),setTimeout(()=>this._playTone(784,.15),200);break;case"error":this._playTone(200,.15,"sawtooth"),setTimeout(()=>this._playTone(180,.2,"sawtooth"),150);break;case"notification":this._playTone(880,.1),setTimeout(()=>this._playTone(1100,.15),100);break;case"soft":this._playTone(600,.05);break;case"tick":this._playTone(1200,.02,"square");break}},getState(){return{enabled:this._enabled,volume:this._volume}}}});function D0(e,t){if(!t)return e;let i=e??new URLSearchParams;for(let[s,n]of Object.entries(t))n!=null&&i.set(s,String(n));return i}async function N0(e){if((e.headers.get("content-type")??"").includes("application/json"))try{return await e.json()}catch{return null}try{return await e.text()}catch{return null}}function Gu(e){return e.endsWith("/")?e.slice(0,-1):e}var Ze,Je,Ku,Xr,K,J,ge=v(()=>{Ze="__vbServiceConfig",Je=globalThis,Ku=()=>({baseUrl:"/go",headers:{},services:{}});Je[Ze]||(Je[Ze]=Ku());Xr=()=>Je[Ze],K=class extends Error{constructor(t,i,s,n){super(`VBService(${s}): ${t} ${n}`),this.name="VBServiceError",this.status=t,this.body=i,this.role=s,this.path=n}};J=class e{static configure(t={}){let i=Xr();Je[Ze]={baseUrl:t.baseUrl??i.baseUrl,headers:{...i.headers,...t.headers??{}},services:{...i.services,...t.services??{}}}}static resolve(t){if(!t||typeof t!="string")throw new TypeError("VBService: role must be a non-empty string");let i=Xr();return i.services[t]?Gu(i.services[t]):i.baseUrl?`${Gu(i.baseUrl)}/${t}`:`/go/${t}`}static _reset(){Je[Ze]=Ku()}constructor(t){if(!t||typeof t!="string")throw new TypeError("VBService: role must be a non-empty string");this.role=t}async get(t,i){return this.#t("GET",t,{params:i})}async post(t,i){return this.#t("POST",t,{body:i})}async patch(t,i){return this.#t("PATCH",t,{body:i})}async delete(t){return this.#t("DELETE",t,{})}async#t(t,i,s){let n=e.resolve(this.role),r=i?i.startsWith("/")?i:`/${i}`:"",a=new URL(`${n}${r}`,globalThis.location?.origin??"http://localhost"),o=D0(a.searchParams,s.params);o&&(a.search=o.toString());let c={method:t,headers:{...Xr().headers}};s.body!==void 0&&(c.body=JSON.stringify(s.body),c.headers["content-type"]="application/json");let l=a.toString(),u=await fetch(l,c),d=await N0(u);if(!u.ok)throw new K(u.status,d,this.role,`${r||"/"}`);return d}};if(typeof window<"u"){let e=window.VB??(window.VB={});e.service??=J,e.ServiceError??=K}});function B0(e,t){let i=0;for(;i<e.length&&i<t.length&&e[e.length-1-i]===t[t.length-1-i];)i++;return i}function R0(e,t){let i=0;for(;i<e.length&&i<t.length&&e[i]===t[i];)i++;return i}function ls(e,t,i){return{prefix:e.slice(Math.max(0,t-32),t),suffix:e.slice(i,i+32)}}function Ju(e,t){let i=Zu(t.text??"");if(!i)return null;if(t.endOffset<=e.length&&Zu(e.slice(t.startOffset,t.endOffset))===i)return{start:t.startOffset,end:t.endOffset};let s=new RegExp(t.text.trim().split(/\s+/).map(I0).join("\\s*"),"g"),n=t.prefix??"",r=t.suffix??"",a=null,o=-1,c=1/0;for(let l of e.matchAll(s)){let u=l.index,d=u+l[0].length,h=ls(e,u,d),f=B0(h.prefix,n)+R0(h.suffix,r),p=Math.abs(u-t.startOffset);(f>o||f===o&&p<c)&&(a={start:u,end:d},o=f,c=p)}return a}var Zu,I0,Qu=v(()=>{Zu=e=>e.replace(/\s+/g,""),I0=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")});var cd={};T(cd,{HighlightController:()=>ps,findRangeFromOffsets:()=>hs,fnv1a:()=>ti,initHighlights:()=>ms});function ti(e){let t=2166136261;for(let i=0;i<e.length;i++)t^=e.charCodeAt(i),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function ad(){return"hn-"+crypto.randomUUID().slice(0,8)}function us(e,t){let i="highlightsLabel"+t[0].toUpperCase()+t.slice(1);return e.dataset[i]||q0[t]}function j0(e,{textLength:t,colors:i}){if(!e||typeof e!="object")return null;let s=e,{startOffset:n,endOffset:r,color:a}=s;if(!Number.isInteger(n)||!Number.isInteger(r))return null;let o=n,c=r;return o<0||c<=o||c>t||!Qr(a)||!i.includes(a)||s.id!=null&&(typeof s.id!="string"||!/^[\w-]{1,64}$/.test(s.id))||s.text!=null&&typeof s.text!="string"||s.note!=null&&typeof s.note!="string"||s.prefix!=null&&typeof s.prefix!="string"||s.suffix!=null&&typeof s.suffix!="string"?null:{id:s.id||ad(),startOffset:o,endOffset:c,text:s.text??"",prefix:(s.prefix??"").slice(-32),suffix:(s.suffix??"").slice(0,32),color:a,note:s.note??"",created:Number.isFinite(s.created)?s.created:Date.now()}}function Qr(e){return typeof e=="string"&&O0.test(e)}function od(){if(Vt.size===0){zt&&(document.adoptedStyleSheets=document.adoptedStyleSheets.filter(s=>s!==zt),zt=null);return}zt||(zt=new CSSStyleSheet,document.adoptedStyleSheets=[...document.adoptedStyleSheets,zt]);let e=[...Vt.keys()],t=e.map(s=>`::highlight(hn-${s}) { background-color: var(--highlight-${s}); color: var(--highlight-${s}-ink, var(--highlight-ink, CanvasText)); text-decoration-line: underline; text-decoration-color: var(--highlight-${s}); text-underline-offset: 2px; }`),i=e.map((s,n)=>`::highlight(hn-${s}) { background-color: Mark; color: MarkText; text-decoration-line: underline; text-decoration-color: MarkText; text-decoration-style: ${id[n%id.length]}; text-decoration-thickness: 2px; }`);zt.replaceSync(`${t.join(`
1
+ var pb=Object.defineProperty;var v=(e,t)=>()=>(e&&(t=e(e=0)),t);var x=(e,t)=>{for(var i in t)pb(e,i,{get:t[i],enumerable:!0})};function Be(){return yn()}function yn(){if(typeof window<"u"&&window.__VB_THEME_BASE)return String(window.__VB_THEME_BASE).replace(/\/$/,"");if(nl)return nl;if(typeof document<"u"){let e=document.querySelectorAll('script[src*="vanilla-breeze"]');for(let t of e){let i=t.getAttribute("src");if(i){let s=i.lastIndexOf("/");if(s!==-1)return i.slice(0,s)}}}return"/cdn"}function rl(e){return typeof CSS<"u"&&CSS.escape?CSS.escape(e):String(e).replace(/["\\]/g,"\\$&")}function al(e){document.querySelectorAll(`link[data-vb-theme-preload="${rl(e)}"]`).forEach(t=>t.remove())}function vn(e){return gb.has(e)}function bb(e,t){return`${t}/themes/${e}.css`}function ol(e,t){if(!vn(e))return Promise.resolve();if(bn.has(e))return bn.get(e);let i=import(`${t}/packs/${e}.full.js`).catch(()=>{});return bn.set(e,i),i}function yb(e,t){let i=yn(),s=()=>{(vn(t)||e.hasAttribute("data-vb-pack"))&&ol(t,i)};return e.getAttribute("data-vb-theme-state")==="error"?Promise.reject(new Error(`Failed to load theme: ${t}`)):e.getAttribute("data-vb-theme-state")==="ready"||e.sheet?(s(),Promise.resolve()):new Promise((n,r)=>{let a=()=>{e.setAttribute("data-vb-theme-state","ready"),c(),s(),n(void 0)},o=()=>{e.setAttribute("data-vb-theme-state","error"),$t.delete(t),c(),r(new Error(`Failed to load theme: ${t}`))},c=()=>{e.removeEventListener("load",a),e.removeEventListener("error",o)};e.addEventListener("load",a,{once:!0}),e.addEventListener("error",o,{once:!0})})}async function Re(e){if(!e||mb.has(e))return;if($t.has(e))return $t.get(e);if(typeof document<"u"){let s=document.querySelector(`link[data-vb-theme="${rl(e)}"]`);if(s){let n=yb(s,e);return $t.set(e,n),n}}let t=yn(),i=vn(e)?wb(e,t):vb(e,t);return $t.set(e,i),i}async function vb(e,t){let i=bb(e,t);return new Promise((s,n)=>{al(e);let r=document.createElement("link");r.rel="stylesheet",r.href=i,r.setAttribute("data-vb-theme",e),r.setAttribute("data-vb-theme-state","loading"),r.onload=()=>{r.setAttribute("data-vb-theme-state","ready"),s()},r.onerror=()=>{r.setAttribute("data-vb-theme-state","error"),r.remove(),$t.delete(e),n(new Error(`Failed to load theme: ${e}`))},document.head.appendChild(r)})}function wb(e,t){let i=`${t}/packs/${e}.theme.css`,s=`${t}/packs/${e}.effects.css`;return new Promise((n,r)=>{al(e);let a=document.createElement("link");a.rel="stylesheet",a.href=i,a.setAttribute("data-vb-theme",e),a.setAttribute("data-vb-pack",e),a.setAttribute("data-vb-theme-state","loading"),a.onload=()=>{a.setAttribute("data-vb-theme-state","ready");let o=document.createElement("link");o.rel="stylesheet",o.href=s,o.setAttribute("data-vb-pack-effects",e),document.head.appendChild(o),ol(e,t),n()},a.onerror=()=>{a.setAttribute("data-vb-theme-state","error"),a.remove(),$t.delete(e),r(new Error(`Failed to load pack: ${e}`))},document.head.appendChild(a)})}var $t,bn,nl,mb,gb,Fe=v(()=>{$t=new Map,bn=new Map,nl=null;mb=new Set(["default","a11y-high-contrast","a11y-large-text","a11y-dyslexia","modern","minimal","classic"]),gb=new Set(["kawaii","memphis"])});function Ab(){let e=globalThis.localStorage;if(!e)throw new Error("VBStore: localStorage is not available in this environment");return{async getRaw(t){return e.getItem(t)},async setRaw(t,i){e.setItem(t,i)},async removeRaw(t){e.removeItem(t)},async keys(t){let i=[];for(let s=0;s<e.length;s++){let n=e.key(s);n&&n.startsWith(t)&&i.push(n)}return i}}}function pt(){return Mi[Ni]||(Mi[Ni]=Ab()),Mi[Ni]}function En(e,t){if(typeof e!="string"||!e)throw new TypeError("VBStore: namespace must be a non-empty string");if(typeof t!="string"||!t)throw new TypeError("VBStore: key must be a non-empty string");return`vb:${e}:${t}`}function hl(e){if(typeof e!="string"||!e)throw new TypeError("VBStore: namespace must be a non-empty string");return`vb:${e}:`}function fl(e){try{let t=JSON.parse(e);if(t&&typeof t=="object"&&typeof t.timestamp=="number")return t}catch{}return null}var Ni,Mi,C,mt=v(()=>{Ni="__vbStoreBackend",Mi=globalThis;C={configure(e={}){Mi[Ni]=e.backend??null},async set(e,t,i){let s={data:i,timestamp:Date.now()};await pt().setRaw(En(e,t),JSON.stringify(s))},async get(e,t,i){let s=await pt().getRaw(En(e,t));if(s==null)return null;let n=fl(s);return!n||i?.maxAge!=null&&Date.now()-n.timestamp>i.maxAge?null:n.data},async remove(e,t){await pt().removeRaw(En(e,t))},async list(e){let t=hl(e),i=await pt().keys(t),s=[];for(let n of i){let r=await pt().getRaw(n);if(r==null)continue;let a=fl(r);a&&s.push({key:n.slice(t.length),data:a.data,timestamp:a.timestamp})}return s},async clear(e){let t=hl(e),i=await pt().keys(t);for(let s of i)await pt().removeRaw(s)},async clearAll(){let e=await pt().keys("vb:");for(let t of e)await pt().removeRaw(t)},async setMany(e,t){for(let[i,s]of t)await C.set(e,i,s)}};if(typeof window<"u"){let e=window.VB??(window.VB={});e.store??=C}});function my(e){return String(e).replace(/[\u0000- \u007f-\u009f]/g,"").toLowerCase()}function Ml(e,t=!1){let i=my(e);return t?/(^|,)(javascript|vbscript|livescript):/.test(i)?!0:/(^|,)data:/.test(i)?i.split(/(?=data:)/).filter(n=>n.startsWith("data:")).some(n=>!/^data:(image|audio|video|font)\//.test(n)):!1:/^(javascript|vbscript|livescript|data):/.test(i)}function Il(e){let t=String(e).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\\/g,"").replace(/\s+/g,"").toLowerCase();return/expression\(|javascript:|vbscript:|-moz-binding|behavior:|@import|position:fixed/.test(t)}function by(e,t){if(_l.has(t))return!0;let i=e.namespaceURI;return!!(i&&!ny.has(i)||t==="title"&&i!==Hn||$l.has(t)&&i===Hn&&e.children?.length||ry.has(t)&&(e.getAttribute("attributeName")||e.getAttribute("attributename")||"").toLowerCase().includes("href"))}function yy(e,t){for(let i of[...e.attributes]){let s=i.name.toLowerCase();if(s.startsWith("on")||cy.has(s)||!t.keepIds&&ly.has(s)){e.removeAttribute(i.name);continue}if(s==="style"){(!t.keepStyle||Il(i.value))&&e.removeAttribute(i.name);continue}if((s==="id"||s==="name")&&!t.keepIds){let n=gy(i.value);s==="id"?t.ids.set(i.value,n):t.ids.set(`name:${i.value}`,n),e.setAttribute(i.name,n);continue}if(ay.has(s)||s.endsWith(":href")){Ml(i.value,!1)&&e.removeAttribute(i.name);continue}oy.has(s)&&Ml(i.value,!0)&&e.removeAttribute(i.name)}}function vy(e,t){let i=(e.getAttribute("type")||"").toLowerCase();t==="button"&&i!=="button"&&e.setAttribute("type","button"),t==="input"&&/^(submit|reset|image)$/.test(i)&&e.setAttribute("type","button")}function wy(e,t){for(let i of e)for(let s of[...i.attributes]){let n=s.name.toLowerCase(),r=s.value;if((n==="href"||n.endsWith(":href"))&&r.startsWith("#")){let a=Ay(r.slice(1));t.has(a)&&i.setAttribute(s.name,`#${t.get(a)}`)}else if(n==="usemap"&&r.startsWith("#")){let a=t.get(`name:${r.slice(1)}`);a?i.setAttribute(s.name,`#${a}`):i.removeAttribute(s.name)}else if(uy.has(n)){let a=r.split(/\s+/).filter(Boolean).map(o=>t.get(o)||(o.startsWith(Vn)?o:null)).filter(Boolean);a.length?i.setAttribute(s.name,a.join(" ")):i.removeAttribute(s.name)}else r.includes("url(#")&&i.setAttribute(s.name,r.replace(/url\(#([^)]+)\)/g,(a,o)=>t.has(o)?`url(#${t.get(o)})`:a))}}function Ay(e){try{return decodeURIComponent(e)}catch{return e}}function Un(e){let t=e.childNodes;if(t)for(let i of[...t])i.nodeType===8?i.remove():(i.nodeType===1||i.nodeType===11)&&Un(i)}function Wn(e,t){Un(e);let i=[...e.querySelectorAll("*")];t.includeRoot&&i.unshift(e);let s=new Map,n=[],r={...t,ids:s};for(let a of i){if(!ky(a,e))continue;let o=Bl(a);if(t.svgOnly&&($l.has(o)||o==="style")){if(o==="style"&&Il(a.textContent||"")){a.remove();continue}}else if(by(a,o)){a.remove();continue}if(!t.keepIds&&!t.svgOnly&&hy.has(o)){Ey(a);continue}if(o==="template"){let l=a.content;l&&Wn(l,{...t,includeRoot:!1})}yy(a,r),t.keepIds||vy(a,o);let c=dy[o];if(c)for(let l of c)a.removeAttribute(l);if(o==="include-file"&&!t.allowIncludeFile&&a.removeAttribute("src"),!t.keepIds&&!t.svgOnly&&o.includes("-")&&o!=="include-file"&&!py.has(o))for(let l of fy)a.removeAttribute(l);n.push(a)}!t.keepIds&&s.size&&wy(n,s)}function Ey(e){let t=e.parentNode;if(t){for(let i of[...e.childNodes])t.insertBefore(i,e);e.remove()}}function ky(e,t){let i=e;for(;i;){if(i===t)return!0;i=i.parentNode??i.parent??null}return!1}function se(e,t={}){let i=document.createElement("template");return e&&typeof e=="string"&&(i.innerHTML=e,Wn(i.content,{allowIncludeFile:!!t.allowIncludeFile,keepIds:!!t.keepIds,keepStyle:!!t.keepStyle})),i.content}function Rl(e){return!e||typeof e!="object"||!("attributes"in e)||Wn(e,{includeRoot:!0,keepIds:!0,keepStyle:!0,svgOnly:!0}),e}function Fl(e){let t=document.createElement("template");if(!e||typeof e!="string")return t.content;t.innerHTML=e,t.content.querySelector("math")||(t.innerHTML=`<math>${e}</math>`);let i=t.content;Un(i);for(let s of[...i.childNodes])s.nodeType===3&&!s.textContent?.trim()||(s.nodeType!==1||s.namespaceURI!==zn)&&s.remove();for(let s of[...i.querySelectorAll("*")]){if(!i.contains(s))continue;let n=Bl(s);if(s.namespaceURI!==zn||_l.has(n)){s.remove();continue}for(let r of[...s.attributes])Sy.test(r.name.toLowerCase())&&s.removeAttribute(r.name)}return i}var sy,Hn,zn,ny,Vn,_l,$l,ry,ay,oy,cy,ly,uy,dy,hy,fy,py,Bl,gy,Sy,Rt=v(()=>{sy="http://www.w3.org/1999/xhtml",Hn="http://www.w3.org/2000/svg",zn="http://www.w3.org/1998/Math/MathML",ny=new Set([sy,Hn,zn]),Vn="user-content-",_l=new Set(["script","iframe","frame","frameset","object","embed","applet","portal","fencedframe","form","base","link","meta","noscript","foreignobject","style","xmp","noembed","noframes","plaintext","mglyph","malignmark","annotation-xml"]),$l=new Set(["title","desc"]),ry=new Set(["animate","set","animatemotion","animatetransform"]),ay=new Set(["href","xlink:href","action","formaction","data","codebase","cite","background","longdesc","manifest","to","from","values","by"]),oy=new Set(["src","poster","srcset"]),cy=new Set(["srcdoc","form","formaction","formmethod","formtarget","formenctype","formnovalidate","action","method","ping"]),ly=new Set(["popovertarget","popovertargetaction","commandfor","command","interestfor","autofocus"]),uy=new Set(["for","headers","list","aria-labelledby","aria-describedby","aria-controls","aria-owns","aria-flowto","aria-details","aria-errormessage","aria-activedescendant"]),dy={"include-file":["trusted","allow-scripts","allow-cross-origin"],"markdown-viewer":["src","sanitize","ping","allow-cross-origin"]},hy=new Set(["social-embed","youtube-player","geo-map"]),fy=["src","src-dark","data-src","url","endpoint","tile-url","data-versions"],py=new Set(["audio-player","video-player","image-map","brand-mark"]);Bl=e=>String(e.localName||e.tagName||"").toLowerCase(),gy=e=>e.startsWith(Vn)?e:Vn+e;Sy=/^(on|href$|src$|style$|id$|name$|xlink|xml:|form[a-z])/});function Ny(e,t){let i=jl.get(t);i||jl.set(t,i=new Map);let s=i.get(e);if(!s||!s.region.isConnected){let r=(t.ownerDocument||document).createElement("span");r.setAttribute("data-vb-announcer",e),r.setAttribute("role",e==="assertive"?"alert":"status"),r.setAttribute("aria-live",e),r.setAttribute("aria-atomic","true"),r.style.cssText=Dy,t.appendChild(r),s={region:r},i.set(e,s)}return s}function G(e,{politeness:t="polite",root:i}={}){let s=String(e??"").trim();if(!s||typeof document>"u")return null;let n=i||document.body;if(!n)return null;let a=Ny(t==="assertive"?"assertive":"polite",n);return clearTimeout(a.write),clearTimeout(a.clear),a.region.textContent="",a.write=setTimeout(()=>{a.region.textContent=s,a.clear=setTimeout(()=>{a.region.textContent=""},7e3)},50),a.region}function R(e,t,i,s){let n=`data-label-${t}`,a=e?.closest?.(`[${n}]`)?.getAttribute(n)||i;return s?a.replace(/\{(\w+)\}/g,(o,c)=>c in s?String(s[c]):o):a}var Dy,jl,ut=v(()=>{Dy=["position:absolute","inline-size:1px","block-size:1px","padding:0","margin:-1px","overflow:hidden","clip-path:inset(50%)","white-space:nowrap","border:0"].join(";"),jl=new WeakMap});var Vl={};x(Vl,{copyRich:()=>Iy,copyText:()=>gt,initCopyButtons:()=>Fy,pasteFromClipboard:()=>Hl});function _y(e){if(typeof document.execCommand!="function"||!document.body)return!1;let t=document.activeElement,i=document.createElement("textarea");i.value=e,i.setAttribute("readonly",""),i.setAttribute("aria-hidden","true"),i.style.cssText="position:fixed;inset-block-start:0;inset-inline-start:0;opacity:0;pointer-events:none",document.body.appendChild(i),i.select();let s=!1;try{s=document.execCommand("copy")}catch{s=!1}return i.remove(),t?.focus?.({preventScroll:!0}),s}function $y(e){if(!e)return!1;if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)return e.focus(),e.select(),!0;let t=window.getSelection?.();if(!t)return!1;let i=document.createRange();return i.selectNodeContents(e),t.removeAllRanges(),t.addRange(i),!t.isCollapsed}async function gt(e,t={}){if(e==null||e==="")return!1;let{button:i,duration:s=Jn}=t,n=!1,r=null;try{if(!navigator.clipboard?.writeText)throw new Error("Clipboard API unavailable");await navigator.clipboard.writeText(e),n=!0}catch(o){r=o,n=_y(e)}if(n)return ne({button:i,duration:s,state:"copied",eventName:"copy:done",eventDetail:{text:e},message:t.announceMessage??R(i,"copied",Ft.copied)}),!0;let a=$y(t.source);return ne({button:i,duration:s,state:"failed",eventName:"copy:error",eventDetail:{text:e,error:r},message:t.failureMessage??R(i,"copy-failed",a?Ft["copy-failed-selected"]:Ft["copy-failed"])}),!1}async function Iy(e,t={}){let{text:i,html:s,blob:n}=e??{};if(!i&&!s&&!n)return!1;let{button:r,duration:a=Jn}=t;if(typeof ClipboardItem<"u"&&typeof navigator.clipboard?.write=="function"){let c={};i&&(c["text/plain"]=new Blob([i],{type:"text/plain"})),s&&(c["text/html"]=new Blob([s],{type:"text/html"})),n&&(c[n.type]=n);try{return await navigator.clipboard.write([new ClipboardItem(c)]),ne({button:r,duration:a,state:"copied",eventName:"copy:done",eventDetail:{payload:e},message:t.announceMessage??R(r,"copied",Ft.copied)}),!0}catch{}}return i?gt(i,t):(ne({button:r,duration:a,state:"failed",eventName:"copy:error",eventDetail:{payload:e,error:null},message:t.failureMessage??R(r,"copy-failed",Ft["copy-failed"])}),!1)}function ne({button:e,duration:t,message:i,eventDetail:s,state:n,eventName:r}){if(e){e.dataset.state=n;let a=Zn.get(e);a&&clearTimeout(a),Zn.set(e,setTimeout(()=>{e.dataset.state===n&&delete e.dataset.state,Zn.delete(e)},t)),e.dispatchEvent(new CustomEvent(r,{bubbles:!0,detail:s}))}G(i,{politeness:n==="failed"?"assertive":"polite"})}async function Hl(e,t={}){let{button:i,duration:s=Jn}=t,n;try{if(!navigator.clipboard?.readText)throw new Error("Clipboard API unavailable");n=await navigator.clipboard.readText()}catch(r){return ne({button:i,duration:s,state:"failed",eventName:"paste:error",eventDetail:{target:e,error:r},message:t.failureMessage??R(i,"paste-failed",Ft["paste-failed"])}),null}return e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement?e.value=n:e.textContent=n,e.dispatchEvent(new Event("input",{bubbles:!0}))),ne({button:i,duration:s,state:"pasted",eventName:"paste:done",eventDetail:{text:n,target:e},message:t.announceMessage??R(i,"pasted",Ft.pasted)}),n}function zl(e){let t=e.dataset.copyTarget;if(!t)return null;try{return document.querySelector(t)}catch{return null}}function By(e){if(e.dataset.copy)return e.dataset.copy;let t=zl(e);if(!t)return"";let i=e.dataset.copyAttr;return i?t.getAttribute(i)??"":t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t.value:t.textContent??""}function Ry(e){let t=e.target?.closest?.(My);if(!t||t.matches(':disabled, [aria-disabled="true"]'))return;if(t.dataset.pasteTarget){let s=null;try{s=document.querySelector(t.dataset.pasteTarget)}catch{}if(!s)return;Hl(s,{button:t});return}let i=By(t);i&&gt(i,{button:t,source:zl(t)??void 0})}function Fy(e=document){e.querySelectorAll("[data-copy-init]").forEach(t=>t.removeAttribute("data-copy-init"))}var Jn,My,Ft,Zn,re=v(()=>{ut();Jn=1500,My="[data-copy], [data-copy-target], [data-paste-target]",Ft={copied:"Copied to clipboard",pasted:"Pasted from clipboard","copy-failed":"Copy failed","copy-failed-selected":"Copy failed. Text selected, press Ctrl+C to copy","paste-failed":"Paste failed"},Zn=new WeakMap;typeof document<"u"&&!document.__vbCopyDelegated&&(document.__vbCopyDelegated=!0,document.addEventListener("click",Ry))});function Pt(e,t){return e.replace(/\{(\w+)\}/g,(i,s)=>s in t?String(t[s]):i)}function ir(e){switch(e.style){case"load-more":return Gy(e);case"prev-next":return Wy(e);default:return Uy(e)}}function sr(e="Pagination"){let t=document.createElement("nav");return t.setAttribute("data-paged-nav",""),t.setAttribute("aria-label",e),t}function Uy({page:e,totalPages:t,pageNumbers:i,navLabel:s,prevLabel:n="Previous",nextLabel:r="Next",pageLabel:a=o=>`Page ${o}`}){let o=sr(s),c=document.createElement("ol");c.setAttribute("role","list"),c.appendChild(je(n,e-1,e===1,!1,"prev"));for(let l of i)if(l==="\u2026"){let u=document.createElement("li");u.textContent="\u2026",u.setAttribute("aria-hidden","true"),u.setAttribute("data-paged-ellipsis",""),c.appendChild(u)}else{let u=je(String(l),l,!1,l===e,"page");u.firstElementChild?.setAttribute("aria-label",a(l)),c.appendChild(u)}return c.appendChild(je(r,e+1,e===t,!1,"next")),o.appendChild(c),o}function Wy({page:e,totalPages:t,navLabel:i,prevLabel:s="Previous",nextLabel:n="Next",statusLabel:r=(a,o)=>`Page ${a} of ${o}`}){let a=sr(i),o=document.createElement("ol");o.setAttribute("role","list"),o.appendChild(je(s,e-1,e===1,!1,"prev"));let c=document.createElement("li");return c.setAttribute("data-paged-status",""),c.setAttribute("aria-live","polite"),c.textContent=r(e,t),o.appendChild(c),o.appendChild(je(n,e+1,e===t,!1,"next")),a.appendChild(o),a}function Gy({total:e,visible:t,navLabel:i,loadMoreLabel:s=r=>`Load more (${r})`,noMoreLabel:n="No more"}){let r=sr(i),a=document.createElement("button");a.type="button",a.setAttribute("data-paged-loadmore","");let o=Math.max(0,e-t);return a.textContent=o>0?s(o):n,a.disabled=o<=0,r.appendChild(a),r}function je(e,t,i,s,n){let r=document.createElement("li"),a=document.createElement("button");return a.type="button",a.setAttribute("data-paged-action",n),a.dataset.pagedTarget=String(t),a.textContent=e,s&&a.setAttribute("aria-current","page"),i&&(a.disabled=!0),r.appendChild(a),r}function nr(e,{onNavigate:t,onLoadMore:i}){t&&e.querySelectorAll("button[data-paged-target]").forEach(s=>{s.addEventListener("click",()=>t(parseInt(s.dataset.pagedTarget||"1",10)))}),i&&e.querySelectorAll("button[data-paged-loadmore]").forEach(s=>{s.addEventListener("click",()=>i())})}function Wl(e,t){if(!e||!e.parentNode)return;let i=document.activeElement,n=!!i&&e.contains(i)&&i?{action:i.getAttribute("data-paged-action"),target:i.getAttribute("data-paged-target"),loadMore:i.hasAttribute("data-paged-loadmore")}:null,r=e.querySelector("[data-paged-status]"),a=t.querySelector("[data-paged-status]");r&&a&&(r.textContent!==a.textContent&&(r.textContent=a.textContent),a.hasAttribute("aria-live")?r.setAttribute("aria-live",a.getAttribute("aria-live")||"polite"):r.removeAttribute("aria-live"),a.replaceWith(r)),e.replaceWith(t),n&&Ky(t,n)}function Ky(e,t){let i=n=>e.querySelector(`${n}:not([disabled])`),s=[];t.loadMore&&s.push("button[data-paged-loadmore]"),t.action&&(s.push(`button[data-paged-action="${t.action}"][data-paged-target="${t.target}"]`),t.action!=="page"&&s.push(`button[data-paged-action="${t.action}"]`)),s.push('button[aria-current="page"]',"button");for(let n of s){let r=i(n);if(r){r.focus();return}}e.tabIndex=-1,e.focus()}var rr=v(()=>{});function zi(e){return e.split("-")[0].toLowerCase()}function Xy(e){return Yy.has(zi(e??F()))}function F(e){return wt(e&&e.closest("[lang]")?.lang||document.documentElement.lang||navigator.language||"en")}function wt(e,t="en-US"){try{if(e)return Intl.getCanonicalLocales(e),e}catch{}try{return Intl.getCanonicalLocales(t),t}catch{return"en-US"}}var Yy,ar,Q=v(()=>{Yy=new Set(["ar","arc","dv","fa","ha","he","khw","ks","ku","ps","sd","ug","ur","uz","yi"]);ar=class{constructor({locale:t,messages:i={},fallbackLocale:s="en",root:n=document}={}){this.locale=t??F(),this.messages=i,this.fallbackLocale=s,this.root=n}t(t,i={}){let s=zi(this.locale),r=(this.messages[s]??this.messages[this.locale]??this.messages[this.fallbackLocale]??{})[t]??this.messages[this.fallbackLocale]?.[t]??t;for(let[a,o]of Object.entries(i))r=r.replaceAll(`{{${a}}}`,o);return r}apply(t=this.root){let i=t.querySelectorAll("[data-i18n]");for(let s of i){let n=s,r=n.dataset.i18n??"",a=n.dataset.i18nAttr,o=n.dataset.i18nVars?JSON.parse(n.dataset.i18nVars):{},c=this.t(r,o);if(a)n.setAttribute(a,c);else if(n.children.length===0)n.textContent=c;else{let l=[...n.childNodes].find(u=>u.nodeType===Node.TEXT_NODE);l?l.textContent=c:n.prepend(document.createTextNode(c))}}}async load(t,i){let s=await fetch(i);if(!s.ok)throw new Error(`VbI18n: failed to load messages from ${i}`);let n=await s.json();this.messages[t]={...this.messages[t]??{},...n}}setLocale(t){this.locale=t,this.apply(),document.dispatchEvent(new CustomEvent("vb:locale-change",{bubbles:!0,detail:{locale:t}}))}watch(){let t=i=>{this.locale=i.detail.locale,this.apply()};return document.addEventListener("vb:locale-change",t),()=>document.removeEventListener("vb:locale-change",t)}}});function Vi(e){return[...String(e??"").trim().toLowerCase().matchAll(/([^+]+|\+)(?:\+|$)/g)].map(i=>i[1].trim()).filter(Boolean).map(i=>i==="plus"?"+":i)}function ur(e,t=tt){let i=t?Gl.mac:Gl.other;if(e in i)return{label:i[e],spoken:(t?Kl.mac:Kl.other)[e],modifier:!0};let s=Zy[e];if(s)return{...s,modifier:!1};let n=e.toUpperCase();return{label:n,spoken:n,modifier:!1}}function Yl(e){return Vi(e).map(t=>ur(t).label).join(tt?"":"+")}function Qy(e){let t=String(e??"").toLowerCase();return Jy[t]??t}function ae(e){let t=Vi(e);return{key:Qy(t.pop()??""),meta:t.includes("meta")||t.includes("cmd"),ctrl:t.includes("ctrl")||t.includes("control"),shift:t.includes("shift"),alt:t.includes("alt")||t.includes("option")}}function Xl(e){return e.length===1&&!/[a-z0-9 ]/.test(e)}function Zl(e,t){let s=(e.key==="Spacebar"?" ":String(e.key??"").toLowerCase())===t.key;if(!s&&(e.altKey||e.shiftKey)&&/^[a-z0-9]$/.test(t.key)){let a=/\d/.test(t.key)?`Digit${t.key}`:`Key${t.key.toUpperCase()}`;s=e.code===a}if(!s)return!1;let n,r;return tt?(n=t.meta,r=t.ctrl):(n=!1,r=t.meta||t.ctrl),!(n!==e.metaKey||r!==e.ctrlKey||!Xl(t.key)&&t.shift!==e.shiftKey||t.alt!==e.altKey)}function Ui(e){let t=typeof e=="string"?ae(e):e;return!t.meta&&!t.ctrl&&!t.alt&&t.key.length===1}function Jl(e,t){let i=ae(e),s=ae(t),n=tt?i.ctrl:i.ctrl||i.meta,r=tt?s.ctrl:s.ctrl||s.meta,a=tt&&i.meta,o=tt&&s.meta,c=!Xl(i.key);return i.key===s.key&&n===r&&a===o&&i.alt===s.alt&&(!c||i.shift===s.shift)}function Wi(e,t=tt){let i=ae(e),s=[];i.alt&&s.push("Alt"),(i.ctrl||i.meta&&!t)&&s.push("Control"),i.meta&&t&&s.push("Meta"),i.shift&&s.push("Shift");let n=tv[i.key];return n||(n=/^f\d{1,2}$/.test(i.key)||i.key.length===1?i.key.toUpperCase():i.key[0].toUpperCase()+i.key.slice(1)),[...s,n].join("+")}var tt,Gl,Kl,Zy,Jy,tv,He=v(()=>{tt=/Mac|iPhone|iPad|iPod/.test(navigator.platform??""),Gl={mac:{meta:"\u2318",cmd:"\u2318",alt:"\u2325",option:"\u2325",shift:"\u21E7",ctrl:"\u2303",control:"\u2303"},other:{meta:"Ctrl",cmd:"Ctrl",alt:"Alt",option:"Alt",shift:"Shift",ctrl:"Ctrl",control:"Ctrl"}},Kl={mac:{meta:"Command",cmd:"Command",alt:"Option",option:"Option",shift:"Shift",ctrl:"Control",control:"Control"},other:{meta:"Control",cmd:"Control",alt:"Alt",option:"Alt",shift:"Shift",ctrl:"Control",control:"Control"}},Zy={escape:{label:"Esc",spoken:"Escape"},esc:{label:"Esc",spoken:"Escape"},enter:{label:"Enter",spoken:"Enter"},return:{label:"Enter",spoken:"Enter"},tab:{label:"Tab",spoken:"Tab"},space:{label:"Space",spoken:"Space"},backspace:{label:"Backspace",spoken:"Backspace"},delete:{label:"Del",spoken:"Delete"},del:{label:"Del",spoken:"Delete"},insert:{label:"Ins",spoken:"Insert"},home:{label:"Home",spoken:"Home"},end:{label:"End",spoken:"End"},pageup:{label:"PgUp",spoken:"Page up"},pagedown:{label:"PgDn",spoken:"Page down"},arrowup:{label:"\u2191",spoken:"Up arrow"},up:{label:"\u2191",spoken:"Up arrow"},arrowdown:{label:"\u2193",spoken:"Down arrow"},down:{label:"\u2193",spoken:"Down arrow"},arrowleft:{label:"\u2190",spoken:"Left arrow"},left:{label:"\u2190",spoken:"Left arrow"},arrowright:{label:"\u2192",spoken:"Right arrow"},right:{label:"\u2192",spoken:"Right arrow"},"+":{label:"+",spoken:"Plus"},plus:{label:"+",spoken:"Plus"}};Jy={esc:"escape",return:"enter",del:"delete",ins:"insert",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",space:" ",spacebar:" ",plus:"+",pgup:"pageup",pgdn:"pagedown"};tv={" ":"Space","+":"Plus",escape:"Escape",enter:"Enter",tab:"Tab",backspace:"Backspace",delete:"Delete",insert:"Insert",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",arrowup:"ArrowUp",arrowdown:"ArrowDown",arrowleft:"ArrowLeft",arrowright:"ArrowRight"}});function Ot(){return typeof document>"u"?!0:document.documentElement.getAttribute(ze)!=="off"}function Ql(e){let t=document.documentElement,i=Ot();e?t.removeAttribute(ze):t.setAttribute(ze,"off"),i!==!!e&&window.dispatchEvent(new CustomEvent(ev,{detail:{enabled:!!e}}))}function sv(){try{let e=globalThis.localStorage?.getItem(iv);if(!e)return null;let t=JSON.parse(e)?.data?.charShortcuts;return typeof t=="boolean"?t:null}catch{return null}}function eu(){return tu}var ze,ev,iv,tu,dr=v(()=>{ze="data-char-shortcuts",ev="vb:char-shortcuts-change",iv="vb:settings:extensions";tu=!0;if(typeof document<"u"){let e=sv();e===null&&(tu=Ot()),e===!1?document.documentElement.setAttribute(ze,"off"):e===!0&&document.documentElement.removeAttribute(ze)}});function rv(e){let t=e;return!t||!t.tagName?!1:nv.has(t.tagName)||t.isContentEditable}function av(e){if(e.repeat||e.isComposing||e.defaultPrevented)return;let t=rv(e.target),i=!Ot(),s=document.activeElement;for(let n of oe)if(!(t&&!n.global)&&!(n.scope&&!(n.scope.isConnected&&n.scope.contains(s)))&&!(i&&n.character&&!n.scope)&&!(n.enabled&&!n.enabled())&&Zl(e,n.descriptor)){e.preventDefault(),n.callback(e);return}}function ov(){iu||(document.addEventListener("keydown",av),iu=!0)}function At(e,t,i={}){ov();let s=ae(e),n={combo:e,descriptor:s,callback:t,global:i.global===!0,scope:i.scope??null,enabled:typeof i.enabled=="function"?i.enabled:null,character:Ui(s)},r=oe.find(a=>!a.scope&&!n.scope&&Jl(a.combo,e));return r&&console.warn(`[hotkey-bind] Shortcut "${e}" is already bound as "${r.combo}". Last-bound wins.`),oe.unshift(n),function(){let o=oe.indexOf(n);o!==-1&&oe.splice(o,1)}}function su(){return oe.map(e=>e.combo)}var nv,oe,iu,Ve=v(()=>{He();dr();nv=new Set(["INPUT","TEXTAREA","SELECT"]),oe=[],iu=!1});var yr={};x(yr,{addDialogDismiss:()=>bu,addFlickListener:()=>pu,addLongPress:()=>gu,addPullToRefresh:()=>_v,addSwipeListener:()=>fu,haptic:()=>Ji,initGestures:()=>yu,makeSwipeable:()=>mu});function fu(e,t={}){let i=t.threshold??50,s=t.restraint??100,n=t.timeout??300,r=t.velocity??.5,a=t.minFlickDistance??10,o,c,l;function u(h){h.isPrimary&&(o=h.clientX,c=h.clientY,l=Date.now())}function d(h){if(!h.isPrimary)return;let f=h.clientX-o,p=h.clientY-c,m=Date.now()-l;if(m>n)return;let g=Math.abs(f),b=Math.abs(p),T=Math.max(g,b),w=m>0?T/m:0,k=w>=r&&T>=a,$;if((g>=i||k&&g>b)&&b<=s?$=f<0?"left":"right":(b>=i||k&&b>g)&&g<=s&&($=p<0?"up":"down"),$){let N=$==="left"||$==="right"?g:b;e.dispatchEvent(new CustomEvent(`swipe-${$}`,{bubbles:!0,detail:{distance:N,duration:m,velocity:w,flick:k}}))}}return e.addEventListener("pointerdown",u,{passive:!0}),e.addEventListener("pointerup",d,{passive:!0}),()=>{e.removeEventListener("pointerdown",u),e.removeEventListener("pointerup",d)}}function pu(e,t={}){let i=t.minDistance??10,s=t.velocity??.6,n=t.timeout??250,r=t.restraint??80,a,o,c;function l(d){d.isPrimary&&(a=d.clientX,o=d.clientY,c=Date.now())}function u(d){if(!d.isPrimary)return;let h=d.clientX-a,f=d.clientY-o,p=Date.now()-c;if(p===0||p>n)return;let m=Math.abs(h),g=Math.abs(f),b=Math.max(m,g);if(b<i)return;let T=b/p;if(T<s)return;let w;if(m>g&&g<=r?w=h<0?"left":"right":g>m&&m<=r&&(w=f<0?"up":"down"),w){let k=w==="left"||w==="right"?m:g;e.dispatchEvent(new CustomEvent(`swipe-${w}`,{bubbles:!0,detail:{distance:k,duration:p,velocity:T,flick:!0}}))}}return e.addEventListener("pointerdown",l,{passive:!0}),e.addEventListener("pointerup",u,{passive:!0}),()=>{e.removeEventListener("pointerdown",l),e.removeEventListener("pointerup",u)}}function mu(e,t={}){let i=t.threshold??100,s=t.direction??"horizontal",n=t.removeOnDismiss??!0,r=s==="horizontal",a=0,o=0,c=!1;function l(m){!m.isPrimary||e.hasAttribute("data-dismissed")||(m.preventDefault(),c=!0,a=r?m.clientX:m.clientY,o=0,e.setPointerCapture(m.pointerId),e.setAttribute("data-swiping",""))}function u(m){if(!c||!m.isPrimary)return;o=(r?m.clientX:m.clientY)-a;let b=1-Math.min(Math.abs(o)/i,1)*.5;r?e.style.transform=`translateX(${o}px)`:e.style.transform=`translateY(${o}px)`,e.style.opacity=String(b)}function d(m){!c||!m.isPrimary||(c=!1,e.releasePointerCapture(m.pointerId),e.removeAttribute("data-swiping"),Math.abs(o)>=i?f(o>0?"right":"left"):p())}function h(m){!c||!m.isPrimary||(c=!1,e.releasePointerCapture(m.pointerId),e.removeAttribute("data-swiping"),p())}function f(m){let g=m==="right"?"100%":"-100%";e.style.transition="transform 0.2s ease-out, opacity 0.2s ease-out",e.style.transform=r?`translateX(${g})`:`translateY(${g})`,e.style.opacity="0",e.setAttribute("data-dismissed",""),Ji.dismiss(),e.dispatchEvent(new CustomEvent("swipe-dismiss",{bubbles:!0,detail:{direction:m,distance:Math.abs(o)}})),n&&e.addEventListener("transitionend",()=>e.remove(),{once:!0})}function p(){e.style.transition="transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease",e.style.transform="",e.style.opacity="",e.addEventListener("transitionend",()=>{e.style.transition=""},{once:!0})}return e.addEventListener("pointerdown",l),e.addEventListener("pointermove",u),e.addEventListener("pointerup",d),e.addEventListener("pointercancel",h),()=>{e.removeEventListener("pointerdown",l),e.removeEventListener("pointermove",u),e.removeEventListener("pointerup",d),e.removeEventListener("pointercancel",h)}}function _v(e,t,i={}){let s=i.threshold??70,n=i.maxPull??120,r=document.createElement("div");r.setAttribute("data-pull-indicator",""),r.setAttribute("aria-hidden","true");let a=document.createElement("div");a.setAttribute("data-pull-spinner",""),r.appendChild(a),e.prepend(r);let o=0,c=!1,l=!1;function u(g){!g.isPrimary||l||e.scrollTop<=0&&(o=g.clientY,c=!0)}function d(g){if(!c||!g.isPrimary||l)return;let b=g.clientY-o;if(b<=0){r.style.transform="",r.style.opacity="";return}let T=Math.min(b,n),w=T/s;r.style.transform=`translateY(${T}px)`,r.style.opacity=String(Math.min(w,1)),w>=1?r.setAttribute("data-pull-ready",""):r.removeAttribute("data-pull-ready")}function h(g){!c||!g.isPrimary||(c=!1,r.hasAttribute("data-pull-ready")&&!l?p():m())}function f(g){!c||!g.isPrimary||(c=!1,m())}async function p(){l=!0,r.removeAttribute("data-pull-ready"),r.setAttribute("data-pull-loading",""),r.style.transform=`translateY(${s}px)`,r.style.opacity="1";try{await t()}finally{l=!1,r.removeAttribute("data-pull-loading"),m()}}function m(){r.style.transition="transform 0.3s ease, opacity 0.3s ease",r.style.transform="",r.style.opacity="",r.removeAttribute("data-pull-ready"),r.addEventListener("transitionend",()=>{r.style.transition=""},{once:!0})}return e.addEventListener("pointerdown",u,{passive:!0}),e.addEventListener("pointermove",d,{passive:!0}),e.addEventListener("pointerup",h,{passive:!0}),e.addEventListener("pointercancel",f,{passive:!0}),()=>{e.removeEventListener("pointerdown",u),e.removeEventListener("pointermove",d),e.removeEventListener("pointerup",h),e.removeEventListener("pointercancel",f),r.remove()}}function gu(e,t,i={}){let s=i.duration??500,n=i.hapticFeedback??!0,r=i.blockContextMenu??!0,a=null;function o(u){u.isPrimary&&(a=setTimeout(()=>{n&&Ji.tap(),t(u),a=null},s))}function c(){a&&(clearTimeout(a),a=null)}function l(u){r&&u.preventDefault()}return e.addEventListener("pointerdown",o,{passive:!0}),e.addEventListener("pointermove",c,{passive:!0}),e.addEventListener("pointerup",c,{passive:!0}),e.addEventListener("pointercancel",c,{passive:!0}),e.addEventListener("contextmenu",l),()=>{c(),e.removeEventListener("pointerdown",o),e.removeEventListener("pointermove",c),e.removeEventListener("pointerup",c),e.removeEventListener("pointercancel",c),e.removeEventListener("contextmenu",l)}}function bu(e,t={}){let i=t.threshold??80,s=0,n=0,r=!1;function a(h){if(!h.isPrimary||!e.open)return;let f=h.target;f.closest("a, button, input, select, textarea, [contenteditable]")&&!f.closest("header")||(r=!0,s=h.clientY,n=0,e.setPointerCapture(h.pointerId),e.style.transition="none")}function o(h){if(!r||!h.isPrimary)return;if(n=h.clientY-s,n<=0){e.style.transform="",e.style.opacity="";return}let p=1-Math.min(n/i,1)*.4;e.style.transform=`translateY(${n}px)`,e.style.opacity=String(p)}function c(h){!r||!h.isPrimary||(r=!1,e.releasePointerCapture(h.pointerId),n>=i?u():d())}function l(h){!r||!h.isPrimary||(r=!1,e.releasePointerCapture(h.pointerId),d())}function u(){e.style.transition="transform 0.2s ease-out, opacity 0.2s ease-out",e.style.transform="translateY(100%)",e.style.opacity="0",Ji.dismiss(),e.addEventListener("transitionend",()=>{e.style.transition="",e.style.transform="",e.style.opacity="",e.close("dismiss")},{once:!0})}function d(){e.style.transition="transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease",e.style.transform="",e.style.opacity="",e.addEventListener("transitionend",()=>{e.style.transition=""},{once:!0})}return e.addEventListener("pointerdown",a),e.addEventListener("pointermove",o),e.addEventListener("pointerup",c),e.addEventListener("pointercancel",l),()=>{e.removeEventListener("pointerdown",a),e.removeEventListener("pointermove",o),e.removeEventListener("pointerup",c),e.removeEventListener("pointercancel",l)}}function yu(e=document){let t=[];for(let i of e.querySelectorAll('[data-gesture="swipe"]'))t.push(fu(i));for(let i of e.querySelectorAll('[data-gesture="flick"]'))t.push(pu(i));for(let i of e.querySelectorAll('[data-gesture="dismiss"]'))t.push(mu(i));for(let i of e.querySelectorAll('[data-gesture="long-press"]'))t.push(gu(i,()=>{i.dispatchEvent(new CustomEvent("long-press",{bubbles:!0}))}));for(let i of e.querySelectorAll('dialog[data-gesture="dismiss-down"]'))t.push(bu(i));return()=>t.forEach(i=>i())}var Ji,br,vr=v(()=>{Ji={tap:()=>navigator.vibrate?.(8),confirm:()=>navigator.vibrate?.([8,40,8]),error:()=>navigator.vibrate?.([30,60,30]),dismiss:()=>navigator.vibrate?.(15)};br=typeof document<"u"?document.documentElement:null;(!br||!br.hasAttribute("data-vb-gestures-init"))&&(br?.setAttribute("data-vb-gestures-init",""),yu())});var qu={};x(qu,{destroyStickyManager:()=>Aw,findBannerHeader:()=>Pu,initStickyManager:()=>ww});function Pu(){for(let e of document.querySelectorAll("header"))if(!e.parentElement?.closest(vw))return e;return null}function St(){let e=document.documentElement;if(!e.hasAttribute("data-sticky"))return;let t=Pu();t&&!t.hasAttribute("data-sticky")&&(t.dataset.sticky="",zr.add(t)),t&&as&&!Vr.has(t)&&(as.observe(t),Vr.add(t));let i=t?.hasAttribute("data-sticky")&&getComputedStyle(t).position!=="static",s=t&&i?t.getBoundingClientRect().height:0;e.style.setProperty("--sticky-offset",`${s}px`)}function Ou(){St()}function ww(){if(rs){St();return}rs=!0,as=new ResizeObserver(St),Vr=new WeakSet,St(),requestAnimationFrame(St),document.fonts?.ready?.then(St),window.addEventListener("resize",St,{passive:!0}),document.addEventListener("toggle",Ou,!0)}function Aw(){if(rs){rs=!1,window.removeEventListener("resize",St),document.removeEventListener("toggle",Ou,!0),as?.disconnect();for(let e of zr)delete e.dataset.sticky;zr.clear(),document.documentElement.style.removeProperty("--sticky-offset")}}var rs,as,zr,Vr,vw,ju=v(()=>{rs=!1,zr=new Set,Vr=new WeakSet,vw='article, aside, main, nav, section, [role="article"], [role="complementary"], [role="main"], [role="navigation"], [role="region"]'});var zu={};x(zu,{SoundManager:()=>Ew});var Hu,Ur,Ew,Vu=v(()=>{Hu="vb-sound",Ur={enabled:!1,volume:.5},Ew={_ctx:null,_enabled:!1,_volume:.5,_initialized:!1,init(){if(this._initialized)return this;let e=this._load();return this._enabled=e.enabled,this._volume=e.volume,this._initialized=!0,this},_getContext(){return this._ctx||(this._ctx=new(window.AudioContext||window.webkitAudioContext)),this._ctx.state==="suspended"&&this._ctx.resume(),this._ctx},_load(){try{let e=localStorage.getItem(Hu);return e?{...Ur,...JSON.parse(e)}:{...Ur}}catch{return{...Ur}}},_save(e){try{let t=this._load();localStorage.setItem(Hu,JSON.stringify({...t,...e}))}catch{}},_playTone(e,t,i="sine"){if(!this._enabled)return;let s=this._getContext(),n=s.createOscillator(),r=s.createGain();n.connect(r),r.connect(s.destination),n.frequency.value=e,n.type=i,r.gain.value=this._volume*.3,n.start(),r.gain.exponentialRampToValueAtTime(.01,s.currentTime+t),n.stop(s.currentTime+t)},enable(){this._enabled=!0,this._save({enabled:!0}),this.play("click")},disable(){this._enabled=!1,this._save({enabled:!1})},toggle(){return this._enabled?this.disable():this.enable(),this._enabled},isEnabled(){return this._enabled},setVolume(e){this._volume=Math.max(0,Math.min(1,e)),this._save({volume:this._volume})},getVolume(){return this._volume},play(e){if(this._enabled)switch(e){case"click":this._playTone(800,.1);break;case"success":this._playTone(523,.1),setTimeout(()=>this._playTone(659,.1),100),setTimeout(()=>this._playTone(784,.15),200);break;case"error":this._playTone(200,.15,"sawtooth"),setTimeout(()=>this._playTone(180,.2,"sawtooth"),150);break;case"notification":this._playTone(880,.1),setTimeout(()=>this._playTone(1100,.15),100);break;case"soft":this._playTone(600,.05);break;case"tick":this._playTone(1200,.02,"square");break}},getState(){return{enabled:this._enabled,volume:this._volume}}}});function Cw(e,t){if(!t)return e;let i=e??new URLSearchParams;for(let[s,n]of Object.entries(t))n!=null&&i.set(s,String(n));return i}async function Tw(e){if((e.headers.get("content-type")??"").includes("application/json"))try{return await e.json()}catch{return null}try{return await e.text()}catch{return null}}function Uu(e){return e.endsWith("/")?e.slice(0,-1):e}var Ye,Xe,Wu,Xr,K,J,pe=v(()=>{Ye="__vbServiceConfig",Xe=globalThis,Wu=()=>({baseUrl:"/go",headers:{},services:{}});Xe[Ye]||(Xe[Ye]=Wu());Xr=()=>Xe[Ye],K=class extends Error{constructor(t,i,s,n){super(`VBService(${s}): ${t} ${n}`),this.name="VBServiceError",this.status=t,this.body=i,this.role=s,this.path=n}};J=class e{static configure(t={}){let i=Xr();Xe[Ye]={baseUrl:t.baseUrl??i.baseUrl,headers:{...i.headers,...t.headers??{}},services:{...i.services,...t.services??{}}}}static resolve(t){if(!t||typeof t!="string")throw new TypeError("VBService: role must be a non-empty string");let i=Xr();return i.services[t]?Uu(i.services[t]):i.baseUrl?`${Uu(i.baseUrl)}/${t}`:`/go/${t}`}static _reset(){Xe[Ye]=Wu()}constructor(t){if(!t||typeof t!="string")throw new TypeError("VBService: role must be a non-empty string");this.role=t}async get(t,i){return this.#t("GET",t,{params:i})}async post(t,i){return this.#t("POST",t,{body:i})}async patch(t,i){return this.#t("PATCH",t,{body:i})}async delete(t){return this.#t("DELETE",t,{})}async#t(t,i,s){let n=e.resolve(this.role),r=i?i.startsWith("/")?i:`/${i}`:"",a=new URL(`${n}${r}`,globalThis.location?.origin??"http://localhost"),o=Cw(a.searchParams,s.params);o&&(a.search=o.toString());let c={method:t,headers:{...Xr().headers}};s.body!==void 0&&(c.body=JSON.stringify(s.body),c.headers["content-type"]="application/json");let l=a.toString(),u=await fetch(l,c),d=await Tw(u);if(!u.ok)throw new K(u.status,d,this.role,`${r||"/"}`);return d}};if(typeof window<"u"){let e=window.VB??(window.VB={});e.service??=J,e.ServiceError??=K}});function _w(e,t){let i=0;for(;i<e.length&&i<t.length&&e[e.length-1-i]===t[t.length-1-i];)i++;return i}function $w(e,t){let i=0;for(;i<e.length&&i<t.length&&e[i]===t[i];)i++;return i}function cs(e,t,i){return{prefix:e.slice(Math.max(0,t-32),t),suffix:e.slice(i,i+32)}}function Xu(e,t){let i=Yu(t.text??"");if(!i)return null;if(t.endOffset<=e.length&&Yu(e.slice(t.startOffset,t.endOffset))===i)return{start:t.startOffset,end:t.endOffset};let s=new RegExp(t.text.trim().split(/\s+/).map(Mw).join("\\s*"),"g"),n=t.prefix??"",r=t.suffix??"",a=null,o=-1,c=1/0;for(let l of e.matchAll(s)){let u=l.index,d=u+l[0].length,h=cs(e,u,d),f=_w(h.prefix,n)+$w(h.suffix,r),p=Math.abs(u-t.startOffset);(f>o||f===o&&p<c)&&(a={start:u,end:d},o=f,c=p)}return a}var Yu,Mw,Zu=v(()=>{Yu=e=>e.replace(/\s+/g,""),Mw=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")});var ad={};x(ad,{HighlightController:()=>fs,findRangeFromOffsets:()=>ds,fnv1a:()=>Je,initHighlights:()=>ps});function Je(e){let t=2166136261;for(let i=0;i<e.length;i++)t^=e.charCodeAt(i),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function nd(){return"hn-"+crypto.randomUUID().slice(0,8)}function ls(e,t){let i="highlightsLabel"+t[0].toUpperCase()+t.slice(1);return e.dataset[i]||Fw[t]}function Pw(e,{textLength:t,colors:i}){if(!e||typeof e!="object")return null;let s=e,{startOffset:n,endOffset:r,color:a}=s;if(!Number.isInteger(n)||!Number.isInteger(r))return null;let o=n,c=r;return o<0||c<=o||c>t||!Qr(a)||!i.includes(a)||s.id!=null&&(typeof s.id!="string"||!/^[\w-]{1,64}$/.test(s.id))||s.text!=null&&typeof s.text!="string"||s.note!=null&&typeof s.note!="string"||s.prefix!=null&&typeof s.prefix!="string"||s.suffix!=null&&typeof s.suffix!="string"?null:{id:s.id||nd(),startOffset:o,endOffset:c,text:s.text??"",prefix:(s.prefix??"").slice(-32),suffix:(s.suffix??"").slice(0,32),color:a,note:s.note??"",created:Number.isFinite(s.created)?s.created:Date.now()}}function Qr(e){return typeof e=="string"&&Rw.test(e)}function rd(){if(zt.size===0){Ht&&(document.adoptedStyleSheets=document.adoptedStyleSheets.filter(s=>s!==Ht),Ht=null);return}Ht||(Ht=new CSSStyleSheet,document.adoptedStyleSheets=[...document.adoptedStyleSheets,Ht]);let e=[...zt.keys()],t=e.map(s=>`::highlight(hn-${s}) { background-color: var(--highlight-${s}); color: var(--highlight-${s}-ink, var(--highlight-ink, CanvasText)); text-decoration-line: underline; text-decoration-color: var(--highlight-${s}); text-underline-offset: 2px; }`),i=e.map((s,n)=>`::highlight(hn-${s}) { background-color: Mark; color: MarkText; text-decoration-line: underline; text-decoration-color: MarkText; text-decoration-style: ${td[n%td.length]}; text-decoration-thickness: 2px; }`);Ht.replaceSync(`${t.join(`
2
2
  `)}
3
3
  @media (forced-colors: active) {
4
4
  ${i.join(`
5
5
  `)}
6
- }`)}function H0(e){for(let t of e)Vt.set(t,(Vt.get(t)??0)+1);od()}function z0(e){for(let t of e){let i=(Vt.get(t)??0)-1;i>0?Vt.set(t,i):Vt.delete(t)}od()}function V0(e){let t=Qe.get(e),i=t?[...t.values()].flat():[];i.length===0?(CSS.highlights.delete(`hn-${e}`),Qe.delete(e)):CSS.highlights.set(`hn-${e}`,new Highlight(...i))}function sd(e,t){let i=new Set(t.keys());for(let[s,n]of Qe)n.has(e)&&i.add(s);for(let s of i){let n=t.get(s)??[],r=Qe.get(s);n.length?(r||Qe.set(s,r=new Map),r.set(e,n)):r?.delete(e),V0(s)}}function ta(e){return document.createTreeWalker(e,NodeFilter.SHOW_TEXT,t=>t.parentElement?.closest(".hn-margin-annotation")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT)}function ds(e){let t=ta(e),i="";for(;t.nextNode();)i+=t.currentNode.textContent??"";return i}function nd(e,t,i){let s=ta(e),n=0;for(;s.nextNode();){if(s.currentNode===t)return n+i;n+=(s.currentNode.textContent??"").length}return-1}function hs(e,t,i){let s=ta(e),n=0,r=null,a=0,o=null,c=0;for(;s.nextNode();){let l=s.currentNode,u=(l.textContent??"").length;if(!r&&n+u>t&&(r=l,a=t-n),n+u>=i){o=l,c=i-n;break}n+=u}if(!r||!o)return null;try{let l=document.createRange();return l.setStart(r,Math.min(a,(r.textContent??"").length)),l.setEnd(o,Math.min(c,(o.textContent??"").length)),l}catch{return null}}function ms(e){let t=fs.get(e);if(t&&!t.destroyed)return t;let i=new ps(e);return fs.set(e,i),i}function rd(e=document){e.querySelectorAll(Jr).forEach(t=>{t.hasAttribute("data-highlights-init")||ms(t)})}var Jr,ed,F0,P0,fs,O0,id,q0,zt,Vt,Qe,ps,U0,ea=v(()=>{ct();dt();Qu();Jr="[data-highlights]",ed="highlights",F0=["yellow","green","blue","pink"],P0=typeof CSS<"u"&&"highlights"in CSS,fs=new WeakMap;O0=/^[a-z0-9_-]+$/i,id=["solid","double","dotted","dashed","wavy"],q0={annotation:"You highlighted",added:"Highlight added",removed:"Highlight removed",noteSaved:"Note saved"};zt=null,Vt=new Map,Qe=new Map;ps=class{#t;#e;#i;#n;#s=[];#o=[];#r=!P0;#a;#l;#c=!1;#g=[];#f=new Map;constructor(t){this.#t=t,this.#n=t.hasAttribute("data-highlights-readonly");let i=t.dataset.highlights;this.#e=i&&i!==""?i:location.pathname;let s=t.dataset.highlightsColors,n=s?s.split(",").map(r=>r.trim()).filter(Qr):[...F0];this.#i=[...new Set(n)],this.#r||H0(this.#i),this.#b(),this.#n||(this.#a=this.#p.bind(this),this.#l=this.#y.bind(this),t.addEventListener("pointerup",this.#a),t.addEventListener("click",this.#l)),t.setAttribute("data-highlights-init",""),this.#E().then(()=>{this.#c||(this.#b(),this.#v())})}get colors(){return[...this.#i]}get destroyed(){return this.#c}get element(){return this.#t}getHighlights(){return this.#s.map(t=>({...t}))}getUnplaced(){return this.#o.map(t=>({...t}))}removeHighlight(t){let i=this.#s.findIndex(n=>n.id===t),s=this.#o.findIndex(n=>n.id===t);i<0&&s<0||(i>=0?this.#s.splice(i,1):this.#o.splice(s,1),this.#S(),this.#b(),this.#x("highlights:removed",{id:t}),G(us(this.#t,"removed")))}clearAll(){this.#s=[],this.#o=[],this.#S(),this.#b()}exportHighlights(){return JSON.stringify({version:1,highlights:this.#s})}importHighlights(t){let i;try{i=typeof t=="string"?JSON.parse(t):t}catch{return{imported:0,rejected:0}}if(!i||!Array.isArray(i.highlights))return{imported:0,rejected:0};let s=this.#u(i.highlights);return this.#s=s,this.#o=[],this.#S(),this.#b(),{imported:s.length,rejected:i.highlights.length-s.length}}#u(t,i=ds(this.#t).length){let s={textLength:i,colors:this.#i},n=new Set,r=[];for(let a of t){let o=j0(a,s);!o||n.has(o.id)||(n.add(o.id),r.push(o))}return r}destroy(){this.#c||(this.#c=!0,this.#a&&this.#t.removeEventListener("pointerup",this.#a),this.#l&&this.#t.removeEventListener("click",this.#l),this.#r?this.#t.querySelectorAll("mark[data-hn-id]").forEach(t=>{let i=t.parentNode;for(;t.firstChild;)i.insertBefore(t.firstChild,t);i.removeChild(t),i.normalize()}):(sd(this,new Map),z0(this.#i)),this.#A(),this.#f.clear(),this.#t.removeAttribute("data-highlights-init"),fs.get(this.#t)===this&&fs.delete(this.#t))}#p(){requestAnimationFrame(()=>{if(this.#c)return;let t=window.getSelection();if(!t||t.isCollapsed||!t.toString().trim())return;let i=t.getRangeAt(0);this.#t.contains(i.commonAncestorContainer)&&this.#x("highlights:selected",{text:t.toString().trim(),rect:i.getBoundingClientRect()})})}#y(t){let i=t.target.closest?.(".hn-margin-annotation");if(i){let n=i.dataset.hnId,r=this.#s.find(a=>a.id===n);if(r){this.#x("highlights:clicked",{id:n,highlight:{...r}}),this.#x("highlights:request-note",{id:n,highlight:{...r},controller:this});return}}let s=t.target.closest?.("mark[data-hn-id]");if(s){let n=s.dataset.hnId,r=this.#s.find(a=>a.id===n);if(r){this.#x("highlights:clicked",{id:n,highlight:{...r}});return}}if(!this.#r){let n=this.#h(t.clientX,t.clientY);n&&this.#x("highlights:clicked",{id:n.id,highlight:{...n}})}}findHighlightRect(t){let i=this.#s.find(r=>r.id===t);if(!i)return null;let s=this.#d(i);if(!s)return null;let n=s.getClientRects();return n.length?n[0]:null}#d(t){return this.#f.get(t.id)??hs(this.#t,t.startOffset,t.endOffset)}#m(){this.#f.clear();for(let t of this.#s){let i=hs(this.#t,t.startOffset,t.endOffset);i&&this.#f.set(t.id,i)}}#h(t,i){for(let s of this.#s){let n=this.#f.get(s.id);if(!n)continue;let r=n.getClientRects();for(let a of r)if(t>=a.left&&t<=a.right&&i>=a.top&&i<=a.bottom)return s}return null}_createFromSelection(t){let i=window.getSelection();if(!i||i.isCollapsed)return;let s=i.getRangeAt(0);if(!this.#t.contains(s.commonAncestorContainer))return;let n=nd(this.#t,s.startContainer,s.startOffset),r=nd(this.#t,s.endContainer,s.endOffset);if(n<0||r<0||n>=r)return;let a=i.toString().trim(),o={id:ad(),startOffset:n,endOffset:r,text:a,...ls(ds(this.#t),n,r),color:t,note:"",created:Date.now()};this.#s.push(o),this.#S(),this.#b(),i.removeAllRanges(),this.#x("highlights:added",{id:o.id,text:a,color:t,note:""}),G(us(this.#t,"added"))}_changeColor(t,i){let s=this.#s.find(n=>n.id===t);s&&(s.color=i,this.#S(),this.#b())}_updateNote(t,i){let s=this.#s.find(n=>n.id===t);s&&(s.note=i,this.#S(),this.#N(),this.#x("highlights:note-changed",{id:t,note:i}),G(us(this.#t,"noteSaved")))}async#E(){let t=await x.get(ed,this.#e);if(!t||!Array.isArray(t.highlights)||this.#c)return;let i=Array.isArray(t.unplaced)?t.unplaced:[],s=this.#u([...t.highlights,...i],1/0),n=ds(this.#t);if(i.length===0&&t.contentHash===ti(n)){this.#s=s;return}this.#s=[],this.#o=[];for(let r of s){let a=Ju(n,r);a?this.#s.push({...r,startOffset:a.start,endOffset:a.end,...ls(n,a.start,a.end)}):this.#o.push(r)}this.#S()}#v(){this.#o.length!==0&&(console.warn(`[highlights] ${this.#o.length} stored highlight(s) could not be found in the current text. They are kept in storage.`,this.#t),this.#x("highlights:unplaced",{highlights:this.getUnplaced()}))}#S(){let t={version:1,contentHash:ti(ds(this.#t)),highlights:this.#s,...this.#o.length?{unplaced:this.#o}:{}};x.set(ed,this.#e,t).catch(()=>{})}#b(){this.#r?(this.#w(),this.#m()):(this.#m(),this.#k()),this.#N()}#k(){let t=new Map;for(let i of this.#i)t.set(i,[]);for(let i of this.#s){let s=this.#f.get(i.id);s&&t.has(i.color)&&t.get(i.color).push(s)}sd(this,t)}#w(){this.#t.querySelectorAll("mark[data-hn-id]").forEach(i=>{let s=i.parentNode;for(;i.firstChild;)s.insertBefore(i.firstChild,i);s.removeChild(i)}),this.#t.normalize();let t=[...this.#s].sort((i,s)=>s.startOffset-i.startOffset);for(let i of t){let s=hs(this.#t,i.startOffset,i.endOffset);if(!s)continue;let n=document.createElement("mark");n.dataset.hnId=i.id,Qr(i.color)&&(n.dataset.hnColor=i.color,n.style.setProperty("--_hn-color",`var(--highlight-${i.color})`),n.style.setProperty("--_hn-ink",`var(--highlight-${i.color}-ink, var(--highlight-ink))`));try{s.surroundContents(n)}catch{let r=s.extractContents();n.appendChild(r),s.insertNode(n)}}}#A(){for(let t of this.#g)t.remove();this.#g=[]}#N(){if(this.#A(),this.#s.length===0)return;getComputedStyle(this.#t).position==="static"&&(this.#t.style.position="relative");let i=this.#t.getBoundingClientRect(),s=us(this.#t,"annotation");for(let n of this.#s){let r=this.#f.get(n.id);if(!r)continue;let a=r.getClientRects();if(a.length===0)continue;let o=a[0].top-i.top,c=document.createElement("span");if(c.className="hn-margin-annotation",c.dataset.hnId=n.id,c.setAttribute("aria-hidden","true"),c.style.insetBlockStart=`${o}px`,n.note){let l=document.createElement("span");l.className="hn-note-indicator",l.textContent="*",c.append(l,` ${s}`),c.classList.add("hn-has-note")}else c.textContent=s;this.#t.appendChild(c),this.#g.push(c)}}#x(t,i={}){this.#t.dispatchEvent(new CustomEvent(t,{detail:i,bubbles:!0}))}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>rd()):rd();U0=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Jr)&&ms(s),s.querySelectorAll(Jr).forEach(n=>{n.hasAttribute("data-highlights-init")||ms(n)})}});U0.observe(document.documentElement,{childList:!0,subtree:!0})});var ra={};T(ra,{currentHash:()=>na,initPageWatch:()=>sa,normalisePath:()=>md,pageKey:()=>be,readWatch:()=>ii,removeWatch:()=>gd,writeWatch:()=>si});function fd(){return typeof window<"u"&&window.vbPageWatch?.serverSync===!0?!0:document.querySelector('meta[name="vb-page-watch-server"]')?.getAttribute("content")==="true"}async function W0(e){if(!fd())return null;try{let t=new J("notify"),i={url:e.url,type:"page-watch",notify:["panel"]},s=await t.post("/subscribe",i);return typeof s?.id=="string"?s.id:null}catch(t){let i=t instanceof K?`${t.status}`:String(t);return console.warn("[page-watch] server subscribe failed; client-only watch in effect.",i),null}}async function pd(e){if(!(!e||!fd()))try{await new J("notify").delete(`/subscribe/${encodeURIComponent(e)}`)}catch(t){let i=t instanceof K?`${t.status}`:String(t);console.warn("[page-watch] server unsubscribe failed; local state already cleared.",i)}}function G0(){return document.querySelector("main")||document.querySelector("article")||document.body}function md(e){let t=(e||"/").replace(/\/index\.html?$/i,"/");return t.length>1&&(t=t.replace(/\/+$/,"")),t||"/"}function be(){return md(location.pathname)}async function K0(){let e=be(),t=location.pathname||"/",i=e==="/"?"":e,s=new Set([t,`${i}/`,`${i}/index.html`]);if(s.delete(e),await x.get(Lt,e)){for(let n of s)await x.remove(Lt,n);return}for(let n of s){let r=await x.get(Lt,n);if(r){await x.set(Lt,e,r),await x.remove(Lt,n);return}}}function na(){let e=G0();return e?ti(e.textContent||""):""}function Y0(){return document.title||be()}async function ii(){return ld??=K0().catch(()=>{}),await ld,await x.get(Lt,be())}async function si(e){await x.set(Lt,be(),e)}async function gd(){await x.remove(Lt,be())}function gs(e,t,i){return e.getAttribute(`data-label-${t}`)??i}function bs(e,t){e.setAttribute("aria-pressed",t?"true":"false"),e.dataset.watching="",t||delete e.dataset.watching;let i=e.querySelector("icon-wc");if(i&&i.setAttribute("name",t?"bookmark-check":"bookmark"),e.hasAttribute("data-watch-label-locked"))return;let s=[...e.childNodes].find(n=>n.nodeType===Node.TEXT_NODE&&(n.textContent||"").trim());s&&(s.textContent=t?gs(e,"watching","Watching"):gs(e,"watch","Watch for updates")),e.setAttribute("title",t?gs(e,"stop","Stop watching this page"):gs(e,"action","Watch this page for content updates"))}async function X0(){let e=!!await ii();for(let t of document.querySelectorAll(`${ei}[data-watch-page-init]`))bs(t,e)}async function ia(e){if(e.hasAttribute("data-watch-page-init"))return;e.setAttribute("data-watch-page-init",""),e.setAttribute("type",e.getAttribute("type")||"button");let t=await ii();bs(e,!!t),e.addEventListener("click",async i=>{i.preventDefault();let s=await ii();if(s)await gd(),bs(e,!1),e.dispatchEvent(new CustomEvent("page-watch:remove",{bubbles:!0,composed:!0,detail:{url:s.url,subscriptionId:s.subscriptionId}})),pd(s.subscriptionId);else{let n={url:location.pathname||"/",title:Y0(),contentHash:na(),watchedAt:new Date().toISOString(),lastChecked:new Date().toISOString(),lastChanged:null,subscriptionId:null};await si(n),bs(e,!0),e.dispatchEvent(new CustomEvent("page-watch:add",{bubbles:!0,composed:!0,detail:{entry:n}}));let r=await W0(n);r&&await si({...n,subscriptionId:r})}})}async function Z0(){let e=await ii();if(!e)return;let t=na(),i=new Date().toISOString(),s=e.contentHash,n={...e,lastChecked:i};if(t&&t!==s){n.contentHash=t,n.lastChanged=i,await si(n);let r={id:`page-watch:${e.url}:${t}`,type:"watch",title:`Updated: ${e.title}`,body:"Content changed since your last visit.",url:e.url,date:i,read:!1,dismissed:!1,priority:"normal"};document.querySelector("notification-wc")&&!customElements.get("notification-wc")&&await customElements.whenDefined("notification-wc"),document.dispatchEvent(new CustomEvent("notification-wc:new",{bubbles:!0,composed:!0,detail:{notification:r}}))}else await si(n)}function sa(e=document){for(let t of e.querySelectorAll(ei))ia(t);Z0()}function ud(e){if(X0(),e.type!=="page-watch:remove")return;if(!(e.target instanceof Element&&e.target.matches(ei))){let i=e.detail;pd(i?.subscriptionId??null)}}var ei,Lt,ld,dd,hd,aa=v(()=>{ct();ge();ea();ei="[data-watch-page]",Lt="watches";ld=null;dd=Symbol.for("vb.page-watch-init"),hd=globalThis;hd[dd]||(hd[dd]=!0,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>sa()):sa(),document.addEventListener("page-watch:add",ud),document.addEventListener("page-watch:remove",ud),new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.(ei)&&ia(n),n.querySelectorAll?.(ei).forEach(r=>ia(r))}}).observe(document.documentElement,{childList:!0,subtree:!0}))});var Fd={};T(Fd,{initAll:()=>xa});function Sa(e){e.hasAttribute("data-back-to-top-init")||(e.setAttribute("data-back-to-top-init",""),e.toggleAttribute("data-state-visible",!1),e.addEventListener("click",Bd),Ss.add(e),xw(),Rd())}function $d(e){e.hasAttribute("data-back-to-top-init")&&(e.removeAttribute("data-back-to-top-init"),e.removeEventListener("click",Bd),Ss.delete(e),Ss.size===0&&Ut&&(window.removeEventListener("scroll",Ut),Ut=null))}function Id(){if(we&&we.isConnected)return we;let e=document.documentElement,t=document.body;if(t&&t.scrollHeight>e.clientHeight+1&&t){let s=getComputedStyle(t);if(/auto|scroll/.test(s.overflowY))return we=t,t}return we=document.scrollingElement||e,we}function Bd(e){let t=e.currentTarget.getAttribute("href")||"";if(t===""||t==="#"||t==="#top")e.preventDefault();else return;Id().scrollTo({top:0,left:0,behavior:Sw.matches?"auto":"smooth"})}function xw(){Ut||(Ut=()=>{ka||(ka=!0,requestAnimationFrame(()=>{Rd(),ka=!1}))},window.addEventListener("scroll",Ut,{passive:!0}),document.addEventListener("scroll",Ut,{capture:!0,passive:!0}))}function Rd(){let t=Id().scrollTop||window.scrollY,s=window.innerHeight*1,n=t>s,r=t<200;for(let a of Ss)a.toggleAttribute("data-state-visible",n&&!r)}function xa(e=document){e.querySelectorAll(ci).forEach(Sa)}var ci,Sw,Ss,Ut,ka,we,Cw,Ca=v(()=>{ci="[data-back-to-top]",Sw=matchMedia("(prefers-reduced-motion: reduce)"),Ss=new Set,Ut=null,ka=!1;we=null;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>xa(),{once:!0}):xa();Cw=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(ci)&&Sa(s),s.querySelectorAll(ci).forEach(n=>Sa(n))}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.(ci)&&$d(s),s.querySelectorAll?.(ci).forEach(n=>$d(n))}}});Cw.observe(document.documentElement,{childList:!0,subtree:!0})});function Da(e){return At(e.getAttribute("data-locale")||R(e))}function Dw(e){let t={};switch(e.getAttribute("data-format-number")){case"currency":t.style="currency",t.currency=e.getAttribute("data-currency")||"USD";break;case"percent":t.style="percent";break;case"compact":t.notation="compact";break;default:break}let i=parseInt(e.getAttribute("data-fraction-digits")??"",10);return Number.isInteger(i)&&i>=0&&i<=20&&(t.minimumFractionDigits=i,t.maximumFractionDigits=i),t}function xs(e,t={}){try{return new Intl.NumberFormat(Da(e),{...Dw(e),...t})}catch{return null}}var Cs=v(()=>{Q()});var Od={};T(Od,{initFormatNumber:()=>Na});function Na(e=document){e.querySelectorAll(Ae).forEach(Ts)}function Ts(e){li.has(e)||(li.add(e),e.setAttribute("data-format-number-init",""),Ls(e))}function Ls(e){let t=e.getAttribute("value");if(t==null||t.trim()==="")return;let i=Number(t);if(isNaN(i))return;let s=xs(e);s&&(e.textContent=s.format(i))}var Ae,Nw,li,Mw,Ma=v(()=>{Cs();Ae="data[data-format-number]",Nw=["value","data-format-number","data-currency","data-fraction-digits","data-locale","lang"],li=new WeakSet;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Na()):Na();Mw=new MutationObserver(e=>{for(let t of e){if(t.type==="attributes"){let i=t.target;t.attributeName==="lang"?(i.matches(Ae)&&li.has(i)&&Ls(i),i.querySelectorAll(Ae).forEach(s=>{li.has(s)&&Ls(s)})):i.matches(Ae)&&(li.has(i)?Ls(i):i.isConnected&&Ts(i));continue}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ae)&&Ts(s),s.querySelectorAll(Ae).forEach(Ts)}}});Mw.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:Nw})});var Ud={};T(Ud,{initFormatDate:()=>Ba});function qw(e){return/^\d{4}$/.test(e)?"year":/^\d{4}-\d{2}$/.test(e)?"month":/^\d{4}-\d{2}-\d{2}$/.test(e)?"day":null}function Ba(e=document){e.querySelectorAll(Dt).forEach(Ns)}function jw(e){let t=e.trim().match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return new Date(e);let[i,s,n]=[Number(t[1]),Number(t[2])-1,Number(t[3])],r=new Date(Date.UTC(i,s,n));return r.getUTCMonth()===s&&r.getUTCDate()===n?r:new Date(NaN)}function Ns(e){di.has(e)||(di.add(e),Ia.has(e)||Ia.set(e,{text:e.textContent.trim(),authoredTitle:e.hasAttribute("title")&&!e.hasAttribute(qd)}),e.setAttribute(qd,""),Hd(e))}function Hd(e){Ra(e);let t=e.getAttribute("datetime")?.trim();if(!t||!/^\d{4}/.test(t))return;let i=jw(t);if(isNaN(i.getTime()))return;let s=qw(t),n=e.getAttribute("data-format-date")||"medium",r=At(e.getAttribute("data-locale")||R(e)),a=Ia.get(e);n==="relative"?(e.textContent=zd(i,r),a?.authoredTitle||e.setAttribute("title",jd(i,"medium",s?null:"short",e,r,s)),Vd(e,i,r)):(!a?.authoredTitle&&a?.text&&e.setAttribute("title",a.text),e.textContent=jd(i,n,e.getAttribute("data-format-time"),e,r,s))}function jd(e,t,i,s,n,r=null){let a=t||"medium",o;r==="year"?o={year:"numeric"}:r==="month"?o={year:"numeric",month:$w[a]??"short"}:(o={dateStyle:a},i&&!r&&(o.timeStyle=i));let c=r?"UTC":s.getAttribute("data-time-zone")||void 0;try{return new Intl.DateTimeFormat(n,{...o,timeZone:c}).format(e)}catch{try{return new Intl.DateTimeFormat(n,o).format(e)}catch{return s.textContent??""}}}function zd(e,t){let i=Math.round((e.getTime()-Date.now())/1e3),s=Math.abs(i);for(let n=0;n<ui.length;n++){let{seconds:r,max:a}=ui[n];if(s<r)continue;let{unit:o}=ui[n],c=Math.round(i/r);Math.abs(c)>=a&&n>0&&(o=ui[n-1].unit,c=Math.sign(i)*Math.max(1,Math.round(s/ui[n-1].seconds)));try{return new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(c,o)}catch{let l=Math.abs(c),u=l===1?o:`${o}s`;return c<0?`${l} ${u} ago`:`in ${l} ${u}`}}try{return new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(0,"second")}catch{return"just now"}}function Vd(e,t,i){Ra(e);let s=Math.abs(Date.now()-t.getTime()),n=36e5,r=864e5,a;s<n?a=6e4:s<r?a=3e5:a=36e5;let o=setTimeout(()=>{Ds.delete(e),e.textContent=zd(t,i),Vd(e,t,i)},a);Ds.set(e,o)}function Ra(e){let t=Ds.get(e);t!==void 0&&(clearTimeout(t),Ds.delete(e))}function _a(e){Ra(e),di.delete(e)}function $a(e){di.has(e)?Hd(e):e.isConnected&&Ns(e)}var Dt,_w,qd,Ds,di,Ia,$w,Iw,Bw,Rw,Fw,Pw,Ow,ui,Hw,Fa=v(()=>{Q();Dt="time[data-format-date]",_w=["datetime","data-format-date","data-format-time","data-time-zone","data-locale","lang"],qd="data-format-date-init",Ds=new Map,di=new WeakSet,Ia=new WeakMap,$w={short:"numeric",medium:"short",long:"long",full:"long"},Iw=60,Bw=3600,Rw=86400,Fw=604800,Pw=2592e3,Ow=31536e3,ui=[{unit:"year",seconds:Ow,max:1/0},{unit:"month",seconds:Pw,max:12},{unit:"week",seconds:Fw,max:5},{unit:"day",seconds:Rw,max:7},{unit:"hour",seconds:Bw,max:24},{unit:"minute",seconds:Iw,max:60},{unit:"second",seconds:1,max:60}];document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Ba()):Ba();Hw=new MutationObserver(e=>{for(let t of e){if(t.type==="attributes"){let i=t.target;t.attributeName==="lang"?(i.matches(Dt)&&$a(i),i.querySelectorAll(Dt).forEach($a)):i.matches(Dt)?$a(i):t.attributeName==="data-format-date"&&di.has(i)&&_a(i);continue}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.isConnected||(s.matches(Dt)&&_a(s),s.querySelectorAll(Dt).forEach(_a))}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.isConnected&&(s.matches(Dt)&&Ns(s),s.querySelectorAll(Dt).forEach(Ns))}}});Hw.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:_w})});var Kd={};T(Kd,{formatByteSize:()=>Gd,initFormatBytes:()=>Pa});function Pa(e=document){e.querySelectorAll(Ee).forEach(Ms)}function Ms(e){hi.has(e)||(hi.add(e),e.setAttribute("data-format-bytes-init",""),_s(e))}function Uw(e){let t=parseInt(e??"0",10);return Number.isFinite(t)?Math.min(20,Math.max(0,t)):0}function Gd(e,{precision:t=0,decimal:i=!1,locale:s}={}){let n=i?1e3:1024,r=Math.abs(e),a=r<1?0:Math.min(Math.floor(Math.log(r)/Math.log(n)),Wd.length-1),o=e/Math.pow(n,a);try{return new Intl.NumberFormat(s,{style:"unit",unit:Wd[a],unitDisplay:a===0?"long":"short",minimumFractionDigits:t,maximumFractionDigits:t}).format(o)}catch{return`${o.toFixed(t)} ${Vw[a]}`}}function _s(e){let t=e.getAttribute("value");if(t==null||t.trim()==="")return;let i=Number(t);Number.isFinite(i)&&(e.textContent=Gd(i,{precision:Uw(e.getAttribute("data-format-bytes")),decimal:e.getAttribute("data-unit")==="decimal",locale:Da(e)}))}var Ee,zw,Wd,Vw,hi,Ww,Oa=v(()=>{Cs();Ee="data[data-format-bytes]",zw=["value","data-format-bytes","data-unit","data-locale","lang"],Wd=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"],Vw=["B","kB","MB","GB","TB","PB"],hi=new WeakSet;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Pa()):Pa();Ww=new MutationObserver(e=>{for(let t of e){if(t.type==="attributes"){let i=t.target;t.attributeName==="lang"?(i.matches(Ee)&&hi.has(i)&&_s(i),i.querySelectorAll(Ee).forEach(s=>{hi.has(s)&&_s(s)})):i.matches(Ee)&&(hi.has(i)?_s(i):i.isConnected&&Ms(i));continue}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ee)&&Ms(s),s.querySelectorAll(Ee).forEach(Ms)}}});Ww.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:zw})});function Gw(e){for(let[t,i]of $s)e.querySelectorAll(t).forEach(i)}function Kw(e){if(e.nodeType!==Node.ELEMENT_NODE)return;let t=e;for(let[i,s]of $s)t.matches(i)&&s(t),t.querySelectorAll(i).forEach(s)}function Yw(){qa||(qa=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes)Kw(i)}),qa.observe(document.documentElement,{childList:!0,subtree:!0}))}function Xw(){Is||(Is=!0,Gw(document))}function C(e,t){$s.set(e,t),Yw(),Is||document.readyState!=="loading"?(Is=!0,document.querySelectorAll(e).forEach(t)):$s.size===1&&document.addEventListener("DOMContentLoaded",Xw)}function F(e,t){let i=ja.get(e);i||ja.set(e,i=new Set),i.add(t),!Yd&&(Yd=!0,document.addEventListener("reset",s=>{let n=s.target;n instanceof HTMLFormElement&&setTimeout(()=>{if(s.defaultPrevented)return;let r=new Set,a=[...n.querySelectorAll("*"),...Array.from(n.elements)];for(let o of a){if(r.has(o))continue;r.add(o);let c=ja.get(o);if(c)for(let l of c)l(o)}},0)},!0))}var $s,qa,Is,ja,Yd,$=v(()=>{$s=new Map,qa=null,Is=!1;ja=new WeakMap,Yd=!1});var Jd={};T(Jd,{concealSpoiler:()=>Bs,initSpoilers:()=>Qw,revealSpoiler:()=>Zd});function Jw(e){return Zw.has(e.tagName)||e.localName.includes("-")}function Qw(e=document){e.querySelectorAll(Ha).forEach(za)}function tA(e){return e.getAttribute("data-spoiler-label")||B(e,"spoiler-reveal","Reveal spoiler")}function za(e){if(Xd.has(e))return;if(Xd.add(e),e.getAttribute("data-spoiler")||e.setAttribute("data-spoiler","blur"),e.querySelector(":scope > [data-spoiler-content]")){e.setAttribute("data-spoiler-init","");return}(e.tagName==="DIV"||e.tagName==="SPAN")&&!e.hasAttribute("role")&&!e.hasAttribute("aria-label")&&!e.hasAttribute("aria-labelledby")&&(e.setAttribute("role","group"),e.setAttribute("aria-label",B(e,"spoiler","Spoiler")));let t=document.createElement(Jw(e)?"div":"span");for(t.setAttribute("data-spoiler-content",""),t.setAttribute("inert",""),t.tabIndex=-1;e.firstChild;)t.appendChild(e.firstChild);e.appendChild(t);let i=document.createElement("button");i.type="button",i.setAttribute("data-spoiler-trigger",""),i.setAttribute("aria-expanded","false");let s=document.createElement("span");s.setAttribute("data-spoiler-label",""),s.textContent=tA(e),i.appendChild(s),e.appendChild(i),e.setAttribute("data-spoiler-init","")}function Zd(e){if(e.hasAttribute("data-spoiler-visible"))return;let t=e.getAttribute("data-spoiler-group");t&&document.querySelectorAll(`[data-spoiler-group="${CSS.escape(t)}"][data-spoiler-visible]`).forEach(r=>{r!==e&&Bs(r,{restoreFocus:!1})});let i=e.querySelector(":scope > [data-spoiler-content]"),s=e.querySelector(":scope > [data-spoiler-trigger]"),n=!!s&&(document.activeElement===s||s.contains(document.activeElement));if(i&&i.removeAttribute("inert"),s&&(s.setAttribute("aria-expanded","true"),s.hidden=!0),e.setAttribute("data-spoiler-visible",""),!e.hasAttribute("data-spoiler-persist")&&!e.querySelector(":scope > [data-spoiler-hide]")){let r=document.createElement("button");r.type="button",r.setAttribute("data-spoiler-hide",""),r.textContent=B(e,"spoiler-hide","Hide spoiler"),e.appendChild(r)}n&&i&&i.focus({preventScroll:!0}),G(B(e,"spoiler-revealed","Spoiler revealed")),e.dispatchEvent(new CustomEvent("spoiler:toggle",{bubbles:!0,detail:{visible:!0}}))}function Bs(e,{restoreFocus:t=!0}={}){if(e.hasAttribute("data-spoiler-persist")||!e.hasAttribute("data-spoiler-visible"))return;let i=e.querySelector(":scope > [data-spoiler-content]"),s=e.querySelector(":scope > [data-spoiler-trigger]"),n=e.querySelector(":scope > [data-spoiler-hide]"),r=e.contains(document.activeElement);i&&i.setAttribute("inert",""),s&&(s.setAttribute("aria-expanded","false"),s.hidden=!1,t&&r&&s.focus()),n&&n.remove(),e.removeAttribute("data-spoiler-visible"),e.dispatchEvent(new CustomEvent("spoiler:toggle",{bubbles:!0,detail:{visible:!1}}))}function eA(e){let i=e.target?.closest?.("[data-spoiler-trigger], [data-spoiler-hide]");if(!i)return;let s=i.parentElement;s?.matches(Ha)&&(za(s),i.hasAttribute("data-spoiler-trigger")?Zd(s):Bs(s))}function iA(e){if(e.key!=="Escape")return;let t=e.target?.closest?.("[data-spoiler][data-spoiler-visible]");!t||t.hasAttribute("data-spoiler-persist")||(e.stopPropagation(),Bs(t))}var Ha,Xd,Zw,Va=v(()=>{$();dt();Ha="[data-spoiler]",Xd=new WeakSet,Zw=new Set(["DIV","SECTION","ARTICLE","ASIDE","MAIN","HEADER","FOOTER","NAV","LI","DD","TD","TH","BLOCKQUOTE","FIGURE","FIGCAPTION","DETAILS","DIALOG","FORM","FIELDSET","ADDRESS"]);typeof document<"u"&&!document.__vbSpoilerDelegated&&(document.__vbSpoilerDelegated=!0,document.addEventListener("click",eA),document.addEventListener("keydown",iA));C(Ha,za)});var ih={};T(ih,{initSplitters:()=>Wa,keyToDirection:()=>eh,pointerToPercent:()=>th});function Wa(e=document){e.querySelectorAll(Ua).forEach(Ga)}function rA(e,t,i){return Math.min(i,Math.max(t,e))}function th(e,t,{vertical:i,rtl:s}){return i?(e.clientY-t.top)/t.height*100:(s?t.right-e.clientX:e.clientX-t.left)/t.width*100}function eh(e,{vertical:t,rtl:i}){return t?e==="ArrowUp"?-1:e==="ArrowDown"?1:0:e==="ArrowLeft"?i?1:-1:e==="ArrowRight"?i?-1:1:0}function Ga(e){if(Qd.has(e))return;for(let f of e.querySelectorAll(":scope > .split-divider"))f.remove();let t=[...e.children];if(t.length<2)return;Qd.add(e),e.setAttribute("data-splitter-init","");let i=t[0],s=t[1],n=e.getAttribute("data-splitter")==="vertical",r=Number(i.dataset.min)||10,a=Number(i.dataset.max)||90,o=()=>getComputedStyle(e).direction==="rtl";i.id||(i.id=`vb-splitter-panel-${++nA}`);let c=document.createElement("div");c.className="split-divider",c.setAttribute("role","separator"),c.setAttribute("aria-orientation",n?"horizontal":"vertical"),c.setAttribute("aria-valuemin",String(r)),c.setAttribute("aria-valuemax",String(a)),c.setAttribute("aria-label",e.getAttribute("data-label-resize")||sA),c.setAttribute("aria-controls",i.id),c.setAttribute("tabindex","0"),e.insertBefore(c,s),i.style.flexGrow="0",i.style.flexShrink="0",i.style.overflow="auto",s.style.flexGrow="1",s.style.overflow="auto";let l=!1,u=50;function d(f,{silent:p=!1}={}){u=rA(f,r,a),i.style.flexBasis=`${u}%`,c.setAttribute("aria-valuenow",String(Math.round(u))),!p&&e.dispatchEvent(new CustomEvent("splitter:resize",{detail:{position:u},bubbles:!0}))}d(50,{silent:!0});function h(){l&&(l=!1,e.style.userSelect="")}c.addEventListener("pointerdown",f=>{f.preventDefault(),l=!0,c.setPointerCapture(f.pointerId),e.style.userSelect="none"}),c.addEventListener("pointermove",f=>{if(!l)return;let p=e.getBoundingClientRect();d(th(f,p,{vertical:n,rtl:o()}))}),c.addEventListener("pointerup",f=>{c.hasPointerCapture(f.pointerId)&&c.releasePointerCapture(f.pointerId),h()}),c.addEventListener("pointercancel",h),c.addEventListener("lostpointercapture",h),c.addEventListener("keydown",f=>{let p=f.shiftKey?10:1,m=eh(f.key,{vertical:n,rtl:o()});m!==0?(f.preventDefault(),d(u+m*p)):f.key==="Home"?(f.preventDefault(),d(r)):f.key==="End"&&(f.preventDefault(),d(a))})}var Ua,sA,Qd,nA,aA,Ka=v(()=>{Ua="[data-splitter]",sA="Resize panels",Qd=new WeakSet,nA=0;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Wa()):Wa();aA=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ua)&&Ga(s),s.querySelectorAll(Ua).forEach(Ga)}});aA.observe(document.documentElement,{childList:!0,subtree:!0})});var rh={};T(rh,{initSwitches:()=>oA});function nh(e){e.hasAttribute("role")||e.setAttribute("role","switch"),e.setAttribute("data-switch-init","")}function oA(e=document){e.querySelectorAll(sh).forEach(t=>nh(t))}var sh,Ya=v(()=>{$();sh='input[type="checkbox"][data-switch]';C(sh,nh)});var fh={};T(fh,{initTextareaCounts:()=>fA});function uh(e){return e.closest("[lang]")?.getAttribute("lang")||navigator.language}function dh(e,t){try{return new Intl.PluralRules(e).select(t)}catch{return"other"}}function Xa(e,t){try{return new Intl.NumberFormat(e).format(t)}catch{return String(t)}}function dA(e,t,i,s){let n=t?"words":"characters",r=uh(e),a=dh(r,s);return(e.getAttribute(`data-label-limit-${a}`)??e.getAttribute("data-label-limit")??uA[n][a==="one"?"one":"other"]).replaceAll("{count}",Xa(r,i)).replaceAll("{max}",Xa(r,s))}function hA(e,t,i){let s=t?"words":"characters",n=uh(e),r=dh(n,i);return(e.getAttribute(`data-label-${s}-${r}`)??e.getAttribute(`data-label-${s}`)??lA[s][r==="one"?"one":"other"]).replaceAll("{count}",Xa(n,i))}function hh(e){if(oh.has(e))return;let t=e.hasAttribute("data-count-init");e.setAttribute("data-count-init","");let i=e.dataset.count==="words",s=i?parseInt(e.dataset.maxwords??"0",10)||0:e.maxLength>0?e.maxLength:0,n=e.closest("form-field"),r=null,a=null;if(t){let h=n?n.querySelector(":scope > output.textarea-counter"):e.nextElementSibling;if(h?.matches("output.textarea-counter")&&!ch.has(h)){r=h;let f=r.nextElementSibling;f?.matches('span.visually-hidden[aria-live="polite"]')&&(a=f);let p=r.id,m=(e.getAttribute("aria-describedby")??"").split(/\s+/).filter(g=>g&&g!==p);m.length?e.setAttribute("aria-describedby",m.join(" ")):e.removeAttribute("aria-describedby")}}r||(r=document.createElement("output"),r.className="textarea-counter",r.setAttribute("aria-live","off"),n?n.append(r):e.insertAdjacentElement("afterend",r)),r.id=`${e.id||`textarea-${++ah}`}-count`,document.getElementById(r.id)!==r&&(r.id=`textarea-${++ah}-count`),ch.add(r),a||(a=document.createElement("span"),a.className="visually-hidden",a.setAttribute("aria-live","polite"),a.setAttribute("aria-atomic","true"),r.insertAdjacentElement("afterend",a));let o=a,c=r,l=(e.getAttribute("aria-describedby")??"").split(/\s+/).filter(Boolean);l.includes(r.id)||e.setAttribute("aria-describedby",[...l,r.id].join(" "));let u;function d(){let h=e.value,f=i?h.trim()?h.trim().split(/\s+/).length:0:h.length;if(s>0){c.textContent=dA(e,i,f,s);let p=f/s;c.dataset.state=p>=1?"error":p>=.8?"warning":""}else c.textContent=hA(e,i,f),c.dataset.state="";if(clearTimeout(u),c.dataset.state){let p=c.textContent;u=setTimeout(()=>{o.textContent=p},cA)}else o.textContent=""}oh.set(e,d),e.addEventListener("input",d),F(e,d),d()}function fA(e=document){e.querySelectorAll(lh).forEach(hh)}var lh,cA,ah,lA,uA,oh,ch,Za=v(()=>{$();lh="textarea[data-count]",cA=700,ah=0,lA={characters:{one:"{count} character",other:"{count} characters"},words:{one:"{count} word",other:"{count} words"}},uA={characters:{one:"{count} of {max} character",other:"{count} of {max} characters"},words:{one:"{count} of {max} word",other:"{count} of {max} words"}};oh=new WeakMap,ch=new WeakSet;C(lh,hh)});var bh={};T(bh,{initTextareaGrow:()=>mA});function gh(e){if(ph.has(e))return;ph.add(e);let t=parseInt(e.dataset.maxRows??"0",10)||0;if(e.hasAttribute("rows")&&e.style.setProperty("--grow-rows",String(e.rows)),t>0&&e.style.setProperty("--grow-max-rows",String(t)),pA){e.setAttribute("data-grow-init","");return}e.setAttribute("data-grow-init","fallback");function i(){e.style.blockSize="auto";let s=getComputedStyle(e),n=parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),r=e.scrollHeight+n;if(t>0){let a=parseFloat(s.lineHeight)||parseFloat(s.fontSize)*1.2,o=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),c=a*t+o+n;r>c?(r=c,e.style.overflowY="auto"):e.style.overflowY="hidden"}e.style.blockSize=r+"px"}e.addEventListener("input",i),e.addEventListener("change",i),F(e,i),i()}function mA(e=document){e.querySelectorAll(mh).forEach(gh)}var mh,pA,ph,Ja=v(()=>{$();mh="textarea[data-grow]",pA=CSS.supports("field-sizing","content"),ph=new WeakSet;C(mh,gh)});function vA(e){return e.localName.includes("-")?!!customElements.get(e.localName)?.formAssociated:!1}function Wt(e){let t=e.name;return typeof t=="string"&&t||e.getAttribute("name")||""}function Rs(e){if(e instanceof HTMLButtonElement||e instanceof HTMLFieldSetElement||e instanceof HTMLOutputElement)return[];if(e instanceof HTMLInputElement)return gA.has(e.type)?[]:e.type==="radio"||e.type==="checkbox"?e.checked?[e.value||"on"]:[]:e.type==="file"?e.files?[...e.files].map(i=>i.name):[]:e.value===""?[]:[e.value];if(e instanceof HTMLSelectElement)return e.multiple?[...e.selectedOptions].map(i=>i.value):e.value===""?[]:[e.value];let t=e.value;return Array.isArray(t)?t.map(String).filter(i=>i!==""):t==null||t===""?[]:[String(t)]}function Qa(e,t){return e instanceof HTMLFormElement?Array.from(e.elements).filter(i=>Wt(i)===t):[...e.querySelectorAll(`[name="${CSS.escape(t)}"]`)]}function wA(e,t){return Qa(e,t).flatMap(Rs)}function AA(e){let t=e.trim(),i=t.search(/[=:]/);if(i===-1){let a=t.startsWith("!");return{name:(a?t.slice(1):t).trim(),value:null,negate:a}}let s=t.slice(0,i),n=t.slice(i+1),r=!1;return s.startsWith("!")&&(r=!0,s=s.slice(1)),s.endsWith("!")?(r=!r,s=s.slice(0,-1)):n.startsWith("!")&&(r=!r,n=n.slice(1)),{name:s.trim(),value:n.trim(),negate:r}}function yh(e){return String(e||"").split("||").map(t=>t.split("&&").map(AA).filter(i=>i.name)).filter(t=>t.length)}function vh(e){return new Set(yh(e).flat().map(t=>t.name))}function EA(e,t){let i=wA(t,e.name),s=e.value===null?i.length>0:i.includes(e.value);return e.negate?!s:s}function Fs(e,t){return yh(e).some(i=>i.every(s=>EA(s,t)))}function kA(e){return[e,...e.querySelectorAll("*")].filter(i=>i.matches(yA)||vA(i))}function Ps(e,t){for(let i of kA(e))if(t){if(!i.hasAttribute(fi)||i.closest(bA))continue;i.removeAttribute("disabled"),i.removeAttribute(fi)}else{if(i.hasAttribute("disabled"))continue;i.setAttribute("disabled",""),i.setAttribute(fi,"")}}var gA,fi,bA,yA,to=v(()=>{gA=new Set(["button","submit","reset","image"]),fi="data-conditional-disabled",bA="[data-show-when][hidden], [data-hide-when][hidden], [data-wizard-step][data-wizard-hidden]",yA="input, select, textarea, button, fieldset"});var xh={};T(xh,{initConditionalFields:()=>xA});function Eh(e){return e.closest("form")||document}function kh(e){return e.hasAttribute("data-show-when")?{condition:e.dataset.showWhen||"",invert:!1}:{condition:e.dataset.hideWhen||"",invert:!0}}function io(e){let{condition:t,invert:i}=kh(e),s=Fs(t,Eh(e)),n=i?!s:s;n?(e.removeAttribute("hidden"),e.removeAttribute("inert")):(e.setAttribute("hidden",""),e.setAttribute("inert","")),Ps(e,n)}function so(e,t){for(let i of document.querySelectorAll(no)){let s=i;!eo.has(s)||Eh(s)!==e||t&&!vh(kh(s).condition).has(t)||io(s)}}function Ah(e){let t=e.target;if(!(t instanceof Element))return;let i=Wt(t);if(!i)return;let s=t.form||t.closest("form");so(s||document,i),s&&so(document,i)}function SA(){wh||(wh=!0,document.addEventListener("input",Ah,!0),document.addEventListener("change",Ah,!0),document.addEventListener("reset",e=>{setTimeout(()=>{e.defaultPrevented||so(document)},0)},!0))}function Sh(e){let t=e;eo.has(t)||(eo.add(t),t.setAttribute("data-conditional-init",""),SA(),io(t),F(t,io))}function xA(e=document){e.querySelectorAll(no).forEach(Sh)}var no,eo,wh,ro=v(()=>{$();to();no="[data-show-when], [data-hide-when]",eo=new WeakSet,wh=!1;C(no,Sh)});var Mh={};T(Mh,{initRangeSliders:()=>TA});function oo(e,t){if(e===""||e==null)return t;let i=parseFloat(e);return Number.isFinite(i)?i:t}function ao(e){let t=oo(e.min,0),i=oo(e.max,100);return i<t&&(i=t),{min:t,max:i}}function Th(e,t,i){return i===t?0:Math.min(1,Math.max(0,(e-t)/(i-t)))}function Lh(e){let t=String(e),i=t.indexOf(".");return i===-1?0:t.length-i-1}function Nh(e){if(Ch.has(e)||!e.parentNode)return;Ch.add(e),e.setAttribute("data-range-init","");let t=e.hasAttribute("data-bubble"),i=e.parentElement;i?.classList.contains("range-wrapper")?i.querySelectorAll(":scope > .range-bubble, :scope > .range-markers, :scope > .range-labels").forEach(l=>l.remove()):(i=document.createElement("div"),i.className="range-wrapper",e.parentNode.insertBefore(i,e),i.appendChild(e));let s=!e.hasAttribute("aria-valuetext"),n;if(t&&(n=document.createElement("output"),n.className="range-bubble",n.setAttribute("aria-hidden","true"),e.id&&n.htmlFor.add(e.id),i.appendChild(n)),e.hasAttribute("data-markers")){let{min:l,max:u}=ao(e),d=oo(e.step,1)||1,h=Math.round((u-l)/d);if(h>0&&h<=CA){let f=document.createElement("div");f.className="range-markers",f.setAttribute("aria-hidden","true");for(let p=0;p<=h;p++)f.appendChild(document.createElement("span"));i.appendChild(f)}}let r=e.getAttribute("list"),a=r?document.getElementById(r):null;if(a instanceof HTMLDataListElement){let l=document.createElement("div");l.className="range-labels",l.setAttribute("aria-hidden","true");let{min:u,max:d}=ao(e);Array.from(a.options).forEach(h=>{let f=document.createElement("span");f.textContent=h.label||h.value,f.style.setProperty("--range-frac",String(Th(parseFloat(h.value),u,d))),l.appendChild(f)}),i.appendChild(l)}function o(){let l=e.value;if(a instanceof HTMLDataListElement){let p=Array.from(a.options).find(m=>m.label&&parseFloat(m.value)===parseFloat(l));if(p)return p.label}let u=e.dataset.prefix||"",d=e.dataset.suffix||"",h=Math.max(Lh(e.step==="any"?"":e.step),Lh(l)),f=l;try{f=new Intl.NumberFormat(R(e),{minimumFractionDigits:h,maximumFractionDigits:h}).format(parseFloat(l))}catch{}return`${u}${f}${d}`}function c(){let{min:l,max:u}=ao(e),d=Th(parseFloat(e.value),l,u);i.style.setProperty("--range-pct",`${d*100}%`),i.style.setProperty("--range-frac",String(d));let h=o();n&&(n.textContent=h),s&&(h!==e.value?e.setAttribute("aria-valuetext",h):e.removeAttribute("aria-valuetext"))}e.addEventListener("input",c),e.addEventListener("change",c),F(e,c),c()}function TA(e=document){e.querySelectorAll(Dh).forEach(t=>Nh(t))}var Dh,CA,Ch,co=v(()=>{$();Q();Dh='input[type="range"][data-range]',CA=100,Ch=new WeakSet;C(Dh,Nh)});var Ph={};T(Ph,{formatBytes:()=>Ih,initUploadZones:()=>_A,matchesAccept:()=>Rh});function ke(e,t,i){return e.getAttribute(`data-label-${t}`)??i}function Ih(e,t="en"){let i=["byte","kilobyte","megabyte","gigabyte"],s=0,n=e;for(;n>=1e3&&s<i.length-1;)n/=1e3,s++;try{return new Intl.NumberFormat(t,{style:"unit",unit:i[s],unitDisplay:"short",maximumFractionDigits:s>0?1:0}).format(n)}catch{return`${n.toFixed(s>0?1:0)} ${["B","kB","MB","GB"][s]}`}}function Bh(e){return e.split(",").map(t=>t.trim().toLowerCase()).filter(Boolean)}function Rh(e,t){if(!t.length)return!0;let i=e.name.toLowerCase(),s=(e.type||"").toLowerCase();return t.some(n=>n.startsWith(".")?i.endsWith(n):n.endsWith("/*")?s.startsWith(n.slice(0,-1)):s===n)}function MA(e,t){let i=Bh(t).map(s=>{if(s.startsWith("."))return s.slice(1).toUpperCase();let[n,r=""]=s.split("/");if(r==="*"){let a=NA[n];return a?ke(e,a,a):s}return/^[a-z0-9]+$/.test(r)?r.toUpperCase():s});return[...new Set(i)].join(", ")}function Fh(e){if(_h.has(e)||!e.parentNode)return;_h.add(e);let t=e.parentElement?.classList.contains("upload-zone")?e.parentElement:null,i=t?.querySelector(":scope > .upload-prompt"),s=t?.querySelector(":scope > .upload-file-list"),n=t?.querySelector(":scope > .upload-status");if(!t||!i||!s||!n){t?.querySelectorAll(":scope > :not(input)").forEach(g=>g.remove()),t||(t=document.createElement("div"),t.className="upload-zone",e.parentNode.insertBefore(t,e),t.appendChild(e));let u=`upload-${++DA}`;i=document.createElement("p"),i.className="upload-prompt",i.id=`${u}-prompt`,i.insertAdjacentHTML("afterbegin",LA);let d=document.createElement("span"),h=e.multiple?"Drag files here or":"Drag a file here or";d.append(`${ke(e,"prompt",h)} `);let f=document.createElement("span");f.className="upload-browse",f.textContent=ke(e,"browse","browse"),d.append(f),i.append(d);let p=e.getAttribute("accept")||"";if(p){let g=document.createElement("small");g.textContent=MA(e,p),i.append(g)}s=document.createElement("ul"),s.className="upload-file-list",s.hidden=!0,s.setAttribute("aria-label",ke(e,"files","Selected files")),n=document.createElement("p"),n.className="upload-status",n.setAttribute("role","status"),t.append(i,s,n);let m=new Set((e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean));m.add(i.id),e.setAttribute("aria-describedby",[...m].join(" "))}let r=s,a=n,o=t;function c(){r.replaceChildren();let u=Array.from(e.files??[]);r.hidden=u.length===0;let d=R(e);for(let h of u){let f=document.createElement("li"),p=document.createElement("span");p.className="upload-file-name",p.textContent=h.name;let m=document.createElement("span");m.className="upload-file-size",m.textContent=Ih(h.size,d),f.append(p,m),r.append(f)}}let l=0;o.addEventListener("dragenter",u=>{u.preventDefault(),l++,o.dataset.dragover=""}),o.addEventListener("dragleave",()=>{l=Math.max(0,l-1),l===0&&delete o.dataset.dragover}),o.addEventListener("dragover",u=>{u.preventDefault()}),o.addEventListener("drop",u=>{if(u.preventDefault(),l=0,delete o.dataset.dragover,e.disabled)return;let d=Array.from(u.dataTransfer?.files??[]);if(!d.length)return;let h=Bh(e.getAttribute("accept")||""),f=d.filter(b=>Rh(b,h)),p=d.filter(b=>!f.includes(b)),m=[];if(p.length&&m.push(ke(e,"rejected","Not accepted: {files}").replace("{files}",p.map(b=>b.name).join(", "))),!e.multiple&&f.length>1&&(f.length=1,m.push(ke(e,"single","Only one file allowed. Kept {file}.").replace("{file}",f[0].name))),a.textContent=m.join(" "),!f.length)return;let g=new DataTransfer;f.forEach(b=>g.items.add(b)),e.files=g.files,e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))}),e.addEventListener("click",()=>{a.textContent=""}),e.addEventListener("change",c),F(e,()=>{a.textContent="",c()}),c()}function _A(e=document){e.querySelectorAll($h).forEach(t=>Fh(t))}var $h,LA,_h,DA,NA,lo=v(()=>{$();Q();$h='input[type="file"][data-upload]',LA='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></svg>',_h=new WeakSet,DA=0;NA={image:"images",audio:"audio",video:"video"};C($h,Fh)});function pi(e){if(!e)return!1;let t=e,i=String(t.localName??t.tagName??"").toLowerCase();if(IA.has(i))return!1;let s=i==="input"?String(t.type??t.getAttribute?.("type")??"text").toLowerCase():"";if($A.has(s))return!1;let n=String(t.getAttribute?.("autocomplete")??"").trim().toLowerCase();return!(n==="off"||n&&n.split(/\s+/).some(r=>BA.has(r))||t.hasAttribute?.("data-autosave-ignore")||t.closest?.("[data-autosave-ignore]"))}var $A,IA,BA,uo=v(()=>{$A=new Set(["password","hidden","file","submit","button","reset","image"]),IA=new Set(["button","fieldset","output","object"]),BA=new Set(["cc-number","cc-csc","cc-exp","cc-exp-month","cc-exp-year","one-time-code","new-password","current-password"])});var Hh={};T(Hh,{initAutosave:()=>qA});function PA(e){let t=e.dataset.autosave;if(typeof t=="string"&&t.trim()!=="")return t.trim();let i=(e.method||"get").toLowerCase(),s=e.action||(typeof location<"u"?location.href:"");return`${i} ${s}`}function OA(e){let t=e.dataset.autosaveRetain;if(typeof t!="string")return null;let i=t.trim();return i===""?null:new Set(i.split(/\s+/))}function jh(e){if(Oh.has(e))return;Oh.add(e),e.setAttribute("data-autosave-init","");let t=PA(e),i=OA(e),s;function n(){return Array.from(e.elements).filter(h=>{let f=h.name;return f&&(i===null||i.has(f))&&pi(h)})}function r(){let h={};for(let f of n()){if(f.disabled)continue;let{name:p}=f;if(f.type==="checkbox"){let m=Array.isArray(h[p])?h[p]:h[p]=[];f.checked&&m.push(f.value)}else f.type==="radio"?f.checked&&(h[p]=f.value):f instanceof HTMLSelectElement&&f.multiple?h[p]=Array.from(f.selectedOptions).map(m=>m.value):typeof f.value=="string"&&(h[p]=f.value)}return h}function a(){s=void 0,x.set(Os,t,r()).catch(()=>{})}function o(){clearTimeout(s),s=setTimeout(a,RA)}function c(){clearTimeout(s),s=void 0}async function l(){let h=await x.get(Os,t,{maxAge:FA});if(!h||typeof h!="object")return x.remove(Os,t).catch(()=>{}),[];let f=[];for(let p of n()){if(!Object.hasOwn(h,p.name)||p.disabled||p.readOnly)continue;let m=h[p.name],g=Array.isArray(m)?m:[m];if(p.type==="checkbox")p.checked=g.includes(p.value);else if(p.type==="radio")p.checked=p.value===m;else if(p instanceof HTMLSelectElement&&p.multiple)for(let b of p.options)b.selected=g.includes(b.value);else if(typeof m=="string")p.value=m;else continue;f.push(p)}return f}function u(){c(),x.remove(Os,t).catch(()=>{})}function d(){let h=e.dataset.labelRestored||"Draft restored";if(customElements.get("toast-msg")){let m=document.querySelector("toast-msg");if(m||(m=document.createElement("toast-msg"),document.body.appendChild(m)),typeof m.show=="function"){m.show({message:h,variant:"info",duration:3e3,source:"autosave"});return}}let f=e.querySelector(":scope > [data-autosave-status]");f||(f=document.createElement("span"),f.className="visually-hidden",f.setAttribute("role","status"),f.setAttribute("data-autosave-status",""),e.append(f)),f.textContent="";let p=f;requestAnimationFrame(()=>{p.textContent=h})}l().then(h=>{if(h.length){d();for(let f of h)f.dispatchEvent(new Event("input",{bubbles:!0})),f.dispatchEvent(new Event("change",{bubbles:!0}));c(),e.dispatchEvent(new CustomEvent("autosave:restore",{bubbles:!0,detail:{key:t,fields:[...new Set(h.map(f=>f.name))]}}))}}),e.addEventListener("input",o),e.addEventListener("change",o),e.addEventListener("submit",u),e.addEventListener("reset",h=>{c(),setTimeout(()=>{h.defaultPrevented||u()},0)})}function qA(e=document){e.querySelectorAll(qh).forEach(t=>jh(t))}var qh,Os,RA,FA,Oh,ho=v(()=>{ct();$();uo();qh="form[data-autosave]",Os="autosave",RA=500,FA=1440*60*1e3,Oh=new WeakSet;C(qh,jh)});var Yh={};T(Yh,{initMaskInputs:()=>WA});function Uh(e){let t=e.dataset.mask;if(zh[t])return zh[t];if(t==="custom"&&e.dataset.pattern){let i=e.dataset.pattern,s=new Set;for(let r of i)r==="#"?s.add("0-9"):r==="A"?s.add("a-zA-Z"):r==="*"&&s.add("a-zA-Z0-9");let n=s.size>0?new RegExp(`[${[...s].join("")}]`):/./;return{pattern:i,accept:n}}return null}function Gt(e){return e==="#"||e==="A"||e==="*"}function Kh(e,t){let i=HA[e];return i?i.test(t):!1}function zA(e){let t=0;for(let i of e)Gt(i)&&t++;return t}function Wh(e,t){let i="",s=0;for(let n=0;n<t.length&&s<e.length;n++){let r=t[n];if(Gt(r)){for(;s<e.length&&!Kh(r,e[s]);)s++;s<e.length&&(i+=e[s],s++)}else i+=r}return i}function qs(e,t,i){let s="",n=0;for(let r of e){if(n<t.length&&!Gt(t[n])){if(r===t[n]){n++;continue}for(;n<t.length&&!Gt(t[n]);)n++}n<t.length?Kh(t[n],r)&&(s+=r,n++):i.test(r)&&(s+=r)}return s}function VA(e,t,i){let s=0,n=0;if(e>0){for(let r=0;r<t.length;r++)if(Gt(i[r])&&(s++,s===e)){n=r+1;break}s<e&&(n=t.length)}for(;n<i.length&&n<t.length&&!Gt(i[n]);)n++;return n}function UA(e){for(let t of e)if(Gt(t)&&t!=="#")return!1;return!0}function po(e){if(Vh.has(e)||!jA.has(e.type))return;let t=Uh(e);if(!t){if(e.removeAttribute("data-mask-init"),!fo.has(e)){fo.add(e);let h=new MutationObserver(()=>{Uh(e)&&(h.disconnect(),fo.delete(e),po(e))});h.observe(e,{attributes:!0,attributeFilter:["data-mask","data-pattern","type"]})}return}Vh.add(e),e.setAttribute("data-mask-init","");let{pattern:i}=t,s=t.accept,n=zA(i);UA(i)&&!e.getAttribute("inputmode")&&e.setAttribute("inputmode","numeric"),e.getAttribute("maxlength")||e.setAttribute("maxlength",String(i.length));let r=!1,a=null,o="",c="";function l(){let h=e.dataset.rawValue||"";if(h.length>0&&h.length<n){let p=e.getAttribute("placeholder");c=e.dataset.maskMessage||(p?`Enter the complete value, like ${p}.`:"Enter the complete value."),e.setCustomValidity(c)}else c&&e.validationMessage===c&&(e.setCustomValidity(""),c="")}function u(){let h=qs(e.value,i,s).slice(0,n),f=Wh(h,i);e.value!==f&&(e.value=f),e.dataset.rawValue=h,l()}e.addEventListener("compositionstart",()=>{r=!0}),e.addEventListener("compositionend",()=>{r=!1,d()}),e.addEventListener("beforeinput",h=>{a=e.value,o=h.inputType||""});function d(){if(r)return;let h=e.selectionStart??e.value.length,f=qs(e.value.slice(0,h),i,s).length,p=qs(e.value,i,s),m=a!=null?qs(a,i,s):null;m!=null&&p===m&&a!==e.value&&(o==="deleteContentBackward"&&f>0?(p=p.slice(0,f-1)+p.slice(f),f--):o==="deleteContentForward"&&f<p.length&&(p=p.slice(0,f)+p.slice(f+1))),a=null,o="",p=p.slice(0,n);let g=Wh(p,i);e.value=g,e.dataset.rawValue=p,l();let b=VA(Math.min(f,p.length),g,i);document.activeElement===e&&e.setSelectionRange(b,b)}e.addEventListener("input",d),F(e,u),u()}function WA(e=document){e.querySelectorAll(Gh).forEach(t=>po(t))}var Gh,jA,zh,HA,Vh,fo,mo=v(()=>{$();Gh="input[data-mask]",jA=new Set(["text","tel","search"]),zh={phone:{pattern:"(###) ###-####",accept:/\d/},"credit-card":{pattern:"#### #### #### ####",accept:/\d/},date:{pattern:"##/##/####",accept:/\d/},ssn:{pattern:"###-##-####",accept:/\d/},zip:{pattern:"#####",accept:/\d/}},HA={"#":/\d/,A:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},Vh=new WeakSet,fo=new WeakSet;C(Gh,po)});var tf={};T(tf,{initAcceptInputs:()=>YA});function GA(e){if(!e)return null;let t=Object.hasOwn(Xh,e)?Xh[e]:null;if(t)return{regex:new RegExp(t.pattern,"u"),inputmode:t.inputmode};if(e.startsWith("[")){for(let i of["u",""])try{return{regex:new RegExp(e,i),inputmode:"text"}}catch{}return console.warn(`[data-accept] Invalid character class: ${e}`),null}return console.warn(`[data-accept] Unknown preset: ${e}`),null}function js(e,t){return Array.from(e).filter(i=>t.test(i)).join("")}function Qh(e){if(Zh.has(e))return;if(Zh.add(e),e.hasAttribute("data-mask")){console.warn("[data-accept] Conflict: data-mask is also present \u2014 deferring to mask.",e);return}let t=GA(e.dataset.accept||"");if(!t)return;let{regex:i,inputmode:s}=t;e.dataset.acceptPattern=i.source,e.getAttribute("inputmode")||e.setAttribute("inputmode",s);let n=!1;e.addEventListener("compositionstart",()=>{n=!0}),e.addEventListener("compositionend",()=>{n=!1,r()}),e.addEventListener("beforeinput",o=>{if(n)return;let c=o.data;if(c!=null){if(o.inputType==="insertFromPaste"){let l=js(c,i);if(l===c||(o.preventDefault(),!l))return;document.execCommand("insertText",!1,l)||KA(e,l);return}if(o.inputType==="insertText"||o.inputType==="insertCompositionText"){for(let l of c)if(!i.test(l)){o.preventDefault();return}}}}),e.addEventListener("input",()=>{n||r()});function r(){let o=e.value,c=js(o,i);if(c===o)return;let l=e.selectionStart??0,u=js(o.slice(0,l),i);e.value=c;let d=Math.min(u.length,c.length);document.activeElement===e&&e.setSelectionRange(d,d)}function a(){if(!e.value)return;let o=js(e.value,i);o!==e.value&&(e.value=o)}a(),F(e,a)}function KA(e,t){let i=e.selectionStart??0,s=e.selectionEnd??0,n=e.value.slice(0,i),r=e.value.slice(s);e.value=n+t+r;let a=i+t.length;e.setSelectionRange(a,a),e.dispatchEvent(new Event("input",{bubbles:!0}))}function YA(e=document){e.querySelectorAll(Jh).forEach(Qh)}var Jh,Xh,Zh,go=v(()=>{$();Jh="input[data-accept]",Xh={digits:{pattern:"[0-9]",inputmode:"numeric"},alpha:{pattern:"[a-zA-Z]",inputmode:"text"},letters:{pattern:"[\\p{L}\\p{M}]",inputmode:"text"},alphanum:{pattern:"[a-zA-Z0-9]",inputmode:"text"},phone:{pattern:"[0-9+()\\- ]",inputmode:"tel"},date:{pattern:"[0-9/\\-.]",inputmode:"numeric"},hex:{pattern:"[0-9a-fA-F]",inputmode:"text"},currency:{pattern:"[0-9.,]",inputmode:"decimal"},cc:{pattern:"[0-9 \\-]",inputmode:"numeric"}};Zh=new WeakSet;C(Jh,Qh)});var rf={};T(rf,{initToggleTags:()=>XA});function nf(e){if(ef.has(e))return;ef.add(e);let t=e.querySelector(":scope > .toggle-tags-status");t||(t=document.createElement("p"),t.className="toggle-tags-status",t.setAttribute("role","status"),e.append(t));let i=t,s=()=>Array.from(e.querySelectorAll('input[type="checkbox"]')),n=()=>{let o=parseInt(e.dataset.max??"",10);return o>=1?o:1/0},r=()=>(e.getAttribute("data-label-limit")??"Limit reached: {max} selected. Uncheck one to choose another.").replace("{max}",String(n()));function a(){let o=n(),c=s(),l=c.filter(d=>d.checked).length>=o;for(let d of c){let h=d.hasAttribute("data-max-blocked");if(l&&!d.checked&&!d.disabled){if(!h&&d.getAttribute("aria-disabled")==="true")continue;d.setAttribute("aria-disabled","true"),d.setAttribute("data-max-blocked","")}else h&&(d.removeAttribute("aria-disabled"),d.removeAttribute("data-max-blocked"))}let u=l?r():"";i.textContent!==u&&(i.textContent=u)}e.addEventListener("click",o=>{let c=o.target;!(c instanceof HTMLInputElement)||!c.hasAttribute("data-max-blocked")||(o.preventDefault(),i.textContent="",requestAnimationFrame(()=>{i.textContent=r()}))}),e.addEventListener("change",a),new MutationObserver(a).observe(e,{attributes:!0,attributeFilter:["data-max"]}),F(e,a),a()}function XA(e=document){e.querySelectorAll(sf).forEach(t=>nf(t))}var sf,ef,bo=v(()=>{$();sf="fieldset[data-toggle-tags][data-max]",ef=new WeakSet;C(sf,nf)});var uf={};T(uf,{initNumberSteppers:()=>tE});function of(e,t){let i=document.createElement("button");return i.type="button",i.className=e,i.innerHTML=t,i.tabIndex=-1,i}function QA(e,t){let i=e.min!==""?parseFloat(e.min):-1/0,s=e.max!==""?parseFloat(e.max):1/0,n=parseFloat(e.value)||0;e.value=String(Math.min(Math.max(n+t,i),s))}function lf(e){if(af.has(e)||!e.parentNode)return;af.add(e),e.setAttribute("data-stepper-init","");let t=e.parentElement;t?.classList.contains("number-wrapper")?t.querySelectorAll(":scope > .number-dec, :scope > .number-inc").forEach(c=>c.remove()):(t=document.createElement("div"),t.className="number-wrapper",e.parentNode.insertBefore(t,e));let i=of("number-dec",ZA),s=of("number-inc",JA);t.appendChild(i),t.appendChild(e),t.appendChild(s);function n(){i.setAttribute("aria-label",e.dataset.labelDecrease||"Decrease"),s.setAttribute("aria-label",e.dataset.labelIncrease||"Increase")}function r(){return e.disabled||e.readOnly||e.matches(":disabled")}function a(c){if(r())return;let l=e.value;try{c>0?e.stepUp():e.stepDown()}catch{QA(e,c)}e.value!==l&&(e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))),o()}function o(){let c=e.min!==""?parseFloat(e.min):-1/0,l=e.max!==""?parseFloat(e.max):1/0,u=parseFloat(e.value),d=r();i.disabled=d||Number.isFinite(u)&&u<=c,s.disabled=d||Number.isFinite(u)&&u>=l}i.addEventListener("click",()=>a(-1)),s.addEventListener("click",()=>a(1)),e.addEventListener("input",o),e.addEventListener("change",o),F(e,o),new MutationObserver(()=>{n(),o()}).observe(e,{attributes:!0,attributeFilter:["disabled","readonly","min","max","step","data-label-decrease","data-label-increase"]}),n(),o()}function tE(e=document){e.querySelectorAll(cf).forEach(t=>lf(t))}var cf,ZA,JA,af,yo=v(()=>{$();cf='input[type="number"][data-stepper]',ZA='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true" focusable="false"><line x1="5" y1="12" x2="19" y2="12"/></svg>',JA='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true" focusable="false"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>',af=new WeakSet;C(cf,lf)});var pf={};T(pf,{initColorInputs:()=>eE});function ff(e){if(df.has(e)||!e.parentNode||e.closest("color-picker"))return;df.add(e),e.setAttribute("data-color-init","");let t=e.parentElement;t?.classList.contains("color-wrapper")?t.querySelectorAll(":scope > .color-display").forEach(a=>a.remove()):(t=document.createElement("span"),t.className="color-wrapper",e.parentNode.insertBefore(t,e),t.appendChild(e));let i=document.createElement("span");i.className="color-display",i.setAttribute("aria-hidden","true");let s=document.createElement("span");s.className="color-swatch";let n=document.createElement("span");n.className="color-hex",i.append(s,n),t.appendChild(i);function r(){s.style.setProperty("--color-swatch-value",e.value),n.textContent=e.value}e.addEventListener("input",r),e.addEventListener("change",r),F(e,r),r()}function eE(e=document){e.querySelectorAll(hf).forEach(t=>ff(t))}var hf,df,vo=v(()=>{$();hf='input[type="color"][data-color]',df=new WeakSet;C(hf,ff)});var Sf={};T(Sf,{initSelectAll:()=>cE});function cE(e=document){e.querySelectorAll(Ef).forEach(t=>kf(t))}function ko(e){return e.closest(oE)||document}function Af(e){let t=e.dataset.selectAll??"";if(!t)return[];let i;try{i=ko(e).querySelectorAll(t)}catch{return[]}return[...i].filter(s=>s!==e&&!s.disabled&&!s.matches(":disabled"))}function kf(e){if(Eo.has(e)||!(e instanceof HTMLInputElement)||e.type!=="checkbox")return;e.removeAttribute("data-select-all-init");let t=!1,i="",s=new AbortController,{signal:n}=s;function r(){if(n.aborted)return;if(!e.isConnected){s.abort(),c.disconnect(),Eo.delete(e);return}let u=Af(e),d=u.length,h=u.filter(g=>g.checked),f=h.length;e.checked=d>0&&f===d,e.indeterminate=f>0&&f<d;let p=ko(e).querySelector("[data-selected-count]");if(p){let g=new Intl.NumberFormat(R(p)).format(f);p instanceof HTMLOutputElement?p.value=g:p.textContent=g}let m=u.map(g=>g.checked?"1":"0").join("");m!==i&&(i=m,e.dispatchEvent(new CustomEvent("select-all:change",{bubbles:!0,detail:{checked:f,total:d,selected:h}})))}Eo.set(e,{sync:r}),e.addEventListener("change",()=>{t=!0;let u=e.checked;for(let d of Af(e))d.checked!==u&&(d.checked=u,d.dispatchEvent(new Event("change",{bubbles:!0})));t=!1,r()},{signal:n});let a=ko(e);a.addEventListener("change",u=>{if(t||u.target===e)return;let d=e.dataset.selectAll;d&&u.target.matches?.(d)&&r()},{signal:n}),F(e,r);let o=!1,c=new MutationObserver(()=>{o||(o=!0,queueMicrotask(()=>{o=!1,r()}))}),l=a===document?document.body:a;l&&c.observe(l,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled","hidden"]}),c.observe(e,{attributes:!0,attributeFilter:["data-select-all"]}),r()}var Ef,oE,Eo,So=v(()=>{$();Q();Ef="[data-select-all]",oE="[data-select-all-scope], table, form, fieldset",Eo=new WeakMap;C(Ef,kf)});var Nf={};T(Nf,{initMath:()=>Co});function Co(e=document){e.querySelectorAll(mi).forEach(Lo)}function dE(e){let t=e.getAttribute("data-math")||"";return new Set(t.split(/\s+/).filter(Boolean))}function hE(e){let t=(e.closest("pre")||e).nextElementSibling;return t?.hasAttribute("data-math-rendered")?t:null}function Lf(e){let t=e.previousElementSibling;return t?t.matches(mi)?t:t.matches("pre")?t.querySelector(mi):null:null}function Df(){let e=[];document.querySelectorAll("[data-math-rendered][data-math-numbered]").forEach((i,s)=>{let n=s+1;i.getAttribute("data-equation-number")!==String(n)&&i.setAttribute("data-equation-number",String(n)),i.id&&e.push({id:i.id,number:n,latex:Lf(i)?.textContent.trim()??""})});let t=(window.VBMath??={equations:[]}).equations;t.splice(0,t.length,...e)}function To(){xo||(xo=!0,queueMicrotask(()=>{xo=!1,Df()}))}function Lo(e){if(xf.has(e))return;if(xf.add(e),e.setAttribute("data-math-init",""),e.getAttribute("data-math-state")==="rendered"&&hE(e)){To();return}!e.hasAttribute("data-math")&&e.classList.contains("language-math")&&e.setAttribute("data-math","");let t=dE(e),i=e.getAttribute("data-mathml"),s=e.textContent.trim(),n=t.has("inline");if(!i||!uE){e.setAttribute("data-math-state","source");return}let r=n?document.createElement("span"):document.createElement("div");r.setAttribute("data-math-rendered",""),r.replaceChildren(Fl(i));let a=e.id||null;a&&(r.id=a,e.removeAttribute("id"));let o=r.querySelector("math");if(o&&(n||o.setAttribute("display","block"),!o.hasAttribute("alttext")&&s&&o.setAttribute("alttext",s)),t.has("numbered")&&r.setAttribute("data-math-numbered",""),t.has("copyable")){r.setAttribute("data-math-copyable","");let u=document.createElement("button");u.type="button",u.setAttribute("data-math-copy",""),u.textContent=B(e,"copy","Copy LaTeX"),r.append(u)}e.setAttribute("data-math-state","rendered");let c=e.closest("pre");(c||e).insertAdjacentElement("afterend",r),c?(c.setAttribute("data-math-state","rendered"),c.hidden=!0):e.hidden=!0;let l=null;t.has("numbered")&&(Df(),l=Number(r.getAttribute("data-equation-number"))),pE(),e.dispatchEvent(new CustomEvent("math:rendered",{bubbles:!0,detail:{latex:s,inline:n,number:l}}))}async function fE(e){let t=e.closest("[data-math-rendered]"),i=t&&Lf(t);if(!i)return;let s=i.textContent.trim(),n=B(i,"copy","Copy LaTeX"),r=B(i,"copied","Copied to clipboard"),a=B(i,"copy-failed","Copy failed"),o=await bt(s,{announceMessage:r,failureMessage:a}),c=o?r:a;e.setAttribute("data-state",o?"copied":"failed"),e.textContent=c,clearTimeout(Cf.get(e)),Cf.set(e,setTimeout(()=>{e.removeAttribute("data-state"),e.textContent=n},lE))}function pE(){if(document.querySelector("[data-vb-math-font]"))return;let e=document.createElement("link");e.rel="stylesheet",e.href=`${Fe()}/fonts/math-fonts.css`,e.setAttribute("data-vb-math-font",""),document.head.appendChild(e)}var mi,lE,uE,xf,xo,Cf,Tf,mE,Do=v(()=>{Oe();Rt();dt();ae();mi="[data-math], code.language-math",lE=2e3,uE=typeof MathMLElement<"u",xf=new WeakSet;window.VBMath=window.VBMath||{equations:[]};xo=!1;Cf=new WeakMap;Tf=Symbol.for("vb.math.copy");document[Tf]||(document[Tf]=!0,document.addEventListener("click",e=>{let i=(e.target instanceof Element?e.target:null)?.closest("button[data-math-copy]")??null;i&&fE(i)}));document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Co()):Co();mE=new MutationObserver(e=>{for(let t of e){for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;(s.matches("[data-math-numbered]")||s.querySelector("[data-math-numbered]"))&&To()}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(mi)&&Lo(s),s.querySelectorAll(mi).forEach(Lo),(s.matches("[data-math-numbered]")||s.querySelector("[data-math-numbered]"))&&To()}}});mE.observe(document.documentElement,{childList:!0,subtree:!0})});var Zf={};T(Zf,{WizardController:()=>gi,initWizards:()=>PE});function Gf(){try{let e=sessionStorage.getItem(Wf);return e||(e=globalThis.crypto?.randomUUID?.()??String(Math.random()).slice(2),sessionStorage.setItem(Wf,e)),e}catch{return""}}function Kf(e){let t=e;return typeof t.checkValidity=="function"?t.checkValidity():!e.matches(":invalid")}function Yf(e){let t=e;typeof t.reportValidity=="function"?t.reportValidity():t.focus?.()}function Xf(e){if(!(e instanceof HTMLFormElement))return;let t=e,i=t.wizardController;if(i instanceof gi&&i.form===t)return;let s=new gi(t);t.wizardController=s,t.wizardGoTo=n=>s.goTo(n),t.wizardNext=()=>s.next(),t.wizardPrev=()=>s.prev(),t.wizardReset=()=>s.reset()}function PE(){document.querySelectorAll("form[data-wizard]").forEach(Xf)}var Ws,Wf,BE,RE,FE,gi,Jf=v(()=>{ct();Q();to();uo();$();Ws="wizard",Wf="vb:wizard-session",BE=24,RE={back:"Back",next:"Next",submit:"Submit",step:"Step {n}",status:"Now on step {current} of {total}: {name}",completed:"Go to {name} (completed)",yes:"Yes"},FE=new Set(["button","submit","reset","image","checkbox","radio","file","color","range"]);gi=class{#t;#e=[];#i=0;#n=null;#s=null;#o=null;#r=!1;#a="step";#l="";#c=BE*36e5;#g=!1;#f=0;#u=0;#p=new AbortController;constructor(t){if(!t||!(t instanceof HTMLFormElement))throw new Error("WizardController requires a form element");this.#t=t,this.#y()}#y(){if(this.#e=Array.from(this.#t.querySelectorAll("fieldset[data-wizard-step]")),this.#e.length===0){console.warn("Wizard form has no steps");return}this.#r=this.#t.hasAttribute("data-wizard-history"),this.#a=this.#t.getAttribute("data-wizard-validate")||"step",this.#E(),this.#n=this.#t.querySelector("[data-wizard-progress]"),this.#C(),this.#tt(),this.#W(),this.#t.setAttribute("data-wizard-enhanced",""),this.#t.setAttribute("data-wizard-total",String(this.#e.length)),this.#X(),this.#Y(),this.#H();let t=()=>{cancelAnimationFrame(this.#f),this.#f=requestAnimationFrame(()=>this.#U())};if(this.#t.addEventListener("change",t),this.#t.addEventListener("input",t),this.#l&&(this.#t.addEventListener("change",()=>this.#b()),this.#t.addEventListener("input",()=>this.#b())),this.#t.addEventListener("keydown",i=>this.#x(i)),this.#t.addEventListener("click",i=>this.#M(i)),this.#t.addEventListener("submit",i=>this.#D(i)),this.#t.addEventListener("vb:beforesubmit",i=>this.#O(i)),this.#t.addEventListener("reset",i=>{setTimeout(()=>{i.defaultPrevented||this.reset()},0)}),this.#r){let i=this.#P();i!==null&&i>=0&&i<this.#e.length&&(this.#i=i),window.addEventListener("hashchange",()=>{if(!this.#t.isConnected){this.#p.abort();return}let s=this.#P();s===null||s===this.#i||this.#ot(s,{push:!1})||this.#G(!1)},{signal:this.#p.signal})}if(this.#U(),this.#l){let i=this.#r&&this.#P()!==null;this.#g=!0,this.#k(i).finally(()=>{this.#g=!1})}}#d(t,i={}){return(this.#t.getAttribute(`data-label-${t}`)??RE[t]).replace(/\{(\w+)\}/g,(n,r)=>r in i?i[r]:n)}#m(t){try{return new Intl.NumberFormat(R(this.#t)).format(t)}catch{return String(t)}}#h(t,i){return t?.querySelector(":scope > legend")?.textContent?.trim()||this.#d("step",{n:this.#m(i+1)})}#E(){let t=this.#t.getAttribute("data-wizard-persist");if(t===null)return;if(!this.#t.id){console.warn("Wizard persistence requires an id on the form element");return}this.#l=t==="local"?"local":"session";let i=Number(this.#t.getAttribute("data-wizard-persist-hours"));i>0&&(this.#c=i*36e5)}#v(){let t={};for(let i of this.#t.elements){let s=Wt(i);!s||!pi(i)||(t[s]??=[]).push(...Rs(i))}return t}#S(){if(!this.#l||this.#g)return;let t={step:this.#i,data:this.#v(),session:this.#l==="session"?Gf():null};x.set(Ws,this.#t.id,t).catch(()=>{})}#b(){this.#l&&(cancelAnimationFrame(this.#u),this.#u=requestAnimationFrame(()=>this.#S()))}async#k(t){let i;try{i=await x.get(Ws,this.#t.id,{maxAge:this.#c})}catch{return}if(!i||typeof i!="object")return;let s=i;if(this.#l==="session"&&s.session!==Gf()){x.remove(Ws,this.#t.id).catch(()=>{});return}let n=this.#w(s.data&&typeof s.data=="object"?s.data:{});!t&&typeof s.step=="number"&&s.step>=0&&s.step<this.#e.length&&(this.#i=s.step),this.#U(),this.#at("wizard:restore",{step:this.#i,fields:n})}#w(t){let i=new Set,s=new Map,n=[];for(let r of this.#t.elements){let a=Wt(r);if(!a||!Object.hasOwn(t,a)||!pi(r)||r.hasAttribute("readonly")||r.hasAttribute("disabled")&&!r.hasAttribute(fi))continue;let o=t[a],c=(Array.isArray(o)?o:[o]).map(String),l=r;if(r instanceof HTMLInputElement&&(r.type==="checkbox"||r.type==="radio"))r.checked=c.includes(r.value||"on");else if(r instanceof HTMLSelectElement&&r.multiple)for(let u of r.options)u.selected=c.includes(u.value);else if(Array.isArray(l.value))l.value=c;else if("value"in l){let u=s.get(a)??0;s.set(a,u+1),l.value=c[u]??""}else continue;i.add(a),n.push(r)}for(let r of n)r.dispatchEvent(new Event("input",{bubbles:!0}));return[...i]}#A(){this.#l&&(cancelAnimationFrame(this.#u),x.remove(Ws,this.#t.id).catch(()=>{}))}#N(){return this.#i>=this.#B().length-1}#x(t){if(t.key!=="Enter"||t.defaultPrevented||t.isComposing||t.shiftKey||t.ctrlKey||t.altKey||t.metaKey)return;let i=t.target;if(!(!(i instanceof HTMLInputElement)||FE.has(i.type))){if(!this.#N()){t.preventDefault(),this.next();return}!this.#_()&&this.#F()&&t.preventDefault()}}#M(t){let i=t.target?.closest?.("button, input");!i||i.type!=="submit"||i.form===this.#t&&(this.#_()||i.hasAttribute("formnovalidate")||this.#F()&&t.preventDefault())}#_(){return this.#t.noValidate&&!this.#t.hasAttribute("data-validate")}#F(){let t=this.#B();for(let i of this.#t.elements){if(i.matches(":disabled"))continue;let s=i.closest("fieldset[data-wizard-step]");if(!(!s||!t.includes(s))&&!Kf(i))return s.hasAttribute("data-wizard-active")?!1:(this.#ot(t.indexOf(s),{validate:!1,focus:!1}),Yf(i),!0)}return!1}#D(t){if(!this.#N()){t.preventDefault(),this.next();return}this.#t.hasAttribute("data-validate")||this.#$()}#O(t){this.#t.hasAttribute("data-validate")&&queueMicrotask(()=>{!t.defaultPrevented&&this.#N()&&this.#$()})}#$(){cancelAnimationFrame(this.#u),this.#at("wizard:complete"),this.#A()}#W(){this.#t.querySelectorAll(":scope > [data-wizard-status]").forEach(i=>i.remove());let t=document.createElement("p");t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.setAttribute("data-wizard-status",""),this.#s=t,this.#t.prepend(t)}#C(){let t=this.#t.getAttribute("data-wizard-steps");if(t){this.#o=document.querySelector(t);return}this.#o=this.#t.querySelector("nav.steps")}#T(){return this.#o?.localName==="progress-tracker"}#q(){return this.#o?[...this.#o.querySelectorAll(":scope ol > li")]:[]}#tt(){if(!this.#o)return;let t=this.#o.querySelector("ol");!t||t.children.length>0||this.#e.forEach((i,s)=>{let n=document.createElement("li");n.textContent=this.#h(i,s),t.appendChild(n)})}#I(){if(!this.#o)return;let t=this.#q(),i=this.#B();if(this.#T()){let s=this.#o;this.#e.forEach((a,o)=>{t[o]?.toggleAttribute("hidden",a.hasAttribute("data-wizard-hidden"))});let n=this.#e.indexOf(this.#z()),r=t[n];if(r){let a=r.dataset.step||String(n+1);s.getAttribute("data-current")!==a&&s.setAttribute("data-current",a)}return}this.#e.forEach((s,n)=>{let r=t[n];if(!r)return;if(r.removeAttribute("data-completed"),r.removeAttribute("aria-current"),r.removeAttribute("aria-disabled"),s.hasAttribute("data-wizard-hidden")){r.setAttribute("hidden","");return}r.removeAttribute("hidden");let a=i.indexOf(s),o=r.querySelector("a, button"),c=!o;a<this.#i?(r.setAttribute("data-completed",""),c&&r.setAttribute("role","button"),(o||r).setAttribute("aria-label",this.#d("completed",{name:this.#h(s,a)}))):(c&&r.removeAttribute("role"),(o||r).removeAttribute("aria-label"),a===this.#i?r.setAttribute("aria-current","step"):r.setAttribute("aria-disabled","true"))});for(let s of t){if(s.hasAttribute("hidden"))continue;(s.querySelector("a, button")||s).setAttribute("tabindex",s.hasAttribute("aria-current")?"0":"-1")}}#L(t){if(!t)return-1;let i=this.#q().indexOf(t),s=this.#e[i];return s?this.#B().indexOf(s):-1}#H(){let t=this.#o;if(!t)return;let i=this.#p.signal;if(this.#T()){t.addEventListener("progress-tracker:step",s=>{let n=s.detail;if(n?.source!=="click")return;let r=this.#q().find((o,c)=>(o.dataset.step||String(c+1))===String(n.step)),a=this.#L(r??null);a>=0&&this.goTo(a)},{signal:i});return}t.addEventListener("click",s=>{let n=s.target.closest("li");if(!n||!n.hasAttribute("data-completed")){n&&s.target.closest("a")&&s.preventDefault();return}s.preventDefault();let r=this.#L(n);r>=0&&this.goTo(r)},{signal:i}),t.addEventListener("keydown",s=>{let n=this.#q().filter(u=>!u.hasAttribute("hidden")),r=s.target.closest("li"),a=r?n.indexOf(r):-1;if(a===-1)return;if((s.key==="Enter"||s.key===" ")&&r?.getAttribute("role")==="button"){s.preventDefault();let u=this.#L(r);u>=0&&this.goTo(u);return}let o;switch(s.key){case"ArrowRight":case"ArrowDown":o=Math.min(a+1,n.length-1);break;case"ArrowLeft":case"ArrowUp":o=Math.max(a-1,0);break;case"Home":o=0;break;case"End":o=n.length-1;break;default:return}s.preventDefault();let c=n[a].querySelector("a, button")||n[a],l=n[o].querySelector("a, button")||n[o];c.setAttribute("tabindex","-1"),l.setAttribute("tabindex","0"),l.focus()},{signal:i})}#Y(){this.#t.addEventListener("click",t=>{let i=t.target?.closest?.("[data-wizard-prev], [data-wizard-next]");!i||!this.#t.contains(i)||(t.preventDefault(),i.hasAttribute("data-wizard-prev")?this.prev():this.next())})}#X(){if(this.#t.querySelector("[data-wizard-nav]"))return;let t=document.createElement("nav");t.setAttribute("data-wizard-nav","");let i=document.createElement("button");i.type="button",i.setAttribute("data-wizard-prev",""),i.textContent=this.#d("back");let s=document.createElement("button");s.type="button",s.setAttribute("data-wizard-next",""),s.textContent=this.#d("next");let n=document.createElement("button");n.type="submit",n.textContent=this.#d("submit"),t.append(i,s,n),this.#t.appendChild(t)}#B(){return this.#e.filter(t=>!t.hasAttribute("data-wizard-hidden"))}#z(){return this.#B()[this.#i]}#R({push:t=!1}={}){let i=this.#B(),s=i[this.#i];this.#e.forEach(n=>{n.toggleAttribute("data-wizard-active",n===s)}),this.#t.setAttribute("data-wizard-current",String(this.#i+1)),this.#t.setAttribute("data-wizard-total",String(i.length)),this.#t.toggleAttribute("data-wizard-last",this.#i===i.length-1),this.#Q(),this.#I(),this.#r&&this.#G(t),this.#st(),this.#it()}#Q(){if(!this.#n)return;let t=this.#B();this.#n.max=t.length,this.#n.value=this.#i+1}#G(t){let i=`#step=${this.#i+1}`;window.location.hash!==i&&(t?history.pushState(null,"",i):history.replaceState(null,"",i))}#P(){let t=window.location.hash.match(/step=(\d+)/);return t?parseInt(t[1],10)-1:null}#st(){if(!this.#s)return;let t=this.#B().length,i=this.#d("status",{current:this.#m(this.#i+1),total:this.#m(t),name:this.#h(this.#z(),this.#i)});this.#s.textContent!==i&&(this.#s.textContent=i)}#V(){let t=this.#z();if(!t)return;let i=t.querySelector(":scope > legend")||t;i.hasAttribute("tabindex")||i.setAttribute("tabindex","-1"),i.focus({preventScroll:!1})}#Z(){let t=document.activeElement;return!t||t===document.body?!0:this.#t.contains(t)||!!this.#o?.contains(t)}#J(){if(this.#a==="none")return!0;let t=this.#z();if(!t||t.hasAttribute("data-wizard-optional"))return!0;for(let i of this.#t.elements)if(!(!t.contains(i)||i.matches(":disabled"))&&!Kf(i))return Yf(i),!1;return!0}#U(){for(let i of this.#e){let s=i.getAttribute("data-wizard-if");if(!s)continue;let n=Fs(s,this.#t);i.toggleAttribute("data-wizard-hidden",!n),Ps(i,n)}let t=this.#B();this.#i>=t.length&&(this.#i=Math.max(0,t.length-1)),this.#R()}#K(t){return Qa(this.#t,t).flatMap(i=>this.#et(i)).join(", ")}#et(t){let i=Rs(t);return i.length?t instanceof HTMLSelectElement?[...t.selectedOptions].filter(s=>s.value!=="").map(s=>s.label.trim()||s.value):t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")?t.type==="checkbox"&&!this.#j(t)?[this.#d("yes")]:[this.#nt(t)||i[0]]:i:[]}#j(t){return t.closest("fieldset:not([data-wizard-step])")?.querySelector(":scope > legend")?.textContent.trim()||""}#nt(t){let i=t.labels;if(!i?.length)return"";let s=i[0].cloneNode(!0);return s.querySelectorAll("input, select, textarea").forEach(n=>n.remove()),s.textContent.replace(/\s+/g," ").trim()}#it(){let t=this.#z();if(!t||!t.hasAttribute("data-wizard-summary"))return;let i=t.querySelectorAll("[data-wizard-field]");if(i.length>0){for(let r of i)r.textContent=this.#K(r.getAttribute("data-wizard-field")||"")||"\u2014";return}let s=t.querySelector("[data-wizard-summary-list]");s||(s=document.createElement("dl"),s.setAttribute("data-wizard-summary-list",""),t.appendChild(s)),s.replaceChildren();let n=new Set;for(let r of this.#t.elements){let a=r.closest("fieldset[data-wizard-step]");if(!a||a===t||a.hasAttribute("data-wizard-hidden")||r instanceof HTMLInputElement&&(r.type==="hidden"||r.type==="password")||r instanceof HTMLButtonElement||r instanceof HTMLFieldSetElement||r instanceof HTMLOutputElement)continue;let o=Wt(r);if(!o||n.has(o))continue;n.add(o);let c=this.#K(o);if(!c)continue;let l=document.createElement("dt");l.textContent=this.#rt(r)||o;let u=document.createElement("dd");u.textContent=c,s.append(l,u)}}#rt(t){if(t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")){let r=this.#j(t);if(r)return r}let i=this.#nt(t);if(i)return i;let n=t.closest("form-field")?.querySelector("label");return n?n.textContent.trim():t.getAttribute("aria-label")||""}#at(t,i={}){this.#t.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:i}))}#ot(t,{validate:i=!0,focus:s=!0,push:n=!0}={}){let r=this.#B();if(t<0||t>=r.length||i&&t>this.#i&&!this.#J())return!1;let a=s&&this.#Z(),o=this.#i;return this.#i=t,this.#R({push:n}),a&&t!==o&&this.#V(),this.#at("wizard:step-change",{from:o,to:t}),this.#b(),!0}goTo(t){return this.#ot(t)}next(){return this.#N()?!1:this.#ot(this.#i+1)}prev(){return this.#i<=0?!1:this.#ot(this.#i-1)}reset(){this.#i=0,this.#U(),this.#A(),this.#at("wizard:reset")}get currentStep(){return this.#i}get totalSteps(){return this.#B().length}get form(){return this.#t}};typeof document<"u"&&C("form[data-wizard]",Xf)});var tp={};T(tp,{initMobileForms:()=>Qf});function Qf(e=document){return()=>{}}var ep=v(()=>{typeof document<"u"&&Qf()});var sp={};T(sp,{activateTrap:()=>bi,deactivateTrap:()=>Ks,initFocusTraps:()=>Oo});function Oo(e=document){e.querySelectorAll(Gs).forEach(t=>bi(t))}function bi(e){if(Ce.has(e))return;let t=document.activeElement,i=e.getAttribute("data-focus-trap")==="no-autofocus";function s(r){if(r.key!=="Tab")return;let a=ip(e);if(!a.length)return;let o=a[0],c=a[a.length-1],l=document.activeElement;r.shiftKey&&l===o?(r.preventDefault(),c.focus()):!r.shiftKey&&l===c&&(r.preventDefault(),o.focus())}e.addEventListener("keydown",s);let n=()=>{e.removeEventListener("keydown",s)};Ce.set(e,{cleanup:n,previousFocus:t}),i||requestAnimationFrame(()=>{let r=e.querySelector("[autofocus]");if(r)r.focus();else{let a=ip(e);a.length&&a[0].focus()}})}function Ks(e){let t=Ce.get(e);t&&(t.cleanup(),Ce.delete(e),t.previousFocus&&t.previousFocus.isConnected&&t.previousFocus.focus())}function ip(e){return[...e.querySelectorAll(OE)].filter(t=>t.offsetParent!==null)}var Gs,OE,Ce,qE,np=v(()=>{Gs="[data-focus-trap]",OE='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',Ce=new WeakMap;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Oo()):Oo();qE=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Gs)&&bi(s),s.querySelectorAll(Gs).forEach(n=>bi(n))}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;Ce.has(s)&&Ks(s),s.querySelectorAll(Gs).forEach(n=>{Ce.has(n)&&Ks(n)})}if(t.type==="attributes"&&t.attributeName==="data-focus-trap"){let i=t.target;i.hasAttribute("data-focus-trap")?bi(i):Ks(i)}}});qE.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-focus-trap"]})});var HE={};var rp,jE,ap=v(()=>{rp=80,jE=40;document.querySelectorAll("header[data-scroll-hide]").forEach(e=>{let t=e.closest("main")??window,i=()=>t===window?window.scrollY:t.scrollTop,s=i(),n=0,r=e.hasAttribute("data-hidden"),a=()=>{e.removeAttribute("data-hidden"),r=!1},o=()=>{let c=i(),l=c-s;if(s=c,l!==0){if(l>0){n=0,!r&&c>rp&&!e.matches(":focus-within")&&(e.setAttribute("data-hidden",""),r=!0);return}n-=l,r&&(n>=jE||c<=rp)&&a()}};t.addEventListener("scroll",o,{passive:!0}),e.addEventListener("focusin",()=>{r&&a()})})});var cp={};T(cp,{initSpotlights:()=>op});function zE(e){if(e.__vbSpotlight)return;e.__vbSpotlight=!0;let t=s=>{let n=e.getBoundingClientRect();e.style.setProperty("--spotlight-x",((s.clientX-n.left)/n.width*100).toFixed(1)+"%"),e.style.setProperty("--spotlight-y",((s.clientY-n.top)/n.height*100).toFixed(1)+"%")},i=()=>{e.style.setProperty("--spotlight-x","50%"),e.style.setProperty("--spotlight-y","50%")};e.addEventListener("mousemove",t,{passive:!0}),e.addEventListener("mouseleave",i,{passive:!0})}function op(e=document){e.querySelectorAll?.("[data-spotlight]").forEach(zE)}var lp=v(()=>{op()});var pp={};T(pp,{getHotkeyActions:()=>fp});function qo(e){let t=e.cloneNode(!0);return t.querySelectorAll('kbd, [aria-hidden="true"], .visually-hidden').forEach(i=>i.remove()),(t.textContent||"").replace(/\s+/g," ").trim()}function WE(e){let t=e.getAttribute("data-hotkey-label")||e.getAttribute("aria-label");if(t)return t.trim();let i=e.getAttribute("aria-labelledby");if(i){let n=i.split(/\s+/).map(r=>document.getElementById(r)?.textContent?.trim()).filter(Boolean).join(" ");if(n)return n}let s=e.labels;if(s?.length)return qo(s[0]);if(e.tagName==="DETAILS"){let n=e.querySelector(":scope > summary");if(n)return qo(n)}return qo(e)||e.getAttribute("placeholder")||e.getAttribute("title")||""}function dp(e){return!(!e.isConnected||(e.getAttribute("data-hotkey-action")==="toggle"?e.parentElement:e)?.closest("[hidden], [inert]")||e.disabled===!0||e.matches(":disabled"))}function GE(e){if(!e.hasAttribute("data-hotkey-scope"))return null;let t=e.getAttribute("data-hotkey-scope")?.trim();if(!t)return e;try{return e.closest(t)||document.querySelector(t)||e}catch{return e}}function jo(e,t){document.dispatchEvent(new CustomEvent("vb:command-registry-change",{detail:{action:e,element:t}}))}function Ys(e,{notify:t=!0}={}){let i=Te.get(e);i&&(i.unbind(),Te.delete(e),i.ownsAria&&e.removeAttribute("aria-keyshortcuts"),t&&jo("remove",e))}function hp(e){if(Te.has(e)||e.tagName==="KBD"||!e.isConnected)return;let t=e.getAttribute("data-hotkey")?.trim();if(!t)return;let i=e.getAttribute("data-hotkey-action")||"click",s=up[i]||up.click,n=e.hasAttribute("data-hotkey-global"),r=GE(e),a=e.getAttribute("data-hotkey-group")||"Page Actions",o=Et(t,()=>{if(!e.isConnected){Ys(e);return}s(e)},{global:n,scope:r,enabled:()=>e.isConnected?dp(e):(queueMicrotask(()=>Ys(e)),!1)}),c=Ki(t),l=!e.hasAttribute("aria-keyshortcuts")||e.getAttribute("aria-keyshortcuts")===c;l&&e.setAttribute("aria-keyshortcuts",c),Te.set(e,{combo:t,label:WE(e)||t,group:a,scoped:!!r,character:Gi(t),unbind:o,ownsAria:l}),jo("add",e)}function KE(){for(let e of[...Te.keys()])e.isConnected||Ys(e)}function fp(){let e=new Map;for(let[t,i]of Te){if(!dp(t))continue;let s=e.get(i.group)||[];s.push({label:i.label,shortcut:i.combo,element:t,scoped:i.scoped,character:i.character}),e.set(i.group,s)}return e}var VE,UE,Te,up,mp=v(()=>{$();We();Ve();VE="[data-hotkey]:not(kbd)",UE=["data-hotkey","data-hotkey-action","data-hotkey-label","data-hotkey-group","data-hotkey-global","data-hotkey-scope"],Te=new Map,up={click(e){e.click()},focus(e){e.focus()},submit(e){let t=e.closest("form")||(e.tagName==="FORM"?e:null);t&&t.requestSubmit()},toggle(e){"open"in e?e.open=!e.open:e.hasAttribute("hidden")?e.removeAttribute("hidden"):e.setAttribute("hidden","")}};typeof window<"u"&&(window.__hotkeyActionRegistry={getHotkeyActions:fp});C(VE,hp);typeof document<"u"&&new MutationObserver(e=>{let t=!1,i=new Set;for(let s of e)s.type==="childList"&&s.removedNodes.length&&(t=!0),s.type==="attributes"&&i.add(s.target);t&&KE();for(let s of i)s.tagName!=="KBD"&&(Ys(s,{notify:!1}),s.hasAttribute("data-hotkey")?hp(s):jo("remove",s))}).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:UE})});var wp={};T(wp,{upgradeBlankTargets:()=>yp});function XE(e){return new Set((e.getAttribute("rel")||"").split(/\s+/).filter(Boolean))}function ZE(e,t){e.setAttribute("rel",[...t].join(" "))}function bp(e){let t=document.documentElement?.dataset?.linkPrivacy==="strict",i=XE(e),s=[...i].some(r=>YE.has(r)),n=!1;s||(i.add("noopener"),n=!0),t&&!i.has("noreferrer")&&(i.add("noreferrer"),n=!0),n&&ZE(e,i)}function yp(e=document){for(let t of e.querySelectorAll(gp))bp(t)}function vp(e){let t=e.composedPath?.()[0]??e.target,i=t instanceof Element?t.closest(gp):null;i&&bp(i)}var YE,gp,Ap=v(()=>{YE=new Set(["opener","noopener","noreferrer"]),gp='a[href][target="_blank"]';yp(document);document.addEventListener("click",vp,!0);document.addEventListener("auxclick",vp,!0)});var Cp={};T(Cp,{buildSrcset:()=>kp,initResponsiveImages:()=>xp});function kp(e,t,i=document.baseURI){let s;try{s=new URL(e,i)}catch{return""}let n=s.pathname.lastIndexOf("/"),r=s.pathname.slice(n+1),a=r.lastIndexOf(".");if(a<=0)return"";let o=s.pathname.slice(0,n+1),c=r.slice(0,a),l=r.slice(a);return t.map(u=>{let d=new URL(s.href);return d.pathname=`${o}${c}-${u}${l}`,`${d.href} ${u}w`}).join(", ")}function ek(e){return e.split(",").map(t=>parseInt(t.trim(),10)).filter(t=>t>0)}function ik(e){Sp?.unobserve(e)}function sk(e){if(!QE.test(e.getAttribute("srcset")||""))return!1;let t=(e.getAttribute("sizes")||"").trim();return!t||tk.test(t)?!0:/^auto\b/i.test(t)?e.loading!=="lazy":!1}function nk(e){let t=document.createElement("span");t.setAttribute("data-responsive-badge",""),t.setAttribute("aria-hidden","true");let i=()=>{let n=e.currentSrc||e.src;t.textContent=`${n.split("/").pop()} (${e.naturalWidth}px)`};e.addEventListener("load",i),e.complete&&i(),(e.parentElement instanceof HTMLPictureElement?e.parentElement:e).before(t)}function xp(e){if(Ep.has(e))return;Ep.add(e);let t=e.getAttribute("data-responsive")||"",i=e.getAttribute("src");if(t&&i){let n=ek(t),r=n.length?kp(i,n):"",a=e.getAttribute("srcset");r?a||(e.srcset=r):n.length&&console.warn("[data-responsive] No file extension to insert widths before:",i)}e.hasAttribute("decoding")||(e.decoding="async"),e.addEventListener("error",()=>ik(e)),!(e.complete&&e.naturalWidth===0&&e.currentSrc)&&sk(e)&&(Ho.delete(e),Sp?.observe(e)),e.hasAttribute("data-responsive-debug")&&nk(e)}var JE,Ep,Ho,QE,tk,Sp,Tp=v(()=>{$();JE="img[data-responsive]",Ep=new WeakSet,Ho=new WeakMap,QE=/\s\d+w\s*(?:,|$)/,tk=/^\d+px$/;Sp=typeof ResizeObserver=="function"?new ResizeObserver(e=>{for(let t of e){let i=t.target,s=Math.round(t.contentBoxSize?.[0]?.inlineSize??t.contentRect.width);s>(Ho.get(i)??0)&&(Ho.set(i,s),i.sizes=`${s}px`)}}):null;C(JE,xp)});var Np={};T(Np,{initFloatingLabels:()=>Dp});function Dp(e){if(Lp.has(e))return;Lp.add(e);let t=e.querySelector("input, textarea, select");t&&(t.hasAttribute("placeholder")||t.setAttribute("placeholder"," "),e.setAttribute("data-floating-label-ready",""))}var rk,Lp,Mp=v(()=>{$();rk="form-field[data-floating-label]",Lp=new WeakSet;C(rk,Dp)});var Rp={};T(Rp,{activate:()=>zo,deactivate:()=>Xs});function zo(e){if(e.getAttribute("aria-busy")==="true")return;e._vbLoadingOriginal=e.innerHTML,e._vbLoadingWidth=e.offsetWidth,e.style.minInlineSize=`${e._vbLoadingWidth}px`;let t=e.getAttribute("data-loading"),i=document.createElement("span");i.className="vb-btn-spinner",i.setAttribute("aria-hidden","true");let s=document.createElement("span");t?s.textContent=t:(s.className="visually-hidden",s.textContent=e.textContent.trim()),e.replaceChildren(i," ",s),e.setAttribute("aria-busy","true"),e.setAttribute("aria-disabled","true"),e.dataset.loadingActive="";let n=parseInt(e.getAttribute("data-loading-timeout"),10)||ak;e._vbLoadingTimer=setTimeout(()=>Xs(e),n)}function Xs(e){e.getAttribute("aria-busy")==="true"&&(clearTimeout(e._vbLoadingTimer),e._vbLoadingOriginal!=null&&(e.innerHTML=e._vbLoadingOriginal,delete e._vbLoadingOriginal),e.style.minInlineSize="",e.removeAttribute("aria-busy"),e.removeAttribute("aria-disabled"),delete e.dataset.loadingActive)}function Ip(e){if(_p.has(e))return;_p.add(e),e.addEventListener("click",s=>{e.getAttribute("aria-busy")==="true"&&(s.preventDefault(),s.stopImmediatePropagation())},!0);let t=e.form;t&&e.type==="submit"&&new MutationObserver(()=>{!t.hasAttribute("data-submitting")&&e.getAttribute("aria-busy")==="true"&&Xs(e)}).observe(t,{attributes:!0,attributeFilter:["data-submitting"]}),new MutationObserver(()=>{e.hasAttribute("data-loading-active")?zo(e):e.getAttribute("aria-busy")==="true"&&Xs(e)}).observe(e,{attributes:!0,attributeFilter:["data-loading-active"]})}function ok(e,t){return t||([...e.elements].find(i=>i instanceof HTMLButtonElement&&i.type==="submit"||i instanceof HTMLInputElement&&i.type==="submit")??null)}function Bp(e,t){let i=ok(e,t);i instanceof HTMLButtonElement&&i.matches($p)&&(Ip(i),zo(i))}var $p,_p,ak,Fp=v(()=>{$();$p="button[data-loading]",_p=new WeakSet,ak=1e4;document.addEventListener("submit",e=>{let t=e.target;t.matches("[data-validate]")||Bp(t,e.submitter)});document.addEventListener("vb:beforesubmit",e=>{if(e.defaultPrevented)return;let{form:t,submitter:i}=e.detail??{};t instanceof HTMLFormElement&&Bp(t,i)});C($p,Ip)});var Op={};T(Op,{initEmailForm:()=>Go});function ck(e){let t={};for(let i of e.elements){let s=i;s.name&&(s.type==="password"||s.type==="file"||(s.type==="checkbox"?t[s.name]=s.checked:s.type==="radio"?s.checked&&(t[s.name]=s.value):t[s.name]=s.value))}return t}async function lk(e){let t=e.currentTarget,i=t.getAttribute("data-vb-email-form"),s=t.getAttribute("data-vb-email-to");if(!i||(e.preventDefault(),t.hasAttribute(Vo)))return;t.setAttribute(Vo,"");let n=t.querySelector('button[type="submit"], button:not([type])'),r=n?.textContent;n&&(n.disabled=!0,t.dataset.vbEmailLoadingLabel&&(n.textContent=t.dataset.vbEmailLoadingLabel)),t.dispatchEvent(new CustomEvent("vb-email-form:submitting",{bubbles:!0,composed:!0,detail:{template:i}}));let a=ck(t);try{let c=await new J("email").post("/",{to:s||a.to||a.email,template:i,data:a});t.dispatchEvent(new CustomEvent("vb-email-form:success",{bubbles:!0,composed:!0,detail:{id:c?.id}})),t.hasAttribute("data-vb-email-no-reset")||t.reset(),Pp(t,"success")}catch(o){let c={error:o};o instanceof K&&(c.status=o.status,c.body=o.body),t.dispatchEvent(new CustomEvent("vb-email-form:error",{bubbles:!0,composed:!0,detail:c})),Pp(t,"error")}finally{t.removeAttribute(Vo),n&&(n.disabled=!1,r&&(n.textContent=r))}}function Pp(e,t){let i=e.querySelector("[data-vb-email-status]");if(!i)return;let s=e.dataset.vbEmailSuccess||"Sent. Thank you.",n=e.dataset.vbEmailError||"Sorry, the message could not be sent. Try again.";i.dataset.state=t,i.textContent=t==="success"?s:n}function Wo(e){e.hasAttribute("data-vb-email-form-init")||(e.setAttribute("data-vb-email-form-init",""),e.addEventListener("submit",lk))}function Go(e=document){for(let t of e.querySelectorAll(Uo))Wo(t)}var Uo,Vo,uk,qp=v(()=>{ge();Uo="form[data-vb-email-form]",Vo="data-vb-email-submitting";document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Go()):Go();uk=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.(Uo)&&Wo(s),s.querySelectorAll?.(Uo).forEach(n=>Wo(n))}});uk.observe(document.documentElement,{childList:!0,subtree:!0})});var Wp={};T(Wp,{initNewsletterForm:()=>Qo});function Vp(e){let t=(e.getAttribute("data-vb-newsletter-form")||"subscribe").trim();return dk.includes(t)?t:"subscribe"}function jp(e){let t=[...e.querySelectorAll('input[type="checkbox"][name="lists"]')].filter(s=>s.checked).map(s=>s.value);return t.length?t:(e.getAttribute("data-vb-newsletter-lists")||"").split(",").map(s=>s.trim()).filter(Boolean)}function Up(e){return e.querySelector('input[name="email"]')}function Yo(e,t,i){let s=e.querySelector("[data-vb-newsletter-status]");s&&(s.dataset.state=t,s.textContent=i)}function Hp(e,t,i){return i==="error"?e.dataset.vbNewsletterError||"Sorry, that did not work. Try again.":t==="unsubscribe"?e.dataset.vbNewsletterUnsubscribed||"Unsubscribed.":t==="preferences"?e.dataset.vbNewsletterSaved||"Preferences saved.":e.dataset.vbNewsletterSubscribed||"Subscribed. Check your inbox."}function zp(e,t){let i=e.querySelector('button[type="submit"], button:not([type])');i&&(t?(i.dataset.vbNewsletterPrevLabel=i.textContent||"",i.disabled=!0,e.dataset.vbNewsletterLoadingLabel&&(i.textContent=e.dataset.vbNewsletterLoadingLabel)):(i.disabled=!1,i.dataset.vbNewsletterPrevLabel!=null&&(i.textContent=i.dataset.vbNewsletterPrevLabel,delete i.dataset.vbNewsletterPrevLabel)))}async function Zs(e,t,i){let s=new J("newsletter");if(e==="POST")return s.post(t,i);if(e==="GET")return s.get(t,i);throw new Error(`unsupported method ${e}`)}async function hk(e,t,i,s){if(!s.length&&t!=="preferences")throw new Error("No lists selected.");return Zs("POST",t==="unsubscribe"?"/unsubscribe":"/subscribe",{email:i,lists:s})}async function fk(e,t){if(t)try{let i=await Zs("GET","/preferences",{email:t});if(!i)return;let s=new Set(i.subscriptions||[]);for(let n of e.querySelectorAll('input[type="checkbox"][name="lists"]')){let r=n;r.checked=s.has(r.value)}e.dispatchEvent(new CustomEvent("vb-newsletter-form:preferences",{bubbles:!0,composed:!0,detail:{email:t,subscriptions:i.subscriptions,available:i.available}}))}catch(i){if(i instanceof K&&i.status===404)return;console.warn("[newsletter-form] preferences fetch failed",i)}}function Zo(e){return new Set([...e.querySelectorAll('input[type="checkbox"][name="lists"]')].filter(t=>t.checked).map(t=>t.value))}async function pk(e,t){let i=e.__vbNewsletterSnapshot??new Set,s=Zo(e),n=[...s].filter(o=>!i.has(o)),r=[...i].filter(o=>!s.has(o)),a={};return n.length&&(a.subscribe=await Zs("POST","/subscribe",{email:t,lists:n})),r.length&&(a.unsubscribe=await Zs("POST","/unsubscribe",{email:t,lists:r})),e.__vbNewsletterSnapshot=Zo(e),a}async function mk(e){let t=e.currentTarget,i=Vp(t),s=Up(t)?.value?.trim();if(e.preventDefault(),!s){Yo(t,"error","Email is required.");return}if(!t.hasAttribute(Ko)){t.setAttribute(Ko,""),zp(t,!0),t.dispatchEvent(new CustomEvent("vb-newsletter-form:submitting",{bubbles:!0,composed:!0,detail:{mode:i}}));try{let n;if(i==="preferences")n=await pk(t,s);else{let r=jp(t);n=await hk(t,i,s,r)}t.dispatchEvent(new CustomEvent("vb-newsletter-form:success",{bubbles:!0,composed:!0,detail:{mode:i,lists:jp(t),response:n}})),Yo(t,"success",Hp(t,i,"success")),i==="subscribe"&&!t.hasAttribute("data-vb-newsletter-no-reset")&&t.reset()}catch(n){let r={mode:i,error:n};n instanceof K&&(r.status=n.status,r.body=n.body),t.dispatchEvent(new CustomEvent("vb-newsletter-form:error",{bubbles:!0,composed:!0,detail:r}));let a=n instanceof Error&&n.message==="No lists selected."?"Pick at least one list.":Hp(t,i,"error");Yo(t,"error",a)}finally{t.removeAttribute(Ko),zp(t,!1)}}}function Jo(e){if(!e.hasAttribute("data-vb-newsletter-form-init")&&(e.setAttribute("data-vb-newsletter-form-init",""),e.addEventListener("submit",mk),Vp(e)==="preferences")){let t=Up(e);if(t){let i=async()=>{let s=t.value.trim();s&&(await fk(e,s),e.__vbNewsletterSnapshot=Zo(e))};t.addEventListener("change",i),t.addEventListener("blur",i)}}}function Qo(e=document){for(let t of e.querySelectorAll(Xo))Jo(t)}var Xo,Ko,dk,gk,Gp=v(()=>{ge();Xo="form[data-vb-newsletter-form]",Ko="data-vb-newsletter-submitting",dk=["subscribe","unsubscribe","preferences"];document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Qo()):Qo();gk=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.(Xo)&&Jo(s),s.querySelectorAll?.(Xo).forEach(n=>Jo(n))}});gk.observe(document.documentElement,{childList:!0,subtree:!0})});function bk(e){return[...e.querySelectorAll("li")].filter(t=>t.querySelector("a[href]"))}function Kp(e){return e.querySelector("li[data-audio-active]")}function tc(e,t,i){let s=i.querySelector("a[href]");return s?(t.querySelectorAll("li[data-audio-active]").forEach(n=>{n!==i&&n.removeAttribute("data-audio-active")}),i.setAttribute("data-audio-active",""),e.src=s.href,e.play()?.catch(()=>{}),{src:s.href,title:s.textContent?.trim()??""}):null}function Yp(e){let t=Kp(e);return t?.setAttribute("data-audio-played",""),t}function Xp(e,{loop:t=!1}={}){let i=bk(e);if(!i.length)return null;let s=Kp(e),n=s?i.indexOf(s):-1;return n+1<i.length?i[n+1]:t?i[0]:null}var Zp=v(()=>{});var Jp={};T(Jp,{initAllPlaylists:()=>sc});function ic(e){if(e.hasAttribute("data-audio-playlist-init"))return;let t=e.querySelector("audio");if(!t)return;let i=e.querySelector(".track-list");i&&(e.setAttribute("data-audio-playlist-init",""),t.addEventListener("ended",()=>{Yp(i);let s=Xp(i);s&&tc(t,i,s)}),i.addEventListener("click",s=>{let n=s.target.closest("a[href]"),r=n?.closest("li");!n||!r||(s.preventDefault(),tc(t,i,r))}))}function sc(e=document){e.querySelectorAll(ec).forEach(t=>ic(t))}var ec,yk,Qp=v(()=>{Zp();ec="[data-audio-playlist]";document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>sc()):sc();yk=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(ec)&&ic(s),s.querySelectorAll(ec).forEach(n=>ic(n))}});yk.observe(document.documentElement,{childList:!0,subtree:!0})});function vk(e,t){let i=Number(e);return!Number.isFinite(i)||t<=0?1:Math.min(Math.max(1,Math.floor(i)),t)}function wk({page:e,size:t}){let i=(e-1)*t;return{start:i,end:i+t}}function Ak(e,t,i=2){if(t<=0)return[];if(t===1)return[1];let s=Math.max(2,e-i),n=Math.min(t-1,e+i),r=[1];s>2&&r.push("\u2026");for(let a=s;a<=n;a++)r.push(a);return n<t-1&&r.push("\u2026"),r.push(t),r}function nc({total:e,size:t,page:i,window:s=2}){if(t<=0)return{page:(e>0,1),totalPages:e>0?1:0,start:0,end:e,pageNumbers:e>0?[1]:[]};let n=e>0?Math.ceil(e/t):0,r=vk(i,n),a=wk({page:r,size:t}),o=Math.min(a.end,e);return{page:r,totalPages:n,start:a.start,end:o,pageNumbers:Ak(r,n,s)}}var tm=v(()=>{});var am={};T(am,{initDataPaged:()=>sm});function sm(e){if(em.has(e))return;let t={host:e,nav:{before:null,after:null},sentinel:null,intersect:null,children:[],childObserver:null,visible:0};em.set(e,t);let i=e.dataset.pagedUrl;if(i){let n=new URL(window.location.href).searchParams.get(i);n&&!e.hasAttribute("data-paged-page")&&e.setAttribute("data-paged-page",n),window.addEventListener("popstate",()=>{if(!e.isConnected)return;let r=new URL(window.location.href);e.setAttribute("data-paged-page",r.searchParams.get(i)||"1"),yi(t)})}t.childObserver=new MutationObserver(()=>yi(t)),t.childObserver.observe(e,{childList:!0}),e.addEventListener("paged:goto",s=>rm(t,s.detail?.page??1)),e.addEventListener("paged:loadmore",()=>oc(t)),yi(t)}function ac(e){return{size:parseInt(e.dataset.pagedSize||"10",10)||0,page:parseInt(e.dataset.pagedPage||"1",10)||1,style:e.dataset.pagedStyle||"numbered",window:parseInt(e.dataset.pagedWindow||"2",10)||2,controls:e.dataset.pagedControls||"after",urlParam:e.dataset.pagedUrl||""}}function nm(e){if(e.tagName==="TABLE"){let t=e.querySelector(":scope > tbody");if(t)return Array.from(t.children)}return Array.from(e.children).filter(t=>!t.matches("nav[data-paged-nav], div[data-paged-sentinel]"))}function yi(e){let{host:t}=e,i=ac(t),s=nm(t);e.children=s;let n=nc({total:s.length,size:i.size,page:i.page,window:i.window}),r=i.style==="load-more"||i.style==="infinite",a;if(r){e.visible===0&&(e.visible=i.size||s.length);let o=Math.min(e.visible,s.length);s.forEach((c,l)=>{c.hidden=l>=o}),a=o}else s.forEach((o,c)=>{o.hidden=c<n.start||c>=n.end}),a=Math.max(0,n.end-n.start);kk(e,n,i,r),t.dispatchEvent(new CustomEvent("paged:change",{bubbles:!0,detail:{page:n.page,size:i.size,total:s.length,totalPages:n.totalPages,visible:a,style:i.style}}))}function rc(e){let t=new Intl.NumberFormat(R(e)),i=(s,n)=>B(e,s,n);return{navLabel:i("nav","Pagination"),prevLabel:i("prev","Previous"),nextLabel:i("next","Next"),pageLabel:s=>Pt(i("page","Page {page}"),{page:t.format(s)}),statusLabel:(s,n)=>Pt(i("status","Page {page} of {total}"),{page:t.format(s),total:t.format(n)}),loadMoreLabel:s=>Pt(i("load-more","Load more ({n})"),{n:t.format(s)}),noMoreLabel:i("no-more","No more")}}function kk(e,t,i,s){e.sentinel?.remove(),e.sentinel=null,e.intersect?.disconnect(),e.intersect=null;let n=null;if(i.controls!=="none"&&(i.style==="load-more"?n=sr({style:"load-more",page:t.page,totalPages:t.totalPages,pageNumbers:t.pageNumbers,total:e.children.length,visible:e.visible,...rc(e.host)}):!s&&t.totalPages>1&&(n=sr({style:i.style,page:t.page,totalPages:t.totalPages,pageNumbers:t.pageNumbers,total:e.children.length,visible:e.visible,...rc(e.host)}))),i.style==="infinite"){let r=document.createElement("div");r.setAttribute("data-paged-sentinel",""),r.setAttribute("aria-hidden","true"),r.style.cssText="block-size:1px;inline-size:100%",e.host.parentNode?.insertBefore(r,e.host.nextSibling),e.sentinel=r,e.intersect=new IntersectionObserver(a=>{for(let o of a)o.isIntersecting&&oc(e)},{rootMargin:"200px"}),e.intersect.observe(r)}Sk(e,n,i)}function Sk(e,t,i){let{host:s}=e,n={onNavigate:l=>rm(e,l),onLoadMore:()=>oc(e)},r=!!t&&(i.controls==="before"||i.controls==="both"),a=!!t&&(i.controls==="after"||i.controls==="both"),o=null;r&&(o=a?t.cloneNode(!0):t,a&&o.querySelector("[data-paged-status]")?.removeAttribute("aria-live"),rr(o,n));let c=a?t:null;c&&rr(c,n),e.nav.before=im(e.nav.before,o,l=>s.parentNode?.insertBefore(l,s)),e.nav.after=im(e.nav.after,c,l=>s.parentNode?.insertBefore(l,s.nextSibling))}function im(e,t,i){return e?.isConnected&&t?(Wl(e,t),t):(e?.remove(),t&&i(t),t)}function rm(e,t){let{host:i}=e,s=ac(i),n=nm(i),r=nc({total:n.length,size:s.size,page:t,window:s.window});if(r.page!==s.page){if(i.setAttribute("data-paged-page",String(r.page)),s.urlParam){let a=new URL(window.location.href);a.searchParams.set(s.urlParam,String(r.page)),window.history.pushState({},"",a)}yi(e),s.style!=="prev-next"&&G(rc(i).statusLabel(r.page,r.totalPages))}}function oc(e){let i=ac(e.host).size||10,s=e.visible;if(e.visible=Math.min(e.visible+i,e.children.length),yi(e),e.visible>s){let n=new Intl.NumberFormat(R(e.host));G(B(e.host,"showing","Showing {visible} of {total}",{visible:n.format(e.visible),total:n.format(e.children.length)}))}}var Ek,em,om=v(()=>{$();tm();ar();dt();Q();Ek="[data-paged]",em=new WeakMap;C(Ek,sm)});function Le(e){if(!e)return null;let t=String(e);return t.startsWith("-")?{key:t.slice(1),direction:"desc"}:t.startsWith("+")?{key:t.slice(1),direction:"asc"}:{key:t,direction:"asc"}}function xk(e,t,i){let s=t==="desc"?-1:1,n=e==="text"||!um[e]?Ck(i):um[e];return(r,a)=>{let o=hm(r),c=hm(a);return o&&c?0:o?1:c?-1:s*n(r,a)}}function fm(e,t,i,s,n){let r=xk(i,s,n),a=Array.from({length:e.length},(o,c)=>c);return a.sort((o,c)=>{let l=r(t(e[o]),t(e[c]));return l===0?o-c:l}),a}function pm(e){return e==="asc"?"desc":e==="desc"?"none":"asc"}function Ck(e){let t=e||"",i=cm.get(t);if(!i){try{i=new Intl.Collator(e||void 0,{sensitivity:"base",numeric:!0})}catch{i=new Intl.Collator(void 0,{sensitivity:"base",numeric:!0})}cm.set(t,i)}return(s,n)=>i.compare(String(s),String(n))}function lm(e){if(typeof e=="number")return e;let t=String(e??"").trim().replace(/[\u2212\u2012\u2013]/g,"-"),i=/^\(.*\)$/.test(t)||/^-|-$/.test(t.replace(/[^\d.,-]/g,""));if(t=t.replace(/[^\d.,]/g,""),!t)return NaN;let s=t.lastIndexOf(","),n=t.lastIndexOf(".");if(s>-1&&n>-1){let a=s>n?",":".",o=a===","?".":",";t=t.split(o).join("").replace(a,".")}else if(s>-1){let a=t.split(",");t=a.length>2||a.length===2&&a[1].length===3?a.join(""):a.join(".")}else(t.match(/\./g)||[]).length>1&&(t=t.split(".").join(""));let r=Number(t);return i?-r:r}function dm(e){return e instanceof Date?e.getTime():Date.parse(String(e))}function hm(e){return e==null||e===""}var cm,um,mm=v(()=>{cm=new Map;um={number(e,t){let i=lm(e),s=lm(t);return Number.isNaN(i)&&Number.isNaN(s)?0:Number.isNaN(i)?1:Number.isNaN(s)||i<s?-1:i>s?1:0},date(e,t){let i=dm(e),s=dm(t);return Number.isNaN(i)&&Number.isNaN(s)?0:Number.isNaN(i)?1:Number.isNaN(s)||i<s?-1:i>s?1:0}}});var wm={};T(wm,{initDataSortable:()=>ym});function ym(e){if(Js.has(e))return;Js.add(e),e.tagName==="TABLE"&&Lk(e);let i=e.dataset.sortableDefault;if(i&&!e.dataset.sortBy){let s=Le(i);s&&Kt(e,s.key,s.direction)}if(!e.dataset.sortBy)for(let s of lc()){if(s.tagName!=="SELECT"||vi(s)!==e)continue;let n=Le(s.value);if(n){Kt(e,n.key,n.direction);break}}Qs(e)}function Lk(e){e.querySelectorAll(":scope > thead th[data-sort]").forEach(i=>{i.hasAttribute("aria-sort")||i.setAttribute("aria-sort","none"),Dk(i),i.addEventListener("click",s=>{let r=s.target.closest?.("a, input, select, textarea, button:not([data-sort-button])");if(r&&i.contains(r))return;let a=i.dataset.sort;if(!a)return;let o=e.dataset.sortBy===a?e.dataset.sortDirection:"none",c=pm(o||"none");c==="none"?Kt(e,"","none"):Kt(e,a,c,i.dataset.sortType)})})}function Dk(e){let t=e.querySelector(":scope > button[data-sort-button]");if(t)return t;let i=document.createElement("button");return i.type="button",i.setAttribute("data-sort-button",""),i.append(...e.childNodes),e.appendChild(i),i}function lc(){return document.querySelectorAll("[data-sort-target]")}function vi(e){let t=e.getAttribute("data-sort-target");if(!t)return null;let i=null;try{i=document.querySelector(t)}catch{return null}return i?.matches("[data-sortable]")?i:null}function gm(e,t){let i=vi(e);if(!i)return;let s=Le(t);if(!s){Kt(i,"","none");return}if(Kt(i,s.key,s.direction),i.tagName==="TABLE")return;let n=e,r=e.tagName==="SELECT"?n.selectedOptions[0]?.textContent||t:e.getAttribute("aria-label")||e.textContent||t,a=new Intl.NumberFormat(R(i)).format(vm(i).length);G(B(i,"sorted","Sorted: {sort}. {count} items",{sort:r.trim(),count:a}))}function Qs(e){let t=e.dataset.sortBy?(e.dataset.sortDirection==="desc"?"-":"")+e.dataset.sortBy:"";for(let i of lc()){if(i.tagName!=="BUTTON"||vi(i)!==e)continue;let s=Le(i.getAttribute("data-sort-by")||""),n=s?(s.direction==="desc"?"-":"")+s.key:"";i.setAttribute("aria-pressed",String(!!n&&n===t))}}function cc(){for(let e of lc())if(!Js.has(e)&&e.getAttribute("data-sort-target"))if(Js.add(e),e.tagName==="SELECT"){e.addEventListener("change",()=>gm(e,e.value));let t=vi(e),i=Le(e.value);t&&i&&!t.dataset.sortBy&&Kt(t,i.key,i.direction)}else{e.addEventListener("click",()=>gm(e,e.getAttribute("data-sort-by")||""));let t=vi(e);t&&Qs(t)}}function Nk(e,t,i,s={}){if(s.isTable){let r=s.colIndex,a=e.children[r];if(!a)return"";let o=a.dataset.sortValue??a.dataset.value;if(o!=null)return o;if(i==="date"){let c=a.querySelector("time[datetime]");if(c)return c.getAttribute("datetime")||""}return(a.textContent||"").trim()}let n=e.dataset[`sort${Mk(t)}`];return n??(e.dataset.value!=null?e.dataset.value:(e.textContent||"").trim())}function Mk(e){return e?e[0].toUpperCase()+e.slice(1):""}function vm(e){if(e.tagName==="TABLE"){let t=e.querySelector(":scope > tbody");return t?Array.from(t.children):[]}return Array.from(e.children)}function _k(e,t){return Array.from(e.querySelectorAll(":scope > thead th")).findIndex(s=>s.dataset.sort===t)}function Kt(e,t,i,s){let n=e.tagName==="TABLE",r=vm(e);if(i==="none"||!t){e.removeAttribute("data-sort-by"),e.dataset.sortDirection="none",n?bm(e,"","none"):Qs(e),e.dispatchEvent(new CustomEvent("sort:change",{bubbles:!0,detail:{key:"",direction:"none",total:r.length}}));return}let a=$k(e,t,s),o=n?_k(e,t):-1,c=fm(r,u=>Nk(u,t,a,{isTable:n,colIndex:o}),a,i,R(e)),l=n?e.querySelector(":scope > tbody"):e;if(l){for(let u of c)l.appendChild(r[u]);e.dataset.sortBy=t,e.dataset.sortDirection=i,n?bm(e,t,i):Qs(e),e.hasAttribute("data-paged")&&e.dispatchEvent(new CustomEvent("paged:goto",{detail:{page:1}})),e.dispatchEvent(new CustomEvent("sort:change",{bubbles:!0,detail:{key:t,direction:i,total:r.length}}))}}function $k(e,t,i){if(i==="text"||i==="number"||i==="date")return i;if(e.tagName==="TABLE"){let r=e.querySelector(`:scope > thead th[data-sort="${Ik(t)}"]`)?.dataset.sortType;if(r==="text"||r==="number"||r==="date")return r}let s=e.dataset.sortType;return s==="text"||s==="number"||s==="date"?s:"text"}function Ik(e){return String(e).replace(/["\\]/g,"\\$&")}function bm(e,t,i){e.querySelectorAll(":scope > thead th[data-sort]").forEach(n=>{n.dataset.sort===t&&i!=="none"?n.setAttribute("aria-sort",i==="asc"?"ascending":"descending"):n.setAttribute("aria-sort","none")})}var Tk,Js,Am=v(()=>{$();mm();Q();dt();Tk="[data-sortable]",Js=new WeakSet;C(Tk,ym);typeof document<"u"&&(document.readyState!=="loading"?cc():document.addEventListener("DOMContentLoaded",cc),C("[data-sort-target]",()=>cc()))});function Em(e){if(!e)return null;let t=String(e).trim();if(!t)return null;if(t.startsWith("class:")){let i=t.slice(6).trim();return i?{kind:"class",name:i}:null}return{kind:"attr",name:t}}function wi(e){return Bk.has(String(e).toLowerCase())}function uc(e){return Rk.has(String(e).toLowerCase())}function km(e,t,i){if(e.kind==="class")return t?{present:!1}:{present:!0};if(wi(e.name))return t?{present:!1}:{present:!0,value:""};if(uc(e.name))return{present:!0,value:t==="true"||t===!0?"false":"true"};let s=i.on??"true",n=i.off??"false";return{present:!0,value:t===s?n:s}}var Bk,Rk,Sm=v(()=>{Bk=new Set(["hidden","disabled","open","checked","readonly","required","multiple","selected","autofocus","autoplay","controls","defer","inert","loop","muted","nomodule","novalidate","playsinline","reversed"]),Rk=new Set(["aria-pressed","aria-expanded","aria-selected","aria-checked"])});var Lm={};T(Lm,{initDataToggle:()=>Tm});function Tm(e){if(xm.has(e))return;xm.add(e);let t=Em(e.dataset.toggle);if(!t)return;let i=e.dataset.toggleTarget,s=i?document.querySelector(i):e;if(!s)return;let n=s!==e;n&&s.id&&e.setAttribute("aria-controls",s.id),t.kind==="attr"&&wi(t.name)&&!n&&e.setAttribute("aria-pressed",String(s.hasAttribute(t.name))),Cm(e,s,t),e.addEventListener("click",r=>{r.preventDefault();let a={on:e.dataset.toggleOn,off:e.dataset.toggleOff},o;t.kind==="class"?o=s.classList.contains(t.name):wi(t.name)?o=s.hasAttribute(t.name):o=s.getAttribute(t.name);let c=km(t,o,a);t.kind==="class"?c.present?s.classList.add(t.name):s.classList.remove(t.name):c.present?s.setAttribute(t.name,c.value??""):s.removeAttribute(t.name),!n&&wi(t.name)&&e.setAttribute("aria-pressed",String(c.present)),!n&&uc(t.name),Cm(e,s,t,c),e.dispatchEvent(new CustomEvent("toggle:change",{bubbles:!0,detail:{spec:t.kind==="class"?`class:${t.name}`:t.name,value:c.value,present:c.present,target:s}}))})}function Cm(e,t,i,s){if(t===e)return;let n=t.hasAttribute("popover"),r=i.kind==="attr"&&i.name.startsWith("data-")&&(e.dataset.toggleOn||"").toLowerCase()==="open";if(!n&&!r)return;let a;s?a=n?s.present:s.value==="open":a=n?t.matches(":popover-open"):t.getAttribute(i.name)==="open",e.setAttribute("aria-expanded",String(a))}var Fk,xm,Dm=v(()=>{$();Sm();Fk="[data-toggle]",xm=new WeakSet;C(Fk,Tm)});var _m={};T(_m,{decorateCardTable:()=>dc,initTableCard:()=>Mm});function Ai(e,t){e.hasAttribute("role")||e.setAttribute("role",t)}function Ok(e){let t=e.tHead?.rows;if(!t?.length)return[];let i=[];for(let s of t[t.length-1].cells){let n=(s.textContent||"").replace(/\s+/g," ").trim();for(let r=0;r<s.colSpan;r++)i.push(n)}return i}function dc(e){Ai(e,"table");let t=Ok(e);for(let i of[e.tHead,...e.tBodies,e.tFoot]){if(!i)continue;Ai(i,"rowgroup");let s=i===e.tHead;for(let n of i.rows){Ai(n,"row");let r=0;for(let a of n.cells){if(a.tagName==="TH"){let o=a.getAttribute("scope");Ai(a,s||o==="col"||o==="colgroup"?"columnheader":"rowheader")}else Ai(a,"cell");!s&&!a.hasAttribute("data-label")&&t[r]&&a.setAttribute("data-label",t[r]),r+=a.colSpan}}}}function Mm(e){let t=e;Nm.has(t)||(Nm.add(t),dc(t),new MutationObserver(()=>dc(t)).observe(t,{childList:!0,subtree:!0}))}var Pk,Nm,$m=v(()=>{$();Pk='table[data-responsive="card"]',Nm=new WeakSet;C(Pk,Mm)});var qm={};T(qm,{EMOJI_ALIASES:()=>Pm,EMOJI_GROUPS:()=>Hk,EMOJI_GROUP_ICONS:()=>Vk,EMOJI_GROUP_LABELS:()=>zk,EMOJI_MAP:()=>ki,EXTENDED_EVENT:()=>Uk,EXTENDED_REGISTRY:()=>Om,extendedCount:()=>Wk,getByGroup:()=>Kk,resolveEmoji:()=>Gk,searchEmoji:()=>Yk});function en(){for(;Fm<Rm.length;){let e=Rm[Fm++];for(let[t,i,s,n]of e){if(ki.has(t))continue;let r={shortcode:t,emoji:i,name:s,keywords:[],group:n};ki.set(t,r),Si.push(r)}}}function Wk(){return en(),Si.length}function Gk(e){en();let t=ki.get(e);if(t)return t;let i=Pm.get(e);return i&&ki.get(i)||null}function Kk(e){en();let t=tn.filter(s=>s.group===e),i=Si.filter(s=>s.group===e);return i.length>0?t.concat(i):t}function Yk(e){en();let t=e.toLowerCase().trim(),i=Si.length>0?tn.concat(Si):tn;return t?i.filter(s=>s.shortcode.includes(t)||s.name.toLowerCase().includes(t)||s.keywords&&s.keywords.some(n=>n.includes(t))):i}var tn,ki,Pm,Hk,zk,Vk,Om,Uk,Rm,Fm,Si,jm=v(()=>{tn=[{shortcode:"smile",emoji:"\u{1F604}",name:"Smiling Face with Open Mouth",keywords:["happy","joy","laugh"],group:"smileys"},{shortcode:"grinning",emoji:"\u{1F600}",name:"Grinning Face",keywords:["happy","smile"],group:"smileys"},{shortcode:"laughing",emoji:"\u{1F606}",name:"Grinning Squinting Face",keywords:["happy","laugh"],group:"smileys"},{shortcode:"sweat_smile",emoji:"\u{1F605}",name:"Grinning Face with Sweat",keywords:["hot","relief"],group:"smileys"},{shortcode:"rofl",emoji:"\u{1F923}",name:"Rolling on the Floor Laughing",keywords:["lol","funny"],group:"smileys"},{shortcode:"joy",emoji:"\u{1F602}",name:"Face with Tears of Joy",keywords:["happy","cry","laugh"],group:"smileys"},{shortcode:"slightly_smiling_face",emoji:"\u{1F642}",name:"Slightly Smiling Face",keywords:["smile"],group:"smileys"},{shortcode:"upside_down_face",emoji:"\u{1F643}",name:"Upside-Down Face",keywords:["sarcasm","silly"],group:"smileys"},{shortcode:"wink",emoji:"\u{1F609}",name:"Winking Face",keywords:["flirt","joke"],group:"smileys"},{shortcode:"blush",emoji:"\u{1F60A}",name:"Smiling Face with Smiling Eyes",keywords:["happy","shy"],group:"smileys"},{shortcode:"innocent",emoji:"\u{1F607}",name:"Smiling Face with Halo",keywords:["angel","good"],group:"smileys"},{shortcode:"heart_eyes",emoji:"\u{1F60D}",name:"Smiling Face with Heart-Eyes",keywords:["love","crush"],group:"smileys"},{shortcode:"star_struck",emoji:"\u{1F929}",name:"Star-Struck",keywords:["wow","amazing"],group:"smileys"},{shortcode:"kissing_heart",emoji:"\u{1F618}",name:"Face Blowing a Kiss",keywords:["love","kiss"],group:"smileys"},{shortcode:"yum",emoji:"\u{1F60B}",name:"Face Savoring Food",keywords:["delicious","tasty"],group:"smileys"},{shortcode:"stuck_out_tongue",emoji:"\u{1F61B}",name:"Face with Tongue",keywords:["playful","silly"],group:"smileys"},{shortcode:"stuck_out_tongue_winking_eye",emoji:"\u{1F61C}",name:"Winking Face with Tongue",keywords:["silly","playful"],group:"smileys"},{shortcode:"zany_face",emoji:"\u{1F92A}",name:"Zany Face",keywords:["crazy","wild"],group:"smileys"},{shortcode:"hugs",emoji:"\u{1F917}",name:"Hugging Face",keywords:["hug","warm"],group:"smileys"},{shortcode:"thinking",emoji:"\u{1F914}",name:"Thinking Face",keywords:["hmm","consider"],group:"smileys"},{shortcode:"shushing_face",emoji:"\u{1F92B}",name:"Shushing Face",keywords:["quiet","secret"],group:"smileys"},{shortcode:"smirk",emoji:"\u{1F60F}",name:"Smirking Face",keywords:["sly","suggestive"],group:"smileys"},{shortcode:"unamused",emoji:"\u{1F612}",name:"Unamused Face",keywords:["bored","unimpressed"],group:"smileys"},{shortcode:"roll_eyes",emoji:"\u{1F644}",name:"Face with Rolling Eyes",keywords:["annoyed","whatever"],group:"smileys"},{shortcode:"grimacing",emoji:"\u{1F62C}",name:"Grimacing Face",keywords:["awkward","nervous"],group:"smileys"},{shortcode:"relieved",emoji:"\u{1F60C}",name:"Relieved Face",keywords:["calm","peaceful"],group:"smileys"},{shortcode:"pensive",emoji:"\u{1F614}",name:"Pensive Face",keywords:["sad","thoughtful"],group:"smileys"},{shortcode:"sleepy",emoji:"\u{1F62A}",name:"Sleepy Face",keywords:["tired","sleep"],group:"smileys"},{shortcode:"sleeping",emoji:"\u{1F634}",name:"Sleeping Face",keywords:["zzz","sleep"],group:"smileys"},{shortcode:"mask",emoji:"\u{1F637}",name:"Face with Medical Mask",keywords:["sick","health"],group:"smileys"},{shortcode:"nerd_face",emoji:"\u{1F913}",name:"Nerd Face",keywords:["geek","smart"],group:"smileys"},{shortcode:"sunglasses",emoji:"\u{1F60E}",name:"Smiling Face with Sunglasses",keywords:["cool","chill"],group:"smileys"},{shortcode:"confused",emoji:"\u{1F615}",name:"Confused Face",keywords:["puzzled","unsure"],group:"smileys"},{shortcode:"worried",emoji:"\u{1F61F}",name:"Worried Face",keywords:["anxious","concern"],group:"smileys"},{shortcode:"cry",emoji:"\u{1F622}",name:"Crying Face",keywords:["sad","tear"],group:"smileys"},{shortcode:"sob",emoji:"\u{1F62D}",name:"Loudly Crying Face",keywords:["sad","cry"],group:"smileys"},{shortcode:"angry",emoji:"\u{1F620}",name:"Angry Face",keywords:["mad","annoyed"],group:"smileys"},{shortcode:"rage",emoji:"\u{1F92C}",name:"Face with Symbols on Mouth",keywords:["angry","swear"],group:"smileys"},{shortcode:"exploding_head",emoji:"\u{1F92F}",name:"Exploding Head",keywords:["mind blown","shocked"],group:"smileys"},{shortcode:"flushed",emoji:"\u{1F633}",name:"Flushed Face",keywords:["embarrassed","shocked"],group:"smileys"},{shortcode:"scream",emoji:"\u{1F631}",name:"Face Screaming in Fear",keywords:["scared","horror"],group:"smileys"},{shortcode:"skull",emoji:"\u{1F480}",name:"Skull",keywords:["dead","death"],group:"smileys"},{shortcode:"clown_face",emoji:"\u{1F921}",name:"Clown Face",keywords:["joke","funny"],group:"smileys"},{shortcode:"ghost",emoji:"\u{1F47B}",name:"Ghost",keywords:["halloween","spooky"],group:"smileys"},{shortcode:"wave",emoji:"\u{1F44B}",name:"Waving Hand",keywords:["hello","goodbye"],group:"people"},{shortcode:"raised_hand",emoji:"\u270B",name:"Raised Hand",keywords:["stop","high five"],group:"people"},{shortcode:"ok_hand",emoji:"\u{1F44C}",name:"OK Hand",keywords:["perfect","nice"],group:"people"},{shortcode:"thumbsup",emoji:"\u{1F44D}",name:"Thumbs Up",keywords:["approve","good","yes"],group:"people"},{shortcode:"thumbsdown",emoji:"\u{1F44E}",name:"Thumbs Down",keywords:["disapprove","bad","no"],group:"people"},{shortcode:"clap",emoji:"\u{1F44F}",name:"Clapping Hands",keywords:["applause","bravo"],group:"people"},{shortcode:"raised_hands",emoji:"\u{1F64C}",name:"Raising Hands",keywords:["celebration","hooray"],group:"people"},{shortcode:"pray",emoji:"\u{1F64F}",name:"Folded Hands",keywords:["thanks","please","hope"],group:"people"},{shortcode:"handshake",emoji:"\u{1F91D}",name:"Handshake",keywords:["deal","agreement"],group:"people"},{shortcode:"point_up",emoji:"\u261D\uFE0F",name:"Index Pointing Up",keywords:["attention","important"],group:"people"},{shortcode:"point_right",emoji:"\u{1F449}",name:"Backhand Index Pointing Right",keywords:["direction","this"],group:"people"},{shortcode:"point_left",emoji:"\u{1F448}",name:"Backhand Index Pointing Left",keywords:["direction","that"],group:"people"},{shortcode:"point_down",emoji:"\u{1F447}",name:"Backhand Index Pointing Down",keywords:["direction","below"],group:"people"},{shortcode:"v",emoji:"\u270C\uFE0F",name:"Victory Hand",keywords:["peace","two"],group:"people"},{shortcode:"crossed_fingers",emoji:"\u{1F91E}",name:"Crossed Fingers",keywords:["luck","hope"],group:"people"},{shortcode:"muscle",emoji:"\u{1F4AA}",name:"Flexed Biceps",keywords:["strong","power"],group:"people"},{shortcode:"writing_hand",emoji:"\u270D\uFE0F",name:"Writing Hand",keywords:["write","note"],group:"people"},{shortcode:"eyes",emoji:"\u{1F440}",name:"Eyes",keywords:["look","see","watch"],group:"people"},{shortcode:"brain",emoji:"\u{1F9E0}",name:"Brain",keywords:["smart","think","mind"],group:"people"},{shortcode:"speaking_head",emoji:"\u{1F5E3}\uFE0F",name:"Speaking Head",keywords:["talk","announce"],group:"people"},{shortcode:"baby",emoji:"\u{1F476}",name:"Baby",keywords:["child","newborn"],group:"people"},{shortcode:"person_shrugging",emoji:"\u{1F937}",name:"Person Shrugging",keywords:["dunno","whatever"],group:"people"},{shortcode:"person_facepalming",emoji:"\u{1F926}",name:"Person Facepalming",keywords:["frustration","disbelief"],group:"people"},{shortcode:"person_raising_hand",emoji:"\u{1F64B}",name:"Person Raising Hand",keywords:["question","volunteer"],group:"people"},{shortcode:"ninja",emoji:"\u{1F977}",name:"Ninja",keywords:["stealth","hidden"],group:"people"},{shortcode:"dog",emoji:"\u{1F436}",name:"Dog Face",keywords:["puppy","pet"],group:"animals"},{shortcode:"cat",emoji:"\u{1F431}",name:"Cat Face",keywords:["kitten","pet"],group:"animals"},{shortcode:"mouse",emoji:"\u{1F42D}",name:"Mouse Face",keywords:["rodent"],group:"animals"},{shortcode:"rabbit",emoji:"\u{1F430}",name:"Rabbit Face",keywords:["bunny","easter"],group:"animals"},{shortcode:"fox",emoji:"\u{1F98A}",name:"Fox",keywords:["clever","sly"],group:"animals"},{shortcode:"bear",emoji:"\u{1F43B}",name:"Bear",keywords:["teddy","nature"],group:"animals"},{shortcode:"unicorn",emoji:"\u{1F984}",name:"Unicorn",keywords:["magic","fantasy"],group:"animals"},{shortcode:"bee",emoji:"\u{1F41D}",name:"Honeybee",keywords:["honey","buzz"],group:"animals"},{shortcode:"butterfly",emoji:"\u{1F98B}",name:"Butterfly",keywords:["pretty","nature"],group:"animals"},{shortcode:"turtle",emoji:"\u{1F422}",name:"Turtle",keywords:["slow","shell"],group:"animals"},{shortcode:"snake",emoji:"\u{1F40D}",name:"Snake",keywords:["reptile"],group:"animals"},{shortcode:"whale",emoji:"\u{1F433}",name:"Spouting Whale",keywords:["ocean","sea"],group:"animals"},{shortcode:"dolphin",emoji:"\u{1F42C}",name:"Dolphin",keywords:["ocean","smart"],group:"animals"},{shortcode:"eagle",emoji:"\u{1F985}",name:"Eagle",keywords:["bird","freedom"],group:"animals"},{shortcode:"owl",emoji:"\u{1F989}",name:"Owl",keywords:["wise","night"],group:"animals"},{shortcode:"penguin",emoji:"\u{1F427}",name:"Penguin",keywords:["cold","linux"],group:"animals"},{shortcode:"octopus",emoji:"\u{1F419}",name:"Octopus",keywords:["ocean","tentacle"],group:"animals"},{shortcode:"seedling",emoji:"\u{1F331}",name:"Seedling",keywords:["plant","grow"],group:"animals"},{shortcode:"evergreen_tree",emoji:"\u{1F332}",name:"Evergreen Tree",keywords:["nature","pine"],group:"animals"},{shortcode:"sunflower",emoji:"\u{1F33B}",name:"Sunflower",keywords:["flower","yellow"],group:"animals"},{shortcode:"rose",emoji:"\u{1F339}",name:"Rose",keywords:["flower","love"],group:"animals"},{shortcode:"apple",emoji:"\u{1F34E}",name:"Red Apple",keywords:["fruit","healthy"],group:"food"},{shortcode:"banana",emoji:"\u{1F34C}",name:"Banana",keywords:["fruit","yellow"],group:"food"},{shortcode:"grapes",emoji:"\u{1F347}",name:"Grapes",keywords:["fruit","wine"],group:"food"},{shortcode:"watermelon",emoji:"\u{1F349}",name:"Watermelon",keywords:["fruit","summer"],group:"food"},{shortcode:"avocado",emoji:"\u{1F951}",name:"Avocado",keywords:["guacamole","healthy"],group:"food"},{shortcode:"pizza",emoji:"\u{1F355}",name:"Pizza",keywords:["food","italian"],group:"food"},{shortcode:"hamburger",emoji:"\u{1F354}",name:"Hamburger",keywords:["burger","fast food"],group:"food"},{shortcode:"taco",emoji:"\u{1F32E}",name:"Taco",keywords:["mexican","food"],group:"food"},{shortcode:"sushi",emoji:"\u{1F363}",name:"Sushi",keywords:["japanese","fish"],group:"food"},{shortcode:"cookie",emoji:"\u{1F36A}",name:"Cookie",keywords:["sweet","biscuit"],group:"food"},{shortcode:"cake",emoji:"\u{1F382}",name:"Birthday Cake",keywords:["birthday","celebration"],group:"food"},{shortcode:"ice_cream",emoji:"\u{1F366}",name:"Soft Ice Cream",keywords:["dessert","cold"],group:"food"},{shortcode:"chocolate_bar",emoji:"\u{1F36B}",name:"Chocolate Bar",keywords:["sweet","candy"],group:"food"},{shortcode:"popcorn",emoji:"\u{1F37F}",name:"Popcorn",keywords:["movie","snack"],group:"food"},{shortcode:"coffee",emoji:"\u2615",name:"Hot Beverage",keywords:["tea","drink","morning"],group:"food"},{shortcode:"beer",emoji:"\u{1F37A}",name:"Beer Mug",keywords:["drink","bar"],group:"food"},{shortcode:"wine_glass",emoji:"\u{1F377}",name:"Wine Glass",keywords:["drink","alcohol"],group:"food"},{shortcode:"cocktail",emoji:"\u{1F378}",name:"Cocktail Glass",keywords:["drink","martini"],group:"food"},{shortcode:"hot_pepper",emoji:"\u{1F336}\uFE0F",name:"Hot Pepper",keywords:["spicy","chili"],group:"food"},{shortcode:"egg",emoji:"\u{1F95A}",name:"Egg",keywords:["breakfast","food"],group:"food"},{shortcode:"earth_americas",emoji:"\u{1F30E}",name:"Globe Americas",keywords:["world","planet"],group:"travel"},{shortcode:"earth_europe",emoji:"\u{1F30D}",name:"Globe Europe-Africa",keywords:["world","planet"],group:"travel"},{shortcode:"sun",emoji:"\u2600\uFE0F",name:"Sun",keywords:["weather","bright","warm"],group:"travel"},{shortcode:"moon",emoji:"\u{1F319}",name:"Crescent Moon",keywords:["night","sleep"],group:"travel"},{shortcode:"star",emoji:"\u2B50",name:"Star",keywords:["favorite","rating"],group:"travel"},{shortcode:"star2",emoji:"\u{1F31F}",name:"Glowing Star",keywords:["sparkle","shine"],group:"travel"},{shortcode:"cloud",emoji:"\u2601\uFE0F",name:"Cloud",keywords:["weather","sky"],group:"travel"},{shortcode:"rainbow",emoji:"\u{1F308}",name:"Rainbow",keywords:["colorful","weather"],group:"travel"},{shortcode:"snowflake",emoji:"\u2744\uFE0F",name:"Snowflake",keywords:["cold","winter"],group:"travel"},{shortcode:"zap",emoji:"\u26A1",name:"High Voltage",keywords:["lightning","electric","fast"],group:"travel"},{shortcode:"fire",emoji:"\u{1F525}",name:"Fire",keywords:["hot","flame","lit"],group:"travel"},{shortcode:"ocean",emoji:"\u{1F30A}",name:"Water Wave",keywords:["sea","wave","surf"],group:"travel"},{shortcode:"airplane",emoji:"\u2708\uFE0F",name:"Airplane",keywords:["travel","flight"],group:"travel"},{shortcode:"rocket",emoji:"\u{1F680}",name:"Rocket",keywords:["launch","space","fast"],group:"travel"},{shortcode:"car",emoji:"\u{1F697}",name:"Automobile",keywords:["drive","vehicle"],group:"travel"},{shortcode:"house",emoji:"\u{1F3E0}",name:"House",keywords:["home","building"],group:"travel"},{shortcode:"tent",emoji:"\u26FA",name:"Tent",keywords:["camping","outdoor"],group:"travel"},{shortcode:"mountain",emoji:"\u26F0\uFE0F",name:"Mountain",keywords:["nature","hike"],group:"travel"},{shortcode:"desert_island",emoji:"\u{1F3DD}\uFE0F",name:"Desert Island",keywords:["beach","vacation"],group:"travel"},{shortcode:"volcano",emoji:"\u{1F30B}",name:"Volcano",keywords:["eruption","nature"],group:"travel"},{shortcode:"soccer",emoji:"\u26BD",name:"Soccer Ball",keywords:["football","sport"],group:"activities"},{shortcode:"basketball",emoji:"\u{1F3C0}",name:"Basketball",keywords:["sport","hoop"],group:"activities"},{shortcode:"tennis",emoji:"\u{1F3BE}",name:"Tennis",keywords:["sport","ball"],group:"activities"},{shortcode:"video_game",emoji:"\u{1F3AE}",name:"Video Game",keywords:["gaming","controller"],group:"activities"},{shortcode:"dart",emoji:"\u{1F3AF}",name:"Bullseye",keywords:["target","goal"],group:"activities"},{shortcode:"trophy",emoji:"\u{1F3C6}",name:"Trophy",keywords:["winner","champion"],group:"activities"},{shortcode:"medal",emoji:"\u{1F947}",name:"Gold Medal",keywords:["first","winner"],group:"activities"},{shortcode:"tada",emoji:"\u{1F389}",name:"Party Popper",keywords:["celebration","party"],group:"activities"},{shortcode:"confetti_ball",emoji:"\u{1F38A}",name:"Confetti Ball",keywords:["party","celebration"],group:"activities"},{shortcode:"balloon",emoji:"\u{1F388}",name:"Balloon",keywords:["party","birthday"],group:"activities"},{shortcode:"art",emoji:"\u{1F3A8}",name:"Artist Palette",keywords:["paint","creative"],group:"activities"},{shortcode:"musical_note",emoji:"\u{1F3B5}",name:"Musical Note",keywords:["music","song"],group:"activities"},{shortcode:"microphone",emoji:"\u{1F3A4}",name:"Microphone",keywords:["sing","karaoke"],group:"activities"},{shortcode:"guitar",emoji:"\u{1F3B8}",name:"Guitar",keywords:["music","rock"],group:"activities"},{shortcode:"dice",emoji:"\u{1F3B2}",name:"Game Die",keywords:["chance","random"],group:"activities"},{shortcode:"bulb",emoji:"\u{1F4A1}",name:"Light Bulb",keywords:["idea","bright"],group:"objects"},{shortcode:"computer",emoji:"\u{1F4BB}",name:"Laptop",keywords:["tech","work"],group:"objects"},{shortcode:"keyboard",emoji:"\u2328\uFE0F",name:"Keyboard",keywords:["type","computer"],group:"objects"},{shortcode:"phone",emoji:"\u{1F4F1}",name:"Mobile Phone",keywords:["cell","call"],group:"objects"},{shortcode:"camera",emoji:"\u{1F4F7}",name:"Camera",keywords:["photo","picture"],group:"objects"},{shortcode:"tv",emoji:"\u{1F4FA}",name:"Television",keywords:["watch","screen"],group:"objects"},{shortcode:"battery",emoji:"\u{1F50B}",name:"Battery",keywords:["charge","power"],group:"objects"},{shortcode:"electric_plug",emoji:"\u{1F50C}",name:"Electric Plug",keywords:["power","connect"],group:"objects"},{shortcode:"mag",emoji:"\u{1F50D}",name:"Magnifying Glass Left",keywords:["search","find"],group:"objects"},{shortcode:"lock",emoji:"\u{1F512}",name:"Locked",keywords:["security","private"],group:"objects"},{shortcode:"unlock",emoji:"\u{1F513}",name:"Unlocked",keywords:["open","access"],group:"objects"},{shortcode:"key",emoji:"\u{1F511}",name:"Key",keywords:["access","password"],group:"objects"},{shortcode:"hammer",emoji:"\u{1F528}",name:"Hammer",keywords:["tool","build"],group:"objects"},{shortcode:"wrench",emoji:"\u{1F527}",name:"Wrench",keywords:["tool","fix"],group:"objects"},{shortcode:"gear",emoji:"\u2699\uFE0F",name:"Gear",keywords:["settings","config"],group:"objects"},{shortcode:"link",emoji:"\u{1F517}",name:"Link",keywords:["chain","url"],group:"objects"},{shortcode:"paperclip",emoji:"\u{1F4CE}",name:"Paperclip",keywords:["attach","clip"],group:"objects"},{shortcode:"scissors",emoji:"\u2702\uFE0F",name:"Scissors",keywords:["cut","snip"],group:"objects"},{shortcode:"pen",emoji:"\u{1F58A}\uFE0F",name:"Pen",keywords:["write","sign"],group:"objects"},{shortcode:"pencil",emoji:"\u270F\uFE0F",name:"Pencil",keywords:["write","draw"],group:"objects"},{shortcode:"book",emoji:"\u{1F4D6}",name:"Open Book",keywords:["read","study"],group:"objects"},{shortcode:"memo",emoji:"\u{1F4DD}",name:"Memo",keywords:["note","write"],group:"objects"},{shortcode:"package",emoji:"\u{1F4E6}",name:"Package",keywords:["box","delivery"],group:"objects"},{shortcode:"mailbox",emoji:"\u{1F4EC}",name:"Open Mailbox with Raised Flag",keywords:["mail","letter"],group:"objects"},{shortcode:"bell",emoji:"\u{1F514}",name:"Bell",keywords:["notification","alert"],group:"objects"},{shortcode:"red_heart",emoji:"\u2764\uFE0F",name:"Red Heart",keywords:["love","valentine"],group:"symbols"},{shortcode:"orange_heart",emoji:"\u{1F9E1}",name:"Orange Heart",keywords:["love"],group:"symbols"},{shortcode:"yellow_heart",emoji:"\u{1F49B}",name:"Yellow Heart",keywords:["love","friendship"],group:"symbols"},{shortcode:"green_heart",emoji:"\u{1F49A}",name:"Green Heart",keywords:["love","nature"],group:"symbols"},{shortcode:"blue_heart",emoji:"\u{1F499}",name:"Blue Heart",keywords:["love","trust"],group:"symbols"},{shortcode:"purple_heart",emoji:"\u{1F49C}",name:"Purple Heart",keywords:["love"],group:"symbols"},{shortcode:"broken_heart",emoji:"\u{1F494}",name:"Broken Heart",keywords:["sad","breakup"],group:"symbols"},{shortcode:"sparkles",emoji:"\u2728",name:"Sparkles",keywords:["shine","magic","new"],group:"symbols"},{shortcode:"hundred",emoji:"\u{1F4AF}",name:"Hundred Points",keywords:["perfect","score"],group:"symbols"},{shortcode:"boom",emoji:"\u{1F4A5}",name:"Collision",keywords:["explosion","impact"],group:"symbols"},{shortcode:"speech_balloon",emoji:"\u{1F4AC}",name:"Speech Balloon",keywords:["talk","chat","message"],group:"symbols"},{shortcode:"thought_balloon",emoji:"\u{1F4AD}",name:"Thought Balloon",keywords:["think","dream"],group:"symbols"},{shortcode:"check_mark",emoji:"\u2705",name:"Check Mark Button",keywords:["done","yes","complete"],group:"symbols"},{shortcode:"x",emoji:"\u274C",name:"Cross Mark",keywords:["no","wrong","delete"],group:"symbols"},{shortcode:"warning",emoji:"\u26A0\uFE0F",name:"Warning",keywords:["caution","alert"],group:"symbols"},{shortcode:"no_entry",emoji:"\u26D4",name:"No Entry",keywords:["stop","forbidden"],group:"symbols"},{shortcode:"question",emoji:"\u2753",name:"Question Mark",keywords:["help","what"],group:"symbols"},{shortcode:"exclamation",emoji:"\u2757",name:"Exclamation Mark",keywords:["important","attention"],group:"symbols"},{shortcode:"arrow_right",emoji:"\u27A1\uFE0F",name:"Right Arrow",keywords:["next","forward"],group:"symbols"},{shortcode:"arrow_left",emoji:"\u2B05\uFE0F",name:"Left Arrow",keywords:["back","previous"],group:"symbols"},{shortcode:"arrow_up",emoji:"\u2B06\uFE0F",name:"Up Arrow",keywords:["above"],group:"symbols"},{shortcode:"arrow_down",emoji:"\u2B07\uFE0F",name:"Down Arrow",keywords:["below"],group:"symbols"},{shortcode:"recycle",emoji:"\u267B\uFE0F",name:"Recycling Symbol",keywords:["environment","green"],group:"symbols"},{shortcode:"infinity",emoji:"\u267E\uFE0F",name:"Infinity",keywords:["forever","loop"],group:"symbols"},{shortcode:"checkered_flag",emoji:"\u{1F3C1}",name:"Chequered Flag",keywords:["finish","race"],group:"flags"},{shortcode:"triangular_flag",emoji:"\u{1F6A9}",name:"Triangular Flag",keywords:["red flag","warning"],group:"flags"},{shortcode:"white_flag",emoji:"\u{1F3F3}\uFE0F",name:"White Flag",keywords:["surrender","peace"],group:"flags"},{shortcode:"rainbow_flag",emoji:"\u{1F3F3}\uFE0F\u200D\u{1F308}",name:"Rainbow Flag",keywords:["pride","lgbtq"],group:"flags"},{shortcode:"pirate_flag",emoji:"\u{1F3F4}\u200D\u2620\uFE0F",name:"Pirate Flag",keywords:["jolly roger","skull"],group:"flags"},{shortcode:"flag_us",emoji:"\u{1F1FA}\u{1F1F8}",name:"Flag: United States",keywords:["usa","america"],group:"flags"},{shortcode:"flag_gb",emoji:"\u{1F1EC}\u{1F1E7}",name:"Flag: United Kingdom",keywords:["uk","britain"],group:"flags"},{shortcode:"flag_fr",emoji:"\u{1F1EB}\u{1F1F7}",name:"Flag: France",keywords:["french"],group:"flags"},{shortcode:"flag_de",emoji:"\u{1F1E9}\u{1F1EA}",name:"Flag: Germany",keywords:["german"],group:"flags"},{shortcode:"flag_jp",emoji:"\u{1F1EF}\u{1F1F5}",name:"Flag: Japan",keywords:["japanese"],group:"flags"},{shortcode:"flag_kr",emoji:"\u{1F1F0}\u{1F1F7}",name:"Flag: South Korea",keywords:["korean"],group:"flags"},{shortcode:"flag_br",emoji:"\u{1F1E7}\u{1F1F7}",name:"Flag: Brazil",keywords:["brazilian"],group:"flags"},{shortcode:"flag_in",emoji:"\u{1F1EE}\u{1F1F3}",name:"Flag: India",keywords:["indian"],group:"flags"},{shortcode:"flag_ca",emoji:"\u{1F1E8}\u{1F1E6}",name:"Flag: Canada",keywords:["canadian","maple"],group:"flags"},{shortcode:"flag_au",emoji:"\u{1F1E6}\u{1F1FA}",name:"Flag: Australia",keywords:["australian"],group:"flags"}],ki=new Map(tn.map(e=>[e.shortcode,e])),Pm=new Map([["+1","thumbsup"],["-1","thumbsdown"],["heart","red_heart"],["thumbs_up","thumbsup"],["thumbs_down","thumbsdown"],["grin","grinning"],["laughing_crying","joy"],["lol","rofl"],["smiley","smile"],["cool","sunglasses"],["nerd","nerd_face"],["kiss","kissing_heart"],["hug","hugs"],["think","thinking"],["sad","cry"],["mad","angry"],["shrug","person_shrugging"],["facepalm","person_facepalming"],["pray_hands","pray"],["hi","wave"],["bye","wave"],["lightning","zap"],["flame","fire"],["hot","fire"],["bomb","boom"],["idea","bulb"],["laptop","computer"],["search","mag"],["party","tada"],["celebrate","tada"],["congrats","tada"],["check","check_mark"],["done","check_mark"],["yes","check_mark"],["no","x"],["wrong","x"],["love","red_heart"],["star_eyes","star_struck"],["mindblown","exploding_head"],["memo_pad","memo"],["notes","memo"],["coffee_cup","coffee"],["tea","coffee"]]),Hk=["smileys","people","animals","food","travel","activities","objects","symbols","flags"],zk={smileys:"Smileys & Emotion",people:"People & Body",animals:"Animals & Nature",food:"Food & Drink",travel:"Travel & Places",activities:"Activities",objects:"Objects",symbols:"Symbols",flags:"Flags"},Vk={smileys:"\u{1F600}",people:"\u{1F44B}",animals:"\u{1F436}",food:"\u{1F355}",travel:"\u{1F30D}",activities:"\u{1F389}",objects:"\u{1F4A1}",symbols:"\u2764\uFE0F",flags:"\u{1F3C1}"},Om=Symbol.for("vanilla-breeze.emoji-extended"),Uk="vb:emoji-extended",Rm=globalThis[Om]??=[],Fm=0,Si=[]});var Km={};T(Km,{initEmoji:()=>tS,replaceShortcodeText:()=>sn});async function zm(){if(Mt)return;Mt=(await Promise.resolve().then(()=>(jm(),qm))).resolveEmoji}function sn(e,t="keep"){if(!Mt||!e.includes(":"))return e;let i=Mt;return e.replace(Vm,(s,n)=>{let r=i(n);return r?r.emoji:t==="strip"&&Xk.test(n)?"":s})}async function tS(e=document){let t=e.querySelectorAll(mc);t.length!==0&&(await zm(),t.forEach(Wm))}function eS(e){return e.getAttribute("data-emoji-unknown")==="strip"?"strip":"keep"}function Wm(e){if(Yt.has(e)||!e.hasAttribute("data-emoji"))return;if(e.removeAttribute("data-emoji-init"),Um.has(e.tagName)){Yt.set(e,sS(e));return}if(pc(e),e.getAttribute("data-emoji-scan")!=="observe"){Yt.set(e,()=>{});return}let t=null,i=new MutationObserver(()=>{t&&clearTimeout(t),t=setTimeout(()=>{t=null,pc(e)},Jk)});i.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:fc}),Yt.set(e,()=>{i.disconnect(),t&&clearTimeout(t)})}function iS(e){let t=Yt.get(e);t&&(t(),Yt.delete(e))}function sS(e){let t=!1,i=!1,s=()=>{t=!0},n=()=>{t=!1,a(!0)},r=o=>{let{isComposing:c,inputType:l}=o;t||c||l==="historyUndo"||l==="historyRedo"||a(!!l&&!Qk.has(l))};function a(o=!1){if(!i){i=!0;try{nS(e,o)}finally{i=!1}}}return e.addEventListener("compositionstart",s),e.addEventListener("compositionend",n),e.addEventListener("input",r),e.value&&a(),()=>{e.removeEventListener("compositionstart",s),e.removeEventListener("compositionend",n),e.removeEventListener("input",r)}}function nS(e,t=!1){if(!Mt)return;let i=e.value,s=e.selectionStart,n=[];for(let o of i.matchAll(Vm)){let c=o.index??0,l=c+o[0].length;if(t&&s!==null&&l!==s)continue;let u=Mt(o[1]);u&&n.push({start:c,end:l,emoji:u.emoji})}if(n.length===0)return;if(e.selectionStart===null){e.value=sn(i,"keep");return}let r=e.selectionStart??i.length,a=document.activeElement===e&&typeof document.execCommand=="function";for(let o=n.length-1;o>=0;o--){let{start:c,end:l,emoji:u}=n[o];r>=l?r-=l-c-u.length:r>c&&(r=c+u.length);let d=!1;if(a){e.setSelectionRange(c,l);try{d=document.execCommand("insertText",!1,u)&&e.value.slice(c,c+u.length)===u}catch{d=!1}}d||e.setRangeText(u,c,l)}e.setSelectionRange(r,r)}function Hm(e,t){if(e.isContentEditable)return!0;let i=e.closest(Zk);return!!(i&&i!==t&&t.contains(i))}function pc(e){if(!Mt)return;let t=eS(e),i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(a){let o=a.parentElement;return!o||Hm(o,e)?NodeFilter.FILTER_REJECT:(a.textContent??"").includes(":")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),s=[];for(;i.nextNode();)s.push(i.currentNode);for(let a of s){let o=a.textContent??"",c=sn(o,t);c!==o&&(a.textContent=c)}let n=fc.map(a=>`[${a}*=":"]`).join(","),r=[e,...e.querySelectorAll(n)];for(let a of r)if(!(a!==e&&Hm(a,e)))for(let o of fc){let c=a.getAttribute(o);if(!c)continue;let l=sn(c,t);l!==c&&a.setAttribute(o,l)}}function Gm(e){zm().then(()=>Wm(e))}var Mt,mc,Vm,Xk,Zk,fc,Um,Jk,Qk,Yt,Ym=v(()=>{$();Mt=null;mc="[data-emoji]",Vm=/(?<![\p{L}\p{N}_]):([a-z0-9_+-]+):/gu,Xk=/[a-z]/,Zk="script,style,code,pre,kbd,samp,var,textarea,code-block,[data-emoji-skip]",fc=["alt","title","aria-label"],Um=new Set(["INPUT","TEXTAREA"]),Jk=100,Qk=new Set(["insertFromPaste","insertFromDrop","insertReplacementText","insertFromYank"]),Yt=new WeakMap;document.addEventListener("vb:emoji-extended",()=>{if(Mt)for(let e of document.querySelectorAll(mc))!Yt.has(e)||Um.has(e.tagName)||pc(e)});C(mc,Gm);new MutationObserver(e=>{for(let{target:t}of e){let i=t;i.hasAttribute("data-emoji")?Gm(i):iS(i)}}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-emoji"],subtree:!0})});var Jm={};T(Jm,{getRegisteredCommands:()=>Xm,initCommands:()=>bc,scanAutoDiscoverable:()=>Zm});function nn(e){if(nt.has(e)||e.hasAttribute("data-command-init"))return;e.setAttribute("data-command-init","");let t=e.getAttribute("data-command")||e.textContent.trim();if(!t)return;let i=e.getAttribute("data-command-group")||rS,s=e.getAttribute("data-command-icon")||null,n=e.getAttribute("data-shortcut")||null,r=null;n&&(r=Et(n,()=>e.click()));let a={element:e,label:t,group:i,icon:s,shortcut:n,unbind:r};nt.set(e,a),document.dispatchEvent(new CustomEvent("vb:command-registry-change",{detail:{action:"add",entry:a}}))}function gc(e){let t=nt.get(e);t&&(t.unbind?.(),nt.delete(e),e.removeAttribute("data-command-init"),document.dispatchEvent(new CustomEvent("vb:command-registry-change",{detail:{action:"remove",element:e}})))}function Xm(){let e=new Map;for(let t of nt.values()){if(t.element.hidden||t.element.closest("[hidden]"))continue;let i=e.get(t.group)||[];i.push(t),e.set(t.group,i)}return e}function bc(e=document){e.querySelectorAll(Ne).forEach(nn)}function Zm(){let e='footer, aside, dialog, [hidden], [aria-hidden="true"]',i=[];return document.querySelectorAll("nav a[href]").forEach(s=>{if(s.closest(e)||nt.has(s))return;let n=s.textContent.trim();!n||i.length>=50||i.push({element:s,label:n,group:"Navigation",icon:null,shortcut:null,auto:!0,action:null})}),document.querySelectorAll("h2[id], h3[id]").forEach(s=>{if(s.closest(e)||nt.has(s))return;let n=s.textContent.trim();!n||i.length>=50||i.push({element:s,label:`Jump to: ${n}`,group:"On This Page",icon:null,shortcut:null,auto:!0,action:()=>s.scrollIntoView({behavior:"smooth"})})}),i}var Ne,rS,nt,aS,Qm=v(()=>{We();Ne="[data-command], [commandfor]",rS="Page Actions",nt=new Map;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>bc()):bc();aS=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ne)&&nn(s),s.querySelectorAll(Ne).forEach(nn)}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;nt.has(s)&&gc(s),s.querySelectorAll(Ne).forEach(n=>{nt.has(n)&&gc(n)})}if(t.type==="attributes"&&t.target.nodeType===Node.ELEMENT_NODE){let i=t.target;i.matches(Ne)&&!nt.has(i)?nn(i):!i.matches(Ne)&&nt.has(i)&&gc(i)}}});aS.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-command","commandfor"]});window.__commandRegistry={getRegisteredCommands:Xm,scanAutoDiscoverable:Zm}});function Ac(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function ag(e){Jt=e}function N(e,t=""){let i=typeof e=="string"?e:e.source,s={replace:(n,r)=>{let a=typeof r=="string"?r:r.source;return a=a.replace(Z.caret,"$1"),i=i.replace(n,a),s},getRegex:()=>new RegExp(i,t)};return s}function pt(e,t){if(t){if(Z.escapeTest.test(e))return e.replace(Z.escapeReplace,ig)}else if(Z.escapeTestNoEncode.test(e))return e.replace(Z.escapeReplaceNoEncode,ig);return e}function sg(e){try{e=encodeURI(e).replace(Z.percentDecode,"%")}catch{return null}return e}function ng(e,t){let i=e.replace(Z.findPipe,(r,a,o)=>{let c=!1,l=a;for(;--l>=0&&o[l]==="\\";)c=!c;return c?"|":" |"}),s=i.split(Z.splitPipe),n=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(Z.slashPipe,"|");return s}function Ci(e,t,i){let s=e.length;if(s===0)return"";let n=0;for(;n<s;){let r=e.charAt(s-n-1);if(r===t&&!i)n++;else if(r!==t&&i)n++;else break}return e.slice(0,s-n)}function VS(e,t){if(e.indexOf(t[1])===-1)return-1;let i=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])i++;else if(e[s]===t[1]&&(i--,i<0))return s;return i>0?-2:-1}function US(e,t=0){let i=t,s="";for(let n of e)if(n===" "){let r=4-i%4;s+=" ".repeat(r),i+=r}else s+=n,i++;return s}function rg(e,t,i,s,n){let r=t.href,a=t.title||null,o=e[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:e[0].charAt(0)==="!"?"image":"link",raw:i,href:r,title:a,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,c}function WS(e,t,i){let s=e.match(i.other.indentCodeCompensation);if(s===null)return t;let n=s[1];return t.split(`
6
+ }`)}function Ow(e){for(let t of e)zt.set(t,(zt.get(t)??0)+1);rd()}function qw(e){for(let t of e){let i=(zt.get(t)??0)-1;i>0?zt.set(t,i):zt.delete(t)}rd()}function jw(e){let t=Ze.get(e),i=t?[...t.values()].flat():[];i.length===0?(CSS.highlights.delete(`hn-${e}`),Ze.delete(e)):CSS.highlights.set(`hn-${e}`,new Highlight(...i))}function ed(e,t){let i=new Set(t.keys());for(let[s,n]of Ze)n.has(e)&&i.add(s);for(let s of i){let n=t.get(s)??[],r=Ze.get(s);n.length?(r||Ze.set(s,r=new Map),r.set(e,n)):r?.delete(e),jw(s)}}function ta(e){return document.createTreeWalker(e,NodeFilter.SHOW_TEXT,t=>t.parentElement?.closest(".hn-margin-annotation")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT)}function us(e){let t=ta(e),i="";for(;t.nextNode();)i+=t.currentNode.textContent??"";return i}function id(e,t,i){let s=ta(e),n=0;for(;s.nextNode();){if(s.currentNode===t)return n+i;n+=(s.currentNode.textContent??"").length}return-1}function ds(e,t,i){let s=ta(e),n=0,r=null,a=0,o=null,c=0;for(;s.nextNode();){let l=s.currentNode,u=(l.textContent??"").length;if(!r&&n+u>t&&(r=l,a=t-n),n+u>=i){o=l,c=i-n;break}n+=u}if(!r||!o)return null;try{let l=document.createRange();return l.setStart(r,Math.min(a,(r.textContent??"").length)),l.setEnd(o,Math.min(c,(o.textContent??"").length)),l}catch{return null}}function ps(e){let t=hs.get(e);if(t&&!t.destroyed)return t;let i=new fs(e);return hs.set(e,i),i}function sd(e=document){e.querySelectorAll(Jr).forEach(t=>{t.hasAttribute("data-highlights-init")||ps(t)})}var Jr,Qu,Iw,Bw,hs,Rw,td,Fw,Ht,zt,Ze,fs,Hw,ea=v(()=>{mt();ut();Zu();Jr="[data-highlights]",Qu="highlights",Iw=["yellow","green","blue","pink"],Bw=typeof CSS<"u"&&"highlights"in CSS,hs=new WeakMap;Rw=/^[a-z0-9_-]+$/i,td=["solid","double","dotted","dashed","wavy"],Fw={annotation:"You highlighted",added:"Highlight added",removed:"Highlight removed",noteSaved:"Note saved"};Ht=null,zt=new Map,Ze=new Map;fs=class{#t;#e;#i;#n;#s=[];#o=[];#r=!Bw;#a;#l;#c=!1;#g=[];#f=new Map;constructor(t){this.#t=t,this.#n=t.hasAttribute("data-highlights-readonly");let i=t.dataset.highlights;this.#e=i&&i!==""?i:location.pathname;let s=t.dataset.highlightsColors,n=s?s.split(",").map(r=>r.trim()).filter(Qr):[...Iw];this.#i=[...new Set(n)],this.#r||Ow(this.#i),this.#b(),this.#n||(this.#a=this.#p.bind(this),this.#l=this.#y.bind(this),t.addEventListener("pointerup",this.#a),t.addEventListener("click",this.#l)),t.setAttribute("data-highlights-init",""),this.#E().then(()=>{this.#c||(this.#b(),this.#v())})}get colors(){return[...this.#i]}get destroyed(){return this.#c}get element(){return this.#t}getHighlights(){return this.#s.map(t=>({...t}))}getUnplaced(){return this.#o.map(t=>({...t}))}removeHighlight(t){let i=this.#s.findIndex(n=>n.id===t),s=this.#o.findIndex(n=>n.id===t);i<0&&s<0||(i>=0?this.#s.splice(i,1):this.#o.splice(s,1),this.#S(),this.#b(),this.#x("highlights:removed",{id:t}),G(ls(this.#t,"removed")))}clearAll(){this.#s=[],this.#o=[],this.#S(),this.#b()}exportHighlights(){return JSON.stringify({version:1,highlights:this.#s})}importHighlights(t){let i;try{i=typeof t=="string"?JSON.parse(t):t}catch{return{imported:0,rejected:0}}if(!i||!Array.isArray(i.highlights))return{imported:0,rejected:0};let s=this.#u(i.highlights);return this.#s=s,this.#o=[],this.#S(),this.#b(),{imported:s.length,rejected:i.highlights.length-s.length}}#u(t,i=us(this.#t).length){let s={textLength:i,colors:this.#i},n=new Set,r=[];for(let a of t){let o=Pw(a,s);!o||n.has(o.id)||(n.add(o.id),r.push(o))}return r}destroy(){this.#c||(this.#c=!0,this.#a&&this.#t.removeEventListener("pointerup",this.#a),this.#l&&this.#t.removeEventListener("click",this.#l),this.#r?this.#t.querySelectorAll("mark[data-hn-id]").forEach(t=>{let i=t.parentNode;for(;t.firstChild;)i.insertBefore(t.firstChild,t);i.removeChild(t),i.normalize()}):(ed(this,new Map),qw(this.#i)),this.#A(),this.#f.clear(),this.#t.removeAttribute("data-highlights-init"),hs.get(this.#t)===this&&hs.delete(this.#t))}#p(){requestAnimationFrame(()=>{if(this.#c)return;let t=window.getSelection();if(!t||t.isCollapsed||!t.toString().trim())return;let i=t.getRangeAt(0);this.#t.contains(i.commonAncestorContainer)&&this.#x("highlights:selected",{text:t.toString().trim(),rect:i.getBoundingClientRect()})})}#y(t){let i=t.target.closest?.(".hn-margin-annotation");if(i){let n=i.dataset.hnId,r=this.#s.find(a=>a.id===n);if(r){this.#x("highlights:clicked",{id:n,highlight:{...r}}),this.#x("highlights:request-note",{id:n,highlight:{...r},controller:this});return}}let s=t.target.closest?.("mark[data-hn-id]");if(s){let n=s.dataset.hnId,r=this.#s.find(a=>a.id===n);if(r){this.#x("highlights:clicked",{id:n,highlight:{...r}});return}}if(!this.#r){let n=this.#h(t.clientX,t.clientY);n&&this.#x("highlights:clicked",{id:n.id,highlight:{...n}})}}findHighlightRect(t){let i=this.#s.find(r=>r.id===t);if(!i)return null;let s=this.#d(i);if(!s)return null;let n=s.getClientRects();return n.length?n[0]:null}#d(t){return this.#f.get(t.id)??ds(this.#t,t.startOffset,t.endOffset)}#m(){this.#f.clear();for(let t of this.#s){let i=ds(this.#t,t.startOffset,t.endOffset);i&&this.#f.set(t.id,i)}}#h(t,i){for(let s of this.#s){let n=this.#f.get(s.id);if(!n)continue;let r=n.getClientRects();for(let a of r)if(t>=a.left&&t<=a.right&&i>=a.top&&i<=a.bottom)return s}return null}_createFromSelection(t){let i=window.getSelection();if(!i||i.isCollapsed)return;let s=i.getRangeAt(0);if(!this.#t.contains(s.commonAncestorContainer))return;let n=id(this.#t,s.startContainer,s.startOffset),r=id(this.#t,s.endContainer,s.endOffset);if(n<0||r<0||n>=r)return;let a=i.toString().trim(),o={id:nd(),startOffset:n,endOffset:r,text:a,...cs(us(this.#t),n,r),color:t,note:"",created:Date.now()};this.#s.push(o),this.#S(),this.#b(),i.removeAllRanges(),this.#x("highlights:added",{id:o.id,text:a,color:t,note:""}),G(ls(this.#t,"added"))}_changeColor(t,i){let s=this.#s.find(n=>n.id===t);s&&(s.color=i,this.#S(),this.#b())}_updateNote(t,i){let s=this.#s.find(n=>n.id===t);s&&(s.note=i,this.#S(),this.#N(),this.#x("highlights:note-changed",{id:t,note:i}),G(ls(this.#t,"noteSaved")))}async#E(){let t=await C.get(Qu,this.#e);if(!t||!Array.isArray(t.highlights)||this.#c)return;let i=Array.isArray(t.unplaced)?t.unplaced:[],s=this.#u([...t.highlights,...i],1/0),n=us(this.#t);if(i.length===0&&t.contentHash===Je(n)){this.#s=s;return}this.#s=[],this.#o=[];for(let r of s){let a=Xu(n,r);a?this.#s.push({...r,startOffset:a.start,endOffset:a.end,...cs(n,a.start,a.end)}):this.#o.push(r)}this.#S()}#v(){this.#o.length!==0&&(console.warn(`[highlights] ${this.#o.length} stored highlight(s) could not be found in the current text. They are kept in storage.`,this.#t),this.#x("highlights:unplaced",{highlights:this.getUnplaced()}))}#S(){let t={version:1,contentHash:Je(us(this.#t)),highlights:this.#s,...this.#o.length?{unplaced:this.#o}:{}};C.set(Qu,this.#e,t).catch(()=>{})}#b(){this.#r?(this.#w(),this.#m()):(this.#m(),this.#k()),this.#N()}#k(){let t=new Map;for(let i of this.#i)t.set(i,[]);for(let i of this.#s){let s=this.#f.get(i.id);s&&t.has(i.color)&&t.get(i.color).push(s)}ed(this,t)}#w(){this.#t.querySelectorAll("mark[data-hn-id]").forEach(i=>{let s=i.parentNode;for(;i.firstChild;)s.insertBefore(i.firstChild,i);s.removeChild(i)}),this.#t.normalize();let t=[...this.#s].sort((i,s)=>s.startOffset-i.startOffset);for(let i of t){let s=ds(this.#t,i.startOffset,i.endOffset);if(!s)continue;let n=document.createElement("mark");n.dataset.hnId=i.id,Qr(i.color)&&(n.dataset.hnColor=i.color,n.style.setProperty("--_hn-color",`var(--highlight-${i.color})`),n.style.setProperty("--_hn-ink",`var(--highlight-${i.color}-ink, var(--highlight-ink))`));try{s.surroundContents(n)}catch{let r=s.extractContents();n.appendChild(r),s.insertNode(n)}}}#A(){for(let t of this.#g)t.remove();this.#g=[]}#N(){if(this.#A(),this.#s.length===0)return;getComputedStyle(this.#t).position==="static"&&(this.#t.style.position="relative");let i=this.#t.getBoundingClientRect(),s=ls(this.#t,"annotation");for(let n of this.#s){let r=this.#f.get(n.id);if(!r)continue;let a=r.getClientRects();if(a.length===0)continue;let o=a[0].top-i.top,c=document.createElement("span");if(c.className="hn-margin-annotation",c.dataset.hnId=n.id,c.setAttribute("aria-hidden","true"),c.style.insetBlockStart=`${o}px`,n.note){let l=document.createElement("span");l.className="hn-note-indicator",l.textContent="*",c.append(l,` ${s}`),c.classList.add("hn-has-note")}else c.textContent=s;this.#t.appendChild(c),this.#g.push(c)}}#x(t,i={}){this.#t.dispatchEvent(new CustomEvent(t,{detail:i,bubbles:!0}))}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>sd()):sd();Hw=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Jr)&&ps(s),s.querySelectorAll(Jr).forEach(n=>{n.hasAttribute("data-highlights-init")||ps(n)})}});Hw.observe(document.documentElement,{childList:!0,subtree:!0})});var ra={};x(ra,{currentHash:()=>na,initPageWatch:()=>sa,normalisePath:()=>fd,pageKey:()=>me,readWatch:()=>ti,removeWatch:()=>pd,writeWatch:()=>ei});function dd(){return typeof window<"u"&&window.vbPageWatch?.serverSync===!0?!0:document.querySelector('meta[name="vb-page-watch-server"]')?.getAttribute("content")==="true"}async function zw(e){if(!dd())return null;try{let t=new J("notify"),i={url:e.url,type:"page-watch",notify:["panel"]},s=await t.post("/subscribe",i);return typeof s?.id=="string"?s.id:null}catch(t){let i=t instanceof K?`${t.status}`:String(t);return console.warn("[page-watch] server subscribe failed; client-only watch in effect.",i),null}}async function hd(e){if(!(!e||!dd()))try{await new J("notify").delete(`/subscribe/${encodeURIComponent(e)}`)}catch(t){let i=t instanceof K?`${t.status}`:String(t);console.warn("[page-watch] server unsubscribe failed; local state already cleared.",i)}}function Vw(){return document.querySelector("main")||document.querySelector("article")||document.body}function fd(e){let t=(e||"/").replace(/\/index\.html?$/i,"/");return t.length>1&&(t=t.replace(/\/+$/,"")),t||"/"}function me(){return fd(location.pathname)}async function Uw(){let e=me(),t=location.pathname||"/",i=e==="/"?"":e,s=new Set([t,`${i}/`,`${i}/index.html`]);if(s.delete(e),await C.get(Ct,e)){for(let n of s)await C.remove(Ct,n);return}for(let n of s){let r=await C.get(Ct,n);if(r){await C.set(Ct,e,r),await C.remove(Ct,n);return}}}function na(){let e=Vw();return e?Je(e.textContent||""):""}function Ww(){return document.title||me()}async function ti(){return od??=Uw().catch(()=>{}),await od,await C.get(Ct,me())}async function ei(e){await C.set(Ct,me(),e)}async function pd(){await C.remove(Ct,me())}function ms(e,t,i){return e.getAttribute(`data-label-${t}`)??i}function gs(e,t){e.setAttribute("aria-pressed",t?"true":"false"),e.dataset.watching="",t||delete e.dataset.watching;let i=e.querySelector("icon-wc");if(i&&i.setAttribute("name",t?"bookmark-check":"bookmark"),e.hasAttribute("data-watch-label-locked"))return;let s=[...e.childNodes].find(n=>n.nodeType===Node.TEXT_NODE&&(n.textContent||"").trim());s&&(s.textContent=t?ms(e,"watching","Watching"):ms(e,"watch","Watch for updates")),e.setAttribute("title",t?ms(e,"stop","Stop watching this page"):ms(e,"action","Watch this page for content updates"))}async function Gw(){let e=!!await ti();for(let t of document.querySelectorAll(`${Qe}[data-watch-page-init]`))gs(t,e)}async function ia(e){if(e.hasAttribute("data-watch-page-init"))return;e.setAttribute("data-watch-page-init",""),e.setAttribute("type",e.getAttribute("type")||"button");let t=await ti();gs(e,!!t),e.addEventListener("click",async i=>{i.preventDefault();let s=await ti();if(s)await pd(),gs(e,!1),e.dispatchEvent(new CustomEvent("page-watch:remove",{bubbles:!0,composed:!0,detail:{url:s.url,subscriptionId:s.subscriptionId}})),hd(s.subscriptionId);else{let n={url:location.pathname||"/",title:Ww(),contentHash:na(),watchedAt:new Date().toISOString(),lastChecked:new Date().toISOString(),lastChanged:null,subscriptionId:null};await ei(n),gs(e,!0),e.dispatchEvent(new CustomEvent("page-watch:add",{bubbles:!0,composed:!0,detail:{entry:n}}));let r=await zw(n);r&&await ei({...n,subscriptionId:r})}})}async function Kw(){let e=await ti();if(!e)return;let t=na(),i=new Date().toISOString(),s=e.contentHash,n={...e,lastChecked:i};if(t&&t!==s){n.contentHash=t,n.lastChanged=i,await ei(n);let r={id:`page-watch:${e.url}:${t}`,type:"watch",title:`Updated: ${e.title}`,body:"Content changed since your last visit.",url:e.url,date:i,read:!1,dismissed:!1,priority:"normal"};document.querySelector("notification-wc")&&!customElements.get("notification-wc")&&await customElements.whenDefined("notification-wc"),document.dispatchEvent(new CustomEvent("notification-wc:new",{bubbles:!0,composed:!0,detail:{notification:r}}))}else await ei(n)}function sa(e=document){for(let t of e.querySelectorAll(Qe))ia(t);Kw()}function cd(e){if(Gw(),e.type!=="page-watch:remove")return;if(!(e.target instanceof Element&&e.target.matches(Qe))){let i=e.detail;hd(i?.subscriptionId??null)}}var Qe,Ct,od,ld,ud,aa=v(()=>{mt();pe();ea();Qe="[data-watch-page]",Ct="watches";od=null;ld=Symbol.for("vb.page-watch-init"),ud=globalThis;ud[ld]||(ud[ld]=!0,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>sa()):sa(),document.addEventListener("page-watch:add",cd),document.addEventListener("page-watch:remove",cd),new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.(Qe)&&ia(n),n.querySelectorAll?.(Qe).forEach(r=>ia(r))}}).observe(document.documentElement,{childList:!0,subtree:!0}))});var Bd={};x(Bd,{initAll:()=>xa});function Sa(e){e.hasAttribute("data-back-to-top-init")||(e.setAttribute("data-back-to-top-init",""),e.toggleAttribute("data-state-visible",!1),e.addEventListener("click",$d),ks.add(e),E0(),Id())}function Md(e){e.hasAttribute("data-back-to-top-init")&&(e.removeAttribute("data-back-to-top-init"),e.removeEventListener("click",$d),ks.delete(e),ks.size===0&&Vt&&(window.removeEventListener("scroll",Vt),Vt=null))}function _d(){if(ye&&ye.isConnected)return ye;let e=document.documentElement,t=document.body;if(t&&t.scrollHeight>e.clientHeight+1&&t){let s=getComputedStyle(t);if(/auto|scroll/.test(s.overflowY))return ye=t,t}return ye=document.scrollingElement||e,ye}function $d(e){let t=e.currentTarget.getAttribute("href")||"";if(t===""||t==="#"||t==="#top")e.preventDefault();else return;_d().scrollTo({top:0,left:0,behavior:A0.matches?"auto":"smooth"})}function E0(){Vt||(Vt=()=>{ka||(ka=!0,requestAnimationFrame(()=>{Id(),ka=!1}))},window.addEventListener("scroll",Vt,{passive:!0}),document.addEventListener("scroll",Vt,{capture:!0,passive:!0}))}function Id(){let t=_d().scrollTop||window.scrollY,s=window.innerHeight*1,n=t>s,r=t<200;for(let a of ks)a.toggleAttribute("data-state-visible",n&&!r)}function xa(e=document){e.querySelectorAll(ai).forEach(Sa)}var ai,A0,ks,Vt,ka,ye,k0,Ca=v(()=>{ai="[data-back-to-top]",A0=matchMedia("(prefers-reduced-motion: reduce)"),ks=new Set,Vt=null,ka=!1;ye=null;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>xa(),{once:!0}):xa();k0=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(ai)&&Sa(s),s.querySelectorAll(ai).forEach(n=>Sa(n))}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.(ai)&&Md(s),s.querySelectorAll?.(ai).forEach(n=>Md(n))}}});k0.observe(document.documentElement,{childList:!0,subtree:!0})});function Da(e){return wt(e.getAttribute("data-locale")||F(e))}function C0(e){let t={};switch(e.getAttribute("data-format-number")){case"currency":t.style="currency",t.currency=e.getAttribute("data-currency")||"USD";break;case"percent":t.style="percent";break;case"compact":t.notation="compact";break;default:break}let i=parseInt(e.getAttribute("data-fraction-digits")??"",10);return Number.isInteger(i)&&i>=0&&i<=20&&(t.minimumFractionDigits=i,t.maximumFractionDigits=i),t}function Ss(e,t={}){try{return new Intl.NumberFormat(Da(e),{...C0(e),...t})}catch{return null}}var xs=v(()=>{Q()});var Fd={};x(Fd,{initFormatNumber:()=>Na});function Na(e=document){e.querySelectorAll(ve).forEach(Cs)}function Cs(e){oi.has(e)||(oi.add(e),e.setAttribute("data-format-number-init",""),Ts(e))}function Ts(e){let t=e.getAttribute("value");if(t==null||t.trim()==="")return;let i=Number(t);if(isNaN(i))return;let s=Ss(e);s&&(e.textContent=s.format(i))}var ve,T0,oi,L0,Ma=v(()=>{xs();ve="data[data-format-number]",T0=["value","data-format-number","data-currency","data-fraction-digits","data-locale","lang"],oi=new WeakSet;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Na()):Na();L0=new MutationObserver(e=>{for(let t of e){if(t.type==="attributes"){let i=t.target;t.attributeName==="lang"?(i.matches(ve)&&oi.has(i)&&Ts(i),i.querySelectorAll(ve).forEach(s=>{oi.has(s)&&Ts(s)})):i.matches(ve)&&(oi.has(i)?Ts(i):i.isConnected&&Cs(i));continue}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(ve)&&Cs(s),s.querySelectorAll(ve).forEach(Cs)}}});L0.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:T0})});var zd={};x(zd,{initFormatDate:()=>Ba});function F0(e){return/^\d{4}$/.test(e)?"year":/^\d{4}-\d{2}$/.test(e)?"month":/^\d{4}-\d{2}-\d{2}$/.test(e)?"day":null}function Ba(e=document){e.querySelectorAll(Tt).forEach(Ds)}function P0(e){let t=e.trim().match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return new Date(e);let[i,s,n]=[Number(t[1]),Number(t[2])-1,Number(t[3])],r=new Date(Date.UTC(i,s,n));return r.getUTCMonth()===s&&r.getUTCDate()===n?r:new Date(NaN)}function Ds(e){li.has(e)||(li.add(e),Ia.has(e)||Ia.set(e,{text:e.textContent.trim(),authoredTitle:e.hasAttribute("title")&&!e.hasAttribute(Pd)}),e.setAttribute(Pd,""),qd(e))}function qd(e){Ra(e);let t=e.getAttribute("datetime")?.trim();if(!t||!/^\d{4}/.test(t))return;let i=P0(t);if(isNaN(i.getTime()))return;let s=F0(t),n=e.getAttribute("data-format-date")||"medium",r=wt(e.getAttribute("data-locale")||F(e)),a=Ia.get(e);n==="relative"?(e.textContent=jd(i,r),a?.authoredTitle||e.setAttribute("title",Od(i,"medium",s?null:"short",e,r,s)),Hd(e,i,r)):(!a?.authoredTitle&&a?.text&&e.setAttribute("title",a.text),e.textContent=Od(i,n,e.getAttribute("data-format-time"),e,r,s))}function Od(e,t,i,s,n,r=null){let a=t||"medium",o;r==="year"?o={year:"numeric"}:r==="month"?o={year:"numeric",month:N0[a]??"short"}:(o={dateStyle:a},i&&!r&&(o.timeStyle=i));let c=r?"UTC":s.getAttribute("data-time-zone")||void 0;try{return new Intl.DateTimeFormat(n,{...o,timeZone:c}).format(e)}catch{try{return new Intl.DateTimeFormat(n,o).format(e)}catch{return s.textContent??""}}}function jd(e,t){let i=Math.round((e.getTime()-Date.now())/1e3),s=Math.abs(i);for(let n=0;n<ci.length;n++){let{seconds:r,max:a}=ci[n];if(s<r)continue;let{unit:o}=ci[n],c=Math.round(i/r);Math.abs(c)>=a&&n>0&&(o=ci[n-1].unit,c=Math.sign(i)*Math.max(1,Math.round(s/ci[n-1].seconds)));try{return new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(c,o)}catch{let l=Math.abs(c),u=l===1?o:`${o}s`;return c<0?`${l} ${u} ago`:`in ${l} ${u}`}}try{return new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(0,"second")}catch{return"just now"}}function Hd(e,t,i){Ra(e);let s=Math.abs(Date.now()-t.getTime()),n=36e5,r=864e5,a;s<n?a=6e4:s<r?a=3e5:a=36e5;let o=setTimeout(()=>{Ls.delete(e),e.textContent=jd(t,i),Hd(e,t,i)},a);Ls.set(e,o)}function Ra(e){let t=Ls.get(e);t!==void 0&&(clearTimeout(t),Ls.delete(e))}function _a(e){Ra(e),li.delete(e)}function $a(e){li.has(e)?qd(e):e.isConnected&&Ds(e)}var Tt,D0,Pd,Ls,li,Ia,N0,M0,_0,$0,I0,B0,R0,ci,O0,Fa=v(()=>{Q();Tt="time[data-format-date]",D0=["datetime","data-format-date","data-format-time","data-time-zone","data-locale","lang"],Pd="data-format-date-init",Ls=new Map,li=new WeakSet,Ia=new WeakMap,N0={short:"numeric",medium:"short",long:"long",full:"long"},M0=60,_0=3600,$0=86400,I0=604800,B0=2592e3,R0=31536e3,ci=[{unit:"year",seconds:R0,max:1/0},{unit:"month",seconds:B0,max:12},{unit:"week",seconds:I0,max:5},{unit:"day",seconds:$0,max:7},{unit:"hour",seconds:_0,max:24},{unit:"minute",seconds:M0,max:60},{unit:"second",seconds:1,max:60}];document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Ba()):Ba();O0=new MutationObserver(e=>{for(let t of e){if(t.type==="attributes"){let i=t.target;t.attributeName==="lang"?(i.matches(Tt)&&$a(i),i.querySelectorAll(Tt).forEach($a)):i.matches(Tt)?$a(i):t.attributeName==="data-format-date"&&li.has(i)&&_a(i);continue}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.isConnected||(s.matches(Tt)&&_a(s),s.querySelectorAll(Tt).forEach(_a))}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.isConnected&&(s.matches(Tt)&&Ds(s),s.querySelectorAll(Tt).forEach(Ds))}}});O0.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:D0})});var Wd={};x(Wd,{formatByteSize:()=>Ud,initFormatBytes:()=>Pa});function Pa(e=document){e.querySelectorAll(we).forEach(Ns)}function Ns(e){ui.has(e)||(ui.add(e),e.setAttribute("data-format-bytes-init",""),Ms(e))}function H0(e){let t=parseInt(e??"0",10);return Number.isFinite(t)?Math.min(20,Math.max(0,t)):0}function Ud(e,{precision:t=0,decimal:i=!1,locale:s}={}){let n=i?1e3:1024,r=Math.abs(e),a=r<1?0:Math.min(Math.floor(Math.log(r)/Math.log(n)),Vd.length-1),o=e/Math.pow(n,a);try{return new Intl.NumberFormat(s,{style:"unit",unit:Vd[a],unitDisplay:a===0?"long":"short",minimumFractionDigits:t,maximumFractionDigits:t}).format(o)}catch{return`${o.toFixed(t)} ${j0[a]}`}}function Ms(e){let t=e.getAttribute("value");if(t==null||t.trim()==="")return;let i=Number(t);Number.isFinite(i)&&(e.textContent=Ud(i,{precision:H0(e.getAttribute("data-format-bytes")),decimal:e.getAttribute("data-unit")==="decimal",locale:Da(e)}))}var we,q0,Vd,j0,ui,z0,Oa=v(()=>{xs();we="data[data-format-bytes]",q0=["value","data-format-bytes","data-unit","data-locale","lang"],Vd=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"],j0=["B","kB","MB","GB","TB","PB"],ui=new WeakSet;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Pa()):Pa();z0=new MutationObserver(e=>{for(let t of e){if(t.type==="attributes"){let i=t.target;t.attributeName==="lang"?(i.matches(we)&&ui.has(i)&&Ms(i),i.querySelectorAll(we).forEach(s=>{ui.has(s)&&Ms(s)})):i.matches(we)&&(ui.has(i)?Ms(i):i.isConnected&&Ns(i));continue}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(we)&&Ns(s),s.querySelectorAll(we).forEach(Ns)}}});z0.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:q0})});function V0(e){for(let[t,i]of _s)e.querySelectorAll(t).forEach(i)}function U0(e){if(e.nodeType!==Node.ELEMENT_NODE)return;let t=e;for(let[i,s]of _s)t.matches(i)&&s(t),t.querySelectorAll(i).forEach(s)}function W0(){qa||(qa=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes)U0(i)}),qa.observe(document.documentElement,{childList:!0,subtree:!0}))}function G0(){$s||($s=!0,V0(document))}function S(e,t){_s.set(e,t),W0(),$s||document.readyState!=="loading"?($s=!0,document.querySelectorAll(e).forEach(t)):_s.size===1&&document.addEventListener("DOMContentLoaded",G0)}function P(e,t){let i=ja.get(e);i||ja.set(e,i=new Set),i.add(t),!Gd&&(Gd=!0,document.addEventListener("reset",s=>{let n=s.target;n instanceof HTMLFormElement&&setTimeout(()=>{if(s.defaultPrevented)return;let r=new Set,a=[...n.querySelectorAll("*"),...Array.from(n.elements)];for(let o of a){if(r.has(o))continue;r.add(o);let c=ja.get(o);if(c)for(let l of c)l(o)}},0)},!0))}var _s,qa,$s,ja,Gd,I=v(()=>{_s=new Map,qa=null,$s=!1;ja=new WeakMap,Gd=!1});var Xd={};x(Xd,{concealSpoiler:()=>Is,initSpoilers:()=>X0,revealSpoiler:()=>Yd});function Y0(e){return K0.has(e.tagName)||e.localName.includes("-")}function X0(e=document){e.querySelectorAll(Ha).forEach(za)}function Z0(e){return e.getAttribute("data-spoiler-label")||R(e,"spoiler-reveal","Reveal spoiler")}function za(e){if(Kd.has(e))return;if(Kd.add(e),e.getAttribute("data-spoiler")||e.setAttribute("data-spoiler","blur"),e.querySelector(":scope > [data-spoiler-content]")){e.setAttribute("data-spoiler-init","");return}(e.tagName==="DIV"||e.tagName==="SPAN")&&!e.hasAttribute("role")&&!e.hasAttribute("aria-label")&&!e.hasAttribute("aria-labelledby")&&(e.setAttribute("role","group"),e.setAttribute("aria-label",R(e,"spoiler","Spoiler")));let t=document.createElement(Y0(e)?"div":"span");for(t.setAttribute("data-spoiler-content",""),t.setAttribute("inert",""),t.tabIndex=-1;e.firstChild;)t.appendChild(e.firstChild);e.appendChild(t);let i=document.createElement("button");i.type="button",i.setAttribute("data-spoiler-trigger",""),i.setAttribute("aria-expanded","false");let s=document.createElement("span");s.setAttribute("data-spoiler-label",""),s.textContent=Z0(e),i.appendChild(s),e.appendChild(i),e.setAttribute("data-spoiler-init","")}function Yd(e){if(e.hasAttribute("data-spoiler-visible"))return;let t=e.getAttribute("data-spoiler-group");t&&document.querySelectorAll(`[data-spoiler-group="${CSS.escape(t)}"][data-spoiler-visible]`).forEach(r=>{r!==e&&Is(r,{restoreFocus:!1})});let i=e.querySelector(":scope > [data-spoiler-content]"),s=e.querySelector(":scope > [data-spoiler-trigger]"),n=!!s&&(document.activeElement===s||s.contains(document.activeElement));if(i&&i.removeAttribute("inert"),s&&(s.setAttribute("aria-expanded","true"),s.hidden=!0),e.setAttribute("data-spoiler-visible",""),!e.hasAttribute("data-spoiler-persist")&&!e.querySelector(":scope > [data-spoiler-hide]")){let r=document.createElement("button");r.type="button",r.setAttribute("data-spoiler-hide",""),r.textContent=R(e,"spoiler-hide","Hide spoiler"),e.appendChild(r)}n&&i&&i.focus({preventScroll:!0}),G(R(e,"spoiler-revealed","Spoiler revealed")),e.dispatchEvent(new CustomEvent("spoiler:toggle",{bubbles:!0,detail:{visible:!0}}))}function Is(e,{restoreFocus:t=!0}={}){if(e.hasAttribute("data-spoiler-persist")||!e.hasAttribute("data-spoiler-visible"))return;let i=e.querySelector(":scope > [data-spoiler-content]"),s=e.querySelector(":scope > [data-spoiler-trigger]"),n=e.querySelector(":scope > [data-spoiler-hide]"),r=e.contains(document.activeElement);i&&i.setAttribute("inert",""),s&&(s.setAttribute("aria-expanded","false"),s.hidden=!1,t&&r&&s.focus()),n&&n.remove(),e.removeAttribute("data-spoiler-visible"),e.dispatchEvent(new CustomEvent("spoiler:toggle",{bubbles:!0,detail:{visible:!1}}))}function J0(e){let i=e.target?.closest?.("[data-spoiler-trigger], [data-spoiler-hide]");if(!i)return;let s=i.parentElement;s?.matches(Ha)&&(za(s),i.hasAttribute("data-spoiler-trigger")?Yd(s):Is(s))}function Q0(e){if(e.key!=="Escape")return;let t=e.target?.closest?.("[data-spoiler][data-spoiler-visible]");!t||t.hasAttribute("data-spoiler-persist")||(e.stopPropagation(),Is(t))}var Ha,Kd,K0,Va=v(()=>{I();ut();Ha="[data-spoiler]",Kd=new WeakSet,K0=new Set(["DIV","SECTION","ARTICLE","ASIDE","MAIN","HEADER","FOOTER","NAV","LI","DD","TD","TH","BLOCKQUOTE","FIGURE","FIGCAPTION","DETAILS","DIALOG","FORM","FIELDSET","ADDRESS"]);typeof document<"u"&&!document.__vbSpoilerDelegated&&(document.__vbSpoilerDelegated=!0,document.addEventListener("click",J0),document.addEventListener("keydown",Q0));S(Ha,za)});var th={};x(th,{initSplitters:()=>Wa,keyToDirection:()=>Qd,pointerToPercent:()=>Jd});function Wa(e=document){e.querySelectorAll(Ua).forEach(Ga)}function iA(e,t,i){return Math.min(i,Math.max(t,e))}function Jd(e,t,{vertical:i,rtl:s}){return i?(e.clientY-t.top)/t.height*100:(s?t.right-e.clientX:e.clientX-t.left)/t.width*100}function Qd(e,{vertical:t,rtl:i}){return t?e==="ArrowUp"?-1:e==="ArrowDown"?1:0:e==="ArrowLeft"?i?1:-1:e==="ArrowRight"?i?-1:1:0}function Ga(e){if(Zd.has(e))return;for(let f of e.querySelectorAll(":scope > .split-divider"))f.remove();let t=[...e.children];if(t.length<2)return;Zd.add(e),e.setAttribute("data-splitter-init","");let i=t[0],s=t[1],n=e.getAttribute("data-splitter")==="vertical",r=Number(i.dataset.min)||10,a=Number(i.dataset.max)||90,o=()=>getComputedStyle(e).direction==="rtl";i.id||(i.id=`vb-splitter-panel-${++eA}`);let c=document.createElement("div");c.className="split-divider",c.setAttribute("role","separator"),c.setAttribute("aria-orientation",n?"horizontal":"vertical"),c.setAttribute("aria-valuemin",String(r)),c.setAttribute("aria-valuemax",String(a)),c.setAttribute("aria-label",e.getAttribute("data-label-resize")||tA),c.setAttribute("aria-controls",i.id),c.setAttribute("tabindex","0"),e.insertBefore(c,s),i.style.flexGrow="0",i.style.flexShrink="0",i.style.overflow="auto",s.style.flexGrow="1",s.style.overflow="auto";let l=!1,u=50;function d(f,{silent:p=!1}={}){u=iA(f,r,a),i.style.flexBasis=`${u}%`,c.setAttribute("aria-valuenow",String(Math.round(u))),!p&&e.dispatchEvent(new CustomEvent("splitter:resize",{detail:{position:u},bubbles:!0}))}d(50,{silent:!0});function h(){l&&(l=!1,e.style.userSelect="")}c.addEventListener("pointerdown",f=>{f.preventDefault(),l=!0,c.setPointerCapture(f.pointerId),e.style.userSelect="none"}),c.addEventListener("pointermove",f=>{if(!l)return;let p=e.getBoundingClientRect();d(Jd(f,p,{vertical:n,rtl:o()}))}),c.addEventListener("pointerup",f=>{c.hasPointerCapture(f.pointerId)&&c.releasePointerCapture(f.pointerId),h()}),c.addEventListener("pointercancel",h),c.addEventListener("lostpointercapture",h),c.addEventListener("keydown",f=>{let p=f.shiftKey?10:1,m=Qd(f.key,{vertical:n,rtl:o()});m!==0?(f.preventDefault(),d(u+m*p)):f.key==="Home"?(f.preventDefault(),d(r)):f.key==="End"&&(f.preventDefault(),d(a))})}var Ua,tA,Zd,eA,sA,Ka=v(()=>{Ua="[data-splitter]",tA="Resize panels",Zd=new WeakSet,eA=0;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Wa()):Wa();sA=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ua)&&Ga(s),s.querySelectorAll(Ua).forEach(Ga)}});sA.observe(document.documentElement,{childList:!0,subtree:!0})});var sh={};x(sh,{initSwitches:()=>nA});function ih(e){e.hasAttribute("role")||e.setAttribute("role","switch"),e.setAttribute("data-switch-init","")}function nA(e=document){e.querySelectorAll(eh).forEach(t=>ih(t))}var eh,Ya=v(()=>{I();eh='input[type="checkbox"][data-switch]';S(eh,ih)});var dh={};x(dh,{initTextareaCounts:()=>uA});function ch(e){return e.closest("[lang]")?.getAttribute("lang")||navigator.language}function lh(e,t){try{return new Intl.PluralRules(e).select(t)}catch{return"other"}}function Xa(e,t){try{return new Intl.NumberFormat(e).format(t)}catch{return String(t)}}function cA(e,t,i,s){let n=t?"words":"characters",r=ch(e),a=lh(r,s);return(e.getAttribute(`data-label-limit-${a}`)??e.getAttribute("data-label-limit")??oA[n][a==="one"?"one":"other"]).replaceAll("{count}",Xa(r,i)).replaceAll("{max}",Xa(r,s))}function lA(e,t,i){let s=t?"words":"characters",n=ch(e),r=lh(n,i);return(e.getAttribute(`data-label-${s}-${r}`)??e.getAttribute(`data-label-${s}`)??aA[s][r==="one"?"one":"other"]).replaceAll("{count}",Xa(n,i))}function uh(e){if(rh.has(e))return;let t=e.hasAttribute("data-count-init");e.setAttribute("data-count-init","");let i=e.dataset.count==="words",s=i?parseInt(e.dataset.maxwords??"0",10)||0:e.maxLength>0?e.maxLength:0,n=e.closest("form-field"),r=null,a=null;if(t){let h=n?n.querySelector(":scope > output.textarea-counter"):e.nextElementSibling;if(h?.matches("output.textarea-counter")&&!ah.has(h)){r=h;let f=r.nextElementSibling;f?.matches('span.visually-hidden[aria-live="polite"]')&&(a=f);let p=r.id,m=(e.getAttribute("aria-describedby")??"").split(/\s+/).filter(g=>g&&g!==p);m.length?e.setAttribute("aria-describedby",m.join(" ")):e.removeAttribute("aria-describedby")}}r||(r=document.createElement("output"),r.className="textarea-counter",r.setAttribute("aria-live","off"),n?n.append(r):e.insertAdjacentElement("afterend",r)),r.id=`${e.id||`textarea-${++nh}`}-count`,document.getElementById(r.id)!==r&&(r.id=`textarea-${++nh}-count`),ah.add(r),a||(a=document.createElement("span"),a.className="visually-hidden",a.setAttribute("aria-live","polite"),a.setAttribute("aria-atomic","true"),r.insertAdjacentElement("afterend",a));let o=a,c=r,l=(e.getAttribute("aria-describedby")??"").split(/\s+/).filter(Boolean);l.includes(r.id)||e.setAttribute("aria-describedby",[...l,r.id].join(" "));let u;function d(){let h=e.value,f=i?h.trim()?h.trim().split(/\s+/).length:0:h.length;if(s>0){c.textContent=cA(e,i,f,s);let p=f/s;c.dataset.state=p>=1?"error":p>=.8?"warning":""}else c.textContent=lA(e,i,f),c.dataset.state="";if(clearTimeout(u),c.dataset.state){let p=c.textContent;u=setTimeout(()=>{o.textContent=p},rA)}else o.textContent=""}rh.set(e,d),e.addEventListener("input",d),P(e,d),d()}function uA(e=document){e.querySelectorAll(oh).forEach(uh)}var oh,rA,nh,aA,oA,rh,ah,Za=v(()=>{I();oh="textarea[data-count]",rA=700,nh=0,aA={characters:{one:"{count} character",other:"{count} characters"},words:{one:"{count} word",other:"{count} words"}},oA={characters:{one:"{count} of {max} character",other:"{count} of {max} characters"},words:{one:"{count} of {max} word",other:"{count} of {max} words"}};rh=new WeakMap,ah=new WeakSet;S(oh,uh)});var mh={};x(mh,{initTextareaGrow:()=>hA});function ph(e){if(hh.has(e))return;hh.add(e);let t=parseInt(e.dataset.maxRows??"0",10)||0;if(e.hasAttribute("rows")&&e.style.setProperty("--grow-rows",String(e.rows)),t>0&&e.style.setProperty("--grow-max-rows",String(t)),dA){e.setAttribute("data-grow-init","");return}e.setAttribute("data-grow-init","fallback");function i(){e.style.blockSize="auto";let s=getComputedStyle(e),n=parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),r=e.scrollHeight+n;if(t>0){let a=parseFloat(s.lineHeight)||parseFloat(s.fontSize)*1.2,o=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),c=a*t+o+n;r>c?(r=c,e.style.overflowY="auto"):e.style.overflowY="hidden"}e.style.blockSize=r+"px"}e.addEventListener("input",i),e.addEventListener("change",i),P(e,i),i()}function hA(e=document){e.querySelectorAll(fh).forEach(ph)}var fh,dA,hh,Ja=v(()=>{I();fh="textarea[data-grow]",dA=CSS.supports("field-sizing","content"),hh=new WeakSet;S(fh,ph)});function gA(e){return e.localName.includes("-")?!!customElements.get(e.localName)?.formAssociated:!1}function Ut(e){let t=e.name;return typeof t=="string"&&t||e.getAttribute("name")||""}function Bs(e){if(e instanceof HTMLButtonElement||e instanceof HTMLFieldSetElement||e instanceof HTMLOutputElement)return[];if(e instanceof HTMLInputElement)return fA.has(e.type)?[]:e.type==="radio"||e.type==="checkbox"?e.checked?[e.value||"on"]:[]:e.type==="file"?e.files?[...e.files].map(i=>i.name):[]:e.value===""?[]:[e.value];if(e instanceof HTMLSelectElement)return e.multiple?[...e.selectedOptions].map(i=>i.value):e.value===""?[]:[e.value];let t=e.value;return Array.isArray(t)?t.map(String).filter(i=>i!==""):t==null||t===""?[]:[String(t)]}function Qa(e,t){return e instanceof HTMLFormElement?Array.from(e.elements).filter(i=>Ut(i)===t):[...e.querySelectorAll(`[name="${CSS.escape(t)}"]`)]}function bA(e,t){return Qa(e,t).flatMap(Bs)}function yA(e){let t=e.trim(),i=t.search(/[=:]/);if(i===-1){let a=t.startsWith("!");return{name:(a?t.slice(1):t).trim(),value:null,negate:a}}let s=t.slice(0,i),n=t.slice(i+1),r=!1;return s.startsWith("!")&&(r=!0,s=s.slice(1)),s.endsWith("!")?(r=!r,s=s.slice(0,-1)):n.startsWith("!")&&(r=!r,n=n.slice(1)),{name:s.trim(),value:n.trim(),negate:r}}function gh(e){return String(e||"").split("||").map(t=>t.split("&&").map(yA).filter(i=>i.name)).filter(t=>t.length)}function bh(e){return new Set(gh(e).flat().map(t=>t.name))}function vA(e,t){let i=bA(t,e.name),s=e.value===null?i.length>0:i.includes(e.value);return e.negate?!s:s}function Rs(e,t){return gh(e).some(i=>i.every(s=>vA(s,t)))}function wA(e){return[e,...e.querySelectorAll("*")].filter(i=>i.matches(mA)||gA(i))}function Fs(e,t){for(let i of wA(e))if(t){if(!i.hasAttribute(di)||i.closest(pA))continue;i.removeAttribute("disabled"),i.removeAttribute(di)}else{if(i.hasAttribute("disabled"))continue;i.setAttribute("disabled",""),i.setAttribute(di,"")}}var fA,di,pA,mA,to=v(()=>{fA=new Set(["button","submit","reset","image"]),di="data-conditional-disabled",pA="[data-show-when][hidden], [data-hide-when][hidden], [data-wizard-step][data-wizard-hidden]",mA="input, select, textarea, button, fieldset"});var kh={};x(kh,{initConditionalFields:()=>EA});function wh(e){return e.closest("form")||document}function Ah(e){return e.hasAttribute("data-show-when")?{condition:e.dataset.showWhen||"",invert:!1}:{condition:e.dataset.hideWhen||"",invert:!0}}function io(e){let{condition:t,invert:i}=Ah(e),s=Rs(t,wh(e)),n=i?!s:s;n?(e.removeAttribute("hidden"),e.removeAttribute("inert")):(e.setAttribute("hidden",""),e.setAttribute("inert","")),Fs(e,n)}function so(e,t){for(let i of document.querySelectorAll(no)){let s=i;!eo.has(s)||wh(s)!==e||t&&!bh(Ah(s).condition).has(t)||io(s)}}function vh(e){let t=e.target;if(!(t instanceof Element))return;let i=Ut(t);if(!i)return;let s=t.form||t.closest("form");so(s||document,i),s&&so(document,i)}function AA(){yh||(yh=!0,document.addEventListener("input",vh,!0),document.addEventListener("change",vh,!0),document.addEventListener("reset",e=>{setTimeout(()=>{e.defaultPrevented||so(document)},0)},!0))}function Eh(e){let t=e;eo.has(t)||(eo.add(t),t.setAttribute("data-conditional-init",""),AA(),io(t),P(t,io))}function EA(e=document){e.querySelectorAll(no).forEach(Eh)}var no,eo,yh,ro=v(()=>{I();to();no="[data-show-when], [data-hide-when]",eo=new WeakSet,yh=!1;S(no,Eh)});var Dh={};x(Dh,{initRangeSliders:()=>SA});function oo(e,t){if(e===""||e==null)return t;let i=parseFloat(e);return Number.isFinite(i)?i:t}function ao(e){let t=oo(e.min,0),i=oo(e.max,100);return i<t&&(i=t),{min:t,max:i}}function xh(e,t,i){return i===t?0:Math.min(1,Math.max(0,(e-t)/(i-t)))}function Ch(e){let t=String(e),i=t.indexOf(".");return i===-1?0:t.length-i-1}function Lh(e){if(Sh.has(e)||!e.parentNode)return;Sh.add(e),e.setAttribute("data-range-init","");let t=e.hasAttribute("data-bubble"),i=e.parentElement;i?.classList.contains("range-wrapper")?i.querySelectorAll(":scope > .range-bubble, :scope > .range-markers, :scope > .range-labels").forEach(l=>l.remove()):(i=document.createElement("div"),i.className="range-wrapper",e.parentNode.insertBefore(i,e),i.appendChild(e));let s=!e.hasAttribute("aria-valuetext"),n;if(t&&(n=document.createElement("output"),n.className="range-bubble",n.setAttribute("aria-hidden","true"),e.id&&n.htmlFor.add(e.id),i.appendChild(n)),e.hasAttribute("data-markers")){let{min:l,max:u}=ao(e),d=oo(e.step,1)||1,h=Math.round((u-l)/d);if(h>0&&h<=kA){let f=document.createElement("div");f.className="range-markers",f.setAttribute("aria-hidden","true");for(let p=0;p<=h;p++)f.appendChild(document.createElement("span"));i.appendChild(f)}}let r=e.getAttribute("list"),a=r?document.getElementById(r):null;if(a instanceof HTMLDataListElement){let l=document.createElement("div");l.className="range-labels",l.setAttribute("aria-hidden","true");let{min:u,max:d}=ao(e);Array.from(a.options).forEach(h=>{let f=document.createElement("span");f.textContent=h.label||h.value,f.style.setProperty("--range-frac",String(xh(parseFloat(h.value),u,d))),l.appendChild(f)}),i.appendChild(l)}function o(){let l=e.value;if(a instanceof HTMLDataListElement){let p=Array.from(a.options).find(m=>m.label&&parseFloat(m.value)===parseFloat(l));if(p)return p.label}let u=e.dataset.prefix||"",d=e.dataset.suffix||"",h=Math.max(Ch(e.step==="any"?"":e.step),Ch(l)),f=l;try{f=new Intl.NumberFormat(F(e),{minimumFractionDigits:h,maximumFractionDigits:h}).format(parseFloat(l))}catch{}return`${u}${f}${d}`}function c(){let{min:l,max:u}=ao(e),d=xh(parseFloat(e.value),l,u);i.style.setProperty("--range-pct",`${d*100}%`),i.style.setProperty("--range-frac",String(d));let h=o();n&&(n.textContent=h),s&&(h!==e.value?e.setAttribute("aria-valuetext",h):e.removeAttribute("aria-valuetext"))}e.addEventListener("input",c),e.addEventListener("change",c),P(e,c),c()}function SA(e=document){e.querySelectorAll(Th).forEach(t=>Lh(t))}var Th,kA,Sh,co=v(()=>{I();Q();Th='input[type="range"][data-range]',kA=100,Sh=new WeakSet;S(Th,Lh)});var Rh={};x(Rh,{formatBytes:()=>_h,initUploadZones:()=>DA,matchesAccept:()=>Ih});function Ae(e,t,i){return e.getAttribute(`data-label-${t}`)??i}function _h(e,t="en"){let i=["byte","kilobyte","megabyte","gigabyte"],s=0,n=e;for(;n>=1e3&&s<i.length-1;)n/=1e3,s++;try{return new Intl.NumberFormat(t,{style:"unit",unit:i[s],unitDisplay:"short",maximumFractionDigits:s>0?1:0}).format(n)}catch{return`${n.toFixed(s>0?1:0)} ${["B","kB","MB","GB"][s]}`}}function $h(e){return e.split(",").map(t=>t.trim().toLowerCase()).filter(Boolean)}function Ih(e,t){if(!t.length)return!0;let i=e.name.toLowerCase(),s=(e.type||"").toLowerCase();return t.some(n=>n.startsWith(".")?i.endsWith(n):n.endsWith("/*")?s.startsWith(n.slice(0,-1)):s===n)}function LA(e,t){let i=$h(t).map(s=>{if(s.startsWith("."))return s.slice(1).toUpperCase();let[n,r=""]=s.split("/");if(r==="*"){let a=TA[n];return a?Ae(e,a,a):s}return/^[a-z0-9]+$/.test(r)?r.toUpperCase():s});return[...new Set(i)].join(", ")}function Bh(e){if(Nh.has(e)||!e.parentNode)return;Nh.add(e);let t=e.parentElement?.classList.contains("upload-zone")?e.parentElement:null,i=t?.querySelector(":scope > .upload-prompt"),s=t?.querySelector(":scope > .upload-file-list"),n=t?.querySelector(":scope > .upload-status");if(!t||!i||!s||!n){t?.querySelectorAll(":scope > :not(input)").forEach(g=>g.remove()),t||(t=document.createElement("div"),t.className="upload-zone",e.parentNode.insertBefore(t,e),t.appendChild(e));let u=`upload-${++CA}`;i=document.createElement("p"),i.className="upload-prompt",i.id=`${u}-prompt`,i.insertAdjacentHTML("afterbegin",xA);let d=document.createElement("span"),h=e.multiple?"Drag files here or":"Drag a file here or";d.append(`${Ae(e,"prompt",h)} `);let f=document.createElement("span");f.className="upload-browse",f.textContent=Ae(e,"browse","browse"),d.append(f),i.append(d);let p=e.getAttribute("accept")||"";if(p){let g=document.createElement("small");g.textContent=LA(e,p),i.append(g)}s=document.createElement("ul"),s.className="upload-file-list",s.hidden=!0,s.setAttribute("aria-label",Ae(e,"files","Selected files")),n=document.createElement("p"),n.className="upload-status",n.setAttribute("role","status"),t.append(i,s,n);let m=new Set((e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean));m.add(i.id),e.setAttribute("aria-describedby",[...m].join(" "))}let r=s,a=n,o=t;function c(){r.replaceChildren();let u=Array.from(e.files??[]);r.hidden=u.length===0;let d=F(e);for(let h of u){let f=document.createElement("li"),p=document.createElement("span");p.className="upload-file-name",p.textContent=h.name;let m=document.createElement("span");m.className="upload-file-size",m.textContent=_h(h.size,d),f.append(p,m),r.append(f)}}let l=0;o.addEventListener("dragenter",u=>{u.preventDefault(),l++,o.dataset.dragover=""}),o.addEventListener("dragleave",()=>{l=Math.max(0,l-1),l===0&&delete o.dataset.dragover}),o.addEventListener("dragover",u=>{u.preventDefault()}),o.addEventListener("drop",u=>{if(u.preventDefault(),l=0,delete o.dataset.dragover,e.disabled)return;let d=Array.from(u.dataTransfer?.files??[]);if(!d.length)return;let h=$h(e.getAttribute("accept")||""),f=d.filter(b=>Ih(b,h)),p=d.filter(b=>!f.includes(b)),m=[];if(p.length&&m.push(Ae(e,"rejected","Not accepted: {files}").replace("{files}",p.map(b=>b.name).join(", "))),!e.multiple&&f.length>1&&(f.length=1,m.push(Ae(e,"single","Only one file allowed. Kept {file}.").replace("{file}",f[0].name))),a.textContent=m.join(" "),!f.length)return;let g=new DataTransfer;f.forEach(b=>g.items.add(b)),e.files=g.files,e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))}),e.addEventListener("click",()=>{a.textContent=""}),e.addEventListener("change",c),P(e,()=>{a.textContent="",c()}),c()}function DA(e=document){e.querySelectorAll(Mh).forEach(t=>Bh(t))}var Mh,xA,Nh,CA,TA,lo=v(()=>{I();Q();Mh='input[type="file"][data-upload]',xA='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></svg>',Nh=new WeakSet,CA=0;TA={image:"images",audio:"audio",video:"video"};S(Mh,Bh)});function hi(e){if(!e)return!1;let t=e,i=String(t.localName??t.tagName??"").toLowerCase();if(MA.has(i))return!1;let s=i==="input"?String(t.type??t.getAttribute?.("type")??"text").toLowerCase():"";if(NA.has(s))return!1;let n=String(t.getAttribute?.("autocomplete")??"").trim().toLowerCase();return!(n==="off"||n&&n.split(/\s+/).some(r=>_A.has(r))||t.hasAttribute?.("data-autosave-ignore")||t.closest?.("[data-autosave-ignore]"))}var NA,MA,_A,uo=v(()=>{NA=new Set(["password","hidden","file","submit","button","reset","image"]),MA=new Set(["button","fieldset","output","object"]),_A=new Set(["cc-number","cc-csc","cc-exp","cc-exp-month","cc-exp-year","one-time-code","new-password","current-password"])});var qh={};x(qh,{initAutosave:()=>FA});function BA(e){let t=e.dataset.autosave;if(typeof t=="string"&&t.trim()!=="")return t.trim();let i=(e.method||"get").toLowerCase(),s=e.action||(typeof location<"u"?location.href:"");return`${i} ${s}`}function RA(e){let t=e.dataset.autosaveRetain;if(typeof t!="string")return null;let i=t.trim();return i===""?null:new Set(i.split(/\s+/))}function Oh(e){if(Fh.has(e))return;Fh.add(e),e.setAttribute("data-autosave-init","");let t=BA(e),i=RA(e),s;function n(){return Array.from(e.elements).filter(h=>{let f=h.name;return f&&(i===null||i.has(f))&&hi(h)})}function r(){let h={};for(let f of n()){if(f.disabled)continue;let{name:p}=f;if(f.type==="checkbox"){let m=Array.isArray(h[p])?h[p]:h[p]=[];f.checked&&m.push(f.value)}else f.type==="radio"?f.checked&&(h[p]=f.value):f instanceof HTMLSelectElement&&f.multiple?h[p]=Array.from(f.selectedOptions).map(m=>m.value):typeof f.value=="string"&&(h[p]=f.value)}return h}function a(){s=void 0,C.set(Ps,t,r()).catch(()=>{})}function o(){clearTimeout(s),s=setTimeout(a,$A)}function c(){clearTimeout(s),s=void 0}async function l(){let h=await C.get(Ps,t,{maxAge:IA});if(!h||typeof h!="object")return C.remove(Ps,t).catch(()=>{}),[];let f=[];for(let p of n()){if(!Object.hasOwn(h,p.name)||p.disabled||p.readOnly)continue;let m=h[p.name],g=Array.isArray(m)?m:[m];if(p.type==="checkbox")p.checked=g.includes(p.value);else if(p.type==="radio")p.checked=p.value===m;else if(p instanceof HTMLSelectElement&&p.multiple)for(let b of p.options)b.selected=g.includes(b.value);else if(typeof m=="string")p.value=m;else continue;f.push(p)}return f}function u(){c(),C.remove(Ps,t).catch(()=>{})}function d(){let h=e.dataset.labelRestored||"Draft restored";if(customElements.get("toast-msg")){let m=document.querySelector("toast-msg");if(m||(m=document.createElement("toast-msg"),document.body.appendChild(m)),typeof m.show=="function"){m.show({message:h,variant:"info",duration:3e3,source:"autosave"});return}}let f=e.querySelector(":scope > [data-autosave-status]");f||(f=document.createElement("span"),f.className="visually-hidden",f.setAttribute("role","status"),f.setAttribute("data-autosave-status",""),e.append(f)),f.textContent="";let p=f;requestAnimationFrame(()=>{p.textContent=h})}l().then(h=>{if(h.length){d();for(let f of h)f.dispatchEvent(new Event("input",{bubbles:!0})),f.dispatchEvent(new Event("change",{bubbles:!0}));c(),e.dispatchEvent(new CustomEvent("autosave:restore",{bubbles:!0,detail:{key:t,fields:[...new Set(h.map(f=>f.name))]}}))}}),e.addEventListener("input",o),e.addEventListener("change",o),e.addEventListener("submit",u),e.addEventListener("reset",h=>{c(),setTimeout(()=>{h.defaultPrevented||u()},0)})}function FA(e=document){e.querySelectorAll(Ph).forEach(t=>Oh(t))}var Ph,Ps,$A,IA,Fh,ho=v(()=>{mt();I();uo();Ph="form[data-autosave]",Ps="autosave",$A=500,IA=1440*60*1e3,Fh=new WeakSet;S(Ph,Oh)});var Gh={};x(Gh,{initMaskInputs:()=>zA});function zh(e){let t=e.dataset.mask;if(jh[t])return jh[t];if(t==="custom"&&e.dataset.pattern){let i=e.dataset.pattern,s=new Set;for(let r of i)r==="#"?s.add("0-9"):r==="A"?s.add("a-zA-Z"):r==="*"&&s.add("a-zA-Z0-9");let n=s.size>0?new RegExp(`[${[...s].join("")}]`):/./;return{pattern:i,accept:n}}return null}function Wt(e){return e==="#"||e==="A"||e==="*"}function Wh(e,t){let i=OA[e];return i?i.test(t):!1}function qA(e){let t=0;for(let i of e)Wt(i)&&t++;return t}function Vh(e,t){let i="",s=0;for(let n=0;n<t.length&&s<e.length;n++){let r=t[n];if(Wt(r)){for(;s<e.length&&!Wh(r,e[s]);)s++;s<e.length&&(i+=e[s],s++)}else i+=r}return i}function Os(e,t,i){let s="",n=0;for(let r of e){if(n<t.length&&!Wt(t[n])){if(r===t[n]){n++;continue}for(;n<t.length&&!Wt(t[n]);)n++}n<t.length?Wh(t[n],r)&&(s+=r,n++):i.test(r)&&(s+=r)}return s}function jA(e,t,i){let s=0,n=0;if(e>0){for(let r=0;r<t.length;r++)if(Wt(i[r])&&(s++,s===e)){n=r+1;break}s<e&&(n=t.length)}for(;n<i.length&&n<t.length&&!Wt(i[n]);)n++;return n}function HA(e){for(let t of e)if(Wt(t)&&t!=="#")return!1;return!0}function po(e){if(Hh.has(e)||!PA.has(e.type))return;let t=zh(e);if(!t){if(e.removeAttribute("data-mask-init"),!fo.has(e)){fo.add(e);let h=new MutationObserver(()=>{zh(e)&&(h.disconnect(),fo.delete(e),po(e))});h.observe(e,{attributes:!0,attributeFilter:["data-mask","data-pattern","type"]})}return}Hh.add(e),e.setAttribute("data-mask-init","");let{pattern:i}=t,s=t.accept,n=qA(i);HA(i)&&!e.getAttribute("inputmode")&&e.setAttribute("inputmode","numeric"),e.getAttribute("maxlength")||e.setAttribute("maxlength",String(i.length));let r=!1,a=null,o="",c="";function l(){let h=e.dataset.rawValue||"";if(h.length>0&&h.length<n){let p=e.getAttribute("placeholder");c=e.dataset.maskMessage||(p?`Enter the complete value, like ${p}.`:"Enter the complete value."),e.setCustomValidity(c)}else c&&e.validationMessage===c&&(e.setCustomValidity(""),c="")}function u(){let h=Os(e.value,i,s).slice(0,n),f=Vh(h,i);e.value!==f&&(e.value=f),e.dataset.rawValue=h,l()}e.addEventListener("compositionstart",()=>{r=!0}),e.addEventListener("compositionend",()=>{r=!1,d()}),e.addEventListener("beforeinput",h=>{a=e.value,o=h.inputType||""});function d(){if(r)return;let h=e.selectionStart??e.value.length,f=Os(e.value.slice(0,h),i,s).length,p=Os(e.value,i,s),m=a!=null?Os(a,i,s):null;m!=null&&p===m&&a!==e.value&&(o==="deleteContentBackward"&&f>0?(p=p.slice(0,f-1)+p.slice(f),f--):o==="deleteContentForward"&&f<p.length&&(p=p.slice(0,f)+p.slice(f+1))),a=null,o="",p=p.slice(0,n);let g=Vh(p,i);e.value=g,e.dataset.rawValue=p,l();let b=jA(Math.min(f,p.length),g,i);document.activeElement===e&&e.setSelectionRange(b,b)}e.addEventListener("input",d),P(e,u),u()}function zA(e=document){e.querySelectorAll(Uh).forEach(t=>po(t))}var Uh,PA,jh,OA,Hh,fo,mo=v(()=>{I();Uh="input[data-mask]",PA=new Set(["text","tel","search"]),jh={phone:{pattern:"(###) ###-####",accept:/\d/},"credit-card":{pattern:"#### #### #### ####",accept:/\d/},date:{pattern:"##/##/####",accept:/\d/},ssn:{pattern:"###-##-####",accept:/\d/},zip:{pattern:"#####",accept:/\d/}},OA={"#":/\d/,A:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},Hh=new WeakSet,fo=new WeakSet;S(Uh,po)});var Jh={};x(Jh,{initAcceptInputs:()=>WA});function VA(e){if(!e)return null;let t=Object.hasOwn(Kh,e)?Kh[e]:null;if(t)return{regex:new RegExp(t.pattern,"u"),inputmode:t.inputmode};if(e.startsWith("[")){for(let i of["u",""])try{return{regex:new RegExp(e,i),inputmode:"text"}}catch{}return console.warn(`[data-accept] Invalid character class: ${e}`),null}return console.warn(`[data-accept] Unknown preset: ${e}`),null}function qs(e,t){return Array.from(e).filter(i=>t.test(i)).join("")}function Zh(e){if(Yh.has(e))return;if(Yh.add(e),e.hasAttribute("data-mask")){console.warn("[data-accept] Conflict: data-mask is also present \u2014 deferring to mask.",e);return}let t=VA(e.dataset.accept||"");if(!t)return;let{regex:i,inputmode:s}=t;e.dataset.acceptPattern=i.source,e.getAttribute("inputmode")||e.setAttribute("inputmode",s);let n=!1;e.addEventListener("compositionstart",()=>{n=!0}),e.addEventListener("compositionend",()=>{n=!1,r()}),e.addEventListener("beforeinput",o=>{if(n)return;let c=o.data;if(c!=null){if(o.inputType==="insertFromPaste"){let l=qs(c,i);if(l===c||(o.preventDefault(),!l))return;document.execCommand("insertText",!1,l)||UA(e,l);return}if(o.inputType==="insertText"||o.inputType==="insertCompositionText"){for(let l of c)if(!i.test(l)){o.preventDefault();return}}}}),e.addEventListener("input",()=>{n||r()});function r(){let o=e.value,c=qs(o,i);if(c===o)return;let l=e.selectionStart??0,u=qs(o.slice(0,l),i);e.value=c;let d=Math.min(u.length,c.length);document.activeElement===e&&e.setSelectionRange(d,d)}function a(){if(!e.value)return;let o=qs(e.value,i);o!==e.value&&(e.value=o)}a(),P(e,a)}function UA(e,t){let i=e.selectionStart??0,s=e.selectionEnd??0,n=e.value.slice(0,i),r=e.value.slice(s);e.value=n+t+r;let a=i+t.length;e.setSelectionRange(a,a),e.dispatchEvent(new Event("input",{bubbles:!0}))}function WA(e=document){e.querySelectorAll(Xh).forEach(Zh)}var Xh,Kh,Yh,go=v(()=>{I();Xh="input[data-accept]",Kh={digits:{pattern:"[0-9]",inputmode:"numeric"},alpha:{pattern:"[a-zA-Z]",inputmode:"text"},letters:{pattern:"[\\p{L}\\p{M}]",inputmode:"text"},alphanum:{pattern:"[a-zA-Z0-9]",inputmode:"text"},phone:{pattern:"[0-9+()\\- ]",inputmode:"tel"},date:{pattern:"[0-9/\\-.]",inputmode:"numeric"},hex:{pattern:"[0-9a-fA-F]",inputmode:"text"},currency:{pattern:"[0-9.,]",inputmode:"decimal"},cc:{pattern:"[0-9 \\-]",inputmode:"numeric"}};Yh=new WeakSet;S(Xh,Zh)});var sf={};x(sf,{initToggleTags:()=>GA});function ef(e){if(Qh.has(e))return;Qh.add(e);let t=e.querySelector(":scope > .toggle-tags-status");t||(t=document.createElement("p"),t.className="toggle-tags-status",t.setAttribute("role","status"),e.append(t));let i=t,s=()=>Array.from(e.querySelectorAll('input[type="checkbox"]')),n=()=>{let o=parseInt(e.dataset.max??"",10);return o>=1?o:1/0},r=()=>(e.getAttribute("data-label-limit")??"Limit reached: {max} selected. Uncheck one to choose another.").replace("{max}",String(n()));function a(){let o=n(),c=s(),l=c.filter(d=>d.checked).length>=o;for(let d of c){let h=d.hasAttribute("data-max-blocked");if(l&&!d.checked&&!d.disabled){if(!h&&d.getAttribute("aria-disabled")==="true")continue;d.setAttribute("aria-disabled","true"),d.setAttribute("data-max-blocked","")}else h&&(d.removeAttribute("aria-disabled"),d.removeAttribute("data-max-blocked"))}let u=l?r():"";i.textContent!==u&&(i.textContent=u)}e.addEventListener("click",o=>{let c=o.target;!(c instanceof HTMLInputElement)||!c.hasAttribute("data-max-blocked")||(o.preventDefault(),i.textContent="",requestAnimationFrame(()=>{i.textContent=r()}))}),e.addEventListener("change",a),new MutationObserver(a).observe(e,{attributes:!0,attributeFilter:["data-max"]}),P(e,a),a()}function GA(e=document){e.querySelectorAll(tf).forEach(t=>ef(t))}var tf,Qh,bo=v(()=>{I();tf="fieldset[data-toggle-tags][data-max]",Qh=new WeakSet;S(tf,ef)});var cf={};x(cf,{initNumberSteppers:()=>ZA});function rf(e,t){let i=document.createElement("button");return i.type="button",i.className=e,i.innerHTML=t,i.tabIndex=-1,i}function XA(e,t){let i=e.min!==""?parseFloat(e.min):-1/0,s=e.max!==""?parseFloat(e.max):1/0,n=parseFloat(e.value)||0;e.value=String(Math.min(Math.max(n+t,i),s))}function of(e){if(nf.has(e)||!e.parentNode)return;nf.add(e),e.setAttribute("data-stepper-init","");let t=e.parentElement;t?.classList.contains("number-wrapper")?t.querySelectorAll(":scope > .number-dec, :scope > .number-inc").forEach(c=>c.remove()):(t=document.createElement("div"),t.className="number-wrapper",e.parentNode.insertBefore(t,e));let i=rf("number-dec",KA),s=rf("number-inc",YA);t.appendChild(i),t.appendChild(e),t.appendChild(s);function n(){i.setAttribute("aria-label",e.dataset.labelDecrease||"Decrease"),s.setAttribute("aria-label",e.dataset.labelIncrease||"Increase")}function r(){return e.disabled||e.readOnly||e.matches(":disabled")}function a(c){if(r())return;let l=e.value;try{c>0?e.stepUp():e.stepDown()}catch{XA(e,c)}e.value!==l&&(e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))),o()}function o(){let c=e.min!==""?parseFloat(e.min):-1/0,l=e.max!==""?parseFloat(e.max):1/0,u=parseFloat(e.value),d=r();i.disabled=d||Number.isFinite(u)&&u<=c,s.disabled=d||Number.isFinite(u)&&u>=l}i.addEventListener("click",()=>a(-1)),s.addEventListener("click",()=>a(1)),e.addEventListener("input",o),e.addEventListener("change",o),P(e,o),new MutationObserver(()=>{n(),o()}).observe(e,{attributes:!0,attributeFilter:["disabled","readonly","min","max","step","data-label-decrease","data-label-increase"]}),n(),o()}function ZA(e=document){e.querySelectorAll(af).forEach(t=>of(t))}var af,KA,YA,nf,yo=v(()=>{I();af='input[type="number"][data-stepper]',KA='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true" focusable="false"><line x1="5" y1="12" x2="19" y2="12"/></svg>',YA='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true" focusable="false"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>',nf=new WeakSet;S(af,of)});var hf={};x(hf,{initColorInputs:()=>JA});function df(e){if(lf.has(e)||!e.parentNode||e.closest("color-picker"))return;lf.add(e),e.setAttribute("data-color-init","");let t=e.parentElement;t?.classList.contains("color-wrapper")?t.querySelectorAll(":scope > .color-display").forEach(a=>a.remove()):(t=document.createElement("span"),t.className="color-wrapper",e.parentNode.insertBefore(t,e),t.appendChild(e));let i=document.createElement("span");i.className="color-display",i.setAttribute("aria-hidden","true");let s=document.createElement("span");s.className="color-swatch";let n=document.createElement("span");n.className="color-hex",i.append(s,n),t.appendChild(i);function r(){s.style.setProperty("--color-swatch-value",e.value),n.textContent=e.value}e.addEventListener("input",r),e.addEventListener("change",r),P(e,r),r()}function JA(e=document){e.querySelectorAll(uf).forEach(t=>df(t))}var uf,lf,vo=v(()=>{I();uf='input[type="color"][data-color]',lf=new WeakSet;S(uf,df)});var Ef={};x(Ef,{initSelectAll:()=>rE});function rE(e=document){e.querySelectorAll(wf).forEach(t=>Af(t))}function ko(e){return e.closest(nE)||document}function vf(e){let t=e.dataset.selectAll??"";if(!t)return[];let i;try{i=ko(e).querySelectorAll(t)}catch{return[]}return[...i].filter(s=>s!==e&&!s.disabled&&!s.matches(":disabled"))}function Af(e){if(Eo.has(e)||!(e instanceof HTMLInputElement)||e.type!=="checkbox")return;e.removeAttribute("data-select-all-init");let t=!1,i="",s=new AbortController,{signal:n}=s;function r(){if(n.aborted)return;if(!e.isConnected){s.abort(),c.disconnect(),Eo.delete(e);return}let u=vf(e),d=u.length,h=u.filter(g=>g.checked),f=h.length;e.checked=d>0&&f===d,e.indeterminate=f>0&&f<d;let p=ko(e).querySelector("[data-selected-count]");if(p){let g=new Intl.NumberFormat(F(p)).format(f);p instanceof HTMLOutputElement?p.value=g:p.textContent=g}let m=u.map(g=>g.checked?"1":"0").join("");m!==i&&(i=m,e.dispatchEvent(new CustomEvent("select-all:change",{bubbles:!0,detail:{checked:f,total:d,selected:h}})))}Eo.set(e,{sync:r}),e.addEventListener("change",()=>{t=!0;let u=e.checked;for(let d of vf(e))d.checked!==u&&(d.checked=u,d.dispatchEvent(new Event("change",{bubbles:!0})));t=!1,r()},{signal:n});let a=ko(e);a.addEventListener("change",u=>{if(t||u.target===e)return;let d=e.dataset.selectAll;d&&u.target.matches?.(d)&&r()},{signal:n}),P(e,r);let o=!1,c=new MutationObserver(()=>{o||(o=!0,queueMicrotask(()=>{o=!1,r()}))}),l=a===document?document.body:a;l&&c.observe(l,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled","hidden"]}),c.observe(e,{attributes:!0,attributeFilter:["data-select-all"]}),r()}var wf,nE,Eo,So=v(()=>{I();Q();wf="[data-select-all]",nE="[data-select-all-scope], table, form, fieldset",Eo=new WeakMap;S(wf,Af)});var Lf={};x(Lf,{initMath:()=>Co});function Co(e=document){e.querySelectorAll(fi).forEach(Lo)}function cE(e){let t=e.getAttribute("data-math")||"";return new Set(t.split(/\s+/).filter(Boolean))}function lE(e){let t=(e.closest("pre")||e).nextElementSibling;return t?.hasAttribute("data-math-rendered")?t:null}function Cf(e){let t=e.previousElementSibling;return t?t.matches(fi)?t:t.matches("pre")?t.querySelector(fi):null:null}function Tf(){let e=[];document.querySelectorAll("[data-math-rendered][data-math-numbered]").forEach((i,s)=>{let n=s+1;i.getAttribute("data-equation-number")!==String(n)&&i.setAttribute("data-equation-number",String(n)),i.id&&e.push({id:i.id,number:n,latex:Cf(i)?.textContent.trim()??""})});let t=(window.VBMath??={equations:[]}).equations;t.splice(0,t.length,...e)}function To(){xo||(xo=!0,queueMicrotask(()=>{xo=!1,Tf()}))}function Lo(e){if(kf.has(e))return;if(kf.add(e),e.setAttribute("data-math-init",""),e.getAttribute("data-math-state")==="rendered"&&lE(e)){To();return}!e.hasAttribute("data-math")&&e.classList.contains("language-math")&&e.setAttribute("data-math","");let t=cE(e),i=e.getAttribute("data-mathml"),s=e.textContent.trim(),n=t.has("inline");if(!i||!oE){e.setAttribute("data-math-state","source");return}let r=n?document.createElement("span"):document.createElement("div");r.setAttribute("data-math-rendered",""),r.replaceChildren(Fl(i));let a=e.id||null;a&&(r.id=a,e.removeAttribute("id"));let o=r.querySelector("math");if(o&&(n||o.setAttribute("display","block"),!o.hasAttribute("alttext")&&s&&o.setAttribute("alttext",s)),t.has("numbered")&&r.setAttribute("data-math-numbered",""),t.has("copyable")){r.setAttribute("data-math-copyable","");let u=document.createElement("button");u.type="button",u.setAttribute("data-math-copy",""),u.textContent=R(e,"copy","Copy LaTeX"),r.append(u)}e.setAttribute("data-math-state","rendered");let c=e.closest("pre");(c||e).insertAdjacentElement("afterend",r),c?(c.setAttribute("data-math-state","rendered"),c.hidden=!0):e.hidden=!0;let l=null;t.has("numbered")&&(Tf(),l=Number(r.getAttribute("data-equation-number"))),dE(),e.dispatchEvent(new CustomEvent("math:rendered",{bubbles:!0,detail:{latex:s,inline:n,number:l}}))}async function uE(e){let t=e.closest("[data-math-rendered]"),i=t&&Cf(t);if(!i)return;let s=i.textContent.trim(),n=R(i,"copy","Copy LaTeX"),r=R(i,"copied","Copied to clipboard"),a=R(i,"copy-failed","Copy failed"),o=await gt(s,{announceMessage:r,failureMessage:a}),c=o?r:a;e.setAttribute("data-state",o?"copied":"failed"),e.textContent=c,clearTimeout(Sf.get(e)),Sf.set(e,setTimeout(()=>{e.removeAttribute("data-state"),e.textContent=n},aE))}function dE(){if(document.querySelector("[data-vb-math-font]"))return;let e=document.createElement("link");e.rel="stylesheet",e.href=`${Be()}/fonts/math-fonts.css`,e.setAttribute("data-vb-math-font",""),document.head.appendChild(e)}var fi,aE,oE,kf,xo,Sf,xf,hE,Do=v(()=>{Fe();Rt();ut();re();fi="[data-math], code.language-math",aE=2e3,oE=typeof MathMLElement<"u",kf=new WeakSet;window.VBMath=window.VBMath||{equations:[]};xo=!1;Sf=new WeakMap;xf=Symbol.for("vb.math.copy");document[xf]||(document[xf]=!0,document.addEventListener("click",e=>{let i=(e.target instanceof Element?e.target:null)?.closest("button[data-math-copy]")??null;i&&uE(i)}));document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Co()):Co();hE=new MutationObserver(e=>{for(let t of e){for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;(s.matches("[data-math-numbered]")||s.querySelector("[data-math-numbered]"))&&To()}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(fi)&&Lo(s),s.querySelectorAll(fi).forEach(Lo),(s.matches("[data-math-numbered]")||s.querySelector("[data-math-numbered]"))&&To()}}});hE.observe(document.documentElement,{childList:!0,subtree:!0})});var Yf={};x(Yf,{WizardController:()=>pi,initWizards:()=>BE});function Uf(){try{let e=sessionStorage.getItem(Vf);return e||(e=globalThis.crypto?.randomUUID?.()??String(Math.random()).slice(2),sessionStorage.setItem(Vf,e)),e}catch{return""}}function Wf(e){let t=e;return typeof t.checkValidity=="function"?t.checkValidity():!e.matches(":invalid")}function Gf(e){let t=e;typeof t.reportValidity=="function"?t.reportValidity():t.focus?.()}function Kf(e){if(!(e instanceof HTMLFormElement))return;let t=e,i=t.wizardController;if(i instanceof pi&&i.form===t)return;let s=new pi(t);t.wizardController=s,t.wizardGoTo=n=>s.goTo(n),t.wizardNext=()=>s.next(),t.wizardPrev=()=>s.prev(),t.wizardReset=()=>s.reset()}function BE(){document.querySelectorAll("form[data-wizard]").forEach(Kf)}var Us,Vf,_E,$E,IE,pi,Xf=v(()=>{mt();Q();to();uo();I();Us="wizard",Vf="vb:wizard-session",_E=24,$E={back:"Back",next:"Next",submit:"Submit",step:"Step {n}",status:"Now on step {current} of {total}: {name}",completed:"Go to {name} (completed)",yes:"Yes"},IE=new Set(["button","submit","reset","image","checkbox","radio","file","color","range"]);pi=class{#t;#e=[];#i=0;#n=null;#s=null;#o=null;#r=!1;#a="step";#l="";#c=_E*36e5;#g=!1;#f=0;#u=0;#p=new AbortController;constructor(t){if(!t||!(t instanceof HTMLFormElement))throw new Error("WizardController requires a form element");this.#t=t,this.#y()}#y(){if(this.#e=Array.from(this.#t.querySelectorAll("fieldset[data-wizard-step]")),this.#e.length===0){console.warn("Wizard form has no steps");return}this.#r=this.#t.hasAttribute("data-wizard-history"),this.#a=this.#t.getAttribute("data-wizard-validate")||"step",this.#E(),this.#n=this.#t.querySelector("[data-wizard-progress]"),this.#C(),this.#tt(),this.#W(),this.#t.setAttribute("data-wizard-enhanced",""),this.#t.setAttribute("data-wizard-total",String(this.#e.length)),this.#X(),this.#Y(),this.#H();let t=()=>{cancelAnimationFrame(this.#f),this.#f=requestAnimationFrame(()=>this.#U())};if(this.#t.addEventListener("change",t),this.#t.addEventListener("input",t),this.#l&&(this.#t.addEventListener("change",()=>this.#b()),this.#t.addEventListener("input",()=>this.#b())),this.#t.addEventListener("keydown",i=>this.#x(i)),this.#t.addEventListener("click",i=>this.#M(i)),this.#t.addEventListener("submit",i=>this.#D(i)),this.#t.addEventListener("vb:beforesubmit",i=>this.#O(i)),this.#t.addEventListener("reset",i=>{setTimeout(()=>{i.defaultPrevented||this.reset()},0)}),this.#r){let i=this.#P();i!==null&&i>=0&&i<this.#e.length&&(this.#i=i),window.addEventListener("hashchange",()=>{if(!this.#t.isConnected){this.#p.abort();return}let s=this.#P();s===null||s===this.#i||this.#ot(s,{push:!1})||this.#G(!1)},{signal:this.#p.signal})}if(this.#U(),this.#l){let i=this.#r&&this.#P()!==null;this.#g=!0,this.#k(i).finally(()=>{this.#g=!1})}}#d(t,i={}){return(this.#t.getAttribute(`data-label-${t}`)??$E[t]).replace(/\{(\w+)\}/g,(n,r)=>r in i?i[r]:n)}#m(t){try{return new Intl.NumberFormat(F(this.#t)).format(t)}catch{return String(t)}}#h(t,i){return t?.querySelector(":scope > legend")?.textContent?.trim()||this.#d("step",{n:this.#m(i+1)})}#E(){let t=this.#t.getAttribute("data-wizard-persist");if(t===null)return;if(!this.#t.id){console.warn("Wizard persistence requires an id on the form element");return}this.#l=t==="local"?"local":"session";let i=Number(this.#t.getAttribute("data-wizard-persist-hours"));i>0&&(this.#c=i*36e5)}#v(){let t={};for(let i of this.#t.elements){let s=Ut(i);!s||!hi(i)||(t[s]??=[]).push(...Bs(i))}return t}#S(){if(!this.#l||this.#g)return;let t={step:this.#i,data:this.#v(),session:this.#l==="session"?Uf():null};C.set(Us,this.#t.id,t).catch(()=>{})}#b(){this.#l&&(cancelAnimationFrame(this.#u),this.#u=requestAnimationFrame(()=>this.#S()))}async#k(t){let i;try{i=await C.get(Us,this.#t.id,{maxAge:this.#c})}catch{return}if(!i||typeof i!="object")return;let s=i;if(this.#l==="session"&&s.session!==Uf()){C.remove(Us,this.#t.id).catch(()=>{});return}let n=this.#w(s.data&&typeof s.data=="object"?s.data:{});!t&&typeof s.step=="number"&&s.step>=0&&s.step<this.#e.length&&(this.#i=s.step),this.#U(),this.#at("wizard:restore",{step:this.#i,fields:n})}#w(t){let i=new Set,s=new Map,n=[];for(let r of this.#t.elements){let a=Ut(r);if(!a||!Object.hasOwn(t,a)||!hi(r)||r.hasAttribute("readonly")||r.hasAttribute("disabled")&&!r.hasAttribute(di))continue;let o=t[a],c=(Array.isArray(o)?o:[o]).map(String),l=r;if(r instanceof HTMLInputElement&&(r.type==="checkbox"||r.type==="radio"))r.checked=c.includes(r.value||"on");else if(r instanceof HTMLSelectElement&&r.multiple)for(let u of r.options)u.selected=c.includes(u.value);else if(Array.isArray(l.value))l.value=c;else if("value"in l){let u=s.get(a)??0;s.set(a,u+1),l.value=c[u]??""}else continue;i.add(a),n.push(r)}for(let r of n)r.dispatchEvent(new Event("input",{bubbles:!0}));return[...i]}#A(){this.#l&&(cancelAnimationFrame(this.#u),C.remove(Us,this.#t.id).catch(()=>{}))}#N(){return this.#i>=this.#B().length-1}#x(t){if(t.key!=="Enter"||t.defaultPrevented||t.isComposing||t.shiftKey||t.ctrlKey||t.altKey||t.metaKey)return;let i=t.target;if(!(!(i instanceof HTMLInputElement)||IE.has(i.type))){if(!this.#N()){t.preventDefault(),this.next();return}!this.#_()&&this.#F()&&t.preventDefault()}}#M(t){let i=t.target?.closest?.("button, input");!i||i.type!=="submit"||i.form===this.#t&&(this.#_()||i.hasAttribute("formnovalidate")||this.#F()&&t.preventDefault())}#_(){return this.#t.noValidate&&!this.#t.hasAttribute("data-validate")}#F(){let t=this.#B();for(let i of this.#t.elements){if(i.matches(":disabled"))continue;let s=i.closest("fieldset[data-wizard-step]");if(!(!s||!t.includes(s))&&!Wf(i))return s.hasAttribute("data-wizard-active")?!1:(this.#ot(t.indexOf(s),{validate:!1,focus:!1}),Gf(i),!0)}return!1}#D(t){if(!this.#N()){t.preventDefault(),this.next();return}this.#t.hasAttribute("data-validate")||this.#$()}#O(t){this.#t.hasAttribute("data-validate")&&queueMicrotask(()=>{!t.defaultPrevented&&this.#N()&&this.#$()})}#$(){cancelAnimationFrame(this.#u),this.#at("wizard:complete"),this.#A()}#W(){this.#t.querySelectorAll(":scope > [data-wizard-status]").forEach(i=>i.remove());let t=document.createElement("p");t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.setAttribute("data-wizard-status",""),this.#s=t,this.#t.prepend(t)}#C(){let t=this.#t.getAttribute("data-wizard-steps");if(t){this.#o=document.querySelector(t);return}this.#o=this.#t.querySelector("nav.steps")}#T(){return this.#o?.localName==="progress-tracker"}#q(){return this.#o?[...this.#o.querySelectorAll(":scope ol > li")]:[]}#tt(){if(!this.#o)return;let t=this.#o.querySelector("ol");!t||t.children.length>0||this.#e.forEach((i,s)=>{let n=document.createElement("li");n.textContent=this.#h(i,s),t.appendChild(n)})}#I(){if(!this.#o)return;let t=this.#q(),i=this.#B();if(this.#T()){let s=this.#o;this.#e.forEach((a,o)=>{t[o]?.toggleAttribute("hidden",a.hasAttribute("data-wizard-hidden"))});let n=this.#e.indexOf(this.#z()),r=t[n];if(r){let a=r.dataset.step||String(n+1);s.getAttribute("data-current")!==a&&s.setAttribute("data-current",a)}return}this.#e.forEach((s,n)=>{let r=t[n];if(!r)return;if(r.removeAttribute("data-completed"),r.removeAttribute("aria-current"),r.removeAttribute("aria-disabled"),s.hasAttribute("data-wizard-hidden")){r.setAttribute("hidden","");return}r.removeAttribute("hidden");let a=i.indexOf(s),o=r.querySelector("a, button"),c=!o;a<this.#i?(r.setAttribute("data-completed",""),c&&r.setAttribute("role","button"),(o||r).setAttribute("aria-label",this.#d("completed",{name:this.#h(s,a)}))):(c&&r.removeAttribute("role"),(o||r).removeAttribute("aria-label"),a===this.#i?r.setAttribute("aria-current","step"):r.setAttribute("aria-disabled","true"))});for(let s of t){if(s.hasAttribute("hidden"))continue;(s.querySelector("a, button")||s).setAttribute("tabindex",s.hasAttribute("aria-current")?"0":"-1")}}#L(t){if(!t)return-1;let i=this.#q().indexOf(t),s=this.#e[i];return s?this.#B().indexOf(s):-1}#H(){let t=this.#o;if(!t)return;let i=this.#p.signal;if(this.#T()){t.addEventListener("progress-tracker:step",s=>{let n=s.detail;if(n?.source!=="click")return;let r=this.#q().find((o,c)=>(o.dataset.step||String(c+1))===String(n.step)),a=this.#L(r??null);a>=0&&this.goTo(a)},{signal:i});return}t.addEventListener("click",s=>{let n=s.target.closest("li");if(!n||!n.hasAttribute("data-completed")){n&&s.target.closest("a")&&s.preventDefault();return}s.preventDefault();let r=this.#L(n);r>=0&&this.goTo(r)},{signal:i}),t.addEventListener("keydown",s=>{let n=this.#q().filter(u=>!u.hasAttribute("hidden")),r=s.target.closest("li"),a=r?n.indexOf(r):-1;if(a===-1)return;if((s.key==="Enter"||s.key===" ")&&r?.getAttribute("role")==="button"){s.preventDefault();let u=this.#L(r);u>=0&&this.goTo(u);return}let o;switch(s.key){case"ArrowRight":case"ArrowDown":o=Math.min(a+1,n.length-1);break;case"ArrowLeft":case"ArrowUp":o=Math.max(a-1,0);break;case"Home":o=0;break;case"End":o=n.length-1;break;default:return}s.preventDefault();let c=n[a].querySelector("a, button")||n[a],l=n[o].querySelector("a, button")||n[o];c.setAttribute("tabindex","-1"),l.setAttribute("tabindex","0"),l.focus()},{signal:i})}#Y(){this.#t.addEventListener("click",t=>{let i=t.target?.closest?.("[data-wizard-prev], [data-wizard-next]");!i||!this.#t.contains(i)||(t.preventDefault(),i.hasAttribute("data-wizard-prev")?this.prev():this.next())})}#X(){if(this.#t.querySelector("[data-wizard-nav]"))return;let t=document.createElement("nav");t.setAttribute("data-wizard-nav","");let i=document.createElement("button");i.type="button",i.setAttribute("data-wizard-prev",""),i.textContent=this.#d("back");let s=document.createElement("button");s.type="button",s.setAttribute("data-wizard-next",""),s.textContent=this.#d("next");let n=document.createElement("button");n.type="submit",n.textContent=this.#d("submit"),t.append(i,s,n),this.#t.appendChild(t)}#B(){return this.#e.filter(t=>!t.hasAttribute("data-wizard-hidden"))}#z(){return this.#B()[this.#i]}#R({push:t=!1}={}){let i=this.#B(),s=i[this.#i];this.#e.forEach(n=>{n.toggleAttribute("data-wizard-active",n===s)}),this.#t.setAttribute("data-wizard-current",String(this.#i+1)),this.#t.setAttribute("data-wizard-total",String(i.length)),this.#t.toggleAttribute("data-wizard-last",this.#i===i.length-1),this.#Q(),this.#I(),this.#r&&this.#G(t),this.#st(),this.#it()}#Q(){if(!this.#n)return;let t=this.#B();this.#n.max=t.length,this.#n.value=this.#i+1}#G(t){let i=`#step=${this.#i+1}`;window.location.hash!==i&&(t?history.pushState(null,"",i):history.replaceState(null,"",i))}#P(){let t=window.location.hash.match(/step=(\d+)/);return t?parseInt(t[1],10)-1:null}#st(){if(!this.#s)return;let t=this.#B().length,i=this.#d("status",{current:this.#m(this.#i+1),total:this.#m(t),name:this.#h(this.#z(),this.#i)});this.#s.textContent!==i&&(this.#s.textContent=i)}#V(){let t=this.#z();if(!t)return;let i=t.querySelector(":scope > legend")||t;i.hasAttribute("tabindex")||i.setAttribute("tabindex","-1"),i.focus({preventScroll:!1})}#Z(){let t=document.activeElement;return!t||t===document.body?!0:this.#t.contains(t)||!!this.#o?.contains(t)}#J(){if(this.#a==="none")return!0;let t=this.#z();if(!t||t.hasAttribute("data-wizard-optional"))return!0;for(let i of this.#t.elements)if(!(!t.contains(i)||i.matches(":disabled"))&&!Wf(i))return Gf(i),!1;return!0}#U(){for(let i of this.#e){let s=i.getAttribute("data-wizard-if");if(!s)continue;let n=Rs(s,this.#t);i.toggleAttribute("data-wizard-hidden",!n),Fs(i,n)}let t=this.#B();this.#i>=t.length&&(this.#i=Math.max(0,t.length-1)),this.#R()}#K(t){return Qa(this.#t,t).flatMap(i=>this.#et(i)).join(", ")}#et(t){let i=Bs(t);return i.length?t instanceof HTMLSelectElement?[...t.selectedOptions].filter(s=>s.value!=="").map(s=>s.label.trim()||s.value):t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")?t.type==="checkbox"&&!this.#j(t)?[this.#d("yes")]:[this.#nt(t)||i[0]]:i:[]}#j(t){return t.closest("fieldset:not([data-wizard-step])")?.querySelector(":scope > legend")?.textContent.trim()||""}#nt(t){let i=t.labels;if(!i?.length)return"";let s=i[0].cloneNode(!0);return s.querySelectorAll("input, select, textarea").forEach(n=>n.remove()),s.textContent.replace(/\s+/g," ").trim()}#it(){let t=this.#z();if(!t||!t.hasAttribute("data-wizard-summary"))return;let i=t.querySelectorAll("[data-wizard-field]");if(i.length>0){for(let r of i)r.textContent=this.#K(r.getAttribute("data-wizard-field")||"")||"\u2014";return}let s=t.querySelector("[data-wizard-summary-list]");s||(s=document.createElement("dl"),s.setAttribute("data-wizard-summary-list",""),t.appendChild(s)),s.replaceChildren();let n=new Set;for(let r of this.#t.elements){let a=r.closest("fieldset[data-wizard-step]");if(!a||a===t||a.hasAttribute("data-wizard-hidden")||r instanceof HTMLInputElement&&(r.type==="hidden"||r.type==="password")||r instanceof HTMLButtonElement||r instanceof HTMLFieldSetElement||r instanceof HTMLOutputElement)continue;let o=Ut(r);if(!o||n.has(o))continue;n.add(o);let c=this.#K(o);if(!c)continue;let l=document.createElement("dt");l.textContent=this.#rt(r)||o;let u=document.createElement("dd");u.textContent=c,s.append(l,u)}}#rt(t){if(t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")){let r=this.#j(t);if(r)return r}let i=this.#nt(t);if(i)return i;let n=t.closest("form-field")?.querySelector("label");return n?n.textContent.trim():t.getAttribute("aria-label")||""}#at(t,i={}){this.#t.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:i}))}#ot(t,{validate:i=!0,focus:s=!0,push:n=!0}={}){let r=this.#B();if(t<0||t>=r.length||i&&t>this.#i&&!this.#J())return!1;let a=s&&this.#Z(),o=this.#i;return this.#i=t,this.#R({push:n}),a&&t!==o&&this.#V(),this.#at("wizard:step-change",{from:o,to:t}),this.#b(),!0}goTo(t){return this.#ot(t)}next(){return this.#N()?!1:this.#ot(this.#i+1)}prev(){return this.#i<=0?!1:this.#ot(this.#i-1)}reset(){this.#i=0,this.#U(),this.#A(),this.#at("wizard:reset")}get currentStep(){return this.#i}get totalSteps(){return this.#B().length}get form(){return this.#t}};typeof document<"u"&&S("form[data-wizard]",Kf)});var Jf={};x(Jf,{initMobileForms:()=>Zf});function Zf(e=document){return()=>{}}var Qf=v(()=>{typeof document<"u"&&Zf()});var ep={};x(ep,{activateTrap:()=>mi,deactivateTrap:()=>Gs,initFocusTraps:()=>Oo});function Oo(e=document){e.querySelectorAll(Ws).forEach(t=>mi(t))}function mi(e){if(Se.has(e))return;let t=document.activeElement,i=e.getAttribute("data-focus-trap")==="no-autofocus";function s(r){if(r.key!=="Tab")return;let a=tp(e);if(!a.length)return;let o=a[0],c=a[a.length-1],l=document.activeElement;r.shiftKey&&l===o?(r.preventDefault(),c.focus()):!r.shiftKey&&l===c&&(r.preventDefault(),o.focus())}e.addEventListener("keydown",s);let n=()=>{e.removeEventListener("keydown",s)};Se.set(e,{cleanup:n,previousFocus:t}),i||requestAnimationFrame(()=>{let r=e.querySelector("[autofocus]");if(r)r.focus();else{let a=tp(e);a.length&&a[0].focus()}})}function Gs(e){let t=Se.get(e);t&&(t.cleanup(),Se.delete(e),t.previousFocus&&t.previousFocus.isConnected&&t.previousFocus.focus())}function tp(e){return[...e.querySelectorAll(RE)].filter(t=>t.offsetParent!==null)}var Ws,RE,Se,FE,ip=v(()=>{Ws="[data-focus-trap]",RE='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',Se=new WeakMap;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Oo()):Oo();FE=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ws)&&mi(s),s.querySelectorAll(Ws).forEach(n=>mi(n))}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;Se.has(s)&&Gs(s),s.querySelectorAll(Ws).forEach(n=>{Se.has(n)&&Gs(n)})}if(t.type==="attributes"&&t.attributeName==="data-focus-trap"){let i=t.target;i.hasAttribute("data-focus-trap")?mi(i):Gs(i)}}});FE.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-focus-trap"]})});var OE={};var sp,PE,np=v(()=>{sp=80,PE=40;document.querySelectorAll("header[data-scroll-hide]").forEach(e=>{let t=e.closest("main")??window,i=()=>t===window?window.scrollY:t.scrollTop,s=i(),n=0,r=e.hasAttribute("data-hidden"),a=()=>{e.removeAttribute("data-hidden"),r=!1},o=()=>{let c=i(),l=c-s;if(s=c,l!==0){if(l>0){n=0,!r&&c>sp&&!e.matches(":focus-within")&&(e.setAttribute("data-hidden",""),r=!0);return}n-=l,r&&(n>=PE||c<=sp)&&a()}};t.addEventListener("scroll",o,{passive:!0}),e.addEventListener("focusin",()=>{r&&a()})})});var ap={};x(ap,{initSpotlights:()=>rp});function qE(e){if(e.__vbSpotlight)return;e.__vbSpotlight=!0;let t=s=>{let n=e.getBoundingClientRect();e.style.setProperty("--spotlight-x",((s.clientX-n.left)/n.width*100).toFixed(1)+"%"),e.style.setProperty("--spotlight-y",((s.clientY-n.top)/n.height*100).toFixed(1)+"%")},i=()=>{e.style.setProperty("--spotlight-x","50%"),e.style.setProperty("--spotlight-y","50%")};e.addEventListener("mousemove",t,{passive:!0}),e.addEventListener("mouseleave",i,{passive:!0})}function rp(e=document){e.querySelectorAll?.("[data-spotlight]").forEach(qE)}var op=v(()=>{rp()});var hp={};x(hp,{getHotkeyActions:()=>dp});function qo(e){let t=e.cloneNode(!0);return t.querySelectorAll('kbd, [aria-hidden="true"], .visually-hidden').forEach(i=>i.remove()),(t.textContent||"").replace(/\s+/g," ").trim()}function zE(e){let t=e.getAttribute("data-hotkey-label")||e.getAttribute("aria-label");if(t)return t.trim();let i=e.getAttribute("aria-labelledby");if(i){let n=i.split(/\s+/).map(r=>document.getElementById(r)?.textContent?.trim()).filter(Boolean).join(" ");if(n)return n}let s=e.labels;if(s?.length)return qo(s[0]);if(e.tagName==="DETAILS"){let n=e.querySelector(":scope > summary");if(n)return qo(n)}return qo(e)||e.getAttribute("placeholder")||e.getAttribute("title")||""}function lp(e){return!(!e.isConnected||(e.getAttribute("data-hotkey-action")==="toggle"?e.parentElement:e)?.closest("[hidden], [inert]")||e.disabled===!0||e.matches(":disabled"))}function VE(e){if(!e.hasAttribute("data-hotkey-scope"))return null;let t=e.getAttribute("data-hotkey-scope")?.trim();if(!t)return e;try{return e.closest(t)||document.querySelector(t)||e}catch{return e}}function jo(e,t){document.dispatchEvent(new CustomEvent("vb:command-registry-change",{detail:{action:e,element:t}}))}function Ks(e,{notify:t=!0}={}){let i=xe.get(e);i&&(i.unbind(),xe.delete(e),i.ownsAria&&e.removeAttribute("aria-keyshortcuts"),t&&jo("remove",e))}function up(e){if(xe.has(e)||e.tagName==="KBD"||!e.isConnected)return;let t=e.getAttribute("data-hotkey")?.trim();if(!t)return;let i=e.getAttribute("data-hotkey-action")||"click",s=cp[i]||cp.click,n=e.hasAttribute("data-hotkey-global"),r=VE(e),a=e.getAttribute("data-hotkey-group")||"Page Actions",o=At(t,()=>{if(!e.isConnected){Ks(e);return}s(e)},{global:n,scope:r,enabled:()=>e.isConnected?lp(e):(queueMicrotask(()=>Ks(e)),!1)}),c=Wi(t),l=!e.hasAttribute("aria-keyshortcuts")||e.getAttribute("aria-keyshortcuts")===c;l&&e.setAttribute("aria-keyshortcuts",c),xe.set(e,{combo:t,label:zE(e)||t,group:a,scoped:!!r,character:Ui(t),unbind:o,ownsAria:l}),jo("add",e)}function UE(){for(let e of[...xe.keys()])e.isConnected||Ks(e)}function dp(){let e=new Map;for(let[t,i]of xe){if(!lp(t))continue;let s=e.get(i.group)||[];s.push({label:i.label,shortcut:i.combo,element:t,scoped:i.scoped,character:i.character}),e.set(i.group,s)}return e}var jE,HE,xe,cp,fp=v(()=>{I();Ve();He();jE="[data-hotkey]:not(kbd)",HE=["data-hotkey","data-hotkey-action","data-hotkey-label","data-hotkey-group","data-hotkey-global","data-hotkey-scope"],xe=new Map,cp={click(e){e.click()},focus(e){e.focus()},submit(e){let t=e.closest("form")||(e.tagName==="FORM"?e:null);t&&t.requestSubmit()},toggle(e){"open"in e?e.open=!e.open:e.hasAttribute("hidden")?e.removeAttribute("hidden"):e.setAttribute("hidden","")}};typeof window<"u"&&(window.__hotkeyActionRegistry={getHotkeyActions:dp});S(jE,up);typeof document<"u"&&new MutationObserver(e=>{let t=!1,i=new Set;for(let s of e)s.type==="childList"&&s.removedNodes.length&&(t=!0),s.type==="attributes"&&i.add(s.target);t&&UE();for(let s of i)s.tagName!=="KBD"&&(Ks(s,{notify:!1}),s.hasAttribute("data-hotkey")?up(s):jo("remove",s))}).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:HE})});var yp={};x(yp,{upgradeBlankTargets:()=>gp});function GE(e){return new Set((e.getAttribute("rel")||"").split(/\s+/).filter(Boolean))}function KE(e,t){e.setAttribute("rel",[...t].join(" "))}function mp(e){let t=document.documentElement?.dataset?.linkPrivacy==="strict",i=GE(e),s=[...i].some(r=>WE.has(r)),n=!1;s||(i.add("noopener"),n=!0),t&&!i.has("noreferrer")&&(i.add("noreferrer"),n=!0),n&&KE(e,i)}function gp(e=document){for(let t of e.querySelectorAll(pp))mp(t)}function bp(e){let t=e.composedPath?.()[0]??e.target,i=t instanceof Element?t.closest(pp):null;i&&mp(i)}var WE,pp,vp=v(()=>{WE=new Set(["opener","noopener","noreferrer"]),pp='a[href][target="_blank"]';gp(document);document.addEventListener("click",bp,!0);document.addEventListener("auxclick",bp,!0)});var Sp={};x(Sp,{buildSrcset:()=>Ap,initResponsiveImages:()=>kp});function Ap(e,t,i=document.baseURI){let s;try{s=new URL(e,i)}catch{return""}let n=s.pathname.lastIndexOf("/"),r=s.pathname.slice(n+1),a=r.lastIndexOf(".");if(a<=0)return"";let o=s.pathname.slice(0,n+1),c=r.slice(0,a),l=r.slice(a);return t.map(u=>{let d=new URL(s.href);return d.pathname=`${o}${c}-${u}${l}`,`${d.href} ${u}w`}).join(", ")}function JE(e){return e.split(",").map(t=>parseInt(t.trim(),10)).filter(t=>t>0)}function QE(e){Ep?.unobserve(e)}function tk(e){if(!XE.test(e.getAttribute("srcset")||""))return!1;let t=(e.getAttribute("sizes")||"").trim();return!t||ZE.test(t)?!0:/^auto\b/i.test(t)?e.loading!=="lazy":!1}function ek(e){let t=document.createElement("span");t.setAttribute("data-responsive-badge",""),t.setAttribute("aria-hidden","true");let i=()=>{let n=e.currentSrc||e.src;t.textContent=`${n.split("/").pop()} (${e.naturalWidth}px)`};e.addEventListener("load",i),e.complete&&i(),(e.parentElement instanceof HTMLPictureElement?e.parentElement:e).before(t)}function kp(e){if(wp.has(e))return;wp.add(e);let t=e.getAttribute("data-responsive")||"",i=e.getAttribute("src");if(t&&i){let n=JE(t),r=n.length?Ap(i,n):"",a=e.getAttribute("srcset");r?a||(e.srcset=r):n.length&&console.warn("[data-responsive] No file extension to insert widths before:",i)}e.hasAttribute("decoding")||(e.decoding="async"),e.addEventListener("error",()=>QE(e)),!(e.complete&&e.naturalWidth===0&&e.currentSrc)&&tk(e)&&(Ho.delete(e),Ep?.observe(e)),e.hasAttribute("data-responsive-debug")&&ek(e)}var YE,wp,Ho,XE,ZE,Ep,xp=v(()=>{I();YE="img[data-responsive]",wp=new WeakSet,Ho=new WeakMap,XE=/\s\d+w\s*(?:,|$)/,ZE=/^\d+px$/;Ep=typeof ResizeObserver=="function"?new ResizeObserver(e=>{for(let t of e){let i=t.target,s=Math.round(t.contentBoxSize?.[0]?.inlineSize??t.contentRect.width);s>(Ho.get(i)??0)&&(Ho.set(i,s),i.sizes=`${s}px`)}}):null;S(YE,kp)});var Lp={};x(Lp,{initFloatingLabels:()=>Tp});function Tp(e){if(Cp.has(e))return;Cp.add(e);let t=e.querySelector("input, textarea, select");t&&(t.hasAttribute("placeholder")||t.setAttribute("placeholder"," "),e.setAttribute("data-floating-label-ready",""))}var ik,Cp,Dp=v(()=>{I();ik="form-field[data-floating-label]",Cp=new WeakSet;S(ik,Tp)});var Ip={};x(Ip,{activate:()=>zo,deactivate:()=>Ys});function zo(e){if(e.getAttribute("aria-busy")==="true")return;e._vbLoadingOriginal=e.innerHTML,e._vbLoadingWidth=e.offsetWidth,e.style.minInlineSize=`${e._vbLoadingWidth}px`;let t=e.getAttribute("data-loading"),i=document.createElement("span");i.className="vb-btn-spinner",i.setAttribute("aria-hidden","true");let s=document.createElement("span");t?s.textContent=t:(s.className="visually-hidden",s.textContent=e.textContent.trim()),e.replaceChildren(i," ",s),e.setAttribute("aria-busy","true"),e.setAttribute("aria-disabled","true"),e.dataset.loadingActive="";let n=parseInt(e.getAttribute("data-loading-timeout"),10)||sk;e._vbLoadingTimer=setTimeout(()=>Ys(e),n)}function Ys(e){e.getAttribute("aria-busy")==="true"&&(clearTimeout(e._vbLoadingTimer),e._vbLoadingOriginal!=null&&(e.innerHTML=e._vbLoadingOriginal,delete e._vbLoadingOriginal),e.style.minInlineSize="",e.removeAttribute("aria-busy"),e.removeAttribute("aria-disabled"),delete e.dataset.loadingActive)}function _p(e){if(Np.has(e))return;Np.add(e),e.addEventListener("click",s=>{e.getAttribute("aria-busy")==="true"&&(s.preventDefault(),s.stopImmediatePropagation())},!0);let t=e.form;t&&e.type==="submit"&&new MutationObserver(()=>{!t.hasAttribute("data-submitting")&&e.getAttribute("aria-busy")==="true"&&Ys(e)}).observe(t,{attributes:!0,attributeFilter:["data-submitting"]}),new MutationObserver(()=>{e.hasAttribute("data-loading-active")?zo(e):e.getAttribute("aria-busy")==="true"&&Ys(e)}).observe(e,{attributes:!0,attributeFilter:["data-loading-active"]})}function nk(e,t){return t||([...e.elements].find(i=>i instanceof HTMLButtonElement&&i.type==="submit"||i instanceof HTMLInputElement&&i.type==="submit")??null)}function $p(e,t){let i=nk(e,t);i instanceof HTMLButtonElement&&i.matches(Mp)&&(_p(i),zo(i))}var Mp,Np,sk,Bp=v(()=>{I();Mp="button[data-loading]",Np=new WeakSet,sk=1e4;document.addEventListener("submit",e=>{let t=e.target;t.matches("[data-validate]")||$p(t,e.submitter)});document.addEventListener("vb:beforesubmit",e=>{if(e.defaultPrevented)return;let{form:t,submitter:i}=e.detail??{};t instanceof HTMLFormElement&&$p(t,i)});S(Mp,_p)});var Fp={};x(Fp,{initEmailForm:()=>Go});function rk(e){let t={};for(let i of e.elements){let s=i;s.name&&(s.type==="password"||s.type==="file"||(s.type==="checkbox"?t[s.name]=s.checked:s.type==="radio"?s.checked&&(t[s.name]=s.value):t[s.name]=s.value))}return t}async function ak(e){let t=e.currentTarget,i=t.getAttribute("data-vb-email-form"),s=t.getAttribute("data-vb-email-to");if(!i||(e.preventDefault(),t.hasAttribute(Vo)))return;t.setAttribute(Vo,"");let n=t.querySelector('button[type="submit"], button:not([type])'),r=n?.textContent;n&&(n.disabled=!0,t.dataset.vbEmailLoadingLabel&&(n.textContent=t.dataset.vbEmailLoadingLabel)),t.dispatchEvent(new CustomEvent("vb-email-form:submitting",{bubbles:!0,composed:!0,detail:{template:i}}));let a=rk(t);try{let c=await new J("email").post("/",{to:s||a.to||a.email,template:i,data:a});t.dispatchEvent(new CustomEvent("vb-email-form:success",{bubbles:!0,composed:!0,detail:{id:c?.id}})),t.hasAttribute("data-vb-email-no-reset")||t.reset(),Rp(t,"success")}catch(o){let c={error:o};o instanceof K&&(c.status=o.status,c.body=o.body),t.dispatchEvent(new CustomEvent("vb-email-form:error",{bubbles:!0,composed:!0,detail:c})),Rp(t,"error")}finally{t.removeAttribute(Vo),n&&(n.disabled=!1,r&&(n.textContent=r))}}function Rp(e,t){let i=e.querySelector("[data-vb-email-status]");if(!i)return;let s=e.dataset.vbEmailSuccess||"Sent. Thank you.",n=e.dataset.vbEmailError||"Sorry, the message could not be sent. Try again.";i.dataset.state=t,i.textContent=t==="success"?s:n}function Wo(e){e.hasAttribute("data-vb-email-form-init")||(e.setAttribute("data-vb-email-form-init",""),e.addEventListener("submit",ak))}function Go(e=document){for(let t of e.querySelectorAll(Uo))Wo(t)}var Uo,Vo,ok,Pp=v(()=>{pe();Uo="form[data-vb-email-form]",Vo="data-vb-email-submitting";document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Go()):Go();ok=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.(Uo)&&Wo(s),s.querySelectorAll?.(Uo).forEach(n=>Wo(n))}});ok.observe(document.documentElement,{childList:!0,subtree:!0})});var Vp={};x(Vp,{initNewsletterForm:()=>Qo});function Hp(e){let t=(e.getAttribute("data-vb-newsletter-form")||"subscribe").trim();return ck.includes(t)?t:"subscribe"}function Op(e){let t=[...e.querySelectorAll('input[type="checkbox"][name="lists"]')].filter(s=>s.checked).map(s=>s.value);return t.length?t:(e.getAttribute("data-vb-newsletter-lists")||"").split(",").map(s=>s.trim()).filter(Boolean)}function zp(e){return e.querySelector('input[name="email"]')}function Yo(e,t,i){let s=e.querySelector("[data-vb-newsletter-status]");s&&(s.dataset.state=t,s.textContent=i)}function qp(e,t,i){return i==="error"?e.dataset.vbNewsletterError||"Sorry, that did not work. Try again.":t==="unsubscribe"?e.dataset.vbNewsletterUnsubscribed||"Unsubscribed.":t==="preferences"?e.dataset.vbNewsletterSaved||"Preferences saved.":e.dataset.vbNewsletterSubscribed||"Subscribed. Check your inbox."}function jp(e,t){let i=e.querySelector('button[type="submit"], button:not([type])');i&&(t?(i.dataset.vbNewsletterPrevLabel=i.textContent||"",i.disabled=!0,e.dataset.vbNewsletterLoadingLabel&&(i.textContent=e.dataset.vbNewsletterLoadingLabel)):(i.disabled=!1,i.dataset.vbNewsletterPrevLabel!=null&&(i.textContent=i.dataset.vbNewsletterPrevLabel,delete i.dataset.vbNewsletterPrevLabel)))}async function Xs(e,t,i){let s=new J("newsletter");if(e==="POST")return s.post(t,i);if(e==="GET")return s.get(t,i);throw new Error(`unsupported method ${e}`)}async function lk(e,t,i,s){if(!s.length&&t!=="preferences")throw new Error("No lists selected.");return Xs("POST",t==="unsubscribe"?"/unsubscribe":"/subscribe",{email:i,lists:s})}async function uk(e,t){if(t)try{let i=await Xs("GET","/preferences",{email:t});if(!i)return;let s=new Set(i.subscriptions||[]);for(let n of e.querySelectorAll('input[type="checkbox"][name="lists"]')){let r=n;r.checked=s.has(r.value)}e.dispatchEvent(new CustomEvent("vb-newsletter-form:preferences",{bubbles:!0,composed:!0,detail:{email:t,subscriptions:i.subscriptions,available:i.available}}))}catch(i){if(i instanceof K&&i.status===404)return;console.warn("[newsletter-form] preferences fetch failed",i)}}function Zo(e){return new Set([...e.querySelectorAll('input[type="checkbox"][name="lists"]')].filter(t=>t.checked).map(t=>t.value))}async function dk(e,t){let i=e.__vbNewsletterSnapshot??new Set,s=Zo(e),n=[...s].filter(o=>!i.has(o)),r=[...i].filter(o=>!s.has(o)),a={};return n.length&&(a.subscribe=await Xs("POST","/subscribe",{email:t,lists:n})),r.length&&(a.unsubscribe=await Xs("POST","/unsubscribe",{email:t,lists:r})),e.__vbNewsletterSnapshot=Zo(e),a}async function hk(e){let t=e.currentTarget,i=Hp(t),s=zp(t)?.value?.trim();if(e.preventDefault(),!s){Yo(t,"error","Email is required.");return}if(!t.hasAttribute(Ko)){t.setAttribute(Ko,""),jp(t,!0),t.dispatchEvent(new CustomEvent("vb-newsletter-form:submitting",{bubbles:!0,composed:!0,detail:{mode:i}}));try{let n;if(i==="preferences")n=await dk(t,s);else{let r=Op(t);n=await lk(t,i,s,r)}t.dispatchEvent(new CustomEvent("vb-newsletter-form:success",{bubbles:!0,composed:!0,detail:{mode:i,lists:Op(t),response:n}})),Yo(t,"success",qp(t,i,"success")),i==="subscribe"&&!t.hasAttribute("data-vb-newsletter-no-reset")&&t.reset()}catch(n){let r={mode:i,error:n};n instanceof K&&(r.status=n.status,r.body=n.body),t.dispatchEvent(new CustomEvent("vb-newsletter-form:error",{bubbles:!0,composed:!0,detail:r}));let a=n instanceof Error&&n.message==="No lists selected."?"Pick at least one list.":qp(t,i,"error");Yo(t,"error",a)}finally{t.removeAttribute(Ko),jp(t,!1)}}}function Jo(e){if(!e.hasAttribute("data-vb-newsletter-form-init")&&(e.setAttribute("data-vb-newsletter-form-init",""),e.addEventListener("submit",hk),Hp(e)==="preferences")){let t=zp(e);if(t){let i=async()=>{let s=t.value.trim();s&&(await uk(e,s),e.__vbNewsletterSnapshot=Zo(e))};t.addEventListener("change",i),t.addEventListener("blur",i)}}}function Qo(e=document){for(let t of e.querySelectorAll(Xo))Jo(t)}var Xo,Ko,ck,fk,Up=v(()=>{pe();Xo="form[data-vb-newsletter-form]",Ko="data-vb-newsletter-submitting",ck=["subscribe","unsubscribe","preferences"];document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Qo()):Qo();fk=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.(Xo)&&Jo(s),s.querySelectorAll?.(Xo).forEach(n=>Jo(n))}});fk.observe(document.documentElement,{childList:!0,subtree:!0})});function pk(e){return[...e.querySelectorAll("li")].filter(t=>t.querySelector("a[href]"))}function Wp(e){return e.querySelector("li[data-audio-active]")}function tc(e,t,i){let s=i.querySelector("a[href]");return s?(t.querySelectorAll("li[data-audio-active]").forEach(n=>{n!==i&&n.removeAttribute("data-audio-active")}),i.setAttribute("data-audio-active",""),e.src=s.href,e.play()?.catch(()=>{}),{src:s.href,title:s.textContent?.trim()??""}):null}function Gp(e){let t=Wp(e);return t?.setAttribute("data-audio-played",""),t}function Kp(e,{loop:t=!1}={}){let i=pk(e);if(!i.length)return null;let s=Wp(e),n=s?i.indexOf(s):-1;return n+1<i.length?i[n+1]:t?i[0]:null}var Yp=v(()=>{});var Xp={};x(Xp,{initAllPlaylists:()=>sc});function ic(e){if(e.hasAttribute("data-audio-playlist-init"))return;let t=e.querySelector("audio");if(!t)return;let i=e.querySelector(".track-list");i&&(e.setAttribute("data-audio-playlist-init",""),t.addEventListener("ended",()=>{Gp(i);let s=Kp(i);s&&tc(t,i,s)}),i.addEventListener("click",s=>{let n=s.target.closest("a[href]"),r=n?.closest("li");!n||!r||(s.preventDefault(),tc(t,i,r))}))}function sc(e=document){e.querySelectorAll(ec).forEach(t=>ic(t))}var ec,mk,Zp=v(()=>{Yp();ec="[data-audio-playlist]";document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>sc()):sc();mk=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(ec)&&ic(s),s.querySelectorAll(ec).forEach(n=>ic(n))}});mk.observe(document.documentElement,{childList:!0,subtree:!0})});function gk(e,t){let i=Number(e);return!Number.isFinite(i)||t<=0?1:Math.min(Math.max(1,Math.floor(i)),t)}function bk({page:e,size:t}){let i=(e-1)*t;return{start:i,end:i+t}}function yk(e,t,i=2){if(t<=0)return[];if(t===1)return[1];let s=Math.max(2,e-i),n=Math.min(t-1,e+i),r=[1];s>2&&r.push("\u2026");for(let a=s;a<=n;a++)r.push(a);return n<t-1&&r.push("\u2026"),r.push(t),r}function nc({total:e,size:t,page:i,window:s=2}){if(t<=0)return{page:(e>0,1),totalPages:e>0?1:0,start:0,end:e,pageNumbers:e>0?[1]:[]};let n=e>0?Math.ceil(e/t):0,r=gk(i,n),a=bk({page:r,size:t}),o=Math.min(a.end,e);return{page:r,totalPages:n,start:a.start,end:o,pageNumbers:yk(r,n,s)}}var Jp=v(()=>{});var nm={};x(nm,{initDataPaged:()=>em});function em(e){if(Qp.has(e))return;let t={host:e,nav:{before:null,after:null},sentinel:null,intersect:null,children:[],childObserver:null,visible:0};Qp.set(e,t);let i=e.dataset.pagedUrl;if(i){let n=new URL(window.location.href).searchParams.get(i);n&&!e.hasAttribute("data-paged-page")&&e.setAttribute("data-paged-page",n),window.addEventListener("popstate",()=>{if(!e.isConnected)return;let r=new URL(window.location.href);e.setAttribute("data-paged-page",r.searchParams.get(i)||"1"),gi(t)})}t.childObserver=new MutationObserver(()=>gi(t)),t.childObserver.observe(e,{childList:!0}),e.addEventListener("paged:goto",s=>sm(t,s.detail?.page??1)),e.addEventListener("paged:loadmore",()=>oc(t)),gi(t)}function ac(e){return{size:parseInt(e.dataset.pagedSize||"10",10)||0,page:parseInt(e.dataset.pagedPage||"1",10)||1,style:e.dataset.pagedStyle||"numbered",window:parseInt(e.dataset.pagedWindow||"2",10)||2,controls:e.dataset.pagedControls||"after",urlParam:e.dataset.pagedUrl||""}}function im(e){if(e.tagName==="TABLE"){let t=e.querySelector(":scope > tbody");if(t)return Array.from(t.children)}return Array.from(e.children).filter(t=>!t.matches("nav[data-paged-nav], div[data-paged-sentinel]"))}function gi(e){let{host:t}=e,i=ac(t),s=im(t);e.children=s;let n=nc({total:s.length,size:i.size,page:i.page,window:i.window}),r=i.style==="load-more"||i.style==="infinite",a;if(r){e.visible===0&&(e.visible=i.size||s.length);let o=Math.min(e.visible,s.length);s.forEach((c,l)=>{c.hidden=l>=o}),a=o}else s.forEach((o,c)=>{o.hidden=c<n.start||c>=n.end}),a=Math.max(0,n.end-n.start);wk(e,n,i,r),t.dispatchEvent(new CustomEvent("paged:change",{bubbles:!0,detail:{page:n.page,size:i.size,total:s.length,totalPages:n.totalPages,visible:a,style:i.style}}))}function rc(e){let t=new Intl.NumberFormat(F(e)),i=(s,n)=>R(e,s,n);return{navLabel:i("nav","Pagination"),prevLabel:i("prev","Previous"),nextLabel:i("next","Next"),pageLabel:s=>Pt(i("page","Page {page}"),{page:t.format(s)}),statusLabel:(s,n)=>Pt(i("status","Page {page} of {total}"),{page:t.format(s),total:t.format(n)}),loadMoreLabel:s=>Pt(i("load-more","Load more ({n})"),{n:t.format(s)}),noMoreLabel:i("no-more","No more")}}function wk(e,t,i,s){e.sentinel?.remove(),e.sentinel=null,e.intersect?.disconnect(),e.intersect=null;let n=null;if(i.controls!=="none"&&(i.style==="load-more"?n=ir({style:"load-more",page:t.page,totalPages:t.totalPages,pageNumbers:t.pageNumbers,total:e.children.length,visible:e.visible,...rc(e.host)}):!s&&t.totalPages>1&&(n=ir({style:i.style,page:t.page,totalPages:t.totalPages,pageNumbers:t.pageNumbers,total:e.children.length,visible:e.visible,...rc(e.host)}))),i.style==="infinite"){let r=document.createElement("div");r.setAttribute("data-paged-sentinel",""),r.setAttribute("aria-hidden","true"),r.style.cssText="block-size:1px;inline-size:100%",e.host.parentNode?.insertBefore(r,e.host.nextSibling),e.sentinel=r,e.intersect=new IntersectionObserver(a=>{for(let o of a)o.isIntersecting&&oc(e)},{rootMargin:"200px"}),e.intersect.observe(r)}Ak(e,n,i)}function Ak(e,t,i){let{host:s}=e,n={onNavigate:l=>sm(e,l),onLoadMore:()=>oc(e)},r=!!t&&(i.controls==="before"||i.controls==="both"),a=!!t&&(i.controls==="after"||i.controls==="both"),o=null;r&&(o=a?t.cloneNode(!0):t,a&&o.querySelector("[data-paged-status]")?.removeAttribute("aria-live"),nr(o,n));let c=a?t:null;c&&nr(c,n),e.nav.before=tm(e.nav.before,o,l=>s.parentNode?.insertBefore(l,s)),e.nav.after=tm(e.nav.after,c,l=>s.parentNode?.insertBefore(l,s.nextSibling))}function tm(e,t,i){return e?.isConnected&&t?(Wl(e,t),t):(e?.remove(),t&&i(t),t)}function sm(e,t){let{host:i}=e,s=ac(i),n=im(i),r=nc({total:n.length,size:s.size,page:t,window:s.window});if(r.page!==s.page){if(i.setAttribute("data-paged-page",String(r.page)),s.urlParam){let a=new URL(window.location.href);a.searchParams.set(s.urlParam,String(r.page)),window.history.pushState({},"",a)}gi(e),s.style!=="prev-next"&&G(rc(i).statusLabel(r.page,r.totalPages))}}function oc(e){let i=ac(e.host).size||10,s=e.visible;if(e.visible=Math.min(e.visible+i,e.children.length),gi(e),e.visible>s){let n=new Intl.NumberFormat(F(e.host));G(R(e.host,"showing","Showing {visible} of {total}",{visible:n.format(e.visible),total:n.format(e.children.length)}))}}var vk,Qp,rm=v(()=>{I();Jp();rr();ut();Q();vk="[data-paged]",Qp=new WeakMap;S(vk,em)});function Ce(e){if(!e)return null;let t=String(e);return t.startsWith("-")?{key:t.slice(1),direction:"desc"}:t.startsWith("+")?{key:t.slice(1),direction:"asc"}:{key:t,direction:"asc"}}function Ek(e,t,i){let s=t==="desc"?-1:1,n=e==="text"||!cm[e]?kk(i):cm[e];return(r,a)=>{let o=um(r),c=um(a);return o&&c?0:o?1:c?-1:s*n(r,a)}}function dm(e,t,i,s,n){let r=Ek(i,s,n),a=Array.from({length:e.length},(o,c)=>c);return a.sort((o,c)=>{let l=r(t(e[o]),t(e[c]));return l===0?o-c:l}),a}function hm(e){return e==="asc"?"desc":e==="desc"?"none":"asc"}function kk(e){let t=e||"",i=am.get(t);if(!i){try{i=new Intl.Collator(e||void 0,{sensitivity:"base",numeric:!0})}catch{i=new Intl.Collator(void 0,{sensitivity:"base",numeric:!0})}am.set(t,i)}return(s,n)=>i.compare(String(s),String(n))}function om(e){if(typeof e=="number")return e;let t=String(e??"").trim().replace(/[\u2212\u2012\u2013]/g,"-"),i=/^\(.*\)$/.test(t)||/^-|-$/.test(t.replace(/[^\d.,-]/g,""));if(t=t.replace(/[^\d.,]/g,""),!t)return NaN;let s=t.lastIndexOf(","),n=t.lastIndexOf(".");if(s>-1&&n>-1){let a=s>n?",":".",o=a===","?".":",";t=t.split(o).join("").replace(a,".")}else if(s>-1){let a=t.split(",");t=a.length>2||a.length===2&&a[1].length===3?a.join(""):a.join(".")}else(t.match(/\./g)||[]).length>1&&(t=t.split(".").join(""));let r=Number(t);return i?-r:r}function lm(e){return e instanceof Date?e.getTime():Date.parse(String(e))}function um(e){return e==null||e===""}var am,cm,fm=v(()=>{am=new Map;cm={number(e,t){let i=om(e),s=om(t);return Number.isNaN(i)&&Number.isNaN(s)?0:Number.isNaN(i)?1:Number.isNaN(s)||i<s?-1:i>s?1:0},date(e,t){let i=lm(e),s=lm(t);return Number.isNaN(i)&&Number.isNaN(s)?0:Number.isNaN(i)?1:Number.isNaN(s)||i<s?-1:i>s?1:0}}});var ym={};x(ym,{initDataSortable:()=>gm});function gm(e){if(Zs.has(e))return;Zs.add(e),e.tagName==="TABLE"&&xk(e);let i=e.dataset.sortableDefault;if(i&&!e.dataset.sortBy){let s=Ce(i);s&&Gt(e,s.key,s.direction)}if(!e.dataset.sortBy)for(let s of lc()){if(s.tagName!=="SELECT"||bi(s)!==e)continue;let n=Ce(s.value);if(n){Gt(e,n.key,n.direction);break}}Js(e)}function xk(e){e.querySelectorAll(":scope > thead th[data-sort]").forEach(i=>{i.hasAttribute("aria-sort")||i.setAttribute("aria-sort","none"),Ck(i),i.addEventListener("click",s=>{let r=s.target.closest?.("a, input, select, textarea, button:not([data-sort-button])");if(r&&i.contains(r))return;let a=i.dataset.sort;if(!a)return;let o=e.dataset.sortBy===a?e.dataset.sortDirection:"none",c=hm(o||"none");c==="none"?Gt(e,"","none"):Gt(e,a,c,i.dataset.sortType)})})}function Ck(e){let t=e.querySelector(":scope > button[data-sort-button]");if(t)return t;let i=document.createElement("button");return i.type="button",i.setAttribute("data-sort-button",""),i.append(...e.childNodes),e.appendChild(i),i}function lc(){return document.querySelectorAll("[data-sort-target]")}function bi(e){let t=e.getAttribute("data-sort-target");if(!t)return null;let i=null;try{i=document.querySelector(t)}catch{return null}return i?.matches("[data-sortable]")?i:null}function pm(e,t){let i=bi(e);if(!i)return;let s=Ce(t);if(!s){Gt(i,"","none");return}if(Gt(i,s.key,s.direction),i.tagName==="TABLE")return;let n=e,r=e.tagName==="SELECT"?n.selectedOptions[0]?.textContent||t:e.getAttribute("aria-label")||e.textContent||t,a=new Intl.NumberFormat(F(i)).format(bm(i).length);G(R(i,"sorted","Sorted: {sort}. {count} items",{sort:r.trim(),count:a}))}function Js(e){let t=e.dataset.sortBy?(e.dataset.sortDirection==="desc"?"-":"")+e.dataset.sortBy:"";for(let i of lc()){if(i.tagName!=="BUTTON"||bi(i)!==e)continue;let s=Ce(i.getAttribute("data-sort-by")||""),n=s?(s.direction==="desc"?"-":"")+s.key:"";i.setAttribute("aria-pressed",String(!!n&&n===t))}}function cc(){for(let e of lc())if(!Zs.has(e)&&e.getAttribute("data-sort-target"))if(Zs.add(e),e.tagName==="SELECT"){e.addEventListener("change",()=>pm(e,e.value));let t=bi(e),i=Ce(e.value);t&&i&&!t.dataset.sortBy&&Gt(t,i.key,i.direction)}else{e.addEventListener("click",()=>pm(e,e.getAttribute("data-sort-by")||""));let t=bi(e);t&&Js(t)}}function Tk(e,t,i,s={}){if(s.isTable){let r=s.colIndex,a=e.children[r];if(!a)return"";let o=a.dataset.sortValue??a.dataset.value;if(o!=null)return o;if(i==="date"){let c=a.querySelector("time[datetime]");if(c)return c.getAttribute("datetime")||""}return(a.textContent||"").trim()}let n=e.dataset[`sort${Lk(t)}`];return n??(e.dataset.value!=null?e.dataset.value:(e.textContent||"").trim())}function Lk(e){return e?e[0].toUpperCase()+e.slice(1):""}function bm(e){if(e.tagName==="TABLE"){let t=e.querySelector(":scope > tbody");return t?Array.from(t.children):[]}return Array.from(e.children)}function Dk(e,t){return Array.from(e.querySelectorAll(":scope > thead th")).findIndex(s=>s.dataset.sort===t)}function Gt(e,t,i,s){let n=e.tagName==="TABLE",r=bm(e);if(i==="none"||!t){e.removeAttribute("data-sort-by"),e.dataset.sortDirection="none",n?mm(e,"","none"):Js(e),e.dispatchEvent(new CustomEvent("sort:change",{bubbles:!0,detail:{key:"",direction:"none",total:r.length}}));return}let a=Nk(e,t,s),o=n?Dk(e,t):-1,c=dm(r,u=>Tk(u,t,a,{isTable:n,colIndex:o}),a,i,F(e)),l=n?e.querySelector(":scope > tbody"):e;if(l){for(let u of c)l.appendChild(r[u]);e.dataset.sortBy=t,e.dataset.sortDirection=i,n?mm(e,t,i):Js(e),e.hasAttribute("data-paged")&&e.dispatchEvent(new CustomEvent("paged:goto",{detail:{page:1}})),e.dispatchEvent(new CustomEvent("sort:change",{bubbles:!0,detail:{key:t,direction:i,total:r.length}}))}}function Nk(e,t,i){if(i==="text"||i==="number"||i==="date")return i;if(e.tagName==="TABLE"){let r=e.querySelector(`:scope > thead th[data-sort="${Mk(t)}"]`)?.dataset.sortType;if(r==="text"||r==="number"||r==="date")return r}let s=e.dataset.sortType;return s==="text"||s==="number"||s==="date"?s:"text"}function Mk(e){return String(e).replace(/["\\]/g,"\\$&")}function mm(e,t,i){e.querySelectorAll(":scope > thead th[data-sort]").forEach(n=>{n.dataset.sort===t&&i!=="none"?n.setAttribute("aria-sort",i==="asc"?"ascending":"descending"):n.setAttribute("aria-sort","none")})}var Sk,Zs,vm=v(()=>{I();fm();Q();ut();Sk="[data-sortable]",Zs=new WeakSet;S(Sk,gm);typeof document<"u"&&(document.readyState!=="loading"?cc():document.addEventListener("DOMContentLoaded",cc),S("[data-sort-target]",()=>cc()))});function wm(e){if(!e)return null;let t=String(e).trim();if(!t)return null;if(t.startsWith("class:")){let i=t.slice(6).trim();return i?{kind:"class",name:i}:null}return{kind:"attr",name:t}}function yi(e){return _k.has(String(e).toLowerCase())}function uc(e){return $k.has(String(e).toLowerCase())}function Am(e,t,i){if(e.kind==="class")return t?{present:!1}:{present:!0};if(yi(e.name))return t?{present:!1}:{present:!0,value:""};if(uc(e.name))return{present:!0,value:t==="true"||t===!0?"false":"true"};let s=i.on??"true",n=i.off??"false";return{present:!0,value:t===s?n:s}}var _k,$k,Em=v(()=>{_k=new Set(["hidden","disabled","open","checked","readonly","required","multiple","selected","autofocus","autoplay","controls","defer","inert","loop","muted","nomodule","novalidate","playsinline","reversed"]),$k=new Set(["aria-pressed","aria-expanded","aria-selected","aria-checked"])});var Cm={};x(Cm,{initDataToggle:()=>xm});function xm(e){if(km.has(e))return;km.add(e);let t=wm(e.dataset.toggle);if(!t)return;let i=e.dataset.toggleTarget,s=i?document.querySelector(i):e;if(!s)return;let n=s!==e;n&&s.id&&e.setAttribute("aria-controls",s.id),t.kind==="attr"&&yi(t.name)&&!n&&e.setAttribute("aria-pressed",String(s.hasAttribute(t.name))),Sm(e,s,t),e.addEventListener("click",r=>{r.preventDefault();let a={on:e.dataset.toggleOn,off:e.dataset.toggleOff},o;t.kind==="class"?o=s.classList.contains(t.name):yi(t.name)?o=s.hasAttribute(t.name):o=s.getAttribute(t.name);let c=Am(t,o,a);t.kind==="class"?c.present?s.classList.add(t.name):s.classList.remove(t.name):c.present?s.setAttribute(t.name,c.value??""):s.removeAttribute(t.name),!n&&yi(t.name)&&e.setAttribute("aria-pressed",String(c.present)),!n&&uc(t.name),Sm(e,s,t,c),e.dispatchEvent(new CustomEvent("toggle:change",{bubbles:!0,detail:{spec:t.kind==="class"?`class:${t.name}`:t.name,value:c.value,present:c.present,target:s}}))})}function Sm(e,t,i,s){if(t===e)return;let n=t.hasAttribute("popover"),r=i.kind==="attr"&&i.name.startsWith("data-")&&(e.dataset.toggleOn||"").toLowerCase()==="open";if(!n&&!r)return;let a;s?a=n?s.present:s.value==="open":a=n?t.matches(":popover-open"):t.getAttribute(i.name)==="open",e.setAttribute("aria-expanded",String(a))}var Ik,km,Tm=v(()=>{I();Em();Ik="[data-toggle]",km=new WeakSet;S(Ik,xm)});var Nm={};x(Nm,{decorateCardTable:()=>dc,initTableCard:()=>Dm});function vi(e,t){e.hasAttribute("role")||e.setAttribute("role",t)}function Rk(e){let t=e.tHead?.rows;if(!t?.length)return[];let i=[];for(let s of t[t.length-1].cells){let n=(s.textContent||"").replace(/\s+/g," ").trim();for(let r=0;r<s.colSpan;r++)i.push(n)}return i}function dc(e){vi(e,"table");let t=Rk(e);for(let i of[e.tHead,...e.tBodies,e.tFoot]){if(!i)continue;vi(i,"rowgroup");let s=i===e.tHead;for(let n of i.rows){vi(n,"row");let r=0;for(let a of n.cells){if(a.tagName==="TH"){let o=a.getAttribute("scope");vi(a,s||o==="col"||o==="colgroup"?"columnheader":"rowheader")}else vi(a,"cell");!s&&!a.hasAttribute("data-label")&&t[r]&&a.setAttribute("data-label",t[r]),r+=a.colSpan}}}}function Dm(e){let t=e;Lm.has(t)||(Lm.add(t),dc(t),new MutationObserver(()=>dc(t)).observe(t,{childList:!0,subtree:!0}))}var Bk,Lm,Mm=v(()=>{I();Bk='table[data-responsive="card"]',Lm=new WeakSet;S(Bk,Dm)});var Pm={};x(Pm,{EMOJI_ALIASES:()=>Rm,EMOJI_GROUPS:()=>Ok,EMOJI_GROUP_ICONS:()=>jk,EMOJI_GROUP_LABELS:()=>qk,EMOJI_MAP:()=>Ai,EXTENDED_EVENT:()=>Hk,EXTENDED_REGISTRY:()=>Fm,extendedCount:()=>zk,getByGroup:()=>Uk,resolveEmoji:()=>Vk,searchEmoji:()=>Wk});function tn(){for(;Bm<Im.length;){let e=Im[Bm++];for(let[t,i,s,n]of e){if(Ai.has(t))continue;let r={shortcode:t,emoji:i,name:s,keywords:[],group:n};Ai.set(t,r),Ei.push(r)}}}function zk(){return tn(),Ei.length}function Vk(e){tn();let t=Ai.get(e);if(t)return t;let i=Rm.get(e);return i&&Ai.get(i)||null}function Uk(e){tn();let t=Qs.filter(s=>s.group===e),i=Ei.filter(s=>s.group===e);return i.length>0?t.concat(i):t}function Wk(e){tn();let t=e.toLowerCase().trim(),i=Ei.length>0?Qs.concat(Ei):Qs;return t?i.filter(s=>s.shortcode.includes(t)||s.name.toLowerCase().includes(t)||s.keywords&&s.keywords.some(n=>n.includes(t))):i}var Qs,Ai,Rm,Ok,qk,jk,Fm,Hk,Im,Bm,Ei,Om=v(()=>{Qs=[{shortcode:"smile",emoji:"\u{1F604}",name:"Smiling Face with Open Mouth",keywords:["happy","joy","laugh"],group:"smileys"},{shortcode:"grinning",emoji:"\u{1F600}",name:"Grinning Face",keywords:["happy","smile"],group:"smileys"},{shortcode:"laughing",emoji:"\u{1F606}",name:"Grinning Squinting Face",keywords:["happy","laugh"],group:"smileys"},{shortcode:"sweat_smile",emoji:"\u{1F605}",name:"Grinning Face with Sweat",keywords:["hot","relief"],group:"smileys"},{shortcode:"rofl",emoji:"\u{1F923}",name:"Rolling on the Floor Laughing",keywords:["lol","funny"],group:"smileys"},{shortcode:"joy",emoji:"\u{1F602}",name:"Face with Tears of Joy",keywords:["happy","cry","laugh"],group:"smileys"},{shortcode:"slightly_smiling_face",emoji:"\u{1F642}",name:"Slightly Smiling Face",keywords:["smile"],group:"smileys"},{shortcode:"upside_down_face",emoji:"\u{1F643}",name:"Upside-Down Face",keywords:["sarcasm","silly"],group:"smileys"},{shortcode:"wink",emoji:"\u{1F609}",name:"Winking Face",keywords:["flirt","joke"],group:"smileys"},{shortcode:"blush",emoji:"\u{1F60A}",name:"Smiling Face with Smiling Eyes",keywords:["happy","shy"],group:"smileys"},{shortcode:"innocent",emoji:"\u{1F607}",name:"Smiling Face with Halo",keywords:["angel","good"],group:"smileys"},{shortcode:"heart_eyes",emoji:"\u{1F60D}",name:"Smiling Face with Heart-Eyes",keywords:["love","crush"],group:"smileys"},{shortcode:"star_struck",emoji:"\u{1F929}",name:"Star-Struck",keywords:["wow","amazing"],group:"smileys"},{shortcode:"kissing_heart",emoji:"\u{1F618}",name:"Face Blowing a Kiss",keywords:["love","kiss"],group:"smileys"},{shortcode:"yum",emoji:"\u{1F60B}",name:"Face Savoring Food",keywords:["delicious","tasty"],group:"smileys"},{shortcode:"stuck_out_tongue",emoji:"\u{1F61B}",name:"Face with Tongue",keywords:["playful","silly"],group:"smileys"},{shortcode:"stuck_out_tongue_winking_eye",emoji:"\u{1F61C}",name:"Winking Face with Tongue",keywords:["silly","playful"],group:"smileys"},{shortcode:"zany_face",emoji:"\u{1F92A}",name:"Zany Face",keywords:["crazy","wild"],group:"smileys"},{shortcode:"hugs",emoji:"\u{1F917}",name:"Hugging Face",keywords:["hug","warm"],group:"smileys"},{shortcode:"thinking",emoji:"\u{1F914}",name:"Thinking Face",keywords:["hmm","consider"],group:"smileys"},{shortcode:"shushing_face",emoji:"\u{1F92B}",name:"Shushing Face",keywords:["quiet","secret"],group:"smileys"},{shortcode:"smirk",emoji:"\u{1F60F}",name:"Smirking Face",keywords:["sly","suggestive"],group:"smileys"},{shortcode:"unamused",emoji:"\u{1F612}",name:"Unamused Face",keywords:["bored","unimpressed"],group:"smileys"},{shortcode:"roll_eyes",emoji:"\u{1F644}",name:"Face with Rolling Eyes",keywords:["annoyed","whatever"],group:"smileys"},{shortcode:"grimacing",emoji:"\u{1F62C}",name:"Grimacing Face",keywords:["awkward","nervous"],group:"smileys"},{shortcode:"relieved",emoji:"\u{1F60C}",name:"Relieved Face",keywords:["calm","peaceful"],group:"smileys"},{shortcode:"pensive",emoji:"\u{1F614}",name:"Pensive Face",keywords:["sad","thoughtful"],group:"smileys"},{shortcode:"sleepy",emoji:"\u{1F62A}",name:"Sleepy Face",keywords:["tired","sleep"],group:"smileys"},{shortcode:"sleeping",emoji:"\u{1F634}",name:"Sleeping Face",keywords:["zzz","sleep"],group:"smileys"},{shortcode:"mask",emoji:"\u{1F637}",name:"Face with Medical Mask",keywords:["sick","health"],group:"smileys"},{shortcode:"nerd_face",emoji:"\u{1F913}",name:"Nerd Face",keywords:["geek","smart"],group:"smileys"},{shortcode:"sunglasses",emoji:"\u{1F60E}",name:"Smiling Face with Sunglasses",keywords:["cool","chill"],group:"smileys"},{shortcode:"confused",emoji:"\u{1F615}",name:"Confused Face",keywords:["puzzled","unsure"],group:"smileys"},{shortcode:"worried",emoji:"\u{1F61F}",name:"Worried Face",keywords:["anxious","concern"],group:"smileys"},{shortcode:"cry",emoji:"\u{1F622}",name:"Crying Face",keywords:["sad","tear"],group:"smileys"},{shortcode:"sob",emoji:"\u{1F62D}",name:"Loudly Crying Face",keywords:["sad","cry"],group:"smileys"},{shortcode:"angry",emoji:"\u{1F620}",name:"Angry Face",keywords:["mad","annoyed"],group:"smileys"},{shortcode:"rage",emoji:"\u{1F92C}",name:"Face with Symbols on Mouth",keywords:["angry","swear"],group:"smileys"},{shortcode:"exploding_head",emoji:"\u{1F92F}",name:"Exploding Head",keywords:["mind blown","shocked"],group:"smileys"},{shortcode:"flushed",emoji:"\u{1F633}",name:"Flushed Face",keywords:["embarrassed","shocked"],group:"smileys"},{shortcode:"scream",emoji:"\u{1F631}",name:"Face Screaming in Fear",keywords:["scared","horror"],group:"smileys"},{shortcode:"skull",emoji:"\u{1F480}",name:"Skull",keywords:["dead","death"],group:"smileys"},{shortcode:"clown_face",emoji:"\u{1F921}",name:"Clown Face",keywords:["joke","funny"],group:"smileys"},{shortcode:"ghost",emoji:"\u{1F47B}",name:"Ghost",keywords:["halloween","spooky"],group:"smileys"},{shortcode:"wave",emoji:"\u{1F44B}",name:"Waving Hand",keywords:["hello","goodbye"],group:"people"},{shortcode:"raised_hand",emoji:"\u270B",name:"Raised Hand",keywords:["stop","high five"],group:"people"},{shortcode:"ok_hand",emoji:"\u{1F44C}",name:"OK Hand",keywords:["perfect","nice"],group:"people"},{shortcode:"thumbsup",emoji:"\u{1F44D}",name:"Thumbs Up",keywords:["approve","good","yes"],group:"people"},{shortcode:"thumbsdown",emoji:"\u{1F44E}",name:"Thumbs Down",keywords:["disapprove","bad","no"],group:"people"},{shortcode:"clap",emoji:"\u{1F44F}",name:"Clapping Hands",keywords:["applause","bravo"],group:"people"},{shortcode:"raised_hands",emoji:"\u{1F64C}",name:"Raising Hands",keywords:["celebration","hooray"],group:"people"},{shortcode:"pray",emoji:"\u{1F64F}",name:"Folded Hands",keywords:["thanks","please","hope"],group:"people"},{shortcode:"handshake",emoji:"\u{1F91D}",name:"Handshake",keywords:["deal","agreement"],group:"people"},{shortcode:"point_up",emoji:"\u261D\uFE0F",name:"Index Pointing Up",keywords:["attention","important"],group:"people"},{shortcode:"point_right",emoji:"\u{1F449}",name:"Backhand Index Pointing Right",keywords:["direction","this"],group:"people"},{shortcode:"point_left",emoji:"\u{1F448}",name:"Backhand Index Pointing Left",keywords:["direction","that"],group:"people"},{shortcode:"point_down",emoji:"\u{1F447}",name:"Backhand Index Pointing Down",keywords:["direction","below"],group:"people"},{shortcode:"v",emoji:"\u270C\uFE0F",name:"Victory Hand",keywords:["peace","two"],group:"people"},{shortcode:"crossed_fingers",emoji:"\u{1F91E}",name:"Crossed Fingers",keywords:["luck","hope"],group:"people"},{shortcode:"muscle",emoji:"\u{1F4AA}",name:"Flexed Biceps",keywords:["strong","power"],group:"people"},{shortcode:"writing_hand",emoji:"\u270D\uFE0F",name:"Writing Hand",keywords:["write","note"],group:"people"},{shortcode:"eyes",emoji:"\u{1F440}",name:"Eyes",keywords:["look","see","watch"],group:"people"},{shortcode:"brain",emoji:"\u{1F9E0}",name:"Brain",keywords:["smart","think","mind"],group:"people"},{shortcode:"speaking_head",emoji:"\u{1F5E3}\uFE0F",name:"Speaking Head",keywords:["talk","announce"],group:"people"},{shortcode:"baby",emoji:"\u{1F476}",name:"Baby",keywords:["child","newborn"],group:"people"},{shortcode:"person_shrugging",emoji:"\u{1F937}",name:"Person Shrugging",keywords:["dunno","whatever"],group:"people"},{shortcode:"person_facepalming",emoji:"\u{1F926}",name:"Person Facepalming",keywords:["frustration","disbelief"],group:"people"},{shortcode:"person_raising_hand",emoji:"\u{1F64B}",name:"Person Raising Hand",keywords:["question","volunteer"],group:"people"},{shortcode:"ninja",emoji:"\u{1F977}",name:"Ninja",keywords:["stealth","hidden"],group:"people"},{shortcode:"dog",emoji:"\u{1F436}",name:"Dog Face",keywords:["puppy","pet"],group:"animals"},{shortcode:"cat",emoji:"\u{1F431}",name:"Cat Face",keywords:["kitten","pet"],group:"animals"},{shortcode:"mouse",emoji:"\u{1F42D}",name:"Mouse Face",keywords:["rodent"],group:"animals"},{shortcode:"rabbit",emoji:"\u{1F430}",name:"Rabbit Face",keywords:["bunny","easter"],group:"animals"},{shortcode:"fox",emoji:"\u{1F98A}",name:"Fox",keywords:["clever","sly"],group:"animals"},{shortcode:"bear",emoji:"\u{1F43B}",name:"Bear",keywords:["teddy","nature"],group:"animals"},{shortcode:"unicorn",emoji:"\u{1F984}",name:"Unicorn",keywords:["magic","fantasy"],group:"animals"},{shortcode:"bee",emoji:"\u{1F41D}",name:"Honeybee",keywords:["honey","buzz"],group:"animals"},{shortcode:"butterfly",emoji:"\u{1F98B}",name:"Butterfly",keywords:["pretty","nature"],group:"animals"},{shortcode:"turtle",emoji:"\u{1F422}",name:"Turtle",keywords:["slow","shell"],group:"animals"},{shortcode:"snake",emoji:"\u{1F40D}",name:"Snake",keywords:["reptile"],group:"animals"},{shortcode:"whale",emoji:"\u{1F433}",name:"Spouting Whale",keywords:["ocean","sea"],group:"animals"},{shortcode:"dolphin",emoji:"\u{1F42C}",name:"Dolphin",keywords:["ocean","smart"],group:"animals"},{shortcode:"eagle",emoji:"\u{1F985}",name:"Eagle",keywords:["bird","freedom"],group:"animals"},{shortcode:"owl",emoji:"\u{1F989}",name:"Owl",keywords:["wise","night"],group:"animals"},{shortcode:"penguin",emoji:"\u{1F427}",name:"Penguin",keywords:["cold","linux"],group:"animals"},{shortcode:"octopus",emoji:"\u{1F419}",name:"Octopus",keywords:["ocean","tentacle"],group:"animals"},{shortcode:"seedling",emoji:"\u{1F331}",name:"Seedling",keywords:["plant","grow"],group:"animals"},{shortcode:"evergreen_tree",emoji:"\u{1F332}",name:"Evergreen Tree",keywords:["nature","pine"],group:"animals"},{shortcode:"sunflower",emoji:"\u{1F33B}",name:"Sunflower",keywords:["flower","yellow"],group:"animals"},{shortcode:"rose",emoji:"\u{1F339}",name:"Rose",keywords:["flower","love"],group:"animals"},{shortcode:"apple",emoji:"\u{1F34E}",name:"Red Apple",keywords:["fruit","healthy"],group:"food"},{shortcode:"banana",emoji:"\u{1F34C}",name:"Banana",keywords:["fruit","yellow"],group:"food"},{shortcode:"grapes",emoji:"\u{1F347}",name:"Grapes",keywords:["fruit","wine"],group:"food"},{shortcode:"watermelon",emoji:"\u{1F349}",name:"Watermelon",keywords:["fruit","summer"],group:"food"},{shortcode:"avocado",emoji:"\u{1F951}",name:"Avocado",keywords:["guacamole","healthy"],group:"food"},{shortcode:"pizza",emoji:"\u{1F355}",name:"Pizza",keywords:["food","italian"],group:"food"},{shortcode:"hamburger",emoji:"\u{1F354}",name:"Hamburger",keywords:["burger","fast food"],group:"food"},{shortcode:"taco",emoji:"\u{1F32E}",name:"Taco",keywords:["mexican","food"],group:"food"},{shortcode:"sushi",emoji:"\u{1F363}",name:"Sushi",keywords:["japanese","fish"],group:"food"},{shortcode:"cookie",emoji:"\u{1F36A}",name:"Cookie",keywords:["sweet","biscuit"],group:"food"},{shortcode:"cake",emoji:"\u{1F382}",name:"Birthday Cake",keywords:["birthday","celebration"],group:"food"},{shortcode:"ice_cream",emoji:"\u{1F366}",name:"Soft Ice Cream",keywords:["dessert","cold"],group:"food"},{shortcode:"chocolate_bar",emoji:"\u{1F36B}",name:"Chocolate Bar",keywords:["sweet","candy"],group:"food"},{shortcode:"popcorn",emoji:"\u{1F37F}",name:"Popcorn",keywords:["movie","snack"],group:"food"},{shortcode:"coffee",emoji:"\u2615",name:"Hot Beverage",keywords:["tea","drink","morning"],group:"food"},{shortcode:"beer",emoji:"\u{1F37A}",name:"Beer Mug",keywords:["drink","bar"],group:"food"},{shortcode:"wine_glass",emoji:"\u{1F377}",name:"Wine Glass",keywords:["drink","alcohol"],group:"food"},{shortcode:"cocktail",emoji:"\u{1F378}",name:"Cocktail Glass",keywords:["drink","martini"],group:"food"},{shortcode:"hot_pepper",emoji:"\u{1F336}\uFE0F",name:"Hot Pepper",keywords:["spicy","chili"],group:"food"},{shortcode:"egg",emoji:"\u{1F95A}",name:"Egg",keywords:["breakfast","food"],group:"food"},{shortcode:"earth_americas",emoji:"\u{1F30E}",name:"Globe Americas",keywords:["world","planet"],group:"travel"},{shortcode:"earth_europe",emoji:"\u{1F30D}",name:"Globe Europe-Africa",keywords:["world","planet"],group:"travel"},{shortcode:"sun",emoji:"\u2600\uFE0F",name:"Sun",keywords:["weather","bright","warm"],group:"travel"},{shortcode:"moon",emoji:"\u{1F319}",name:"Crescent Moon",keywords:["night","sleep"],group:"travel"},{shortcode:"star",emoji:"\u2B50",name:"Star",keywords:["favorite","rating"],group:"travel"},{shortcode:"star2",emoji:"\u{1F31F}",name:"Glowing Star",keywords:["sparkle","shine"],group:"travel"},{shortcode:"cloud",emoji:"\u2601\uFE0F",name:"Cloud",keywords:["weather","sky"],group:"travel"},{shortcode:"rainbow",emoji:"\u{1F308}",name:"Rainbow",keywords:["colorful","weather"],group:"travel"},{shortcode:"snowflake",emoji:"\u2744\uFE0F",name:"Snowflake",keywords:["cold","winter"],group:"travel"},{shortcode:"zap",emoji:"\u26A1",name:"High Voltage",keywords:["lightning","electric","fast"],group:"travel"},{shortcode:"fire",emoji:"\u{1F525}",name:"Fire",keywords:["hot","flame","lit"],group:"travel"},{shortcode:"ocean",emoji:"\u{1F30A}",name:"Water Wave",keywords:["sea","wave","surf"],group:"travel"},{shortcode:"airplane",emoji:"\u2708\uFE0F",name:"Airplane",keywords:["travel","flight"],group:"travel"},{shortcode:"rocket",emoji:"\u{1F680}",name:"Rocket",keywords:["launch","space","fast"],group:"travel"},{shortcode:"car",emoji:"\u{1F697}",name:"Automobile",keywords:["drive","vehicle"],group:"travel"},{shortcode:"house",emoji:"\u{1F3E0}",name:"House",keywords:["home","building"],group:"travel"},{shortcode:"tent",emoji:"\u26FA",name:"Tent",keywords:["camping","outdoor"],group:"travel"},{shortcode:"mountain",emoji:"\u26F0\uFE0F",name:"Mountain",keywords:["nature","hike"],group:"travel"},{shortcode:"desert_island",emoji:"\u{1F3DD}\uFE0F",name:"Desert Island",keywords:["beach","vacation"],group:"travel"},{shortcode:"volcano",emoji:"\u{1F30B}",name:"Volcano",keywords:["eruption","nature"],group:"travel"},{shortcode:"soccer",emoji:"\u26BD",name:"Soccer Ball",keywords:["football","sport"],group:"activities"},{shortcode:"basketball",emoji:"\u{1F3C0}",name:"Basketball",keywords:["sport","hoop"],group:"activities"},{shortcode:"tennis",emoji:"\u{1F3BE}",name:"Tennis",keywords:["sport","ball"],group:"activities"},{shortcode:"video_game",emoji:"\u{1F3AE}",name:"Video Game",keywords:["gaming","controller"],group:"activities"},{shortcode:"dart",emoji:"\u{1F3AF}",name:"Bullseye",keywords:["target","goal"],group:"activities"},{shortcode:"trophy",emoji:"\u{1F3C6}",name:"Trophy",keywords:["winner","champion"],group:"activities"},{shortcode:"medal",emoji:"\u{1F947}",name:"Gold Medal",keywords:["first","winner"],group:"activities"},{shortcode:"tada",emoji:"\u{1F389}",name:"Party Popper",keywords:["celebration","party"],group:"activities"},{shortcode:"confetti_ball",emoji:"\u{1F38A}",name:"Confetti Ball",keywords:["party","celebration"],group:"activities"},{shortcode:"balloon",emoji:"\u{1F388}",name:"Balloon",keywords:["party","birthday"],group:"activities"},{shortcode:"art",emoji:"\u{1F3A8}",name:"Artist Palette",keywords:["paint","creative"],group:"activities"},{shortcode:"musical_note",emoji:"\u{1F3B5}",name:"Musical Note",keywords:["music","song"],group:"activities"},{shortcode:"microphone",emoji:"\u{1F3A4}",name:"Microphone",keywords:["sing","karaoke"],group:"activities"},{shortcode:"guitar",emoji:"\u{1F3B8}",name:"Guitar",keywords:["music","rock"],group:"activities"},{shortcode:"dice",emoji:"\u{1F3B2}",name:"Game Die",keywords:["chance","random"],group:"activities"},{shortcode:"bulb",emoji:"\u{1F4A1}",name:"Light Bulb",keywords:["idea","bright"],group:"objects"},{shortcode:"computer",emoji:"\u{1F4BB}",name:"Laptop",keywords:["tech","work"],group:"objects"},{shortcode:"keyboard",emoji:"\u2328\uFE0F",name:"Keyboard",keywords:["type","computer"],group:"objects"},{shortcode:"phone",emoji:"\u{1F4F1}",name:"Mobile Phone",keywords:["cell","call"],group:"objects"},{shortcode:"camera",emoji:"\u{1F4F7}",name:"Camera",keywords:["photo","picture"],group:"objects"},{shortcode:"tv",emoji:"\u{1F4FA}",name:"Television",keywords:["watch","screen"],group:"objects"},{shortcode:"battery",emoji:"\u{1F50B}",name:"Battery",keywords:["charge","power"],group:"objects"},{shortcode:"electric_plug",emoji:"\u{1F50C}",name:"Electric Plug",keywords:["power","connect"],group:"objects"},{shortcode:"mag",emoji:"\u{1F50D}",name:"Magnifying Glass Left",keywords:["search","find"],group:"objects"},{shortcode:"lock",emoji:"\u{1F512}",name:"Locked",keywords:["security","private"],group:"objects"},{shortcode:"unlock",emoji:"\u{1F513}",name:"Unlocked",keywords:["open","access"],group:"objects"},{shortcode:"key",emoji:"\u{1F511}",name:"Key",keywords:["access","password"],group:"objects"},{shortcode:"hammer",emoji:"\u{1F528}",name:"Hammer",keywords:["tool","build"],group:"objects"},{shortcode:"wrench",emoji:"\u{1F527}",name:"Wrench",keywords:["tool","fix"],group:"objects"},{shortcode:"gear",emoji:"\u2699\uFE0F",name:"Gear",keywords:["settings","config"],group:"objects"},{shortcode:"link",emoji:"\u{1F517}",name:"Link",keywords:["chain","url"],group:"objects"},{shortcode:"paperclip",emoji:"\u{1F4CE}",name:"Paperclip",keywords:["attach","clip"],group:"objects"},{shortcode:"scissors",emoji:"\u2702\uFE0F",name:"Scissors",keywords:["cut","snip"],group:"objects"},{shortcode:"pen",emoji:"\u{1F58A}\uFE0F",name:"Pen",keywords:["write","sign"],group:"objects"},{shortcode:"pencil",emoji:"\u270F\uFE0F",name:"Pencil",keywords:["write","draw"],group:"objects"},{shortcode:"book",emoji:"\u{1F4D6}",name:"Open Book",keywords:["read","study"],group:"objects"},{shortcode:"memo",emoji:"\u{1F4DD}",name:"Memo",keywords:["note","write"],group:"objects"},{shortcode:"package",emoji:"\u{1F4E6}",name:"Package",keywords:["box","delivery"],group:"objects"},{shortcode:"mailbox",emoji:"\u{1F4EC}",name:"Open Mailbox with Raised Flag",keywords:["mail","letter"],group:"objects"},{shortcode:"bell",emoji:"\u{1F514}",name:"Bell",keywords:["notification","alert"],group:"objects"},{shortcode:"red_heart",emoji:"\u2764\uFE0F",name:"Red Heart",keywords:["love","valentine"],group:"symbols"},{shortcode:"orange_heart",emoji:"\u{1F9E1}",name:"Orange Heart",keywords:["love"],group:"symbols"},{shortcode:"yellow_heart",emoji:"\u{1F49B}",name:"Yellow Heart",keywords:["love","friendship"],group:"symbols"},{shortcode:"green_heart",emoji:"\u{1F49A}",name:"Green Heart",keywords:["love","nature"],group:"symbols"},{shortcode:"blue_heart",emoji:"\u{1F499}",name:"Blue Heart",keywords:["love","trust"],group:"symbols"},{shortcode:"purple_heart",emoji:"\u{1F49C}",name:"Purple Heart",keywords:["love"],group:"symbols"},{shortcode:"broken_heart",emoji:"\u{1F494}",name:"Broken Heart",keywords:["sad","breakup"],group:"symbols"},{shortcode:"sparkles",emoji:"\u2728",name:"Sparkles",keywords:["shine","magic","new"],group:"symbols"},{shortcode:"hundred",emoji:"\u{1F4AF}",name:"Hundred Points",keywords:["perfect","score"],group:"symbols"},{shortcode:"boom",emoji:"\u{1F4A5}",name:"Collision",keywords:["explosion","impact"],group:"symbols"},{shortcode:"speech_balloon",emoji:"\u{1F4AC}",name:"Speech Balloon",keywords:["talk","chat","message"],group:"symbols"},{shortcode:"thought_balloon",emoji:"\u{1F4AD}",name:"Thought Balloon",keywords:["think","dream"],group:"symbols"},{shortcode:"check_mark",emoji:"\u2705",name:"Check Mark Button",keywords:["done","yes","complete"],group:"symbols"},{shortcode:"x",emoji:"\u274C",name:"Cross Mark",keywords:["no","wrong","delete"],group:"symbols"},{shortcode:"warning",emoji:"\u26A0\uFE0F",name:"Warning",keywords:["caution","alert"],group:"symbols"},{shortcode:"no_entry",emoji:"\u26D4",name:"No Entry",keywords:["stop","forbidden"],group:"symbols"},{shortcode:"question",emoji:"\u2753",name:"Question Mark",keywords:["help","what"],group:"symbols"},{shortcode:"exclamation",emoji:"\u2757",name:"Exclamation Mark",keywords:["important","attention"],group:"symbols"},{shortcode:"arrow_right",emoji:"\u27A1\uFE0F",name:"Right Arrow",keywords:["next","forward"],group:"symbols"},{shortcode:"arrow_left",emoji:"\u2B05\uFE0F",name:"Left Arrow",keywords:["back","previous"],group:"symbols"},{shortcode:"arrow_up",emoji:"\u2B06\uFE0F",name:"Up Arrow",keywords:["above"],group:"symbols"},{shortcode:"arrow_down",emoji:"\u2B07\uFE0F",name:"Down Arrow",keywords:["below"],group:"symbols"},{shortcode:"recycle",emoji:"\u267B\uFE0F",name:"Recycling Symbol",keywords:["environment","green"],group:"symbols"},{shortcode:"infinity",emoji:"\u267E\uFE0F",name:"Infinity",keywords:["forever","loop"],group:"symbols"},{shortcode:"checkered_flag",emoji:"\u{1F3C1}",name:"Chequered Flag",keywords:["finish","race"],group:"flags"},{shortcode:"triangular_flag",emoji:"\u{1F6A9}",name:"Triangular Flag",keywords:["red flag","warning"],group:"flags"},{shortcode:"white_flag",emoji:"\u{1F3F3}\uFE0F",name:"White Flag",keywords:["surrender","peace"],group:"flags"},{shortcode:"rainbow_flag",emoji:"\u{1F3F3}\uFE0F\u200D\u{1F308}",name:"Rainbow Flag",keywords:["pride","lgbtq"],group:"flags"},{shortcode:"pirate_flag",emoji:"\u{1F3F4}\u200D\u2620\uFE0F",name:"Pirate Flag",keywords:["jolly roger","skull"],group:"flags"},{shortcode:"flag_us",emoji:"\u{1F1FA}\u{1F1F8}",name:"Flag: United States",keywords:["usa","america"],group:"flags"},{shortcode:"flag_gb",emoji:"\u{1F1EC}\u{1F1E7}",name:"Flag: United Kingdom",keywords:["uk","britain"],group:"flags"},{shortcode:"flag_fr",emoji:"\u{1F1EB}\u{1F1F7}",name:"Flag: France",keywords:["french"],group:"flags"},{shortcode:"flag_de",emoji:"\u{1F1E9}\u{1F1EA}",name:"Flag: Germany",keywords:["german"],group:"flags"},{shortcode:"flag_jp",emoji:"\u{1F1EF}\u{1F1F5}",name:"Flag: Japan",keywords:["japanese"],group:"flags"},{shortcode:"flag_kr",emoji:"\u{1F1F0}\u{1F1F7}",name:"Flag: South Korea",keywords:["korean"],group:"flags"},{shortcode:"flag_br",emoji:"\u{1F1E7}\u{1F1F7}",name:"Flag: Brazil",keywords:["brazilian"],group:"flags"},{shortcode:"flag_in",emoji:"\u{1F1EE}\u{1F1F3}",name:"Flag: India",keywords:["indian"],group:"flags"},{shortcode:"flag_ca",emoji:"\u{1F1E8}\u{1F1E6}",name:"Flag: Canada",keywords:["canadian","maple"],group:"flags"},{shortcode:"flag_au",emoji:"\u{1F1E6}\u{1F1FA}",name:"Flag: Australia",keywords:["australian"],group:"flags"}],Ai=new Map(Qs.map(e=>[e.shortcode,e])),Rm=new Map([["+1","thumbsup"],["-1","thumbsdown"],["heart","red_heart"],["thumbs_up","thumbsup"],["thumbs_down","thumbsdown"],["grin","grinning"],["laughing_crying","joy"],["lol","rofl"],["smiley","smile"],["cool","sunglasses"],["nerd","nerd_face"],["kiss","kissing_heart"],["hug","hugs"],["think","thinking"],["sad","cry"],["mad","angry"],["shrug","person_shrugging"],["facepalm","person_facepalming"],["pray_hands","pray"],["hi","wave"],["bye","wave"],["lightning","zap"],["flame","fire"],["hot","fire"],["bomb","boom"],["idea","bulb"],["laptop","computer"],["search","mag"],["party","tada"],["celebrate","tada"],["congrats","tada"],["check","check_mark"],["done","check_mark"],["yes","check_mark"],["no","x"],["wrong","x"],["love","red_heart"],["star_eyes","star_struck"],["mindblown","exploding_head"],["memo_pad","memo"],["notes","memo"],["coffee_cup","coffee"],["tea","coffee"]]),Ok=["smileys","people","animals","food","travel","activities","objects","symbols","flags"],qk={smileys:"Smileys & Emotion",people:"People & Body",animals:"Animals & Nature",food:"Food & Drink",travel:"Travel & Places",activities:"Activities",objects:"Objects",symbols:"Symbols",flags:"Flags"},jk={smileys:"\u{1F600}",people:"\u{1F44B}",animals:"\u{1F436}",food:"\u{1F355}",travel:"\u{1F30D}",activities:"\u{1F389}",objects:"\u{1F4A1}",symbols:"\u2764\uFE0F",flags:"\u{1F3C1}"},Fm=Symbol.for("vanilla-breeze.emoji-extended"),Hk="vb:emoji-extended",Im=globalThis[Fm]??=[],Bm=0,Ei=[]});var Wm={};x(Wm,{initEmoji:()=>Zk,replaceShortcodeText:()=>en});async function jm(){if(Dt)return;Dt=(await Promise.resolve().then(()=>(Om(),Pm))).resolveEmoji}function en(e,t="keep"){if(!Dt||!e.includes(":"))return e;let i=Dt;return e.replace(Hm,(s,n)=>{let r=i(n);return r?r.emoji:t==="strip"&&Gk.test(n)?"":s})}async function Zk(e=document){let t=e.querySelectorAll(mc);t.length!==0&&(await jm(),t.forEach(Vm))}function Jk(e){return e.getAttribute("data-emoji-unknown")==="strip"?"strip":"keep"}function Vm(e){if(Kt.has(e)||!e.hasAttribute("data-emoji"))return;if(e.removeAttribute("data-emoji-init"),zm.has(e.tagName)){Kt.set(e,tS(e));return}if(pc(e),e.getAttribute("data-emoji-scan")!=="observe"){Kt.set(e,()=>{});return}let t=null,i=new MutationObserver(()=>{t&&clearTimeout(t),t=setTimeout(()=>{t=null,pc(e)},Yk)});i.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:fc}),Kt.set(e,()=>{i.disconnect(),t&&clearTimeout(t)})}function Qk(e){let t=Kt.get(e);t&&(t(),Kt.delete(e))}function tS(e){let t=!1,i=!1,s=()=>{t=!0},n=()=>{t=!1,a(!0)},r=o=>{let{isComposing:c,inputType:l}=o;t||c||l==="historyUndo"||l==="historyRedo"||a(!!l&&!Xk.has(l))};function a(o=!1){if(!i){i=!0;try{eS(e,o)}finally{i=!1}}}return e.addEventListener("compositionstart",s),e.addEventListener("compositionend",n),e.addEventListener("input",r),e.value&&a(),()=>{e.removeEventListener("compositionstart",s),e.removeEventListener("compositionend",n),e.removeEventListener("input",r)}}function eS(e,t=!1){if(!Dt)return;let i=e.value,s=e.selectionStart,n=[];for(let o of i.matchAll(Hm)){let c=o.index??0,l=c+o[0].length;if(t&&s!==null&&l!==s)continue;let u=Dt(o[1]);u&&n.push({start:c,end:l,emoji:u.emoji})}if(n.length===0)return;if(e.selectionStart===null){e.value=en(i,"keep");return}let r=e.selectionStart??i.length,a=document.activeElement===e&&typeof document.execCommand=="function";for(let o=n.length-1;o>=0;o--){let{start:c,end:l,emoji:u}=n[o];r>=l?r-=l-c-u.length:r>c&&(r=c+u.length);let d=!1;if(a){e.setSelectionRange(c,l);try{d=document.execCommand("insertText",!1,u)&&e.value.slice(c,c+u.length)===u}catch{d=!1}}d||e.setRangeText(u,c,l)}e.setSelectionRange(r,r)}function qm(e,t){if(e.isContentEditable)return!0;let i=e.closest(Kk);return!!(i&&i!==t&&t.contains(i))}function pc(e){if(!Dt)return;let t=Jk(e),i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(a){let o=a.parentElement;return!o||qm(o,e)?NodeFilter.FILTER_REJECT:(a.textContent??"").includes(":")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),s=[];for(;i.nextNode();)s.push(i.currentNode);for(let a of s){let o=a.textContent??"",c=en(o,t);c!==o&&(a.textContent=c)}let n=fc.map(a=>`[${a}*=":"]`).join(","),r=[e,...e.querySelectorAll(n)];for(let a of r)if(!(a!==e&&qm(a,e)))for(let o of fc){let c=a.getAttribute(o);if(!c)continue;let l=en(c,t);l!==c&&a.setAttribute(o,l)}}function Um(e){jm().then(()=>Vm(e))}var Dt,mc,Hm,Gk,Kk,fc,zm,Yk,Xk,Kt,Gm=v(()=>{I();Dt=null;mc="[data-emoji]",Hm=/(?<![\p{L}\p{N}_]):([a-z0-9_+-]+):/gu,Gk=/[a-z]/,Kk="script,style,code,pre,kbd,samp,var,textarea,code-block,[data-emoji-skip]",fc=["alt","title","aria-label"],zm=new Set(["INPUT","TEXTAREA"]),Yk=100,Xk=new Set(["insertFromPaste","insertFromDrop","insertReplacementText","insertFromYank"]),Kt=new WeakMap;document.addEventListener("vb:emoji-extended",()=>{if(Dt)for(let e of document.querySelectorAll(mc))!Kt.has(e)||zm.has(e.tagName)||pc(e)});S(mc,Um);new MutationObserver(e=>{for(let{target:t}of e){let i=t;i.hasAttribute("data-emoji")?Um(i):Qk(i)}}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-emoji"],subtree:!0})});var Xm={};x(Xm,{getRegisteredCommands:()=>Km,initCommands:()=>bc,scanAutoDiscoverable:()=>Ym});function sn(e){if(nt.has(e)||e.hasAttribute("data-command-init"))return;e.setAttribute("data-command-init","");let t=e.getAttribute("data-command")||e.textContent.trim();if(!t)return;let i=e.getAttribute("data-command-group")||iS,s=e.getAttribute("data-command-icon")||null,n=e.getAttribute("data-shortcut")||null,r=null;n&&(r=At(n,()=>e.click()));let a={element:e,label:t,group:i,icon:s,shortcut:n,unbind:r};nt.set(e,a),document.dispatchEvent(new CustomEvent("vb:command-registry-change",{detail:{action:"add",entry:a}}))}function gc(e){let t=nt.get(e);t&&(t.unbind?.(),nt.delete(e),e.removeAttribute("data-command-init"),document.dispatchEvent(new CustomEvent("vb:command-registry-change",{detail:{action:"remove",element:e}})))}function Km(){let e=new Map;for(let t of nt.values()){if(t.element.hidden||t.element.closest("[hidden]"))continue;let i=e.get(t.group)||[];i.push(t),e.set(t.group,i)}return e}function bc(e=document){e.querySelectorAll(Le).forEach(sn)}function Ym(){let e='footer, aside, dialog, [hidden], [aria-hidden="true"]',i=[];return document.querySelectorAll("nav a[href]").forEach(s=>{if(s.closest(e)||nt.has(s))return;let n=s.textContent.trim();!n||i.length>=50||i.push({element:s,label:n,group:"Navigation",icon:null,shortcut:null,auto:!0,action:null})}),document.querySelectorAll("h2[id], h3[id]").forEach(s=>{if(s.closest(e)||nt.has(s))return;let n=s.textContent.trim();!n||i.length>=50||i.push({element:s,label:`Jump to: ${n}`,group:"On This Page",icon:null,shortcut:null,auto:!0,action:()=>s.scrollIntoView({behavior:"smooth"})})}),i}var Le,iS,nt,sS,Zm=v(()=>{Ve();Le="[data-command], [commandfor]",iS="Page Actions",nt=new Map;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>bc()):bc();sS=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Le)&&sn(s),s.querySelectorAll(Le).forEach(sn)}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;nt.has(s)&&gc(s),s.querySelectorAll(Le).forEach(n=>{nt.has(n)&&gc(n)})}if(t.type==="attributes"&&t.target.nodeType===Node.ELEMENT_NODE){let i=t.target;i.matches(Le)&&!nt.has(i)?sn(i):!i.matches(Le)&&nt.has(i)&&gc(i)}}});sS.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-command","commandfor"]});window.__commandRegistry={getRegisteredCommands:Km,scanAutoDiscoverable:Ym}});function Ac(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function ng(e){Zt=e}function M(e,t=""){let i=typeof e=="string"?e:e.source,s={replace:(n,r)=>{let a=typeof r=="string"?r:r.source;return a=a.replace(Z.caret,"$1"),i=i.replace(n,a),s},getRegex:()=>new RegExp(i,t)};return s}function ft(e,t){if(t){if(Z.escapeTest.test(e))return e.replace(Z.escapeReplace,tg)}else if(Z.escapeTestNoEncode.test(e))return e.replace(Z.escapeReplaceNoEncode,tg);return e}function eg(e){try{e=encodeURI(e).replace(Z.percentDecode,"%")}catch{return null}return e}function ig(e,t){let i=e.replace(Z.findPipe,(r,a,o)=>{let c=!1,l=a;for(;--l>=0&&o[l]==="\\";)c=!c;return c?"|":" |"}),s=i.split(Z.splitPipe),n=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(Z.slashPipe,"|");return s}function Si(e,t,i){let s=e.length;if(s===0)return"";let n=0;for(;n<s;){let r=e.charAt(s-n-1);if(r===t&&!i)n++;else if(r!==t&&i)n++;else break}return e.slice(0,s-n)}function jS(e,t){if(e.indexOf(t[1])===-1)return-1;let i=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])i++;else if(e[s]===t[1]&&(i--,i<0))return s;return i>0?-2:-1}function HS(e,t=0){let i=t,s="";for(let n of e)if(n===" "){let r=4-i%4;s+=" ".repeat(r),i+=r}else s+=n,i++;return s}function sg(e,t,i,s,n){let r=t.href,a=t.title||null,o=e[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:e[0].charAt(0)==="!"?"image":"link",raw:i,href:r,title:a,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,c}function zS(e,t,i){let s=e.match(i.other.indentCodeCompensation);if(s===null)return t;let n=s[1];return t.split(`
7
7
  `).map(r=>{let a=r.match(i.other.beginningSpace);if(a===null)return r;let[o]=a;return o.length>=n.length?r.slice(n.length):r}).join(`
8
- `)}function M(e,t){return Zt.parse(e,t)}var Jt,Xt,oS,Z,cS,lS,uS,Li,dS,Ec,og,cg,hS,kc,fS,Sc,pS,mS,ln,xc,gS,lg,bS,Cc,tg,yS,vS,wS,AS,ug,ES,Me,un,Tc,kS,dg,SS,xS,CS,hg,TS,LS,fg,DS,NS,MS,_S,$S,IS,BS,RS,FS,PS,an,OS,pg,mg,qS,eg,Lc,jS,yc,HS,rn,xi,zS,ig,on,rt,cn,Dc,at,Ti,GS,Zt,qM,jM,HM,zM,VM,UM,WM,gg=v(()=>{Jt=Ac();Xt={exec:()=>null};oS=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Z={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},cS=/^(?:[ \t]*(?:\n|$))+/,lS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,uS=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Li=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,dS=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ec=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,og=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,cg=N(og).replace(/bull/g,Ec).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),hS=N(og).replace(/bull/g,Ec).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),kc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,fS=/^[^\n]+/,Sc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,pS=N(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Sc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),mS=N(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ec).getRegex(),ln="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",xc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,gS=N("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",xc).replace("tag",ln).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lg=N(kc).replace("hr",Li).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ln).getRegex(),bS=N(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lg).getRegex(),Cc={blockquote:bS,code:lS,def:pS,fences:uS,heading:dS,hr:Li,html:gS,lheading:cg,list:mS,newline:cS,paragraph:lg,table:Xt,text:fS},tg=N("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Li).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ln).getRegex(),yS={...Cc,lheading:hS,table:tg,paragraph:N(kc).replace("hr",Li).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",tg).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ln).getRegex()},vS={...Cc,html:N(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",xc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Xt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:N(kc).replace("hr",Li).replace("heading",` *#{1,6} *[^
9
- ]`).replace("lheading",cg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},wS=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,AS=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ug=/^( {2,}|\\)\n(?!\s*$)/,ES=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Me=/[\p{P}\p{S}]/u,un=/[\s\p{P}\p{S}]/u,Tc=/[^\s\p{P}\p{S}]/u,kS=N(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,un).getRegex(),dg=/(?!~)[\p{P}\p{S}]/u,SS=/(?!~)[\s\p{P}\p{S}]/u,xS=/(?:[^\s\p{P}\p{S}]|~)/u,CS=N(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",oS?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),hg=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,TS=N(hg,"u").replace(/punct/g,Me).getRegex(),LS=N(hg,"u").replace(/punct/g,dg).getRegex(),fg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",DS=N(fg,"gu").replace(/notPunctSpace/g,Tc).replace(/punctSpace/g,un).replace(/punct/g,Me).getRegex(),NS=N(fg,"gu").replace(/notPunctSpace/g,xS).replace(/punctSpace/g,SS).replace(/punct/g,dg).getRegex(),MS=N("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Tc).replace(/punctSpace/g,un).replace(/punct/g,Me).getRegex(),_S=N(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Me).getRegex(),$S="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",IS=N($S,"gu").replace(/notPunctSpace/g,Tc).replace(/punctSpace/g,un).replace(/punct/g,Me).getRegex(),BS=N(/\\(punct)/,"gu").replace(/punct/g,Me).getRegex(),RS=N(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),FS=N(xc).replace("(?:-->|$)","-->").getRegex(),PS=N("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",FS).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),an=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,OS=N(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",an).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),pg=N(/^!?\[(label)\]\[(ref)\]/).replace("label",an).replace("ref",Sc).getRegex(),mg=N(/^!?\[(ref)\](?:\[\])?/).replace("ref",Sc).getRegex(),qS=N("reflink|nolink(?!\\()","g").replace("reflink",pg).replace("nolink",mg).getRegex(),eg=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Lc={_backpedal:Xt,anyPunctuation:BS,autolink:RS,blockSkip:CS,br:ug,code:AS,del:Xt,delLDelim:Xt,delRDelim:Xt,emStrongLDelim:TS,emStrongRDelimAst:DS,emStrongRDelimUnd:MS,escape:wS,link:OS,nolink:mg,punctuation:kS,reflink:pg,reflinkSearch:qS,tag:PS,text:ES,url:Xt},jS={...Lc,link:N(/^!?\[(label)\]\((.*?)\)/).replace("label",an).getRegex(),reflink:N(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",an).getRegex()},yc={...Lc,emStrongRDelimAst:NS,emStrongLDelim:LS,delLDelim:_S,delRDelim:IS,url:N(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",eg).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:N(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",eg).getRegex()},HS={...yc,br:N(ug).replace("{2,}","*").getRegex(),text:N(yc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},rn={normal:Cc,gfm:yS,pedantic:vS},xi={normal:Lc,gfm:yc,breaks:HS,pedantic:jS},zS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ig=e=>zS[e];on=class{options;rules;lexer;constructor(e){this.options=e||Jt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let i=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Ci(i,`
10
- `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let i=t[0],s=WS(i,t[3]||"",this.rules);return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let i=t[2].trim();if(this.rules.other.endingHash.test(i)){let s=Ci(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ci(t[0],`
11
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let i=Ci(t[0],`
8
+ `)}function _(e,t){return Xt.parse(e,t)}var Zt,Yt,nS,Z,rS,aS,oS,Ci,cS,Ec,rg,ag,lS,kc,uS,Sc,dS,hS,cn,xc,fS,og,pS,Cc,Jm,mS,gS,bS,yS,cg,vS,De,ln,Tc,wS,lg,AS,ES,kS,ug,SS,xS,dg,CS,TS,LS,DS,NS,MS,_S,$S,IS,BS,rn,RS,hg,fg,FS,Qm,Lc,PS,yc,OS,nn,ki,qS,tg,an,rt,on,Dc,at,xi,VS,Xt,RM,FM,PM,OM,qM,jM,HM,pg=v(()=>{Zt=Ac();Yt={exec:()=>null};nS=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Z={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},rS=/^(?:[ \t]*(?:\n|$))+/,aS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,oS=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ci=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,cS=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ec=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,rg=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ag=M(rg).replace(/bull/g,Ec).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),lS=M(rg).replace(/bull/g,Ec).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),kc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,uS=/^[^\n]+/,Sc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,dS=M(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Sc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),hS=M(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ec).getRegex(),cn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",xc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,fS=M("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",xc).replace("tag",cn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),og=M(kc).replace("hr",Ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",cn).getRegex(),pS=M(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",og).getRegex(),Cc={blockquote:pS,code:aS,def:dS,fences:oS,heading:cS,hr:Ci,html:fS,lheading:ag,list:hS,newline:rS,paragraph:og,table:Yt,text:uS},Jm=M("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",cn).getRegex(),mS={...Cc,lheading:lS,table:Jm,paragraph:M(kc).replace("hr",Ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Jm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",cn).getRegex()},gS={...Cc,html:M(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",xc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Yt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:M(kc).replace("hr",Ci).replace("heading",` *#{1,6} *[^
9
+ ]`).replace("lheading",ag).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},bS=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,yS=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,cg=/^( {2,}|\\)\n(?!\s*$)/,vS=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,De=/[\p{P}\p{S}]/u,ln=/[\s\p{P}\p{S}]/u,Tc=/[^\s\p{P}\p{S}]/u,wS=M(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ln).getRegex(),lg=/(?!~)[\p{P}\p{S}]/u,AS=/(?!~)[\s\p{P}\p{S}]/u,ES=/(?:[^\s\p{P}\p{S}]|~)/u,kS=M(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",nS?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ug=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,SS=M(ug,"u").replace(/punct/g,De).getRegex(),xS=M(ug,"u").replace(/punct/g,lg).getRegex(),dg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",CS=M(dg,"gu").replace(/notPunctSpace/g,Tc).replace(/punctSpace/g,ln).replace(/punct/g,De).getRegex(),TS=M(dg,"gu").replace(/notPunctSpace/g,ES).replace(/punctSpace/g,AS).replace(/punct/g,lg).getRegex(),LS=M("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Tc).replace(/punctSpace/g,ln).replace(/punct/g,De).getRegex(),DS=M(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,De).getRegex(),NS="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",MS=M(NS,"gu").replace(/notPunctSpace/g,Tc).replace(/punctSpace/g,ln).replace(/punct/g,De).getRegex(),_S=M(/\\(punct)/,"gu").replace(/punct/g,De).getRegex(),$S=M(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),IS=M(xc).replace("(?:-->|$)","-->").getRegex(),BS=M("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",IS).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),rn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,RS=M(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",rn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),hg=M(/^!?\[(label)\]\[(ref)\]/).replace("label",rn).replace("ref",Sc).getRegex(),fg=M(/^!?\[(ref)\](?:\[\])?/).replace("ref",Sc).getRegex(),FS=M("reflink|nolink(?!\\()","g").replace("reflink",hg).replace("nolink",fg).getRegex(),Qm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Lc={_backpedal:Yt,anyPunctuation:_S,autolink:$S,blockSkip:kS,br:cg,code:yS,del:Yt,delLDelim:Yt,delRDelim:Yt,emStrongLDelim:SS,emStrongRDelimAst:CS,emStrongRDelimUnd:LS,escape:bS,link:RS,nolink:fg,punctuation:wS,reflink:hg,reflinkSearch:FS,tag:BS,text:vS,url:Yt},PS={...Lc,link:M(/^!?\[(label)\]\((.*?)\)/).replace("label",rn).getRegex(),reflink:M(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",rn).getRegex()},yc={...Lc,emStrongRDelimAst:TS,emStrongLDelim:xS,delLDelim:DS,delRDelim:MS,url:M(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Qm).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:M(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Qm).getRegex()},OS={...yc,br:M(cg).replace("{2,}","*").getRegex(),text:M(yc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},nn={normal:Cc,gfm:mS,pedantic:gS},ki={normal:Lc,gfm:yc,breaks:OS,pedantic:PS},qS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tg=e=>qS[e];an=class{options;rules;lexer;constructor(e){this.options=e||Zt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let i=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Si(i,`
10
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let i=t[0],s=zS(i,t[3]||"",this.rules);return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let i=t[2].trim();if(this.rules.other.endingHash.test(i)){let s=Si(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Si(t[0],`
11
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let i=Si(t[0],`
12
12
  `).split(`
13
13
  `),s="",n="",r=[];for(;i.length>0;){let a=!1,o=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))o.push(i[c]),a=!0;else if(!a)o.push(i[c]);else break;i=i.slice(c);let l=o.join(`
14
14
  `),u=l.replace(this.rules.other.blockquoteSetextReplace,`
@@ -19,16 +19,16 @@ ${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
19
19
  `),m=this.blockquote(p);r[r.length-1]=m,s=s.substring(0,s.length-f.raw.length)+m.raw,n=n.substring(0,n.length-f.text.length)+m.text;break}else if(h?.type==="list"){let f=h,p=f.raw+`
20
20
  `+i.join(`
21
21
  `),m=this.list(p);r[r.length-1]=m,s=s.substring(0,s.length-h.raw.length)+m.raw,n=n.substring(0,n.length-f.raw.length)+m.raw,i=p.substring(r.at(-1).raw.length).split(`
22
- `);continue}}return{type:"blockquote",raw:s,tokens:r,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),s=i.length>1,n={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let r=this.rules.other.listItemRegex(i),a=!1;for(;e;){let c=!1,l="",u="";if(!(t=r.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let d=US(t[2].split(`
22
+ `);continue}}return{type:"blockquote",raw:s,tokens:r,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),s=i.length>1,n={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let r=this.rules.other.listItemRegex(i),a=!1;for(;e;){let c=!1,l="",u="";if(!(t=r.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let d=HS(t[2].split(`
23
23
  `,1)[0],t[1].length),h=e.split(`
24
24
  `,1)[0],f=!d.trim(),p=0;if(this.options.pedantic?(p=2,u=d.trimStart()):f?p=t[1].length+1:(p=d.search(this.rules.other.nonSpaceChar),p=p>4?1:p,u=d.slice(p),p+=t[1].length),f&&this.rules.other.blankLine.test(h)&&(l+=h+`
25
- `,e=e.substring(h.length+1),c=!0),!c){let m=this.rules.other.nextBulletRegex(p),g=this.rules.other.hrRegex(p),b=this.rules.other.fencesBeginRegex(p),A=this.rules.other.headingBeginRegex(p),w=this.rules.other.htmlBeginRegex(p),_=this.rules.other.blockquoteBeginRegex(p);for(;e;){let D=e.split(`
26
- `,1)[0],V;if(h=D,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),V=h):V=h.replace(this.rules.other.tabCharGlobal," "),b.test(h)||A.test(h)||w.test(h)||_.test(h)||m.test(h)||g.test(h))break;if(V.search(this.rules.other.nonSpaceChar)>=p||!h.trim())u+=`
27
- `+V.slice(p);else{if(f||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||b.test(d)||A.test(d)||g.test(d))break;u+=`
28
- `+h}f=!h.trim(),l+=D+`
29
- `,e=e.substring(D.length+1),d=V.slice(p)}}n.loose||(a?n.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(a=!0)),n.items.push({type:"list_item",raw:l,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),n.raw+=l}let o=n.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let c of n.items){if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),c.task){if(c.text=c.text.replace(this.rules.other.listReplaceTask,""),c.tokens[0]?.type==="text"||c.tokens[0]?.type==="paragraph"){c.tokens[0].raw=c.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),c.tokens[0].text=c.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}}let l=this.rules.other.listTaskCheckbox.exec(c.raw);if(l){let u={type:"checkbox",raw:l[0]+" ",checked:l[0]!=="[ ]"};c.checked=u.checked,n.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=u.raw+c.tokens[0].raw,c.tokens[0].text=u.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(u)):c.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):c.tokens.unshift(u)}}if(!n.loose){let l=c.tokens.filter(d=>d.type==="space"),u=l.length>0&&l.some(d=>this.rules.other.anyLine.test(d.raw));n.loose=u}}if(n.loose)for(let c of n.items){c.loose=!0;for(let l of c.tokens)l.type==="text"&&(l.type="paragraph")}return n}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let i=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:i,raw:t[0],href:s,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let i=ng(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
30
- `):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let a of s)this.rules.other.tableAlignRight.test(a)?r.align.push("right"):this.rules.other.tableAlignCenter.test(a)?r.align.push("center"):this.rules.other.tableAlignLeft.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<i.length;a++)r.header.push({text:i[a],tokens:this.lexer.inline(i[a]),header:!0,align:r.align[a]});for(let a of n)r.rows.push(ng(a,r.header.length).map((o,c)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:r.align[c]})));return r}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let i=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:i,tokens:this.lexer.inline(i)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let i=t[1].charAt(t[1].length-1)===`
31
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let i=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let r=Ci(i.slice(0,-1),"\\");if((i.length-r.length)%2===0)return}else{let r=VS(t[2],"()");if(r===-2)return;if(r>-1){let a=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let s=t[2],n="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(s);r&&(s=r[1],n=r[3])}else n=t[3]?t[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),rg(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=t[s.toLowerCase()];if(!n){let r=i[0].charAt(0);return{type:"text",raw:r,text:r}}return rg(i,n,i[0],this.lexer,this.rules)}}emStrong(e,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,a,o=n,c=0,l=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);(s=l.exec(t))!==null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(a=[...r].length,s[3]||s[4]){o+=a;continue}else if((s[5]||s[6])&&n%3&&!((n+a)%3)){c+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+c);let u=[...s[0]][0].length,d=e.slice(0,n+s.index+u+a);if(Math.min(n,a)%2){let f=d.slice(1,-1);return{type:"em",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}let h=d.slice(2,-2);return{type:"strong",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:t[0],text:i}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,i=""){let s=this.rules.inline.delLDelim.exec(e);if(s&&(!s[1]||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,a,o=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(s=c.exec(t))!==null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r||(a=[...r].length,a!==n))continue;if(s[3]||s[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let l=[...s[0]][0].length,u=e.slice(0,n+s.index+l+a),d=u.slice(n,-n);return{type:"del",raw:u,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let i,s;return t[2]==="@"?(i=t[1],s="mailto:"+i):(i=t[1],s=i),{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let i,s;if(t[2]==="@")i=t[0],s="mailto:"+i;else{let n;do n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(n!==t[0]);i=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let i=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:i}}}},rt=class vc{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Jt,this.options.tokenizer=this.options.tokenizer||new on,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:Z,block:rn.normal,inline:xi.normal};this.options.pedantic?(i.block=rn.pedantic,i.inline=xi.pedantic):this.options.gfm&&(i.block=rn.gfm,this.options.breaks?i.inline=xi.breaks:i.inline=xi.gfm),this.tokenizer.rules=i}static get rules(){return{block:rn,inline:xi}}static lex(t,i){return new vc(i).lex(t)}static lexInline(t,i){return new vc(i).inlineTokens(t)}lex(t){t=t.replace(Z.carriageReturn,`
25
+ `,e=e.substring(h.length+1),c=!0),!c){let m=this.rules.other.nextBulletRegex(p),g=this.rules.other.hrRegex(p),b=this.rules.other.fencesBeginRegex(p),T=this.rules.other.headingBeginRegex(p),w=this.rules.other.htmlBeginRegex(p),k=this.rules.other.blockquoteBeginRegex(p);for(;e;){let $=e.split(`
26
+ `,1)[0],N;if(h=$,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),N=h):N=h.replace(this.rules.other.tabCharGlobal," "),b.test(h)||T.test(h)||w.test(h)||k.test(h)||m.test(h)||g.test(h))break;if(N.search(this.rules.other.nonSpaceChar)>=p||!h.trim())u+=`
27
+ `+N.slice(p);else{if(f||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||b.test(d)||T.test(d)||g.test(d))break;u+=`
28
+ `+h}f=!h.trim(),l+=$+`
29
+ `,e=e.substring($.length+1),d=N.slice(p)}}n.loose||(a?n.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(a=!0)),n.items.push({type:"list_item",raw:l,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),n.raw+=l}let o=n.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let c of n.items){if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),c.task){if(c.text=c.text.replace(this.rules.other.listReplaceTask,""),c.tokens[0]?.type==="text"||c.tokens[0]?.type==="paragraph"){c.tokens[0].raw=c.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),c.tokens[0].text=c.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}}let l=this.rules.other.listTaskCheckbox.exec(c.raw);if(l){let u={type:"checkbox",raw:l[0]+" ",checked:l[0]!=="[ ]"};c.checked=u.checked,n.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=u.raw+c.tokens[0].raw,c.tokens[0].text=u.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(u)):c.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):c.tokens.unshift(u)}}if(!n.loose){let l=c.tokens.filter(d=>d.type==="space"),u=l.length>0&&l.some(d=>this.rules.other.anyLine.test(d.raw));n.loose=u}}if(n.loose)for(let c of n.items){c.loose=!0;for(let l of c.tokens)l.type==="text"&&(l.type="paragraph")}return n}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let i=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:i,raw:t[0],href:s,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let i=ig(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
30
+ `):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let a of s)this.rules.other.tableAlignRight.test(a)?r.align.push("right"):this.rules.other.tableAlignCenter.test(a)?r.align.push("center"):this.rules.other.tableAlignLeft.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<i.length;a++)r.header.push({text:i[a],tokens:this.lexer.inline(i[a]),header:!0,align:r.align[a]});for(let a of n)r.rows.push(ig(a,r.header.length).map((o,c)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:r.align[c]})));return r}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let i=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:i,tokens:this.lexer.inline(i)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let i=t[1].charAt(t[1].length-1)===`
31
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let i=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let r=Si(i.slice(0,-1),"\\");if((i.length-r.length)%2===0)return}else{let r=jS(t[2],"()");if(r===-2)return;if(r>-1){let a=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let s=t[2],n="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(s);r&&(s=r[1],n=r[3])}else n=t[3]?t[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),sg(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=t[s.toLowerCase()];if(!n){let r=i[0].charAt(0);return{type:"text",raw:r,text:r}}return sg(i,n,i[0],this.lexer,this.rules)}}emStrong(e,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,a,o=n,c=0,l=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);(s=l.exec(t))!==null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(a=[...r].length,s[3]||s[4]){o+=a;continue}else if((s[5]||s[6])&&n%3&&!((n+a)%3)){c+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+c);let u=[...s[0]][0].length,d=e.slice(0,n+s.index+u+a);if(Math.min(n,a)%2){let f=d.slice(1,-1);return{type:"em",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}let h=d.slice(2,-2);return{type:"strong",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:t[0],text:i}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,i=""){let s=this.rules.inline.delLDelim.exec(e);if(s&&(!s[1]||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,a,o=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(s=c.exec(t))!==null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r||(a=[...r].length,a!==n))continue;if(s[3]||s[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let l=[...s[0]][0].length,u=e.slice(0,n+s.index+l+a),d=u.slice(n,-n);return{type:"del",raw:u,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let i,s;return t[2]==="@"?(i=t[1],s="mailto:"+i):(i=t[1],s=i),{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let i,s;if(t[2]==="@")i=t[0],s="mailto:"+i;else{let n;do n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(n!==t[0]);i=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let i=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:i}}}},rt=class vc{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Zt,this.options.tokenizer=this.options.tokenizer||new an,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:Z,block:nn.normal,inline:ki.normal};this.options.pedantic?(i.block=nn.pedantic,i.inline=ki.pedantic):this.options.gfm&&(i.block=nn.gfm,this.options.breaks?i.inline=ki.breaks:i.inline=ki.gfm),this.tokenizer.rules=i}static get rules(){return{block:nn,inline:ki}}static lex(t,i){return new vc(i).lex(t)}static lexInline(t,i){return new vc(i).inlineTokens(t)}lex(t){t=t.replace(Z.carriageReturn,`
32
32
  `),this.blockTokens(t,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,i=[],s=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Z.tabCharGlobal," ").replace(Z.spaceLine,""));t;){let n;if(this.options.extensions?.block?.some(a=>(n=a.call({lexer:this},t,i))?(t=t.substring(n.raw.length),i.push(n),!0):!1))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let a=i.at(-1);n.raw.length===1&&a!==void 0?a.raw+=`
33
33
  `:i.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let a=i.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
34
34
  `)?"":`
@@ -42,9 +42,9 @@ ${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
42
42
  `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):i.push(n),s=r.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let a=i.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
43
43
  `)?"":`
44
44
  `)+n.raw,a.text+=`
45
- `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):i.push(n);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,i}inline(t,i=[]){return this.inlineQueue.push({src:t,tokens:i}),i}inlineTokens(t,i=[]){this.tokenizer.lexer=this;let s=t,n=null;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!==null;)c.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!==null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!==null;)r=n[2]?n[2].length:0,s=s.slice(0,n.index+r)+"["+"a".repeat(n[0].length-r-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let a=!1,o="";for(;t;){a||(o=""),a=!1;let c;if(this.options.extensions?.inline?.some(u=>(c=u.call({lexer:this},t,i))?(t=t.substring(c.raw.length),i.push(c),!0):!1))continue;if(c=this.tokenizer.escape(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.tag(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.link(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(c.raw.length);let u=i.at(-1);c.type==="text"&&u?.type==="text"?(u.raw+=c.raw,u.text+=c.text):i.push(c);continue}if(c=this.tokenizer.emStrong(t,s,o)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.codespan(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.br(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.del(t,s,o)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.autolink(t)){t=t.substring(c.raw.length),i.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(t))){t=t.substring(c.raw.length),i.push(c);continue}let l=t;if(this.options.extensions?.startInline){let u=1/0,d=t.slice(1),h;this.options.extensions.startInline.forEach(f=>{h=f.call({lexer:this},d),typeof h=="number"&&h>=0&&(u=Math.min(u,h))}),u<1/0&&u>=0&&(l=t.substring(0,u+1))}if(c=this.tokenizer.inlineText(l)){t=t.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(o=c.raw.slice(-1)),a=!0;let u=i.at(-1);u?.type==="text"?(u.raw+=c.raw,u.text+=c.text):i.push(c);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return i}},cn=class{options;parser;constructor(e){this.options=e||Jt}space(e){return""}code({text:e,lang:t,escaped:i}){let s=(t||"").match(Z.notSpaceStart)?.[0],n=e.replace(Z.endingNewline,"")+`
46
- `;return s?'<pre><code class="language-'+pt(s)+'">'+(i?n:pt(n,!0))+`</code></pre>
47
- `:"<pre><code>"+(i?n:pt(n,!0))+`</code></pre>
45
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):i.push(n);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,i}inline(t,i=[]){return this.inlineQueue.push({src:t,tokens:i}),i}inlineTokens(t,i=[]){this.tokenizer.lexer=this;let s=t,n=null;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!==null;)c.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!==null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!==null;)r=n[2]?n[2].length:0,s=s.slice(0,n.index+r)+"["+"a".repeat(n[0].length-r-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let a=!1,o="";for(;t;){a||(o=""),a=!1;let c;if(this.options.extensions?.inline?.some(u=>(c=u.call({lexer:this},t,i))?(t=t.substring(c.raw.length),i.push(c),!0):!1))continue;if(c=this.tokenizer.escape(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.tag(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.link(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(c.raw.length);let u=i.at(-1);c.type==="text"&&u?.type==="text"?(u.raw+=c.raw,u.text+=c.text):i.push(c);continue}if(c=this.tokenizer.emStrong(t,s,o)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.codespan(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.br(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.del(t,s,o)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.autolink(t)){t=t.substring(c.raw.length),i.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(t))){t=t.substring(c.raw.length),i.push(c);continue}let l=t;if(this.options.extensions?.startInline){let u=1/0,d=t.slice(1),h;this.options.extensions.startInline.forEach(f=>{h=f.call({lexer:this},d),typeof h=="number"&&h>=0&&(u=Math.min(u,h))}),u<1/0&&u>=0&&(l=t.substring(0,u+1))}if(c=this.tokenizer.inlineText(l)){t=t.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(o=c.raw.slice(-1)),a=!0;let u=i.at(-1);u?.type==="text"?(u.raw+=c.raw,u.text+=c.text):i.push(c);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return i}},on=class{options;parser;constructor(e){this.options=e||Zt}space(e){return""}code({text:e,lang:t,escaped:i}){let s=(t||"").match(Z.notSpaceStart)?.[0],n=e.replace(Z.endingNewline,"")+`
46
+ `;return s?'<pre><code class="language-'+ft(s)+'">'+(i?n:ft(n,!0))+`</code></pre>
47
+ `:"<pre><code>"+(i?n:ft(n,!0))+`</code></pre>
48
48
  `}blockquote({tokens:e}){return`<blockquote>
49
49
  ${this.parser.parse(e)}</blockquote>
50
50
  `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
@@ -60,13 +60,13 @@ ${this.parser.parse(e)}</blockquote>
60
60
  `}tablerow({text:e}){return`<tr>
61
61
  ${e}</tr>
62
62
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>
63
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${pt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){let s=this.parser.parseInline(i),n=sg(e);if(n===null)return s;e=n;let r='<a href="'+e+'"';return t&&(r+=' title="'+pt(t)+'"'),r+=">"+s+"</a>",r}image({href:e,title:t,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let n=sg(e);if(n===null)return pt(i);e=n;let r=`<img src="${e}" alt="${pt(i)}"`;return t&&(r+=` title="${pt(t)}"`),r+=">",r}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:pt(e.text)}},Dc=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},at=class wc{options;renderer;textRenderer;constructor(t){this.options=t||Jt,this.options.renderer=this.options.renderer||new cn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Dc}static parse(t,i){return new wc(i).parse(t)}static parseInline(t,i){return new wc(i).parseInline(t)}parse(t){this.renderer.parser=this;let i="";for(let s=0;s<t.length;s++){let n=t[s];if(this.options.extensions?.renderers?.[n.type]){let a=n,o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){i+=o||"";continue}}let r=n;switch(r.type){case"space":{i+=this.renderer.space(r);break}case"hr":{i+=this.renderer.hr(r);break}case"heading":{i+=this.renderer.heading(r);break}case"code":{i+=this.renderer.code(r);break}case"table":{i+=this.renderer.table(r);break}case"blockquote":{i+=this.renderer.blockquote(r);break}case"list":{i+=this.renderer.list(r);break}case"checkbox":{i+=this.renderer.checkbox(r);break}case"html":{i+=this.renderer.html(r);break}case"def":{i+=this.renderer.def(r);break}case"paragraph":{i+=this.renderer.paragraph(r);break}case"text":{i+=this.renderer.text(r);break}default:{let a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}parseInline(t,i=this.renderer){this.renderer.parser=this;let s="";for(let n=0;n<t.length;n++){let r=t[n];if(this.options.extensions?.renderers?.[r.type]){let o=this.options.extensions.renderers[r.type].call({parser:this},r);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=o||"";continue}}let a=r;switch(a.type){case"escape":{s+=i.text(a);break}case"html":{s+=i.html(a);break}case"link":{s+=i.link(a);break}case"image":{s+=i.image(a);break}case"checkbox":{s+=i.checkbox(a);break}case"strong":{s+=i.strong(a);break}case"em":{s+=i.em(a);break}case"codespan":{s+=i.codespan(a);break}case"br":{s+=i.br(a);break}case"del":{s+=i.del(a);break}case"text":{s+=i.text(a);break}default:{let o='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}},Ti=class{options;block;constructor(e){this.options=e||Jt}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?rt.lex:rt.lexInline}provideParser(e=this.block){return e?at.parse:at.parseInline}},GS=class{defaults=Ac();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=at;Renderer=cn;TextRenderer=Dc;Lexer=rt;Tokenizer=on;Hooks=Ti;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(let s of e)switch(i=i.concat(t.call(this,s)),s.type){case"table":{let n=s;for(let r of n.header)i=i.concat(this.walkTokens(r.tokens,t));for(let r of n.rows)for(let a of r)i=i.concat(this.walkTokens(a.tokens,t));break}case"list":{let n=s;i=i.concat(this.walkTokens(n.items,t));break}default:{let n=s;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(r=>{let a=n[r].flat(1/0);i=i.concat(this.walkTokens(a,t))}):n.tokens&&(i=i.concat(this.walkTokens(n.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let r=t.renderers[n.name];r?t.renderers[n.name]=function(...a){let o=n.renderer.apply(this,a);return o===!1&&(o=r.apply(this,a)),o}:t.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let r=t[n.level];r?r.unshift(n.tokenizer):t[n.level]=[n.tokenizer],n.start&&(n.level==="block"?t.startBlock?t.startBlock.push(n.start):t.startBlock=[n.start]:n.level==="inline"&&(t.startInline?t.startInline.push(n.start):t.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(t.childTokens[n.name]=n.childTokens)}),s.extensions=t),i.renderer){let n=this.defaults.renderer||new cn(this.defaults);for(let r in i.renderer){if(!(r in n))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let a=r,o=i.renderer[a],c=n[a];n[a]=(...l)=>{let u=o.apply(n,l);return u===!1&&(u=c.apply(n,l)),u||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new on(this.defaults);for(let r in i.tokenizer){if(!(r in n))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let a=r,o=i.tokenizer[a],c=n[a];n[a]=(...l)=>{let u=o.apply(n,l);return u===!1&&(u=c.apply(n,l)),u}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new Ti;for(let r in i.hooks){if(!(r in n))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let a=r,o=i.hooks[a],c=n[a];Ti.passThroughHooks.has(r)?n[a]=l=>{if(this.defaults.async&&Ti.passThroughHooksRespectAsync.has(r))return(async()=>{let d=await o.call(n,l);return c.call(n,d)})();let u=o.call(n,l);return c.call(n,u)}:n[a]=(...l)=>{if(this.defaults.async)return(async()=>{let d=await o.apply(n,l);return d===!1&&(d=await c.apply(n,l)),d})();let u=o.apply(n,l);return u===!1&&(u=c.apply(n,l)),u}}s.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,r=i.walkTokens;s.walkTokens=function(a){let o=[];return o.push(r.call(this,a)),n&&(o=o.concat(n.call(this,a))),o}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return rt.lex(e,t??this.defaults)}parser(e,t){return at.parse(e,t??this.defaults)}parseMarkdown(e){return(t,i)=>{let s={...i},n={...this.defaults,...s},r=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return r(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=e),n.async)return(async()=>{let a=n.hooks?await n.hooks.preprocess(t):t,o=await(n.hooks?await n.hooks.provideLexer(e):e?rt.lex:rt.lexInline)(a,n),c=n.hooks?await n.hooks.processAllTokens(o):o;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let l=await(n.hooks?await n.hooks.provideParser(e):e?at.parse:at.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(l):l})().catch(r);try{n.hooks&&(t=n.hooks.preprocess(t));let a=(n.hooks?n.hooks.provideLexer(e):e?rt.lex:rt.lexInline)(t,n);n.hooks&&(a=n.hooks.processAllTokens(a)),n.walkTokens&&this.walkTokens(a,n.walkTokens);let o=(n.hooks?n.hooks.provideParser(e):e?at.parse:at.parseInline)(a,n);return n.hooks&&(o=n.hooks.postprocess(o)),o}catch(a){return r(a)}}}onError(e,t){return i=>{if(i.message+=`
64
- Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error occurred:</p><pre>"+pt(i.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(i);throw i}}},Zt=new GS;M.options=M.setOptions=function(e){return Zt.setOptions(e),M.defaults=Zt.defaults,ag(M.defaults),M};M.getDefaults=Ac;M.defaults=Jt;M.use=function(...e){return Zt.use(...e),M.defaults=Zt.defaults,ag(M.defaults),M};M.walkTokens=function(e,t){return Zt.walkTokens(e,t)};M.parseInline=Zt.parseInline;M.Parser=at;M.parser=at.parse;M.Renderer=cn;M.TextRenderer=Dc;M.Lexer=rt;M.lexer=rt.lex;M.Tokenizer=on;M.Hooks=Ti;M.parse=M;qM=M.options,jM=M.setOptions,HM=M.use,zM=M.walkTokens,VM=M.parseInline,UM=at.parse,WM=rt.lex});var JS={};function Nc(e,t){return e.replaceChildren(t.trim()?ne(M.parseInline(t,{gfm:!0})):""),e.innerHTML}function bg(e,t,i){e.dispatchEvent(new CustomEvent("markdown-editable:change",{bubbles:!0,detail:{value:t,html:i}}))}function YS(e){e.contentEditable="true",e.setAttribute("role","textbox"),e.setAttribute("aria-multiline","false");let t=e.textContent.trim();e.dataset.markdownValue=t,t&&Nc(e,t);let i=!1;e.addEventListener("compositionstart",()=>{i=!0}),e.addEventListener("compositionend",()=>{i=!1}),e.addEventListener("focus",()=>{if(i)return;let s=e.dataset.markdownValue||"";e.textContent=s,e.setAttribute("data-md-editing",""),requestAnimationFrame(()=>{let n=window.getSelection();n&&e.childNodes.length&&n.collapse(e.childNodes[e.childNodes.length-1],e.textContent.length)})}),e.addEventListener("blur",()=>{if(i)return;let s=e.textContent.trim(),n=e.dataset.markdownValue;e.dataset.markdownValue=s,e.removeAttribute("data-md-editing"),s?Nc(e,s):e.textContent="",s!==n&&bg(e,s,e.innerHTML)})}function XS(e){let t=e.dataset.preview?document.getElementById(e.dataset.preview):null;t||(t=document.createElement("output"),t.className="md-editable-preview",t.setAttribute("aria-label","Markdown preview"),e.after(t));function i(){return t?Nc(t,e.value):""}e.addEventListener("blur",()=>{let s=i();bg(e,e.value,s)}),e.value.trim()&&i()}function ZS(e){if(e.hasAttribute("data-markdown-editable-init"))return;e.setAttribute("data-markdown-editable-init","");let t=e.tagName;t==="TEXTAREA"||t==="INPUT"?XS(e):YS(e)}var KS,yg=v(()=>{$();gg();Rt();KS="[data-markdown-editable]";C(KS,ZS)});function vg(e=document,t={}){let i=t.language||"mermaid",s=t.type||"mermaid",n=Array.isArray(t.primingSvgs)?t.primingSvgs:null,r=`pre > code.language-${i}`,a=[],o=0;for(let c of e.querySelectorAll(r)){let l=c.parentElement;if(!l||l.parentElement?.tagName.toLowerCase()==="diagram-wc")continue;let u=l.parentNode,d=l.nextSibling,h=document.createElement("diagram-wc");if(h.setAttribute("type",s),h.appendChild(l),n&&n[o]){let f=document.createElement("figure");f.className="dwc-figure",f.innerHTML=n[o],h.appendChild(f)}u?.insertBefore(h,d),a.push(h),o++}return a}var wg=v(()=>{});var ix={};function tx(e){return!e||!e.hasAttribute?!1:e.hasAttribute("data-auto-mermaid")?!0:!!e.closest?.("markdown-editor[data-auto-mermaid]")}function Eg(e){let t=$c.get(e);return t||(t=[],$c.set(e,t)),t}function ex(e,t){let i=Mc.get(e);i&&clearTimeout(i);let s=setTimeout(()=>{Mc.delete(e),kg(e,t||e)},QS);Mc.set(e,s)}function kg(e,t){let i=Eg(e),s=vg(t,{primingSvgs:i});s.forEach((n,r)=>{n.dataset.bridgeIndex=String(r)}),i.length>s.length&&(i.length=s.length),i.length>Ag&&(i.length=Ag)}var QS,Ag,Mc,$c,_c,Sg=v(()=>{wg();QS=250,Ag=16,Mc=new WeakMap,$c=new WeakMap;_c=typeof document<"u"?document.documentElement:null;if(_c&&!_c.hasAttribute("data-vb-mermaid-bridge-init")){_c.setAttribute("data-vb-mermaid-bridge-init",""),document.addEventListener("markdown-viewer:rendered",t=>{let i=t.target;if(!tx(i))return;let s=t.detail?.node||i;ex(i,s)}),document.addEventListener("diagram-wc:ready",t=>{let i=t.target,s=i.closest?.("markdown-viewer");if(!s)return;let n=parseInt(i.dataset.bridgeIndex||"",10);if(Number.isNaN(n))return;let r=Eg(s);r[n]=t.detail?.svg||r[n]}),window.addEventListener("vb:theme-change",()=>{for(let t of document.querySelectorAll("markdown-viewer")){let i=$c.get(t);i&&(i.length=0)}});let e="markdown-viewer[data-auto-mermaid], markdown-editor[data-auto-mermaid] markdown-viewer";for(let t of document.querySelectorAll(e))kg(t,t)}});function nx(e){let t=0;for(let i=0;i<e.length;i++)t=e.charCodeAt(i)+((t<<5)-t);return t}function rx(e){let t=dn[0],i=Math.abs(e-t);for(let s=1;s<dn.length;s++){let n=Math.abs(e-dn[s]);n<i&&(t=dn[s],i=n)}return t}function xg(e,t=128){let i=nx(String(e)),s=(i%100+100)%100,n=(i>>>16&1)===0?"female":"male",r=rx(t);return`${sx}/${n}/${r}/${s}.jpg`}var sx,dn,Cg=v(()=>{sx="https://cdn.jsdelivr.net/gh/faker-js/assets-person-portrait",dn=[32,64,128,256,512]});var Dg={};T(Dg,{initMockMedia:()=>Rc});function Lg(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function Tg(e,t,i){let s=Math.min(Math.max(e/15,12),32),n=e/2,r=t/2,a=i?Lg(i):"",o=a?`<text x="${n}" y="${r}" text-anchor="middle" dominant-baseline="middle" font-family="system-ui,sans-serif" font-size="${s}" fill="#6b7280">${a}</text>`:"",c=`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${t}" viewBox="0 0 ${e} ${t}"><rect width="${e}" height="${t}" fill="#f3f4f6"/><line x1="0" y1="0" x2="${e}" y2="${t}" stroke="#d1d5db"/><line x1="${e}" y1="0" x2="0" y2="${t}" stroke="#d1d5db"/>${o}</svg>`;return`data:image/svg+xml,${encodeURIComponent(c)}`}function cx(e){let t=ox[e.dataset.mock],i=Number(e.getAttribute("width"))||t?.w||400,s=Number(e.getAttribute("height"))||t?.h||300;return{w:i,h:s}}function Bc(e){if(e.hasAttribute("data-mock-init"))return;e.setAttribute("data-mock-init","");let t=e.tagName.toLowerCase(),i=e.dataset.mock,{w:s,h:n}=cx(e);if(t==="img"){if(i==="photo"){let r=e.dataset.seed,a=r?`https://picsum.photos/seed/${encodeURIComponent(r)}/${s}/${n}`:`https://picsum.photos/${s}/${n}`;e.getAttribute("src")||(e.setAttribute("src",a),e.setAttribute("loading","lazy"))}else if(i==="placehold"){if(!e.getAttribute("src")){let r=e.getAttribute("alt")||"",a=r?`?text=${encodeURIComponent(r)}`:"";e.setAttribute("src",`https://placehold.co/${s}x${n}${a}`),e.setAttribute("loading","lazy")}}else if(i==="portrait"||i==="profile"||i==="headshot"||i==="avatar"){if(!e.getAttribute("src")){let r=e.dataset.seed||e.getAttribute("alt")||String(ax++);e.setAttribute("src",xg(r,Math.max(s,n))),e.setAttribute("loading","lazy")}}else if(!e.getAttribute("src")){let r=e.getAttribute("alt")||`${s}\xD7${n}`;e.setAttribute("src",Tg(s,n,r))}}else if(t==="video"){if(!e.getAttribute("poster")){let r=e.getAttribute("alt")||e.getAttribute("title")||"Video";e.setAttribute("poster",Tg(s,n,`\u25B6 ${r}`))}}else if(t==="iframe"){if(!e.getAttribute("src")&&!e.getAttribute("srcdoc")){let r=e.getAttribute("title")||"Embedded content";e.setAttribute("srcdoc",`<!DOCTYPE html><html><body style="display:grid;place-items:center;height:100vh;margin:0;background:#f3f4f6;font-family:system-ui,sans-serif;color:#6b7280"><p>${Lg(r)}</p></body></html>`)}}else t==="canvas"&&lx(e,s,n)}function lx(e,t,i){e.width=t,e.height=i;let s=e.getContext("2d");if(!s)return;s.fillStyle="#f3f4f6",s.fillRect(0,0,t,i),s.strokeStyle="#d1d5db",s.lineWidth=1,s.beginPath(),s.moveTo(0,0),s.lineTo(t,i),s.moveTo(t,0),s.lineTo(0,i),s.stroke();let n=e.getAttribute("aria-label")||e.getAttribute("title")||`${t}\xD7${i}`,r=Math.min(Math.max(t/15,12),32);s.fillStyle="#6b7280",s.font=`${r}px system-ui, sans-serif`,s.textAlign="center",s.textBaseline="middle",s.fillText(n,t/2,i/2)}function Rc(e=document){e.querySelectorAll(Ic).forEach(Bc)}var Ic,ax,ox,ux,Ng=v(()=>{Cg();Ic=":is(img, video, iframe, canvas)[data-mock]",ax=0,ox={hero:{w:1200,h:400},card:{w:400,h:225},avatar:{w:48,h:48},product:{w:400,h:400},thumbnail:{w:150,h:150},logo:{w:200,h:50},og:{w:1200,h:630},banner:{w:728,h:90},portrait:{w:128,h:128},profile:{w:128,h:128},headshot:{w:256,h:256}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Rc()):Rc();ux=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ic)&&Bc(s),s.querySelectorAll(Ic).forEach(n=>Bc(n))}});ux.observe(document.documentElement,{childList:!0,subtree:!0})});var _g={};T(_g,{initLorem:()=>qc});function Di(e){let t=e.closest("[lang]")?.getAttribute("lang")?.split("-")[0]?.toLowerCase();return t&&yx[t]||"latin"}function vx(e){return e.split(/(?<=[.!?\u3002])\s*/).filter(Boolean)}function Pc(e){return e==="cjk"||e==="chinese"}function wx(e,t,i){if(Pc(i)){let r=[...e],a=[];for(let o=0;o<t;o++)a.push(r[o%r.length]);return a.join("")}let s=e.split(/\s+/),n=[];for(let r=0;r<t;r++)n.push(s[r%s.length]);return n.join(" ")}function Ax(e,t){let i=(e||"").trim();if(Mg[i])return{mode:"words",count:Pc(i)?80:50,corpus:i};if(i==="heading")return{mode:"words",count:5,corpus:Di(t)};let s=i.match(/^(\d+)\s+sentences?$/i);if(s)return{mode:"sentences",count:Number(s[1]),corpus:Di(t)};let n=i.match(/^(\d+)\s+items?$/i);if(n)return{mode:"items",count:Number(n[1]),corpus:Di(t)};let r=i.match(/^(\d+)$/);if(r)return{mode:"words",count:Number(r[1]),corpus:Di(t)};let a=Di(t);return{mode:"words",count:Pc(a)?80:50,corpus:a}}function Ex(e){let t=Mg[e.corpus],i=vx(t);if(e.mode==="sentences"){let s=[];for(let n=0;n<e.count;n++)s.push(i[n%i.length]);return s.join(" ")}if(e.mode==="items"){let s=[];for(let n=0;n<e.count;n++)s.push(i[n%i.length]);return s}return wx(t,e.count,e.corpus)}function Oc(e){if(e.hasAttribute("data-lorem-init"))return;e.setAttribute("data-lorem-init","");let t=Ax(e.dataset.lorem??"",e),i=Ex(t),s=e.tagName.toLowerCase();t.mode==="items"&&Array.isArray(i)&&(s==="ul"||s==="ol")?e.innerHTML=i.map(n=>`<li>${n}</li>`).join(""):Array.isArray(i)?e.textContent=i.join(" "):e.textContent=i,e.setAttribute("data-lorem-filled",""),e.setAttribute("translate","no")}function qc(e=document){e.querySelectorAll(Fc).forEach(Oc)}var Fc,dx,hx,fx,px,mx,gx,bx,Mg,yx,kx,$g=v(()=>{Fc="[data-lorem]",dx="Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium totam rem aperiam eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet consectetur adipisci velit sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam quis nostrum exercitationem ullam corporis suscipit laboriosam nisi ut aliquid ex ea commodi consequatur. Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur vel illum qui dolorem eum fugiat quo voluptas nulla pariatur. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident similique sunt in culpa qui officia deserunt mollitia animi id est laborum et dolorum fuga.",hx="\u3053\u308C\u306F\u30C0\u30DF\u30FC\u30C6\u30AD\u30B9\u30C8\u3067\u3059\u3002\u30EC\u30A4\u30A2\u30A6\u30C8\u306E\u78BA\u8A8D\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002\u5B9F\u969B\u306E\u30B3\u30F3\u30C6\u30F3\u30C4\u306F\u5F8C\u3067\u8FFD\u52A0\u3055\u308C\u307E\u3059\u3002\u3053\u306E\u6587\u7AE0\u306F\u30D7\u30EC\u30FC\u30B9\u30DB\u30EB\u30C0\u30FC\u3068\u3057\u3066\u6A5F\u80FD\u3057\u307E\u3059\u3002\u30C7\u30B6\u30A4\u30F3\u306E\u30D7\u30ED\u30C8\u30BF\u30A4\u30D7\u4F5C\u6210\u4E2D\u306B\u3001\u30C6\u30AD\u30B9\u30C8\u304C\u5FC5\u8981\u306A\u5834\u6240\u306B\u914D\u7F6E\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u65E5\u672C\u8A9E\u306E\u6587\u5B57\u306F\u7D04\u5343\u5E74\u524D\u306B\u4E2D\u56FD\u304B\u3089\u4F1D\u308F\u308A\u307E\u3057\u305F\u3002\u73FE\u4EE3\u306E\u65E5\u672C\u8A9E\u306F\u6F22\u5B57\u3001\u3072\u3089\u304C\u306A\u3001\u30AB\u30BF\u30AB\u30CA\u306E\u4E09\u7A2E\u985E\u306E\u6587\u5B57\u3092\u4F7F\u7528\u3057\u307E\u3059\u3002\u30A6\u30A7\u30D6\u30C7\u30B6\u30A4\u30F3\u3067\u306F\u3001\u30C6\u30AD\u30B9\u30C8\u306E\u8AAD\u307F\u3084\u3059\u3055\u3068\u30EC\u30A4\u30A2\u30A6\u30C8\u306E\u30D0\u30E9\u30F3\u30B9\u304C\u91CD\u8981\u3067\u3059\u3002",fx="\u0647\u0630\u0627 \u0646\u0635 \u062A\u062C\u0631\u064A\u0628\u064A \u064A\u0633\u062A\u062E\u062F\u0645 \u0644\u0639\u0631\u0636 \u0627\u0644\u062A\u0635\u0645\u064A\u0645. \u064A\u0645\u0643\u0646 \u0627\u0633\u062A\u0628\u062F\u0627\u0644\u0647 \u0628\u0627\u0644\u0645\u062D\u062A\u0648\u0649 \u0627\u0644\u0641\u0639\u0644\u064A \u0644\u0627\u062D\u0642\u0627. \u0627\u0644\u063A\u0631\u0636 \u0645\u0646\u0647 \u0647\u0648 \u0625\u0638\u0647\u0627\u0631 \u0643\u064A\u0641 \u0633\u064A\u0628\u062F\u0648 \u0627\u0644\u0646\u0635 \u0641\u064A \u0627\u0644\u0645\u0648\u0642\u0639. \u062A\u0635\u0645\u064A\u0645 \u0627\u0644\u0648\u064A\u0628 \u064A\u062A\u0637\u0644\u0628 \u0646\u0635\u0648\u0635\u0627 \u0646\u0627\u0626\u0628\u0629 \u0644\u0645\u0644\u0621 \u0627\u0644\u0641\u0631\u0627\u063A\u0627\u062A. \u0647\u0630\u0627 \u0627\u0644\u0646\u0635 \u0647\u0648 \u0628\u062F\u064A\u0644 \u0639\u0631\u0628\u064A \u0644\u0646\u0635 \u0644\u0648\u0631\u064A\u0645 \u0625\u064A\u0628\u0633\u0648\u0645 \u0627\u0644\u0644\u0627\u062A\u064A\u0646\u064A. \u064A\u0633\u0627\u0639\u062F \u0641\u064A \u0627\u062E\u062A\u0628\u0627\u0631 \u0627\u0644\u062A\u062E\u0637\u064A\u0637\u0627\u062A \u0648\u0627\u0644\u062E\u0637\u0648\u0637 \u0648\u0627\u0644\u0627\u062A\u062C\u0627\u0647 \u0645\u0646 \u0627\u0644\u064A\u0645\u064A\u0646 \u0625\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631. \u0627\u0644\u0644\u063A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0645\u0646 \u0623\u0643\u062B\u0631 \u0627\u0644\u0644\u063A\u0627\u062A \u0627\u0646\u062A\u0634\u0627\u0631\u0627 \u0641\u064A \u0627\u0644\u0639\u0627\u0644\u0645.",px="\u042D\u0442\u043E \u043F\u0440\u0438\u043C\u0435\u0440 \u0442\u0435\u043A\u0441\u0442\u0430 \u0434\u043B\u044F \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u043C\u0430\u043A\u0435\u0442\u0430. \u041E\u043D \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u043A\u0430\u043A \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C \u0434\u043B\u044F \u043F\u0440\u043E\u0442\u043E\u0442\u0438\u043F\u043E\u0432. \u0420\u0435\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0435\u043D\u0442 \u0431\u0443\u0434\u0435\u0442 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u043F\u043E\u0437\u0436\u0435. \u0412\u0435\u0431-\u0434\u0438\u0437\u0430\u0439\u043D \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0442\u0435\u043A\u0441\u0442\u043E\u0432\u044B\u0445 \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u0435\u0439 \u0434\u043B\u044F \u043F\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043C\u0430\u043A\u0435\u0442\u043E\u0432. \u042D\u0442\u043E\u0442 \u0442\u0435\u043A\u0441\u0442 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0440\u0443\u0441\u0441\u043A\u043E\u044F\u0437\u044B\u0447\u043D\u043E\u0439 \u0430\u043B\u044C\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u043E\u0439 \u043B\u0430\u0442\u0438\u043D\u0441\u043A\u043E\u043C\u0443 \u0442\u0435\u043A\u0441\u0442\u0443. \u041A\u0438\u0440\u0438\u043B\u043B\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0448\u0440\u0438\u0444\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u043C\u043D\u043E\u0433\u0438\u043C\u0438 \u044F\u0437\u044B\u043A\u0430\u043C\u0438 \u043C\u0438\u0440\u0430. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043A\u0430\u043A \u0432\u0430\u0448 \u0434\u0438\u0437\u0430\u0439\u043D \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u0441 \u044D\u0442\u0438\u043C \u043D\u0430\u0431\u043E\u0440\u043E\u043C \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432.",mx="\u8FD9\u662F\u4E00\u6BB5\u5360\u4F4D\u6587\u672C\uFF0C\u7528\u4E8E\u68C0\u67E5\u9875\u9762\u5E03\u5C40\u3002\u5B9E\u9645\u5185\u5BB9\u5C06\u5728\u4EE5\u540E\u6DFB\u52A0\u3002\u8FD9\u6BB5\u6587\u5B57\u7684\u4F5C\u7528\u662F\u5C55\u793A\u6587\u672C\u5728\u9875\u9762\u4E0A\u7684\u663E\u793A\u6548\u679C\u3002\u5728\u5236\u4F5C\u8BBE\u8BA1\u539F\u578B\u65F6\uFF0C\u8BF7\u628A\u5B83\u653E\u5728\u9700\u8981\u6587\u5B57\u7684\u4F4D\u7F6E\u3002\u7F51\u9875\u8BBE\u8BA1\u9700\u8981\u5360\u4F4D\u6587\u672C\u6765\u586B\u5145\u7A7A\u767D\u533A\u57DF\u3002\u4E2D\u6587\u4E0D\u4F7F\u7528\u7A7A\u683C\u5206\u9694\u8BCD\u8BED\uFF0C\u56E0\u6B64\u6362\u884C\u53EF\u4EE5\u51FA\u73B0\u5728\u4EFB\u610F\u4E24\u4E2A\u5B57\u4E4B\u95F4\u3002\u5728\u7F51\u9875\u8BBE\u8BA1\u4E2D\uFF0C\u6587\u5B57\u7684\u53EF\u8BFB\u6027\u4E0E\u7248\u9762\u7684\u5E73\u8861\u975E\u5E38\u91CD\u8981\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u8BBE\u8BA1\u5728\u957F\u77ED\u4E0D\u540C\u7684\u6BB5\u843D\u4E2D\u662F\u5426\u4F9D\u7136\u7F8E\u89C2\u3002",gx="\uC774\uAC83\uC740 \uB808\uC774\uC544\uC6C3\uC744 \uD655\uC778\uD558\uAE30 \uC704\uD55C \uC608\uC2DC \uD14D\uC2A4\uD2B8\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uCF58\uD150\uCE20\uB294 \uB098\uC911\uC5D0 \uCD94\uAC00\uB429\uB2C8\uB2E4. \uC774 \uAE00\uC740 \uC790\uB9AC \uD45C\uC2DC\uC790 \uC5ED\uD560\uC744 \uD569\uB2C8\uB2E4. \uB514\uC790\uC778 \uC2DC\uC548\uC744 \uB9CC\uB4DC\uB294 \uB3D9\uC548 \uD14D\uC2A4\uD2B8\uAC00 \uD544\uC694\uD55C \uACF3\uC5D0 \uBC30\uCE58\uD574 \uC8FC\uC138\uC694. \uC6F9 \uB514\uC790\uC778\uC5D0\uC11C\uB294 \uBE48 \uACF5\uAC04\uC744 \uCC44\uC6B8 \uC784\uC2DC \uBB38\uC7A5\uC774 \uD544\uC694\uD569\uB2C8\uB2E4. \uD55C\uAE00\uC740 \uC790\uC74C\uACFC \uBAA8\uC74C\uC744 \uBAA8\uC544 \uD558\uB098\uC758 \uAE00\uC790\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uD55C\uAD6D\uC5B4\uB294 \uB2E8\uC5B4 \uC0AC\uC774\uC5D0 \uB744\uC5B4\uC4F0\uAE30\uB97C \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uAE00\uC758 \uAC00\uB3C5\uC131\uACFC \uB808\uC774\uC544\uC6C3\uC758 \uADE0\uD615\uC774 \uC911\uC694\uD569\uB2C8\uB2E4. \uAE34 \uBB38\uB2E8\uACFC \uC9E7\uC740 \uBB38\uB2E8\uC5D0\uC11C \uB514\uC790\uC778\uC774 \uC5B4\uB5BB\uAC8C \uBCF4\uC774\uB294\uC9C0 \uD655\uC778\uD574 \uBCF4\uC138\uC694.",bx="\u05D6\u05D4\u05D5 \u05D8\u05E7\u05E1\u05D8 \u05DC\u05D3\u05D5\u05D2\u05DE\u05D4 \u05D4\u05DE\u05E9\u05DE\u05E9 \u05DC\u05D4\u05E6\u05D2\u05EA \u05D4\u05E2\u05D9\u05E6\u05D5\u05D1. \u05D0\u05E4\u05E9\u05E8 \u05DC\u05D4\u05D7\u05DC\u05D9\u05E3 \u05D0\u05D5\u05EA\u05D5 \u05D1\u05EA\u05D5\u05DB\u05DF \u05D4\u05D0\u05DE\u05D9\u05EA\u05D9 \u05DE\u05D0\u05D5\u05D7\u05E8 \u05D9\u05D5\u05EA\u05E8. \u05DE\u05D8\u05E8\u05EA\u05D5 \u05DC\u05D4\u05E8\u05D0\u05D5\u05EA \u05DB\u05D9\u05E6\u05D3 \u05D9\u05D9\u05E8\u05D0\u05D4 \u05D4\u05D8\u05E7\u05E1\u05D8 \u05D1\u05E2\u05DE\u05D5\u05D3. \u05E2\u05D9\u05E6\u05D5\u05D1 \u05D0\u05EA\u05E8\u05D9\u05DD \u05D3\u05D5\u05E8\u05E9 \u05D8\u05E7\u05E1\u05D8 \u05D6\u05DE\u05E0\u05D9 \u05DB\u05D3\u05D9 \u05DC\u05DE\u05DC\u05D0 \u05D0\u05EA \u05D4\u05DE\u05E7\u05D5\u05DE\u05D5\u05EA \u05D4\u05E8\u05D9\u05E7\u05D9\u05DD. \u05D4\u05D8\u05E7\u05E1\u05D8 \u05D4\u05D6\u05D4 \u05D4\u05D5\u05D0 \u05D7\u05DC\u05D5\u05E4\u05D4 \u05E2\u05D1\u05E8\u05D9\u05EA \u05DC\u05D8\u05E7\u05E1\u05D8 \u05DC\u05D5\u05E8\u05DD \u05D0\u05D9\u05E4\u05E1\u05D5\u05DD \u05D4\u05DC\u05D8\u05D9\u05E0\u05D9. \u05D4\u05D5\u05D0 \u05E2\u05D5\u05D6\u05E8 \u05DC\u05D1\u05D3\u05D5\u05E7 \u05E4\u05E8\u05D9\u05E1\u05D5\u05EA, \u05D2\u05D5\u05E4\u05E0\u05D9\u05DD \u05D5\u05DB\u05D9\u05D5\u05D5\u05DF \u05DB\u05EA\u05D9\u05D1\u05D4 \u05DE\u05D9\u05DE\u05D9\u05DF \u05DC\u05E9\u05DE\u05D0\u05DC. \u05D4\u05E2\u05D1\u05E8\u05D9\u05EA \u05E0\u05DB\u05EA\u05D1\u05EA \u05D1\u05D0\u05DC\u05E4\u05D1\u05D9\u05EA \u05D1\u05DF \u05E2\u05E9\u05E8\u05D9\u05DD \u05D5\u05E9\u05EA\u05D9\u05D9\u05DD \u05D0\u05D5\u05EA\u05D9\u05D5\u05EA. \u05D1\u05D3\u05E7\u05D5 \u05DB\u05D9\u05E6\u05D3 \u05D4\u05E2\u05D9\u05E6\u05D5\u05D1 \u05E9\u05DC\u05DB\u05DD \u05DE\u05EA\u05E0\u05D4\u05D2 \u05E2\u05DD \u05E9\u05D5\u05E8\u05D5\u05EA \u05D0\u05E8\u05D5\u05DB\u05D5\u05EA \u05D5\u05E7\u05E6\u05E8\u05D5\u05EA.",Mg={latin:dx,cjk:hx,chinese:mx,korean:gx,arabic:fx,hebrew:bx,cyrillic:px},yx={ja:"cjk",zh:"chinese",ko:"korean",ar:"arabic",fa:"arabic",ur:"arabic",he:"hebrew",ru:"cyrillic",uk:"cyrillic",bg:"cyrillic",sr:"cyrillic"};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>qc()):qc();kx=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Fc)&&Oc(s),s.querySelectorAll(Fc).forEach(n=>Oc(n))}});kx.observe(document.documentElement,{childList:!0,subtree:!0})});var Bg={};T(Bg,{initChapterLists:()=>Hc});function Hc(e=document){e.querySelectorAll(jc).forEach(t=>zc(t))}function zc(e){if(e.hasAttribute("data-chapter-list-init"))return;e.setAttribute("data-chapter-list-init","");let t=e.parentElement;if(!t||t.tagName!=="VIDEO")return;let i=e.track;i.mode==="disabled"&&(i.mode="hidden"),e.readyState>=2?Ig(t,i,e):e.addEventListener("load",()=>Ig(t,i,e),{once:!0})}function Ig(e,t,i){let s=t.cues;if(!s||s.length===0)return;let n=document.createElement("nav");n.setAttribute("aria-label",i.getAttribute("data-label")||"Video chapters"),n.classList.add("chapter-list");let r=document.createElement("ol");for(let o of s){let c=document.createElement("li"),l=document.createElement("button");l.type="button";let u=document.createElement("span");u.textContent=o.text;let d=document.createElement("time");d.textContent=Sx(o.startTime),d.setAttribute("datetime",xx(o.startTime)),l.appendChild(u),l.appendChild(d),l.addEventListener("click",()=>{e.currentTime=o.startTime,e.paused&&e.play()?.catch(()=>{})}),c.appendChild(l),r.appendChild(c)}n.appendChild(r),e.insertAdjacentElement("afterend",n);let a=null;e.addEventListener("timeupdate",()=>{let o=e.currentTime,c=-1;for(let u=0;u<s.length;u++)if(o>=s[u].startTime&&o<s[u].endTime){c=u;break}let l=c>=0?r.children[c]:null;l!==a&&(a&&(a.removeAttribute("data-active"),a.querySelector("button")?.removeAttribute("aria-current")),a=l,a&&(a.setAttribute("data-active",""),a.querySelector("button")?.setAttribute("aria-current","true")))})}function Sx(e){let t=Math.floor(e/3600),i=Math.floor(e%3600/60),s=Math.floor(e%60);return t>0?`${t}:${String(i).padStart(2,"0")}:${String(s).padStart(2,"0")}`:`${i}:${String(s).padStart(2,"0")}`}function xx(e){let t=Math.floor(e/3600),i=Math.floor(e%3600/60),s=Math.floor(e%60);return`PT${t?t+"H":""}${i?i+"M":""}${s}S`}var jc,Cx,Rg=v(()=>{jc='track[kind="chapters"][data-chapter-list]';document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Hc()):Hc();Cx=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.(jc)&&zc(s),s.querySelectorAll?.(jc).forEach(n=>zc(n))}});Cx.observe(document.documentElement,{childList:!0,subtree:!0})});Oe();var cl=[{id:"default",name:"Default",swatchBg:"#3b82f6",seeds:{}},{id:"ocean",name:"Ocean",swatchBg:"#0891b2",seeds:{"--hue-primary":200,"--hue-secondary":180,"--hue-accent":45,"--lightness-primary":"50%","--chroma-primary":.15,"--lightness-secondary":"45%","--chroma-secondary":.1,"--lightness-accent":"70%","--chroma-accent":.15},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.12}},{id:"forest",name:"Forest",swatchBg:"#059669",seeds:{"--hue-primary":145,"--hue-secondary":90,"--hue-accent":30,"--lightness-primary":"45%","--chroma-primary":.15,"--lightness-secondary":"55%","--chroma-secondary":.12,"--lightness-accent":"65%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"58%","--chroma-primary":.12}},{id:"sunset",name:"Sunset",swatchBg:"#ea580c",seeds:{"--hue-primary":25,"--hue-secondary":0,"--hue-accent":280,"--lightness-primary":"57%","--chroma-primary":.2,"--lightness-secondary":"55%","--chroma-secondary":.18,"--lightness-accent":"55%","--chroma-accent":.18},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.16}},{id:"rose",name:"Rose",swatchBg:"#e11d48",seeds:{"--hue-primary":350,"--hue-secondary":330,"--hue-accent":200,"--lightness-primary":"55%","--chroma-primary":.18,"--lightness-secondary":"50%","--chroma-secondary":.14,"--lightness-accent":"60%","--chroma-accent":.12},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.14}},{id:"lavender",name:"Lavender",swatchBg:"#a855f7",seeds:{"--hue-primary":280,"--hue-secondary":300,"--hue-accent":60,"--lightness-primary":"55%","--chroma-primary":.14,"--lightness-secondary":"50%","--chroma-secondary":.12,"--lightness-accent":"70%","--chroma-accent":.14},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.12}},{id:"coral",name:"Coral",swatchBg:"#f97316",seeds:{"--hue-primary":15,"--hue-secondary":25,"--hue-accent":180,"--lightness-primary":"57%","--chroma-primary":.18,"--lightness-secondary":"55%","--chroma-secondary":.15,"--lightness-accent":"55%","--chroma-accent":.12},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.15}},{id:"slate",name:"Slate",swatchBg:"#64748b",seeds:{"--hue-primary":220,"--hue-secondary":210,"--hue-accent":45,"--lightness-primary":"48%","--chroma-primary":.1,"--lightness-secondary":"45%","--chroma-secondary":.06,"--lightness-accent":"68%","--chroma-accent":.15},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.08}},{id:"emerald",name:"Emerald",swatchBg:"#10b981",seeds:{"--hue-primary":160,"--hue-secondary":140,"--hue-accent":30,"--lightness-primary":"50%","--chroma-primary":.15,"--lightness-secondary":"48%","--chroma-secondary":.12,"--lightness-accent":"65%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.12}},{id:"amber",name:"Amber",swatchBg:"#f59e0b",seeds:{"--hue-primary":45,"--hue-secondary":30,"--hue-accent":240,"--lightness-primary":"56%","--chroma-primary":.16,"--lightness-secondary":"55%","--chroma-secondary":.15,"--lightness-accent":"52%","--chroma-accent":.14},seedsDark:{"--lightness-primary":"68%","--chroma-primary":.14}},{id:"indigo",name:"Indigo",swatchBg:"#6366f1",seeds:{"--hue-primary":250,"--hue-secondary":270,"--hue-accent":35,"--lightness-primary":"48%","--chroma-primary":.18,"--lightness-secondary":"45%","--chroma-secondary":.14,"--lightness-accent":"68%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"62%","--chroma-primary":.14}}],ll=[{id:"default",name:"Default",hue:210,shape:"balanced",character:"The default",swatchBg:"#3b82f6",tier:"core"},{id:"modern",name:"Modern",hue:270,shape:"rounded",character:"Vibrant & elevated",swatchBg:"#6366f1",tier:"core"},{id:"minimal",name:"Minimal",hue:240,shape:"sharp",character:"Clean & flat",swatchBg:"#71717a",tier:"core"},{id:"classic",name:"Classic",hue:220,shape:"subtle",character:"Serif & elegant",swatchBg:"#92400e",tier:"core"}],An=[{id:"swiss",name:"Swiss",icon:"grid-3x3",character:"Precision grid",swatchBg:"#ff3e00",swatchFg:"white",tier:"showcase",category:"Design"},{id:"brutalist",name:"Brutalist",icon:"square",character:"Raw, industrial",swatchBg:"#1a1a1a",swatchFg:"#f5f5f5",tier:"showcase",category:"Design"},{id:"art-deco",name:"Art Deco",icon:"crown",character:"1920s luxury",swatchBg:"#1A1A1A",swatchFg:"#C9A84C",tier:"showcase",category:"Design"},{id:"editorial",name:"Editorial",icon:"newspaper",character:"Magazine elegance",swatchBg:"#1a1a1a",swatchFg:"#c9a227",tier:"showcase",category:"Content"},{id:"genai",name:"GenAI",icon:"sparkles",character:"AI aesthetic",swatchBg:"#1a0a2e",swatchFg:"#a855f7",tier:"showcase",category:"Modern"},{id:"glassmorphism",name:"Glass",icon:"glass-water",character:"Frosted surfaces",swatchBg:"#667eea",swatchFg:"#ffffff",tier:"showcase",category:"Modern"},{id:"startup",name:"Startup",icon:"rocket",character:"SaaS energy",swatchBg:"#4f46e5",swatchFg:"#ffffff",tier:"showcase",category:"Modern"},{id:"organic",name:"Organic",icon:"leaf",character:"Natural, handcrafted",swatchBg:"#2d5016",swatchFg:"#faf5e6",tier:"showcase",category:"Creative"},{id:"rough",name:"Rough",icon:"pencil",character:"Hand-drawn sketch",swatchBg:"#f5f0e8",swatchFg:"#3a3a3a",tier:"showcase",category:"Creative"},{id:"cyber",name:"Cyber",icon:"zap",character:"Neon futuristic",swatchBg:"#0a0a1a",swatchFg:"#00ff88",tier:"showcase",category:"Creative"},{id:"journal",name:"Journal",icon:"notebook-pen",character:"Dot-grid bullet journal",swatchBg:"#f3ecdc",swatchFg:"#27313f",tier:"showcase",category:"Creative"},{id:"vaporwave",name:"Vaporwave",icon:"radio",character:"Neon dreamy",swatchBg:"#2b0040",swatchFg:"#ff6ad5",tier:"showcase",category:"Aesthetic"},{id:"neumorphism",name:"Neumorph",icon:"circle",character:"Soft embossed",swatchBg:"#e0e0e0",swatchFg:"#a0a0a0",tier:"showcase",category:"Aesthetic"},{id:"bauhaus",name:"Bauhaus",icon:"shapes",character:"Geometric",swatchBg:"#F1FAEE",swatchFg:"#E63946",tier:"showcase",category:"Aesthetic"},{id:"claymorphism",name:"Clay",icon:"circle-dot",character:"Puffy 3D",swatchBg:"#f0f0f5",swatchFg:"#FF6B9D",tier:"showcase",category:"Aesthetic"},{id:"alpha1999",name:"Alpha1999",icon:"orbit",character:"Space retro-fi",swatchBg:"#0a0a14",swatchFg:"#d4880f",tier:"showcase",category:"Signature"},{id:"super2026",name:"Super2026",icon:"triangle",character:"Supergraphic bold",swatchBg:"#f5f0e6",swatchFg:"#c23616",tier:"showcase",category:"Signature"},{id:"magna",name:"Magna",icon:"orbit",character:"Odyssey 2 retro",swatchBg:"#0d0b14",swatchFg:"#f97316",tier:"showcase",category:"Signature"},{id:"win9x",name:"Win9x",icon:"monitor",character:"Classic desktop",swatchBg:"#008080",swatchFg:"#c0c0c0",tier:"showcase",category:"OS Styles"},{id:"nes",name:"NES",icon:"joystick",character:"Console pixels",swatchBg:"#bcbcbc",swatchFg:"#e40521",tier:"showcase",category:"OS Styles"},{id:"8bit",name:"8-Bit",icon:"gamepad-2",character:"Retro pixel art",swatchBg:"#000080",swatchFg:"#ffff00",tier:"showcase",category:"OS Styles"}],En=[{id:"nord",name:"Nord",icon:"snowflake",character:"Arctic calm",swatchBg:"#2E3440",swatchFg:"#81A1C1",tier:"community",category:"Editor Palettes"},{id:"solarized",name:"Solarized",icon:"sun-dim",character:"Engineered precision",swatchBg:"#002B36",swatchFg:"#268BD2",tier:"community",category:"Editor Palettes"},{id:"dracula",name:"Dracula",icon:"moon-star",character:"Dark elegance",swatchBg:"#282A36",swatchFg:"#BD93F9",tier:"community",category:"Editor Palettes"},{id:"catppuccin-mocha",name:"Catppuccin",icon:"coffee",character:"Warm pastels",swatchBg:"#1E1E2E",swatchFg:"#CBA6F7",tier:"community",category:"Editor Palettes"},{id:"catppuccin-latte",name:"Ctp Latte",icon:"coffee",character:"Cozy daytime",swatchBg:"#eff1f5",swatchFg:"#8839ef",tier:"community",category:"Editor Palettes"},{id:"catppuccin-frappe",name:"Ctp Frapp\xE9",icon:"coffee",character:"Cool twilight",swatchBg:"#303446",swatchFg:"#ca9ee6",tier:"community",category:"Editor Palettes"},{id:"catppuccin-macchiato",name:"Ctp Macchiato",icon:"coffee",character:"Deep blue",swatchBg:"#24273a",swatchFg:"#c6a0f6",tier:"community",category:"Editor Palettes"},{id:"gruvbox",name:"Gruvbox",icon:"palette",character:"Retro warmth",swatchBg:"#282828",swatchFg:"#ebdbb2",tier:"community",category:"Editor Palettes"},{id:"tokyo-night",name:"Tokyo Night",icon:"moon",character:"Night-owl vibes",swatchBg:"#1a1b26",swatchFg:"#7aa2f7",tier:"community",category:"Editor Palettes"},{id:"rose-pine",name:"Ros\xE9 Pine",icon:"flower-2",character:"Muted elegance",swatchBg:"#191724",swatchFg:"#ebbcba",tier:"community",category:"Editor Palettes"},{id:"cottagecore",name:"Cottagecore",icon:"flower-2",character:"Pastoral",swatchBg:"#fdf8f0",swatchFg:"#7d8c6d",tier:"community",category:"Niche"},{id:"terminal",name:"Terminal",icon:"terminal",character:"Retro CRT",swatchBg:"#0d1117",swatchFg:"#00ff00",tier:"community",category:"Niche"},{id:"clinical",name:"Clinical",icon:"heart-pulse",character:"Sterile precision",swatchBg:"#ffffff",swatchFg:"#0077b6",tier:"community",category:"Industry"},{id:"financial",name:"Financial",icon:"landmark",character:"Navy + gold",swatchBg:"#1b2a4a",swatchFg:"#c9a84c",tier:"community",category:"Industry"},{id:"government",name:"Government",icon:"shield",character:"Official",swatchBg:"#002868",swatchFg:"#bf0a30",tier:"community",category:"Industry"},{id:"dawn",name:"Dawn",icon:"sunrise",character:"Golden morning",swatchBg:"#fef3e2",swatchFg:"#d4a574",tier:"community",category:"Mood/Time"},{id:"dusk",name:"Dusk",icon:"sunset",character:"Twilight",swatchBg:"#1a1b2e",swatchFg:"#e5a858",tier:"community",category:"Mood/Time"},{id:"midnight",name:"Midnight",icon:"moon",character:"Deep night",swatchBg:"#0d1117",swatchFg:"#58a6ff",tier:"community",category:"Mood/Time"},{id:"high-noon",name:"High Noon",icon:"sun",character:"Maximum bright",swatchBg:"#ffffff",swatchFg:"#e63946",tier:"community",category:"Mood/Time"}],ul=[{id:"kawaii",name:"Kawaii",icon:"heart",character:"Cute aesthetic",swatchBg:"#ffb7c5",swatchFg:"#ff69b4",tier:"showcase",category:"Packs"},{id:"memphis",name:"Memphis",icon:"star",character:"Bold patterns",swatchBg:"#FFF8F0",swatchFg:"#d03040",tier:"showcase",category:"Packs"}];var HC=[...An,...En],zC=[...ll,...An,...En,...ul],It=e=>An.filter(t=>t.category===e),dl=[{label:"Style",themes:ll,tier:"core"},{label:"Design",themes:It("Design"),tier:"showcase"},{label:"Content",themes:It("Content"),tier:"showcase"},{label:"Modern",themes:It("Modern"),tier:"showcase"},{label:"Creative",themes:It("Creative"),tier:"showcase"},{label:"Aesthetic",themes:It("Aesthetic"),tier:"showcase"},{label:"Signature",themes:It("Signature"),tier:"showcase"},{label:"OS Styles",themes:It("OS Styles"),tier:"showcase"},{label:"Packs",themes:ul,tier:"showcase"},{label:"More Themes",themes:En,tier:"community"}];ct();var Ii="theme",Bi="current",vl=2,Fi={accent:"data-accent",borderStyle:"data-border-style",iconSet:"data-icon-set",fluid:"data-fluid",backdrop:"data-backdrop",backdropChrome:"data-backdrop-chrome"},et={mode:"auto",brand:"default",accent:null,borderStyle:null,iconSet:null,fluid:null,backdrop:null,backdropChrome:null,pageBgType:"",pageBgColor:"",pageBgGradStart:"",pageBgGradEnd:"",pageBgGradDir:""};function pl(e){if(!e||typeof e!="object")return null;let t={...e};if(!(Number(t.v)>=vl))for(let i of Object.keys(Fi))(t[i]===""||i==="accent"&&t[i]==="default")&&(t[i]=null);return t}function wt(e,t){return e??t??""}var Sn=null;function lt(){if(Sn)return Sn;let e=document.documentElement,t=window.__vbAuthoredRoot,i=n=>{if(t&&typeof t=="object"){if(n in t)return t[n]??null;if(n==="data-mode")return null}return e.getAttribute(n)},s={theme:i("data-theme"),mode:i("data-mode"),themeSource:i("data-theme-source")};for(let[n,r]of Object.entries(Fi))s[n]=i(r);return Sn=s,s}function xb(e){try{let t=document.createElement("canvas");t.width=t.height=1;let i=t.getContext("2d",{willReadFrequently:!0});if(!i)return e;i.fillStyle=e,i.fillRect(0,0,1,1);let[s,n,r]=i.getImageData(0,0,1,1).data;return"#"+[s,n,r].map(a=>a.toString(16).padStart(2,"0")).join("")}catch{return e}}function Ri(e,t){let i=(e||"").split(/\s+/).filter(Boolean);return t==="site"?i[0]&&!i[0].startsWith("a11y-")?i[0]:"":i.find(s=>!s.startsWith("a11y-"))||""}function Cb(e,t,i,s=!1){let n=(e||"").split(/\s+/).filter(r=>r&&r!==t&&r!==i);return i!=="default"?[i,...n].join(" "):(s&&n.length?["default",...n]:n).join(" ")}function ml(e){return e==="light"||e==="dark"?e:null}function gl(e,t,i){return t||(e==="light"||e==="dark"?e:i?"dark":"light")}function bl(e,t,i){let s=Ri(t,i);return i==="site"&&s?s:e?.brand&&e.brand!==et.brand?e.brand:s||et.brand}var yl=["--hue-primary","--hue-secondary","--hue-accent","--lightness-primary","--chroma-primary","--lightness-secondary","--chroma-secondary","--lightness-accent","--chroma-accent"],q=null,qe="",xn="",ie=null,Bt=null,I={_initPromise:null,async init(){return this._initPromise?this._initPromise:(this._initPromise=(async()=>{let e=pl(await x.get(Ii,Bi));q=e?{...et,...e}:{...et},Bt=lt().themeSource??null,qe=Ri(lt().theme??"",Bt),xn=Ri(document.documentElement.dataset.theme||"",Bt),ie=ml(lt().mode),q.brand=bl(e,lt().theme??"",Bt);try{await Pe(q.brand)}catch{q.brand!==qe&&(q.brand=qe||et.brand)}return this.apply(q),this._watchSystemPreference(),this._watchRootAttributes(),this._watchCrossDocumentStorage(),q})(),this._initPromise)},_watchCrossDocumentStorage(){typeof window>"u"||window.addEventListener("storage",async e=>{if(e.key!==`vb:${Ii}:${Bi}`||!e.newValue)return;let t;try{let s=JSON.parse(e.newValue);t=pl(s?.data)}catch{return}if(!t)return;let i={...et,...q,...t};if(i.brand=bl(t,lt().theme??"",Bt),i.brand&&i.brand!==q?.brand)try{await Pe(i.brand)}catch{i.brand=qe||et.brand}q=i,this.apply(q||{})})},load(){return q?{...q}:{...et}},save(e){let t={...q??et,...e,v:vl};return q=t,x.set(Ii,Bi,t).catch(()=>{}),t},apply({mode:e="auto",brand:t="default",borderStyle:i=null,iconSet:s=null,fluid:n=null,backdrop:r=null,backdropChrome:a=null,pageBgType:o="",pageBgColor:c="",pageBgGradStart:l="",pageBgGradEnd:u="",pageBgGradDir:d=""}={}){let h=document.documentElement,f=lt(),p=gl(e,ie,window.matchMedia("(prefers-color-scheme: dark)").matches);h.dataset.mode=p;let m=Bt==="site",g=Cb(h.dataset.theme||"",xn,t,m);g?h.dataset.theme=g:delete h.dataset.theme,xn=t==="default"&&!g.startsWith("default")?"":t;let b=i||f.borderStyle||this._readCSSHint("--theme-border-style");this._setRootAttr("data-border-style",b&&b!=="clean"?b:"");let A=s||f.iconSet||this._readCSSHint("--theme-icon-set");this._setRootAttr("data-icon-set",A&&A!=="lucide"?A:"");let w=wt(n,f.fluid);this._setRootAttr("data-fluid",w,!0);let _=wt(r,f.backdrop);this._setRootAttr("data-backdrop",_,!0);let D=wt(a,f.backdropChrome);if(this._setRootAttr("data-backdrop-chrome",D&&D!=="card"?D:""),o==="color"&&c)h.style.setProperty("--page-bg-color",c),h.style.removeProperty("--page-bg-gradient");else if(o==="gradient"&&l&&u){let S=d||"to bottom";h.style.setProperty("--page-bg-gradient",`linear-gradient(${S}, ${l}, ${u})`),h.style.removeProperty("--page-bg-color")}else h.style.removeProperty("--page-bg-color"),h.style.removeProperty("--page-bg-gradient");this._applyAccent(this.load().accent);let V=this.getState().accent;this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{mode:e,brand:t,accent:V,borderStyle:b,iconSet:A,fluid:w,backdrop:_,backdropChrome:D,pageBgType:o,effectiveMode:p}}))},_setRootAttr(e,t,i=!1){let s=document.documentElement;t?s.setAttribute(e,t):i&&this._authoredHas(e)?s.setAttribute(e,""):s.removeAttribute(e)},_authoredHas(e){let t=Object.keys(Fi).find(s=>Fi[s]===e);return t?this.load()[t]==null&&lt()[t]!=null:!1},_syncThemeColor(){let e=document.querySelectorAll('meta[name="theme-color"]');if(!e.length)return;let t=n=>!n||n==="transparent"||/^rgba\(.*,\s*0\)$/.test(n),i=getComputedStyle(document.documentElement).backgroundColor;if(t(i)){let n=document.createElement("span");n.style.setProperty("position","absolute"),n.style.setProperty("background-color","var(--color-background)"),(document.body||document.documentElement).append(n),i=getComputedStyle(n).backgroundColor,n.remove()}if(t(i))return;let s=xb(i);e.forEach(n=>{n.removeAttribute("media"),n.setAttribute("content",s)})},setMode(e){ie=null;let t=this.save({mode:e});this.apply(t)},async setBrand(e){try{await Pe(e)}catch(i){console.warn(`[VB] Theme "${e}" failed to load, using default`,i),e="default"}let t=this.save({brand:e});this.apply(t)},setAccent(e){this.save({accent:e}),this._applyAccent(e),this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}}))},setBorderStyle(e){let t=this.save({borderStyle:e});this.apply(t)},setIconSet(e){let t=this.save({iconSet:e});this.apply(t)},setFluid(e){let t=this.save({fluid:e});this.apply(t)},setBackdrop(e){let t=this.save({backdrop:e});this.apply(t)},setBackdropChrome(e){let t=this.save({backdropChrome:e});this.apply(t)},setPageBg({type:e="",color:t="",gradStart:i="",gradEnd:s="",gradDir:n=""}={}){let r=this.save({pageBgType:e,pageBgColor:t,pageBgGradStart:i,pageBgGradEnd:s,pageBgGradDir:n});this.apply(r)},getEffectiveMode(){let{mode:e}=this.load();return gl(e,ie,window.matchMedia("(prefers-color-scheme: dark)").matches)},getState(){let{mode:e,brand:t,accent:i,borderStyle:s,iconSet:n,fluid:r,backdrop:a,backdropChrome:o,pageBgType:c,pageBgColor:l,pageBgGradStart:u,pageBgGradEnd:d,pageBgGradDir:h}=this.load(),f=typeof document>"u"?{}:lt(),p=(m,g)=>g==null&&f[m]===""?"default":wt(g,f[m]);return{mode:e,brand:t,accent:wt(i,f.accent)||"default",borderStyle:wt(s,f.borderStyle),iconSet:wt(n,f.iconSet),fluid:p("fluid",r),backdrop:p("backdrop",a),backdropChrome:wt(o,f.backdropChrome),pageBgType:c,pageBgColor:l,pageBgGradStart:u,pageBgGradEnd:d,pageBgGradDir:h,effectiveMode:this.getEffectiveMode()}},toggleMode(){let t=this.getEffectiveMode()==="dark"?"light":"dark";this.setMode(t)},reset(){q={...et,brand:qe||et.brand},ie=ml(lt().mode),x.remove(Ii,Bi).catch(()=>{});let e=document.documentElement;e.style.removeProperty("--page-bg-color"),e.style.removeProperty("--page-bg-gradient");for(let t of yl)e.style.removeProperty(t);this.apply(q)},_readCSSHint(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()},_applyAccent(e){let t=document.documentElement;for(let s of yl)t.style.removeProperty(s);if(e==null){let s=lt().accent;s?t.dataset.accent=s:delete t.dataset.accent;return}let i=cl.find(s=>s.id===e);if(!i||!i.seeds||Object.keys(i.seeds).length===0){delete t.dataset.accent;return}t.dataset.accent=i.id},_watchRootAttributes(){this._rootObserver||(this._rootObserver=new MutationObserver(e=>{for(let t of e)t.attributeName==="data-theme"?this._syncFromDataTheme():t.attributeName==="data-mode"&&this._syncFromDataMode()}),this._rootObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","data-mode"]}))},_syncFromDataTheme(){if(!q)return;let e=document.documentElement.dataset.theme||"",t=e.split(/\s+/).filter(Boolean),i=Ri(e,Bt)||"default";i!==q.brand&&(q.brand=i,Pe(i).catch(()=>{}),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}})))},_syncFromDataMode(){if(!q)return;let e=document.documentElement.dataset.mode||"auto",t=this.getEffectiveMode();e!==t&&(ie=null,q.mode=e,this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}})))},_watchSystemPreference(){window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{let t=this.load();t.mode==="auto"&&this.apply(t)})}};if(typeof window<"u"){let e=window.VB??(window.VB={});e.themeManager??=I}var Tb=["calendar-event","chat-bubble","chat-message","chat-thread","dl-item","fab-stack","hour-view","layout-badge","layout-canvas","layout-card","layout-center","layout-cluster","layout-columns","layout-cover","layout-grid","layout-imposter","layout-reel","layout-sidebar","layout-stack","layout-switcher","layout-text","loading-spinner","semantic-card","site-legal","site-tools","status-message","text-divider","token-swatch","user-avatar"];for(let e of Tb)customElements.get(e)||customElements.define(e,class extends HTMLElement{});Oe();var QC=window.matchMedia("(prefers-reduced-motion: reduce)");var wl=new Map;function E(e,t,i={}){let s=i.priority??10,n={impl:t,bundle:i.bundle,contract:i.contract,priority:s},r=wl.get(e);if(customElements.get(e)){if(!r||r.priority>=s){r&&r.priority===s&&r.impl!==t&&console.warn(`[VB Bundle] Tag <${e}> already registered by "${r.bundle}" (priority ${r.priority}). Skipping "${i.bundle}".`);return}console.warn(`[VB Bundle] Tag <${e}> defined by "${r.bundle}" cannot be replaced (customElements.define is permanent). "${i.bundle}" has higher priority but arrived late.`);return}if(r&&r.priority>=s){r.priority===s&&console.warn(`[VB Bundle] Tag <${e}> already registered by "${r.bundle}". Skipping "${i.bundle}" (first wins at equal priority).`);return}wl.set(e,n),customElements.define(e,t)}var k=class extends HTMLElement{#t=[];#e;constructor(){super(),this.hasAttribute("data-upgraded")&&this.removeAttribute("data-upgraded")}connectedCallback(){this.hasAttribute("data-upgraded")||this.setup()!==!1&&(this.setAttribute("data-upgraded",""),queueMicrotask(()=>{this.dispatchEvent(new CustomEvent(`${this.localName}:upgraded`,{bubbles:!0}))}))}disconnectedCallback(){for(let t of this.#t)t();this.#t=[],this.removeAttribute("data-upgraded"),this.teardown()}listen(t,i,s,n){t.addEventListener(i,s,n),this.#t.push(()=>t.removeEventListener(i,s,n))}_reinit(){for(let t of this.#t)t();this.#t=[],this.teardown(),this.removeAttribute("data-upgraded"),this.isConnected&&this.setup()!==!1&&this.setAttribute("data-upgraded","")}setup(){}teardown(){}setState(t,i){this.#e||(this.#e=this.attachInternals());let s=this.#e.states;try{i?s.add(t):s.delete(t)}catch{let n=`--${t}`;i?s.add(n):s.delete(n)}}_adoptInternals(t){this.#e||(this.#e=t)}#i(){return this.constructor.formAssociated&&this.#e?this.#e:null}get validity(){return this.#i()?.validity}get validationMessage(){return this.#i()?.validationMessage??""}get willValidate(){return this.#i()?.willValidate??!1}get form(){return this.#i()?.form??null}checkValidity(){return this.#i()?.checkValidity()??!0}reportValidity(){return this.#i()?.reportValidity()??!0}};var Lb=["valueMissing","badInput","typeMismatch","patternMismatch","tooShort","tooLong","rangeUnderflow","rangeOverflow","stepMismatch","customError"],Db='input:not([type="hidden"]):not(.otp-digit), textarea, select',Nb="output.hint, output.textarea-counter",Mb="Please check this field.",_b=0;function Al(e){return e.localName.includes("-")?!!customElements.get(e.localName)?.formAssociated:!1}function je(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement}var Cn=class extends k{#t=null;#e=[];#i=null;#n=!1;#s="";#o;#r=`ff-${++_b}`;setup(){if(this.#f(),this.#t=this.#g(),this.#i=this.querySelector("output.error")??this.querySelector("output:not(.hint):not(.textarea-counter)"),!this.#t)return!1;this.#i&&this.#o===void 0&&(this.#o=this.#i.textContent?.trim()??"",this.hasAttribute("data-invalid")||(this.#i.textContent=""));let t=this.#t;this.#e=[],t instanceof HTMLInputElement&&t.type==="radio"&&(this.#e=this.#u(t));let i=this.#e.length?this.#e:[t];for(let n of i)this.listen(n,"input",this.#a),this.listen(n,"change",this.#a),this.listen(n,"invalid",this.#c);je(t)||this.listen(t,`${t.localName}:change`,this.#a),this.listen(this,"focusout",n=>{let r=n.relatedTarget;r instanceof Node&&this.contains(r)||this.validate()});let s=t.form??this.closest("form");return s instanceof HTMLFormElement&&this.listen(s,"reset",n=>{setTimeout(()=>{!n.defaultPrevented&&this.isConnected&&this.clearError()})}),this.#v(this.hasAttribute("data-invalid")),!0}teardown(){this.#t=null,this.#e=[],this.#i=null}validate({show:t=!0}={}){if(!this.#t)return!0;let{valid:i,message:s}=this.#d();return t&&(i?(this.#S(this.#h()?"valid":null),this.#b("")):(this.#n=!0,this.#S("invalid"),this.#b(s)),this.#v(!i)),i}setError(t){if(!this.#t)return;this.#s=t;let i=this.#p();i&&i.setCustomValidity(t),this.validate()}clearError(){this.#t&&(this.#y(),this.#n=!1,this.#S(null),this.#b(""),this.#v(!1))}get fieldName(){return this.querySelector("label, legend")?.textContent?.trim()||this.#t?.getAttribute?.("aria-label")||this.#t?.getAttribute?.("name")||this.#t?.id||"Field"}get input(){return this.#t}#a=()=>{this.#s&&this.#y(),this.#n&&this.validate()};#l=!1;#c=()=>{if(!this.#l){this.#l=!0;try{this.validate()}finally{this.#l=!1}}};#g(){for(let t of this.querySelectorAll("*"))if(Al(t))return t;return this.querySelector(Db)}#f(){for(let t of this.querySelectorAll(":not(:defined)"))t.localName.includes("-")&&customElements.whenDefined(t.localName).then(()=>{!this.isConnected||!this.contains(t)||this.#t===t||Al(t)&&this._reinit()})}#u(t){return t.name?(t.form?[...t.form.elements]:[...t.getRootNode().querySelectorAll('input[type="radio"]')].filter(s=>!s.form)).filter(s=>s instanceof HTMLInputElement&&s.type==="radio"&&s.name===t.name):[t]}#p(){let t=this.#t;return t&&je(t)?t:null}#y(){let t=this.#p();t&&t.validity.customError&&t.validationMessage===this.#s&&t.setCustomValidity(""),this.#s=""}#d(){let t=this.#t;if(this.#s)return{valid:!1,message:this.#s};let i=t.validity;if(i)return i.valid?{valid:!0,message:""}:{valid:!1,message:this.#m(i)};let s=t.matches(":invalid");return{valid:!s,message:s?this.#m(null):""}}#m(t){let i=this.#t,s=je(i),n=r=>i.getAttribute(`data-message-${r.toLowerCase()}`)??(s?null:this.getAttribute(`data-message-${r.toLowerCase()}`));if(t)for(let r of Lb){if(!t[r])continue;let a=n(r);if(a)return a;if((r==="customError"||!s)&&i.validationMessage)return i.validationMessage;break}else if(!this.#h()){let r=n("valueMissing");if(r)return r}return this.#o||i.validationMessage||this.getAttribute("data-message-invalid")||Mb}#h(){let t=this.#t;if(this.#e.length)return this.#e.some(s=>s.checked);if(t instanceof HTMLInputElement&&t.type==="checkbox")return t.checked;let i=t.value;return Array.isArray(i)?i.length>0:!je(t)&&i===0?!1:i!=null&&String(i)!==""}#E(){let t=this.#t,i=this.querySelector('.otp-wrapper[role="group"]');return i?[i]:this.#e.length?this.#e.filter(s=>this.contains(s)):je(t)?[t]:[t.querySelector('[role="combobox"], fieldset, input:not([type="hidden"]):not([aria-hidden="true"]), textarea, select')??t]}#v(t){let i=[...this.querySelectorAll(Nb)];i.forEach((a,o)=>{a.id||(a.id=`${this.#r}-hint${o?`-${o}`:""}`)});let s=this.#i;s&&!s.id&&(s.id=`${this.#r}-error`);let n=new Set([...i.map(a=>a.id),...s?[s.id]:[]]),r=[...i.map(a=>a.id),...t&&s?[s.id]:[]];for(let a of this.#E()){let o=(a.getAttribute("aria-describedby")??"").split(/\s+/).filter(l=>l&&!n.has(l)),c=[...new Set([...o,...r])];c.length?a.setAttribute("aria-describedby",c.join(" ")):a.removeAttribute("aria-describedby"),t?a.setAttribute("aria-invalid","true"):a.removeAttribute("aria-invalid")}}#S(t){delete this.dataset.valid,delete this.dataset.invalid,t&&(this.dataset[t]="")}#b(t){this.#i&&(this.#i.textContent=t)}};E("form-field",Cn);function ut(e){return document.startViewTransition?document.startViewTransition(e):e()}var $b=0,Ib=0,Tn=class extends k{#t=[];#e=[];#i=!1;#n=0;#s=!1;setup(){return this.#t=[...this.querySelectorAll(":scope > details")],this.#e=this.#t.map(t=>t.querySelector(":scope > summary")),this.#t.length===0?!1:(this.style.setProperty("--_tab-count",String(this.#t.length)),!this.hasAttribute("role")&&(this.hasAttribute("aria-label")||this.hasAttribute("aria-labelledby"))&&(this.setAttribute("role","group"),this.#s=!0),this.#o(),this.#l(),this.#c(),this.#n=Math.max(0,this.#t.findIndex(t=>t.open)),this.#f(),this.#r(),!0)}teardown(){this.style.removeProperty("--_tab-count"),this.#s&&this.removeAttribute("role"),this.#s=!1,this.#t=[],this.#e=[],this.#i=!1}get tabs(){return this.#t.map((t,i)=>({id:t.id||void 0,label:t.querySelector(":scope > summary")?.textContent?.trim()||`Tab ${i+1}`,content:t.querySelector(":scope > :not(summary)")?.innerHTML||"",active:t.hasAttribute("open")}))}set tabs(t){let i=Array.isArray(t)?t:[];for(;this.firstChild;)this.firstChild.remove();let s=!1;for(let n of i){let r=document.createElement("details");n.id&&(r.id=n.id),n.active&&!s&&(r.setAttribute("open",""),s=!0);let a=document.createElement("summary");a.textContent=n.label||"",r.appendChild(a);let o=document.createElement("section");o.innerHTML=n.content||"",r.appendChild(o),this.appendChild(r)}!s&&this.firstElementChild&&this.firstElementChild.setAttribute("open",""),this._reinit(),this.dispatchEvent(new CustomEvent("tab-set:tabs-changed",{detail:{tabs:i,source:"property"},bubbles:!0}))}#o(){let t=new Set(this.#t.map(s=>s.getAttribute("name")||"")),i=t.size===1?[...t][0]:"";if(i){let n=this.getRootNode().querySelectorAll?.(`details[name="${CSS.escape(i)}"]`)??[];for(let r of n)if(!this.#t.includes(r)){i="";break}}if(!i){i=`tab-set-${++Ib}`;for(let s of this.#t)s.setAttribute("name",i)}}#r(){if(!this.hasAttribute("transition")||!document.startViewTransition)return;this.#i=!0;let t=++$b,i=this.getAttribute("transition")||"fade",s=i==="slide"?"vt-tabs-slide":i==="scale"?"vt-tabs-scale":"vt-tabs";this.#t.forEach(n=>{let r=n.querySelector(":scope > :not(summary)");r&&(r.style.viewTransitionName=`tabs-${t}`,r.style.viewTransitionClass=s)})}#a(t){if(t===this.#n)return;let i=t>this.#n?"forward":"backward";document.documentElement.dataset.vtDirection=i,ut(()=>{this.#t[t].open=!0}).finished?.then(()=>{delete document.documentElement.dataset.vtDirection})}#l(){this.#t.forEach((t,i)=>{let s=this.#e[i],n=t.querySelector(":scope > :not(summary)");if(this.listen(t,"toggle",()=>this.#g(i)),!s||!n)return;let r=s.id||`tab-${crypto.randomUUID().slice(0,8)}`,a=n.id||`panel-${crypto.randomUUID().slice(0,8)}`;s.id=r,s.setAttribute("aria-controls",a),n.id=a,n.setAttribute("aria-labelledby",r),this.listen(s,"click",o=>{if(t.open){o.preventDefault();return}this.#i&&(o.preventDefault(),this.#a(i))}),this.listen(s,"keydown",o=>this.#u(o,i))})}#c(){this.#t.some(t=>t.open)||(this.#t[0].open=!0)}#g(t){let i=this.#t[t];if(this.#f(),!i?.open)return;let s=this.#n;s!==t&&(this.#n=t,this.dispatchEvent(new CustomEvent("tab-set:change",{detail:{index:t,previousIndex:s,tab:i,panel:i.querySelector(":scope > :not(summary)")},bubbles:!0})))}#f(){this.#t.forEach((t,i)=>{let s=this.#e[i];s&&s.setAttribute("aria-expanded",t.open?"true":"false")})}#u(t,i){let s=this.#t.length,n=(i+1)%s,r=(i-1+s)%s,a=getComputedStyle(this).direction==="rtl",o=this.getAttribute("data-orientation")==="vertical",c;switch(t.key){case"ArrowRight":if(o)return;c=a?r:n;break;case"ArrowLeft":if(o)return;c=a?n:r;break;case"ArrowDown":if(!o)return;c=n;break;case"ArrowUp":if(!o)return;c=r;break;case"Home":c=0;break;case"End":c=s-1;break;default:return}t.preventDefault(),this.#i?this.#a(c):this.#t[c].open=!0,this.#e[c]?.focus()}};E("tab-set",Tn);var Bb=()=>typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches;function Ln(e,t){let s=(()=>{try{return decodeURIComponent(location.hash.slice(1))}catch{return location.hash.slice(1)}})()===t;s||(location.hash=t);let n=e;typeof n.focus=="function"&&(n.tabIndex<0&&!n.hasAttribute("tabindex")&&n.setAttribute("tabindex","-1"),n.focus({preventScroll:!0})),(s||!n.matches?.(":target"))&&n.scrollIntoView({behavior:Bb()?"auto":"smooth",block:"start"})}function Dn(e){let t=e;if(t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return!1;let s=(t.target instanceof Element?t.target:null)?.closest('a[href^="#"]');if(!s)return!1;let n=s.getAttribute("target");if(n&&n!=="_self"||s.hasAttribute("download"))return!1;let r=(s.getAttribute("href")??"").slice(1);if(!r)return!1;let a=r;try{a=decodeURIComponent(r)}catch{}let o=s.ownerDocument.getElementById(a);return o?(t.preventDefault(),Ln(o,a),!0):!1}var Rb="Back to content",Fb="Footnote {n}",Pb="Notes",El="\u21A9\uFE0E",Ob=120,qb=150,Nn=e=>String.fromCharCode(97+e%26)+(e>=26?String(Math.floor(e/26)):""),Mn=class e extends k{static observedAttributes=["data-mode","data-label-back","data-label-ref","data-label-heading","data-preview"];static#t=0;#e=0;#i=[];#n=[];#s=null;#o=!1;#r=null;#a=null;#l;#c;attributeChangedCallback(t,i,s){i===s||!this.hasAttribute("data-upgraded")||this._reinit()}setup(){this.#e||(this.#e=++e.#t),this.listen(this,"click",Dn),this.listen(document,"keydown",n=>{n.key==="Escape"&&this.#r?.matches(":popover-open")&&this.#k()});let t=this.#f(this.#g());if(t.length===0)return;let i=this.getAttribute("data-mode")==="sidenotes";for(let n of t)n.side=i&&n.source.getAttribute("data-side")!=="false",this.#u(n);let s=t.filter(n=>!n.side);for(let n of t)n.side&&this.#m(n),n.refs.forEach((r,a)=>this.#y(r,n,a));s.length?this.#h(s):this.hidden||(this.hidden=!0,this.#o=!0)}teardown(){clearTimeout(this.#l),clearTimeout(this.#c),this.#k();for(let{ref:t,original:i}of this.#i)t.replaceChildren(...i),t.removeAttribute("data-enhanced");this.#i=[];for(let t of this.#n)t.remove();this.#n=[],this.#r=null,this.#a=null,this.#s&&(this.#s.el.removeAttribute("id"),this.#s=null),this.#o&&(this.hidden=!1,this.#o=!1)}#g(){return[...document.querySelectorAll("foot-note:not([data-enhanced])")].filter(t=>this.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}#f(t){let i=new Set(t),s=new Map,n=[];for(let r of t){let a=r,o=r.getAttribute("data-ref");if(o){let l=document.getElementById(o);l&&i.has(l)&&!l.hasAttribute("data-ref")?a=l:console.warn(`[foot-notes] data-ref="${o}" does not name a <foot-note> collected by this <foot-notes>; rendering it as its own note.`)}let c=s.get(a);if(!c){let l=n.length+1;c={source:a,num:l,noteId:`fn-${this.#e}-${l}`,refs:[],content:[],side:!1},s.set(a,c),n.push(c)}c.refs.push(r)}return n}#u(t){let i=new Set([t.source,...t.refs]);for(let s of i){let n=[...s.childNodes];this.#i.push({ref:s,original:n}),s===t.source&&(t.content=n),s.replaceChildren()}}#p(t,i){return this.getAttribute(t)||i}#y(t,i,s){let n=document.createElement("a");n.id=this.#d(i,s),n.href=`#${i.noteId}`,n.setAttribute("role","doc-noteref"),n.setAttribute("aria-label",this.#p("data-label-ref",Fb).replaceAll("{n}",String(i.num))),n.textContent=String(i.num),t.setAttribute("data-enhanced",""),i.side&&t===i.source?t.prepend(n):t.append(n),this.listen(n,"click",r=>{this.#k(),Dn(r)}),!i.side&&this.getAttribute("data-preview")!=="false"&&this.#v(n,i)}#d(t,i){let s=`fnref-${this.#e}-${t.num}`;return i===0?s:`${s}-${Nn(i)}`}#m(t){let i=document.createElement("aside");i.className="sidenote",i.id=t.noteId,i.setAttribute("role","note");let s=document.createElement("span");s.className="sidenote-number",s.textContent=`${t.num}.`,i.append(s," ",...t.content),t.source.append(i)}#h(t){let i=document.createElement("section");i.setAttribute("role","doc-endnotes");let s=this.querySelector(":scope > :is(h1, h2, h3, h4, h5, h6)");if(s)s.id||(s.id=`fnh-${this.#e}`,this.#s={el:s,id:s.id}),i.setAttribute("aria-labelledby",s.id);else{let r=document.createElement("h2");r.id=`fnh-${this.#e}`,r.className="visually-hidden",r.textContent=this.#p("data-label-heading",Pb),i.setAttribute("aria-labelledby",r.id),i.append(r)}let n=document.createElement("ol");for(let r of t)n.append(this.#E(r));i.append(n),this.append(i),this.#n.push(i)}#E(t){let i=document.createElement("li");i.id=t.noteId,i.append(...t.content," ");let s=this.#p("data-label-back",Rb),n=t.refs.length>1;return t.refs.forEach((r,a)=>{let o=document.createElement("a");o.href=`#${this.#d(t,a)}`,o.setAttribute("data-backref",""),o.setAttribute("role","doc-backlink"),n?(o.setAttribute("aria-label",`${s} (${Nn(a)})`),o.textContent=`${El}${Nn(a)}`):(o.setAttribute("aria-label",s),o.textContent=El),a>0&&i.append(" "),i.append(o)}),i}#v(t,i){typeof HTMLElement.prototype.showPopover=="function"&&(this.listen(t,"pointerenter",s=>{s.pointerType!=="touch"&&(clearTimeout(this.#c),clearTimeout(this.#l),this.#l=setTimeout(()=>this.#b(t,i),Ob))}),this.listen(t,"pointerleave",()=>{clearTimeout(this.#l),!(t===document.activeElement&&t.matches(":focus-visible"))&&(this.#c=setTimeout(()=>this.#k(),qb))}),this.listen(t,"focus",()=>{t.matches(":focus-visible")&&this.#b(t,i)}),this.listen(t,"blur",()=>this.#k()))}#S(){if(this.#r)return this.#r;let t=document.createElement("aside");return t.className="fn-preview",t.setAttribute("popover","manual"),t.setAttribute("aria-hidden","true"),t.inert=!0,this.append(t),this.#n.push(t),this.#r=t,t}#b(t,i){if(clearTimeout(this.#c),!t.isConnected||this.hidden)return;let s=this.#S(),n=document.createElement("span");n.className="fn-preview-number",n.textContent=`${i.num}.`;let r=i.content.map(a=>a.cloneNode(!0));s.replaceChildren(n," ",...r);for(let a of s.querySelectorAll("[id]"))a.removeAttribute("id");this.#a?.removeAttribute("data-preview-anchor"),t.setAttribute("data-preview-anchor",""),this.#a=t,s.matches(":popover-open")||s.showPopover(),this.#w(s,t)}#k(){clearTimeout(this.#l);let t=this.#r;t?.matches(":popover-open")&&t.hidePopover(),this.#a?.removeAttribute("data-preview-anchor"),this.#a=null}#w(t,i){if(typeof CSS<"u"&&CSS.supports?.("position-area: top"))return;let s=i.getBoundingClientRect(),n=6,r=t.offsetWidth,a=t.offsetHeight,o=s.top-a-n;o<n&&(o=s.bottom+n);let c=Math.max(n,Math.min(s.left+s.width/2-r/2,innerWidth-r-n));t.style.inset="auto",t.style.top=`${o}px`,t.style.left=`${c}px`}},_n=class extends HTMLElement{};E("foot-notes",Mn);E("foot-note",_n);var kl=0,jb=6,$n=class extends k{#t=[];#e=[];#i=[];#n=!1;#s=new WeakSet;setup(){return this.#t=[...this.querySelectorAll(":scope > details")],this.#e=this.#t.map(t=>t.querySelector("summary")),this.#t.length===0?!1:(this.#o(),this.#l(),this.#r(),!0)}teardown(){this.#t=[],this.#e=[],this.#i=[],this.#n=!1}get panels(){return this.#t.map((t,i)=>({id:t.id||void 0,summary:t.querySelector("summary")?.textContent?.trim()||`Panel ${i+1}`,content:this.#i[i]?.innerHTML||"",open:t.hasAttribute("open")}))}set panels(t){let i=Array.isArray(t)?t:[],n=this.hasAttribute("single")?`acc-${++kl}`:null;for(;this.firstChild;)this.firstChild.remove();for(let r of i){let a=document.createElement("details");r.id&&(a.id=r.id),r.open&&a.setAttribute("open",""),n&&a.setAttribute("name",n);let o=document.createElement("summary");o.textContent=r.summary||"",a.appendChild(o);let c=document.createElement("div");c.innerHTML=r.content||"",a.appendChild(c),this.appendChild(a)}this._reinit(),this.dispatchEvent(new CustomEvent("accordion-wc:panels-changed",{detail:{panels:i,source:"property"},bubbles:!0}))}#o(){this.#i=this.#t.map(t=>{let i=t.querySelector("summary");if(!i)return null;let s=[...t.children].filter(n=>n!==i);if(s.length===1&&s[0].localName==="div")return s[0];if(s.length>=1){let n=document.createElement("div");for(let r of s)n.appendChild(r);return t.appendChild(n),n}return null})}#r(){if(!this.hasAttribute("transition")||!document.startViewTransition)return;this.#n=!0;let t=++kl,i=this.getAttribute("transition")||"fade",s=i==="slide"?"vt-accordion-slide":i==="scale"?"vt-accordion-scale":"vt-accordion";this.#i.forEach((n,r)=>{n&&(n.style.viewTransitionName=`accordion-${t}-${r}`,n.style.viewTransitionClass=s)})}#a(t){ut(()=>{t.open=!t.open})}#l(){let t=this.#t.length<=jb;this.#t.forEach((i,s)=>{let n=this.#e[s],r=this.#i[s];if(n){if(r){let a=n.id||`accordion-heading-${crypto.randomUUID().slice(0,8)}`,o=r.id||`accordion-panel-${crypto.randomUUID().slice(0,8)}`;n.id=a,r.id=o,n.setAttribute("aria-expanded",i.open?"true":"false"),n.setAttribute("aria-controls",o),t?(r.setAttribute("aria-labelledby",a),r.setAttribute("role","region"),this.#s.add(r)):this.#s.has(r)&&(r.removeAttribute("role"),r.removeAttribute("aria-labelledby"),this.#s.delete(r))}else n.setAttribute("aria-expanded",i.open?"true":"false");this.listen(n,"click",a=>{this.#n&&(a.preventDefault(),this.#a(i))}),this.listen(n,"keydown",a=>this.#g(a,s)),this.listen(i,"toggle",()=>this.#c(i,s))}})}#c(t,i){this.#e[i].setAttribute("aria-expanded",t.open?"true":"false"),this.hasAttribute("single")&&t.open&&this.#t.forEach((n,r)=>{r!==i&&n.open&&(n.open=!1,this.#e[r].setAttribute("aria-expanded","false"))}),this.dispatchEvent(new CustomEvent("accordion-wc:toggle",{detail:{index:i,open:t.open},bubbles:!0}))}#g(t,i){let{key:s}=t,n;switch(s){case"ArrowDown":n=(i+1)%this.#t.length;break;case"ArrowUp":n=(i-1+this.#t.length)%this.#t.length;break;case"Home":n=0;break;case"End":n=this.#t.length-1;break;default:return}t.preventDefault(),this.#e[n].focus()}open(t){t<0||t>=this.#t.length||(this.#n&&!this.#t[t].open?ut(()=>{this.#t[t].open=!0}):this.#t[t].open=!0)}close(t){t<0||t>=this.#t.length||(this.#n&&this.#t[t].open?ut(()=>{this.#t[t].open=!1}):this.#t[t].open=!1)}toggle(t){t<0||t>=this.#t.length||(this.#n?this.#a(this.#t[t]):this.#t[t].open=!this.#t[t].open)}openAll(){this.hasAttribute("single")||this.#t.forEach(t=>{t.open=!0})}closeAll(){this.#t.forEach(t=>{t.open=!1})}};E("accordion-wc",$n);var Hb={region:"Notifications",dismiss:"Dismiss",info:"Info",success:"Success",warning:"Warning",error:"Error"},zb=["info","success","warning","error"],Vb={info:"&#9432;",success:"&#10003;",warning:"&#9888;",error:"&#10007;"},Ub=300,In=class extends k{#t=[];#e=[];#i=new WeakMap;#n=!1;#s=!1;#o=new Set;setup(){this.#r("role","log"),this.#r("aria-live","polite"),this.#r("aria-relevant","additions"),this.#r("aria-label",this.#a("region")),this.listen(this,"pointerover",()=>{this.#n||(this.#n=!0,this.#u())}),this.listen(this,"pointerout",t=>{t.relatedTarget instanceof Node&&this.contains(t.relatedTarget)||(this.#n=!1,this.#u())}),this.listen(this,"focusin",()=>{this.#s=!0,this.#u()}),this.listen(this,"focusout",t=>{t.relatedTarget instanceof Node&&this.contains(t.relatedTarget)||(this.#s=!1,this.#u())}),this.listen(this,"keydown",t=>{if(t.key!=="Escape")return;let i=t.target.closest?.(".toast");i&&this.#e.includes(i)&&(t.preventDefault(),this.dismiss(i))}),this.listen(document,"visibilitychange",()=>this.#u()),this.#e=this.#e.filter(t=>t.parentNode===this),this.#n=!!this.querySelector(".toast:hover"),this.#s=this.contains(document.activeElement),this.#g(),this.#u()}teardown(){for(let t of[...this.#e]){let i=this.#i.get(t);i&&(i.hiding?this.#m(t):this.#y(i))}for(let t of this.#o)this.removeAttribute(t);this.#o.clear()}show(t){let{message:i,variant:s="info",duration:n=this.#E(),dismissible:r=!0,action:a,onAction:o,source:c="api"}=t,l=zb.includes(s)?s:"info",u=this.#l({message:i,variant:l,dismissible:r,action:a,onAction:o}),d=document.activeElement;this.#i.set(u,{message:String(i??""),duration:Math.max(0,Number(n)||0),remaining:Math.max(0,Number(n)||0),startedAt:0,timer:void 0,returnFocus:d&&!this.contains(d)?d:null,hiding:!1});let h=!this.isConnected||this.#e.length>=this.#v();return h?this.#t.push({toast:u,duration:n}):this.#c(u),this.dispatchEvent(new CustomEvent("toast-msg:enqueued",{detail:{message:i,variant:l,duration:n,source:c,toast:u,queued:h},bubbles:!0})),u}dismiss(t){let i=this.#t.findIndex(s=>s.toast===t);if(i>-1){this.#t.splice(i,1);return}this.#d(t)}dismissAll(){this.#t=[],[...this.#e].forEach(t=>this.#d(t))}get queue(){let t=(i,s)=>({message:this.#i.get(i)?.message??"",variant:i.getAttribute("data-variant")||"info",state:s});return[...this.#e.map(i=>t(i,"visible")),...this.#t.map(({toast:i})=>t(i,"queued"))]}#r(t,i){this.hasAttribute(t)&&!this.#o.has(t)||(this.setAttribute(t,i),this.#o.add(t))}#a(t){return this.getAttribute(`data-label-${t}`)??Hb[t]??t}#l({message:t,variant:i,dismissible:s,action:n,onAction:r}){let a=document.createElement("div");a.className="toast",a.setAttribute("data-variant",i);let o=c=>this.#S(c);return a.innerHTML=`
65
- <span class="icon" aria-hidden="true">${Vb[i]}</span>
63
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ft(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){let s=this.parser.parseInline(i),n=eg(e);if(n===null)return s;e=n;let r='<a href="'+e+'"';return t&&(r+=' title="'+ft(t)+'"'),r+=">"+s+"</a>",r}image({href:e,title:t,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let n=eg(e);if(n===null)return ft(i);e=n;let r=`<img src="${e}" alt="${ft(i)}"`;return t&&(r+=` title="${ft(t)}"`),r+=">",r}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ft(e.text)}},Dc=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},at=class wc{options;renderer;textRenderer;constructor(t){this.options=t||Zt,this.options.renderer=this.options.renderer||new on,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Dc}static parse(t,i){return new wc(i).parse(t)}static parseInline(t,i){return new wc(i).parseInline(t)}parse(t){this.renderer.parser=this;let i="";for(let s=0;s<t.length;s++){let n=t[s];if(this.options.extensions?.renderers?.[n.type]){let a=n,o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){i+=o||"";continue}}let r=n;switch(r.type){case"space":{i+=this.renderer.space(r);break}case"hr":{i+=this.renderer.hr(r);break}case"heading":{i+=this.renderer.heading(r);break}case"code":{i+=this.renderer.code(r);break}case"table":{i+=this.renderer.table(r);break}case"blockquote":{i+=this.renderer.blockquote(r);break}case"list":{i+=this.renderer.list(r);break}case"checkbox":{i+=this.renderer.checkbox(r);break}case"html":{i+=this.renderer.html(r);break}case"def":{i+=this.renderer.def(r);break}case"paragraph":{i+=this.renderer.paragraph(r);break}case"text":{i+=this.renderer.text(r);break}default:{let a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}parseInline(t,i=this.renderer){this.renderer.parser=this;let s="";for(let n=0;n<t.length;n++){let r=t[n];if(this.options.extensions?.renderers?.[r.type]){let o=this.options.extensions.renderers[r.type].call({parser:this},r);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=o||"";continue}}let a=r;switch(a.type){case"escape":{s+=i.text(a);break}case"html":{s+=i.html(a);break}case"link":{s+=i.link(a);break}case"image":{s+=i.image(a);break}case"checkbox":{s+=i.checkbox(a);break}case"strong":{s+=i.strong(a);break}case"em":{s+=i.em(a);break}case"codespan":{s+=i.codespan(a);break}case"br":{s+=i.br(a);break}case"del":{s+=i.del(a);break}case"text":{s+=i.text(a);break}default:{let o='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}},xi=class{options;block;constructor(e){this.options=e||Zt}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?rt.lex:rt.lexInline}provideParser(e=this.block){return e?at.parse:at.parseInline}},VS=class{defaults=Ac();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=at;Renderer=on;TextRenderer=Dc;Lexer=rt;Tokenizer=an;Hooks=xi;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(let s of e)switch(i=i.concat(t.call(this,s)),s.type){case"table":{let n=s;for(let r of n.header)i=i.concat(this.walkTokens(r.tokens,t));for(let r of n.rows)for(let a of r)i=i.concat(this.walkTokens(a.tokens,t));break}case"list":{let n=s;i=i.concat(this.walkTokens(n.items,t));break}default:{let n=s;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(r=>{let a=n[r].flat(1/0);i=i.concat(this.walkTokens(a,t))}):n.tokens&&(i=i.concat(this.walkTokens(n.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let r=t.renderers[n.name];r?t.renderers[n.name]=function(...a){let o=n.renderer.apply(this,a);return o===!1&&(o=r.apply(this,a)),o}:t.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let r=t[n.level];r?r.unshift(n.tokenizer):t[n.level]=[n.tokenizer],n.start&&(n.level==="block"?t.startBlock?t.startBlock.push(n.start):t.startBlock=[n.start]:n.level==="inline"&&(t.startInline?t.startInline.push(n.start):t.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(t.childTokens[n.name]=n.childTokens)}),s.extensions=t),i.renderer){let n=this.defaults.renderer||new on(this.defaults);for(let r in i.renderer){if(!(r in n))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let a=r,o=i.renderer[a],c=n[a];n[a]=(...l)=>{let u=o.apply(n,l);return u===!1&&(u=c.apply(n,l)),u||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new an(this.defaults);for(let r in i.tokenizer){if(!(r in n))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let a=r,o=i.tokenizer[a],c=n[a];n[a]=(...l)=>{let u=o.apply(n,l);return u===!1&&(u=c.apply(n,l)),u}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new xi;for(let r in i.hooks){if(!(r in n))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let a=r,o=i.hooks[a],c=n[a];xi.passThroughHooks.has(r)?n[a]=l=>{if(this.defaults.async&&xi.passThroughHooksRespectAsync.has(r))return(async()=>{let d=await o.call(n,l);return c.call(n,d)})();let u=o.call(n,l);return c.call(n,u)}:n[a]=(...l)=>{if(this.defaults.async)return(async()=>{let d=await o.apply(n,l);return d===!1&&(d=await c.apply(n,l)),d})();let u=o.apply(n,l);return u===!1&&(u=c.apply(n,l)),u}}s.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,r=i.walkTokens;s.walkTokens=function(a){let o=[];return o.push(r.call(this,a)),n&&(o=o.concat(n.call(this,a))),o}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return rt.lex(e,t??this.defaults)}parser(e,t){return at.parse(e,t??this.defaults)}parseMarkdown(e){return(t,i)=>{let s={...i},n={...this.defaults,...s},r=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return r(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=e),n.async)return(async()=>{let a=n.hooks?await n.hooks.preprocess(t):t,o=await(n.hooks?await n.hooks.provideLexer(e):e?rt.lex:rt.lexInline)(a,n),c=n.hooks?await n.hooks.processAllTokens(o):o;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let l=await(n.hooks?await n.hooks.provideParser(e):e?at.parse:at.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(l):l})().catch(r);try{n.hooks&&(t=n.hooks.preprocess(t));let a=(n.hooks?n.hooks.provideLexer(e):e?rt.lex:rt.lexInline)(t,n);n.hooks&&(a=n.hooks.processAllTokens(a)),n.walkTokens&&this.walkTokens(a,n.walkTokens);let o=(n.hooks?n.hooks.provideParser(e):e?at.parse:at.parseInline)(a,n);return n.hooks&&(o=n.hooks.postprocess(o)),o}catch(a){return r(a)}}}onError(e,t){return i=>{if(i.message+=`
64
+ Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error occurred:</p><pre>"+ft(i.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(i);throw i}}},Xt=new VS;_.options=_.setOptions=function(e){return Xt.setOptions(e),_.defaults=Xt.defaults,ng(_.defaults),_};_.getDefaults=Ac;_.defaults=Zt;_.use=function(...e){return Xt.use(...e),_.defaults=Xt.defaults,ng(_.defaults),_};_.walkTokens=function(e,t){return Xt.walkTokens(e,t)};_.parseInline=Xt.parseInline;_.Parser=at;_.parser=at.parse;_.Renderer=on;_.TextRenderer=Dc;_.Lexer=rt;_.lexer=rt.lex;_.Tokenizer=an;_.Hooks=xi;_.parse=_;RM=_.options,FM=_.setOptions,PM=_.use,OM=_.walkTokens,qM=_.parseInline,jM=at.parse,HM=rt.lex});var YS={};function Nc(e,t){return e.replaceChildren(t.trim()?se(_.parseInline(t,{gfm:!0})):""),e.innerHTML}function mg(e,t,i){e.dispatchEvent(new CustomEvent("markdown-editable:change",{bubbles:!0,detail:{value:t,html:i}}))}function WS(e){e.contentEditable="true",e.setAttribute("role","textbox"),e.setAttribute("aria-multiline","false");let t=e.textContent.trim();e.dataset.markdownValue=t,t&&Nc(e,t);let i=!1;e.addEventListener("compositionstart",()=>{i=!0}),e.addEventListener("compositionend",()=>{i=!1}),e.addEventListener("focus",()=>{if(i)return;let s=e.dataset.markdownValue||"";e.textContent=s,e.setAttribute("data-md-editing",""),requestAnimationFrame(()=>{let n=window.getSelection();n&&e.childNodes.length&&n.collapse(e.childNodes[e.childNodes.length-1],e.textContent.length)})}),e.addEventListener("blur",()=>{if(i)return;let s=e.textContent.trim(),n=e.dataset.markdownValue;e.dataset.markdownValue=s,e.removeAttribute("data-md-editing"),s?Nc(e,s):e.textContent="",s!==n&&mg(e,s,e.innerHTML)})}function GS(e){let t=e.dataset.preview?document.getElementById(e.dataset.preview):null;t||(t=document.createElement("output"),t.className="md-editable-preview",t.setAttribute("aria-label","Markdown preview"),e.after(t));function i(){return t?Nc(t,e.value):""}e.addEventListener("blur",()=>{let s=i();mg(e,e.value,s)}),e.value.trim()&&i()}function KS(e){if(e.hasAttribute("data-markdown-editable-init"))return;e.setAttribute("data-markdown-editable-init","");let t=e.tagName;t==="TEXTAREA"||t==="INPUT"?GS(e):WS(e)}var US,gg=v(()=>{I();pg();Rt();US="[data-markdown-editable]";S(US,KS)});function bg(e=document,t={}){let i=t.language||"mermaid",s=t.type||"mermaid",n=Array.isArray(t.primingSvgs)?t.primingSvgs:null,r=`pre > code.language-${i}`,a=[],o=0;for(let c of e.querySelectorAll(r)){let l=c.parentElement;if(!l||l.parentElement?.tagName.toLowerCase()==="diagram-wc")continue;let u=l.parentNode,d=l.nextSibling,h=document.createElement("diagram-wc");if(h.setAttribute("type",s),h.appendChild(l),n&&n[o]){let f=document.createElement("figure");f.className="dwc-figure",f.innerHTML=n[o],h.appendChild(f)}u?.insertBefore(h,d),a.push(h),o++}return a}var yg=v(()=>{});var QS={};function ZS(e){return!e||!e.hasAttribute?!1:e.hasAttribute("data-auto-mermaid")?!0:!!e.closest?.("markdown-editor[data-auto-mermaid]")}function wg(e){let t=$c.get(e);return t||(t=[],$c.set(e,t)),t}function JS(e,t){let i=Mc.get(e);i&&clearTimeout(i);let s=setTimeout(()=>{Mc.delete(e),Ag(e,t||e)},XS);Mc.set(e,s)}function Ag(e,t){let i=wg(e),s=bg(t,{primingSvgs:i});s.forEach((n,r)=>{n.dataset.bridgeIndex=String(r)}),i.length>s.length&&(i.length=s.length),i.length>vg&&(i.length=vg)}var XS,vg,Mc,$c,_c,Eg=v(()=>{yg();XS=250,vg=16,Mc=new WeakMap,$c=new WeakMap;_c=typeof document<"u"?document.documentElement:null;if(_c&&!_c.hasAttribute("data-vb-mermaid-bridge-init")){_c.setAttribute("data-vb-mermaid-bridge-init",""),document.addEventListener("markdown-viewer:rendered",t=>{let i=t.target;if(!ZS(i))return;let s=t.detail?.node||i;JS(i,s)}),document.addEventListener("diagram-wc:ready",t=>{let i=t.target,s=i.closest?.("markdown-viewer");if(!s)return;let n=parseInt(i.dataset.bridgeIndex||"",10);if(Number.isNaN(n))return;let r=wg(s);r[n]=t.detail?.svg||r[n]}),window.addEventListener("vb:theme-change",()=>{for(let t of document.querySelectorAll("markdown-viewer")){let i=$c.get(t);i&&(i.length=0)}});let e="markdown-viewer[data-auto-mermaid], markdown-editor[data-auto-mermaid] markdown-viewer";for(let t of document.querySelectorAll(e))Ag(t,t)}});function ex(e){let t=0;for(let i=0;i<e.length;i++)t=e.charCodeAt(i)+((t<<5)-t);return t}function ix(e){let t=un[0],i=Math.abs(e-t);for(let s=1;s<un.length;s++){let n=Math.abs(e-un[s]);n<i&&(t=un[s],i=n)}return t}function kg(e,t=128){let i=ex(String(e)),s=(i%100+100)%100,n=(i>>>16&1)===0?"female":"male",r=ix(t);return`${tx}/${n}/${r}/${s}.jpg`}var tx,un,Sg=v(()=>{tx="https://cdn.jsdelivr.net/gh/faker-js/assets-person-portrait",un=[32,64,128,256,512]});var Tg={};x(Tg,{initMockMedia:()=>Rc});function Cg(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function xg(e,t,i){let s=Math.min(Math.max(e/15,12),32),n=e/2,r=t/2,a=i?Cg(i):"",o=a?`<text x="${n}" y="${r}" text-anchor="middle" dominant-baseline="middle" font-family="system-ui,sans-serif" font-size="${s}" fill="#6b7280">${a}</text>`:"",c=`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${t}" viewBox="0 0 ${e} ${t}"><rect width="${e}" height="${t}" fill="#f3f4f6"/><line x1="0" y1="0" x2="${e}" y2="${t}" stroke="#d1d5db"/><line x1="${e}" y1="0" x2="0" y2="${t}" stroke="#d1d5db"/>${o}</svg>`;return`data:image/svg+xml,${encodeURIComponent(c)}`}function rx(e){let t=nx[e.dataset.mock],i=Number(e.getAttribute("width"))||t?.w||400,s=Number(e.getAttribute("height"))||t?.h||300;return{w:i,h:s}}function Bc(e){if(e.hasAttribute("data-mock-init"))return;e.setAttribute("data-mock-init","");let t=e.tagName.toLowerCase(),i=e.dataset.mock,{w:s,h:n}=rx(e);if(t==="img"){if(i==="photo"){let r=e.dataset.seed,a=r?`https://picsum.photos/seed/${encodeURIComponent(r)}/${s}/${n}`:`https://picsum.photos/${s}/${n}`;e.getAttribute("src")||(e.setAttribute("src",a),e.setAttribute("loading","lazy"))}else if(i==="placehold"){if(!e.getAttribute("src")){let r=e.getAttribute("alt")||"",a=r?`?text=${encodeURIComponent(r)}`:"";e.setAttribute("src",`https://placehold.co/${s}x${n}${a}`),e.setAttribute("loading","lazy")}}else if(i==="portrait"||i==="profile"||i==="headshot"||i==="avatar"){if(!e.getAttribute("src")){let r=e.dataset.seed||e.getAttribute("alt")||String(sx++);e.setAttribute("src",kg(r,Math.max(s,n))),e.setAttribute("loading","lazy")}}else if(!e.getAttribute("src")){let r=e.getAttribute("alt")||`${s}\xD7${n}`;e.setAttribute("src",xg(s,n,r))}}else if(t==="video"){if(!e.getAttribute("poster")){let r=e.getAttribute("alt")||e.getAttribute("title")||"Video";e.setAttribute("poster",xg(s,n,`\u25B6 ${r}`))}}else if(t==="iframe"){if(!e.getAttribute("src")&&!e.getAttribute("srcdoc")){let r=e.getAttribute("title")||"Embedded content";e.setAttribute("srcdoc",`<!DOCTYPE html><html><body style="display:grid;place-items:center;height:100vh;margin:0;background:#f3f4f6;font-family:system-ui,sans-serif;color:#6b7280"><p>${Cg(r)}</p></body></html>`)}}else t==="canvas"&&ax(e,s,n)}function ax(e,t,i){e.width=t,e.height=i;let s=e.getContext("2d");if(!s)return;s.fillStyle="#f3f4f6",s.fillRect(0,0,t,i),s.strokeStyle="#d1d5db",s.lineWidth=1,s.beginPath(),s.moveTo(0,0),s.lineTo(t,i),s.moveTo(t,0),s.lineTo(0,i),s.stroke();let n=e.getAttribute("aria-label")||e.getAttribute("title")||`${t}\xD7${i}`,r=Math.min(Math.max(t/15,12),32);s.fillStyle="#6b7280",s.font=`${r}px system-ui, sans-serif`,s.textAlign="center",s.textBaseline="middle",s.fillText(n,t/2,i/2)}function Rc(e=document){e.querySelectorAll(Ic).forEach(Bc)}var Ic,sx,nx,ox,Lg=v(()=>{Sg();Ic=":is(img, video, iframe, canvas)[data-mock]",sx=0,nx={hero:{w:1200,h:400},card:{w:400,h:225},avatar:{w:48,h:48},product:{w:400,h:400},thumbnail:{w:150,h:150},logo:{w:200,h:50},og:{w:1200,h:630},banner:{w:728,h:90},portrait:{w:128,h:128},profile:{w:128,h:128},headshot:{w:256,h:256}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Rc()):Rc();ox=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ic)&&Bc(s),s.querySelectorAll(Ic).forEach(n=>Bc(n))}});ox.observe(document.documentElement,{childList:!0,subtree:!0})});var Ng={};x(Ng,{initLorem:()=>qc});function Ti(e){let t=e.closest("[lang]")?.getAttribute("lang")?.split("-")[0]?.toLowerCase();return t&&mx[t]||"latin"}function gx(e){return e.split(/(?<=[.!?\u3002])\s*/).filter(Boolean)}function Pc(e){return e==="cjk"||e==="chinese"}function bx(e,t,i){if(Pc(i)){let r=[...e],a=[];for(let o=0;o<t;o++)a.push(r[o%r.length]);return a.join("")}let s=e.split(/\s+/),n=[];for(let r=0;r<t;r++)n.push(s[r%s.length]);return n.join(" ")}function yx(e,t){let i=(e||"").trim();if(Dg[i])return{mode:"words",count:Pc(i)?80:50,corpus:i};if(i==="heading")return{mode:"words",count:5,corpus:Ti(t)};let s=i.match(/^(\d+)\s+sentences?$/i);if(s)return{mode:"sentences",count:Number(s[1]),corpus:Ti(t)};let n=i.match(/^(\d+)\s+items?$/i);if(n)return{mode:"items",count:Number(n[1]),corpus:Ti(t)};let r=i.match(/^(\d+)$/);if(r)return{mode:"words",count:Number(r[1]),corpus:Ti(t)};let a=Ti(t);return{mode:"words",count:Pc(a)?80:50,corpus:a}}function vx(e){let t=Dg[e.corpus],i=gx(t);if(e.mode==="sentences"){let s=[];for(let n=0;n<e.count;n++)s.push(i[n%i.length]);return s.join(" ")}if(e.mode==="items"){let s=[];for(let n=0;n<e.count;n++)s.push(i[n%i.length]);return s}return bx(t,e.count,e.corpus)}function Oc(e){if(e.hasAttribute("data-lorem-init"))return;e.setAttribute("data-lorem-init","");let t=yx(e.dataset.lorem??"",e),i=vx(t),s=e.tagName.toLowerCase();t.mode==="items"&&Array.isArray(i)&&(s==="ul"||s==="ol")?e.innerHTML=i.map(n=>`<li>${n}</li>`).join(""):Array.isArray(i)?e.textContent=i.join(" "):e.textContent=i,e.setAttribute("data-lorem-filled",""),e.setAttribute("translate","no")}function qc(e=document){e.querySelectorAll(Fc).forEach(Oc)}var Fc,cx,lx,ux,dx,hx,fx,px,Dg,mx,wx,Mg=v(()=>{Fc="[data-lorem]",cx="Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium totam rem aperiam eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet consectetur adipisci velit sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam quis nostrum exercitationem ullam corporis suscipit laboriosam nisi ut aliquid ex ea commodi consequatur. Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur vel illum qui dolorem eum fugiat quo voluptas nulla pariatur. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident similique sunt in culpa qui officia deserunt mollitia animi id est laborum et dolorum fuga.",lx="\u3053\u308C\u306F\u30C0\u30DF\u30FC\u30C6\u30AD\u30B9\u30C8\u3067\u3059\u3002\u30EC\u30A4\u30A2\u30A6\u30C8\u306E\u78BA\u8A8D\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002\u5B9F\u969B\u306E\u30B3\u30F3\u30C6\u30F3\u30C4\u306F\u5F8C\u3067\u8FFD\u52A0\u3055\u308C\u307E\u3059\u3002\u3053\u306E\u6587\u7AE0\u306F\u30D7\u30EC\u30FC\u30B9\u30DB\u30EB\u30C0\u30FC\u3068\u3057\u3066\u6A5F\u80FD\u3057\u307E\u3059\u3002\u30C7\u30B6\u30A4\u30F3\u306E\u30D7\u30ED\u30C8\u30BF\u30A4\u30D7\u4F5C\u6210\u4E2D\u306B\u3001\u30C6\u30AD\u30B9\u30C8\u304C\u5FC5\u8981\u306A\u5834\u6240\u306B\u914D\u7F6E\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u65E5\u672C\u8A9E\u306E\u6587\u5B57\u306F\u7D04\u5343\u5E74\u524D\u306B\u4E2D\u56FD\u304B\u3089\u4F1D\u308F\u308A\u307E\u3057\u305F\u3002\u73FE\u4EE3\u306E\u65E5\u672C\u8A9E\u306F\u6F22\u5B57\u3001\u3072\u3089\u304C\u306A\u3001\u30AB\u30BF\u30AB\u30CA\u306E\u4E09\u7A2E\u985E\u306E\u6587\u5B57\u3092\u4F7F\u7528\u3057\u307E\u3059\u3002\u30A6\u30A7\u30D6\u30C7\u30B6\u30A4\u30F3\u3067\u306F\u3001\u30C6\u30AD\u30B9\u30C8\u306E\u8AAD\u307F\u3084\u3059\u3055\u3068\u30EC\u30A4\u30A2\u30A6\u30C8\u306E\u30D0\u30E9\u30F3\u30B9\u304C\u91CD\u8981\u3067\u3059\u3002",ux="\u0647\u0630\u0627 \u0646\u0635 \u062A\u062C\u0631\u064A\u0628\u064A \u064A\u0633\u062A\u062E\u062F\u0645 \u0644\u0639\u0631\u0636 \u0627\u0644\u062A\u0635\u0645\u064A\u0645. \u064A\u0645\u0643\u0646 \u0627\u0633\u062A\u0628\u062F\u0627\u0644\u0647 \u0628\u0627\u0644\u0645\u062D\u062A\u0648\u0649 \u0627\u0644\u0641\u0639\u0644\u064A \u0644\u0627\u062D\u0642\u0627. \u0627\u0644\u063A\u0631\u0636 \u0645\u0646\u0647 \u0647\u0648 \u0625\u0638\u0647\u0627\u0631 \u0643\u064A\u0641 \u0633\u064A\u0628\u062F\u0648 \u0627\u0644\u0646\u0635 \u0641\u064A \u0627\u0644\u0645\u0648\u0642\u0639. \u062A\u0635\u0645\u064A\u0645 \u0627\u0644\u0648\u064A\u0628 \u064A\u062A\u0637\u0644\u0628 \u0646\u0635\u0648\u0635\u0627 \u0646\u0627\u0626\u0628\u0629 \u0644\u0645\u0644\u0621 \u0627\u0644\u0641\u0631\u0627\u063A\u0627\u062A. \u0647\u0630\u0627 \u0627\u0644\u0646\u0635 \u0647\u0648 \u0628\u062F\u064A\u0644 \u0639\u0631\u0628\u064A \u0644\u0646\u0635 \u0644\u0648\u0631\u064A\u0645 \u0625\u064A\u0628\u0633\u0648\u0645 \u0627\u0644\u0644\u0627\u062A\u064A\u0646\u064A. \u064A\u0633\u0627\u0639\u062F \u0641\u064A \u0627\u062E\u062A\u0628\u0627\u0631 \u0627\u0644\u062A\u062E\u0637\u064A\u0637\u0627\u062A \u0648\u0627\u0644\u062E\u0637\u0648\u0637 \u0648\u0627\u0644\u0627\u062A\u062C\u0627\u0647 \u0645\u0646 \u0627\u0644\u064A\u0645\u064A\u0646 \u0625\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631. \u0627\u0644\u0644\u063A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0645\u0646 \u0623\u0643\u062B\u0631 \u0627\u0644\u0644\u063A\u0627\u062A \u0627\u0646\u062A\u0634\u0627\u0631\u0627 \u0641\u064A \u0627\u0644\u0639\u0627\u0644\u0645.",dx="\u042D\u0442\u043E \u043F\u0440\u0438\u043C\u0435\u0440 \u0442\u0435\u043A\u0441\u0442\u0430 \u0434\u043B\u044F \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u043C\u0430\u043A\u0435\u0442\u0430. \u041E\u043D \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u043A\u0430\u043A \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C \u0434\u043B\u044F \u043F\u0440\u043E\u0442\u043E\u0442\u0438\u043F\u043E\u0432. \u0420\u0435\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0435\u043D\u0442 \u0431\u0443\u0434\u0435\u0442 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u043F\u043E\u0437\u0436\u0435. \u0412\u0435\u0431-\u0434\u0438\u0437\u0430\u0439\u043D \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0442\u0435\u043A\u0441\u0442\u043E\u0432\u044B\u0445 \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u0435\u0439 \u0434\u043B\u044F \u043F\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043C\u0430\u043A\u0435\u0442\u043E\u0432. \u042D\u0442\u043E\u0442 \u0442\u0435\u043A\u0441\u0442 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0440\u0443\u0441\u0441\u043A\u043E\u044F\u0437\u044B\u0447\u043D\u043E\u0439 \u0430\u043B\u044C\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u043E\u0439 \u043B\u0430\u0442\u0438\u043D\u0441\u043A\u043E\u043C\u0443 \u0442\u0435\u043A\u0441\u0442\u0443. \u041A\u0438\u0440\u0438\u043B\u043B\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0448\u0440\u0438\u0444\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u043C\u043D\u043E\u0433\u0438\u043C\u0438 \u044F\u0437\u044B\u043A\u0430\u043C\u0438 \u043C\u0438\u0440\u0430. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043A\u0430\u043A \u0432\u0430\u0448 \u0434\u0438\u0437\u0430\u0439\u043D \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u0441 \u044D\u0442\u0438\u043C \u043D\u0430\u0431\u043E\u0440\u043E\u043C \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432.",hx="\u8FD9\u662F\u4E00\u6BB5\u5360\u4F4D\u6587\u672C\uFF0C\u7528\u4E8E\u68C0\u67E5\u9875\u9762\u5E03\u5C40\u3002\u5B9E\u9645\u5185\u5BB9\u5C06\u5728\u4EE5\u540E\u6DFB\u52A0\u3002\u8FD9\u6BB5\u6587\u5B57\u7684\u4F5C\u7528\u662F\u5C55\u793A\u6587\u672C\u5728\u9875\u9762\u4E0A\u7684\u663E\u793A\u6548\u679C\u3002\u5728\u5236\u4F5C\u8BBE\u8BA1\u539F\u578B\u65F6\uFF0C\u8BF7\u628A\u5B83\u653E\u5728\u9700\u8981\u6587\u5B57\u7684\u4F4D\u7F6E\u3002\u7F51\u9875\u8BBE\u8BA1\u9700\u8981\u5360\u4F4D\u6587\u672C\u6765\u586B\u5145\u7A7A\u767D\u533A\u57DF\u3002\u4E2D\u6587\u4E0D\u4F7F\u7528\u7A7A\u683C\u5206\u9694\u8BCD\u8BED\uFF0C\u56E0\u6B64\u6362\u884C\u53EF\u4EE5\u51FA\u73B0\u5728\u4EFB\u610F\u4E24\u4E2A\u5B57\u4E4B\u95F4\u3002\u5728\u7F51\u9875\u8BBE\u8BA1\u4E2D\uFF0C\u6587\u5B57\u7684\u53EF\u8BFB\u6027\u4E0E\u7248\u9762\u7684\u5E73\u8861\u975E\u5E38\u91CD\u8981\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u8BBE\u8BA1\u5728\u957F\u77ED\u4E0D\u540C\u7684\u6BB5\u843D\u4E2D\u662F\u5426\u4F9D\u7136\u7F8E\u89C2\u3002",fx="\uC774\uAC83\uC740 \uB808\uC774\uC544\uC6C3\uC744 \uD655\uC778\uD558\uAE30 \uC704\uD55C \uC608\uC2DC \uD14D\uC2A4\uD2B8\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uCF58\uD150\uCE20\uB294 \uB098\uC911\uC5D0 \uCD94\uAC00\uB429\uB2C8\uB2E4. \uC774 \uAE00\uC740 \uC790\uB9AC \uD45C\uC2DC\uC790 \uC5ED\uD560\uC744 \uD569\uB2C8\uB2E4. \uB514\uC790\uC778 \uC2DC\uC548\uC744 \uB9CC\uB4DC\uB294 \uB3D9\uC548 \uD14D\uC2A4\uD2B8\uAC00 \uD544\uC694\uD55C \uACF3\uC5D0 \uBC30\uCE58\uD574 \uC8FC\uC138\uC694. \uC6F9 \uB514\uC790\uC778\uC5D0\uC11C\uB294 \uBE48 \uACF5\uAC04\uC744 \uCC44\uC6B8 \uC784\uC2DC \uBB38\uC7A5\uC774 \uD544\uC694\uD569\uB2C8\uB2E4. \uD55C\uAE00\uC740 \uC790\uC74C\uACFC \uBAA8\uC74C\uC744 \uBAA8\uC544 \uD558\uB098\uC758 \uAE00\uC790\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uD55C\uAD6D\uC5B4\uB294 \uB2E8\uC5B4 \uC0AC\uC774\uC5D0 \uB744\uC5B4\uC4F0\uAE30\uB97C \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uAE00\uC758 \uAC00\uB3C5\uC131\uACFC \uB808\uC774\uC544\uC6C3\uC758 \uADE0\uD615\uC774 \uC911\uC694\uD569\uB2C8\uB2E4. \uAE34 \uBB38\uB2E8\uACFC \uC9E7\uC740 \uBB38\uB2E8\uC5D0\uC11C \uB514\uC790\uC778\uC774 \uC5B4\uB5BB\uAC8C \uBCF4\uC774\uB294\uC9C0 \uD655\uC778\uD574 \uBCF4\uC138\uC694.",px="\u05D6\u05D4\u05D5 \u05D8\u05E7\u05E1\u05D8 \u05DC\u05D3\u05D5\u05D2\u05DE\u05D4 \u05D4\u05DE\u05E9\u05DE\u05E9 \u05DC\u05D4\u05E6\u05D2\u05EA \u05D4\u05E2\u05D9\u05E6\u05D5\u05D1. \u05D0\u05E4\u05E9\u05E8 \u05DC\u05D4\u05D7\u05DC\u05D9\u05E3 \u05D0\u05D5\u05EA\u05D5 \u05D1\u05EA\u05D5\u05DB\u05DF \u05D4\u05D0\u05DE\u05D9\u05EA\u05D9 \u05DE\u05D0\u05D5\u05D7\u05E8 \u05D9\u05D5\u05EA\u05E8. \u05DE\u05D8\u05E8\u05EA\u05D5 \u05DC\u05D4\u05E8\u05D0\u05D5\u05EA \u05DB\u05D9\u05E6\u05D3 \u05D9\u05D9\u05E8\u05D0\u05D4 \u05D4\u05D8\u05E7\u05E1\u05D8 \u05D1\u05E2\u05DE\u05D5\u05D3. \u05E2\u05D9\u05E6\u05D5\u05D1 \u05D0\u05EA\u05E8\u05D9\u05DD \u05D3\u05D5\u05E8\u05E9 \u05D8\u05E7\u05E1\u05D8 \u05D6\u05DE\u05E0\u05D9 \u05DB\u05D3\u05D9 \u05DC\u05DE\u05DC\u05D0 \u05D0\u05EA \u05D4\u05DE\u05E7\u05D5\u05DE\u05D5\u05EA \u05D4\u05E8\u05D9\u05E7\u05D9\u05DD. \u05D4\u05D8\u05E7\u05E1\u05D8 \u05D4\u05D6\u05D4 \u05D4\u05D5\u05D0 \u05D7\u05DC\u05D5\u05E4\u05D4 \u05E2\u05D1\u05E8\u05D9\u05EA \u05DC\u05D8\u05E7\u05E1\u05D8 \u05DC\u05D5\u05E8\u05DD \u05D0\u05D9\u05E4\u05E1\u05D5\u05DD \u05D4\u05DC\u05D8\u05D9\u05E0\u05D9. \u05D4\u05D5\u05D0 \u05E2\u05D5\u05D6\u05E8 \u05DC\u05D1\u05D3\u05D5\u05E7 \u05E4\u05E8\u05D9\u05E1\u05D5\u05EA, \u05D2\u05D5\u05E4\u05E0\u05D9\u05DD \u05D5\u05DB\u05D9\u05D5\u05D5\u05DF \u05DB\u05EA\u05D9\u05D1\u05D4 \u05DE\u05D9\u05DE\u05D9\u05DF \u05DC\u05E9\u05DE\u05D0\u05DC. \u05D4\u05E2\u05D1\u05E8\u05D9\u05EA \u05E0\u05DB\u05EA\u05D1\u05EA \u05D1\u05D0\u05DC\u05E4\u05D1\u05D9\u05EA \u05D1\u05DF \u05E2\u05E9\u05E8\u05D9\u05DD \u05D5\u05E9\u05EA\u05D9\u05D9\u05DD \u05D0\u05D5\u05EA\u05D9\u05D5\u05EA. \u05D1\u05D3\u05E7\u05D5 \u05DB\u05D9\u05E6\u05D3 \u05D4\u05E2\u05D9\u05E6\u05D5\u05D1 \u05E9\u05DC\u05DB\u05DD \u05DE\u05EA\u05E0\u05D4\u05D2 \u05E2\u05DD \u05E9\u05D5\u05E8\u05D5\u05EA \u05D0\u05E8\u05D5\u05DB\u05D5\u05EA \u05D5\u05E7\u05E6\u05E8\u05D5\u05EA.",Dg={latin:cx,cjk:lx,chinese:hx,korean:fx,arabic:ux,hebrew:px,cyrillic:dx},mx={ja:"cjk",zh:"chinese",ko:"korean",ar:"arabic",fa:"arabic",ur:"arabic",he:"hebrew",ru:"cyrillic",uk:"cyrillic",bg:"cyrillic",sr:"cyrillic"};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>qc()):qc();wx=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Fc)&&Oc(s),s.querySelectorAll(Fc).forEach(n=>Oc(n))}});wx.observe(document.documentElement,{childList:!0,subtree:!0})});var $g={};x($g,{initChapterLists:()=>Hc});function Hc(e=document){e.querySelectorAll(jc).forEach(t=>zc(t))}function zc(e){if(e.hasAttribute("data-chapter-list-init"))return;e.setAttribute("data-chapter-list-init","");let t=e.parentElement;if(!t||t.tagName!=="VIDEO")return;let i=e.track;i.mode==="disabled"&&(i.mode="hidden"),e.readyState>=2?_g(t,i,e):e.addEventListener("load",()=>_g(t,i,e),{once:!0})}function _g(e,t,i){let s=t.cues;if(!s||s.length===0)return;let n=document.createElement("nav");n.setAttribute("aria-label",i.getAttribute("data-label")||"Video chapters"),n.classList.add("chapter-list");let r=document.createElement("ol");for(let o of s){let c=document.createElement("li"),l=document.createElement("button");l.type="button";let u=document.createElement("span");u.textContent=o.text;let d=document.createElement("time");d.textContent=Ax(o.startTime),d.setAttribute("datetime",Ex(o.startTime)),l.appendChild(u),l.appendChild(d),l.addEventListener("click",()=>{e.currentTime=o.startTime,e.paused&&e.play()?.catch(()=>{})}),c.appendChild(l),r.appendChild(c)}n.appendChild(r),e.insertAdjacentElement("afterend",n);let a=null;e.addEventListener("timeupdate",()=>{let o=e.currentTime,c=-1;for(let u=0;u<s.length;u++)if(o>=s[u].startTime&&o<s[u].endTime){c=u;break}let l=c>=0?r.children[c]:null;l!==a&&(a&&(a.removeAttribute("data-active"),a.querySelector("button")?.removeAttribute("aria-current")),a=l,a&&(a.setAttribute("data-active",""),a.querySelector("button")?.setAttribute("aria-current","true")))})}function Ax(e){let t=Math.floor(e/3600),i=Math.floor(e%3600/60),s=Math.floor(e%60);return t>0?`${t}:${String(i).padStart(2,"0")}:${String(s).padStart(2,"0")}`:`${i}:${String(s).padStart(2,"0")}`}function Ex(e){let t=Math.floor(e/3600),i=Math.floor(e%3600/60),s=Math.floor(e%60);return`PT${t?t+"H":""}${i?i+"M":""}${s}S`}var jc,kx,Ig=v(()=>{jc='track[kind="chapters"][data-chapter-list]';document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Hc()):Hc();kx=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.(jc)&&zc(s),s.querySelectorAll?.(jc).forEach(n=>zc(n))}});kx.observe(document.documentElement,{childList:!0,subtree:!0})});Fe();var cl=[{id:"default",name:"Default",swatchBg:"#3b82f6",seeds:{}},{id:"ocean",name:"Ocean",swatchBg:"#0891b2",seeds:{"--hue-primary":200,"--hue-secondary":180,"--hue-accent":45,"--lightness-primary":"50%","--chroma-primary":.15,"--lightness-secondary":"45%","--chroma-secondary":.1,"--lightness-accent":"70%","--chroma-accent":.15},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.12}},{id:"forest",name:"Forest",swatchBg:"#059669",seeds:{"--hue-primary":145,"--hue-secondary":90,"--hue-accent":30,"--lightness-primary":"45%","--chroma-primary":.15,"--lightness-secondary":"55%","--chroma-secondary":.12,"--lightness-accent":"65%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"58%","--chroma-primary":.12}},{id:"sunset",name:"Sunset",swatchBg:"#ea580c",seeds:{"--hue-primary":25,"--hue-secondary":0,"--hue-accent":280,"--lightness-primary":"57%","--chroma-primary":.2,"--lightness-secondary":"55%","--chroma-secondary":.18,"--lightness-accent":"55%","--chroma-accent":.18},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.16}},{id:"rose",name:"Rose",swatchBg:"#e11d48",seeds:{"--hue-primary":350,"--hue-secondary":330,"--hue-accent":200,"--lightness-primary":"55%","--chroma-primary":.18,"--lightness-secondary":"50%","--chroma-secondary":.14,"--lightness-accent":"60%","--chroma-accent":.12},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.14}},{id:"lavender",name:"Lavender",swatchBg:"#a855f7",seeds:{"--hue-primary":280,"--hue-secondary":300,"--hue-accent":60,"--lightness-primary":"55%","--chroma-primary":.14,"--lightness-secondary":"50%","--chroma-secondary":.12,"--lightness-accent":"70%","--chroma-accent":.14},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.12}},{id:"coral",name:"Coral",swatchBg:"#f97316",seeds:{"--hue-primary":15,"--hue-secondary":25,"--hue-accent":180,"--lightness-primary":"57%","--chroma-primary":.18,"--lightness-secondary":"55%","--chroma-secondary":.15,"--lightness-accent":"55%","--chroma-accent":.12},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.15}},{id:"slate",name:"Slate",swatchBg:"#64748b",seeds:{"--hue-primary":220,"--hue-secondary":210,"--hue-accent":45,"--lightness-primary":"48%","--chroma-primary":.1,"--lightness-secondary":"45%","--chroma-secondary":.06,"--lightness-accent":"68%","--chroma-accent":.15},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.08}},{id:"emerald",name:"Emerald",swatchBg:"#10b981",seeds:{"--hue-primary":160,"--hue-secondary":140,"--hue-accent":30,"--lightness-primary":"50%","--chroma-primary":.15,"--lightness-secondary":"48%","--chroma-secondary":.12,"--lightness-accent":"65%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.12}},{id:"amber",name:"Amber",swatchBg:"#f59e0b",seeds:{"--hue-primary":45,"--hue-secondary":30,"--hue-accent":240,"--lightness-primary":"56%","--chroma-primary":.16,"--lightness-secondary":"55%","--chroma-secondary":.15,"--lightness-accent":"52%","--chroma-accent":.14},seedsDark:{"--lightness-primary":"68%","--chroma-primary":.14}},{id:"indigo",name:"Indigo",swatchBg:"#6366f1",seeds:{"--hue-primary":250,"--hue-secondary":270,"--hue-accent":35,"--lightness-primary":"48%","--chroma-primary":.18,"--lightness-secondary":"45%","--chroma-secondary":.14,"--lightness-accent":"68%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"62%","--chroma-primary":.14}}],ll=[{id:"default",name:"Default",hue:210,shape:"balanced",character:"The default",swatchBg:"#3b82f6",tier:"core"},{id:"modern",name:"Modern",hue:270,shape:"rounded",character:"Vibrant & elevated",swatchBg:"#6366f1",tier:"core"},{id:"minimal",name:"Minimal",hue:240,shape:"sharp",character:"Clean & flat",swatchBg:"#71717a",tier:"core"},{id:"classic",name:"Classic",hue:220,shape:"subtle",character:"Serif & elegant",swatchBg:"#92400e",tier:"core"}],wn=[{id:"swiss",name:"Swiss",icon:"grid-3x3",character:"Precision grid",swatchBg:"#ff3e00",swatchFg:"white",tier:"showcase",category:"Design"},{id:"brutalist",name:"Brutalist",icon:"square",character:"Raw, industrial",swatchBg:"#1a1a1a",swatchFg:"#f5f5f5",tier:"showcase",category:"Design"},{id:"art-deco",name:"Art Deco",icon:"crown",character:"1920s luxury",swatchBg:"#1A1A1A",swatchFg:"#C9A84C",tier:"showcase",category:"Design"},{id:"editorial",name:"Editorial",icon:"newspaper",character:"Magazine elegance",swatchBg:"#1a1a1a",swatchFg:"#c9a227",tier:"showcase",category:"Content"},{id:"genai",name:"GenAI",icon:"sparkles",character:"AI aesthetic",swatchBg:"#1a0a2e",swatchFg:"#a855f7",tier:"showcase",category:"Modern"},{id:"glassmorphism",name:"Glass",icon:"glass-water",character:"Frosted surfaces",swatchBg:"#667eea",swatchFg:"#ffffff",tier:"showcase",category:"Modern"},{id:"startup",name:"Startup",icon:"rocket",character:"SaaS energy",swatchBg:"#4f46e5",swatchFg:"#ffffff",tier:"showcase",category:"Modern"},{id:"organic",name:"Organic",icon:"leaf",character:"Natural, handcrafted",swatchBg:"#2d5016",swatchFg:"#faf5e6",tier:"showcase",category:"Creative"},{id:"rough",name:"Rough",icon:"pencil",character:"Hand-drawn sketch",swatchBg:"#f5f0e8",swatchFg:"#3a3a3a",tier:"showcase",category:"Creative"},{id:"cyber",name:"Cyber",icon:"zap",character:"Neon futuristic",swatchBg:"#0a0a1a",swatchFg:"#00ff88",tier:"showcase",category:"Creative"},{id:"journal",name:"Journal",icon:"notebook-pen",character:"Dot-grid bullet journal",swatchBg:"#f3ecdc",swatchFg:"#27313f",tier:"showcase",category:"Creative"},{id:"vaporwave",name:"Vaporwave",icon:"radio",character:"Neon dreamy",swatchBg:"#2b0040",swatchFg:"#ff6ad5",tier:"showcase",category:"Aesthetic"},{id:"neumorphism",name:"Neumorph",icon:"circle",character:"Soft embossed",swatchBg:"#e0e0e0",swatchFg:"#a0a0a0",tier:"showcase",category:"Aesthetic"},{id:"bauhaus",name:"Bauhaus",icon:"shapes",character:"Geometric",swatchBg:"#F1FAEE",swatchFg:"#E63946",tier:"showcase",category:"Aesthetic"},{id:"claymorphism",name:"Clay",icon:"circle-dot",character:"Puffy 3D",swatchBg:"#f0f0f5",swatchFg:"#FF6B9D",tier:"showcase",category:"Aesthetic"},{id:"alpha1999",name:"Alpha1999",icon:"orbit",character:"Space retro-fi",swatchBg:"#0a0a14",swatchFg:"#d4880f",tier:"showcase",category:"Signature"},{id:"super2026",name:"Super2026",icon:"triangle",character:"Supergraphic bold",swatchBg:"#f5f0e6",swatchFg:"#c23616",tier:"showcase",category:"Signature"},{id:"magna",name:"Magna",icon:"orbit",character:"Odyssey 2 retro",swatchBg:"#0d0b14",swatchFg:"#f97316",tier:"showcase",category:"Signature"},{id:"win9x",name:"Win9x",icon:"monitor",character:"Classic desktop",swatchBg:"#008080",swatchFg:"#c0c0c0",tier:"showcase",category:"OS Styles"},{id:"nes",name:"NES",icon:"joystick",character:"Console pixels",swatchBg:"#bcbcbc",swatchFg:"#e40521",tier:"showcase",category:"OS Styles"},{id:"8bit",name:"8-Bit",icon:"gamepad-2",character:"Retro pixel art",swatchBg:"#000080",swatchFg:"#ffff00",tier:"showcase",category:"OS Styles"}],An=[{id:"nord",name:"Nord",icon:"snowflake",character:"Arctic calm",swatchBg:"#2E3440",swatchFg:"#81A1C1",tier:"community",category:"Editor Palettes"},{id:"solarized",name:"Solarized",icon:"sun-dim",character:"Engineered precision",swatchBg:"#002B36",swatchFg:"#268BD2",tier:"community",category:"Editor Palettes"},{id:"dracula",name:"Dracula",icon:"moon-star",character:"Dark elegance",swatchBg:"#282A36",swatchFg:"#BD93F9",tier:"community",category:"Editor Palettes"},{id:"catppuccin-mocha",name:"Catppuccin",icon:"coffee",character:"Warm pastels",swatchBg:"#1E1E2E",swatchFg:"#CBA6F7",tier:"community",category:"Editor Palettes"},{id:"catppuccin-latte",name:"Ctp Latte",icon:"coffee",character:"Cozy daytime",swatchBg:"#eff1f5",swatchFg:"#8839ef",tier:"community",category:"Editor Palettes"},{id:"catppuccin-frappe",name:"Ctp Frapp\xE9",icon:"coffee",character:"Cool twilight",swatchBg:"#303446",swatchFg:"#ca9ee6",tier:"community",category:"Editor Palettes"},{id:"catppuccin-macchiato",name:"Ctp Macchiato",icon:"coffee",character:"Deep blue",swatchBg:"#24273a",swatchFg:"#c6a0f6",tier:"community",category:"Editor Palettes"},{id:"gruvbox",name:"Gruvbox",icon:"palette",character:"Retro warmth",swatchBg:"#282828",swatchFg:"#ebdbb2",tier:"community",category:"Editor Palettes"},{id:"tokyo-night",name:"Tokyo Night",icon:"moon",character:"Night-owl vibes",swatchBg:"#1a1b26",swatchFg:"#7aa2f7",tier:"community",category:"Editor Palettes"},{id:"rose-pine",name:"Ros\xE9 Pine",icon:"flower-2",character:"Muted elegance",swatchBg:"#191724",swatchFg:"#ebbcba",tier:"community",category:"Editor Palettes"},{id:"cottagecore",name:"Cottagecore",icon:"flower-2",character:"Pastoral",swatchBg:"#fdf8f0",swatchFg:"#7d8c6d",tier:"community",category:"Niche"},{id:"terminal",name:"Terminal",icon:"terminal",character:"Retro CRT",swatchBg:"#0d1117",swatchFg:"#00ff00",tier:"community",category:"Niche"},{id:"clinical",name:"Clinical",icon:"heart-pulse",character:"Sterile precision",swatchBg:"#ffffff",swatchFg:"#0077b6",tier:"community",category:"Industry"},{id:"financial",name:"Financial",icon:"landmark",character:"Navy + gold",swatchBg:"#1b2a4a",swatchFg:"#c9a84c",tier:"community",category:"Industry"},{id:"government",name:"Government",icon:"shield",character:"Official",swatchBg:"#002868",swatchFg:"#bf0a30",tier:"community",category:"Industry"},{id:"dawn",name:"Dawn",icon:"sunrise",character:"Golden morning",swatchBg:"#fef3e2",swatchFg:"#d4a574",tier:"community",category:"Mood/Time"},{id:"dusk",name:"Dusk",icon:"sunset",character:"Twilight",swatchBg:"#1a1b2e",swatchFg:"#e5a858",tier:"community",category:"Mood/Time"},{id:"midnight",name:"Midnight",icon:"moon",character:"Deep night",swatchBg:"#0d1117",swatchFg:"#58a6ff",tier:"community",category:"Mood/Time"},{id:"high-noon",name:"High Noon",icon:"sun",character:"Maximum bright",swatchBg:"#ffffff",swatchFg:"#e63946",tier:"community",category:"Mood/Time"}],ul=[{id:"kawaii",name:"Kawaii",icon:"heart",character:"Cute aesthetic",swatchBg:"#ffb7c5",swatchFg:"#ff69b4",tier:"showcase",category:"Packs"},{id:"memphis",name:"Memphis",icon:"star",character:"Bold patterns",swatchBg:"#FFF8F0",swatchFg:"#d03040",tier:"showcase",category:"Packs"}];var OC=[...wn,...An],qC=[...ll,...wn,...An,...ul],It=e=>wn.filter(t=>t.category===e),dl=[{label:"Style",themes:ll,tier:"core"},{label:"Design",themes:It("Design"),tier:"showcase"},{label:"Content",themes:It("Content"),tier:"showcase"},{label:"Modern",themes:It("Modern"),tier:"showcase"},{label:"Creative",themes:It("Creative"),tier:"showcase"},{label:"Aesthetic",themes:It("Aesthetic"),tier:"showcase"},{label:"Signature",themes:It("Signature"),tier:"showcase"},{label:"OS Styles",themes:It("OS Styles"),tier:"showcase"},{label:"Packs",themes:ul,tier:"showcase"},{label:"More Themes",themes:An,tier:"community"}];mt();var _i="theme",$i="current",vl=2,Bi={accent:"data-accent",borderStyle:"data-border-style",iconSet:"data-icon-set",fluid:"data-fluid",backdrop:"data-backdrop",backdropChrome:"data-backdrop-chrome"},et={mode:"auto",brand:"default",accent:null,borderStyle:null,iconSet:null,fluid:null,backdrop:null,backdropChrome:null,pageBgType:"",pageBgColor:"",pageBgGradStart:"",pageBgGradEnd:"",pageBgGradDir:""};function pl(e){if(!e||typeof e!="object")return null;let t={...e};if(!(Number(t.v)>=vl))for(let i of Object.keys(Bi))(t[i]===""||i==="accent"&&t[i]==="default")&&(t[i]=null);return t}function vt(e,t){return e??t??""}var kn=null;function ct(){if(kn)return kn;let e=document.documentElement,t=window.__vbAuthoredRoot,i=n=>{if(t&&typeof t=="object"){if(n in t)return t[n]??null;if(n==="data-mode")return null}return e.getAttribute(n)},s={theme:i("data-theme"),mode:i("data-mode"),themeSource:i("data-theme-source")};for(let[n,r]of Object.entries(Bi))s[n]=i(r);return kn=s,s}function Eb(e){try{let t=document.createElement("canvas");t.width=t.height=1;let i=t.getContext("2d",{willReadFrequently:!0});if(!i)return e;i.fillStyle=e,i.fillRect(0,0,1,1);let[s,n,r]=i.getImageData(0,0,1,1).data;return"#"+[s,n,r].map(a=>a.toString(16).padStart(2,"0")).join("")}catch{return e}}function Ii(e,t){let i=(e||"").split(/\s+/).filter(Boolean);return t==="site"?i[0]&&!i[0].startsWith("a11y-")?i[0]:"":i.find(s=>!s.startsWith("a11y-"))||""}function kb(e,t,i,s=!1){let n=(e||"").split(/\s+/).filter(r=>r&&r!==t&&r!==i);return i!=="default"?[i,...n].join(" "):(s&&n.length?["default",...n]:n).join(" ")}function ml(e){return e==="light"||e==="dark"?e:null}function gl(e,t,i){return t||(e==="light"||e==="dark"?e:i?"dark":"light")}function bl(e,t,i){let s=Ii(t,i);return i==="site"&&s?s:e?.brand&&e.brand!==et.brand?e.brand:s||et.brand}var yl=["--hue-primary","--hue-secondary","--hue-accent","--lightness-primary","--chroma-primary","--lightness-secondary","--chroma-secondary","--lightness-accent","--chroma-accent"],q=null,Pe="",Sn="",ee=null,Bt=null,B={_initPromise:null,async init(){return this._initPromise?this._initPromise:(this._initPromise=(async()=>{let e=pl(await C.get(_i,$i));q=e?{...et,...e}:{...et},Bt=ct().themeSource??null,Pe=Ii(ct().theme??"",Bt),Sn=Ii(document.documentElement.dataset.theme||"",Bt),ee=ml(ct().mode),q.brand=bl(e,ct().theme??"",Bt);try{await Re(q.brand)}catch{q.brand!==Pe&&(q.brand=Pe||et.brand)}return this.apply(q),this._watchSystemPreference(),this._watchRootAttributes(),this._watchCrossDocumentStorage(),q})(),this._initPromise)},_watchCrossDocumentStorage(){typeof window>"u"||window.addEventListener("storage",async e=>{if(e.key!==`vb:${_i}:${$i}`||!e.newValue)return;let t;try{let s=JSON.parse(e.newValue);t=pl(s?.data)}catch{return}if(!t)return;let i={...et,...q,...t};if(i.brand=bl(t,ct().theme??"",Bt),i.brand&&i.brand!==q?.brand)try{await Re(i.brand)}catch{i.brand=Pe||et.brand}q=i,this.apply(q||{})})},load(){return q?{...q}:{...et}},save(e){let t={...q??et,...e,v:vl};return q=t,C.set(_i,$i,t).catch(()=>{}),t},apply({mode:e="auto",brand:t="default",borderStyle:i=null,iconSet:s=null,fluid:n=null,backdrop:r=null,backdropChrome:a=null,pageBgType:o="",pageBgColor:c="",pageBgGradStart:l="",pageBgGradEnd:u="",pageBgGradDir:d=""}={}){let h=document.documentElement,f=ct(),p=gl(e,ee,window.matchMedia("(prefers-color-scheme: dark)").matches);h.dataset.mode=p;let m=Bt==="site",g=kb(h.dataset.theme||"",Sn,t,m);g?h.dataset.theme=g:delete h.dataset.theme,Sn=t==="default"&&!g.startsWith("default")?"":t;let b=i||f.borderStyle||this._readCSSHint("--theme-border-style");this._setRootAttr("data-border-style",b&&b!=="clean"?b:"");let T=s||f.iconSet||this._readCSSHint("--theme-icon-set");this._setRootAttr("data-icon-set",T&&T!=="lucide"?T:"");let w=vt(n,f.fluid);this._setRootAttr("data-fluid",w,!0);let k=vt(r,f.backdrop);this._setRootAttr("data-backdrop",k,!0);let $=vt(a,f.backdropChrome);if(this._setRootAttr("data-backdrop-chrome",$&&$!=="card"?$:""),o==="color"&&c)h.style.setProperty("--page-bg-color",c),h.style.removeProperty("--page-bg-gradient");else if(o==="gradient"&&l&&u){let D=d||"to bottom";h.style.setProperty("--page-bg-gradient",`linear-gradient(${D}, ${l}, ${u})`),h.style.removeProperty("--page-bg-color")}else h.style.removeProperty("--page-bg-color"),h.style.removeProperty("--page-bg-gradient");this._applyAccent(this.load().accent);let N=this.getState().accent;this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{mode:e,brand:t,accent:N,borderStyle:b,iconSet:T,fluid:w,backdrop:k,backdropChrome:$,pageBgType:o,effectiveMode:p}}))},_setRootAttr(e,t,i=!1){let s=document.documentElement;t?s.setAttribute(e,t):i&&this._authoredHas(e)?s.setAttribute(e,""):s.removeAttribute(e)},_authoredHas(e){let t=Object.keys(Bi).find(s=>Bi[s]===e);return t?this.load()[t]==null&&ct()[t]!=null:!1},_syncThemeColor(){let e=document.querySelectorAll('meta[name="theme-color"]');if(!e.length)return;let t=n=>!n||n==="transparent"||/^rgba\(.*,\s*0\)$/.test(n),i=getComputedStyle(document.documentElement).backgroundColor;if(t(i)){let n=document.createElement("span");n.style.setProperty("position","absolute"),n.style.setProperty("background-color","var(--color-background)"),(document.body||document.documentElement).append(n),i=getComputedStyle(n).backgroundColor,n.remove()}if(t(i))return;let s=Eb(i);e.forEach(n=>{n.removeAttribute("media"),n.setAttribute("content",s)})},setMode(e){ee=null;let t=this.save({mode:e});this.apply(t)},async setBrand(e){try{await Re(e)}catch(i){console.warn(`[VB] Theme "${e}" failed to load, using default`,i),e="default"}let t=this.save({brand:e});this.apply(t)},setAccent(e){this.save({accent:e}),this._applyAccent(e),this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}}))},setBorderStyle(e){let t=this.save({borderStyle:e});this.apply(t)},setIconSet(e){let t=this.save({iconSet:e});this.apply(t)},setFluid(e){let t=this.save({fluid:e});this.apply(t)},setBackdrop(e){let t=this.save({backdrop:e});this.apply(t)},setBackdropChrome(e){let t=this.save({backdropChrome:e});this.apply(t)},setPageBg({type:e="",color:t="",gradStart:i="",gradEnd:s="",gradDir:n=""}={}){let r=this.save({pageBgType:e,pageBgColor:t,pageBgGradStart:i,pageBgGradEnd:s,pageBgGradDir:n});this.apply(r)},getEffectiveMode(){let{mode:e}=this.load();return gl(e,ee,window.matchMedia("(prefers-color-scheme: dark)").matches)},getState(){let{mode:e,brand:t,accent:i,borderStyle:s,iconSet:n,fluid:r,backdrop:a,backdropChrome:o,pageBgType:c,pageBgColor:l,pageBgGradStart:u,pageBgGradEnd:d,pageBgGradDir:h}=this.load(),f=typeof document>"u"?{}:ct(),p=(m,g)=>g==null&&f[m]===""?"default":vt(g,f[m]);return{mode:e,brand:t,accent:vt(i,f.accent)||"default",borderStyle:vt(s,f.borderStyle),iconSet:vt(n,f.iconSet),fluid:p("fluid",r),backdrop:p("backdrop",a),backdropChrome:vt(o,f.backdropChrome),pageBgType:c,pageBgColor:l,pageBgGradStart:u,pageBgGradEnd:d,pageBgGradDir:h,effectiveMode:this.getEffectiveMode()}},toggleMode(){let t=this.getEffectiveMode()==="dark"?"light":"dark";this.setMode(t)},reset(){q={...et,brand:Pe||et.brand},ee=ml(ct().mode),C.remove(_i,$i).catch(()=>{});let e=document.documentElement;e.style.removeProperty("--page-bg-color"),e.style.removeProperty("--page-bg-gradient");for(let t of yl)e.style.removeProperty(t);this.apply(q)},_readCSSHint(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()},_applyAccent(e){let t=document.documentElement;for(let s of yl)t.style.removeProperty(s);if(e==null){let s=ct().accent;s?t.dataset.accent=s:delete t.dataset.accent;return}let i=cl.find(s=>s.id===e);if(!i||!i.seeds||Object.keys(i.seeds).length===0){delete t.dataset.accent;return}t.dataset.accent=i.id},_watchRootAttributes(){this._rootObserver||(this._rootObserver=new MutationObserver(e=>{for(let t of e)t.attributeName==="data-theme"?this._syncFromDataTheme():t.attributeName==="data-mode"&&this._syncFromDataMode()}),this._rootObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","data-mode"]}))},_syncFromDataTheme(){if(!q)return;let e=document.documentElement.dataset.theme||"",t=e.split(/\s+/).filter(Boolean),i=Ii(e,Bt)||"default";i!==q.brand&&(q.brand=i,Re(i).catch(()=>{}),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}})))},_syncFromDataMode(){if(!q)return;let e=document.documentElement.dataset.mode||"auto",t=this.getEffectiveMode();e!==t&&(ee=null,q.mode=e,this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}})))},_watchSystemPreference(){window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{let t=this.load();t.mode==="auto"&&this.apply(t)})}};if(typeof window<"u"){let e=window.VB??(window.VB={});e.themeManager??=B}var Sb=["calendar-event","chat-bubble","chat-message","chat-thread","dl-item","fab-stack","hour-view","layout-badge","layout-canvas","layout-card","layout-center","layout-cluster","layout-columns","layout-cover","layout-grid","layout-imposter","layout-reel","layout-sidebar","layout-stack","layout-switcher","layout-text","loading-spinner","semantic-card","site-legal","site-tools","status-message","text-divider","token-swatch","user-avatar"];for(let e of Sb)customElements.get(e)||customElements.define(e,class extends HTMLElement{});Fe();var XC=window.matchMedia("(prefers-reduced-motion: reduce)");var wl=new Map;function A(e,t,i={}){let s=i.priority??10,n={impl:t,bundle:i.bundle,contract:i.contract,priority:s},r=wl.get(e);if(customElements.get(e)){if(!r||r.priority>=s){r&&r.priority===s&&r.impl!==t&&console.warn(`[VB Bundle] Tag <${e}> already registered by "${r.bundle}" (priority ${r.priority}). Skipping "${i.bundle}".`);return}console.warn(`[VB Bundle] Tag <${e}> defined by "${r.bundle}" cannot be replaced (customElements.define is permanent). "${i.bundle}" has higher priority but arrived late.`);return}if(r&&r.priority>=s){r.priority===s&&console.warn(`[VB Bundle] Tag <${e}> already registered by "${r.bundle}". Skipping "${i.bundle}" (first wins at equal priority).`);return}wl.set(e,n),customElements.define(e,t)}var E=class extends HTMLElement{#t=[];#e;constructor(){super(),this.hasAttribute("data-upgraded")&&this.removeAttribute("data-upgraded")}connectedCallback(){this.hasAttribute("data-upgraded")||this.setup()!==!1&&(this.setAttribute("data-upgraded",""),queueMicrotask(()=>{this.dispatchEvent(new CustomEvent(`${this.localName}:upgraded`,{bubbles:!0}))}))}disconnectedCallback(){for(let t of this.#t)t();this.#t=[],this.removeAttribute("data-upgraded"),this.teardown()}listen(t,i,s,n){t.addEventListener(i,s,n),this.#t.push(()=>t.removeEventListener(i,s,n))}_reinit(){for(let t of this.#t)t();this.#t=[],this.teardown(),this.removeAttribute("data-upgraded"),this.isConnected&&this.setup()!==!1&&this.setAttribute("data-upgraded","")}setup(){}teardown(){}setState(t,i){this.#e||(this.#e=this.attachInternals());let s=this.#e.states;try{i?s.add(t):s.delete(t)}catch{let n=`--${t}`;i?s.add(n):s.delete(n)}}_adoptInternals(t){this.#e||(this.#e=t)}#i(){return this.constructor.formAssociated&&this.#e?this.#e:null}get validity(){return this.#i()?.validity}get validationMessage(){return this.#i()?.validationMessage??""}get willValidate(){return this.#i()?.willValidate??!1}get form(){return this.#i()?.form??null}checkValidity(){return this.#i()?.checkValidity()??!0}reportValidity(){return this.#i()?.reportValidity()??!0}};var xb=["valueMissing","badInput","typeMismatch","patternMismatch","tooShort","tooLong","rangeUnderflow","rangeOverflow","stepMismatch","customError"],Cb='input:not([type="hidden"]):not(.otp-digit), textarea, select',Tb="output.hint, output.textarea-counter",Lb="Please check this field.",Db=0;function Al(e){return e.localName.includes("-")?!!customElements.get(e.localName)?.formAssociated:!1}function Oe(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement}var xn=class extends E{#t=null;#e=[];#i=null;#n=!1;#s="";#o;#r=`ff-${++Db}`;setup(){if(this.#f(),this.#t=this.#g(),this.#i=this.querySelector("output.error")??this.querySelector("output:not(.hint):not(.textarea-counter)"),!this.#t)return!1;this.#i&&this.#o===void 0&&(this.#o=this.#i.textContent?.trim()??"",this.hasAttribute("data-invalid")||(this.#i.textContent=""));let t=this.#t;this.#e=[],t instanceof HTMLInputElement&&t.type==="radio"&&(this.#e=this.#u(t));let i=this.#e.length?this.#e:[t];for(let n of i)this.listen(n,"input",this.#a),this.listen(n,"change",this.#a),this.listen(n,"invalid",this.#c);Oe(t)||this.listen(t,`${t.localName}:change`,this.#a),this.listen(this,"focusout",n=>{let r=n.relatedTarget;r instanceof Node&&this.contains(r)||this.validate()});let s=t.form??this.closest("form");return s instanceof HTMLFormElement&&this.listen(s,"reset",n=>{setTimeout(()=>{!n.defaultPrevented&&this.isConnected&&this.clearError()})}),this.#v(this.hasAttribute("data-invalid")),!0}teardown(){this.#t=null,this.#e=[],this.#i=null}validate({show:t=!0}={}){if(!this.#t)return!0;let{valid:i,message:s}=this.#d();return t&&(i?(this.#S(this.#h()?"valid":null),this.#b("")):(this.#n=!0,this.#S("invalid"),this.#b(s)),this.#v(!i)),i}setError(t){if(!this.#t)return;this.#s=t;let i=this.#p();i&&i.setCustomValidity(t),this.validate()}clearError(){this.#t&&(this.#y(),this.#n=!1,this.#S(null),this.#b(""),this.#v(!1))}get fieldName(){return this.querySelector("label, legend")?.textContent?.trim()||this.#t?.getAttribute?.("aria-label")||this.#t?.getAttribute?.("name")||this.#t?.id||"Field"}get input(){return this.#t}#a=()=>{this.#s&&this.#y(),this.#n&&this.validate()};#l=!1;#c=()=>{if(!this.#l){this.#l=!0;try{this.validate()}finally{this.#l=!1}}};#g(){for(let t of this.querySelectorAll("*"))if(Al(t))return t;return this.querySelector(Cb)}#f(){for(let t of this.querySelectorAll(":not(:defined)"))t.localName.includes("-")&&customElements.whenDefined(t.localName).then(()=>{!this.isConnected||!this.contains(t)||this.#t===t||Al(t)&&this._reinit()})}#u(t){return t.name?(t.form?[...t.form.elements]:[...t.getRootNode().querySelectorAll('input[type="radio"]')].filter(s=>!s.form)).filter(s=>s instanceof HTMLInputElement&&s.type==="radio"&&s.name===t.name):[t]}#p(){let t=this.#t;return t&&Oe(t)?t:null}#y(){let t=this.#p();t&&t.validity.customError&&t.validationMessage===this.#s&&t.setCustomValidity(""),this.#s=""}#d(){let t=this.#t;if(this.#s)return{valid:!1,message:this.#s};let i=t.validity;if(i)return i.valid?{valid:!0,message:""}:{valid:!1,message:this.#m(i)};let s=t.matches(":invalid");return{valid:!s,message:s?this.#m(null):""}}#m(t){let i=this.#t,s=Oe(i),n=r=>i.getAttribute(`data-message-${r.toLowerCase()}`)??(s?null:this.getAttribute(`data-message-${r.toLowerCase()}`));if(t)for(let r of xb){if(!t[r])continue;let a=n(r);if(a)return a;if((r==="customError"||!s)&&i.validationMessage)return i.validationMessage;break}else if(!this.#h()){let r=n("valueMissing");if(r)return r}return this.#o||i.validationMessage||this.getAttribute("data-message-invalid")||Lb}#h(){let t=this.#t;if(this.#e.length)return this.#e.some(s=>s.checked);if(t instanceof HTMLInputElement&&t.type==="checkbox")return t.checked;let i=t.value;return Array.isArray(i)?i.length>0:!Oe(t)&&i===0?!1:i!=null&&String(i)!==""}#E(){let t=this.#t,i=this.querySelector('.otp-wrapper[role="group"]');return i?[i]:this.#e.length?this.#e.filter(s=>this.contains(s)):Oe(t)?[t]:[t.querySelector('[role="combobox"], fieldset, input:not([type="hidden"]):not([aria-hidden="true"]), textarea, select')??t]}#v(t){let i=[...this.querySelectorAll(Tb)];i.forEach((a,o)=>{a.id||(a.id=`${this.#r}-hint${o?`-${o}`:""}`)});let s=this.#i;s&&!s.id&&(s.id=`${this.#r}-error`);let n=new Set([...i.map(a=>a.id),...s?[s.id]:[]]),r=[...i.map(a=>a.id),...t&&s?[s.id]:[]];for(let a of this.#E()){let o=(a.getAttribute("aria-describedby")??"").split(/\s+/).filter(l=>l&&!n.has(l)),c=[...new Set([...o,...r])];c.length?a.setAttribute("aria-describedby",c.join(" ")):a.removeAttribute("aria-describedby"),t?a.setAttribute("aria-invalid","true"):a.removeAttribute("aria-invalid")}}#S(t){delete this.dataset.valid,delete this.dataset.invalid,t&&(this.dataset[t]="")}#b(t){this.#i&&(this.#i.textContent=t)}};A("form-field",xn);function lt(e){return document.startViewTransition?document.startViewTransition(e):e()}var Nb=0,Mb=0,Cn=class extends E{#t=[];#e=[];#i=!1;#n=0;#s=!1;setup(){return this.#t=[...this.querySelectorAll(":scope > details")],this.#e=this.#t.map(t=>t.querySelector(":scope > summary")),this.#t.length===0?!1:(this.style.setProperty("--_tab-count",String(this.#t.length)),!this.hasAttribute("role")&&(this.hasAttribute("aria-label")||this.hasAttribute("aria-labelledby"))&&(this.setAttribute("role","group"),this.#s=!0),this.#o(),this.#l(),this.#c(),this.#n=Math.max(0,this.#t.findIndex(t=>t.open)),this.#f(),this.#r(),!0)}teardown(){this.style.removeProperty("--_tab-count"),this.#s&&this.removeAttribute("role"),this.#s=!1,this.#t=[],this.#e=[],this.#i=!1}get tabs(){return this.#t.map((t,i)=>({id:t.id||void 0,label:t.querySelector(":scope > summary")?.textContent?.trim()||`Tab ${i+1}`,content:t.querySelector(":scope > :not(summary)")?.innerHTML||"",active:t.hasAttribute("open")}))}set tabs(t){let i=Array.isArray(t)?t:[];for(;this.firstChild;)this.firstChild.remove();let s=!1;for(let n of i){let r=document.createElement("details");n.id&&(r.id=n.id),n.active&&!s&&(r.setAttribute("open",""),s=!0);let a=document.createElement("summary");a.textContent=n.label||"",r.appendChild(a);let o=document.createElement("section");o.innerHTML=n.content||"",r.appendChild(o),this.appendChild(r)}!s&&this.firstElementChild&&this.firstElementChild.setAttribute("open",""),this._reinit(),this.dispatchEvent(new CustomEvent("tab-set:tabs-changed",{detail:{tabs:i,source:"property"},bubbles:!0}))}#o(){let t=new Set(this.#t.map(s=>s.getAttribute("name")||"")),i=t.size===1?[...t][0]:"";if(i){let n=this.getRootNode().querySelectorAll?.(`details[name="${CSS.escape(i)}"]`)??[];for(let r of n)if(!this.#t.includes(r)){i="";break}}if(!i){i=`tab-set-${++Mb}`;for(let s of this.#t)s.setAttribute("name",i)}}#r(){if(!this.hasAttribute("transition")||!document.startViewTransition)return;this.#i=!0;let t=++Nb,i=this.getAttribute("transition")||"fade",s=i==="slide"?"vt-tabs-slide":i==="scale"?"vt-tabs-scale":"vt-tabs";this.#t.forEach(n=>{let r=n.querySelector(":scope > :not(summary)");r&&(r.style.viewTransitionName=`tabs-${t}`,r.style.viewTransitionClass=s)})}#a(t){if(t===this.#n)return;let i=t>this.#n?"forward":"backward";document.documentElement.dataset.vtDirection=i,lt(()=>{this.#t[t].open=!0}).finished?.then(()=>{delete document.documentElement.dataset.vtDirection})}#l(){this.#t.forEach((t,i)=>{let s=this.#e[i],n=t.querySelector(":scope > :not(summary)");if(this.listen(t,"toggle",()=>this.#g(i)),!s||!n)return;let r=s.id||`tab-${crypto.randomUUID().slice(0,8)}`,a=n.id||`panel-${crypto.randomUUID().slice(0,8)}`;s.id=r,s.setAttribute("aria-controls",a),n.id=a,n.setAttribute("aria-labelledby",r),this.listen(s,"click",o=>{if(t.open){o.preventDefault();return}this.#i&&(o.preventDefault(),this.#a(i))}),this.listen(s,"keydown",o=>this.#u(o,i))})}#c(){this.#t.some(t=>t.open)||(this.#t[0].open=!0)}#g(t){let i=this.#t[t];if(this.#f(),!i?.open)return;let s=this.#n;s!==t&&(this.#n=t,this.dispatchEvent(new CustomEvent("tab-set:change",{detail:{index:t,previousIndex:s,tab:i,panel:i.querySelector(":scope > :not(summary)")},bubbles:!0})))}#f(){this.#t.forEach((t,i)=>{let s=this.#e[i];s&&s.setAttribute("aria-expanded",t.open?"true":"false")})}#u(t,i){let s=this.#t.length,n=(i+1)%s,r=(i-1+s)%s,a=getComputedStyle(this).direction==="rtl",o=this.getAttribute("data-orientation")==="vertical",c;switch(t.key){case"ArrowRight":if(o)return;c=a?r:n;break;case"ArrowLeft":if(o)return;c=a?n:r;break;case"ArrowDown":if(!o)return;c=n;break;case"ArrowUp":if(!o)return;c=r;break;case"Home":c=0;break;case"End":c=s-1;break;default:return}t.preventDefault(),this.#i?this.#a(c):this.#t[c].open=!0,this.#e[c]?.focus()}};A("tab-set",Cn);var _b=()=>typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches;function Tn(e,t){let s=(()=>{try{return decodeURIComponent(location.hash.slice(1))}catch{return location.hash.slice(1)}})()===t;s||(location.hash=t);let n=e;typeof n.focus=="function"&&(n.tabIndex<0&&!n.hasAttribute("tabindex")&&n.setAttribute("tabindex","-1"),n.focus({preventScroll:!0})),(s||!n.matches?.(":target"))&&n.scrollIntoView({behavior:_b()?"auto":"smooth",block:"start"})}function Ln(e){let t=e;if(t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return!1;let s=(t.target instanceof Element?t.target:null)?.closest('a[href^="#"]');if(!s)return!1;let n=s.getAttribute("target");if(n&&n!=="_self"||s.hasAttribute("download"))return!1;let r=(s.getAttribute("href")??"").slice(1);if(!r)return!1;let a=r;try{a=decodeURIComponent(r)}catch{}let o=s.ownerDocument.getElementById(a);return o?(t.preventDefault(),Tn(o,a),!0):!1}var $b="Back to content",Ib="Footnote {n}",Bb="Notes",El="\u21A9\uFE0E",Rb=120,Fb=150,Dn=e=>String.fromCharCode(97+e%26)+(e>=26?String(Math.floor(e/26)):""),Nn=class e extends E{static observedAttributes=["data-mode","data-label-back","data-label-ref","data-label-heading","data-preview"];static#t=0;#e=0;#i=[];#n=[];#s=null;#o=!1;#r=null;#a=null;#l;#c;attributeChangedCallback(t,i,s){i===s||!this.hasAttribute("data-upgraded")||this._reinit()}setup(){this.#e||(this.#e=++e.#t),this.listen(this,"click",Ln),this.listen(document,"keydown",n=>{n.key==="Escape"&&this.#r?.matches(":popover-open")&&this.#k()});let t=this.#f(this.#g());if(t.length===0)return;let i=this.getAttribute("data-mode")==="sidenotes";for(let n of t)n.side=i&&n.source.getAttribute("data-side")!=="false",this.#u(n);let s=t.filter(n=>!n.side);for(let n of t)n.side&&this.#m(n),n.refs.forEach((r,a)=>this.#y(r,n,a));s.length?this.#h(s):this.hidden||(this.hidden=!0,this.#o=!0)}teardown(){clearTimeout(this.#l),clearTimeout(this.#c),this.#k();for(let{ref:t,original:i}of this.#i)t.replaceChildren(...i),t.removeAttribute("data-enhanced");this.#i=[];for(let t of this.#n)t.remove();this.#n=[],this.#r=null,this.#a=null,this.#s&&(this.#s.el.removeAttribute("id"),this.#s=null),this.#o&&(this.hidden=!1,this.#o=!1)}#g(){return[...document.querySelectorAll("foot-note:not([data-enhanced])")].filter(t=>this.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}#f(t){let i=new Set(t),s=new Map,n=[];for(let r of t){let a=r,o=r.getAttribute("data-ref");if(o){let l=document.getElementById(o);l&&i.has(l)&&!l.hasAttribute("data-ref")?a=l:console.warn(`[foot-notes] data-ref="${o}" does not name a <foot-note> collected by this <foot-notes>; rendering it as its own note.`)}let c=s.get(a);if(!c){let l=n.length+1;c={source:a,num:l,noteId:`fn-${this.#e}-${l}`,refs:[],content:[],side:!1},s.set(a,c),n.push(c)}c.refs.push(r)}return n}#u(t){let i=new Set([t.source,...t.refs]);for(let s of i){let n=[...s.childNodes];this.#i.push({ref:s,original:n}),s===t.source&&(t.content=n),s.replaceChildren()}}#p(t,i){return this.getAttribute(t)||i}#y(t,i,s){let n=document.createElement("a");n.id=this.#d(i,s),n.href=`#${i.noteId}`,n.setAttribute("role","doc-noteref"),n.setAttribute("aria-label",this.#p("data-label-ref",Ib).replaceAll("{n}",String(i.num))),n.textContent=String(i.num),t.setAttribute("data-enhanced",""),i.side&&t===i.source?t.prepend(n):t.append(n),this.listen(n,"click",r=>{this.#k(),Ln(r)}),!i.side&&this.getAttribute("data-preview")!=="false"&&this.#v(n,i)}#d(t,i){let s=`fnref-${this.#e}-${t.num}`;return i===0?s:`${s}-${Dn(i)}`}#m(t){let i=document.createElement("aside");i.className="sidenote",i.id=t.noteId,i.setAttribute("role","note");let s=document.createElement("span");s.className="sidenote-number",s.textContent=`${t.num}.`,i.append(s," ",...t.content),t.source.append(i)}#h(t){let i=document.createElement("section");i.setAttribute("role","doc-endnotes");let s=this.querySelector(":scope > :is(h1, h2, h3, h4, h5, h6)");if(s)s.id||(s.id=`fnh-${this.#e}`,this.#s={el:s,id:s.id}),i.setAttribute("aria-labelledby",s.id);else{let r=document.createElement("h2");r.id=`fnh-${this.#e}`,r.className="visually-hidden",r.textContent=this.#p("data-label-heading",Bb),i.setAttribute("aria-labelledby",r.id),i.append(r)}let n=document.createElement("ol");for(let r of t)n.append(this.#E(r));i.append(n),this.append(i),this.#n.push(i)}#E(t){let i=document.createElement("li");i.id=t.noteId,i.append(...t.content," ");let s=this.#p("data-label-back",$b),n=t.refs.length>1;return t.refs.forEach((r,a)=>{let o=document.createElement("a");o.href=`#${this.#d(t,a)}`,o.setAttribute("data-backref",""),o.setAttribute("role","doc-backlink"),n?(o.setAttribute("aria-label",`${s} (${Dn(a)})`),o.textContent=`${El}${Dn(a)}`):(o.setAttribute("aria-label",s),o.textContent=El),a>0&&i.append(" "),i.append(o)}),i}#v(t,i){typeof HTMLElement.prototype.showPopover=="function"&&(this.listen(t,"pointerenter",s=>{s.pointerType!=="touch"&&(clearTimeout(this.#c),clearTimeout(this.#l),this.#l=setTimeout(()=>this.#b(t,i),Rb))}),this.listen(t,"pointerleave",()=>{clearTimeout(this.#l),!(t===document.activeElement&&t.matches(":focus-visible"))&&(this.#c=setTimeout(()=>this.#k(),Fb))}),this.listen(t,"focus",()=>{t.matches(":focus-visible")&&this.#b(t,i)}),this.listen(t,"blur",()=>this.#k()))}#S(){if(this.#r)return this.#r;let t=document.createElement("aside");return t.className="fn-preview",t.setAttribute("popover","manual"),t.setAttribute("aria-hidden","true"),t.inert=!0,this.append(t),this.#n.push(t),this.#r=t,t}#b(t,i){if(clearTimeout(this.#c),!t.isConnected||this.hidden)return;let s=this.#S(),n=document.createElement("span");n.className="fn-preview-number",n.textContent=`${i.num}.`;let r=i.content.map(a=>a.cloneNode(!0));s.replaceChildren(n," ",...r);for(let a of s.querySelectorAll("[id]"))a.removeAttribute("id");this.#a?.removeAttribute("data-preview-anchor"),t.setAttribute("data-preview-anchor",""),this.#a=t,s.matches(":popover-open")||s.showPopover(),this.#w(s,t)}#k(){clearTimeout(this.#l);let t=this.#r;t?.matches(":popover-open")&&t.hidePopover(),this.#a?.removeAttribute("data-preview-anchor"),this.#a=null}#w(t,i){if(typeof CSS<"u"&&CSS.supports?.("position-area: top"))return;let s=i.getBoundingClientRect(),n=6,r=t.offsetWidth,a=t.offsetHeight,o=s.top-a-n;o<n&&(o=s.bottom+n);let c=Math.max(n,Math.min(s.left+s.width/2-r/2,innerWidth-r-n));t.style.inset="auto",t.style.top=`${o}px`,t.style.left=`${c}px`}},Mn=class extends HTMLElement{};A("foot-notes",Nn);A("foot-note",Mn);var kl=0,Pb=6,_n=class extends E{#t=[];#e=[];#i=[];#n=!1;#s=new WeakSet;setup(){return this.#t=[...this.querySelectorAll(":scope > details")],this.#e=this.#t.map(t=>t.querySelector("summary")),this.#t.length===0?!1:(this.#o(),this.#l(),this.#r(),!0)}teardown(){this.#t=[],this.#e=[],this.#i=[],this.#n=!1}get panels(){return this.#t.map((t,i)=>({id:t.id||void 0,summary:t.querySelector("summary")?.textContent?.trim()||`Panel ${i+1}`,content:this.#i[i]?.innerHTML||"",open:t.hasAttribute("open")}))}set panels(t){let i=Array.isArray(t)?t:[],n=this.hasAttribute("single")?`acc-${++kl}`:null;for(;this.firstChild;)this.firstChild.remove();for(let r of i){let a=document.createElement("details");r.id&&(a.id=r.id),r.open&&a.setAttribute("open",""),n&&a.setAttribute("name",n);let o=document.createElement("summary");o.textContent=r.summary||"",a.appendChild(o);let c=document.createElement("div");c.innerHTML=r.content||"",a.appendChild(c),this.appendChild(a)}this._reinit(),this.dispatchEvent(new CustomEvent("accordion-wc:panels-changed",{detail:{panels:i,source:"property"},bubbles:!0}))}#o(){this.#i=this.#t.map(t=>{let i=t.querySelector("summary");if(!i)return null;let s=[...t.children].filter(n=>n!==i);if(s.length===1&&s[0].localName==="div")return s[0];if(s.length>=1){let n=document.createElement("div");for(let r of s)n.appendChild(r);return t.appendChild(n),n}return null})}#r(){if(!this.hasAttribute("transition")||!document.startViewTransition)return;this.#n=!0;let t=++kl,i=this.getAttribute("transition")||"fade",s=i==="slide"?"vt-accordion-slide":i==="scale"?"vt-accordion-scale":"vt-accordion";this.#i.forEach((n,r)=>{n&&(n.style.viewTransitionName=`accordion-${t}-${r}`,n.style.viewTransitionClass=s)})}#a(t){lt(()=>{t.open=!t.open})}#l(){let t=this.#t.length<=Pb;this.#t.forEach((i,s)=>{let n=this.#e[s],r=this.#i[s];if(n){if(r){let a=n.id||`accordion-heading-${crypto.randomUUID().slice(0,8)}`,o=r.id||`accordion-panel-${crypto.randomUUID().slice(0,8)}`;n.id=a,r.id=o,n.setAttribute("aria-expanded",i.open?"true":"false"),n.setAttribute("aria-controls",o),t?(r.setAttribute("aria-labelledby",a),r.setAttribute("role","region"),this.#s.add(r)):this.#s.has(r)&&(r.removeAttribute("role"),r.removeAttribute("aria-labelledby"),this.#s.delete(r))}else n.setAttribute("aria-expanded",i.open?"true":"false");this.listen(n,"click",a=>{this.#n&&(a.preventDefault(),this.#a(i))}),this.listen(n,"keydown",a=>this.#g(a,s)),this.listen(i,"toggle",()=>this.#c(i,s))}})}#c(t,i){this.#e[i].setAttribute("aria-expanded",t.open?"true":"false"),this.hasAttribute("single")&&t.open&&this.#t.forEach((n,r)=>{r!==i&&n.open&&(n.open=!1,this.#e[r].setAttribute("aria-expanded","false"))}),this.dispatchEvent(new CustomEvent("accordion-wc:toggle",{detail:{index:i,open:t.open},bubbles:!0}))}#g(t,i){let{key:s}=t,n;switch(s){case"ArrowDown":n=(i+1)%this.#t.length;break;case"ArrowUp":n=(i-1+this.#t.length)%this.#t.length;break;case"Home":n=0;break;case"End":n=this.#t.length-1;break;default:return}t.preventDefault(),this.#e[n].focus()}open(t){t<0||t>=this.#t.length||(this.#n&&!this.#t[t].open?lt(()=>{this.#t[t].open=!0}):this.#t[t].open=!0)}close(t){t<0||t>=this.#t.length||(this.#n&&this.#t[t].open?lt(()=>{this.#t[t].open=!1}):this.#t[t].open=!1)}toggle(t){t<0||t>=this.#t.length||(this.#n?this.#a(this.#t[t]):this.#t[t].open=!this.#t[t].open)}openAll(){this.hasAttribute("single")||this.#t.forEach(t=>{t.open=!0})}closeAll(){this.#t.forEach(t=>{t.open=!1})}};A("accordion-wc",_n);var Ob={region:"Notifications",dismiss:"Dismiss",info:"Info",success:"Success",warning:"Warning",error:"Error"},qb=["info","success","warning","error"],jb={info:"&#9432;",success:"&#10003;",warning:"&#9888;",error:"&#10007;"},Hb=300,$n=class extends E{#t=[];#e=[];#i=new WeakMap;#n=!1;#s=!1;#o=new Set;setup(){this.#r("role","log"),this.#r("aria-live","polite"),this.#r("aria-relevant","additions"),this.#r("aria-label",this.#a("region")),this.listen(this,"pointerover",()=>{this.#n||(this.#n=!0,this.#u())}),this.listen(this,"pointerout",t=>{t.relatedTarget instanceof Node&&this.contains(t.relatedTarget)||(this.#n=!1,this.#u())}),this.listen(this,"focusin",()=>{this.#s=!0,this.#u()}),this.listen(this,"focusout",t=>{t.relatedTarget instanceof Node&&this.contains(t.relatedTarget)||(this.#s=!1,this.#u())}),this.listen(this,"keydown",t=>{if(t.key!=="Escape")return;let i=t.target.closest?.(".toast");i&&this.#e.includes(i)&&(t.preventDefault(),this.dismiss(i))}),this.listen(document,"visibilitychange",()=>this.#u()),this.#e=this.#e.filter(t=>t.parentNode===this),this.#n=!!this.querySelector(".toast:hover"),this.#s=this.contains(document.activeElement),this.#g(),this.#u()}teardown(){for(let t of[...this.#e]){let i=this.#i.get(t);i&&(i.hiding?this.#m(t):this.#y(i))}for(let t of this.#o)this.removeAttribute(t);this.#o.clear()}show(t){let{message:i,variant:s="info",duration:n=this.#E(),dismissible:r=!0,action:a,onAction:o,source:c="api"}=t,l=qb.includes(s)?s:"info",u=this.#l({message:i,variant:l,dismissible:r,action:a,onAction:o}),d=document.activeElement;this.#i.set(u,{message:String(i??""),duration:Math.max(0,Number(n)||0),remaining:Math.max(0,Number(n)||0),startedAt:0,timer:void 0,returnFocus:d&&!this.contains(d)?d:null,hiding:!1});let h=!this.isConnected||this.#e.length>=this.#v();return h?this.#t.push({toast:u,duration:n}):this.#c(u),this.dispatchEvent(new CustomEvent("toast-msg:enqueued",{detail:{message:i,variant:l,duration:n,source:c,toast:u,queued:h},bubbles:!0})),u}dismiss(t){let i=this.#t.findIndex(s=>s.toast===t);if(i>-1){this.#t.splice(i,1);return}this.#d(t)}dismissAll(){this.#t=[],[...this.#e].forEach(t=>this.#d(t))}get queue(){let t=(i,s)=>({message:this.#i.get(i)?.message??"",variant:i.getAttribute("data-variant")||"info",state:s});return[...this.#e.map(i=>t(i,"visible")),...this.#t.map(({toast:i})=>t(i,"queued"))]}#r(t,i){this.hasAttribute(t)&&!this.#o.has(t)||(this.setAttribute(t,i),this.#o.add(t))}#a(t){return this.getAttribute(`data-label-${t}`)??Ob[t]??t}#l({message:t,variant:i,dismissible:s,action:n,onAction:r}){let a=document.createElement("div");a.className="toast",a.setAttribute("data-variant",i);let o=c=>this.#S(c);return a.innerHTML=`
65
+ <span class="icon" aria-hidden="true">${jb[i]}</span>
66
66
  <span class="message"><span class="variant-label">${o(this.#a(i))}: </span>${o(t)}</span>
67
67
  ${n?`<button type="button" class="action">${o(n)}</button>`:""}
68
68
  ${s?`<button type="button" class="close" aria-label="${o(this.#a("dismiss"))}">&#x2715;</button>`:""}
69
- `,a.querySelector(".close")?.addEventListener("click",()=>this.#d(a)),n&&a.querySelector(".action")?.addEventListener("click",()=>{r?.(),this.#d(a)}),a}#c(t){this.appendChild(t),this.#e.push(t),requestAnimationFrame(()=>{t.getAttribute("data-state")!=="hiding"&&t.setAttribute("data-state","visible")}),this.#u(),this.dispatchEvent(new CustomEvent("toast-msg:show",{bubbles:!0,detail:{toast:t}}))}#g(){for(;this.isConnected&&this.#t.length&&this.#e.length<this.#v();){let{toast:t}=this.#t.shift();this.#c(t)}}get#f(){return this.#n||this.#s||document.visibilityState==="hidden"}#u(){let t=this.#f||!this.isConnected;for(let i of this.#e){let s=this.#i.get(i);!s||s.hiding||s.duration<=0||(t?this.#y(s):s.timer===void 0&&this.#p(i,s))}}#p(t,i){i.startedAt=performance.now(),i.timer=setTimeout(()=>{i.timer=void 0,this.#d(t)},i.remaining)}#y(t){t.timer!==void 0&&(clearTimeout(t.timer),t.timer=void 0,t.remaining=Math.max(0,t.remaining-(performance.now()-t.startedAt)))}#d(t){let i=this.#i.get(t);if(!i||i.hiding||t.parentNode!==this)return;i.hiding=!0,i.timer!==void 0&&clearTimeout(i.timer),i.timer=void 0,this.#h(t,i),t.setAttribute("data-state","hiding");let s=()=>this.#m(t);t.addEventListener("animationend",s,{once:!0}),setTimeout(s,Ub)}#m(t){if(t.parentNode!==this&&!this.#e.includes(t))return;t.remove();let i=this.#e.indexOf(t);i>-1&&this.#e.splice(i,1),this.#s=this.contains(document.activeElement),this.#e.length||(this.#n=!1),this.#g(),this.#u(),this.dispatchEvent(new CustomEvent("toast-msg:hide",{bubbles:!0,detail:{toast:t}}))}#h(t,i){if(!t.contains(document.activeElement))return;let s=this.#e.filter(c=>c!==t&&!this.#i.get(c)?.hiding),n=this.#e.indexOf(t),a=(s.find(c=>this.#e.indexOf(c)>n)??s[s.length-1])?.querySelector("button");if(a){a.focus();return}let o=i.returnFocus;o instanceof HTMLElement&&o.isConnected&&o.focus()}#E(){let t=this.getAttribute("duration"),i=t!==null?parseInt(t,10):NaN;return Number.isFinite(i)?i:5e3}#v(){let t=this.getAttribute("max"),i=t!==null?parseInt(t,10):NaN;return Number.isFinite(i)&&i>0?i:5}#S(t){let i=document.createElement("div");return i.textContent=t??"",i.innerHTML}};E("toast-msg",In);var Pi=CSS.supports("anchor-name","--x"),Wb=CSS.supports("position-area","bottom"),Gb=(()=>{let e=document.createElement("span");return e.setAttribute("popover","hint"),e.popover==="hint"})(),Kb=["auto","manual","hint"];function Yb(e){let t=Kb.includes(e||"")?e:"auto";return t==="hint"&&!Gb?"auto":t}var Xb=["top","bottom","left","right","inset-inline-start","inset-inline-end"],Zb=["position","top","left","right","bottom","margin"],Sl=8,Jb=0,Qb=0;function xl(e){return!e||e==="none"?[]:e.split(",").map(t=>t.trim()).filter(Boolean)}var Bn=class extends k{static get observedAttributes(){return["data-mode","data-anchor","data-position"]}#t=null;#e=null;#i=`--pop-over-anchor-${++Qb}`;#n=!1;#s=!1;#o=!1;setup(){if(this.id||(this.id=`pop-over-${++Jb}`),(!this.hasAttribute("popover")||this.#n)&&this.#r(),this.#a(),this.#l(),this.listen(this,"beforetoggle",t=>{let i=t.newState==="open"?"show":"hide";this.dispatchEvent(new CustomEvent(`pop-over:${i}`,{detail:{state:t.newState},bubbles:!0,composed:!0})),!Pi&&t.newState==="open"&&this.#t&&queueMicrotask(()=>{this.matches(":popover-open")&&this.#f()})}),!Pi){let t=()=>{this.matches(":popover-open")&&this.#t&&this.#f()};this.listen(window,"resize",t),this.listen(window,"scroll",t,{capture:!0,passive:!0})}}teardown(){this.#c(),this.#s&&(Xb.forEach(t=>this.style.removeProperty(t)),this.#s=!1),this.#o&&(Zb.forEach(t=>this.style.removeProperty(t)),this.#o=!1),this.#t=null}attributeChangedCallback(t,i,s){if(i!==s){if(!this.hasAttribute("data-upgraded")){t==="data-mode"&&this.hasAttribute("popover")&&!this.isConnected&&(this.#n=!0);return}if(t==="data-mode"){this.#r();return}this._reinit()}}#r(){let t=Yb(this.dataset.mode);this.getAttribute("popover")!==t&&this.setAttribute("popover",t),this.#n=!0}show(){this.matches(":popover-open")||(this.showPopover(),!Pi&&this.#t&&this.matches(":popover-open")&&this.#f())}hide(){this.matches(":popover-open")&&this.hidePopover()}toggle(){this.matches(":popover-open")?this.hide():this.show()}get open(){return this.matches(":popover-open")}#a(){let t=this.dataset.anchor;if(t){let i=document.getElementById(t);if(!i)try{i=document.querySelector(t)}catch{i=null}this.#t=i}else this.#t=document.querySelector(`[popovertarget="${CSS.escape(this.id)}"]`)}#l(){if(!this.#t||!Pi)return;let t=this.#t,i=t.style.getPropertyValue("anchor-name"),s=xl(i||getComputedStyle(t).getPropertyValue("anchor-name"));s.includes(this.#i)||s.push(this.#i),t.style.setProperty("anchor-name",s.join(", ")),this.#e=this.#i,this.style.setProperty("position-anchor",this.#i),this.setAttribute("data-anchor-name",this.#i),Wb||this.#g(this.dataset.position||"bottom")}#c(){if(this.#t&&this.#e){let t=xl(this.#t.style.getPropertyValue("anchor-name")).filter(i=>i!==this.#e);t.length?this.#t.style.setProperty("anchor-name",t.join(", ")):this.#t.style.removeProperty("anchor-name")}this.#e=null,this.style.getPropertyValue("position-anchor")&&this.style.removeProperty("position-anchor"),this.hasAttribute("data-anchor-name")&&this.removeAttribute("data-anchor-name")}#g(t){let i="var(--_pop-over-offset, var(--size-xs))",s=t.endsWith("-end")?{"inset-inline-end":"anchor(end)"}:{"inset-inline-start":"anchor(start)"},n={top:{bottom:`calc(anchor(top) + ${i})`,...s},bottom:{top:`calc(anchor(bottom) + ${i})`,...s},left:{right:`calc(anchor(left) + ${i})`,top:"anchor(top)"},right:{left:`calc(anchor(right) + ${i})`,top:"anchor(top)"}},r=t.split("-")[0],a=n[r]||n.bottom;Object.entries(a).forEach(([o,c])=>this.style.setProperty(o,c)),this.#s=!0}#f(){if(!this.#t)return;let t=this.#t.getBoundingClientRect(),i=this.dataset.position||"bottom",s=this.#u(),n=document.documentElement.clientWidth,r=document.documentElement.clientHeight;this.style.position="fixed",this.style.margin="0",this.style.right="auto",this.style.bottom="auto",this.#o=!0;let a=this.offsetWidth,o=this.offsetHeight,c=i.split("-")[0];["top","bottom","left","right"].includes(c)||(c="bottom");let l={top:t.top-s,bottom:r-t.bottom-s,left:t.left-s,right:n-t.right-s},u={top:"bottom",bottom:"top",left:"right",right:"left"},d=c==="top"||c==="bottom"?o:a;l[c]<d&&l[u[c]]>l[c]&&(c=u[c]);let h,f;switch(c){case"top":h=t.top-o-s,f=t.left;break;case"left":h=t.top,f=t.left-a-s;break;case"right":h=t.top,f=t.right+s;break;default:h=t.bottom+s,f=t.left;break}if(c==="top"||c==="bottom"){let m=getComputedStyle(this).direction==="rtl";f=i.endsWith("-end")!==m?t.right-a:t.left}else i.endsWith("-end")&&(h=t.bottom-o);let p=(m,g,b)=>Math.max(Sl,Math.min(m,b-g-Sl));f=p(f,a,n),h=p(h,o,r),this.style.top=`${Math.round(h)}px`,this.style.left=`${Math.round(f)}px`}#u(){let t={none:0,xs:4,s:8,m:16,l:24};return t[this.dataset.offset||""]??t.xs}};E("pop-over",Bn);var ty=new Set(["BUTTON","A","AREA"]),Rn=CSS.supports("anchor-name","--x"),Cl=(()=>{let e=document.createElement("span");return e.setAttribute("popover","hint"),e.popover==="hint"})(),Tl=8;function Ll(e){return document.documentElement.hasAttribute("data-interest-polyfill")?!0:"interestForElement"in HTMLButtonElement.prototype?ty.has(e.tagName):!1}function ey(e){return e.getAttribute("aria-label")?.trim()||e.hasAttribute("aria-labelledby")||e.labels?.length||e.textContent?.trim()||e instanceof HTMLInputElement&&["button","submit","reset"].includes(e.type)&&e.value?!0:!!e.querySelector('img[alt]:not([alt=""]), [aria-label]:not([aria-hidden="true"])')}function iy(e,t,i){let s=(e.getAttribute(t)||"").split(/\s+/).filter(Boolean);return s.includes(i)?!1:(e.setAttribute(t,[...s,i].join(" ")),!0)}function sy(e,t,i){let s=(e.getAttribute(t)||"").split(/\s+/).filter(n=>n&&n!==i);s.length?e.setAttribute(t,s.join(" ")):e.removeAttribute(t)}var Oi=0,Fn=class extends k{#t=null;#e=null;#i;#n;#s=!1;#o=!1;#r;#a;#l=[];#c=null;#g=!1;#f=!1;setup(){return this.#s=this.getAttribute("variant")==="card",this.#s?this.#p():this.#u()}#u(){if(this.#t=this.querySelector(":scope > :not(template):not(pop-over.tooltip)"),!this.#t)return!1;this.#o=Ll(this.#t);let t=this.querySelector(":scope > template[data-tooltip]"),i=this.getAttribute("content"),s=this.#t.getAttribute("title");if(!t&&!i&&!s)return!1;let n=!1;s&&(ey(this.#t)||(this.#t.setAttribute("aria-label",s),this.#a=s,n=!t&&!i),this.#r=s,this.#t.removeAttribute("title"));let r=this.getAttribute("position")||"top";this.#t.id||(this.#t.id=`tooltip-trigger-${++Oi}`);let a=document.createElement("pop-over");a.className="tooltip",a.setAttribute("role","tooltip"),a.dataset.mode=Cl?"hint":"manual",a.dataset.anchor=this.#t.id,a.dataset.tooltipPosition=r,Rn||(a.dataset.position=r),a.id=`tooltip-${++Oi}`,t?a.innerHTML=t.innerHTML:a.textContent=i||s;let o=document.createElement("span");if(o.className="tooltip-arrow",o.setAttribute("aria-hidden","true"),a.appendChild(o),this.appendChild(a),this.#e=a,n||this.#y("aria-describedby",a.id),this.#o?(this.#t.setAttribute("interestfor",a.id),this.#v()):(this.listen(this.#t,"mouseenter",this.#S),this.listen(this.#t,"mouseleave",this.#b),this.listen(this.#t,"focus",this.#k),this.listen(this.#t,"blur",this.#w),this.listen(a,"mouseenter",this.#A),this.listen(a,"mouseleave",this.#b)),Cl||this.#m(),!Rn){this.listen(a,"toggle",l=>{l.newState==="open"&&this.#h()});let c=()=>{this.isVisible&&this.#h()};this.listen(window,"resize",c),this.listen(window,"scroll",c,{capture:!0,passive:!0})}return this.#d(a),!0}#p(){this.#t=this.querySelector(":scope > [data-trigger]");let t=this.querySelector(":scope > [data-content]");if(!this.#t||!t)return!1;this.#o=Ll(this.#t),this.#t.id||(this.#t.id=`tooltip-trigger-${++Oi}`);let i=document.createElement("pop-over");return i.className="hover-card",i.dataset.mode="manual",i.dataset.anchor=this.#t.id,i.dataset.position=this.getAttribute("position")||"bottom",i.id=`hc-${++Oi}`,this.#c={node:t,next:t.nextSibling,hidden:t.hidden},i.appendChild(t),t.removeAttribute("data-content"),t.hidden=!1,this.appendChild(i),this.#e=i,this.#y("aria-controls",i.id),this.#t.hasAttribute("aria-expanded")||(this.#t.setAttribute("aria-expanded","false"),this.#g=!0),this.#o?(this.#t.setAttribute("interestfor",i.id),this.#v()):(this.listen(this.#t,"mouseenter",this.#S),this.listen(this.#t,"mouseleave",this.#b),this.listen(this.#t,"focus",this.#k),this.listen(this.#t,"blur",this.#b),this.listen(i,"mouseenter",this.#A),this.listen(i,"mouseleave",this.#b),this.listen(i,"focusin",this.#A),this.listen(i,"focusout",s=>{s.relatedTarget instanceof Node&&this.contains(s.relatedTarget)||this.#b()})),this.#m(),this.listen(i,"pop-over:show",()=>{this.#g&&this.#t?.setAttribute("aria-expanded","true")}),this.listen(i,"pop-over:hide",()=>{this.#g&&this.#t?.setAttribute("aria-expanded","false")}),this.#d(i),!0}teardown(){clearTimeout(this.#i),clearTimeout(this.#n);let t=this.#t;if(t){this.#o&&(t.removeAttribute("interestfor"),this.#E&&(t.style.removeProperty("interest-delay-start"),t.style.removeProperty("--interest-delay-start"),this.#E=!1));for(let[i,s]of this.#l)sy(t,i,s);this.#a!==void 0&&t.getAttribute("aria-label")===this.#a&&t.removeAttribute("aria-label"),this.#g&&t.removeAttribute("aria-expanded"),this.#r&&t.setAttribute("title",this.#r)}if(this.#l=[],this.#a=void 0,this.#r=void 0,this.#g=!1,this.#c){let{node:i,next:s,hidden:n}=this.#c;i.setAttribute("data-content",""),i.hidden=n,s&&s.parentNode===this?this.insertBefore(i,s):this.insertBefore(i,this.#e?.parentNode===this?this.#e:null),this.#c=null}this.#e&&(this.#e.remove(),this.#e=null),this.#t=null,this.setState("show-pending",!1)}#y(t,i){this.#t&&iy(this.#t,t,i)&&this.#l.push([t,i])}#d(t){this.listen(t,"pop-over:show",()=>{this.dispatchEvent(new CustomEvent("tool-tip:show",{bubbles:!0}))}),this.listen(t,"pop-over:hide",()=>{this.dispatchEvent(new CustomEvent("tool-tip:hide",{bubbles:!0}))})}#m(){this.listen(document,"keydown",this.#N),this.listen(document,"pointerdown",t=>{this.isVisible&&!(t.target instanceof Node&&this.contains(t.target))&&this.hide()})}#h(){let t=this.#e,i=this.#t;if(!t||!i||this.#s)return;let s=t.dataset.position||"top",n=i.getBoundingClientRect(),r=document.documentElement.clientWidth,a=document.documentElement.clientHeight,o=(c,l,u)=>Math.max(Tl,Math.min(c,u-l-Tl));t.style.translate="none",s==="left"||s==="right"?t.style.top=`${Math.round(o(n.top+(n.height-t.offsetHeight)/2,t.offsetHeight,a))}px`:t.style.left=`${Math.round(o(n.left+(n.width-t.offsetWidth)/2,t.offsetWidth,r))}px`}#E=!1;#v(){let t=this.getAttribute("delay"),i=this.#t;if(t===null||!i)return;let s=parseInt(t,10);!Number.isFinite(s)||s<0||(i.style.setProperty("interest-delay-start",`${s}ms`),i.style.setProperty("--interest-delay-start",`${s}ms`),this.#E=!0)}#S=()=>{clearTimeout(this.#n);let t=this.#s?300:200,i=parseInt(this.getAttribute("delay")||String(t),10);this.setState("show-pending",!0),this.#i=setTimeout(()=>{this.setState("show-pending",!1),this.show()},i)};#b=()=>{clearTimeout(this.#i),this.setState("show-pending",!1);let t=this.#s?200:100;this.#n=setTimeout(()=>this.hide(),t)};#k=()=>{this.#f||(clearTimeout(this.#n),this.show())};#w=()=>{clearTimeout(this.#i),this.setState("show-pending",!1),this.hide()};#A=()=>{clearTimeout(this.#n)};#N=t=>{if(t.key!=="Escape"||!this.isVisible)return;clearTimeout(this.#i);let i=this.#s&&this.#e?.contains(document.activeElement);this.hide(),i&&(this.#f=!0,this.#t?.focus({preventScroll:!0}),this.#f=!1)};show(){!this.#e||this.isVisible||(typeof this.#e.show=="function"?this.#e.show():this.#e.showPopover(),Rn||this.#h())}hide(){!this.#e||!this.isVisible||(typeof this.#e.hide=="function"?this.#e.hide():this.#e.hidePopover())}get isVisible(){return this.#e?.matches(":popover-open")??!1}};E("tool-tip",Fn);var Pn=0,He='button, a, [role="menuitem"]',qi='menu, ul[role="menu"]',ny=500;function On(e){return e.hasAttribute("data-disabled")||e.getAttribute("aria-disabled")==="true"||!!e.disabled}var qn=class extends k{#t;#e;#i;#n;#s=[];#o=-1;#r=!1;#a=!1;#l=null;#c="";#g=!1;#f=!1;#u=null;#p(){return this.querySelector(`:scope > :is(${qi}), :scope > pop-over[data-dropdown-host] > :is(${qi})`)}setup(){let t=this.querySelector(":scope > [data-trigger]")||this.querySelector(":scope > button:not([data-dropdown-toggle])");if(!t)return!1;this.#t=t;let i=this.#p();if(!i)return!1;this.#i=i,this.#a=this.hasAttribute("hover"),this.#t.id||(this.#t.id=`dropdown-trigger-${++Pn}`);let s=this.querySelector(":scope > pop-over[data-dropdown-host]");return s?this.#n=s:(this.#n=document.createElement("pop-over"),this.#n.setAttribute("data-dropdown-host",""),this.#n.id=`dropdown-${++Pn}`,this.#n.dataset.mode=this.#a?"manual":"auto",this.#n.dataset.position=this.getAttribute("position")||"bottom-start",this.#n.dataset.anchor=this.#t.id,this.#n.appendChild(this.#i),this.appendChild(this.#n)),this.#n.dataset.mode=this.#a?"manual":"auto",this.#n.dataset.position=this.getAttribute("position")||"bottom-start",this.#n.dataset.anchor=this.#t.id,this.#i.parentElement!==this.#n&&this.#n.appendChild(this.#i),this.#i.id||(this.#i.id=`dropdown-menu-${++Pn}`),this.#a?this.#d():this.#y(),this.listen(this.#i,"click",this.#A,{capture:!0}),this.listen(this.#i,"click",this.#N),this.listen(this.#n,"pop-over:hide",this.#C),this.listen(this.#n,"pop-over:show",this.#W),!0}#y(){this.#e=this.#t,this.querySelector(":scope > button[data-dropdown-toggle]")?.remove(),this.#t.setAttribute("aria-haspopup","menu"),this.#t.setAttribute("aria-expanded","false"),this.#t.setAttribute("aria-controls",this.#i.id),this.#i.setAttribute("role","menu"),this.#E(),this.listen(this.#t,"pointerdown",this.#v),this.listen(this.#t,"click",this.#S),this.listen(this.#t,"keydown",this.#b),this.listen(this.#i,"keydown",this.#k)}#d(){let t=this.#t;if(this.#t.localName==="a"){if(t=this.querySelector(":scope > button[data-dropdown-toggle]"),t||(t=document.createElement("button"),t.setAttribute("type","button"),t.setAttribute("data-dropdown-toggle",""),this.#t.after(t)),!t.hasAttribute("aria-label")&&!t.textContent.trim()){let i=this.#t.textContent.trim().replace(/\s+/g," ");t.setAttribute("aria-label",`${i} submenu`)}this.#t.removeAttribute("aria-haspopup"),this.#t.removeAttribute("aria-expanded"),this.#t.removeAttribute("aria-controls")}t&&(this.#e=t,t.removeAttribute("aria-haspopup"),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls",this.#i.id),this.#i.removeAttribute("role"),this.#i.querySelectorAll(':scope > li[role="none"]').forEach(i=>i.removeAttribute("role")),this.#s=this.#m(),this.#s.forEach(i=>{i.getAttribute("role")==="menuitem"&&i.removeAttribute("role"),i.getAttribute("tabindex")==="-1"&&i.removeAttribute("tabindex"),i.hasAttribute("data-disabled")&&i.setAttribute("aria-disabled","true")}),this.#h(),this.listen(t,"click",this.#x),this.listen(this,"pointerenter",this.#_),this.listen(this,"pointerleave",this.#F),this.listen(this,"focusout",this.#D),this.listen(document,"keydown",this.#O),this.listen(document,"pointerdown",this.#$))}teardown(){this.#l&&clearTimeout(this.#l),this.#l=null,this.#u&&clearTimeout(this.#u),this.#u=null,this.#c="",this.#r&&this.#n?.hide?.(),this.#r=!1,this.#f=!1,this.#o=-1,this.removeAttribute("open"),this.#e?.setAttribute("aria-expanded","false")}get items(){let t=this.#i||this.#p();if(!t)return[];let i=[];for(let s of t.querySelectorAll(":scope > li")){if(s.matches('[role="separator"]')||s.querySelector(":scope > hr")){i.push({separator:!0});continue}let n=s.querySelector(He);n&&i.push({label:n.textContent.trim().replace(/\s+/g," "),value:n.getAttribute("data-value")||void 0,href:n.tagName==="A"?n.getAttribute("href"):void 0,disabled:On(n)||void 0})}return i}set items(t){let i=Array.isArray(t)?t:[],s=this.#i||this.#p();for(s||(s=document.createElement("menu"),this.appendChild(s));s.firstChild;)s.firstChild.remove();for(let n of i){let r=document.createElement("li");if(n.separator)r.setAttribute("role","separator");else{let a=n.href?document.createElement("a"):document.createElement("button");n.href?a.setAttribute("href",n.href):a.setAttribute("type","button"),n.value&&a.setAttribute("data-value",n.value),n.disabled&&(a.setAttribute("data-disabled",""),a.setAttribute("aria-disabled","true")),a.textContent=n.label||"",r.appendChild(a)}s.appendChild(r)}this._reinit(),this.dispatchEvent(new CustomEvent("drop-down:items-changed",{detail:{items:i,source:"property"},bubbles:!0}))}#m(){return Array.from(this.#i.querySelectorAll(He)).filter(t=>t.closest(qi)===this.#i&&!t.closest('[role="separator"]'))}#h(){this.#i.querySelectorAll(':scope > li:empty, :scope > [role="separator"], :scope > hr').forEach(t=>{t.setAttribute("role","separator")})}#E(){let t=this.#m();t.forEach(i=>{i.setAttribute("role","menuitem"),i.setAttribute("tabindex","-1"),i.hasAttribute("data-disabled")&&i.setAttribute("aria-disabled","true")}),this.#s=t.filter(i=>!i.disabled),this.#i.querySelectorAll(":scope > li").forEach(i=>{i.querySelector(`:scope > :is(${He})`)&&i.setAttribute("role","none")}),this.#h()}#v=()=>{this.#g=this.#r};#S=t=>{let i=this.#g;if(this.#g=!1,!(t.detail!==0&&i&&!this.#r)){if(t.detail===0&&!this.#r){this.open(),this.#T(0);return}this.toggle()}};#b=t=>{switch(t.key){case"ArrowDown":case"Down":t.preventDefault(),this.open(),this.#T(0);break;case"ArrowUp":case"Up":t.preventDefault(),this.open(),this.#T(this.#s.length-1);break}};#k=t=>{if(!(t.defaultPrevented||t.target.closest?.(qi)!==this.#i))switch(t.key){case"ArrowDown":case"Down":t.preventDefault(),this.#T(this.#o+1);break;case"ArrowUp":case"Up":t.preventDefault(),this.#T(this.#o-1);break;case"Home":t.preventDefault(),this.#T(0);break;case"End":t.preventDefault(),this.#T(this.#s.length-1);break;case"Escape":t.preventDefault(),this.close(),this.#e?.focus();break;case"Tab":this.close();break;case"Enter":case" ":{t.preventDefault();let s=this.#s[this.#o];s&&!On(s)&&s.click();break}default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.#w(t.key)}};#w(t){this.#u&&clearTimeout(this.#u),this.#u=setTimeout(()=>{this.#c=""},ny),this.#c+=t.toLowerCase();let i=this.#c,s=[...i].every(a=>a===i[0])?i[0]:i,n=this.#s.length,r=s.length>1?0:1;for(let a=0;a<n;a++){let o=(this.#o+r+a+n)%n;if(this.#s[o].textContent.trim().toLowerCase().startsWith(s)){this.#T(o);return}}}#A=t=>{let i=t.target.closest?.(He);i&&this.#s.includes(i)&&On(i)&&(t.preventDefault(),t.stopPropagation())};#N=t=>{let i=t.target.closest?.(He);!i||!this.#s.includes(i)||i.closest("drop-down")===this&&(t.defaultPrevented||(this.dispatchEvent(new CustomEvent("drop-down:select",{bubbles:!0,detail:{item:i,value:i.getAttribute("data-value")||void 0}})),this.close(),this.#e?.focus()))};#x=t=>{if(this.#M(),t.detail!==0&&this.#f&&this.#r){this.#f=!1;return}this.toggle()};#M(){this.#l&&(clearTimeout(this.#l),this.#l=null,this.setState("hover-grace-pending",!1))}#_=t=>{t.pointerType==="mouse"&&(this.#M(),this.#r||(this.open(),this.#f=!0))};#F=t=>{t.pointerType!=="mouse"||!this.#r||this.contains(document.activeElement)&&document.activeElement!==this.#e&&document.activeElement!==this.#t||(this.setState("hover-grace-pending",!0),this.#l=setTimeout(()=>{this.#l=null,this.setState("hover-grace-pending",!1),this.close()},100))};#D=t=>{let i=t.relatedTarget;i&&this.contains(i)||!i&&this.matches(":hover")||this.close()};#O=t=>{if(t.key!=="Escape"||!this.#r)return;let i=this.contains(document.activeElement);t.preventDefault(),this.close(),i&&this.#e?.focus()};#$=t=>{if(!this.#r)return;t.composedPath().includes(this)||this.close()};#W=t=>{t.target!==this.#n||this.#r||(this.#r=!0,this.setAttribute("open",""),this.#e?.setAttribute("aria-expanded","true"),this.#o=-1,this.dispatchEvent(new CustomEvent("drop-down:open",{bubbles:!0})))};#C=t=>{t.target!==this.#n||!this.#r||(this.#r=!1,this.#f=!1,this.removeAttribute("open"),this.#e?.setAttribute("aria-expanded","false"),this.#o=-1,this.#i?.contains(document.activeElement)&&this.#e?.focus(),this.dispatchEvent(new CustomEvent("drop-down:close",{bubbles:!0})))};#T(t){this.#s.length!==0&&(t<0&&(t=this.#s.length-1),t>=this.#s.length&&(t=0),this.#o=t,this.#s[t].focus())}open(){this.#r||!this.#n||this.#n.show()}close(){!this.#r||!this.#n||this.#n.hide()}toggle(){this.#r?this.close():this.open()}get isOpen(){return this.#r}};E("drop-down",qn);Oe();function se({basePath:e,set:t,name:i}){return`${e}/${t}/${i}.svg`}function ji(e,t=document){let i=e.getAttribute("data-icon-set");if(i)return i;let s=e.closest("[data-icon-set]")?.getAttribute("data-icon-set");return s||t.documentElement.dataset.iconSet||"lucide"}function Hi(e=document){let t=e.documentElement.dataset.iconPath;if(t)return t;let i=`${Fe()}/icons`;try{return new URL(i,e.baseURI).href}catch{return i}}function Hn(e){let t=e.getAttribute("data-icon");if(!t){e.style.removeProperty("--vb-icon");return}let i=se({basePath:Hi(document),set:ji(e,document),name:t});e.style.setProperty("--vb-icon",`url("${i}")`)}function jn(e=document){for(let t of e.querySelectorAll("[data-icon]"))Hn(t)}var Dl=!1;function ry(){if(Dl)return;Dl=!0,jn(),new MutationObserver(t=>{for(let i of t)if(i.type==="attributes"){let s=i.target;s.hasAttribute&&s.hasAttribute("data-icon")&&Hn(s),i.attributeName==="data-icon-set"&&jn(s)}else for(let s of i.addedNodes){if(s.nodeType!==1)continue;let n=s;n.hasAttribute("data-icon")&&Hn(n),jn(n)}}).observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-icon","data-icon-set"]})}typeof document<"u"&&ry();var Nl=`
69
+ `,a.querySelector(".close")?.addEventListener("click",()=>this.#d(a)),n&&a.querySelector(".action")?.addEventListener("click",()=>{r?.(),this.#d(a)}),a}#c(t){this.appendChild(t),this.#e.push(t),requestAnimationFrame(()=>{t.getAttribute("data-state")!=="hiding"&&t.setAttribute("data-state","visible")}),this.#u(),this.dispatchEvent(new CustomEvent("toast-msg:show",{bubbles:!0,detail:{toast:t}}))}#g(){for(;this.isConnected&&this.#t.length&&this.#e.length<this.#v();){let{toast:t}=this.#t.shift();this.#c(t)}}get#f(){return this.#n||this.#s||document.visibilityState==="hidden"}#u(){let t=this.#f||!this.isConnected;for(let i of this.#e){let s=this.#i.get(i);!s||s.hiding||s.duration<=0||(t?this.#y(s):s.timer===void 0&&this.#p(i,s))}}#p(t,i){i.startedAt=performance.now(),i.timer=setTimeout(()=>{i.timer=void 0,this.#d(t)},i.remaining)}#y(t){t.timer!==void 0&&(clearTimeout(t.timer),t.timer=void 0,t.remaining=Math.max(0,t.remaining-(performance.now()-t.startedAt)))}#d(t){let i=this.#i.get(t);if(!i||i.hiding||t.parentNode!==this)return;i.hiding=!0,i.timer!==void 0&&clearTimeout(i.timer),i.timer=void 0,this.#h(t,i),t.setAttribute("data-state","hiding");let s=()=>this.#m(t);t.addEventListener("animationend",s,{once:!0}),setTimeout(s,Hb)}#m(t){if(t.parentNode!==this&&!this.#e.includes(t))return;t.remove();let i=this.#e.indexOf(t);i>-1&&this.#e.splice(i,1),this.#s=this.contains(document.activeElement),this.#e.length||(this.#n=!1),this.#g(),this.#u(),this.dispatchEvent(new CustomEvent("toast-msg:hide",{bubbles:!0,detail:{toast:t}}))}#h(t,i){if(!t.contains(document.activeElement))return;let s=this.#e.filter(c=>c!==t&&!this.#i.get(c)?.hiding),n=this.#e.indexOf(t),a=(s.find(c=>this.#e.indexOf(c)>n)??s[s.length-1])?.querySelector("button");if(a){a.focus();return}let o=i.returnFocus;o instanceof HTMLElement&&o.isConnected&&o.focus()}#E(){let t=this.getAttribute("duration"),i=t!==null?parseInt(t,10):NaN;return Number.isFinite(i)?i:5e3}#v(){let t=this.getAttribute("max"),i=t!==null?parseInt(t,10):NaN;return Number.isFinite(i)&&i>0?i:5}#S(t){let i=document.createElement("div");return i.textContent=t??"",i.innerHTML}};A("toast-msg",$n);var Ri=CSS.supports("anchor-name","--x"),zb=CSS.supports("position-area","bottom"),Vb=(()=>{let e=document.createElement("span");return e.setAttribute("popover","hint"),e.popover==="hint"})(),Ub=["auto","manual","hint"];function Wb(e){let t=Ub.includes(e||"")?e:"auto";return t==="hint"&&!Vb?"auto":t}var Gb=["top","bottom","left","right","inset-inline-start","inset-inline-end"],Kb=["position","top","left","right","bottom","margin"],Sl=8,Yb=0,Xb=0;function xl(e){return!e||e==="none"?[]:e.split(",").map(t=>t.trim()).filter(Boolean)}var In=class extends E{static get observedAttributes(){return["data-mode","data-anchor","data-position"]}#t=null;#e=null;#i=`--pop-over-anchor-${++Xb}`;#n=!1;#s=!1;#o=!1;setup(){if(this.id||(this.id=`pop-over-${++Yb}`),(!this.hasAttribute("popover")||this.#n)&&this.#r(),this.#a(),this.#l(),this.listen(this,"beforetoggle",t=>{let i=t.newState==="open"?"show":"hide";this.dispatchEvent(new CustomEvent(`pop-over:${i}`,{detail:{state:t.newState},bubbles:!0,composed:!0})),!Ri&&t.newState==="open"&&this.#t&&queueMicrotask(()=>{this.matches(":popover-open")&&this.#f()})}),!Ri){let t=()=>{this.matches(":popover-open")&&this.#t&&this.#f()};this.listen(window,"resize",t),this.listen(window,"scroll",t,{capture:!0,passive:!0})}}teardown(){this.#c(),this.#s&&(Gb.forEach(t=>this.style.removeProperty(t)),this.#s=!1),this.#o&&(Kb.forEach(t=>this.style.removeProperty(t)),this.#o=!1),this.#t=null}attributeChangedCallback(t,i,s){if(i!==s){if(!this.hasAttribute("data-upgraded")){t==="data-mode"&&this.hasAttribute("popover")&&!this.isConnected&&(this.#n=!0);return}if(t==="data-mode"){this.#r();return}this._reinit()}}#r(){let t=Wb(this.dataset.mode);this.getAttribute("popover")!==t&&this.setAttribute("popover",t),this.#n=!0}show(){this.matches(":popover-open")||(this.showPopover(),!Ri&&this.#t&&this.matches(":popover-open")&&this.#f())}hide(){this.matches(":popover-open")&&this.hidePopover()}toggle(){this.matches(":popover-open")?this.hide():this.show()}get open(){return this.matches(":popover-open")}#a(){let t=this.dataset.anchor;if(t){let i=document.getElementById(t);if(!i)try{i=document.querySelector(t)}catch{i=null}this.#t=i}else this.#t=document.querySelector(`[popovertarget="${CSS.escape(this.id)}"]`)}#l(){if(!this.#t||!Ri)return;let t=this.#t,i=t.style.getPropertyValue("anchor-name"),s=xl(i||getComputedStyle(t).getPropertyValue("anchor-name"));s.includes(this.#i)||s.push(this.#i),t.style.setProperty("anchor-name",s.join(", ")),this.#e=this.#i,this.style.setProperty("position-anchor",this.#i),this.setAttribute("data-anchor-name",this.#i),zb||this.#g(this.dataset.position||"bottom")}#c(){if(this.#t&&this.#e){let t=xl(this.#t.style.getPropertyValue("anchor-name")).filter(i=>i!==this.#e);t.length?this.#t.style.setProperty("anchor-name",t.join(", ")):this.#t.style.removeProperty("anchor-name")}this.#e=null,this.style.getPropertyValue("position-anchor")&&this.style.removeProperty("position-anchor"),this.hasAttribute("data-anchor-name")&&this.removeAttribute("data-anchor-name")}#g(t){let i="var(--_pop-over-offset, var(--size-xs))",s=t.endsWith("-end")?{"inset-inline-end":"anchor(end)"}:{"inset-inline-start":"anchor(start)"},n={top:{bottom:`calc(anchor(top) + ${i})`,...s},bottom:{top:`calc(anchor(bottom) + ${i})`,...s},left:{right:`calc(anchor(left) + ${i})`,top:"anchor(top)"},right:{left:`calc(anchor(right) + ${i})`,top:"anchor(top)"}},r=t.split("-")[0],a=n[r]||n.bottom;Object.entries(a).forEach(([o,c])=>this.style.setProperty(o,c)),this.#s=!0}#f(){if(!this.#t)return;let t=this.#t.getBoundingClientRect(),i=this.dataset.position||"bottom",s=this.#u(),n=document.documentElement.clientWidth,r=document.documentElement.clientHeight;this.style.position="fixed",this.style.margin="0",this.style.right="auto",this.style.bottom="auto",this.#o=!0;let a=this.offsetWidth,o=this.offsetHeight,c=i.split("-")[0];["top","bottom","left","right"].includes(c)||(c="bottom");let l={top:t.top-s,bottom:r-t.bottom-s,left:t.left-s,right:n-t.right-s},u={top:"bottom",bottom:"top",left:"right",right:"left"},d=c==="top"||c==="bottom"?o:a;l[c]<d&&l[u[c]]>l[c]&&(c=u[c]);let h,f;switch(c){case"top":h=t.top-o-s,f=t.left;break;case"left":h=t.top,f=t.left-a-s;break;case"right":h=t.top,f=t.right+s;break;default:h=t.bottom+s,f=t.left;break}if(c==="top"||c==="bottom"){let m=getComputedStyle(this).direction==="rtl";f=i.endsWith("-end")!==m?t.right-a:t.left}else i.endsWith("-end")&&(h=t.bottom-o);let p=(m,g,b)=>Math.max(Sl,Math.min(m,b-g-Sl));f=p(f,a,n),h=p(h,o,r),this.style.top=`${Math.round(h)}px`,this.style.left=`${Math.round(f)}px`}#u(){let t={none:0,xs:4,s:8,m:16,l:24};return t[this.dataset.offset||""]??t.xs}};A("pop-over",In);var Zb=new Set(["BUTTON","A","AREA"]),Bn=CSS.supports("anchor-name","--x"),Cl=(()=>{let e=document.createElement("span");return e.setAttribute("popover","hint"),e.popover==="hint"})(),Tl=8;function Ll(e){return document.documentElement.hasAttribute("data-interest-polyfill")?!0:"interestForElement"in HTMLButtonElement.prototype?Zb.has(e.tagName):!1}function Jb(e){return e.getAttribute("aria-label")?.trim()||e.hasAttribute("aria-labelledby")||e.labels?.length||e.textContent?.trim()||e instanceof HTMLInputElement&&["button","submit","reset"].includes(e.type)&&e.value?!0:!!e.querySelector('img[alt]:not([alt=""]), [aria-label]:not([aria-hidden="true"])')}function Qb(e,t,i){let s=(e.getAttribute(t)||"").split(/\s+/).filter(Boolean);return s.includes(i)?!1:(e.setAttribute(t,[...s,i].join(" ")),!0)}function ty(e,t,i){let s=(e.getAttribute(t)||"").split(/\s+/).filter(n=>n&&n!==i);s.length?e.setAttribute(t,s.join(" ")):e.removeAttribute(t)}var Fi=0,Rn=class extends E{#t=null;#e=null;#i;#n;#s=!1;#o=!1;#r;#a;#l=[];#c=null;#g=!1;#f=!1;setup(){return this.#s=this.getAttribute("variant")==="card",this.#s?this.#p():this.#u()}#u(){if(this.#t=this.querySelector(":scope > :not(template):not(pop-over.tooltip)"),!this.#t)return!1;this.#o=Ll(this.#t);let t=this.querySelector(":scope > template[data-tooltip]"),i=this.getAttribute("content"),s=this.#t.getAttribute("title");if(!t&&!i&&!s)return!1;let n=!1;s&&(Jb(this.#t)||(this.#t.setAttribute("aria-label",s),this.#a=s,n=!t&&!i),this.#r=s,this.#t.removeAttribute("title"));let r=this.getAttribute("position")||"top";this.#t.id||(this.#t.id=`tooltip-trigger-${++Fi}`);let a=document.createElement("pop-over");a.className="tooltip",a.setAttribute("role","tooltip"),a.dataset.mode=Cl?"hint":"manual",a.dataset.anchor=this.#t.id,a.dataset.tooltipPosition=r,Bn||(a.dataset.position=r),a.id=`tooltip-${++Fi}`,t?a.innerHTML=t.innerHTML:a.textContent=i||s;let o=document.createElement("span");if(o.className="tooltip-arrow",o.setAttribute("aria-hidden","true"),a.appendChild(o),this.appendChild(a),this.#e=a,n||this.#y("aria-describedby",a.id),this.#o?(this.#t.setAttribute("interestfor",a.id),this.#v()):(this.listen(this.#t,"mouseenter",this.#S),this.listen(this.#t,"mouseleave",this.#b),this.listen(this.#t,"focus",this.#k),this.listen(this.#t,"blur",this.#w),this.listen(a,"mouseenter",this.#A),this.listen(a,"mouseleave",this.#b)),Cl||this.#m(),!Bn){this.listen(a,"toggle",l=>{l.newState==="open"&&this.#h()});let c=()=>{this.isVisible&&this.#h()};this.listen(window,"resize",c),this.listen(window,"scroll",c,{capture:!0,passive:!0})}return this.#d(a),!0}#p(){this.#t=this.querySelector(":scope > [data-trigger]");let t=this.querySelector(":scope > [data-content]");if(!this.#t||!t)return!1;this.#o=Ll(this.#t),this.#t.id||(this.#t.id=`tooltip-trigger-${++Fi}`);let i=document.createElement("pop-over");return i.className="hover-card",i.dataset.mode="manual",i.dataset.anchor=this.#t.id,i.dataset.position=this.getAttribute("position")||"bottom",i.id=`hc-${++Fi}`,this.#c={node:t,next:t.nextSibling,hidden:t.hidden},i.appendChild(t),t.removeAttribute("data-content"),t.hidden=!1,this.appendChild(i),this.#e=i,this.#y("aria-controls",i.id),this.#t.hasAttribute("aria-expanded")||(this.#t.setAttribute("aria-expanded","false"),this.#g=!0),this.#o?(this.#t.setAttribute("interestfor",i.id),this.#v()):(this.listen(this.#t,"mouseenter",this.#S),this.listen(this.#t,"mouseleave",this.#b),this.listen(this.#t,"focus",this.#k),this.listen(this.#t,"blur",this.#b),this.listen(i,"mouseenter",this.#A),this.listen(i,"mouseleave",this.#b),this.listen(i,"focusin",this.#A),this.listen(i,"focusout",s=>{s.relatedTarget instanceof Node&&this.contains(s.relatedTarget)||this.#b()})),this.#m(),this.listen(i,"pop-over:show",()=>{this.#g&&this.#t?.setAttribute("aria-expanded","true")}),this.listen(i,"pop-over:hide",()=>{this.#g&&this.#t?.setAttribute("aria-expanded","false")}),this.#d(i),!0}teardown(){clearTimeout(this.#i),clearTimeout(this.#n);let t=this.#t;if(t){this.#o&&(t.removeAttribute("interestfor"),this.#E&&(t.style.removeProperty("interest-delay-start"),t.style.removeProperty("--interest-delay-start"),this.#E=!1));for(let[i,s]of this.#l)ty(t,i,s);this.#a!==void 0&&t.getAttribute("aria-label")===this.#a&&t.removeAttribute("aria-label"),this.#g&&t.removeAttribute("aria-expanded"),this.#r&&t.setAttribute("title",this.#r)}if(this.#l=[],this.#a=void 0,this.#r=void 0,this.#g=!1,this.#c){let{node:i,next:s,hidden:n}=this.#c;i.setAttribute("data-content",""),i.hidden=n,s&&s.parentNode===this?this.insertBefore(i,s):this.insertBefore(i,this.#e?.parentNode===this?this.#e:null),this.#c=null}this.#e&&(this.#e.remove(),this.#e=null),this.#t=null,this.setState("show-pending",!1)}#y(t,i){this.#t&&Qb(this.#t,t,i)&&this.#l.push([t,i])}#d(t){this.listen(t,"pop-over:show",()=>{this.dispatchEvent(new CustomEvent("tool-tip:show",{bubbles:!0}))}),this.listen(t,"pop-over:hide",()=>{this.dispatchEvent(new CustomEvent("tool-tip:hide",{bubbles:!0}))})}#m(){this.listen(document,"keydown",this.#N),this.listen(document,"pointerdown",t=>{this.isVisible&&!(t.target instanceof Node&&this.contains(t.target))&&this.hide()})}#h(){let t=this.#e,i=this.#t;if(!t||!i||this.#s)return;let s=t.dataset.position||"top",n=i.getBoundingClientRect(),r=document.documentElement.clientWidth,a=document.documentElement.clientHeight,o=(c,l,u)=>Math.max(Tl,Math.min(c,u-l-Tl));t.style.translate="none",s==="left"||s==="right"?t.style.top=`${Math.round(o(n.top+(n.height-t.offsetHeight)/2,t.offsetHeight,a))}px`:t.style.left=`${Math.round(o(n.left+(n.width-t.offsetWidth)/2,t.offsetWidth,r))}px`}#E=!1;#v(){let t=this.getAttribute("delay"),i=this.#t;if(t===null||!i)return;let s=parseInt(t,10);!Number.isFinite(s)||s<0||(i.style.setProperty("interest-delay-start",`${s}ms`),i.style.setProperty("--interest-delay-start",`${s}ms`),this.#E=!0)}#S=()=>{clearTimeout(this.#n);let t=this.#s?300:200,i=parseInt(this.getAttribute("delay")||String(t),10);this.setState("show-pending",!0),this.#i=setTimeout(()=>{this.setState("show-pending",!1),this.show()},i)};#b=()=>{clearTimeout(this.#i),this.setState("show-pending",!1);let t=this.#s?200:100;this.#n=setTimeout(()=>this.hide(),t)};#k=()=>{this.#f||(clearTimeout(this.#n),this.show())};#w=()=>{clearTimeout(this.#i),this.setState("show-pending",!1),this.hide()};#A=()=>{clearTimeout(this.#n)};#N=t=>{if(t.key!=="Escape"||!this.isVisible)return;clearTimeout(this.#i);let i=this.#s&&this.#e?.contains(document.activeElement);this.hide(),i&&(this.#f=!0,this.#t?.focus({preventScroll:!0}),this.#f=!1)};show(){!this.#e||this.isVisible||(typeof this.#e.show=="function"?this.#e.show():this.#e.showPopover(),Bn||this.#h())}hide(){!this.#e||!this.isVisible||(typeof this.#e.hide=="function"?this.#e.hide():this.#e.hidePopover())}get isVisible(){return this.#e?.matches(":popover-open")??!1}};A("tool-tip",Rn);var Fn=0,qe='button, a, [role="menuitem"]',Pi='menu, ul[role="menu"]',ey=500;function Pn(e){return e.hasAttribute("data-disabled")||e.getAttribute("aria-disabled")==="true"||!!e.disabled}var On=class extends E{#t;#e;#i;#n;#s=[];#o=-1;#r=!1;#a=!1;#l=null;#c="";#g=!1;#f=!1;#u=null;#p(){return this.querySelector(`:scope > :is(${Pi}), :scope > pop-over[data-dropdown-host] > :is(${Pi})`)}setup(){let t=this.querySelector(":scope > [data-trigger]")||this.querySelector(":scope > button:not([data-dropdown-toggle])");if(!t)return!1;this.#t=t;let i=this.#p();if(!i)return!1;this.#i=i,this.#a=this.hasAttribute("hover"),this.#t.id||(this.#t.id=`dropdown-trigger-${++Fn}`);let s=this.querySelector(":scope > pop-over[data-dropdown-host]");return s?this.#n=s:(this.#n=document.createElement("pop-over"),this.#n.setAttribute("data-dropdown-host",""),this.#n.id=`dropdown-${++Fn}`,this.#n.dataset.mode=this.#a?"manual":"auto",this.#n.dataset.position=this.getAttribute("position")||"bottom-start",this.#n.dataset.anchor=this.#t.id,this.#n.appendChild(this.#i),this.appendChild(this.#n)),this.#n.dataset.mode=this.#a?"manual":"auto",this.#n.dataset.position=this.getAttribute("position")||"bottom-start",this.#n.dataset.anchor=this.#t.id,this.#i.parentElement!==this.#n&&this.#n.appendChild(this.#i),this.#i.id||(this.#i.id=`dropdown-menu-${++Fn}`),this.#a?this.#d():this.#y(),this.listen(this.#i,"click",this.#A,{capture:!0}),this.listen(this.#i,"click",this.#N),this.listen(this.#n,"pop-over:hide",this.#C),this.listen(this.#n,"pop-over:show",this.#W),!0}#y(){this.#e=this.#t,this.querySelector(":scope > button[data-dropdown-toggle]")?.remove(),this.#t.setAttribute("aria-haspopup","menu"),this.#t.setAttribute("aria-expanded","false"),this.#t.setAttribute("aria-controls",this.#i.id),this.#i.setAttribute("role","menu"),this.#E(),this.listen(this.#t,"pointerdown",this.#v),this.listen(this.#t,"click",this.#S),this.listen(this.#t,"keydown",this.#b),this.listen(this.#i,"keydown",this.#k)}#d(){let t=this.#t;if(this.#t.localName==="a"){if(t=this.querySelector(":scope > button[data-dropdown-toggle]"),t||(t=document.createElement("button"),t.setAttribute("type","button"),t.setAttribute("data-dropdown-toggle",""),this.#t.after(t)),!t.hasAttribute("aria-label")&&!t.textContent.trim()){let i=this.#t.textContent.trim().replace(/\s+/g," ");t.setAttribute("aria-label",`${i} submenu`)}this.#t.removeAttribute("aria-haspopup"),this.#t.removeAttribute("aria-expanded"),this.#t.removeAttribute("aria-controls")}t&&(this.#e=t,t.removeAttribute("aria-haspopup"),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls",this.#i.id),this.#i.removeAttribute("role"),this.#i.querySelectorAll(':scope > li[role="none"]').forEach(i=>i.removeAttribute("role")),this.#s=this.#m(),this.#s.forEach(i=>{i.getAttribute("role")==="menuitem"&&i.removeAttribute("role"),i.getAttribute("tabindex")==="-1"&&i.removeAttribute("tabindex"),i.hasAttribute("data-disabled")&&i.setAttribute("aria-disabled","true")}),this.#h(),this.listen(t,"click",this.#x),this.listen(this,"pointerenter",this.#_),this.listen(this,"pointerleave",this.#F),this.listen(this,"focusout",this.#D),this.listen(document,"keydown",this.#O),this.listen(document,"pointerdown",this.#$))}teardown(){this.#l&&clearTimeout(this.#l),this.#l=null,this.#u&&clearTimeout(this.#u),this.#u=null,this.#c="",this.#r&&this.#n?.hide?.(),this.#r=!1,this.#f=!1,this.#o=-1,this.removeAttribute("open"),this.#e?.setAttribute("aria-expanded","false")}get items(){let t=this.#i||this.#p();if(!t)return[];let i=[];for(let s of t.querySelectorAll(":scope > li")){if(s.matches('[role="separator"]')||s.querySelector(":scope > hr")){i.push({separator:!0});continue}let n=s.querySelector(qe);n&&i.push({label:n.textContent.trim().replace(/\s+/g," "),value:n.getAttribute("data-value")||void 0,href:n.tagName==="A"?n.getAttribute("href"):void 0,disabled:Pn(n)||void 0})}return i}set items(t){let i=Array.isArray(t)?t:[],s=this.#i||this.#p();for(s||(s=document.createElement("menu"),this.appendChild(s));s.firstChild;)s.firstChild.remove();for(let n of i){let r=document.createElement("li");if(n.separator)r.setAttribute("role","separator");else{let a=n.href?document.createElement("a"):document.createElement("button");n.href?a.setAttribute("href",n.href):a.setAttribute("type","button"),n.value&&a.setAttribute("data-value",n.value),n.disabled&&(a.setAttribute("data-disabled",""),a.setAttribute("aria-disabled","true")),a.textContent=n.label||"",r.appendChild(a)}s.appendChild(r)}this._reinit(),this.dispatchEvent(new CustomEvent("drop-down:items-changed",{detail:{items:i,source:"property"},bubbles:!0}))}#m(){return Array.from(this.#i.querySelectorAll(qe)).filter(t=>t.closest(Pi)===this.#i&&!t.closest('[role="separator"]'))}#h(){this.#i.querySelectorAll(':scope > li:empty, :scope > [role="separator"], :scope > hr').forEach(t=>{t.setAttribute("role","separator")})}#E(){let t=this.#m();t.forEach(i=>{i.setAttribute("role","menuitem"),i.setAttribute("tabindex","-1"),i.hasAttribute("data-disabled")&&i.setAttribute("aria-disabled","true")}),this.#s=t.filter(i=>!i.disabled),this.#i.querySelectorAll(":scope > li").forEach(i=>{i.querySelector(`:scope > :is(${qe})`)&&i.setAttribute("role","none")}),this.#h()}#v=()=>{this.#g=this.#r};#S=t=>{let i=this.#g;if(this.#g=!1,!(t.detail!==0&&i&&!this.#r)){if(t.detail===0&&!this.#r){this.open(),this.#T(0);return}this.toggle()}};#b=t=>{switch(t.key){case"ArrowDown":case"Down":t.preventDefault(),this.open(),this.#T(0);break;case"ArrowUp":case"Up":t.preventDefault(),this.open(),this.#T(this.#s.length-1);break}};#k=t=>{if(!(t.defaultPrevented||t.target.closest?.(Pi)!==this.#i))switch(t.key){case"ArrowDown":case"Down":t.preventDefault(),this.#T(this.#o+1);break;case"ArrowUp":case"Up":t.preventDefault(),this.#T(this.#o-1);break;case"Home":t.preventDefault(),this.#T(0);break;case"End":t.preventDefault(),this.#T(this.#s.length-1);break;case"Escape":t.preventDefault(),this.close(),this.#e?.focus();break;case"Tab":this.close();break;case"Enter":case" ":{t.preventDefault();let s=this.#s[this.#o];s&&!Pn(s)&&s.click();break}default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.#w(t.key)}};#w(t){this.#u&&clearTimeout(this.#u),this.#u=setTimeout(()=>{this.#c=""},ey),this.#c+=t.toLowerCase();let i=this.#c,s=[...i].every(a=>a===i[0])?i[0]:i,n=this.#s.length,r=s.length>1?0:1;for(let a=0;a<n;a++){let o=(this.#o+r+a+n)%n;if(this.#s[o].textContent.trim().toLowerCase().startsWith(s)){this.#T(o);return}}}#A=t=>{let i=t.target.closest?.(qe);i&&this.#s.includes(i)&&Pn(i)&&(t.preventDefault(),t.stopPropagation())};#N=t=>{let i=t.target.closest?.(qe);!i||!this.#s.includes(i)||i.closest("drop-down")===this&&(t.defaultPrevented||(this.dispatchEvent(new CustomEvent("drop-down:select",{bubbles:!0,detail:{item:i,value:i.getAttribute("data-value")||void 0}})),this.close(),this.#e?.focus()))};#x=t=>{if(this.#M(),t.detail!==0&&this.#f&&this.#r){this.#f=!1;return}this.toggle()};#M(){this.#l&&(clearTimeout(this.#l),this.#l=null,this.setState("hover-grace-pending",!1))}#_=t=>{t.pointerType==="mouse"&&(this.#M(),this.#r||(this.open(),this.#f=!0))};#F=t=>{t.pointerType!=="mouse"||!this.#r||this.contains(document.activeElement)&&document.activeElement!==this.#e&&document.activeElement!==this.#t||(this.setState("hover-grace-pending",!0),this.#l=setTimeout(()=>{this.#l=null,this.setState("hover-grace-pending",!1),this.close()},100))};#D=t=>{let i=t.relatedTarget;i&&this.contains(i)||!i&&this.matches(":hover")||this.close()};#O=t=>{if(t.key!=="Escape"||!this.#r)return;let i=this.contains(document.activeElement);t.preventDefault(),this.close(),i&&this.#e?.focus()};#$=t=>{if(!this.#r)return;t.composedPath().includes(this)||this.close()};#W=t=>{t.target!==this.#n||this.#r||(this.#r=!0,this.setAttribute("open",""),this.#e?.setAttribute("aria-expanded","true"),this.#o=-1,this.dispatchEvent(new CustomEvent("drop-down:open",{bubbles:!0})))};#C=t=>{t.target!==this.#n||!this.#r||(this.#r=!1,this.#f=!1,this.removeAttribute("open"),this.#e?.setAttribute("aria-expanded","false"),this.#o=-1,this.#i?.contains(document.activeElement)&&this.#e?.focus(),this.dispatchEvent(new CustomEvent("drop-down:close",{bubbles:!0})))};#T(t){this.#s.length!==0&&(t<0&&(t=this.#s.length-1),t>=this.#s.length&&(t=0),this.#o=t,this.#s[t].focus())}open(){this.#r||!this.#n||this.#n.show()}close(){!this.#r||!this.#n||this.#n.hide()}toggle(){this.#r?this.close():this.open()}get isOpen(){return this.#r}};A("drop-down",On);Fe();function ie({basePath:e,set:t,name:i}){return`${e}/${t}/${i}.svg`}function Oi(e,t=document){let i=e.getAttribute("data-icon-set");if(i)return i;let s=e.closest("[data-icon-set]")?.getAttribute("data-icon-set");return s||t.documentElement.dataset.iconSet||"lucide"}function qi(e=document){let t=e.documentElement.dataset.iconPath;if(t)return t;let i=`${Be()}/icons`;try{return new URL(i,e.baseURI).href}catch{return i}}function jn(e){let t=e.getAttribute("data-icon");if(!t){e.style.removeProperty("--vb-icon");return}let i=ie({basePath:qi(document),set:Oi(e,document),name:t});e.style.setProperty("--vb-icon",`url("${i}")`)}function qn(e=document){for(let t of e.querySelectorAll("[data-icon]"))jn(t)}var Dl=!1;function iy(){if(Dl)return;Dl=!0,qn(),new MutationObserver(t=>{for(let i of t)if(i.type==="attributes"){let s=i.target;s.hasAttribute&&s.hasAttribute("data-icon")&&jn(s),i.attributeName==="data-icon-set"&&qn(s)}else for(let s of i.addedNodes){if(s.nodeType!==1)continue;let n=s;n.hasAttribute("data-icon")&&jn(n),qn(n)}}).observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-icon","data-icon-set"]})}typeof document<"u"&&iy();var Nl=`
70
70
  :host {
71
71
  display: inline-flex;
72
72
  align-items: center;
@@ -131,7 +131,7 @@ svg {
131
131
  :host([hidden]) {
132
132
  display: none;
133
133
  }
134
- `;Rt();var Xn="lucide",Ly=new Set([Xn,"custom"]),Pl=new Map,Kn=new Set,Yn=new Map,Ol=new Map;function Dy(e,t){let i=`${e}/${t}`,s=Ol.get(i);return s||(s=fetch(`${i}.json`).then(n=>n.ok?n.json():null).then(n=>Array.isArray(n)?new Set(n.map(String)):null).catch(()=>null),Ol.set(i,s)),s}function Ny(e){if(!e.includes("<svg"))return null;let t=new DOMParser().parseFromString(e,"image/svg+xml"),i=t.documentElement;return!i||i.localName!=="svg"||t.querySelector("parsererror")?null:(Rl(i),i.removeAttribute("width"),i.removeAttribute("height"),document.importNode(i,!0))}function ql(e){let t=Pl.get(e);if(t)return Promise.resolve(t);if(Kn.has(e))return Promise.reject(new Error(`Icon not found: ${e}`));let i=Yn.get(e);return i||(i=fetch(e).then(async s=>{if(!s.ok)throw Kn.add(e),new Error(`Icon not found: ${e}`);let n=Ny(await s.text());if(!n)throw Kn.add(e),new Error(`Invalid SVG: ${e}`);return Pl.set(e,n),n}).finally(()=>Yn.delete(e)),Yn.set(e,i)),i}async function My(e,t,i){if(t!==Xn){let s=Ly.has(t)?null:await Dy(e,t);if(!s||s.has(i))try{return await ql(se({basePath:e,set:t,name:i}))}catch{}}return ql(se({basePath:e,set:Xn,name:i}))}var Zn=class e extends HTMLElement{static#t=new Set;static#e=null;static#i(){e.#e||(e.#e=new MutationObserver(t=>{let i=document.documentElement;for(let s of t){let n=s.target;for(let r of e.#t)(n===i||n.contains(r))&&r.#c()}}),e.#e.observe(document.documentElement,{subtree:!0,attributes:!0,attributeFilter:["data-icon-set","data-icon-path"]}))}static get observedAttributes(){return["name","set","label","base-path"]}#n=0;#s="";#o="";#r="";#a=null;constructor(){super();let t=this.attachShadow({mode:"open"});t.innerHTML=`<style>${Nl}</style><slot></slot>`}get name(){return this.getAttribute("name")||""}get set(){return this.getAttribute("set")||ji(this)}get size(){return this.getAttribute("size")||"md"}get label(){return this.getAttribute("label")}get basePath(){return this.getAttribute("base-path")||Hi()}get iconPath(){return se({basePath:this.basePath,set:this.set,name:this.name})}connectedCallback(){e.#t.add(this),e.#i(),this.#c(),this.#a=()=>{let t=this.#l();t&&(t.style.stroke="none",requestAnimationFrame(()=>{t.style.stroke=""}))},window.addEventListener("vb:theme-change",this.#a),this.setAttribute("data-upgraded","")}disconnectedCallback(){this.removeAttribute("data-upgraded"),e.#t.delete(this),this.#a&&(window.removeEventListener("vb:theme-change",this.#a),this.#a=null)}attributeChangedCallback(t,i,s){i===s||!this.isConnected||(t==="label"?this.#f():this.#c())}#l(){return this.shadowRoot?.querySelector("svg")??null}#c(){let t=this.name,i=`${this.basePath}|${this.set}|${t}`;if(i===this.#s){this.#f();return}if(i===this.#o||i===this.#r)return;let s=++this.#n;if(this.#o=i,this.#r="",!t){this.#o="",this.#u("No icon name specified",i);return}let n=this.basePath,r=this.set;My(n,r,t).then(a=>{s===this.#n&&(this.#o="",this.#g(a.cloneNode(!0),i))},a=>{s===this.#n&&(this.#o="",this.#u(a.message,i))})}#g(t,i){let s=this.shadowRoot,n=this.#l()||s.querySelector("slot");n?n.replaceWith(t):s.append(t),this.#s=i,this.removeAttribute("data-error"),this.#f()}#f(){let t=this.#l();if(!t)return;let i=this.label;i?(t.setAttribute("role","img"),t.setAttribute("aria-label",i),t.removeAttribute("aria-hidden")):(t.removeAttribute("role"),t.removeAttribute("aria-label"),t.setAttribute("aria-hidden","true"))}#u(t,i){this.#r=i,this.setAttribute("data-error","true"),console.warn(`icon-wc: ${t}`);let s=this.#l();s&&s.replaceWith(document.createElement("slot")),this.#s=""}};E("icon-wc",Zn);ae();var jy="dialog, [data-toc-ignore], browser-window";function zi(e){return!!e.closest(jy)}function Ul(e){if(typeof e.checkVisibility!="function"||e.checkVisibility()||e.closest("details:not([open])")?.checkVisibility())return!0;let i=e.closest('[hidden="until-found"]');return!!i?.parentElement&&(i.parentElement.checkVisibility?.()??!0)}var Hy=["h2","h3"],zy=1500,Vy=0;function Uy(e){let t=String(e).normalize("NFC").toLowerCase().trim().replace(/[^\p{L}\p{M}\p{N}\s_-]/gu,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");return Array.from(t).slice(0,50).join("").replace(/-$/,"")||"section"}function Wy(e,t){let i=e,s=1;for(;t(i);)i=`${e}-${s++}`;return i}function Gy(e){let t=(e??"").split(",").map(i=>i.trim().toLowerCase()).filter(i=>/^h[1-6]$/.test(i));return t.length?[...new Set(t)]:Hy}var tr=class extends k{static get observedAttributes(){return["levels","data-label-anchor"]}#t;#e=new WeakMap;setup(){this.#s(),this.listen(this,"click",this.#a),this.#t=new MutationObserver(t=>{t.some(i=>i.type==="childList")&&this.#s()}),this.#t.observe(this,{childList:!0,subtree:!0})}teardown(){this.#t?.disconnect(),this.#t=void 0}attributeChangedCallback(t,i,s){i===s||!this.hasAttribute("data-upgraded")||this.#s()}get#i(){return this.getAttribute("data-label-anchor")||"Copy link to"}#n(t){return t.closest("heading-links")!==this?!1:!zi(t)}#s(){let t=Gy(this.getAttribute("levels")).join(","),i=this.#i;for(let s of this.querySelectorAll(".heading-anchor[data-heading-links]")){if(s.closest("heading-links")!==this)continue;let n=s.parentElement;!n||!n.matches(t)||!this.#n(n)?this.#r(n,s):s.getAttribute("aria-label")!==i&&s.setAttribute("aria-label",i)}for(let s of this.querySelectorAll(t))this.#n(s)&&this.#o(s)}#o(t){if(t.id||(t.id=Wy(Uy(t.textContent??""),a=>!!document.getElementById(a))),t.querySelector(":scope > .heading-anchor"))return;let i=++Vy,s=document.createElement("span");s.className="heading-text",s.id=`heading-links-text-${i}`,s.append(...t.childNodes),t.append(s),!t.hasAttribute("aria-label")&&!t.hasAttribute("aria-labelledby")&&(t.setAttribute("aria-labelledby",s.id),t.setAttribute("data-heading-links-labelled",""));let n=document.createElement("a");n.className="heading-anchor",n.id=`heading-links-anchor-${i}`,n.dataset.headingLinks="",n.href=`#${t.id}`,n.setAttribute("aria-label",this.#i),n.setAttribute("aria-labelledby",`${n.id} ${s.id}`);let r=document.createElement("icon-wc");r.setAttribute("name","link"),r.setAttribute("size","sm"),n.append(r),t.append(n),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1")}#r(t,i){if(i.remove(),!t)return;let s=t.querySelector(":scope > .heading-text");s&&s.replaceWith(...s.childNodes),t.hasAttribute("data-heading-links-labelled")&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("data-heading-links-labelled"))}#a=t=>{let i=t,n=(i.target instanceof Element?i.target:null)?.closest("a.heading-anchor[data-heading-links]");if(!n||n.closest("heading-links")!==this||i.defaultPrevented||i.button!==0||i.metaKey||i.ctrlKey||i.shiftKey||i.altKey)return;let r=n.parentElement;r?.id&&(i.preventDefault(),this.#l(r,n))};async#l(t,i){Ln(t,t.id);let s=new URL(document.URL);if(s.hash=t.id,this.dispatchEvent(new CustomEvent("heading-links:navigate",{bubbles:!0,detail:{id:t.id,url:s.href,heading:t}})),!await bt(s.href,{announceMessage:this.getAttribute("data-label-copied")||"Link copied to clipboard"}))return;let r=i.querySelector("icon-wc");i.dataset.state="copied",r?.setAttribute("name","check"),clearTimeout(this.#e.get(i)),this.#e.set(i,setTimeout(()=>{delete i.dataset.state,r?.setAttribute("name","link"),this.#e.delete(i)},zy))}};E("heading-links",tr);var ir=class extends k{#t;#e=[];#i=new Map;#n;#s=null;#o=0;#r=0;#a;#l=0;#c=!1;setup(){this.#n=window.matchMedia("(min-width: 64rem)"),this.listen(this.#n,"change",this.#d),this.listen(window,"resize",this.#m),this.listen(window,"hashchange",this.#h),this.listen(this,"click",this.#E),this.#r=requestAnimationFrame(()=>{this.#r=0,this.#f()})}teardown(){cancelAnimationFrame(this.#r),this.#r=0,cancelAnimationFrame(this.#l),this.#l=0,clearTimeout(this.#o),this.#g()}get entries(){return this.#e.map(t=>({id:t.id||void 0,text:t.textContent?.trim()||"",level:parseInt(t.tagName.slice(1),10)||0}))}refresh(){this.isConnected&&(cancelAnimationFrame(this.#r),this.#r=0,this.#f())}#g(){this.#t?.disconnect(),this.#t=void 0,this.#a?.disconnect(),this.#a=void 0;for(let t of this.querySelectorAll(":scope > [data-page-toc-generated]"))t.remove();this.#e=[],this.#i.clear(),this.#s=null,this.#c=!1}#f(){this.#g(),this.#c=this.#u(),this.#c?this.#p():(this.#N(),this.#A()),this.#s&&this.#y()&&(this.#s.open=!0),this.#_(),this.#v()}#u(){return Array.from(this.querySelectorAll("nav, details")).some(t=>!t.closest("[data-page-toc-generated]"))}#p(){this.#s=this.querySelector("details");for(let t of this.querySelectorAll('a[href^="#"]')){let i=er(t.getAttribute("href")?.slice(1)||"");if(!i)continue;let s=document.getElementById(i);!s||this.#i.has(i)||(this.#e.push(s),this.#i.set(i,t),t.classList.add("link"))}}#y(){return this.#n?.matches??!1}#d=t=>{t.matches&&this.#s&&(this.#s.open=!0)};#m=()=>{clearTimeout(this.#o),this.#o=window.setTimeout(()=>this.#v(),150)};#h=()=>{this.#v()};#E=t=>{let i=t.target instanceof Element?t.target:null;if(!i)return;let s=i.closest("summary");if(s&&this.#s&&s.parentElement===this.#s&&this.#y()){t.preventDefault();return}let n=i.closest('a[href^="#"]');if(!n||!this.contains(n)||t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;let r=er(n.getAttribute("href")?.slice(1)||"");if(this.#i.get(r)!==n)return;let a=document.getElementById(r);a&&(t.preventDefault(),this.#M(a))};#v(){let t=er(window.location.hash.slice(1));t&&this.#i.has(t)&&this.#S(t)}#S(t){for(let s of this.#i.values())s.classList.remove("active"),s.removeAttribute("aria-current");let i=this.#i.get(t);i&&(i.classList.add("active"),i.setAttribute("aria-current","true"))}#b(){return(this.getAttribute("levels")||"h2,h3").split(",").map(t=>t.trim().toLowerCase())}#k(){return document.querySelector(this.getAttribute("scope")||"main")}#w(t){return Array.from(t.querySelectorAll(this.#b().join(","))).filter(i=>i.id&&!this.contains(i)&&!zi(i)&&Ul(i))}#A(){let t=this.#k();t&&(this.#a=new MutationObserver(i=>{i.every(s=>this.contains(s.target))||this.#l||(this.#l=requestAnimationFrame(()=>{this.#l=0;let s=this.#w(t);s.length===this.#e.length&&s.every((r,a)=>r===this.#e[a]&&this.#i.has(r.id))||this.#f()}))}),this.#a.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-toc-ignore","id","hidden"]}))}#N(){let t=this.#b(),i=this.dataset.title||"On this page",s=this.#k();if(!s||(this.#e=this.#w(s),this.#e.length===0))return;let n={depth:-1,children:[]},r=[n];for(let u of this.#e){let d=t.indexOf(u.tagName.toLowerCase());for(;r[r.length-1].depth>=d;)r.pop();let h={heading:u,depth:d,children:[]};r[r.length-1].children.push(h),r.push(h)}let a=u=>{let d=document.createElement("ul");d.className="list";for(let h of u){let f=document.createElement("li");f.className="item",f.dataset.level=String(h.depth);let p=document.createElement("a");p.href=`#${h.heading.id}`,p.className="link",p.textContent=this.#x(h.heading),f.appendChild(p),h.children.length&&f.appendChild(a(h.children)),d.appendChild(f),this.#i.set(h.heading.id,p)}return d},o=document.createElement("details");o.className="details",o.setAttribute("data-page-toc-generated",""),o.open=!0;let c=document.createElement("summary");c.className="summary",c.textContent=i,o.appendChild(c);let l=document.createElement("nav");l.className="nav",l.setAttribute("aria-label",i),l.appendChild(a(n.children)),o.appendChild(l),this.#s=o,this.appendChild(o)}#x(t){let i=t.cloneNode(!0);return i.querySelectorAll(".heading-anchor").forEach(n=>n.remove()),i.textContent.trim()}#M(t){let i=new URL(window.location.href);i.hash=t.id,window.history.pushState(null,"",i);let s=window.matchMedia("(prefers-reduced-motion: reduce)").matches;t.scrollIntoView({behavior:s?"auto":"smooth",block:"start"}),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),t.focus({preventScroll:!0}),this.#S(t.id),this.dispatchEvent(new CustomEvent("page-toc:navigate",{bubbles:!0,detail:{id:t.id}}))}#_(){if(this.#e.length===0)return;let t=new Set;this.#t=new IntersectionObserver(i=>{for(let s of i)s.isIntersecting?t.add(s.target.id):t.delete(s.target.id);this.#F(t)},{rootMargin:"-80px 0px -70% 0px",threshold:0});for(let i of this.#e)this.#t.observe(i)}#F(t){for(let i of this.#e)if(t.has(i.id)){this.#S(i.id);return}this.#v()}};function er(e){try{return decodeURIComponent(e)}catch{return e}}E("page-toc",ir);function Vi({newItems:e,nodes:t,keyOf:i,renderItem:s,containerFor:n}){let r=[],a=[],o=[],c=new Set;for(let u of e)c.add(i(u));for(let[u,d]of[...t])c.has(u)||(d.remove(),t.delete(u),o.push(u));let l=new Map;for(let u of e){let d=i(u),h=t.get(d)||null,f=n(u,h);l.has(f)||l.set(f,[]),l.get(f)?.push({item:u,key:d,existing:h})}for(let[u,d]of l)for(let h=0;h<d.length;h++){let{item:f,key:p,existing:m}=d[h],g=m;g?(g.parentElement!==u||u.children[h]!==g)&&a.push(p):(g=s(f),t.set(p,g),r.push(p));let b=u.children[h];b!==g&&u.insertBefore(g,b||null)}return{added:r,moved:a,removed:o}}ar();Q();var cr={"no-results":"No matching rows found",filter:"Filter table rows",placeholder:"Filter table...",pagination:"Table pagination",prev:"Previous",next:"Next",sorted:"Sorted by {column}, {direction}",ascending:"ascending",descending:"descending","filtered-one":"{count} of {total} row shown","filtered-other":"{count} of {total} rows shown","all-one":"All {total} row shown","all-other":"All {total} rows shown","selected-one":"{count} row selected","selected-other":"{count} rows selected"},lr=":scope > tr:not([data-expand-content])",ur=class e extends k{#t;#e;#i=[];#n=[];#s=[];#o=-1;#r=null;#a=1;#l=0;#c=null;#g=null;#f=null;#u="";#p=null;#y=null;#d=null;#m=null;#h=[];#E=new Map;#v=[];setup(){return this.#t=this.querySelector(":scope > table"),!this.#t||(this.#e=this.#t.querySelector("tbody"),!this.#e)?!1:(this.#S(),!0)}teardown(){this.#F(),this.#i=[],this.#n=[],this.#s=[]}#S(){this.#n=[...this.#e.querySelectorAll(lr)],this.#s=[...this.#n],this.#a=1,this.#o=-1,this.#r=null,this.#u="",this.#l=0,this.#v=[...this.#t.tHead?.rows[0]?.cells||[]].map(i=>({key:i.getAttribute("data-key")||i.textContent.trim().toLowerCase(),label:i.textContent.trim(),sort:i.getAttribute("data-sort")||void 0})),this.#E.clear(),this.#h=[];for(let i of this.#n){let s=i.getAttribute("data-id")||i.getAttribute("data-key");s&&(this.#E.set(s,i),this.#h.push({id:s}))}this.#A(),this.#N(),this.#_(),this.#W(),this.#T(),this.#t.hasAttribute("data-filterable")&&this.#B();let t=this.#t.getAttribute("data-paginate");t&&(this.#l=parseInt(t,10),this.#l>0&&this.#Q()),this.#G(),this.#st(),this.#it()}get rows(){return this.#h}set rows(t){let i=t||[],s=Vi({newItems:i,nodes:this.#E,keyOf:n=>n.id,renderItem:n=>this._renderRow(n),containerFor:()=>this.#e});this.#h=i,this.#n=[...this.#e.querySelectorAll(lr)],this.#N(),this.#_(),this.#R(this.#u),this.dispatchEvent(new CustomEvent("data-table:rows-changed",{detail:{rows:i,added:s.added,moved:s.moved,removed:s.removed,source:"api"},bubbles:!0}))}get columns(){return this.#v}_renderRow(t){let i=this;if(typeof i.renderRow=="function"){let n=i.renderRow(t,this.#v);if(!(n instanceof Element))throw new Error("data-table: renderRow must return an Element");return n.hasAttribute("data-id")||n.setAttribute("data-id",String(t.id)),n}let s=document.createElement("tr");s.setAttribute("data-id",String(t.id));for(let n of this.#v){let r=document.createElement("td"),a=t[n.key];r.textContent=a==null?"":String(a),s.appendChild(r)}return s}#b=[];#k=[];#w=[];#A(){let t=[...this.#t.tHead?.rows[0]?.cells||[]];this.#b=t.map(i=>{let s=parseFloat(i.getAttribute("data-weight"));return Number.isFinite(s)?s:null}),this.#k=t.map(i=>i.getAttribute("data-rollup")||null),this.#w=t.map(i=>i.getAttribute("data-heatmap")||null)}#N(){if(this.#k.some(Boolean))for(let t=0;t<this.#k.length;t++){let i=this.#k[t];if(i)for(let s of this.#n){let n=s.children[t];if(!n)continue;let r=this.#x(s,t,i),a=e.#M(r);n.textContent=a,n.setAttribute("data-rollup-value",String(r)),n.hasAttribute("data-sort-value")||n.setAttribute("data-sort-value",String(r))}}}#x(t,i,s){let n=[...t.children],r=0,a=0,o=-1/0,c=0,l=1,u=!1;for(let d=0;d<n.length;d++){if(d===i||this.#k[d])continue;let h=n[d].getAttribute("data-sort-value")??n[d].textContent??"",f=parseFloat(h);if(!Number.isFinite(f))continue;r+=f,a++,f>o&&(o=f),l*=f,u=!0;let p=this.#b[d];p!==null&&(c+=f*p)}switch(s){case"sum":return r;case"avg":return a?r/a:0;case"max":return o===-1/0?0:o;case"weighted-sum":return c;case"product":return u?l:0;default:return r}}static#M(t){return Number.isFinite(t)?Number.isInteger(t)?String(t):(Math.round(t*100)/100).toString():""}#_(){if(this.#w.some(Boolean))for(let t=0;t<this.#w.length;t++){let i=this.#w[t];if(!i)continue;let s=this.#n.map(c=>{let l=c.children[t];if(!l)return null;let u=l.getAttribute("data-rollup-value")??l.getAttribute("data-sort-value")??l.textContent??"",d=parseFloat(u);return Number.isFinite(d)?d:null}),n=s.filter(c=>c!==null);if(!n.length)continue;let r=Math.min(...n),o=Math.max(...n)-r||1;for(let c=0;c<this.#n.length;c++){let l=this.#n[c].children[t];if(!l)continue;let u=s[c];if(u===null){l.removeAttribute("data-heat-level");continue}let d=(u-r)/o;i==="low-good"&&(d=1-d);let h=d<.34?"low":d<.67?"mid":"high";l.setAttribute("data-heat-level",h)}}}#F(){this.#f&&clearTimeout(this.#f),this.#c?.parentElement?.remove(),this.#g?.remove(),this.#d?.remove(),this.#m?.remove(),this.#c=null,this.#g=null,this.#d=null,this.#m=null}#D(t){return this.getAttribute(`data-label-${t}`)||cr[t]||""}#O(t,i,s){let n="other";try{n=new Intl.PluralRules(R(this)).select(i)}catch{}let r=this.getAttribute(`data-label-${t}-${n}`)||this.getAttribute(`data-label-${t}-other`)||cr[`${t}-${n}`]||cr[`${t}-other`];return Pt(r,s)}#$(t){return new Intl.NumberFormat(R(this)).format(t)}#W(){let t=document.createElement("span");t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.setAttribute("data-table-status",""),t.className="visually-hidden",this.appendChild(t),this.#d=t}#C(t){let i=this.#d;i&&(i.textContent=i.textContent===t?`${t}\xA0`:t)}#T(){this.#t.querySelectorAll("thead th[data-sort]").forEach((i,s)=>{let n=i.getAttribute("data-sort"),r=this.#tt(i);this.#i.push({th:i,sortType:n,columnIndex:r}),i.setAttribute("aria-sort","none"),e.#q(i),i.dataset.columnIndex=r,this.listen(i,"click",this.#I)})}static#q(t){if(t.querySelector(":scope > button[data-sort-button]"))return;let i=document.createElement("button");i.type="button",i.setAttribute("data-sort-button",""),i.append(...t.childNodes),t.appendChild(i)}#tt(t){return[...t.parentElement.children].indexOf(t)}#I=t=>{let i=t.currentTarget,s=t.target.closest?.("a, input, select, textarea, button:not([data-sort-button])");if(s&&i.contains(s))return;let n=parseInt(i.dataset.columnIndex,10);this.#H(n)};#L(t,i,s){let n=this.#s;if(n.length<2)return!0;let r=s==="asc"?1:-1;for(let a=1;a<n.length;a++){let o=this.#X(n[a-1].children[t],i),c=this.#X(n[a].children[t],i);if((typeof o=="string"?o.localeCompare(c)*r:(o-c)*r)>0)return!1}return!0}#H(t){let i=this.#i.find(r=>r.columnIndex===t);if(!i)return;let s;this.#o===t?s=this.#r==="asc"?"desc":"asc":this.#L(t,i.sortType,"asc")?s="desc":s="asc",this.#i.forEach(({th:r})=>{r.setAttribute("aria-sort","none")}),i.th.setAttribute("aria-sort",s==="asc"?"ascending":"descending"),this.#o=t,this.#r=s,this.#Y(t,s,i.sortType),this.#a=1,this.#it();let n=i.th.textContent.trim();this.#C(Pt(this.#D("sorted"),{column:n,direction:this.#D(s==="asc"?"ascending":"descending")})),this.dispatchEvent(new CustomEvent("data-table:sort",{detail:{column:t,direction:s,columnName:n},bubbles:!0}))}#Y(t,i,s){let n=i==="asc"?1:-1;this.#s.sort((r,a)=>{let o=r.children[t],c=a.children[t];if(!o||!c)return 0;let l=this.#X(o,s),u=this.#X(c,s),d=0;switch(s){case"number":d=l-u;break;case"date":d=l-u;break;default:d=l.localeCompare(u,void 0,{numeric:!0,sensitivity:"base"});break}return d*n})}#X(t,i){let n=t.getAttribute("data-sort-value")??t.textContent.trim();switch(i){case"number":return parseFloat(n)||0;case"date":return new Date(n).getTime()||0;default:return n.toLowerCase()}}#B(){let t=document.createElement("div");t.setAttribute("data-table-filter","");let i=document.createElement("input");i.type="search",i.setAttribute("data-filter-input",""),i.setAttribute("placeholder",this.#D("placeholder")),i.setAttribute("aria-label",this.#D("filter")),t.appendChild(i),this.insertBefore(t,this.#t),this.#c=i;let s=document.createElement("p");s.setAttribute("data-table-empty",""),s.hidden=!0,s.textContent=this.#D("no-results"),this.#t.after(s),this.#m=s,this.listen(i,"input",this.#z)}#z=t=>{let i=t.target.value;this.#f&&clearTimeout(this.#f),this.#f=setTimeout(()=>{this.#R(i,{announce:!0})},150)};#R(t,{announce:i=!1,keepPage:s=!1}={}){if(this.#u=String(t??"").toLowerCase().trim(),this.#u===""?this.#s=[...this.#n]:this.#s=this.#n.filter(n=>[...n.children].some(a=>(a.getAttribute("data-filter-value")??a.textContent).toLowerCase().includes(this.#u))),this.#o>=0&&this.#r){let n=this.#i.find(r=>r.columnIndex===this.#o);n&&this.#Y(this.#o,this.#r,n.sortType)}if(s?this.#a=Math.min(this.#a,this.totalPages):this.#a=1,this.#it(),i){let n=this.#s.length,r=this.#n.length,a={count:this.#$(n),total:this.#$(r)};this.#C(n===0?this.#D("no-results"):this.#O(this.#u?"filtered":"all",r,a))}this.dispatchEvent(new CustomEvent("data-table:filter",{detail:{query:this.#u,count:this.#s.length},bubbles:!0}))}#Q(){let t=document.createElement("nav");t.setAttribute("data-pagination",""),t.setAttribute("aria-label",this.#D("pagination")),this.appendChild(t),this.#g=t}#G(){for(let t of this.#e.querySelectorAll(":scope > tr[data-expandable]")){let i=t.querySelector('[data-action="toggle-expand"]');i&&i.setAttribute("aria-expanded",String(t.hasAttribute("data-state-expanded")))}this.listen(this.#t,"click",this.#P)}#P=t=>{let i=t.target.closest('[data-action="toggle-expand"]');if(!i)return;let s=i.closest("tr[data-expandable]");if(!s)return;let n=s.hasAttribute("data-state-expanded"),r=s.nextElementSibling;n?(s.removeAttribute("data-state-expanded"),i.setAttribute("aria-expanded","false"),r?.hasAttribute("data-expand-content")&&(r.hidden=!0,r.setAttribute("aria-hidden","true"))):(s.setAttribute("data-state-expanded",""),i.setAttribute("aria-expanded","true"),r?.hasAttribute("data-expand-content")&&(r.hidden=!1,r.removeAttribute("aria-hidden"))),this.dispatchEvent(new CustomEvent("data-table:expand",{detail:{row:s,expanded:!n},bubbles:!0}))};#st(){this.#p=this.#t.querySelector('thead [data-action="select-all"]'),this.#p&&this.listen(this.#p,"change",this.#V),this.listen(this.#e,"change",this.#Z),this.#y=this.querySelector("[data-selected-count]"),this.#U()}#V=t=>{let i=t.target.checked;this.#e.querySelectorAll("tr[data-selectable]").forEach(n=>{let r=n.querySelector('[data-action="select-row"]');i?(n.setAttribute("data-state-selected",""),r&&(r.checked=!0)):(n.removeAttribute("data-state-selected"),r&&(r.checked=!1))}),t.target.indeterminate=!1,this.#K(),this.#J(),this.#et()};#Z=t=>{let i=t.target.closest('[data-action="select-row"]');if(!i)return;let s=i.closest("tr[data-selectable]");s&&(i.checked?s.setAttribute("data-state-selected",""):s.removeAttribute("data-state-selected"),this.#U(),this.#J(),this.#et())};#J(){let t=this.getSelectedRows().length;this.#C(this.#O("selected",t,{count:this.#$(t)}))}#U(){if(!this.#p){this.#K();return}let t=this.#e.querySelectorAll("tr[data-selectable]"),i=this.#e.querySelectorAll("tr[data-selectable][data-state-selected]"),s=t.length,n=i.length;n===0?(this.#p.checked=!1,this.#p.indeterminate=!1):n===s?(this.#p.checked=!0,this.#p.indeterminate=!1):(this.#p.checked=!1,this.#p.indeterminate=!0),this.#K()}#K(){let i=this.#e.querySelectorAll("tr[data-selectable][data-state-selected]").length;this.#y&&(this.#y.textContent=i)}#et(){let t=[...this.#e.querySelectorAll("tr[data-selectable][data-state-selected]")];this.dispatchEvent(new CustomEvent("data-table:selection",{detail:{count:t.length,rows:t},bubbles:!0}))}#j(){if(!this.#g||this.#l<=0)return;let t=this.#g,i=Math.ceil(this.#s.length/this.#l),s=document.activeElement,n=null;if(s instanceof HTMLElement&&t.contains(s)&&(n=s.hasAttribute("data-pagination-prev")?"prev":s.hasAttribute("data-pagination-next")?"next":"page"),t.replaceChildren(),i<=1)return;let r=document.createElement("button");r.type="button",r.textContent=this.#D("prev"),r.setAttribute("data-pagination-prev",""),r.disabled=this.#a===1,r.addEventListener("click",()=>this.goToPage(this.#a-1)),t.appendChild(r),this.#nt(i).forEach(c=>{if(c==="..."){let l=document.createElement("span");l.textContent="...",l.setAttribute("data-pagination-ellipsis",""),t.appendChild(l)}else{let l=document.createElement("button");l.type="button",l.textContent=this.#$(c),l.setAttribute("data-pagination-page",""),c===this.#a&&(l.setAttribute("aria-current","page"),l.setAttribute("data-current","")),l.addEventListener("click",()=>this.goToPage(c)),t.appendChild(l)}});let o=document.createElement("button");if(o.type="button",o.textContent=this.#D("next"),o.setAttribute("data-pagination-next",""),o.disabled=this.#a===i,o.addEventListener("click",()=>this.goToPage(this.#a+1)),t.appendChild(o),n){let c=t.querySelector('[aria-current="page"]');(n==="prev"&&!r.disabled?r:n==="next"&&!o.disabled?o:c)?.focus()}}#nt(t){let i=this.#a,s=[];if(t<=7)for(let n=1;n<=t;n++)s.push(n);else{s.push(1),i>3&&s.push("...");let n=Math.max(2,i-1),r=Math.min(t-1,i+1);for(let a=n;a<=r;a++)s.push(a);i<t-2&&s.push("..."),s.push(t)}return s}#it(){this.#n.forEach(s=>{s.setAttribute("data-state-hidden",""),this.#rt(s)?.setAttribute("data-state-hidden","")});let t;if(this.#l>0){let s=(this.#a-1)*this.#l,n=s+this.#l;t=this.#s.slice(s,n)}else t=this.#s;t.forEach(s=>{s.removeAttribute("data-state-hidden");let n=this.#rt(s);this.#e.appendChild(s),n&&(n.removeAttribute("data-state-hidden"),this.#e.appendChild(n))}),this.#s.forEach(s=>{if(s.hasAttribute("data-state-hidden")){let n=this.#rt(s);this.#e.appendChild(s),n&&this.#e.appendChild(n)}});let i=new Set(this.#s);this.#n.forEach(s=>{if(!i.has(s)){let n=this.#rt(s);this.#e.appendChild(s),n&&this.#e.appendChild(n)}}),this.#m&&(this.#m.textContent=this.#D("no-results"),this.#m.hidden=!(this.#u&&this.#s.length===0&&this.#n.length>0)),this.#j()}#rt(t){if(!t.hasAttribute("data-expandable"))return null;let i=t.nextElementSibling;return i?.hasAttribute("data-expand-content")?i:null}goToPage(t){if(this.#l<=0)return;let i=Math.max(1,Math.ceil(this.#s.length/this.#l)),s=Math.max(1,Math.min(Math.trunc(Number(t))||1,i));s!==this.#a&&(this.#a=s,this.#it(),this.dispatchEvent(new CustomEvent("data-table:page",{detail:{page:this.#a},bubbles:!0})))}setFilter(t){this.#c&&(this.#c.value=t),this.#R(t,{announce:!0})}refresh(){this.#e&&(this.#n=[...this.#e.querySelectorAll(lr)],this.#N(),this.#_(),this.#R(this.#u,{keepPage:!0}),this.#U())}get currentPage(){return this.#a}get totalPages(){return this.#l<=0?1:Math.max(1,Math.ceil(this.#s.length/this.#l))}get filteredCount(){return this.#s.length}get totalCount(){return this.#n.length}getSelectedRows(){return this.#e?[...this.#e.querySelectorAll("tr[data-selectable][data-state-selected]")]:[]}};E("data-table",ur);We();var dv={trigger:"Search",dialog:"Site search",placeholder:"Search documentation...",input:"Search",results:"Search results",searching:"Searching...",empty:"No results found",count:"{count} results","count-one":"1 result","count-more":"{count} of {total} results",unavailable:"Search unavailable",error:"Search error. Please try again.",untitled:"Untitled",navigate:"to navigate",select:"to select",close:"to close",dismiss:"Close search",browse:"Browse instead",powered:"Powered by"},hv=0,Yi=new Set,Ge=null;function fv(e){return typeof e.checkVisibility=="function"?e.checkVisibility():e.getClientRects().length>0}function pv(){let e=[...Yi].filter(s=>s.isConnected),t=e.find(s=>s.isOpen);if(t){t.close();return}(e.find(s=>fv(s))??e[0])?.open()}function mv(e){Yi.add(e),!Ge&&!su().includes("meta+k")&&(Ge=Et("meta+k",pv,{global:!0}))}function gv(e){Yi.delete(e),Yi.size===0&&Ge&&(Ge(),Ge=null)}function j(e,t={},i=[]){let s=document.createElement(e);for(let[n,r]of Object.entries(t))s.setAttribute(n,r);return s.append(...i),s}function bv(e){let t=document.createDocumentFragment();if(!e||typeof e!="string")return t;let i=document.createElement("template");i.innerHTML=e;let s=(n,r)=>{for(let a of n.childNodes)if(a.nodeType===Node.TEXT_NODE)r.appendChild(document.createTextNode(a.textContent??""));else if(a.nodeType===Node.ELEMENT_NODE)if(a.localName==="mark"){let o=document.createElement("mark");s(a,o),r.appendChild(o)}else s(a,r)};return s(i.content,t),t}function yv(e){if(typeof e!="string"||!e)return null;try{let t=new URL(e,document.baseURI);return t.protocol!=="http:"&&t.protocol!=="https:"||t.origin!==location.origin?null:t.href}catch{return null}}var fr=class e extends k{static#t=150;static#e=8;#i=null;#n=null;#s=null;#o=null;#r=null;#a=null;#l=[];#c=-1;#g=!1;#f=0;#u="";#p=null;#y=!1;#d=null;setup(){this.#u||(this.#u=`site-search-${++hv}`),this.#h(),this.#E(),mv(this)}teardown(){gv(this),this.#g&&(document.body.style.overflow="",this.removeAttribute("open"),this.#i?.setAttribute("aria-expanded","false"),this.#g=!1),this.#O(),this.#f++,this.#l=[],this.#c=-1,this.#r&&this.append(this.#r),this.#r=null,this.#n?.remove(),this.#n=null}#m(t){let i=`data-label-${t}`;return this.getAttribute(i)??dv[t]}get value(){return this.#s?.value??""}set value(t){if(!this.#s)return;let i=t==null?"":String(t);this.#s.value!==i&&(this.#s.value=i,this.#s.dispatchEvent(new Event("input",{bubbles:!0})),this.dispatchEvent(new CustomEvent("site-search:change",{detail:{value:i,source:"api"},bubbles:!0})))}get results(){return[...this.#l]}#h(){this.#i=this.querySelector(":scope > [data-trigger]"),this.#i||(this.#i=this.querySelector(":scope > button")),this.#i||(this.#i=j("button",{type:"button","data-trigger":""},[j("icon-wc",{name:"search",label:this.#m("trigger")})]),this.prepend(this.#i));let t=`${this.#u}-dialog`,i=`${this.#u}-results`;this.#i.setAttribute("aria-haspopup","dialog"),this.#i.setAttribute("aria-expanded","false"),this.#i.setAttribute("aria-controls",t),this.#s=j("input",{type:"search",name:"search",class:"input",placeholder:this.#m("placeholder"),autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"combobox","aria-label":this.#m("input"),"aria-autocomplete":"list","aria-controls":i,"aria-expanded":"false"}),this.#o=j("div",{class:"results",id:i,role:"listbox","aria-label":this.#m("results")}),this.#a=j("p",{class:"search-status",role:"status"});let s=n=>j("kbd",{},[n]);if(this.#n=j("dialog",{class:"dialog",id:t,"aria-label":this.#m("dialog")},[j("search",{class:"search"},[j("div",{class:"input-wrapper"},[j("icon-wc",{name:"search",class:"icon"}),this.#s,j("button",{type:"button",class:"shortcut","aria-label":this.#m("dismiss")},[j("kbd",{},["Esc"]),j("icon-wc",{name:"x",size:"sm"})])]),this.#a,this.#o]),j("div",{class:"footer"},[j("span",{class:"hint"},[s("\u2191"),s("\u2193"),` ${this.#m("navigate")} `,s("\u21B5"),` ${this.#m("select")} `,s("esc"),` ${this.#m("close")}`]),j("span",{class:"powered"},[`${this.#m("powered")} `,j("a",{href:"https://pagefind.app",target:"_blank",rel:"noopener"},["Pagefind"])])])]),this.#r=this.querySelector(":scope > nav[data-browse]"),this.#r){let n=this.#r.getAttribute("aria-label")||this.#m("browse");this.#r.setAttribute("aria-label",n);let r=j("p",{class:"browse-title","aria-hidden":"true"},[n]);this.#n.querySelector(".search")?.after(j("div",{class:"browse"},[r,this.#r]))}this.appendChild(this.#n)}#E(){this.listen(this.#i,"click",this.#v),this.#n.addEventListener("close",this.#S),this.#n.addEventListener("click",this.#b),this.#s.addEventListener("input",this.#k),this.#s.addEventListener("keydown",this.#w),this.#o.addEventListener("click",this.#A)}#v=t=>{t.stopPropagation(),this.open()};#S=()=>{this.#g&&!this.#n?.open&&this.#$()};#b=t=>{if(t.target.closest?.(".shortcut")){this.close();return}if(t.target!==this.#n)return;let i=this.#n.getBoundingClientRect();t.clientX>=i.left&&t.clientX<=i.right&&t.clientY>=i.top&&t.clientY<=i.bottom||this.close()};#k=()=>{this.#O(),this.setState("input-debounce-pending",!0),this.#d=setTimeout(()=>{this.#d=null,this.setState("input-debounce-pending",!1),this.#_(this.#s.value)},e.#t)};#w=t=>{switch(t.key){case"ArrowDown":t.preventDefault(),this.#D(this.#c+1);break;case"ArrowUp":t.preventDefault(),this.#D(this.#c-1);break;case"Escape":t.preventDefault(),this.close();break;case"Enter":{t.preventDefault();let i=this.#c>=0?this.#c:0,s=this.#o.querySelector(`[data-result-index="${i}"]`)?.getAttribute("href");s&&(this.close(),window.location.assign(s));break}}};#A=t=>{t.target.closest("[data-result-index]")&&(t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||setTimeout(()=>this.close(),0))};get#N(){let t=this.getAttribute("data-pagefind-path")||"/pagefind/";return t.endsWith("/")?t:`${t}/`}async#x(){if(this.#p||this.#y)return;let t=new URL(this.#N,document.baseURI),i=this.getAttribute("data-base-url")??new URL("..",t).pathname;try{let s=await import(new URL("pagefind.js",t).href);await s.options({excerptLength:20,baseUrl:i}),this.#p=s}catch{this.#y=!0,console.warn(`[site-search] Pagefind not found at ${t.pathname}pagefind.js. Run \`npm run search:index\` after building, or set data-pagefind-path.`)}}#M(t){this.#a&&(this.#a.textContent=t)}async#_(t){let i=++this.#f;if(!t.trim()){this.#F([]);return}if(this.#M(this.#m("searching")),await this.#x(),i===this.#f){if(!this.#p){this.#l=[],this.#F([]),this.#M(this.#m("unavailable"));return}try{let s=await this.#p.search(t),n=await Promise.all((s?.results??[]).slice(0,e.#e).map(r=>r.data()));if(i!==this.#f)return;this.#l=n,this.#F(n,s?.results?.length??n.length)}catch(s){if(i!==this.#f)return;console.error("[site-search] Search error:",s),this.#l=[],this.#F([]),this.#M(this.#m("error"))}}}#F(t,i=t.length){this.#c=-1,this.#s.removeAttribute("aria-activedescendant");let s=[];for(let n of t){let r=yv(n?.url);if(!r)continue;let a=j("span",{class:"result-title"});a.textContent=String(n.meta?.title||this.#m("untitled"));let o=j("span",{class:"result-excerpt"});o.append(bv(n.excerpt||"")),s.push(j("a",{id:`${this.#u}-result-${s.length}`,href:r,class:"result",role:"option","aria-selected":"false","data-result-index":String(s.length),tabindex:"-1"},[a,o]))}if(this.#o.replaceChildren(...s),this.#s.setAttribute("aria-expanded",s.length?"true":"false"),!this.#s.value.trim())this.#M("");else if(s.length===0)this.#M(this.#m("empty"));else{let r=i>e.#e&&i>s.length?this.#m("count-more"):s.length===1?this.#m("count-one"):this.#m("count");this.#M(r.replace("{count}",String(s.length)).replace("{total}",String(i)))}}#D(t){let i=this.#o.querySelectorAll("[data-result-index]");if(i.length===0)return;t<0&&(t=i.length-1),t>=i.length&&(t=0);for(let n of i)n.removeAttribute("data-active"),n.setAttribute("aria-selected","false");this.#c=t;let s=i[t];s.setAttribute("data-active",""),s.setAttribute("aria-selected","true"),this.#s.setAttribute("aria-activedescendant",s.id),s.scrollIntoView({block:"nearest"})}#O(){this.#d&&(clearTimeout(this.#d),this.#d=null),this.setState("input-debounce-pending",!1)}open(){if(!(this.#g||!this.#n)){if(this.#g=!0,this.setAttribute("open",""),this.#i?.setAttribute("aria-expanded","true"),document.body.style.overflow="hidden",!this.#n.open)try{this.#n.showModal()}catch{this.#n.setAttribute("open","")}this.#s.focus(),this.#s.select(),this.#x(),this.dispatchEvent(new CustomEvent("site-search:open",{bubbles:!0}))}}close(){this.#g&&(this.#n?.open&&this.#n.close(),this.#g&&this.#$())}#$(){this.#g=!1,this.removeAttribute("open"),this.#i?.setAttribute("aria-expanded","false"),document.body.style.overflow="",this.#O(),this.#f++,this.#l=[],this.#c=-1,this.#s&&(this.#s.value="",this.#s.removeAttribute("aria-activedescendant"),this.#s.setAttribute("aria-expanded","false")),this.#o?.replaceChildren(),this.#M(""),this.#i?.focus(),this.dispatchEvent(new CustomEvent("site-search:close",{bubbles:!0}))}get isOpen(){return this.#g}};E("site-search",fr);Rt();Rt();var vv=/^[a-zA-Z_$][a-zA-Z0-9_$]*(\.[a-zA-Z_$][a-zA-Z0-9_$]*|\[\d+\])*$/;function ru(e){return!e||typeof e!="string"?!1:vv.test(e.trim())}function Ke(e,t){if(!ru(t)){console.warn(`[card-list] Unsafe property path rejected: "${t}"`);return}let s=String(t).replace(/\[(\d+)\]/g,".$1").split("."),n=e;for(let r of s){if(n==null)return;n=n[r]}return n}function wv(e){return e?e.split(",").map(t=>{let[i,s]=t.split(":").map(n=>n.trim());return{attr:(i||"").toLowerCase(),path:s}}).filter(({attr:t,path:i})=>t&&i):[]}var Av=new Set(["href","src","action","formaction","xlink:href","poster","cite","background","ping","data","manifest","longdesc","codebase"]),au=new Set(["srcdoc","style","is"]),Ev=new Set(["http:","https:","mailto:","tel:"]);function ou(e){let t=String(e).replace(/[\u0000-\u0020\u007f]+/g,"");if(!t)return!0;let i=/^([a-z][a-z0-9+.-]*):/i.exec(t);return i?Ev.has(`${i[1].toLowerCase()}:`):!0}function kv(e){return String(e).split(",").every(t=>ou(t.trim().split(/\s+/)[0]||""))}function Sv(e,t){return e.startsWith("on")||au.has(e)||!/^[a-z_][a-z0-9_.:-]*$/.test(e)?!1:e==="srcset"||e==="imagesrcset"?kv(t):Av.has(e)?ou(t):!0}function xv(e,t){let i=new Set;return e.map((s,n)=>{let r=s!=null&&typeof s=="object"?s[t]:void 0,a=r==null?null:`k:${String(r)}`;return a==null||i.has(a)?`i:${n}`:(i.add(a),a)})}var nu=":scope > [data-card-list-status]",pr=class extends k{#t=null;#e=[];#i="id";#n=new Map;#s=!1;#o=null;#r=null;static get observedAttributes(){return["src","data-items","data-key"]}setup(){if(this.#t=this.querySelector(":scope > template")||this.querySelector("template"),!this.#t)return console.warn("[card-list] No template found"),!1;if(this.#i=this.getAttribute("data-key")||"id",this.#s)return this.#o&&this.#u(this.#o),this.#o=null,!0;let t=this.getAttribute("data-items");if(t)return this.#a(t),!0;let i=this.getAttribute("src");return i&&this.#f(i),!0}teardown(){this.#l()}attributeChangedCallback(t,i,s){i!==s&&this.hasAttribute("data-upgraded")&&(t==="data-items"?s&&this.#a(s):t==="src"?s?this.#f(s):this.#l():t==="data-key"&&(this.#i=s||"id",this.#u("attribute")))}#a(t){this.#l();try{let i=JSON.parse(t);this.#e=Array.isArray(i)?i:[],this.#s=!0,this.#u("attribute")}catch(i){console.error("[card-list] Invalid JSON in data-items:",i)}}#l(){this.#r&&(this.#r.abort(),this.#r=null,this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"),this.#g(""))}#c(){let t=this.querySelector(nu);return t||(t=document.createElement("p"),t.setAttribute("role","status"),t.setAttribute("data-card-list-status",""),this.append(t)),t}#g(t){let i=this.querySelector(nu);!i&&!t||((i||this.#c()).textContent=t)}async#f(t){this.#l();let i=new AbortController;this.#r=i,this.removeAttribute("data-error"),this.setAttribute("data-loading",""),this.setAttribute("aria-busy","true"),this.#c().textContent="Loading\u2026";try{let s=await fetch(t,{signal:i.signal});if(!s.ok)throw new Error(`HTTP ${s.status}`);let n=await s.json();if(i.signal.aborted)return;this.#e=Array.isArray(n)?n:n?.items||n?.data||[],this.#s=!0,this.#g(""),this.#u("attribute")}catch(s){if(i.signal.aborted)return;let n=s instanceof Error?s.message:String(s);console.error("[card-list] Fetch error:",s),this.setAttribute("data-error",n),this.#g(`Error: ${n}`)}finally{this.#r===i&&(this.#r=null,this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"))}}#u(t){if(!this.#t)return;this.querySelectorAll(":scope > [data-fallback]").forEach(n=>n.remove());let i=this.#t;if([...i.content.children].length!==1){this.querySelectorAll(":scope > :not(template, [data-card-list-status])").forEach(r=>r.remove()),this.#n.clear();let n=document.createDocumentFragment();for(let r of this.#e){let a=i.content.cloneNode(!0);this.#p(a,r),n.appendChild(a)}this.prepend(n)}else{let n=xv(this.#e,this.#i),r=this.#e.map((c,l)=>({item:c,key:n[l]})),a=Vi({newItems:r,nodes:this.#n,keyOf:c=>c.key,renderItem:c=>{let u=i.content.cloneNode(!0).firstElementChild;return this.#p(u,c.item),u},containerFor:()=>this}),o=new Set(a.added);for(let{item:c,key:l}of r){if(o.has(l))continue;let u=this.#n.get(l);u&&this.#p(u,c)}}this.dispatchEvent(new CustomEvent("card-list:rendered",{detail:{count:this.#e.length},bubbles:!0})),this.dispatchEvent(new CustomEvent("card-list:items-changed",{detail:{items:this.#e,source:t},bubbles:!0}))}#p(t,i){let s=n=>{let r=[...t.querySelectorAll(n)];return t instanceof Element&&t.matches(n)&&r.unshift(t),r};s("[data-field]").forEach(n=>{let r=Ke(i,n.getAttribute("data-field"));n.textContent=r??""}),s("[data-field-attr]").forEach(n=>{for(let{attr:r,path:a}of wv(n.getAttribute("data-field-attr"))){if(!ru(a))continue;let o=Ke(i,a);if(r.startsWith("on")||au.has(r)){console.warn(`[card-list] Refusing to bind "${r}" from data`);continue}let c=r.startsWith("aria-");o==null||o===!1&&!c?n.removeAttribute(r):Sv(r,o)?n.setAttribute(r,o===!0&&!c?"":String(o)):(console.warn(`[card-list] Unsafe value refused for "${r}"`),n.removeAttribute(r))}}),s("[data-field-html]").forEach(n=>{n.replaceChildren(ne(Ke(i,n.getAttribute("data-field-html"))))}),s("[data-field-if]").forEach(n=>{n.hidden=!Ke(i,n.getAttribute("data-field-if"))}),s("[data-field-unless]").forEach(n=>{n.hidden=!!Ke(i,n.getAttribute("data-field-unless"))})}get items(){return this.#e}set items(t){this.#l(),this.#e=Array.isArray(t)?t:[],this.#s=!0,this.#t&&this.hasAttribute("data-upgraded")?this.#u("api"):this.#o="api"}};E("card-list",pr);var cu=`
134
+ `;Rt();var Yn="lucide",xy=new Set([Yn,"custom"]),Pl=new Map,Gn=new Set,Kn=new Map,Ol=new Map;function Cy(e,t){let i=`${e}/${t}`,s=Ol.get(i);return s||(s=fetch(`${i}.json`).then(n=>n.ok?n.json():null).then(n=>Array.isArray(n)?new Set(n.map(String)):null).catch(()=>null),Ol.set(i,s)),s}function Ty(e){if(!e.includes("<svg"))return null;let t=new DOMParser().parseFromString(e,"image/svg+xml"),i=t.documentElement;return!i||i.localName!=="svg"||t.querySelector("parsererror")?null:(Rl(i),i.removeAttribute("width"),i.removeAttribute("height"),document.importNode(i,!0))}function ql(e){let t=Pl.get(e);if(t)return Promise.resolve(t);if(Gn.has(e))return Promise.reject(new Error(`Icon not found: ${e}`));let i=Kn.get(e);return i||(i=fetch(e).then(async s=>{if(!s.ok)throw Gn.add(e),new Error(`Icon not found: ${e}`);let n=Ty(await s.text());if(!n)throw Gn.add(e),new Error(`Invalid SVG: ${e}`);return Pl.set(e,n),n}).finally(()=>Kn.delete(e)),Kn.set(e,i)),i}async function Ly(e,t,i){if(t!==Yn){let s=xy.has(t)?null:await Cy(e,t);if(!s||s.has(i))try{return await ql(ie({basePath:e,set:t,name:i}))}catch{}}return ql(ie({basePath:e,set:Yn,name:i}))}var Xn=class e extends HTMLElement{static#t=new Set;static#e=null;static#i(){e.#e||(e.#e=new MutationObserver(t=>{let i=document.documentElement;for(let s of t){let n=s.target;for(let r of e.#t)(n===i||n.contains(r))&&r.#c()}}),e.#e.observe(document.documentElement,{subtree:!0,attributes:!0,attributeFilter:["data-icon-set","data-icon-path"]}))}static get observedAttributes(){return["name","set","label","base-path"]}#n=0;#s="";#o="";#r="";#a=null;constructor(){super();let t=this.attachShadow({mode:"open"});t.innerHTML=`<style>${Nl}</style><slot></slot>`}get name(){return this.getAttribute("name")||""}get set(){return this.getAttribute("set")||Oi(this)}get size(){return this.getAttribute("size")||"md"}get label(){return this.getAttribute("label")}get basePath(){return this.getAttribute("base-path")||qi()}get iconPath(){return ie({basePath:this.basePath,set:this.set,name:this.name})}connectedCallback(){e.#t.add(this),e.#i(),this.#c(),this.#a=()=>{let t=this.#l();t&&(t.style.stroke="none",requestAnimationFrame(()=>{t.style.stroke=""}))},window.addEventListener("vb:theme-change",this.#a),this.setAttribute("data-upgraded","")}disconnectedCallback(){this.removeAttribute("data-upgraded"),e.#t.delete(this),this.#a&&(window.removeEventListener("vb:theme-change",this.#a),this.#a=null)}attributeChangedCallback(t,i,s){i===s||!this.isConnected||(t==="label"?this.#f():this.#c())}#l(){return this.shadowRoot?.querySelector("svg")??null}#c(){let t=this.name,i=`${this.basePath}|${this.set}|${t}`;if(i===this.#s){this.#f();return}if(i===this.#o||i===this.#r)return;let s=++this.#n;if(this.#o=i,this.#r="",!t){this.#o="",this.#u("No icon name specified",i);return}let n=this.basePath,r=this.set;Ly(n,r,t).then(a=>{s===this.#n&&(this.#o="",this.#g(a.cloneNode(!0),i))},a=>{s===this.#n&&(this.#o="",this.#u(a.message,i))})}#g(t,i){let s=this.shadowRoot,n=this.#l()||s.querySelector("slot");n?n.replaceWith(t):s.append(t),this.#s=i,this.removeAttribute("data-error"),this.#f()}#f(){let t=this.#l();if(!t)return;let i=this.label;i?(t.setAttribute("role","img"),t.setAttribute("aria-label",i),t.removeAttribute("aria-hidden")):(t.removeAttribute("role"),t.removeAttribute("aria-label"),t.setAttribute("aria-hidden","true"))}#u(t,i){this.#r=i,this.setAttribute("data-error","true"),console.warn(`icon-wc: ${t}`);let s=this.#l();s&&s.replaceWith(document.createElement("slot")),this.#s=""}};A("icon-wc",Xn);re();var Py="dialog, [data-toc-ignore], browser-window";function ji(e){return!!e.closest(Py)}function Ul(e){if(typeof e.checkVisibility!="function"||e.checkVisibility()||e.closest("details:not([open])")?.checkVisibility())return!0;let i=e.closest('[hidden="until-found"]');return!!i?.parentElement&&(i.parentElement.checkVisibility?.()??!0)}var Oy=["h2","h3"],qy=1500,jy=0;function Hy(e){let t=String(e).normalize("NFC").toLowerCase().trim().replace(/[^\p{L}\p{M}\p{N}\s_-]/gu,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");return Array.from(t).slice(0,50).join("").replace(/-$/,"")||"section"}function zy(e,t){let i=e,s=1;for(;t(i);)i=`${e}-${s++}`;return i}function Vy(e){let t=(e??"").split(",").map(i=>i.trim().toLowerCase()).filter(i=>/^h[1-6]$/.test(i));return t.length?[...new Set(t)]:Oy}var Qn=class extends E{static get observedAttributes(){return["levels","data-label-anchor"]}#t;#e=new WeakMap;setup(){this.#s(),this.listen(this,"click",this.#a),this.#t=new MutationObserver(t=>{t.some(i=>i.type==="childList")&&this.#s()}),this.#t.observe(this,{childList:!0,subtree:!0})}teardown(){this.#t?.disconnect(),this.#t=void 0}attributeChangedCallback(t,i,s){i===s||!this.hasAttribute("data-upgraded")||this.#s()}get#i(){return this.getAttribute("data-label-anchor")||"Copy link to"}#n(t){return t.closest("heading-links")!==this?!1:!ji(t)}#s(){let t=Vy(this.getAttribute("levels")).join(","),i=this.#i;for(let s of this.querySelectorAll(".heading-anchor[data-heading-links]")){if(s.closest("heading-links")!==this)continue;let n=s.parentElement;!n||!n.matches(t)||!this.#n(n)?this.#r(n,s):s.getAttribute("aria-label")!==i&&s.setAttribute("aria-label",i)}for(let s of this.querySelectorAll(t))this.#n(s)&&this.#o(s)}#o(t){if(t.id||(t.id=zy(Hy(t.textContent??""),a=>!!document.getElementById(a))),t.querySelector(":scope > .heading-anchor"))return;let i=++jy,s=document.createElement("span");s.className="heading-text",s.id=`heading-links-text-${i}`,s.append(...t.childNodes),t.append(s),!t.hasAttribute("aria-label")&&!t.hasAttribute("aria-labelledby")&&(t.setAttribute("aria-labelledby",s.id),t.setAttribute("data-heading-links-labelled",""));let n=document.createElement("a");n.className="heading-anchor",n.id=`heading-links-anchor-${i}`,n.dataset.headingLinks="",n.href=`#${t.id}`,n.setAttribute("aria-label",this.#i),n.setAttribute("aria-labelledby",`${n.id} ${s.id}`);let r=document.createElement("icon-wc");r.setAttribute("name","link"),r.setAttribute("size","sm"),n.append(r),t.append(n),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1")}#r(t,i){if(i.remove(),!t)return;let s=t.querySelector(":scope > .heading-text");s&&s.replaceWith(...s.childNodes),t.hasAttribute("data-heading-links-labelled")&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("data-heading-links-labelled"))}#a=t=>{let i=t,n=(i.target instanceof Element?i.target:null)?.closest("a.heading-anchor[data-heading-links]");if(!n||n.closest("heading-links")!==this||i.defaultPrevented||i.button!==0||i.metaKey||i.ctrlKey||i.shiftKey||i.altKey)return;let r=n.parentElement;r?.id&&(i.preventDefault(),this.#l(r,n))};async#l(t,i){Tn(t,t.id);let s=new URL(document.URL);if(s.hash=t.id,this.dispatchEvent(new CustomEvent("heading-links:navigate",{bubbles:!0,detail:{id:t.id,url:s.href,heading:t}})),!await gt(s.href,{announceMessage:this.getAttribute("data-label-copied")||"Link copied to clipboard"}))return;let r=i.querySelector("icon-wc");i.dataset.state="copied",r?.setAttribute("name","check"),clearTimeout(this.#e.get(i)),this.#e.set(i,setTimeout(()=>{delete i.dataset.state,r?.setAttribute("name","link"),this.#e.delete(i)},qy))}};A("heading-links",Qn);var er=class extends E{#t;#e=[];#i=new Map;#n;#s=null;#o=0;#r=0;#a;#l=0;#c=!1;setup(){this.#n=window.matchMedia("(min-width: 64rem)"),this.listen(this.#n,"change",this.#d),this.listen(window,"resize",this.#m),this.listen(window,"hashchange",this.#h),this.listen(this,"click",this.#E),this.#r=requestAnimationFrame(()=>{this.#r=0,this.#f()})}teardown(){cancelAnimationFrame(this.#r),this.#r=0,cancelAnimationFrame(this.#l),this.#l=0,clearTimeout(this.#o),this.#g()}get entries(){return this.#e.map(t=>({id:t.id||void 0,text:t.textContent?.trim()||"",level:parseInt(t.tagName.slice(1),10)||0}))}refresh(){this.isConnected&&(cancelAnimationFrame(this.#r),this.#r=0,this.#f())}#g(){this.#t?.disconnect(),this.#t=void 0,this.#a?.disconnect(),this.#a=void 0;for(let t of this.querySelectorAll(":scope > [data-page-toc-generated]"))t.remove();this.#e=[],this.#i.clear(),this.#s=null,this.#c=!1}#f(){this.#g(),this.#c=this.#u(),this.#c?this.#p():(this.#N(),this.#A()),this.#s&&this.#y()&&(this.#s.open=!0),this.#_(),this.#v()}#u(){return Array.from(this.querySelectorAll("nav, details")).some(t=>!t.closest("[data-page-toc-generated]"))}#p(){this.#s=this.querySelector("details");for(let t of this.querySelectorAll('a[href^="#"]')){let i=tr(t.getAttribute("href")?.slice(1)||"");if(!i)continue;let s=document.getElementById(i);!s||this.#i.has(i)||(this.#e.push(s),this.#i.set(i,t),t.classList.add("link"))}}#y(){return this.#n?.matches??!1}#d=t=>{t.matches&&this.#s&&(this.#s.open=!0)};#m=()=>{clearTimeout(this.#o),this.#o=window.setTimeout(()=>this.#v(),150)};#h=()=>{this.#v()};#E=t=>{let i=t.target instanceof Element?t.target:null;if(!i)return;let s=i.closest("summary");if(s&&this.#s&&s.parentElement===this.#s&&this.#y()){t.preventDefault();return}let n=i.closest('a[href^="#"]');if(!n||!this.contains(n)||t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;let r=tr(n.getAttribute("href")?.slice(1)||"");if(this.#i.get(r)!==n)return;let a=document.getElementById(r);a&&(t.preventDefault(),this.#M(a))};#v(){let t=tr(window.location.hash.slice(1));t&&this.#i.has(t)&&this.#S(t)}#S(t){for(let s of this.#i.values())s.classList.remove("active"),s.removeAttribute("aria-current");let i=this.#i.get(t);i&&(i.classList.add("active"),i.setAttribute("aria-current","true"))}#b(){return(this.getAttribute("levels")||"h2,h3").split(",").map(t=>t.trim().toLowerCase())}#k(){return document.querySelector(this.getAttribute("scope")||"main")}#w(t){return Array.from(t.querySelectorAll(this.#b().join(","))).filter(i=>i.id&&!this.contains(i)&&!ji(i)&&Ul(i))}#A(){let t=this.#k();t&&(this.#a=new MutationObserver(i=>{i.every(s=>this.contains(s.target))||this.#l||(this.#l=requestAnimationFrame(()=>{this.#l=0;let s=this.#w(t);s.length===this.#e.length&&s.every((r,a)=>r===this.#e[a]&&this.#i.has(r.id))||this.#f()}))}),this.#a.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-toc-ignore","id","hidden"]}))}#N(){let t=this.#b(),i=this.dataset.title||"On this page",s=this.#k();if(!s||(this.#e=this.#w(s),this.#e.length===0))return;let n={depth:-1,children:[]},r=[n];for(let u of this.#e){let d=t.indexOf(u.tagName.toLowerCase());for(;r[r.length-1].depth>=d;)r.pop();let h={heading:u,depth:d,children:[]};r[r.length-1].children.push(h),r.push(h)}let a=u=>{let d=document.createElement("ul");d.className="list";for(let h of u){let f=document.createElement("li");f.className="item",f.dataset.level=String(h.depth);let p=document.createElement("a");p.href=`#${h.heading.id}`,p.className="link",p.textContent=this.#x(h.heading),f.appendChild(p),h.children.length&&f.appendChild(a(h.children)),d.appendChild(f),this.#i.set(h.heading.id,p)}return d},o=document.createElement("details");o.className="details",o.setAttribute("data-page-toc-generated",""),o.open=!0;let c=document.createElement("summary");c.className="summary",c.textContent=i,o.appendChild(c);let l=document.createElement("nav");l.className="nav",l.setAttribute("aria-label",i),l.appendChild(a(n.children)),o.appendChild(l),this.#s=o,this.appendChild(o)}#x(t){let i=t.cloneNode(!0);return i.querySelectorAll(".heading-anchor").forEach(n=>n.remove()),i.textContent.trim()}#M(t){let i=new URL(window.location.href);i.hash=t.id,window.history.pushState(null,"",i);let s=window.matchMedia("(prefers-reduced-motion: reduce)").matches;t.scrollIntoView({behavior:s?"auto":"smooth",block:"start"}),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),t.focus({preventScroll:!0}),this.#S(t.id),this.dispatchEvent(new CustomEvent("page-toc:navigate",{bubbles:!0,detail:{id:t.id}}))}#_(){if(this.#e.length===0)return;let t=new Set;this.#t=new IntersectionObserver(i=>{for(let s of i)s.isIntersecting?t.add(s.target.id):t.delete(s.target.id);this.#F(t)},{rootMargin:"-80px 0px -70% 0px",threshold:0});for(let i of this.#e)this.#t.observe(i)}#F(t){for(let i of this.#e)if(t.has(i.id)){this.#S(i.id);return}this.#v()}};function tr(e){try{return decodeURIComponent(e)}catch{return e}}A("page-toc",er);function Hi({newItems:e,nodes:t,keyOf:i,renderItem:s,containerFor:n}){let r=[],a=[],o=[],c=new Set;for(let u of e)c.add(i(u));for(let[u,d]of[...t])c.has(u)||(d.remove(),t.delete(u),o.push(u));let l=new Map;for(let u of e){let d=i(u),h=t.get(d)||null,f=n(u,h);l.has(f)||l.set(f,[]),l.get(f)?.push({item:u,key:d,existing:h})}for(let[u,d]of l)for(let h=0;h<d.length;h++){let{item:f,key:p,existing:m}=d[h],g=m;g?(g.parentElement!==u||u.children[h]!==g)&&a.push(p):(g=s(f),t.set(p,g),r.push(p));let b=u.children[h];b!==g&&u.insertBefore(g,b||null)}return{added:r,moved:a,removed:o}}rr();Q();var or={"no-results":"No matching rows found",filter:"Filter table rows",placeholder:"Filter table...",pagination:"Table pagination",prev:"Previous",next:"Next",sorted:"Sorted by {column}, {direction}",ascending:"ascending",descending:"descending","filtered-one":"{count} of {total} row shown","filtered-other":"{count} of {total} rows shown","all-one":"All {total} row shown","all-other":"All {total} rows shown","selected-one":"{count} row selected","selected-other":"{count} rows selected"},cr=":scope > tr:not([data-expand-content])",lr=class e extends E{#t;#e;#i=[];#n=[];#s=[];#o=-1;#r=null;#a=1;#l=0;#c=null;#g=null;#f=null;#u="";#p=null;#y=null;#d=null;#m=null;#h=[];#E=new Map;#v=[];setup(){return this.#t=this.querySelector(":scope > table"),!this.#t||(this.#e=this.#t.querySelector("tbody"),!this.#e)?!1:(this.#S(),!0)}teardown(){this.#F(),this.#i=[],this.#n=[],this.#s=[]}#S(){this.#n=[...this.#e.querySelectorAll(cr)],this.#s=[...this.#n],this.#a=1,this.#o=-1,this.#r=null,this.#u="",this.#l=0,this.#v=[...this.#t.tHead?.rows[0]?.cells||[]].map(i=>({key:i.getAttribute("data-key")||i.textContent.trim().toLowerCase(),label:i.textContent.trim(),sort:i.getAttribute("data-sort")||void 0})),this.#E.clear(),this.#h=[];for(let i of this.#n){let s=i.getAttribute("data-id")||i.getAttribute("data-key");s&&(this.#E.set(s,i),this.#h.push({id:s}))}this.#A(),this.#N(),this.#_(),this.#W(),this.#T(),this.#t.hasAttribute("data-filterable")&&this.#B();let t=this.#t.getAttribute("data-paginate");t&&(this.#l=parseInt(t,10),this.#l>0&&this.#Q()),this.#G(),this.#st(),this.#it()}get rows(){return this.#h}set rows(t){let i=t||[],s=Hi({newItems:i,nodes:this.#E,keyOf:n=>n.id,renderItem:n=>this._renderRow(n),containerFor:()=>this.#e});this.#h=i,this.#n=[...this.#e.querySelectorAll(cr)],this.#N(),this.#_(),this.#R(this.#u),this.dispatchEvent(new CustomEvent("data-table:rows-changed",{detail:{rows:i,added:s.added,moved:s.moved,removed:s.removed,source:"api"},bubbles:!0}))}get columns(){return this.#v}_renderRow(t){let i=this;if(typeof i.renderRow=="function"){let n=i.renderRow(t,this.#v);if(!(n instanceof Element))throw new Error("data-table: renderRow must return an Element");return n.hasAttribute("data-id")||n.setAttribute("data-id",String(t.id)),n}let s=document.createElement("tr");s.setAttribute("data-id",String(t.id));for(let n of this.#v){let r=document.createElement("td"),a=t[n.key];r.textContent=a==null?"":String(a),s.appendChild(r)}return s}#b=[];#k=[];#w=[];#A(){let t=[...this.#t.tHead?.rows[0]?.cells||[]];this.#b=t.map(i=>{let s=parseFloat(i.getAttribute("data-weight"));return Number.isFinite(s)?s:null}),this.#k=t.map(i=>i.getAttribute("data-rollup")||null),this.#w=t.map(i=>i.getAttribute("data-heatmap")||null)}#N(){if(this.#k.some(Boolean))for(let t=0;t<this.#k.length;t++){let i=this.#k[t];if(i)for(let s of this.#n){let n=s.children[t];if(!n)continue;let r=this.#x(s,t,i),a=e.#M(r);n.textContent=a,n.setAttribute("data-rollup-value",String(r)),n.hasAttribute("data-sort-value")||n.setAttribute("data-sort-value",String(r))}}}#x(t,i,s){let n=[...t.children],r=0,a=0,o=-1/0,c=0,l=1,u=!1;for(let d=0;d<n.length;d++){if(d===i||this.#k[d])continue;let h=n[d].getAttribute("data-sort-value")??n[d].textContent??"",f=parseFloat(h);if(!Number.isFinite(f))continue;r+=f,a++,f>o&&(o=f),l*=f,u=!0;let p=this.#b[d];p!==null&&(c+=f*p)}switch(s){case"sum":return r;case"avg":return a?r/a:0;case"max":return o===-1/0?0:o;case"weighted-sum":return c;case"product":return u?l:0;default:return r}}static#M(t){return Number.isFinite(t)?Number.isInteger(t)?String(t):(Math.round(t*100)/100).toString():""}#_(){if(this.#w.some(Boolean))for(let t=0;t<this.#w.length;t++){let i=this.#w[t];if(!i)continue;let s=this.#n.map(c=>{let l=c.children[t];if(!l)return null;let u=l.getAttribute("data-rollup-value")??l.getAttribute("data-sort-value")??l.textContent??"",d=parseFloat(u);return Number.isFinite(d)?d:null}),n=s.filter(c=>c!==null);if(!n.length)continue;let r=Math.min(...n),o=Math.max(...n)-r||1;for(let c=0;c<this.#n.length;c++){let l=this.#n[c].children[t];if(!l)continue;let u=s[c];if(u===null){l.removeAttribute("data-heat-level");continue}let d=(u-r)/o;i==="low-good"&&(d=1-d);let h=d<.34?"low":d<.67?"mid":"high";l.setAttribute("data-heat-level",h)}}}#F(){this.#f&&clearTimeout(this.#f),this.#c?.parentElement?.remove(),this.#g?.remove(),this.#d?.remove(),this.#m?.remove(),this.#c=null,this.#g=null,this.#d=null,this.#m=null}#D(t){return this.getAttribute(`data-label-${t}`)||or[t]||""}#O(t,i,s){let n="other";try{n=new Intl.PluralRules(F(this)).select(i)}catch{}let r=this.getAttribute(`data-label-${t}-${n}`)||this.getAttribute(`data-label-${t}-other`)||or[`${t}-${n}`]||or[`${t}-other`];return Pt(r,s)}#$(t){return new Intl.NumberFormat(F(this)).format(t)}#W(){let t=document.createElement("span");t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.setAttribute("data-table-status",""),t.className="visually-hidden",this.appendChild(t),this.#d=t}#C(t){let i=this.#d;i&&(i.textContent=i.textContent===t?`${t}\xA0`:t)}#T(){this.#t.querySelectorAll("thead th[data-sort]").forEach((i,s)=>{let n=i.getAttribute("data-sort"),r=this.#tt(i);this.#i.push({th:i,sortType:n,columnIndex:r}),i.setAttribute("aria-sort","none"),e.#q(i),i.dataset.columnIndex=r,this.listen(i,"click",this.#I)})}static#q(t){if(t.querySelector(":scope > button[data-sort-button]"))return;let i=document.createElement("button");i.type="button",i.setAttribute("data-sort-button",""),i.append(...t.childNodes),t.appendChild(i)}#tt(t){return[...t.parentElement.children].indexOf(t)}#I=t=>{let i=t.currentTarget,s=t.target.closest?.("a, input, select, textarea, button:not([data-sort-button])");if(s&&i.contains(s))return;let n=parseInt(i.dataset.columnIndex,10);this.#H(n)};#L(t,i,s){let n=this.#s;if(n.length<2)return!0;let r=s==="asc"?1:-1;for(let a=1;a<n.length;a++){let o=this.#X(n[a-1].children[t],i),c=this.#X(n[a].children[t],i);if((typeof o=="string"?o.localeCompare(c)*r:(o-c)*r)>0)return!1}return!0}#H(t){let i=this.#i.find(r=>r.columnIndex===t);if(!i)return;let s;this.#o===t?s=this.#r==="asc"?"desc":"asc":this.#L(t,i.sortType,"asc")?s="desc":s="asc",this.#i.forEach(({th:r})=>{r.setAttribute("aria-sort","none")}),i.th.setAttribute("aria-sort",s==="asc"?"ascending":"descending"),this.#o=t,this.#r=s,this.#Y(t,s,i.sortType),this.#a=1,this.#it();let n=i.th.textContent.trim();this.#C(Pt(this.#D("sorted"),{column:n,direction:this.#D(s==="asc"?"ascending":"descending")})),this.dispatchEvent(new CustomEvent("data-table:sort",{detail:{column:t,direction:s,columnName:n},bubbles:!0}))}#Y(t,i,s){let n=i==="asc"?1:-1;this.#s.sort((r,a)=>{let o=r.children[t],c=a.children[t];if(!o||!c)return 0;let l=this.#X(o,s),u=this.#X(c,s),d=0;switch(s){case"number":d=l-u;break;case"date":d=l-u;break;default:d=l.localeCompare(u,void 0,{numeric:!0,sensitivity:"base"});break}return d*n})}#X(t,i){let n=t.getAttribute("data-sort-value")??t.textContent.trim();switch(i){case"number":return parseFloat(n)||0;case"date":return new Date(n).getTime()||0;default:return n.toLowerCase()}}#B(){let t=document.createElement("div");t.setAttribute("data-table-filter","");let i=document.createElement("input");i.type="search",i.setAttribute("data-filter-input",""),i.setAttribute("placeholder",this.#D("placeholder")),i.setAttribute("aria-label",this.#D("filter")),t.appendChild(i),this.insertBefore(t,this.#t),this.#c=i;let s=document.createElement("p");s.setAttribute("data-table-empty",""),s.hidden=!0,s.textContent=this.#D("no-results"),this.#t.after(s),this.#m=s,this.listen(i,"input",this.#z)}#z=t=>{let i=t.target.value;this.#f&&clearTimeout(this.#f),this.#f=setTimeout(()=>{this.#R(i,{announce:!0})},150)};#R(t,{announce:i=!1,keepPage:s=!1}={}){if(this.#u=String(t??"").toLowerCase().trim(),this.#u===""?this.#s=[...this.#n]:this.#s=this.#n.filter(n=>[...n.children].some(a=>(a.getAttribute("data-filter-value")??a.textContent).toLowerCase().includes(this.#u))),this.#o>=0&&this.#r){let n=this.#i.find(r=>r.columnIndex===this.#o);n&&this.#Y(this.#o,this.#r,n.sortType)}if(s?this.#a=Math.min(this.#a,this.totalPages):this.#a=1,this.#it(),i){let n=this.#s.length,r=this.#n.length,a={count:this.#$(n),total:this.#$(r)};this.#C(n===0?this.#D("no-results"):this.#O(this.#u?"filtered":"all",r,a))}this.dispatchEvent(new CustomEvent("data-table:filter",{detail:{query:this.#u,count:this.#s.length},bubbles:!0}))}#Q(){let t=document.createElement("nav");t.setAttribute("data-pagination",""),t.setAttribute("aria-label",this.#D("pagination")),this.appendChild(t),this.#g=t}#G(){for(let t of this.#e.querySelectorAll(":scope > tr[data-expandable]")){let i=t.querySelector('[data-action="toggle-expand"]');i&&i.setAttribute("aria-expanded",String(t.hasAttribute("data-state-expanded")))}this.listen(this.#t,"click",this.#P)}#P=t=>{let i=t.target.closest('[data-action="toggle-expand"]');if(!i)return;let s=i.closest("tr[data-expandable]");if(!s)return;let n=s.hasAttribute("data-state-expanded"),r=s.nextElementSibling;n?(s.removeAttribute("data-state-expanded"),i.setAttribute("aria-expanded","false"),r?.hasAttribute("data-expand-content")&&(r.hidden=!0,r.setAttribute("aria-hidden","true"))):(s.setAttribute("data-state-expanded",""),i.setAttribute("aria-expanded","true"),r?.hasAttribute("data-expand-content")&&(r.hidden=!1,r.removeAttribute("aria-hidden"))),this.dispatchEvent(new CustomEvent("data-table:expand",{detail:{row:s,expanded:!n},bubbles:!0}))};#st(){this.#p=this.#t.querySelector('thead [data-action="select-all"]'),this.#p&&this.listen(this.#p,"change",this.#V),this.listen(this.#e,"change",this.#Z),this.#y=this.querySelector("[data-selected-count]"),this.#U()}#V=t=>{let i=t.target.checked;this.#e.querySelectorAll("tr[data-selectable]").forEach(n=>{let r=n.querySelector('[data-action="select-row"]');i?(n.setAttribute("data-state-selected",""),r&&(r.checked=!0)):(n.removeAttribute("data-state-selected"),r&&(r.checked=!1))}),t.target.indeterminate=!1,this.#K(),this.#J(),this.#et()};#Z=t=>{let i=t.target.closest('[data-action="select-row"]');if(!i)return;let s=i.closest("tr[data-selectable]");s&&(i.checked?s.setAttribute("data-state-selected",""):s.removeAttribute("data-state-selected"),this.#U(),this.#J(),this.#et())};#J(){let t=this.getSelectedRows().length;this.#C(this.#O("selected",t,{count:this.#$(t)}))}#U(){if(!this.#p){this.#K();return}let t=this.#e.querySelectorAll("tr[data-selectable]"),i=this.#e.querySelectorAll("tr[data-selectable][data-state-selected]"),s=t.length,n=i.length;n===0?(this.#p.checked=!1,this.#p.indeterminate=!1):n===s?(this.#p.checked=!0,this.#p.indeterminate=!1):(this.#p.checked=!1,this.#p.indeterminate=!0),this.#K()}#K(){let i=this.#e.querySelectorAll("tr[data-selectable][data-state-selected]").length;this.#y&&(this.#y.textContent=i)}#et(){let t=[...this.#e.querySelectorAll("tr[data-selectable][data-state-selected]")];this.dispatchEvent(new CustomEvent("data-table:selection",{detail:{count:t.length,rows:t},bubbles:!0}))}#j(){if(!this.#g||this.#l<=0)return;let t=this.#g,i=Math.ceil(this.#s.length/this.#l),s=document.activeElement,n=null;if(s instanceof HTMLElement&&t.contains(s)&&(n=s.hasAttribute("data-pagination-prev")?"prev":s.hasAttribute("data-pagination-next")?"next":"page"),t.replaceChildren(),i<=1)return;let r=document.createElement("button");r.type="button",r.textContent=this.#D("prev"),r.setAttribute("data-pagination-prev",""),r.disabled=this.#a===1,r.addEventListener("click",()=>this.goToPage(this.#a-1)),t.appendChild(r),this.#nt(i).forEach(c=>{if(c==="..."){let l=document.createElement("span");l.textContent="...",l.setAttribute("data-pagination-ellipsis",""),t.appendChild(l)}else{let l=document.createElement("button");l.type="button",l.textContent=this.#$(c),l.setAttribute("data-pagination-page",""),c===this.#a&&(l.setAttribute("aria-current","page"),l.setAttribute("data-current","")),l.addEventListener("click",()=>this.goToPage(c)),t.appendChild(l)}});let o=document.createElement("button");if(o.type="button",o.textContent=this.#D("next"),o.setAttribute("data-pagination-next",""),o.disabled=this.#a===i,o.addEventListener("click",()=>this.goToPage(this.#a+1)),t.appendChild(o),n){let c=t.querySelector('[aria-current="page"]');(n==="prev"&&!r.disabled?r:n==="next"&&!o.disabled?o:c)?.focus()}}#nt(t){let i=this.#a,s=[];if(t<=7)for(let n=1;n<=t;n++)s.push(n);else{s.push(1),i>3&&s.push("...");let n=Math.max(2,i-1),r=Math.min(t-1,i+1);for(let a=n;a<=r;a++)s.push(a);i<t-2&&s.push("..."),s.push(t)}return s}#it(){this.#n.forEach(s=>{s.setAttribute("data-state-hidden",""),this.#rt(s)?.setAttribute("data-state-hidden","")});let t;if(this.#l>0){let s=(this.#a-1)*this.#l,n=s+this.#l;t=this.#s.slice(s,n)}else t=this.#s;t.forEach(s=>{s.removeAttribute("data-state-hidden");let n=this.#rt(s);this.#e.appendChild(s),n&&(n.removeAttribute("data-state-hidden"),this.#e.appendChild(n))}),this.#s.forEach(s=>{if(s.hasAttribute("data-state-hidden")){let n=this.#rt(s);this.#e.appendChild(s),n&&this.#e.appendChild(n)}});let i=new Set(this.#s);this.#n.forEach(s=>{if(!i.has(s)){let n=this.#rt(s);this.#e.appendChild(s),n&&this.#e.appendChild(n)}}),this.#m&&(this.#m.textContent=this.#D("no-results"),this.#m.hidden=!(this.#u&&this.#s.length===0&&this.#n.length>0)),this.#j()}#rt(t){if(!t.hasAttribute("data-expandable"))return null;let i=t.nextElementSibling;return i?.hasAttribute("data-expand-content")?i:null}goToPage(t){if(this.#l<=0)return;let i=Math.max(1,Math.ceil(this.#s.length/this.#l)),s=Math.max(1,Math.min(Math.trunc(Number(t))||1,i));s!==this.#a&&(this.#a=s,this.#it(),this.dispatchEvent(new CustomEvent("data-table:page",{detail:{page:this.#a},bubbles:!0})))}setFilter(t){this.#c&&(this.#c.value=t),this.#R(t,{announce:!0})}refresh(){this.#e&&(this.#n=[...this.#e.querySelectorAll(cr)],this.#N(),this.#_(),this.#R(this.#u,{keepPage:!0}),this.#U())}get currentPage(){return this.#a}get totalPages(){return this.#l<=0?1:Math.max(1,Math.ceil(this.#s.length/this.#l))}get filteredCount(){return this.#s.length}get totalCount(){return this.#n.length}getSelectedRows(){return this.#e?[...this.#e.querySelectorAll("tr[data-selectable][data-state-selected]")]:[]}};A("data-table",lr);Ve();var cv={trigger:"Search",dialog:"Site search",placeholder:"Search documentation...",input:"Search",results:"Search results",searching:"Searching...",empty:"No results found",count:"{count} results","count-one":"1 result","count-more":"{count} of {total} results",unavailable:"Search unavailable",error:"Search error. Please try again.",untitled:"Untitled",navigate:"to navigate",select:"to select",close:"to close",dismiss:"Close search",browse:"Browse instead",powered:"Powered by"},lv=0,Gi=new Set,Ue=null;function uv(e){return typeof e.checkVisibility=="function"?e.checkVisibility():e.getClientRects().length>0}function dv(){let e=[...Gi].filter(s=>s.isConnected),t=e.find(s=>s.isOpen);if(t){t.close();return}(e.find(s=>uv(s))??e[0])?.open()}function hv(e){Gi.add(e),!Ue&&!su().includes("meta+k")&&(Ue=At("meta+k",dv,{global:!0}))}function fv(e){Gi.delete(e),Gi.size===0&&Ue&&(Ue(),Ue=null)}function j(e,t={},i=[]){let s=document.createElement(e);for(let[n,r]of Object.entries(t))s.setAttribute(n,r);return s.append(...i),s}function pv(e){let t=document.createDocumentFragment();if(!e||typeof e!="string")return t;let i=document.createElement("template");i.innerHTML=e;let s=(n,r)=>{for(let a of n.childNodes)if(a.nodeType===Node.TEXT_NODE)r.appendChild(document.createTextNode(a.textContent??""));else if(a.nodeType===Node.ELEMENT_NODE)if(a.localName==="mark"){let o=document.createElement("mark");s(a,o),r.appendChild(o)}else s(a,r)};return s(i.content,t),t}function mv(e){if(typeof e!="string"||!e)return null;try{let t=new URL(e,document.baseURI);return t.protocol!=="http:"&&t.protocol!=="https:"||t.origin!==location.origin?null:t.href}catch{return null}}var hr=class e extends E{static#t=150;static#e=8;#i=null;#n=null;#s=null;#o=null;#r=null;#a=null;#l=[];#c=-1;#g=!1;#f=0;#u="";#p=null;#y=!1;#d=null;setup(){this.#u||(this.#u=`site-search-${++lv}`),this.#h(),this.#E(),hv(this)}teardown(){fv(this),this.#g&&(document.body.style.overflow="",this.removeAttribute("open"),this.#i?.setAttribute("aria-expanded","false"),this.#g=!1),this.#O(),this.#f++,this.#l=[],this.#c=-1,this.#r&&this.append(this.#r),this.#r=null,this.#n?.remove(),this.#n=null}#m(t){let i=`data-label-${t}`;return this.getAttribute(i)??cv[t]}get value(){return this.#s?.value??""}set value(t){if(!this.#s)return;let i=t==null?"":String(t);this.#s.value!==i&&(this.#s.value=i,this.#s.dispatchEvent(new Event("input",{bubbles:!0})),this.dispatchEvent(new CustomEvent("site-search:change",{detail:{value:i,source:"api"},bubbles:!0})))}get results(){return[...this.#l]}#h(){this.#i=this.querySelector(":scope > [data-trigger]"),this.#i||(this.#i=this.querySelector(":scope > button")),this.#i||(this.#i=j("button",{type:"button","data-trigger":""},[j("icon-wc",{name:"search",label:this.#m("trigger")})]),this.prepend(this.#i));let t=`${this.#u}-dialog`,i=`${this.#u}-results`;this.#i.setAttribute("aria-haspopup","dialog"),this.#i.setAttribute("aria-expanded","false"),this.#i.setAttribute("aria-controls",t),this.#s=j("input",{type:"search",name:"search",class:"input",placeholder:this.#m("placeholder"),autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"combobox","aria-label":this.#m("input"),"aria-autocomplete":"list","aria-controls":i,"aria-expanded":"false"}),this.#o=j("div",{class:"results",id:i,role:"listbox","aria-label":this.#m("results")}),this.#a=j("p",{class:"search-status",role:"status"});let s=n=>j("kbd",{},[n]);if(this.#n=j("dialog",{class:"dialog",id:t,"aria-label":this.#m("dialog")},[j("search",{class:"search"},[j("div",{class:"input-wrapper"},[j("icon-wc",{name:"search",class:"icon"}),this.#s,j("button",{type:"button",class:"shortcut","aria-label":this.#m("dismiss")},[j("kbd",{},["Esc"]),j("icon-wc",{name:"x",size:"sm"})])]),this.#a,this.#o]),j("div",{class:"footer"},[j("span",{class:"hint"},[s("\u2191"),s("\u2193"),` ${this.#m("navigate")} `,s("\u21B5"),` ${this.#m("select")} `,s("esc"),` ${this.#m("close")}`]),j("span",{class:"powered"},[`${this.#m("powered")} `,j("a",{href:"https://pagefind.app",target:"_blank",rel:"noopener"},["Pagefind"])])])]),this.#r=this.querySelector(":scope > nav[data-browse]"),this.#r){let n=this.#r.getAttribute("aria-label")||this.#m("browse");this.#r.setAttribute("aria-label",n);let r=j("p",{class:"browse-title","aria-hidden":"true"},[n]);this.#n.querySelector(".search")?.after(j("div",{class:"browse"},[r,this.#r]))}this.appendChild(this.#n)}#E(){this.listen(this.#i,"click",this.#v),this.#n.addEventListener("close",this.#S),this.#n.addEventListener("click",this.#b),this.#s.addEventListener("input",this.#k),this.#s.addEventListener("keydown",this.#w),this.#o.addEventListener("click",this.#A)}#v=t=>{t.stopPropagation(),this.open()};#S=()=>{this.#g&&!this.#n?.open&&this.#$()};#b=t=>{if(t.target.closest?.(".shortcut")){this.close();return}if(t.target!==this.#n)return;let i=this.#n.getBoundingClientRect();t.clientX>=i.left&&t.clientX<=i.right&&t.clientY>=i.top&&t.clientY<=i.bottom||this.close()};#k=()=>{this.#O(),this.setState("input-debounce-pending",!0),this.#d=setTimeout(()=>{this.#d=null,this.setState("input-debounce-pending",!1),this.#_(this.#s.value)},e.#t)};#w=t=>{switch(t.key){case"ArrowDown":t.preventDefault(),this.#D(this.#c+1);break;case"ArrowUp":t.preventDefault(),this.#D(this.#c-1);break;case"Escape":t.preventDefault(),this.close();break;case"Enter":{t.preventDefault();let i=this.#c>=0?this.#c:0,s=this.#o.querySelector(`[data-result-index="${i}"]`)?.getAttribute("href");s&&(this.close(),window.location.assign(s));break}}};#A=t=>{t.target.closest("[data-result-index]")&&(t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||setTimeout(()=>this.close(),0))};get#N(){let t=this.getAttribute("data-pagefind-path")||"/pagefind/";return t.endsWith("/")?t:`${t}/`}async#x(){if(this.#p||this.#y)return;let t=new URL(this.#N,document.baseURI),i=this.getAttribute("data-base-url")??new URL("..",t).pathname;try{let s=await import(new URL("pagefind.js",t).href);await s.options({excerptLength:20,baseUrl:i}),this.#p=s}catch{this.#y=!0,console.warn(`[site-search] Pagefind not found at ${t.pathname}pagefind.js. Run \`npm run search:index\` after building, or set data-pagefind-path.`)}}#M(t){this.#a&&(this.#a.textContent=t)}async#_(t){let i=++this.#f;if(!t.trim()){this.#F([]);return}if(this.#M(this.#m("searching")),await this.#x(),i===this.#f){if(!this.#p){this.#l=[],this.#F([]),this.#M(this.#m("unavailable"));return}try{let s=await this.#p.search(t),n=await Promise.all((s?.results??[]).slice(0,e.#e).map(r=>r.data()));if(i!==this.#f)return;this.#l=n,this.#F(n,s?.results?.length??n.length)}catch(s){if(i!==this.#f)return;console.error("[site-search] Search error:",s),this.#l=[],this.#F([]),this.#M(this.#m("error"))}}}#F(t,i=t.length){this.#c=-1,this.#s.removeAttribute("aria-activedescendant");let s=[];for(let n of t){let r=mv(n?.url);if(!r)continue;let a=j("span",{class:"result-title"});a.textContent=String(n.meta?.title||this.#m("untitled"));let o=j("span",{class:"result-excerpt"});o.append(pv(n.excerpt||"")),s.push(j("a",{id:`${this.#u}-result-${s.length}`,href:r,class:"result",role:"option","aria-selected":"false","data-result-index":String(s.length),tabindex:"-1"},[a,o]))}if(this.#o.replaceChildren(...s),this.#s.setAttribute("aria-expanded",s.length?"true":"false"),!this.#s.value.trim())this.#M("");else if(s.length===0)this.#M(this.#m("empty"));else{let r=i>e.#e&&i>s.length?this.#m("count-more"):s.length===1?this.#m("count-one"):this.#m("count");this.#M(r.replace("{count}",String(s.length)).replace("{total}",String(i)))}}#D(t){let i=this.#o.querySelectorAll("[data-result-index]");if(i.length===0)return;t<0&&(t=i.length-1),t>=i.length&&(t=0);for(let n of i)n.removeAttribute("data-active"),n.setAttribute("aria-selected","false");this.#c=t;let s=i[t];s.setAttribute("data-active",""),s.setAttribute("aria-selected","true"),this.#s.setAttribute("aria-activedescendant",s.id),s.scrollIntoView({block:"nearest"})}#O(){this.#d&&(clearTimeout(this.#d),this.#d=null),this.setState("input-debounce-pending",!1)}open(){if(!(this.#g||!this.#n)){if(this.#g=!0,this.setAttribute("open",""),this.#i?.setAttribute("aria-expanded","true"),document.body.style.overflow="hidden",!this.#n.open)try{this.#n.showModal()}catch{this.#n.setAttribute("open","")}this.#s.focus(),this.#s.select(),this.#x(),this.dispatchEvent(new CustomEvent("site-search:open",{bubbles:!0}))}}close(){this.#g&&(this.#n?.open&&this.#n.close(),this.#g&&this.#$())}#$(){this.#g=!1,this.removeAttribute("open"),this.#i?.setAttribute("aria-expanded","false"),document.body.style.overflow="",this.#O(),this.#f++,this.#l=[],this.#c=-1,this.#s&&(this.#s.value="",this.#s.removeAttribute("aria-activedescendant"),this.#s.setAttribute("aria-expanded","false")),this.#o?.replaceChildren(),this.#M(""),this.#i?.focus(),this.dispatchEvent(new CustomEvent("site-search:close",{bubbles:!0}))}get isOpen(){return this.#g}};A("site-search",hr);Rt();Rt();var gv=/^[a-zA-Z_$][a-zA-Z0-9_$]*(\.[a-zA-Z_$][a-zA-Z0-9_$]*|\[\d+\])*$/;function ru(e){return!e||typeof e!="string"?!1:gv.test(e.trim())}function We(e,t){if(!ru(t)){console.warn(`[card-list] Unsafe property path rejected: "${t}"`);return}let s=String(t).replace(/\[(\d+)\]/g,".$1").split("."),n=e;for(let r of s){if(n==null)return;n=n[r]}return n}function bv(e){return e?e.split(",").map(t=>{let[i,s]=t.split(":").map(n=>n.trim());return{attr:(i||"").toLowerCase(),path:s}}).filter(({attr:t,path:i})=>t&&i):[]}var yv=new Set(["href","src","action","formaction","xlink:href","poster","cite","background","ping","data","manifest","longdesc","codebase"]),au=new Set(["srcdoc","style","is"]),vv=new Set(["http:","https:","mailto:","tel:"]);function ou(e){let t=String(e).replace(/[\u0000-\u0020\u007f]+/g,"");if(!t)return!0;let i=/^([a-z][a-z0-9+.-]*):/i.exec(t);return i?vv.has(`${i[1].toLowerCase()}:`):!0}function wv(e){return String(e).split(",").every(t=>ou(t.trim().split(/\s+/)[0]||""))}function Av(e,t){return e.startsWith("on")||au.has(e)||!/^[a-z_][a-z0-9_.:-]*$/.test(e)?!1:e==="srcset"||e==="imagesrcset"?wv(t):yv.has(e)?ou(t):!0}function Ev(e,t){let i=new Set;return e.map((s,n)=>{let r=s!=null&&typeof s=="object"?s[t]:void 0,a=r==null?null:`k:${String(r)}`;return a==null||i.has(a)?`i:${n}`:(i.add(a),a)})}var nu=":scope > [data-card-list-status]",fr=class extends E{#t=null;#e=[];#i="id";#n=new Map;#s=!1;#o=null;#r=null;static get observedAttributes(){return["src","data-items","data-key"]}setup(){if(this.#t=this.querySelector(":scope > template")||this.querySelector("template"),!this.#t)return console.warn("[card-list] No template found"),!1;if(this.#i=this.getAttribute("data-key")||"id",this.#s)return this.#o&&this.#u(this.#o),this.#o=null,!0;let t=this.getAttribute("data-items");if(t)return this.#a(t),!0;let i=this.getAttribute("src");return i&&this.#f(i),!0}teardown(){this.#l()}attributeChangedCallback(t,i,s){i!==s&&this.hasAttribute("data-upgraded")&&(t==="data-items"?s&&this.#a(s):t==="src"?s?this.#f(s):this.#l():t==="data-key"&&(this.#i=s||"id",this.#u("attribute")))}#a(t){this.#l();try{let i=JSON.parse(t);this.#e=Array.isArray(i)?i:[],this.#s=!0,this.#u("attribute")}catch(i){console.error("[card-list] Invalid JSON in data-items:",i)}}#l(){this.#r&&(this.#r.abort(),this.#r=null,this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"),this.#g(""))}#c(){let t=this.querySelector(nu);return t||(t=document.createElement("p"),t.setAttribute("role","status"),t.setAttribute("data-card-list-status",""),this.append(t)),t}#g(t){let i=this.querySelector(nu);!i&&!t||((i||this.#c()).textContent=t)}async#f(t){this.#l();let i=new AbortController;this.#r=i,this.removeAttribute("data-error"),this.setAttribute("data-loading",""),this.setAttribute("aria-busy","true"),this.#c().textContent="Loading\u2026";try{let s=await fetch(t,{signal:i.signal});if(!s.ok)throw new Error(`HTTP ${s.status}`);let n=await s.json();if(i.signal.aborted)return;this.#e=Array.isArray(n)?n:n?.items||n?.data||[],this.#s=!0,this.#g(""),this.#u("attribute")}catch(s){if(i.signal.aborted)return;let n=s instanceof Error?s.message:String(s);console.error("[card-list] Fetch error:",s),this.setAttribute("data-error",n),this.#g(`Error: ${n}`)}finally{this.#r===i&&(this.#r=null,this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"))}}#u(t){if(!this.#t)return;this.querySelectorAll(":scope > [data-fallback]").forEach(n=>n.remove());let i=this.#t;if([...i.content.children].length!==1){this.querySelectorAll(":scope > :not(template, [data-card-list-status])").forEach(r=>r.remove()),this.#n.clear();let n=document.createDocumentFragment();for(let r of this.#e){let a=i.content.cloneNode(!0);this.#p(a,r),n.appendChild(a)}this.prepend(n)}else{let n=Ev(this.#e,this.#i),r=this.#e.map((c,l)=>({item:c,key:n[l]})),a=Hi({newItems:r,nodes:this.#n,keyOf:c=>c.key,renderItem:c=>{let u=i.content.cloneNode(!0).firstElementChild;return this.#p(u,c.item),u},containerFor:()=>this}),o=new Set(a.added);for(let{item:c,key:l}of r){if(o.has(l))continue;let u=this.#n.get(l);u&&this.#p(u,c)}}this.dispatchEvent(new CustomEvent("card-list:rendered",{detail:{count:this.#e.length},bubbles:!0})),this.dispatchEvent(new CustomEvent("card-list:items-changed",{detail:{items:this.#e,source:t},bubbles:!0}))}#p(t,i){let s=n=>{let r=[...t.querySelectorAll(n)];return t instanceof Element&&t.matches(n)&&r.unshift(t),r};s("[data-field]").forEach(n=>{let r=We(i,n.getAttribute("data-field"));n.textContent=r??""}),s("[data-field-attr]").forEach(n=>{for(let{attr:r,path:a}of bv(n.getAttribute("data-field-attr"))){if(!ru(a))continue;let o=We(i,a);if(r.startsWith("on")||au.has(r)){console.warn(`[card-list] Refusing to bind "${r}" from data`);continue}let c=r.startsWith("aria-");o==null||o===!1&&!c?n.removeAttribute(r):Av(r,o)?n.setAttribute(r,o===!0&&!c?"":String(o)):(console.warn(`[card-list] Unsafe value refused for "${r}"`),n.removeAttribute(r))}}),s("[data-field-html]").forEach(n=>{n.replaceChildren(se(We(i,n.getAttribute("data-field-html"))))}),s("[data-field-if]").forEach(n=>{n.hidden=!We(i,n.getAttribute("data-field-if"))}),s("[data-field-unless]").forEach(n=>{n.hidden=!!We(i,n.getAttribute("data-field-unless"))})}get items(){return this.#e}set items(t){this.#l(),this.#e=Array.isArray(t)?t:[],this.#s=!0,this.#t&&this.hasAttribute("data-upgraded")?this.#u("api"):this.#o="api"}};A("card-list",fr);var cu=`
135
135
  :host {
136
136
  --_padding: var(--score-card-padding, var(--size-l, 1.5rem));
137
137
  --_radius: var(--score-card-radius, var(--radius-m, 0.5rem));
@@ -332,7 +332,7 @@ svg {
332
332
  background: color-mix(in oklch, var(--_muted) 18%, transparent);
333
333
  }
334
334
  }
335
- `;var Cv=new Set(["up","down","flat"]),lu=["change","sparkline","description","icon"],Tv=`
335
+ `;var kv=new Set(["up","down","flat"]),lu=["change","sparkline","description","icon"],Sv=`
336
336
  <style>${cu}</style>
337
337
  <div class="card" part="card">
338
338
  <span class="title" part="title"><slot name="title"></slot></span>
@@ -342,40 +342,40 @@ svg {
342
342
  <span class="description" part="description"><slot name="description" data-slot="description"></slot></span>
343
343
  <span class="icon" part="icon"><slot name="icon" data-slot="icon"></slot></span>
344
344
  </div>
345
- `,mr=class extends k{static get observedAttributes(){return["trend","loading"]}setup(){if(this.shadowRoot)for(let t of lu){let i=this.shadowRoot.querySelector(`slot[name="${t}"]`);this.#t(t,i)}else{let t=this.attachShadow({mode:"open"});t.innerHTML=Tv;for(let i of lu){let s=t.querySelector(`slot[name="${i}"]`);s?.addEventListener("slotchange",()=>this.#t(i,s)),this.#t(i,s)}}this.#e(),this.#i(),this.#n()}attributeChangedCallback(t){this.isConnected&&(t==="trend"?this.#e():t==="loading"&&this.#i())}#t(t,i){let s=!!i&&i.assignedNodes({flatten:!0}).some(n=>n.nodeType===Node.ELEMENT_NODE||n.nodeType===Node.TEXT_NODE&&n.textContent.trim().length>0);this.setState(`has-${t}`,s)}#e(){let t=(this.getAttribute("trend")||"").toLowerCase();for(let i of Cv)this.setState(`trend-${i}`,i===t)}#i(){let t=this.hasAttribute("loading");this.setState("loading",t),t?this.setAttribute("aria-busy","true"):this.getAttribute("aria-busy")==="true"&&this.removeAttribute("aria-busy")}#n(){let t=this.closest("a[href]");this.setState("interactive",!!t)}};E("score-card",mr);var Lv=0;function Ji(e,t){return e.matches("content-swap")?t:`data-${t}`}function Xi(e){let t=e.querySelector(':scope > [data-face="front"]'),i=e.querySelector(':scope > [data-face="back"]');if(!t||!i)return;e.style.viewTransitionName||(e.style.viewTransitionName=`content-swap-${++Lv}`);let s=e.matches("content-swap");s||e.setAttribute("data-swap-init","");let n=[];function r(l,u,d,h){l.addEventListener(u,d,h),n.push(()=>l.removeEventListener(u,d,h))}let a=[...e.querySelectorAll("[data-swap]")].filter(l=>l.parentElement?.closest("content-swap, [data-swap]")===e),o=a.length===0,c=e.querySelector(":scope > [data-swap-toggle]");if(o){if(!c){let l=document.createElement("button");l.type="button",l.setAttribute("data-swap-toggle",""),l.textContent="Show back",e.append(l),c=l}r(c,"click",l=>{l.stopPropagation(),qt(e,l.detail===0?"keyboard":"pointer")}),r(e,"click",l=>{let d=l.target.closest?.(Nv);d&&d!==e&&e.contains(d)||qt(e,"pointer")})}else c&&!c.hasAttribute("data-swap")&&c.remove(),c=null,a.forEach(l=>{let u=l.matches(Dv);r(l,"click",d=>{d.stopPropagation();let h=u&&d.detail===0;qt(e,h?"keyboard":"pointer")}),!u&&(l.hasAttribute("role")||(l.setAttribute("role","button"),n.push(()=>l.removeAttribute("role"))),l.hasAttribute("tabindex")||(l.setAttribute("tabindex","0"),n.push(()=>l.removeAttribute("tabindex"))),r(l,"keydown",d=>{d.target===l&&(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),qt(e,"keyboard"))}))});if(e.matches('[data-gesture="flick"], [data-gesture="swipe"]')&&(r(e,"swipe-left",()=>qt(e,"pointer")),r(e,"swipe-right",()=>qt(e,"pointer"))),!s){let l=new MutationObserver(()=>Zi(e,t,i));l.observe(e,{attributes:!0,attributeFilter:["data-swapped"]}),n.push(()=>l.disconnect())}return Zi(e,t,i),Mv([t,i]),()=>{for(let l of n)l();n.length=0}}var Dv='button, a[href], summary, input:is([type="button"], [type="submit"], [type="reset"])',Nv='a[href], button, input, select, textarea, label, summary, [contenteditable=""], [contenteditable="true"], [tabindex]';function Mv(e){let t=e.map(i=>i.style.transition);for(let i of e)i.style.transition="none";for(let i of e)getComputedStyle(i).transform;e.forEach((i,s)=>{i.style.transition=t[s]})}function Zi(e,t,i){let s=e.hasAttribute(Ji(e,"swapped"));t.inert=s,i.inert=!s,e.querySelector(":scope > [data-swap-toggle]")?.setAttribute("aria-pressed",String(s))}function hu(e){return{front:e.querySelector(':scope > [data-face="front"]'),back:e.querySelector(':scope > [data-face="back"]')}}function Ye(e,t,i="api"){let{front:s,back:n}=hu(e);if(!s||!n)return;let r=Ji(e,"swapped");if(t&&e.hasAttribute(r)||!t&&!e.hasAttribute(r))return;let a=document.activeElement,o=()=>{t?e.setAttribute(r,""):e.removeAttribute(r),Zi(e,s,n),_v(e,i);let u=t?n:s,d=t?s:n,h=u.querySelector("[autofocus]");h?h.focus():i==="keyboard"&&d.contains(a)&&$v(u)},c=u=>{let d=e;typeof d.setState=="function"&&d.setState("transition-running",u)};c(!0);let l=ut(o);l&&l.finished&&typeof l.finished.finally=="function"?l.finished.finally(()=>c(!1)):c(!1)}function qt(e,t="api"){Ye(e,!e.hasAttribute(Ji(e,"swapped")),t)}function _v(e,t="internal"){e.dispatchEvent(new CustomEvent("content-swap:swap",{detail:{swapped:e.hasAttribute(Ji(e,"swapped")),source:t},bubbles:!0}))}function $v(e){let t=e.querySelector("[data-swap], button, a, input, select, textarea");t&&t.focus()}var gr=class extends k{static observedAttributes=["swapped"];#t=null;attributeChangedCallback(){if(!this.isConnected)return;let{front:t,back:i}=hu(this);t&&i&&Zi(this,t,i)}setup(){this.#t=Xi(this)??null}teardown(){this.#t?.(),this.#t=null}flip(){Ye(this,!0)}unflip(){Ye(this,!1)}toggle(){qt(this)}get flipped(){return this.hasAttribute("swapped")}set flipped(t){Ye(this,!!t)}get swapped(){return this.hasAttribute("swapped")}set swapped(t){Ye(this,!!t)}};E("content-swap",gr);function uu(){document.querySelectorAll("[data-swap]:not(content-swap):not([data-swap-init])").forEach(e=>{e.querySelector(":scope > [data-face]")&&Xi(e)})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",uu):uu();var du=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.hasAttribute("data-swap")&&!s.matches("content-swap")&&!s.hasAttribute("data-swap-init")&&s.querySelector(":scope > [data-face]")&&Xi(s),s.querySelectorAll("[data-swap]:not(content-swap):not([data-swap-init])").forEach(n=>{n.querySelector(":scope > [data-face]")&&Xi(n)})}});document.body?du.observe(document.body,{childList:!0,subtree:!0}):document.addEventListener("DOMContentLoaded",()=>{du.observe(document.body,{childList:!0,subtree:!0})});var br=class extends k{#t=null;#e=!1;#i=null;setup(){!this.hasAttribute("role")&&!this.querySelector("nav")&&this.setAttribute("role","navigation"),this.#r("pathname"),this.listen(window,"popstate",this.#s);let t=window.navigation;t&&typeof t.addEventListener=="function"&&this.listen(t,"currententrychange",this.#o)}get items(){return this.#t?this.#t.map(t=>({...t})):Array.from(this.#n()).map(t=>({href:t.getAttribute("href")||"",label:t.textContent?.trim()||""}))}set items(t){if(!Array.isArray(t))return;let i=t.map(s=>({...s}));this.#t&&this.#u(this.#t,i)||(this.#t=i,this.#g(i),this.#e?this.#c(this.#i):this.#r("pathname"),this.dispatchEvent(new CustomEvent("nav-bar:items-changed",{detail:{items:this.items,source:"property"},bubbles:!0,composed:!0})))}get current(){if(this.#e)return this.#i;for(let t of this.#n())if(t.getAttribute("aria-current")==="page")return t.getAttribute("data-route")||t.getAttribute("href")||null;return null}set current(t){let i=this.current,s=t==null?null:String(t);this.#e=!0,this.#i=s,this.#c(s),i!==s&&this.dispatchEvent(new CustomEvent("nav-bar:current-changed",{detail:{current:s,previous:i,source:"property"},bubbles:!0,composed:!0}))}releaseCurrent(){this.#e&&(this.#e=!1,this.#i=null,this.#r("pathname"))}refresh(){this.#e||this.#r("pathname")}#n(){let t=this.querySelectorAll("a[data-nav-link]");return t.length>0?t:this.querySelectorAll(":scope > a")}#s=()=>{this.#e||this.#r("popstate")};#o=()=>{queueMicrotask(()=>{this.#e||!this.isConnected||this.#r("navigation")})};#r(t){let i=this.current,s=this.#a();this.#c(s),s==null&&this.#l(),i!==s&&this.dispatchEvent(new CustomEvent("nav-bar:current-changed",{detail:{current:s,previous:i,source:t},bubbles:!0,composed:!0}))}#a(){let t=Qi(window.location.pathname),i=window.location.origin,s=Array.from(this.#n());if(s.length===0)return null;let n=this.getAttribute("data-match")==="exact",r=null,a=null,o=-1;for(let l of s){let u=l.getAttribute("href");if(!u||u.startsWith("#"))continue;let d;try{d=new URL(u,document.baseURI)}catch{continue}if(!/^https?:$/.test(d.protocol)||d.origin!==i)continue;let h=Qi(d.pathname);if(h===t){r==null&&(r=l);continue}!n&&h!=="/"&&t.startsWith(h+"/")&&h.length>o&&(a=l,o=h.length)}let c=r||a;return c?c.getAttribute("data-route")||c.getAttribute("href"):null}#l(){let t=Qi(window.location.pathname),i=window.location.origin,s=this.getAttribute("data-match")==="exact",n=null,r=-1;for(let a of this.querySelectorAll("a[data-nav-link]")){let o=a.closest("drop-down, li");if(!(!o||!this.contains(o)))for(let c of o.querySelectorAll("a[href]:not([data-nav-link])")){let l=c.getAttribute("href");if(!l||l.startsWith("#"))continue;let u;try{u=new URL(l,document.baseURI)}catch{continue}if(!/^https?:$/.test(u.protocol)||u.origin!==i)continue;let d=Qi(u.pathname),h=-1;d===t?h=Number.MAX_SAFE_INTEGER:!s&&d!=="/"&&t.startsWith(d+"/")&&(h=d.length),h>r&&(n=a,r=h)}}n&&n.setAttribute("aria-current","true")}#c(t){let i=this.#n();for(let s of i){let n=s.getAttribute("data-route")||s.getAttribute("href");t!=null&&n===t?s.setAttribute("aria-current","page"):s.removeAttribute("aria-current")}}#g(t){this.querySelectorAll(":scope > a").forEach(n=>n.remove());let i=this.querySelector("a[data-nav-link]")!=null,s=document.createDocumentFragment();for(let n of t){let r=this.#f(n);i&&r.setAttribute("data-nav-link",""),s.appendChild(r)}this.appendChild(s)}#f(t){let i=document.createElement("a"),s=Iv(t.href);if(s!=null&&i.setAttribute("href",s),t.route&&i.setAttribute("data-route",t.route),t.external&&(i.target="_blank",i.rel="noopener noreferrer"),t.icon){let n=document.createElement("icon-wc");n.setAttribute("name",String(t.icon)),n.setAttribute("size","sm"),i.appendChild(n)}if(i.appendChild(document.createTextNode(t.label||"")),t.external){let n=document.createElement("span");n.className="sr-only",n.textContent=` ${this.getAttribute("data-label-new-tab")??"(opens in new tab)"}`,i.appendChild(n)}if(t.badge!=null){let n=document.createElement("span");n.className="badge",n.textContent=String(t.badge),i.appendChild(n)}return i}#u(t,i){if(t.length!==i.length)return!1;for(let s=0;s<t.length;s++){let n=Object.keys(t[s]).sort(),r=Object.keys(i[s]).sort();if(n.length!==r.length)return!1;for(let a=0;a<n.length;a++)if(n[a]!==r[a]||t[s][n[a]]!==i[s][r[a]])return!1}return!0}};function Qi(e){let t=e.replace(/\/+$/,"");return t===""?"/":t}function Iv(e){if(e==null||e==="")return"#";let t=String(e),i;try{i=new URL(t,document.baseURI)}catch{return null}return/^https?:$/.test(i.protocol)?t:null}E("nav-bar",br);var Rv=0,Ar=class extends k{#t;#e=[];#i;#n;#s;#o;#r;#a;#l=null;#c=0;#g=0;#f=!1;#u=!1;#p=!1;#y=null;#d=!1;#m=!1;#h=!1;#E=!1;#v=new WeakSet;get currentIndex(){return this.#c}get slideCount(){return this.#e.length}get playing(){return this.#l!==null}setup(){let t=[...this.children];if(t.length===0)return!1;this.#u=window.matchMedia("(prefers-reduced-motion: reduce)").matches||document.documentElement.hasAttribute("data-motion-reduced"),this.#p=this.hasAttribute("transition")&&!!document.startViewTransition,this.hasAttribute("transition")&&!this.#p&&this.removeAttribute("transition"),this.setAttribute("role","region"),this.setAttribute("aria-roledescription","carousel"),!this.hasAttribute("aria-label")&&!this.hasAttribute("aria-labelledby")&&this.setAttribute("aria-label","Carousel"),this.#t=document.createElement("div"),this.#t.className="carousel-track",this.#t.setAttribute("tabindex","0"),this.#t.setAttribute("role","group"),this.#t.setAttribute("aria-label",this.dataset.labelTrack||"Slides");let i=this.getAttribute("item-width");if(i&&i!=="auto"&&i!=="full"&&CSS.supports("inline-size",i)&&this.#t.style.setProperty("--_item-width",i),t.forEach((a,o)=>{a.setAttribute("role","group"),a.setAttribute("aria-roledescription","slide"),a.hasAttribute("aria-label")||(a.setAttribute("aria-label",`${o+1} of ${t.length}`),this.#v.add(a)),this.#t.appendChild(a)}),this.#e=[...this.#t.children],this.hasAttribute("autoplay")&&!this.#u&&this.#b(),this.#n=document.createElement("button"),this.#n.type="button",this.#n.className="carousel-prev",this.#n.setAttribute("aria-label","Previous slide"),this.#n.innerHTML='<icon-wc name="chevron-left" size="sm"></icon-wc>',this.#s=document.createElement("button"),this.#s.type="button",this.#s.className="carousel-next",this.#s.setAttribute("aria-label","Next slide"),this.#s.innerHTML='<icon-wc name="chevron-right" size="sm"></icon-wc>',this.getAttribute("indicators")!=="false"&&(this.#o=document.createElement("div"),this.#o.className="carousel-indicators",this.#o.setAttribute("role","group"),this.#o.setAttribute("aria-label","Slide indicators"),this.#e.forEach((a,o)=>{let c=document.createElement("button");c.type="button",c.className="carousel-dot",c.setAttribute("aria-label",`Go to slide ${o+1}`),o===0&&c.setAttribute("aria-current","true"),this.listen(c,"click",()=>this.goTo(o)),this.#o.appendChild(c)})),this.#r=document.createElement("div"),this.#r.className="carousel-live",this.#r.setAttribute("aria-live","polite"),this.#r.setAttribute("aria-atomic","true"),this.#i&&this.appendChild(this.#i),this.appendChild(this.#n),this.appendChild(this.#t),this.appendChild(this.#s),this.#o&&this.appendChild(this.#o),this.appendChild(this.#r),this.listen(this.#n,"click",()=>this.prev()),this.listen(this.#s,"click",()=>this.next()),this.listen(this.#t,"keydown",this.#O),this.listen(this,"mouseenter",()=>{this.#h=!0,this.#w()}),this.listen(this,"mouseleave",()=>{this.#h=!1,this.#w()}),this.listen(this,"touchstart",()=>{this.#h=!0,this.#w()},{passive:!0}),this.listen(this,"focusin",()=>{this.#E=!0,this.#w()}),this.listen(this,"focusout",a=>{this.contains(a.relatedTarget)||(this.#E=!1,this.#w())}),this.#p){let a=++Rv,o=this.getAttribute("transition")||"fade",c=o==="slide"?"vt-carousel-slide":o==="scale"?"vt-carousel-scale":"vt-carousel";this.#t.style.viewTransitionName=`carousel-${a}`,this.#t.style.viewTransitionClass=c}if(this.#p){let a=this.#t;Promise.resolve().then(()=>(wr(),vr)).then(({addSwipeListener:o})=>{!this.isConnected||this.#t!==a||(this.#y=o(a,{threshold:40}),this.listen(a,"swipe-left",()=>this.#x()?this.prev():this.next()),this.listen(a,"swipe-right",()=>this.#x()?this.next():this.prev()))})}this.#p||(this.#a=new IntersectionObserver(this.#D,{root:this.#t,threshold:.5}),this.#e.forEach(a=>this.#a.observe(a)),"onscrollend"in window&&this.listen(this.#t,"scrollend",()=>{this.#f=!1,this.#_()}));let r=this.#$()??(Number(this.getAttribute("start"))||0);if(this.#p){let a=r>0&&r<this.#e.length?r:0;this.#e.forEach((o,c)=>{o.hidden=c!==a}),this.#M(a)}else r>0&&r<this.#e.length&&this.goTo(r,!1);return this.#F(),this.#h=this.#E=!1,this.#d=this.hasAttribute("autoplay")&&!this.#u&&!this.#m,this.#w(),!0}teardown(){this.#d=!1,this.#N(),this.#a&&(this.#a.disconnect(),this.#a=null),this.#y&&(this.#y(),this.#y=null),this.#t?.parentElement===this&&[...this.#t.children].forEach(t=>this.appendChild(t)),this.#e.forEach(t=>{this.#v.has(t)&&t.removeAttribute("aria-label")}),this.#t?.remove(),this.#i?.remove(),this.#n?.remove(),this.#s?.remove(),this.#o?.remove(),this.#r?.remove(),this.#t=this.#i=this.#n=this.#s=this.#o=this.#r=null,this.#e=[],this.#p=!1,this.#c=0,this.#g=0,this.#f=!1}get slides(){return this.#e.map((t,i)=>({id:t.id||void 0,html:t.innerHTML,label:t.getAttribute("aria-label")||`${i+1} of ${this.#e.length}`}))}set slides(t){let i=Array.isArray(t)?t:[];for(;this.firstChild;)this.firstChild.remove();for(let s of i){let n=document.createElement("div");s.id&&(n.id=s.id),s.label&&n.setAttribute("aria-label",s.label),n.innerHTML=s.html||"",this.appendChild(n)}this._reinit(),this.dispatchEvent(new CustomEvent("carousel-wc:slides-changed",{detail:{slides:i,source:"property"},bubbles:!0}))}next(){let t=this.hasAttribute("loop");this.#c<this.#e.length-1?this.goTo(this.#c+1):t&&this.goTo(0)}prev(){let t=this.hasAttribute("loop");this.#c>0?this.goTo(this.#c-1):t&&this.goTo(this.#e.length-1)}goTo(t,i=!0){if(!(t<0||t>=this.#e.length)){if(this.#p)if(i&&t!==this.#c){let s=t>this.#c?"forward":"backward";document.documentElement.dataset.vtDirection=s,ut(()=>{this.#S(t)}).finished?.then(()=>{delete document.documentElement.dataset.vtDirection})}else this.#S(t);else{let s=this.#e[t].getBoundingClientRect(),n=this.#t.getBoundingClientRect(),r=this.#x()?s.right-n.right:s.left-n.left,a=i&&!this.#u?"smooth":"instant";this.#t.scrollTo({left:this.#t.scrollLeft+r,behavior:a})}this.#M(t)}}#S(t){this.#e.forEach((i,s)=>{i.hidden=s!==t})}play(){this.#u||!this.#t||(this.#m=!1,this.#d=!0,this.#h=this.#E=!1,this.#i||(this.#b(),this.insertBefore(this.#i,this.firstChild)),this.#w())}pause(){this.#m=!0,this.#d=!1,this.#w()}#b(){let t=document.createElement("button");t.type="button",t.className="carousel-rotate",this.listen(t,"click",()=>{this.#d?this.pause():this.play()}),this.#i=t,this.#k()}#k(){let t=this.#i;if(!t)return;let i=this.#d?"Pause automatic slide show":"Start automatic slide show";t.getAttribute("aria-label")!==i&&(t.setAttribute("aria-label",i),t.innerHTML=`<icon-wc name="${this.#d?"pause":"play"}" size="sm"></icon-wc>`)}#w(){this.#d&&!this.#h&&!this.#E&&!this.#u&&this.isConnected&&!!this.#t?this.#A():this.#N(),this.#k()}#A(){if(this.#l)return;let t=Number(this.getAttribute("autoplay-delay"))||5e3;this.#l=setInterval(()=>this.next(),t),this.#r?.setAttribute("aria-live","off"),this.dispatchEvent(new CustomEvent("carousel-wc:play",{bubbles:!0}))}#N(){this.#r?.setAttribute("aria-live","polite"),this.#l&&(clearInterval(this.#l),this.#l=null,this.dispatchEvent(new CustomEvent("carousel-wc:pause",{bubbles:!0})))}#x(){return getComputedStyle(this).direction==="rtl"}reset(){let t=Number(this.getAttribute("start"))||0;this.goTo(t,!1),this.#C()}#M(t){this.#c=t,this.#F(),this.#W(),this.#r&&(this.#r.textContent=`Slide ${t+1} of ${this.#e.length}`),!this.#f&&(this.#_(),!this.#p&&"onscrollend"in window&&(this.#f=!0))}#_(){this.#c!==this.#g&&(this.#g=this.#c,this.dispatchEvent(new CustomEvent("carousel-wc:change",{detail:{index:this.#c,slide:this.#e[this.#c]},bubbles:!0})))}#F(){let t=this.hasAttribute("loop"),i=this.#c===0,s=this.#c===this.#e.length-1;if(this.#n&&(this.#n.disabled=!t&&i),this.#s&&(this.#s.disabled=!t&&s),this.#o){let n=this.#o.children;for(let r=0;r<n.length;r++)r===this.#c?(n[r].setAttribute("aria-current","true"),n[r].setAttribute("data-active","")):(n[r].removeAttribute("aria-current"),n[r].removeAttribute("data-active"))}}#D=t=>{for(let i of t)if(i.isIntersecting){let s=this.#e.indexOf(i.target);s!==-1&&s!==this.#c&&this.#M(s)}};#O=t=>{let i=(t.key==="ArrowLeft"||t.key==="ArrowRight")&&this.#x();switch(t.key){case"ArrowLeft":t.preventDefault(),i?this.next():this.prev();break;case"ArrowRight":t.preventDefault(),i?this.prev():this.next();break;case"Home":t.preventDefault(),this.goTo(0);break;case"End":t.preventDefault(),this.goTo(this.#e.length-1);break}};#$(){let t=this.getAttribute("persist");if(!t)return null;try{let i=localStorage.getItem(`carousel:${t}`);return i!==null?Number(i):null}catch{return null}}#W(){let t=this.getAttribute("persist");if(t)try{localStorage.setItem(`carousel:${t}`,String(this.#c))}catch{}}#C(){let t=this.getAttribute("persist");if(t)try{localStorage.removeItem(`carousel:${t}`)}catch{}}};E("carousel-wc",Ar);var Fv=0,Er=class extends k{static formAssociated=!0;#t;#e;#i;#n;#s=[];#o=[];#r=-1;#a=!1;#l="";#c="";#g;#f=!1;#u;#p;#y=[];constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}get#d(){return this.hasAttribute("multiple")}setup(){let t=this.querySelector(":scope > input")||this.querySelector(":scope > .tags-input-area > input");if(!t)return!1;this.#e=t;let i=this.#e.getAttribute("name");i&&(this.hasAttribute("name")||this.setAttribute("name",i),this.#e.removeAttribute("name"));let s=this.querySelector("ul, ol");if(!s)return!1;if(this.#i=s,this.#d){let c=this.querySelector(":scope > .tags-input-area");if(!c){c=document.createElement("div"),c.className="tags-input-area";let u=this.querySelector(":scope > pop-over[data-combobox-host]")||this.#i;this.insertBefore(c,u)}this.#u=c,this.#e.parentNode!==this.#u&&this.#u.appendChild(this.#e);let l=this.querySelector(":scope > [data-combobox-live]");l||(l=document.createElement("div"),l.setAttribute("aria-live","polite"),l.setAttribute("aria-atomic","true"),l.setAttribute("data-combobox-live",""),l.className="visually-hidden",this.appendChild(l)),this.#p=l}let n=this.getAttribute("placeholder");n&&!this.#e.getAttribute("placeholder")&&this.#e.setAttribute("placeholder",n);let r=`cb${++Fv}`;this.#i.id||(this.#i.id=`combobox-listbox-${r}`),this.#e.setAttribute("role","combobox"),this.#e.setAttribute("aria-expanded","false"),this.#e.setAttribute("aria-autocomplete","list"),this.#e.setAttribute("aria-controls",this.#i.id),this.#e.setAttribute("autocomplete","off"),this.#i.setAttribute("role","listbox"),this.#d&&this.#i.setAttribute("aria-multiselectable","true");let a=this.#d?this.#u:this.#e;a.id||(a.id=`combobox-anchor-${r}`);let o=this.querySelector(":scope > pop-over[data-combobox-host]");if(o?this.#n=o:(this.#n=document.createElement("pop-over"),this.#n.setAttribute("data-combobox-host",""),this.#n.id=`combobox-pop-${r}`,this.#n.dataset.mode="manual",this.#n.dataset.position="bottom-start",this.#n.dataset.anchor=a.id,this.#n.appendChild(this.#i),this.appendChild(this.#n)),this.#n.dataset.anchor=a.id,this.#i.parentElement!==this.#n&&this.#n.appendChild(this.#i),this.#E(),!this.#d){let c=this.getAttribute("value");c&&this.#C(c,!1),this.#g===void 0&&(this.#g=this.#l)}return this.listen(this.#e,"input",this.#w),this.listen(this.#e,"keydown",this.#A),this.listen(this.#e,"focus",this.#N),this.listen(this.#e,"click",this.#x),this.listen(this.#i,"click",this.#M),this.listen(this.#i,"pointerdown",this.#_),this.listen(document,"click",this.#F),this.listen(this.#n,"pop-over:hide",this.#tt),this.listen(this,"invalid",this.#m),this.#I(),this.#L(),this.#q(),this.#h(this.matches(":disabled")),!0}teardown(){}#m=()=>{this.#e.setAttribute("aria-invalid","true")};formDisabledCallback(t){this.#e&&this.#h(t)}#h(t){this.#f=t,t&&this.#q();let i=this.#b(),s=this.#d&&i>0&&this.#y.length>=i;if(this.#e.disabled=t||s,this.#u)for(let n of this.#u.querySelectorAll(".tag button"))n.disabled=t}#E(){this.#s=Array.from(this.#i.querySelectorAll(":scope > li[data-value]")),this.#s.forEach((t,i)=>{t.setAttribute("role","option"),t.setAttribute("aria-selected","false"),t.id||(t.id=`${this.#i.id}-option-${i}`)}),this.#o=[...this.#s]}#v(t,i){if(this.#y.some(o=>o.value===t))return;let s=this.#b();if(s&&this.#y.length>=s)return;this.#y.push({value:t,label:i});let n=document.createElement("span");n.className="tag",n.dataset.value=t,n.textContent=i+" ";let r=document.createElement("button");r.type="button",r.setAttribute("aria-label",`Remove ${i}`),r.innerHTML="&times;",r.disabled=this.#f,r.addEventListener("click",o=>{o.stopPropagation(),this.#S(t)}),n.appendChild(r),this.#u.insertBefore(n,this.#e);let a=this.#s.find(o=>o.getAttribute("data-value")===t);a&&a.setAttribute("aria-selected","true"),this.#k(`${i} added`),this.#e.value="",this.#D(""),this.#I(),this.#L(),this.#H(),s&&this.#y.length>=s&&(this.#e.disabled=!0,this.#q())}#S(t){let i=this.#y.findIndex(o=>o.value===t);if(i===-1)return;let s=this.#y.splice(i,1)[0],n=this.#u.querySelector(`.tag[data-value="${CSS.escape(t)}"]`);n&&n.remove();let r=this.#s.find(o=>o.getAttribute("data-value")===t);r&&r.setAttribute("aria-selected","false"),this.#k(`${s.label} removed`),this.#b()&&this.#e.disabled&&(this.#e.disabled=this.#f),this.#D(this.#e.value.trim()),this.#I(),this.#L(),this.#H(),this.#e.focus()}#b(){let t=this.getAttribute("max");return t?parseInt(t,10):0}#k(t){this.#p&&(this.#p.textContent="",requestAnimationFrame(()=>{this.#p.textContent=t}))}#w=()=>{let t=this.#e.value.trim();if(!this.#d&&this.#l){let i=this.#i.querySelector('[aria-selected="true"]');i&&i.setAttribute("aria-selected","false"),this.#l="",this.#c="",this.removeAttribute("value"),this.#I(),this.#L()}this.#D(t),this.#T()};#A=t=>{switch(t.key){case"ArrowDown":t.preventDefault(),this.#a||this.#T(),this.#O(this.#r+1);break;case"ArrowUp":t.preventDefault(),this.#a||this.#T(),this.#O(this.#r-1);break;case"Home":this.#a&&(t.preventDefault(),this.#O(0));break;case"End":this.#a&&(t.preventDefault(),this.#O(this.#o.length-1));break;case"Enter":if(this.#a&&this.#r>=0&&this.#o[this.#r]){t.preventDefault();let i=this.#o[this.#r];this.#d?this.#v(i.getAttribute("data-value"),i.textContent.trim()):this.#W(i)}else if(this.#d&&this.hasAttribute("custom")&&this.#e.value.trim()){t.preventDefault();let i=this.#e.value.trim();this.#v(i,i)}break;case"Backspace":if(this.#d&&!this.#e.value&&this.#y.length>0){let i=this.#y[this.#y.length-1];this.#S(i.value)}break;case",":if(this.#d&&this.hasAttribute("custom")&&this.#e.value.trim()){t.preventDefault();let i=this.#e.value.trim();this.#v(i,i)}break;case"Escape":this.#a&&(t.preventDefault(),t.stopPropagation(),this.#q(),this.#e.focus());break;case"Tab":this.#a&&this.#q();break}};#N=()=>{this.#d?(this.#D(this.#e.value.trim()),this.#T()):(this.#e.value||!this.#l)&&(this.#D(this.#e.value.trim()),this.#T())};#x=()=>{this.#a||(this.#D(this.#e.value.trim()),this.#T())};#M=t=>{let i=t.target.closest("li[data-value]");i&&this.#o.includes(i)&&(this.#d?this.#v(i.getAttribute("data-value"),i.textContent.trim()):this.#W(i))};#_=t=>{t.preventDefault()};#F=t=>{this.#a&&!this.contains(t.target)&&this.#q()};#D(t){let i=this.getAttribute("filter")||"contains",s=t.toLowerCase(),n=this.#d?new Set(this.#y.map(r=>r.value)):null;this.#o=[],this.#s.forEach(r=>{let a=r.getAttribute("data-value"),o=r.textContent.trim().toLowerCase();if(n&&n.has(a)){r.hidden=!0;return}let c;t?i==="startsWith"?c=o.startsWith(s):c=o.includes(s):c=!0,r.hidden=!c,c&&this.#o.push(r)}),this.#r=-1,this.#$(),this.setState("no-matches",this.#o.length===0)}#O(t){if(this.#o.length===0)return;t<0&&(t=this.#o.length-1),t>=this.#o.length&&(t=0),this.#r>=0&&this.#o[this.#r]&&this.#o[this.#r].removeAttribute("data-active"),this.#r=t;let i=this.#o[t];i.setAttribute("data-active",""),i.scrollIntoView({block:"nearest"}),this.#e.setAttribute("aria-activedescendant",i.id)}#$(){this.#s.forEach(t=>t.removeAttribute("data-active")),this.#e.removeAttribute("aria-activedescendant")}#W(t,i="internal"){let s=t.getAttribute("data-value")||"",n=t.textContent.trim();if(this.#l===s){this.#e.value=n,this.#q(),this.#e.focus();return}this.#s.forEach(r=>r.setAttribute("aria-selected","false")),t.setAttribute("aria-selected","true"),this.#l=s,this.#c=n,this.#e.value=n,this.setAttribute("value",s),this.#I(),this.#L(),this.#q(),this.#e.focus(),this.dispatchEvent(new CustomEvent("combo-box:change",{bubbles:!0,detail:{value:s,label:n,source:i}}))}#C(t,i=!0,s="api"){let n=this.#s.find(r=>r.getAttribute("data-value")===t);n&&(i?this.#W(n,s):(this.#s.forEach(r=>r.setAttribute("aria-selected","false")),n.setAttribute("aria-selected","true"),this.#l=t,this.#c=n.textContent.trim(),this.#e.value=this.#c,this.setAttribute("value",t)))}#T(){this.#a||this.#f||(this.#a=!0,this.setAttribute("open",""),this.#e.setAttribute("aria-expanded","true"),this.#n?.show(),this.dispatchEvent(new CustomEvent("combo-box:open",{bubbles:!0})))}#q(){this.#a&&(this.#a=!1,this.removeAttribute("open"),this.#e.setAttribute("aria-expanded","false"),this.#r=-1,this.#$(),this.#n?.hide(),this.dispatchEvent(new CustomEvent("combo-box:close",{bubbles:!0})))}#tt=()=>{this.#a&&(this.#a=!1,this.removeAttribute("open"),this.#e.setAttribute("aria-expanded","false"),this.#r=-1,this.#$(),this.dispatchEvent(new CustomEvent("combo-box:close",{bubbles:!0})))};#I(){if(this.#d)if(this.#y.length>0){let t=new FormData,i=this.getAttribute("name")||"";for(let s of this.#y)t.append(i,s.value);this.#t.setFormValue(t)}else this.#t.setFormValue(null);else this.#l?this.#t.setFormValue(this.#l,this.#c):this.#t.setFormValue(null)}#L(){this.hasAttribute("required")?this.#d?this.#y.length===0?this.#t.setValidity({valueMissing:!0},"Please select at least one option",this.#e):this.#t.setValidity({}):this.#l?this.#t.setValidity({}):this.#t.setValidity({valueMissing:!0},"Please select an option",this.#e):this.#t.setValidity({}),this.#t.validity.valid&&this.#e.removeAttribute("aria-invalid")}#H(){this.dispatchEvent(new CustomEvent("combo-box:change",{bubbles:!0,detail:{values:this.#y.map(t=>t.value),labels:this.#y.map(t=>t.label),source:"internal"}}))}formResetCallback(){this.#d?(this.#u.querySelectorAll(".tag").forEach(t=>t.remove()),this.#y=[],this.#e.value="",this.#e.disabled=this.#f):(this.#l="",this.#c="",this.#e.value="",this.removeAttribute("value")),this.#s.forEach(t=>{t.setAttribute("aria-selected","false"),t.hidden=!1}),this.#o=[...this.#s],this.#r=-1,this.#$(),this.#q(),this.#e.removeAttribute("aria-invalid"),!this.#d&&this.#g&&this.#C(this.#g,!1),this.#I(),this.#L()}formStateRestoreCallback(t){t&&(this.#d||(this.#C(t,!1),this.#I(),this.#L()))}get value(){return this.#l}set value(t){t?this.#C(t):this.#Y()}#Y(){this.#s.forEach(t=>t.setAttribute("aria-selected","false")),this.#l="",this.#c="",this.#e&&(this.#e.value=""),this.removeAttribute("value"),this.#I(),this.#L()}get label(){return this.#c}get values(){return this.#y.map(t=>t.value)}get labels(){return this.#y.map(t=>t.label)}static get observedAttributes(){return["value","disabled"]}attributeChangedCallback(t,i,s){if(!this.#e)return;if(t==="disabled"){this.#h(this.matches(":disabled"));return}let n=s??"";t==="value"&&n!==this.#l&&(n?(this.#C(n,!1),this.#I(),this.#L()):this.#Y())}};E("combo-box",Er);var es=86400,Pv=0;function le(e){return String(e).padStart(2,"0")}function jt(e){if(!e)return null;let t=/^(\d{2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?$/.exec(String(e).trim());if(!t)return null;let i=Number(t[1]),s=Number(t[2]),n=Number(t[3]||0);return i>23||s>59||n>59?null:i*3600+s*60+n}function vu(e,t){let i=Math.floor(e/3600),s=Math.floor(e%3600/60),n=e%60;return t?`${le(i)}:${le(s)}:${le(n)}`:`${le(i)}:${le(s)}`}function yt(e,t){return(e%t+t)%t}function Ov(e){try{let{hourCycle:t}=new Intl.DateTimeFormat(e||void 0,{hour:"numeric"}).resolvedOptions();return t==="h12"||t==="h11"?"12h":"24h"}catch{return"24h"}}function qv(e){let t={am:"AM",pm:"PM",periodFirst:!1};try{let i=new Intl.DateTimeFormat(e||void 0,{hour:"numeric",minute:"2-digit",hourCycle:"h12"}),s=i.formatToParts(new Date(2e3,0,1,9,0)),n=i.formatToParts(new Date(2e3,0,1,21,0)),r=s.find(o=>o.type==="dayPeriod")?.value,a=n.find(o=>o.type==="dayPeriod")?.value;if(r&&a){t.am=r,t.pm=a;let o=s.map(c=>c.type);t.periodFirst=o.indexOf("dayPeriod")<o.indexOf("hour")}}catch{}return t}function jv(e,t){let i=e.trim().toLowerCase();if(!i)return null;let s=null,n=[[t.am.toLowerCase(),"AM"],[t.pm.toLowerCase(),"PM"],["a.m.","AM"],["p.m.","PM"],["am","AM"],["pm","PM"],["a","AM"],["p","PM"]].sort((l,u)=>u[0].length-l[0].length);for(let[l,u]of n)if(l){if(i.endsWith(l)){s=u,i=i.slice(0,-l.length).trim();break}if(i.startsWith(l)){s=u,i=i.slice(l.length).trim();break}}if(!/^\d{1,2}(?:[:.]\d{1,2}){0,2}$/.test(i))return null;let r=i.split(/[:.]/).map(Number),a=r[0],o=r[1]??0,c=r[2]??0;if(o>59||c>59)return null;if(s){if(a<1||a>12)return null;s==="AM"?a=a===12?0:a:a=a===12?12:a+12}else if(a>23)return null;return a*3600+o*60+c}var kr=class extends k{static formAssociated=!0;static get observedAttributes(){return["disabled","required"]}#t;#e=`tp${++Pv}`;#i=!1;#n;#s;#o;#r;#a;#l=[];#c=null;#g=[];#f="24h";#u="";#p={am:"AM",pm:"PM",periodFirst:!1};#y=!1;#d=null;#m=null;#h=null;#E=60;#v;#S;#b=!1;#k="";#w=!1;constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}setup(){let t=this.querySelector(':scope > input[type="time"]');if(!t)return!1;this.#n=t,this.#u=this.closest("[lang]")?.lang||navigator.language||"en-US",this.#p=qv(this.#u);let i=this.getAttribute("data-format");this.#f=i==="12h"||i==="24h"?i:Ov(this.#u),this.#N();let s=t.getAttribute("name");s&&(this.hasAttribute("name")||this.setAttribute("name",s),t.removeAttribute("name")),t.hasAttribute("disabled")&&(t.removeAttribute("disabled"),this.hasAttribute("disabled")||this.setAttribute("disabled",""));let n=`${this.#e}-no-form`,r=t.getAttribute("form");return r&&r!==n&&!this.hasAttribute("form")&&this.setAttribute("form",r),t.setAttribute("form",n),this.#v===void 0&&(this.#v=t.defaultValue),this.#S!==void 0&&(t.value=this.#S,this.#S=void 0),this.#d=jt(t.value),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),t.style.cssText="position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden;",this.listen(t,"click",this.#_),this.listen(t,"focus",this.#M),this.#D(),this.#O(),this.#i=!0,this.#F(),this.#et(),this.#j(!1),this.#it(),this.listen(document,"click",this.#q),this.listen(this,"focusout",this.#tt),this.listen(this,"invalid",this.#X),this.#A(this.matches(":disabled")),!0}teardown(){this.#b=!1,this.#o?.remove(),this.#a?.remove(),this.#l=[],this.#g=[],this.#c=null,this.#i=!1,clearTimeout(this.#Q),this.#R=""}attributeChangedCallback(t){this.#i&&(t==="disabled"&&this.#A(this.matches(":disabled")),t==="required"&&this.#it())}formDisabledCallback(t){this.#i&&this.#A(t)}#A(t){this.#s.disabled=t,this.#r.disabled=t,t&&this.#T()}#N(){let t=this.#n.getAttribute("step");if(t&&t.trim().toLowerCase()==="any")this.#E=null;else{let s=Number(t);this.#E=Number.isFinite(s)&&s>0?Math.max(1,Math.round(s)):60}this.#m=jt(this.#n.getAttribute("min")),this.#h=jt(this.#n.getAttribute("max"));let i=jt(this.#n.value);this.#y=this.#E!==null&&this.#E%60!==0||i!==null&&i%60!==0}#x(t,i){return this.dataset[`label${t}`]||i}#M=()=>{this.#i&&!this.#s.disabled&&this.#s.focus()};#_=t=>{t.preventDefault(),this.#M()};#F(){let t=new Set([...Array.from(this.#n.labels||[]),...Array.from(this.#t.labels||[])]),i=[];for(let a of t)a.id||(a.id=`${this.#e}-label-${i.length}`),i.push(a.id),this.listen(a,"click",this.#M);let s=this.#s,n=i.join(" ")||this.#n.getAttribute("aria-labelledby")||this.getAttribute("aria-labelledby");n?s.setAttribute("aria-labelledby",n):s.setAttribute("aria-label",this.#n.getAttribute("aria-label")||this.getAttribute("aria-label")||this.#x("Input","Time"));let r=this.#n.getAttribute("aria-describedby");r&&s.setAttribute("aria-describedby",r)}#D(){this.#o=document.createElement("div"),this.#o.className="time-trigger";let t=document.createElement("input");t.type="text",t.className="time-input",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded","false"),t.setAttribute("autocomplete","off"),t.setAttribute("placeholder",this.#x("Placeholder","Type a time\u2026")),this.#s=t,this.#o.appendChild(t),this.#r=document.createElement("button"),this.#r.type="button",this.#r.className="time-trigger-icon",this.#r.setAttribute("aria-label",this.#x("Toggle","Toggle time spinners")),this.#r.setAttribute("tabindex","-1");let i=document.createElement("icon-wc");i.setAttribute("name","clock"),i.setAttribute("size","sm"),i.setAttribute("aria-hidden","true"),this.#r.appendChild(i),this.#o.appendChild(this.#r),this.appendChild(this.#o),this.listen(this.#r,"click",s=>{s.stopPropagation(),this.#b?this.#T():this.#C(),this.#s.focus()}),this.listen(t,"focus",()=>t.select()),this.listen(t,"keydown",this.#L),this.listen(t,"blur",this.#Y)}#O(){let t=`${this.#e}-panel`;this.#a=document.createElement("div"),this.#a.className="time-panel",this.#a.id=t,this.#a.setAttribute("role","dialog"),this.#a.setAttribute("aria-modal","false"),this.#a.setAttribute("aria-label",this.#x("Dialog","Choose time")),this.#s.setAttribute("aria-controls",t);let i=this.#E??60,s=i>=3600&&i%3600===0?i/3600:1,n=i>=60&&i<3600&&i%60===0?i/60:1,r=i<60?i:1,a=i>=3600&&i%3600===0,o=this.#f==="12h",c=null;o&&(c=document.createElement("button"),c.type="button",c.className="period-toggle"),this.#c=c,c&&this.#p.periodFirst&&this.#a.appendChild(c);let l=!o&&this.#m!==null&&this.#h!==null&&this.#m<=this.#h;this.#l=[],this.#l.push(this.#$("hour",this.#x("Hours","Hours"),o?1:l?Math.floor(this.#m/3600):0,o?12:l?Math.floor(this.#h/3600):23,s,!1)),this.#a.appendChild(this.#W()),this.#l.push(this.#$("minute",this.#x("Minutes","Minutes"),0,59,n,a)),this.#y&&(this.#a.appendChild(this.#W()),this.#l.push(this.#$("second",this.#x("Seconds","Seconds"),0,59,r,!1))),c&&!this.#p.periodFirst&&this.#a.appendChild(c),this.#g=[...this.#a.querySelectorAll(".time-spinner, .period-toggle")],this.appendChild(this.#a);for(let u of this.#l)this.listen(u.incBtn,"click",()=>this.#V(u,u.delta,"pointer")),this.listen(u.decBtn,"click",()=>this.#V(u,-u.delta,"pointer")),this.listen(u.el,"keydown",d=>this.#z(d,u));if(this.#c){let u=this.#c;this.listen(u,"click",d=>{this.#J(d.detail===0?"keyboard":"pointer")}),this.listen(u,"keydown",d=>this.#B(d,u))}}#$(t,i,s,n,r,a){let o=document.createElement("div");o.className="time-spinner",o.dataset.unit=t,o.setAttribute("role","spinbutton"),o.setAttribute("aria-label",i),o.setAttribute("aria-valuemin",String(s)),o.setAttribute("aria-valuemax",String(n)),a&&o.setAttribute("aria-readonly","true"),o.setAttribute("tabindex","0");let c=document.createElement("button");c.type="button",c.className="time-inc",c.setAttribute("aria-hidden","true"),c.setAttribute("tabindex","-1"),c.textContent="\u25B2",a&&(c.disabled=!0);let l=document.createElement("span");l.className="time-value";let u=document.createElement("button");return u.type="button",u.className="time-dec",u.setAttribute("aria-hidden","true"),u.setAttribute("tabindex","-1"),u.textContent="\u25BC",a&&(u.disabled=!0),o.append(c,l,u),this.#a.appendChild(o),{unit:t,el:o,valueEl:l,incBtn:c,decBtn:u,min:s,max:n,delta:r,readOnly:a}}#W(){let t=document.createElement("span");return t.className="time-sep",t.setAttribute("aria-hidden","true"),t.textContent=":",t}#C(){this.#b||this.#s.disabled||(this.#b=!0,this.#a.setAttribute("data-open",""),this.#s.setAttribute("aria-expanded","true"))}#T(){this.#b&&(this.#b=!1,this.#a.removeAttribute("data-open"),this.#s.setAttribute("aria-expanded","false"))}#q=t=>{this.#b&&!this.contains(t.target)&&this.#T()};#tt=t=>{let i=t.relatedTarget;i instanceof Node&&this.contains(i)||this.#T()};#I(t){try{let i=new Date(2e3,0,1,Math.floor(t/3600),Math.floor(t%3600/60),t%60),s={hour:this.#f==="12h"?"numeric":"2-digit",minute:"2-digit",hourCycle:this.#f==="12h"?"h12":"h23"};return this.#y&&(s.second="2-digit"),new Intl.DateTimeFormat(this.#u,s).format(i)}catch{return vu(t,this.#y)}}#L=t=>{switch(t.key){case"Enter":{t.preventDefault(),t.stopPropagation(),this.#H(),this.#b&&this.#T();return}case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.#b||this.#C(),this.#g[0]?.focus();return;case"Escape":t.preventDefault(),t.stopPropagation(),this.#b&&this.#T(),this.#et();return}};#H(){let t=this.#s.value.trim();if(!t)this.#U(null,"keyboard");else{let i=jv(t,this.#p);i!==null&&this.#U(i,"keyboard")}this.#et()}#Y=t=>{t.relatedTarget instanceof Node&&this.contains(t.relatedTarget)||(this.#H(),this.#X())};#X=()=>{this.#i&&(this.#w||(this.#w=!0,this.#it()),this.#n.dispatchEvent(new Event("blur",{bubbles:!0})))};#B(t,i){let s=this.#g.indexOf(i),n=getComputedStyle(this).direction==="rtl",r=n?"ArrowLeft":"ArrowRight",a=n?"ArrowRight":"ArrowLeft";return t.key===r||t.key===a?(t.preventDefault(),this.#g[s+(t.key===r?1:-1)]?.focus(),!0):t.key==="Escape"?(t.preventDefault(),t.stopPropagation(),this.#T(),this.#s.focus(),!0):!1}#z(t,i){if(this.#B(t,i.el))return;let s=i.unit==="hour"?i.delta:Math.ceil(10/i.delta)*i.delta;switch(t.key){case"ArrowUp":t.preventDefault(),this.#V(i,i.delta,"keyboard");break;case"ArrowDown":t.preventDefault(),this.#V(i,-i.delta,"keyboard");break;case"PageUp":t.preventDefault(),this.#V(i,s,"keyboard");break;case"PageDown":t.preventDefault(),this.#V(i,-s,"keyboard");break;case"Home":t.preventDefault(),this.#Z(i,i.min,1,"keyboard");break;case"End":t.preventDefault(),this.#Z(i,i.max,-1,"keyboard");break;default:/^\d$/.test(t.key)&&(t.preventDefault(),this.#G(t.key,i))}}#R="";#Q;#G(t,i){clearTimeout(this.#Q),this.#R+=t;let s=()=>{let n=Math.min(Math.max(Number(this.#R),i.min),i.max);this.#R="",this.#Z(i,n,0,"keyboard")};this.#R.length>=2||Number(this.#R)*10>i.max?s():this.#Q=setTimeout(s,800)}#P(){return this.#st(this.#m??0,1)}#st(t,i){let s=yt(t,es),n=this.#E;if(n){let o=this.#m??0,c=(s-o)/n,l=i>0?Math.floor(c):i<0?Math.ceil(c):Math.round(c);s=yt(o+l*n,es)}let r=this.#m,a=this.#h;return r!==null&&a!==null&&r<=a?(s<r&&(s=r),s>a&&(s=n?r+Math.floor((a-r)/n)*n:a)):r!==null&&a===null&&s<r?s=r:a!==null&&r===null&&s>a&&(s=n?Math.floor(a/n)*n:a),s}#V(t,i,s){if(t.readOnly)return;if(this.#d===null){this.#U(this.#P(),s);return}let n=this.#d,r=Math.floor(n/3600),a=Math.floor(n%3600/60),o=n%60,c;t.unit==="hour"?c=(this.#f==="12h"?yt(r%12+i,12)+(r>=12?12:0):yt(r+i,24))*3600+a*60+o:t.unit==="minute"?c=r*3600+yt(a+i,60)*60+o:c=r*3600+a*60+yt(o+i,60),this.#U(this.#st(c,i),s)}#Z(t,i,s,n){if(t.readOnly)return;let r=this.#d??this.#P(),a=Math.floor(r/3600),o=Math.floor(r%3600/60),c=r%60,l;t.unit==="hour"?l=(this.#f==="12h"?i%12+(a>=12?12:0):i)*3600+o*60+c:t.unit==="minute"?l=a*3600+i*60+c:l=a*3600+o*60+i,this.#U(this.#st(l,s),n)}#J(t){let i=this.#d??this.#P();this.#U(this.#st(yt(i+12*3600,es),0),t)}#U(t,i){let s=this.value;return this.#d=t,t!==null&&t%60!==0&&!this.#y&&(this.#y=!0),this.#et(),this.value===s?!1:(this.#j(),this.#it(),this.dispatchEvent(new CustomEvent("time-picker:change",{bubbles:!0,detail:{...this.#K(),source:i}})),!0)}#K(){let t=this.#d;return t===null?{value:"",hours:null,minutes:null,seconds:null}:{value:this.value,hours:Math.floor(t/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}#et(){if(!this.#i)return;let t=this.#d;this.#s.value=t===null?"":this.#I(t);let i=this.#x("Empty","Not set"),s=t===null?null:Math.floor(t/3600),n={hour:s===null?null:this.#f==="12h"?s%12||12:s,minute:t===null?null:Math.floor(t%3600/60),second:t===null?null:t%60},r=s===null?"":s>=12?this.#p.pm:this.#p.am;for(let a of this.#l){let o=n[a.unit];if(a.valueEl.textContent=o===null?"--":le(o),o===null){a.el.removeAttribute("aria-valuenow"),a.el.setAttribute("aria-valuetext",i);continue}a.el.setAttribute("aria-valuenow",String(o));let c;try{c=a.unit==="hour"&&this.#f==="12h"?new Intl.DateTimeFormat(this.#u,{hour:"numeric",hourCycle:"h12"}).format(new Date(2e3,0,1,s)):new Intl.NumberFormat(this.#u,{style:"unit",unit:a.unit,unitDisplay:"long"}).format(o)}catch{c=a.unit==="hour"&&r?`${o} ${r}`:String(o)}a.el.setAttribute("aria-valuetext",c)}this.#c&&(this.#c.textContent=r||"--",this.#c.setAttribute("aria-label",`${this.#x("Period","AM/PM")}: ${r||i}`))}#j(t=!0){let i=this.value;this.#t.setFormValue(i||null),this.#n.value=i,t&&this.#n.dispatchEvent(new Event("input",{bubbles:!0}))}#nt(t,i,s,n={}){let r=this.#n.getAttribute(`data-message-${t.toLowerCase()}`)??this.#x(i,s);for(let[a,o]of Object.entries(n))r=r.replaceAll(`{${a}}`,o);return r}#it(){if(!this.#i)return!1;let t=this.hasAttribute("required")||this.#n.hasAttribute("required");t?this.#s.setAttribute("aria-required","true"):this.#s.removeAttribute("aria-required");let i=this.#d,s=this.#m,n=this.#h,r={},a="";if(i===null)t&&(r={valueMissing:!0},a=this.#nt("valueMissing","Required","Please select a time"));else{let l=s!==null&&n!==null&&s>n,u=s!==null&&i<s,d=n!==null&&i>n;if(l?u&&d:u)r=l?{rangeUnderflow:!0,rangeOverflow:!0}:{rangeUnderflow:!0},a=this.#nt("rangeUnderflow","RangeUnderflow","Choose a time at or after {time}",{time:this.#I(s)});else if(!l&&d)r={rangeOverflow:!0},a=this.#nt("rangeOverflow","RangeOverflow","Choose a time at or before {time}",{time:this.#I(n)});else if(this.#E&&yt(i-(s??0),this.#E)!==0){let h=this.#st(i,1),f=yt(h+this.#E,es);r={stepMismatch:!0},a=this.#nt("stepMismatch","StepMismatch","Choose a valid time. The nearest are {lower} and {upper}",{lower:this.#I(h),upper:this.#I(f)})}}let o=this.#t.validationMessage;return a?this.#t.setValidity(r,a,this.#s):this.#t.setValidity({}),a&&(i!==null||this.#w)?this.#s.setAttribute("aria-invalid","true"):this.#s.removeAttribute("aria-invalid"),(this.#n.validationMessage===this.#k||!this.#n.validity.customError)&&(this.#n.setCustomValidity(a),this.#k=a),o!==a}#rt(t){this.#d=t,this.#et(),this.#j(),this.#it()}formResetCallback(){this.#i&&(this.#w=!1,this.#rt(jt(this.#v)))}formStateRestoreCallback(t){!this.#i||typeof t!="string"||this.#rt(jt(t))}get form(){return this.#t.form}get validity(){return this.#t.validity}get validationMessage(){return this.#t.validationMessage}get willValidate(){return this.#t.willValidate}checkValidity(){return this.#t.checkValidity()}reportValidity(){return this.#t.reportValidity()}get value(){return this.#i?this.#d===null?"":vu(this.#d,this.#y):this.#S??""}set value(t){let i=t==null?"":String(t).trim(),s=i?jt(i):null;if(!(i&&s===null)){if(!this.#i){this.#S=i;return}this.#U(s,"api")}}};E("time-picker",kr);var is="popover"in HTMLElement.prototype;var ue=[{ja:"\u4EE4\u548C",latin:"R",start:[2019,5,1]},{ja:"\u5E73\u6210",latin:"H",start:[1989,1,8]},{ja:"\u662D\u548C",latin:"S",start:[1926,12,25]},{ja:"\u5927\u6B63",latin:"T",start:[1912,7,30]},{ja:"\u660E\u6CBB",latin:"M",start:[1868,10,23]}],Hv=new RegExp(`^(?:(${ue.map(e=>e.ja).join("|")})|(${ue.map(e=>e.latin).join("|")}))`+String.raw`\s*(元|\d{1,2})年?[/.\-]?\s*(\d{1,2})月?[/.\-]?\s*(\d{1,2})日?$`,"i"),zv=/^(\d{4})年(\d{1,2})月(\d{1,2})日?$/;function wu(e){return e.trim().replace(/[0-9]/g,t=>String(t.charCodeAt(0)-65296)).replace(/\s+/g,"")}function Au(e,t,i){let s=new Date(2e3,t-1,i);return s.setFullYear(e),s.getMonth()===t-1&&s.getDate()===i?s:null}function Eu(e){let t=wu(e).match(Hv);if(!t)return null;let i=t[1]?ue.find(a=>a.ja===t[1]):ue.find(a=>a.latin.toUpperCase()===t[2].toUpperCase());if(!i)return null;let s=t[3]==="\u5143"?1:Number(t[3]);if(s<1)return null;let n=Au(i.start[0]+s-1,Number(t[4]),Number(t[5]));if(!n||n<new Date(i.start[0],i.start[1]-1,i.start[2]))return null;let r=ue.indexOf(i);if(r>0){let a=ue[r-1].start;if(n>=new Date(a[0],a[1]-1,a[2]))return null}return n}function ku(e){let t=wu(e).match(zv);return t?Au(Number(t[1]),Number(t[2]),Number(t[3])):null}Q();var Dr=["january","february","march","april","may","june","july","august","september","october","november","december"],Vv=0;function it(e){let t=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${t}-${i}-${s}`}function Nr(e,t,i){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(i))return null;let s=new Date(e,t,i);return s.getFullYear()!==e||s.getMonth()!==t||s.getDate()!==i?null:s}function ht(e){if(!e)return null;let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(String(e).trim());return t?Nr(Number(t[1]),Number(t[2])-1,Number(t[3])):null}function Xe(e,t){return new Date(e,t+1,0).getDate()}function Sr(e,t){let i=new Date(e.getFullYear(),e.getMonth()+t,1),s=i.getFullYear(),n=i.getMonth();return new Date(s,n,Math.min(e.getDate(),Xe(s,n)))}function Uv(e){try{let t=new Intl.Locale(e),i=t.getWeekInfo?.()??t.weekInfo;if(i)return i.firstDay%7}catch{}return 0}var xr=new Map;function Su(e,t){let i=`${e}:${t}`;if(xr.has(i))return xr.get(i);let s;try{let n=new Intl.DateTimeFormat(e,{weekday:t});s=Array.from({length:7},(r,a)=>n.format(new Date(2026,0,4+a)))}catch{s=t==="long"?["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}return xr.set(i,s),s}function xu(e,t){try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(e)}catch{return it(e)}}function Cr(e,t){return!!(e&&t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())}var Tr=new Map;function Wv(e){if(Tr.has(e))return Tr.get(e);let t=new Map;Dr.forEach((i,s)=>{t.set(i,s),t.set(i.slice(0,3),s)});try{let i=new Intl.DateTimeFormat(e,{month:"long"}),s=new Intl.DateTimeFormat(e,{month:"short"});for(let n=0;n<12;n++){let r=new Date(2e3,n,1);t.set(i.format(r).toLowerCase(),n),t.set(s.format(r).toLowerCase().replace(".",""),n)}}catch{}return Tr.set(e,t),t}function Lr(e,t){let i=e.trim(),s={date:null,partial:null};if(!i)return s;if(/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(i)){let o=ht(i.replace(/\//g,"-"));return o?{date:o,partial:null}:s}if(Ui(t)==="ja"){let o=Eu(i);if(o)return{date:o,partial:null}}let n=ku(i);if(n)return{date:n,partial:null};let r=Wv(t),a=i.match(/^([a-zÀ-ɏ]+)\.?\s+(\d{1,2}),?\s+(\d{4})$/i);if(a){let o=r.get(a[1].toLowerCase());if(o===void 0)return s;let c=Nr(Number(a[3]),o,Number(a[2]));return c?{date:c,partial:null}:s}if(a=i.match(/^(\d{1,2})\.?\s+([a-zÀ-ɏ]+)\.?\s+(\d{4})$/i),a){let o=r.get(a[2].toLowerCase());if(o===void 0)return s;let c=Nr(Number(a[3]),o,Number(a[1]));return c?{date:c,partial:null}:s}if(a=i.match(/^([a-zÀ-ɏ]+)\.?\s+(\d{4})$/i),a){let o=r.get(a[1].toLowerCase());if(o!==void 0)return{date:null,partial:{year:Number(a[2]),month:o}}}return s}function Cu(e){let t=new Map;if(!e)return t;for(let i of e.split(",")){let[s,n]=i.trim().split(":");s&&t.set(s,n||"")}return t}var Mr=class extends k{static formAssociated=!0;static get observedAttributes(){return["disabled","required"]}#t;#e=`dp${++Vv}`;#i=!1;#n;#s;#o;#r;#a;#l;#c;#g;#f=!1;#u=!1;#p="en-US";#y=null;#d=null;#m=new Date().getFullYear();#h=new Date().getMonth();#E=null;#v=null;#S=new Map;#b=new Map;#k;#w;#A=0;#N="";#x=!1;constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}setup(){let t=this.querySelector(':scope > input[type="date"]');if(!t)return!1;this.#n=t,this.#p=At(this.closest("[lang]")?.lang||navigator.language),this.#A=Uv(this.#p),this.#E=ht(t.getAttribute("min")),this.#v=ht(t.getAttribute("max")),this.#S=Cu(this.getAttribute("data-disabled-dates")),this.#b=Cu(this.getAttribute("data-highlight-dates"));let i=t.getAttribute("name");i&&(this.hasAttribute("name")||this.setAttribute("name",i),t.removeAttribute("name")),t.hasAttribute("disabled")&&(t.removeAttribute("disabled"),this.hasAttribute("disabled")||this.setAttribute("disabled",""));let s=`${this.#e}-no-form`,n=t.getAttribute("form");n&&n!==s&&!this.hasAttribute("form")&&this.setAttribute("form",n),t.setAttribute("form",s),this.#k===void 0&&(this.#k=t.defaultValue),this.#w!==void 0&&(t.value=this.#w,this.#w=void 0),this.#y=ht(t.value);let r=new Date;return this.#v&&r>this.#v&&(r=this.#v),this.#E&&r<this.#E&&(r=this.#E),this.#d=this.#y||r,this.#m=this.#d.getFullYear(),this.#h=this.#d.getMonth(),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),t.style.cssText="position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden;",this.listen(t,"click",this.#D),this.listen(t,"focus",this.#F),this.#$(),this.#W(),this.#i=!0,this.#O(),this.#X(),this.#K(!1),this.#j(),this.#u=is,this.#u&&this.#a.setAttribute("popover","manual"),this.listen(document,"click",this.#Z),this.listen(this,"invalid",this.#V),this.#M(this.matches(":disabled")),!0}teardown(){this.#f=!1,this.removeAttribute("open"),window.removeEventListener("scroll",this.#Q,{capture:!0}),window.removeEventListener("resize",this.#Q),this.#r?.remove(),this.#a?.remove(),this.#S=new Map,this.#b=new Map,this.#i=!1}attributeChangedCallback(t){this.#i&&(t==="disabled"&&this.#M(this.matches(":disabled")),t==="required"&&this.#j())}formDisabledCallback(t){this.#i&&this.#M(t)}#M(t){this.#s.disabled=t,this.#o.disabled=t,t&&this.#z()}#_(t,i){return this.dataset[`label${t}`]||i}#F=()=>{this.#i&&!this.#s.disabled&&this.#s.focus()};#D=t=>{t.preventDefault(),this.#F()};#O(){let t=new Set([...Array.from(this.#n.labels||[]),...Array.from(this.#t.labels||[])]),i=[];for(let a of t)a.id||(a.id=`${this.#e}-label-${i.length}`),i.push(a.id),this.listen(a,"click",this.#F);let s=this.#s,n=i.join(" ")||this.#n.getAttribute("aria-labelledby")||this.getAttribute("aria-labelledby");n?s.setAttribute("aria-labelledby",n):s.setAttribute("aria-label",this.#n.getAttribute("aria-label")||this.getAttribute("aria-label")||this.#_("Input","Date"));let r=this.#n.getAttribute("aria-describedby");r&&s.setAttribute("aria-describedby",r)}#$(){this.#r=document.createElement("div"),this.#r.className="date-trigger",this.#s=document.createElement("input"),this.#s.type="text",this.#s.className="date-input",this.#s.setAttribute("role","combobox"),this.#s.setAttribute("aria-haspopup","dialog"),this.#s.setAttribute("aria-expanded","false"),this.#s.setAttribute("autocomplete","off"),this.#s.setAttribute("placeholder",this.#_("Placeholder","Type a date\u2026")),this.#r.appendChild(this.#s),this.#o=document.createElement("button"),this.#o.type="button",this.#o.className="date-trigger-icon",this.#o.setAttribute("aria-label",this.#_("Toggle","Toggle calendar")),this.#o.setAttribute("tabindex","-1");let t=document.createElement("icon-wc");t.setAttribute("name","calendar"),t.setAttribute("size","sm"),t.setAttribute("aria-hidden","true"),this.#o.appendChild(t),this.#r.appendChild(this.#o),this.appendChild(this.#r),this.listen(this.#o,"click",i=>{i.stopPropagation(),this.#f?this.#z():this.#B(),this.#s.focus()}),this.listen(this.#s,"focus",()=>this.#s.select()),this.listen(this.#s,"input",this.#G),this.listen(this.#s,"keydown",this.#P),this.listen(this.#s,"blur",this.#st)}#W(){let t=`${this.#e}-calendar`;this.#a=document.createElement("div"),this.#a.className="calendar",this.#a.id=t,this.#a.setAttribute("role","dialog"),this.#a.setAttribute("aria-modal","false"),this.#a.setAttribute("aria-label",this.#_("Dialog","Choose date")),this.#a.hidden=!0,this.#s.setAttribute("aria-controls",t);let i=document.createElement("div");i.className="calendar-header";let s=document.createElement("button");s.type="button",s.className="calendar-nav",s.setAttribute("aria-label",this.#_("Prev","Previous month"));let n=document.createElement("icon-wc");n.setAttribute("name","chevron-left"),n.setAttribute("size","sm"),n.setAttribute("aria-hidden","true"),s.appendChild(n);let r=document.createElement("span");r.className="calendar-title",this.#c=document.createElement("span"),this.#c.className="calendar-month",this.#c.id=`${t}-title`,this.#c.setAttribute("aria-live","polite"),this.#c.setAttribute("aria-atomic","true"),this.#g=document.createElement("select"),this.#g.className="calendar-year",this.#g.setAttribute("aria-label",this.#_("Year","Year")),this.#tt(),r.appendChild(this.#c),r.appendChild(this.#g);let a=document.createElement("button");a.type="button",a.className="calendar-nav",a.setAttribute("aria-label",this.#_("Next","Next month"));let o=document.createElement("icon-wc");o.setAttribute("name","chevron-right"),o.setAttribute("size","sm"),o.setAttribute("aria-hidden","true"),a.appendChild(o),i.appendChild(s),i.appendChild(r),i.appendChild(a),this.#a.appendChild(i);let c=document.createElement("table");c.setAttribute("role","grid"),c.setAttribute("aria-labelledby",`${t}-title`);let l=Su(this.#p,"short"),u=Su(this.#p,"long"),d=document.createElement("thead"),h=document.createElement("tr");for(let f=0;f<7;f++){let p=(this.#A+f)%7,m=document.createElement("th");m.setAttribute("abbr",u[p]),m.setAttribute("scope","col"),m.textContent=l[p],h.appendChild(m)}d.appendChild(h),c.appendChild(d),this.#l=document.createElement("tbody"),c.appendChild(this.#l),this.#a.appendChild(c),this.appendChild(this.#a),this.#C(),this.listen(s,"click",()=>this.#I(-1)),this.listen(a,"click",()=>this.#I(1)),this.listen(this.#g,"change",()=>{this.#m=Number(this.#g.value);let f=Xe(this.#m,this.#h),p=Math.min(this.#d?.getDate()??1,f);this.#d=new Date(this.#m,this.#h,p),this.#C()}),this.listen(this.#l,"click",this.#J),this.listen(this.#a,"keydown",this.#U)}#C(){let t;try{t=new Intl.DateTimeFormat(this.#p,{month:"long"}).format(new Date(this.#m,this.#h,1))}catch{t=Dr[this.#h].charAt(0).toUpperCase()+Dr[this.#h].slice(1)}let i;try{i=new Intl.DateTimeFormat(this.#p,{month:"long",year:"numeric"}).format(new Date(this.#m,this.#h,1))}catch{i=`${t} ${this.#m}`}if(this.#c.lastElementChild?.textContent!==i){let l=document.createElement("span");l.setAttribute("aria-hidden","true"),l.textContent=t;let u=document.createElement("span");u.className="visually-hidden",u.textContent=i,this.#c.replaceChildren(l,u)}this.#g.querySelector(`option[value="${this.#m}"]`)||this.#tt(),this.#g.value=String(this.#m),this.#l.replaceChildren();let s=Xe(this.#m,this.#h),r=(new Date(this.#m,this.#h,1).getDay()-this.#A+7)%7,a=new Date,o=document.createElement("tr");for(let l=0;l<r;l++)o.appendChild(document.createElement("td"));for(let l=1;l<=s;l++){let u=new Date(this.#m,this.#h,l),d=it(u),h=document.createElement("td"),f=document.createElement("button");f.type="button",f.setAttribute("data-date",d),f.textContent=String(l),Cr(u,a)&&f.setAttribute("aria-current","date");let p=Cr(u,this.#y);h.setAttribute("aria-selected",String(p));let m=this.#q(u,d);m.disabled&&(f.setAttribute("aria-disabled","true"),m.reason&&f.setAttribute("data-disabled-reason",m.reason)),this.#b.has(d)&&f.setAttribute("data-highlight",this.#b.get(d)||""),Cr(u,this.#d)?(f.setAttribute("tabindex","0"),p||f.setAttribute("data-focused","")):f.setAttribute("tabindex","-1"),h.appendChild(f),o.appendChild(h),(r+l)%7===0&&(this.#l.appendChild(o),o=document.createElement("tr"))}let c=(r+s)%7;if(c>0){for(let l=c;l<7;l++)o.appendChild(document.createElement("td"));this.#l.appendChild(o)}}#T(t){return this.#q(t,it(t)).disabled}#q(t,i){return this.#S.has(i)?{disabled:!0,reason:this.#S.get(i)}:this.#E&&t<this.#E?{disabled:!0,reason:null}:this.#v&&t>this.#v?{disabled:!0,reason:null}:{disabled:!1,reason:null}}#tt(){this.#g.replaceChildren();let t=new Date().getFullYear(),i=this.#E?this.#E.getFullYear():t-100,s=this.#v?this.#v.getFullYear():t+10;i=Math.min(i,this.#m),s=Math.max(s,this.#m);for(let n=i;n<=s;n++){let r=document.createElement("option");r.value=String(n),r.textContent=String(n),this.#g.appendChild(r)}}#I(t){let i=this.#d??new Date(this.#m,this.#h,1),s=new Date(this.#m,this.#h,Math.min(i.getDate(),Xe(this.#m,this.#h)));this.#d=Sr(s,t),this.#m=this.#d.getFullYear(),this.#h=this.#d.getMonth(),this.#C();let n=document.activeElement;n?.matches(".calendar-nav:focus-visible")&&this.#a.contains(n)||this.#Y(this.#d)}#L(t,i){if(t&&this.#T(t))return!1;let s=this.value,n=t?it(t):"";return this.#y=t,t&&(this.#d=t),this.#X(),n===s?!1:(this.#K(),this.#j(),t&&i==="api"&&(this.#m=t.getFullYear(),this.#h=t.getMonth()),(this.#f||i==="api")&&this.#C(),this.dispatchEvent(new CustomEvent("date-picker:change",{bubbles:!0,detail:{value:n,date:t?new Date(t):null,source:i}})),!0)}#H(t,i){this.#T(t)||(this.#L(t,i),this.#z(),this.#s.focus())}#Y(t){let i=this.#l.querySelector(`[data-date="${it(t)}"]`);if(i){for(let s of this.#l.querySelectorAll("button[data-date]"))s.setAttribute("tabindex",s===i?"0":"-1"),s!==i&&s.removeAttribute("data-focused");i.closest("td")?.getAttribute("aria-selected")!=="true"&&i.setAttribute("data-focused",""),i.focus()}}#X(){this.#s.value=this.#y?xu(this.#y,this.#p):""}#B(){if(!(this.#f||this.#s.disabled)){if(this.#f=!0,this.setAttribute("open",""),this.#s.setAttribute("aria-expanded","true"),this.#a.hidden=!1,this.#d&&(this.#m=this.#d.getFullYear(),this.#h=this.#d.getMonth()),this.#C(),this.#u){try{this.#a.showPopover()}catch{}this.#R(),window.addEventListener("scroll",this.#Q,{capture:!0,passive:!0}),window.addEventListener("resize",this.#Q,{passive:!0})}this.dispatchEvent(new CustomEvent("date-picker:open",{bubbles:!0}))}}#z(){if(this.#f){if(this.#f=!1,this.removeAttribute("open"),this.#s.setAttribute("aria-expanded","false"),this.#a.hidden=!0,this.#u){try{this.#a.hidePopover()}catch{}window.removeEventListener("scroll",this.#Q,{capture:!0}),window.removeEventListener("resize",this.#Q)}this.dispatchEvent(new CustomEvent("date-picker:close",{bubbles:!0}))}}#R(){if(!this.#u)return;let t=this.#r.getBoundingClientRect(),i=this.#a.getBoundingClientRect(),s=4,n=8,r=window.innerHeight,a=window.innerWidth,o=r-t.bottom-n,c=t.top-n,l;o<i.height&&c>o?(l=t.top-i.height-s,this.#a.dataset.placement="top"):(l=t.bottom+s,delete this.#a.dataset.placement);let u=t.left;u+i.width>a-n&&(u=a-i.width-n),u<n&&(u=n),this.#a.style.setProperty("--calendar-top",`${l}px`),this.#a.style.setProperty("--calendar-left",`${u}px`)}#Q=()=>{this.#f&&this.#R()};#G=()=>{let t=this.#s.value,{date:i,partial:s}=Lr(t,this.#p);if(i)this.#d=i,this.#m=i.getFullYear(),this.#h=i.getMonth(),this.#C();else if(s){this.#m=s.year,this.#h=s.month;let n=Xe(s.year,s.month),r=Math.min(this.#d?.getDate()??1,n);this.#d=new Date(s.year,s.month,r),this.#C()}!this.#f&&t.length>0&&this.#B()};#P=t=>{switch(t.key){case"Enter":{t.preventDefault(),t.stopPropagation();let i=this.#s.value.trim();if(!i){this.#L(null,"keyboard"),this.#z();return}let{date:s}=Lr(i,this.#p);s&&!this.#T(s)&&this.#H(s,"keyboard");return}case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.#f||this.#B(),requestAnimationFrame(()=>{this.#d&&this.#Y(this.#d)});return;case"Escape":t.preventDefault(),t.stopPropagation(),this.#f&&this.#z(),this.#X();return;case"Tab":this.#f&&this.#z();return}};#st=t=>{if(t.relatedTarget instanceof Node&&this.contains(t.relatedTarget))return;let i=this.#s.value.trim();if(!i)this.#L(null,"keyboard");else{let{date:s}=Lr(i,this.#p);s&&!this.#T(s)&&this.#L(s,"keyboard")}this.#X(),this.#f&&this.#z(),this.#V()};#V=()=>{this.#i&&(this.#x||(this.#x=!0,this.#j()),this.#n.dispatchEvent(new Event("blur",{bubbles:!0})))};#Z=t=>{this.#f&&!this.contains(t.target)&&this.#z()};#J=t=>{let s=t.target?.closest("button[data-date]");if(!s||s.getAttribute("aria-disabled")==="true")return;let n=ht(s.getAttribute("data-date"));n&&this.#H(n,"pointer")};#U=t=>{if(t.key==="Tab"){let o=[...this.#a.querySelectorAll('.calendar-header button, .calendar-header select, tbody button[tabindex="0"]')];if(!o.length)return;let c=o.indexOf(document.activeElement),l=c<0?0:(c+(t.shiftKey?-1:1)+o.length)%o.length;t.preventDefault(),o[l].focus();return}let i=t.target instanceof Element&&this.#l.contains(t.target),s=this.#d;if(!s)return;let n,r=(s.getDay()-this.#A+7)%7,a=getComputedStyle(this).direction==="rtl"?-1:1;switch(t.key){case"ArrowRight":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()+a);break;case"ArrowLeft":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()-a);break;case"ArrowDown":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()+7);break;case"ArrowUp":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()-7);break;case"PageDown":n=Sr(s,t.shiftKey?12:1);break;case"PageUp":n=Sr(s,t.shiftKey?-12:-1);break;case"Home":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()-r);break;case"End":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()+(6-r));break;case"Enter":case" ":if(!i)return;t.preventDefault(),t.stopPropagation(),this.#H(s,"keyboard");return;case"Escape":t.preventDefault(),t.stopPropagation(),this.#z(),this.#s.focus();return;default:return}i&&(t.preventDefault(),t.stopPropagation(),this.#E&&n<this.#E&&(n=this.#E),this.#v&&n>this.#v&&(n=this.#v),this.#d=n,(n.getMonth()!==this.#h||n.getFullYear()!==this.#m)&&(this.#h=n.getMonth(),this.#m=n.getFullYear(),this.#C()),this.#Y(n))};#K(t=!0){let i=this.#y?it(this.#y):"";this.#t.setFormValue(i||null),this.#n.value=i,t&&this.#n.dispatchEvent(new Event("input",{bubbles:!0}))}#et(t,i,s,n=null){let r=this.#n.getAttribute(`data-message-${t.toLowerCase()}`)??this.#_(i,s);return n?r.replaceAll("{date}",xu(n,this.#p)):r}#j(){if(!this.#i)return!1;let t=this.hasAttribute("required")||this.#n.hasAttribute("required");t?this.#s.setAttribute("aria-required","true"):this.#s.removeAttribute("aria-required");let i=this.#y,s={},n="";t&&!i?(s={valueMissing:!0},n=this.#et("valueMissing","Required","Please select a date")):i&&this.#E&&i<this.#E?(s={rangeUnderflow:!0},n=this.#et("rangeUnderflow","RangeUnderflow","Choose a date on or after {date}",this.#E)):i&&this.#v&&i>this.#v&&(s={rangeOverflow:!0},n=this.#et("rangeOverflow","RangeOverflow","Choose a date on or before {date}",this.#v));let r=this.#t.validationMessage;return n?this.#t.setValidity(s,n,this.#s):this.#t.setValidity({}),n&&(i||this.#x)?this.#s.setAttribute("aria-invalid","true"):this.#s.removeAttribute("aria-invalid"),(this.#n.validationMessage===this.#N||!this.#n.validity.customError)&&(this.#n.setCustomValidity(n),this.#N=n),r!==n}#nt(){this.#i&&(this.#C(),this.#j()&&this.#n.dispatchEvent(new Event("input",{bubbles:!0})))}#it(t){let i=t||new Date;this.#y=t,this.#d=i,this.#m=i.getFullYear(),this.#h=i.getMonth(),this.#X(),this.#K(),this.#j(),this.#C()}formResetCallback(){this.#i&&(this.#x=!1,this.#it(ht(this.#k)))}formStateRestoreCallback(t){!this.#i||typeof t!="string"||this.#it(ht(t))}get form(){return this.#t.form}get validity(){return this.#t.validity}get validationMessage(){return this.#t.validationMessage}get willValidate(){return this.#t.willValidate}checkValidity(){return this.#t.checkValidity()}reportValidity(){return this.#t.reportValidity()}get value(){return this.#i?this.#y?it(this.#y):"":this.#w??""}set value(t){let i=t==null?"":String(t).trim(),s=i?ht(i):null;if(!(i&&!s)){if(!this.#i){this.#w=i;return}this.#L(s,"api")}}get min(){return this.#E?it(this.#E):""}set min(t){this.#E=ht(t),this.#n&&(this.#E?this.#n.setAttribute("min",it(this.#E)):this.#n.removeAttribute("min")),this.#nt()}get max(){return this.#v?it(this.#v):""}set max(t){this.#v=ht(t),this.#n&&(this.#v?this.#n.setAttribute("max",it(this.#v)):this.#n.removeAttribute("max")),this.#nt()}};E("date-picker",Mr);ae();function de(e,t,i){t/=100,i/=100;let s=a=>(a+e/30)%12,n=t*Math.min(i,1-i),r=a=>i-n*Math.max(-1,Math.min(s(a)-3,9-s(a),1));return{r:Math.round(r(0)*255),g:Math.round(r(8)*255),b:Math.round(r(4)*255)}}function ss(e,t,i,s=!1){e/=255,t/=255,i/=255;let n=Math.max(e,t,i),r=Math.min(e,t,i),a=(n+r)/2,o=0,c=0;if(n!==r){let l=n-r;switch(c=a>.5?l/(2-n-r):l/(n+r),n){case e:o=((t-i)/l+(t<i?6:0))/6;break;case t:o=((i-e)/l+2)/6;break;case i:o=((e-t)/l+4)/6;break}}return s?{h:o*360,s:c*100,l:a*100}:{h:Math.round(o*360),s:Math.round(c*100),l:Math.round(a*100)}}function Gv(e){e=e.replace(/^#/,""),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:t&255}}function Kv(e,t,i){return"#"+[e,t,i].map(s=>Math.max(0,Math.min(255,Math.round(s))).toString(16).padStart(2,"0")).join("")}function kt(e,t=!1){let{r:i,g:s,b:n}=Gv(e);return ss(i,s,n,t)}function St(e,t,i){let{r:s,g:n,b:r}=de(e,t,i);return Kv(s,n,r)}function H(e,t,i){return Math.max(t,Math.min(i,e))}function _r(e){return e/=255,e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $r(e){let t=e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055;return Math.round(H(t,0,1)*255)}function Yv(e,t,i){let s=_r(e),n=_r(t),r=_r(i),a=.4122214708*s+.5363325363*n+.0514459929*r,o=.2119034982*s+.6806995451*n+.1073969566*r,c=.0883024619*s+.2817188376*n+.6299787005*r,l=Math.cbrt(a),u=Math.cbrt(o),d=Math.cbrt(c),h=.2104542553*l+.793617785*u-.0040720468*d,f=1.9779984951*l-2.428592205*u+.4505937099*d,p=.0259040371*l+.7827717662*u-.808675766*d,m=Math.sqrt(f*f+p*p),g=Math.atan2(p,f)*180/Math.PI;return g<0&&(g+=360),m<1e-4&&(g=0),{L:h,C:m,H:g}}function Xv(e,t,i){let s=i*Math.PI/180,n=t*Math.cos(s),r=t*Math.sin(s),a=e+.3963377774*n+.2158037573*r,o=e-.1055613458*n-.0638541728*r,c=e-.0894841775*n-1.291485548*r,l=a**3,u=o**3,d=c**3,h=4.0767416621*l-3.3077115913*u+.2309699292*d,f=-1.2684380046*l+2.6097574011*u-.3413193965*d,p=-.0041960863*l-.7034186147*u+1.707614701*d;return{r:$r(h),g:$r(f),b:$r(p)}}function Ir(e,t,i){let s=de(e,t,i);return Yv(s.r,s.g,s.b)}function Tu(e,t,i,s=!1){let{r:n,g:r,b:a}=Xv(e,t,i);return ss(n,r,a,s)}function Zv(e,t,i){return St(e,t,i)}function Jv(e,t,i){let{r:s,g:n,b:r}=de(e,t,i);return`rgb(${s} ${n} ${r})`}function Qv(e,t,i){return`hsl(${Math.round(e)}deg ${Math.round(t)}% ${Math.round(i)}%)`}function t0(e,t,i){let{L:s,C:n,H:r}=Ir(e,t,i);return`oklch(${(s*100).toFixed(1)}% ${n.toFixed(3)} ${r.toFixed(1)}deg)`}function Lu(e,t,i,s){switch(e){case"rgb":return Jv(t,i,s);case"hsl":return Qv(t,i,s);case"oklch":return t0(t,i,s);default:return Zv(t,i,s)}}var he=["hex","rgb","hsl","oklch"],e0="hex",i0=/^#[0-9a-fA-F]{6}$/,fe=8,s0=0,Br=class extends k{static formAssociated=!0;#t;#e;#i;#n;#s;#o;#r;#a;#l;#c;#g;#f;#u={};#p=e0;#y;#d;#m;#h=!1;#E=!1;#v=!1;#S=`cp${++s0}`;#b=0;#k=100;#w=50;#A;static get observedAttributes(){return["disabled"]}constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}setup(){if(this.#e=this.querySelector(':scope > input[type="color"]'),!this.#e)return!1;if(!this.#v){let s=this.getAttribute("format");s&&he.includes(s)&&(this.#p=s),this.#v=!0}if(this.#A===void 0){let s=this.#e.defaultValue;this.#A=i0.test(s)?s.toLowerCase():this.#e.value||"#000000"}let t=kt(this.#e.value||this.#A,!0);this.#b=t.h,this.#k=t.s,this.#w=t.l;let i=this.#e.getAttribute("name");return i&&(this.hasAttribute("name")||this.setAttribute("name",i),this.#e.removeAttribute("name")),this.#e.hasAttribute("disabled")&&(this.#e.removeAttribute("disabled"),this.hasAttribute("disabled")||this.setAttribute("disabled","")),this.#e.setAttribute("tabindex","-1"),this.#e.setAttribute("aria-hidden","true"),this.#e.style.cssText="position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden;",this.listen(this.#e,"click",this.#x),this.#_(),this.#F(),this.#P(),this.#K(),this.#E=is,this.#E&&this.#r.setAttribute("popover","manual"),this.listen(document,"click",this.#U),this.listen(this,"keydown",this.#M),this.#N(this.matches(":disabled")),!0}teardown(){this.#h=!1,this.removeAttribute("open"),window.removeEventListener("scroll",this.#J,{capture:!0}),window.removeEventListener("resize",this.#J),this.#i?.remove(),this.#r?.remove()}attributeChangedCallback(t){t==="disabled"&&this.#i&&this.#N(this.matches(":disabled"))}formDisabledCallback(t){this.#i&&this.#N(t)}#N(t){this.#i.disabled=t,t&&this.#V()}#x=t=>{t.preventDefault(),this.#i.disabled||this.#i.focus()};#M=t=>{t.key!=="Escape"||t.defaultPrevented||!this.#h||(t.preventDefault(),t.stopPropagation(),this.#V())};#_(){this.#i=document.createElement("button"),this.#i.type="button",this.#i.className="color-trigger",this.#i.setAttribute("aria-haspopup","dialog"),this.#i.setAttribute("aria-expanded","false"),this.#n=document.createElement("span"),this.#n.className="color-swatch",this.#s=document.createElement("span"),this.#s.className="color-hex",this.#s.id=`${this.#S}-value`,this.#i.appendChild(this.#n),this.#i.appendChild(this.#s);let t=[];for(let i of Array.from(this.#e.labels||[]))i.id||(i.id=`${this.#S}-label-${t.length}`),t.push(i.id);t.length===0&&(this.#o=document.createElement("span"),this.#o.className="visually-hidden",this.#o.id=`${this.#S}-name`,this.#o.textContent=this.#e.getAttribute("aria-label")||this.getAttribute("aria-label")||"Color",this.#i.prepend(this.#o),t.push(this.#o.id)),this.#i.setAttribute("aria-labelledby",[...t,this.#s.id].join(" ")),this.appendChild(this.#i),this.listen(this.#i,"click",()=>{this.#h?this.#V():this.#st()})}#F(){this.#y=void 0,this.#d=void 0,this.#r=document.createElement("div"),this.#r.className="color-panel",this.#r.setAttribute("role","dialog"),this.#r.setAttribute("aria-label","Color picker"),this.#a=document.createElement("div"),this.#a.className="color-area",this.#a.setAttribute("role","slider"),this.#a.setAttribute("aria-label","Saturation and lightness"),this.#a.setAttribute("aria-valuemin","0"),this.#a.setAttribute("aria-valuemax","100"),this.#a.setAttribute("tabindex","0"),this.#l=document.createElement("div"),this.#l.className="color-area-thumb",this.#a.appendChild(this.#l),this.#r.appendChild(this.#a);let t=document.createElement("div");t.className="color-hue-wrap",this.#c=document.createElement("div"),this.#c.className="color-hue",this.#c.setAttribute("role","slider"),this.#c.setAttribute("aria-label","Hue"),this.#c.setAttribute("aria-valuemin","0"),this.#c.setAttribute("aria-valuemax","360"),this.#c.setAttribute("tabindex","0"),this.#g=document.createElement("div"),this.#g.className="color-hue-thumb",this.#c.appendChild(this.#g),t.appendChild(this.#c),this.#r.appendChild(t);let i=document.createElement("div");i.className="color-format-row";let s=document.createElement("label");s.className="color-format-label";let n=document.createElement("span");n.textContent="Format",this.#f=document.createElement("select"),this.#f.className="color-format-select";for(let o of he){let c=document.createElement("option");c.value=o,c.textContent=o.toUpperCase(),this.#f.appendChild(c)}this.#f.value=this.#p,s.appendChild(n),s.appendChild(this.#f),i.appendChild(s),this.#r.appendChild(i),this.listen(this.#f,"change",this.#$),this.#u.hex=this.#D("hex",[{label:"Hex",channel:"hex",kind:"text",maxLength:7}]),this.#u.rgb=this.#D("rgb",[{label:"R",channel:"r",kind:"number",min:0,max:255,step:1},{label:"G",channel:"g",kind:"number",min:0,max:255,step:1},{label:"B",channel:"b",kind:"number",min:0,max:255,step:1}]),this.#u.hsl=this.#D("hsl",[{label:"H",channel:"h",kind:"number",min:0,max:360,step:1},{label:"S",channel:"s",kind:"number",min:0,max:100,step:1},{label:"L",channel:"l",kind:"number",min:0,max:100,step:1}]),this.#u.oklch=this.#D("oklch",[{label:"L%",channel:"oL",kind:"number",min:0,max:100,step:.1},{label:"C",channel:"oC",kind:"number",min:0,max:.4,step:.001},{label:"H\xB0",channel:"oH",kind:"number",min:0,max:360,step:.1}]);for(let o of he)this.#r.appendChild(this.#u[o].wrapper);this.#O();let r=this.querySelector(":scope > datalist");if(r){this.#y=document.createElement("div"),this.#y.className="color-swatches",this.#y.setAttribute("role","group"),this.#y.setAttribute("aria-label","Preset colors");for(let o of r.querySelectorAll("option[value]")){let c=document.createElement("button");c.type="button",c.setAttribute("aria-pressed","false"),c.style.background=o.value,c.setAttribute("aria-label",o.textContent||o.value),c.setAttribute("data-color",o.value),this.#y.appendChild(c)}this.#r.appendChild(this.#y),this.listen(this.#y,"click",this.#z)}let a=document.createElement("div");a.className="color-actions","EyeDropper"in window&&(this.#d=document.createElement("button"),this.#d.type="button",this.#d.className="color-eyedropper",this.#d.setAttribute("aria-label","Pick color from screen"),this.#d.textContent="\u{1F4A7}",a.appendChild(this.#d),this.listen(this.#d,"click",this.#R)),this.#m=document.createElement("button"),this.#m.type="button",this.#m.className="color-copy",this.#m.setAttribute("aria-label","Copy hex value"),this.#m.textContent="Copy",a.appendChild(this.#m),this.listen(this.#m,"click",this.#Q),this.#r.appendChild(a),this.appendChild(this.#r),this.listen(this.#a,"pointerdown",this.#W),this.listen(this.#a,"keydown",this.#T),this.listen(this.#c,"pointerdown",this.#q),this.listen(this.#c,"keydown",this.#I);for(let o of he){let c=o==="hex"?this.#H:o==="rgb"?this.#Y:o==="hsl"?this.#X:this.#B;for(let{el:l}of this.#u[o].inputs)this.listen(l,"change",c)}}#D(t,i){let s=document.createElement("div");s.className=`color-inputs color-inputs-${t}`,s.setAttribute("data-format",t);let n=[];for(let r of i){let a=document.createElement("label");a.className="color-input-label";let o=document.createElement("span");o.textContent=r.label;let c=document.createElement("input");c.type=r.kind,c.setAttribute("data-channel",r.channel),c.setAttribute("autocomplete","off"),c.setAttribute("spellcheck","false"),r.kind==="text"&&r.maxLength&&c.setAttribute("maxlength",String(r.maxLength)),r.kind==="number"&&(c.min=String(r.min),c.max=String(r.max),r.step!=null&&(c.step=String(r.step))),a.appendChild(o),a.appendChild(c),s.appendChild(a),n.push({el:c,channel:r.channel})}return{wrapper:s,inputs:n}}#O(){for(let t of he)this.#u[t].wrapper.hidden=t!==this.#p;this.#m&&this.#m.setAttribute("aria-label",`Copy ${this.#p.toUpperCase()} value`)}#$=()=>{let t=this.#f.value;he.includes(t)&&(this.#p=t,this.#O(),this.#P())};#W=t=>{t.preventDefault(),this.#a.setPointerCapture(t.pointerId),this.#C(t);let i=n=>this.#C(n),s=n=>{this.#a.releasePointerCapture(n.pointerId),this.#a.removeEventListener("pointermove",i),this.#a.removeEventListener("pointerup",s)};this.#a.addEventListener("pointermove",i),this.#a.addEventListener("pointerup",s)};#C(t){let i=this.#a.getBoundingClientRect(),s=H((t.clientX-i.left)/i.width,0,1),n=H((t.clientY-i.top)/i.height,0,1);this.#k=Math.round(s*100),this.#w=Math.round((1-n)*100),this.#G("pointer")}#T=t=>{let i=t.shiftKey?10:1;switch(this.#k=Math.round(this.#k),this.#w=Math.round(this.#w),t.key){case"ArrowRight":t.preventDefault(),this.#k=H(this.#k+i,0,100);break;case"ArrowLeft":t.preventDefault(),this.#k=H(this.#k-i,0,100);break;case"ArrowUp":t.preventDefault(),this.#w=H(this.#w+i,0,100);break;case"ArrowDown":t.preventDefault(),this.#w=H(this.#w-i,0,100);break;case"Home":t.preventDefault(),this.#k=0;break;case"End":t.preventDefault(),this.#k=100;break;case"PageUp":t.preventDefault(),this.#w=H(this.#w+10,0,100);break;case"PageDown":t.preventDefault(),this.#w=H(this.#w-10,0,100);break;default:return}this.#G("keyboard")};#q=t=>{t.preventDefault(),this.#c.setPointerCapture(t.pointerId),this.#tt(t);let i=n=>this.#tt(n),s=n=>{this.#c.releasePointerCapture(n.pointerId),this.#c.removeEventListener("pointermove",i),this.#c.removeEventListener("pointerup",s)};this.#c.addEventListener("pointermove",i),this.#c.addEventListener("pointerup",s)};#tt(t){let i=this.#c.getBoundingClientRect(),s=H((t.clientX-i.left)/i.width,0,1);this.#b=Math.round(s*360),this.#G("pointer")}#I=t=>{let i=t.shiftKey?10:1;switch(this.#b=Math.round(this.#b),t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.#b=(this.#b+i)%361;break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.#b=(this.#b-i+361)%361;break;case"PageUp":t.preventDefault(),this.#b=H(this.#b+10,0,360);break;case"PageDown":t.preventDefault(),this.#b=H(this.#b-10,0,360);break;case"Home":t.preventDefault(),this.#b=0;break;case"End":t.preventDefault(),this.#b=360;break;default:return}this.#G("keyboard")};#L(t,i){return this.#u[t].inputs.find(s=>s.channel===i)?.el}#H=()=>{let t=this.#L("hex","hex");if(!t)return;let i=t.value.trim();if(i.startsWith("#")||(i="#"+i),/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(i)){let s=kt(i,!0);this.#b=s.h,this.#k=s.s,this.#w=s.l,this.#G()}};#Y=()=>{let t=H(Number(this.#L("rgb","r").value)||0,0,255),i=H(Number(this.#L("rgb","g").value)||0,0,255),s=H(Number(this.#L("rgb","b").value)||0,0,255),n=ss(t,i,s,!0);this.#b=n.h,this.#k=n.s,this.#w=n.l,this.#G()};#X=()=>{let t=H(Number(this.#L("hsl","h").value)||0,0,360)%361,i=H(Number(this.#L("hsl","s").value)||0,0,100),s=H(Number(this.#L("hsl","l").value)||0,0,100);this.#b=t,this.#k=i,this.#w=s,this.#G()};#B=()=>{let t=H(Number(this.#L("oklch","oL").value)||0,0,100)/100,i=H(Number(this.#L("oklch","oC").value)||0,0,.4),s=H(Number(this.#L("oklch","oH").value)||0,0,360),n=Tu(t,i,s,!0);this.#b=n.h,this.#k=n.s,this.#w=n.l,this.#G()};#z=t=>{let i=t.target.closest("button[data-color]");if(!i)return;let s=i.getAttribute("data-color"),n=kt(s,!0);this.#b=n.h,this.#k=n.s,this.#w=n.l,this.#G()};#R=async()=>{try{let i=await new window.EyeDropper().open(),s=kt(i.sRGBHex,!0);this.#b=s.h,this.#k=s.s,this.#w=s.l,this.#G()}catch{}};#Q=()=>{let t=Lu(this.#p,this.#b,this.#k,this.#w);bt(t,{button:this.#m,announceMessage:"Color copied"})};#G(t="internal"){this.#P(),this.#K();let i=St(this.#b,this.#k,this.#w),s=de(this.#b,this.#k,this.#w);this.dispatchEvent(new CustomEvent("color-picker:change",{bubbles:!0,detail:{hex:i,rgb:{r:s.r,g:s.g,b:s.b},hsl:{h:Math.round(this.#b),s:Math.round(this.#k),l:Math.round(this.#w)},source:t}}))}#P(){let t=St(this.#b,this.#k,this.#w),i=de(this.#b,this.#k,this.#w),s=St(this.#b,100,50);this.#n.style.background=t,this.#s.textContent=t,this.#a.style.setProperty("--area-hue",s),this.#l.style.left=`${this.#k}%`,this.#l.style.top=`${100-this.#w}%`,this.#l.style.background=t;let n=Math.round(this.#b),r=Math.round(this.#k),a=Math.round(this.#w);this.#a.setAttribute("aria-valuenow",String(r)),this.#a.setAttribute("aria-valuetext",(this.getAttribute("data-label-area-value")||"Saturation {s}%, lightness {l}%").replaceAll("{s}",String(r)).replaceAll("{l}",String(a))),this.#g.style.left=`${this.#b/360*100}%`,this.#c.setAttribute("aria-valuenow",String(n)),this.#c.setAttribute("aria-valuetext",`Hue ${n}\xB0`);let o=(l,u,d)=>{let h=this.#L(l,u);h&&(h.value=String(d))};o("hex","hex",t),o("rgb","r",i.r),o("rgb","g",i.g),o("rgb","b",i.b),o("hsl","h",n),o("hsl","s",r),o("hsl","l",a);let c=Ir(this.#b,this.#k,this.#w);if(o("oklch","oL",(c.L*100).toFixed(1)),o("oklch","oC",c.C.toFixed(3)),o("oklch","oH",c.H.toFixed(1)),this.#y)for(let l of this.#y.querySelectorAll("button[data-color]")){let u=(l.getAttribute("data-color")||"").toLowerCase()===t.toLowerCase();l.setAttribute("aria-pressed",String(u))}}#st(){if(!(this.#h||this.#i.disabled)){if(this.#h=!0,this.setAttribute("open",""),this.#i.setAttribute("aria-expanded","true"),this.#E){try{this.#r.showPopover()}catch{}this.#Z(),window.addEventListener("scroll",this.#J,{capture:!0,passive:!0}),window.addEventListener("resize",this.#J,{passive:!0})}requestAnimationFrame(()=>this.#a.focus()),this.dispatchEvent(new CustomEvent("color-picker:open",{bubbles:!0}))}}#V(){if(!this.#h)return;let t=this.#r.contains(document.activeElement);if(this.#h=!1,this.removeAttribute("open"),this.#i.setAttribute("aria-expanded","false"),this.#E){try{this.#r.hidePopover()}catch{}window.removeEventListener("scroll",this.#J,{capture:!0}),window.removeEventListener("resize",this.#J)}t&&this.#i.isConnected&&!this.#i.disabled&&this.#i.focus(),this.dispatchEvent(new CustomEvent("color-picker:close",{bubbles:!0}))}#Z(){if(!this.#E)return;let t=this.#i.getBoundingClientRect(),i=this.#r.offsetWidth,s=this.#r.offsetHeight,n=document.documentElement.clientWidth,r=document.documentElement.clientHeight,o=getComputedStyle(this).direction==="rtl"?t.right-i:t.left;o=Math.min(o,n-i-fe),o=Math.max(o,fe);let c=t.bottom+4;c+s>r-fe&&t.top-s-4>=fe&&(c=t.top-s-4),c=Math.max(fe,Math.min(c,r-s-fe)),this.#r.style.setProperty("--panel-top",`${Math.round(c)}px`),this.#r.style.setProperty("--panel-left",`${Math.round(o)}px`)}#J=()=>{this.#h&&this.#Z()};#U=t=>{this.#h&&!this.contains(t.target)&&this.#V()};#K(){let t=St(this.#b,this.#k,this.#w);this.#t.setFormValue(t),this.#e.value=t,this.#e.dispatchEvent(new Event("input",{bubbles:!0}))}formResetCallback(){if(!this.#i)return;let t=kt(this.#A,!0);this.#b=t.h,this.#k=t.s,this.#w=t.l,this.#P(),this.#K()}formStateRestoreCallback(t){if(!t||!this.#i)return;let i=kt(t,!0);this.#b=i.h,this.#k=i.s,this.#w=i.l,this.#P(),this.#K()}get value(){return St(this.#b,this.#k,this.#w)}set value(t){if(!/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t))return;let i=St(this.#b,this.#k,this.#w).toLowerCase(),s=t.toLowerCase();if(i===s||i===s.toLowerCase())return;let n=kt(t,!0);this.#b=n.h,this.#k=n.s,this.#w=n.l,this.#G("api")}};E("color-picker",Br);var n0='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><line x1="5" y1="12" x2="19" y2="12"/></svg>',r0='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>';function a0(e){if(!e)return[];let t=e.trim();if(t.startsWith("["))try{return JSON.parse(t).map(s=>({value:String(s.value),label:String(s.label??s.value)}))}catch{return[]}return t.split(",").map(i=>{let s=i.trim();return{value:s,label:s}})}function o0(e){return e?e.split(",").map(t=>t.trim()).filter(Boolean):[]}function c0(e){let t=Math.max(0,Math.round(e)),i=Math.floor(t/3600),s=Math.floor(t%3600/60),n=t%60,r=a=>String(a).padStart(2,"0");return i>0?`${i}:${r(s)}:${r(n)}`:`${s}:${r(n)}`}function l0(e,t){let i=Number(e)||0,s=["B","KB","MB","GB","TB","PB"],n=0,r=Math.abs(i);for(;r>=1e3&&n<s.length-1;)r/=1e3,n+=1;let a=new Intl.NumberFormat(t,{minimumFractionDigits:n===0?0:1,maximumFractionDigits:n===0?0:2});return`${i<0?"-":""}${a.format(r)} ${s[n]}`}function u0(){return document.documentElement.lang||void 0}function Rr(e){let t=String(e),i=t.indexOf(".");return i<0?0:t.length-i-1}var Du=!1,d0=0,Fr=class extends k{static formAssociated=!0;static observedAttributes=["value","disabled","readonly","aria-label","aria-labelledby","data-label-decrease","data-label-increase"];#t;#e;#i=-1/0;#n=1/0;#s=1;#o=[];#r=[];#a;#l;#c="";#g=!1;#f=!1;#u;#p;#y;#d=!1;#m=!1;#h;#E;#v;#S;#b;#k;#w=0;#A=0;#N=!1;#x=!1;constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}setup(){this.#F(),this.#D(),this.#W();let t=this.getAttribute("value");this.#d||(this.#y=t,this.#d=!0),this.#R(t??this.#$(),"init"),this.#M(),requestAnimationFrame(()=>{this.isConnected&&this.#M()}),this.listen(this.#h,"focus",()=>this.#M()),this.listen(this,"click",i=>{i.target===this&&!this.#tt()&&this.#h.focus()})}teardown(){this.#T(),this.#x=!1}attributeChangedCallback(t,i,s){!this.isConnected||!this.#h||(t==="value"?this.#R(s??this.#$(),"attr"):t==="disabled"||t==="readonly"?this.#L():t==="aria-label"||t==="aria-labelledby"?this.#M():this.#_())}#M(){let t=[],i=[];try{i=[...this.#t.labels||[]]}catch{}for(let a of i)a.id||(a.id=`stepper-wc-label-${++d0}`),t.push(a.id);let s=(this.getAttribute("aria-labelledby")||"").trim();s&&t.push(...s.split(/\s+/));let n=[...new Set(t)];n.length?this.#h.setAttribute("aria-labelledby",n.join(" ")):this.#h.removeAttribute("aria-labelledby");let r=this.getAttribute("aria-label");r?this.#h.setAttribute("aria-label",r):this.#h.removeAttribute("aria-label")}#_(){this.#S.setAttribute("aria-label",this.getAttribute("data-label-decrease")||"Decrease"),this.#b.setAttribute("aria-label",this.getAttribute("data-label-increase")||"Increase")}#F(){if(this.hasAttribute("data-options"))this.#e="enum";else if(this.hasAttribute("data-values"))this.#e="token";else if(this.hasAttribute("data-format")||this.hasAttribute("data-suffix"))this.#e="formatted";else{if(this.#e="numeric",Du)return;Du=!0,console.info('[stepper-wc] No mode attribute set. Plain numeric stepping is better served by `<input type="number" data-stepper>`. See /docs/interaction/numeric-inputs/')}}#D(){this.#i=this.hasAttribute("data-min")?Number(this.getAttribute("data-min")):-1/0,this.#n=this.hasAttribute("data-max")?Number(this.getAttribute("data-max")):1/0,this.#s=Number(this.getAttribute("data-step"))||1,this.#o=o0(this.getAttribute("data-values")),this.#r=a0(this.getAttribute("data-options")),this.#a=this.getAttribute("data-format")||(this.hasAttribute("data-suffix")?"number":null),this.#l=this.getAttribute("data-currency")||"USD",this.#c=this.getAttribute("data-suffix")||"",this.#g=this.hasAttribute("data-show-label"),this.#f=this.hasAttribute("data-accelerate"),this.#u=u0(),this.#k=this.#O()}#O(){if(!this.#a)return null;let t=Rr(this.#s);return this.#a==="number"?new Intl.NumberFormat(this.#u,{minimumFractionDigits:t,maximumFractionDigits:t}):this.#a==="currency"?new Intl.NumberFormat(this.#u,{style:"currency",currency:this.#l}):this.#a==="percent"?new Intl.NumberFormat(this.#u,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}):null}#$(){return this.#e==="enum"?this.#r[0]?.value??"":this.#e==="token"?this.#o[0]??"":"0"}#W(){this.replaceChildren(),this.#S=document.createElement("button"),this.#S.type="button",this.#S.className="stepper-dec",this.#S.setAttribute("tabindex","-1"),this.#S.innerHTML=n0,this.#b=document.createElement("button"),this.#b.type="button",this.#b.className="stepper-inc",this.#b.setAttribute("tabindex","-1"),this.#b.innerHTML=r0,this.#h=document.createElement("span"),this.#h.className="stepper-value",this.#h.setAttribute("role","spinbutton"),this.#h.setAttribute("tabindex","0"),this.#E=document.createElement("span"),this.#E.className="stepper-value-display",this.#h.appendChild(this.#E),this.#v=new Set;for(let t of this.#st())this.#V(t);this.appendChild(this.#S),this.appendChild(this.#h),this.appendChild(this.#b),this.#C(this.#S,-1),this.#C(this.#b,1),this.listen(this.#h,"keydown",this.#q),this.#_(),this.#L()}#C(t,i){if(this.listen(t,"click",n=>{if(this.#x){this.#x=!1,n.preventDefault();return}this.#H(i,1)}),!this.#f)return;this.listen(t,"pointerdown",n=>{let r=n;r.pointerType==="mouse"&&r.button!==0||this.#I()||(this.#N=!1,this.#w=window.setTimeout(()=>{this.#N=!0,this.#A=window.setInterval(()=>this.#H(i,1),100),this.#w=window.setTimeout(()=>{window.clearInterval(this.#A),this.#A=window.setInterval(()=>this.#H(i,5),50)},1e3)},500))});let s=()=>{this.#T(),this.#N&&(this.#x=!0)};this.listen(t,"pointerup",s),this.listen(t,"pointerleave",s),this.listen(t,"pointercancel",s)}#T(){window.clearTimeout(this.#w),window.clearInterval(this.#A),this.#w=0,this.#A=0}#q=t=>{if(this.#I())return;let i=getComputedStyle(this).direction==="rtl";switch(i&&t.key==="ArrowLeft"?"ArrowRight":i&&t.key==="ArrowRight"?"ArrowLeft":t.key){case"ArrowUp":case"ArrowRight":t.preventDefault(),this.#H(1,1);break;case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.#H(-1,1);break;case"PageUp":t.preventDefault(),this.#H(1,10);break;case"PageDown":t.preventDefault(),this.#H(-1,10);break;case"Home":t.preventDefault(),this.#Y("min");break;case"End":t.preventDefault(),this.#Y("max");break;default:}};#tt(){return this.hasAttribute("disabled")||this.#m}#I(){return this.#tt()||this.hasAttribute("readonly")}#L(){let t=this.#tt();this.#h.setAttribute("aria-disabled",String(t)),this.hasAttribute("readonly")?this.#h.setAttribute("aria-readonly","true"):this.#h.removeAttribute("aria-readonly"),t?(this.#h.removeAttribute("tabindex"),this.#T()):this.#h.setAttribute("tabindex","0"),this.#p!==void 0?this.#J():(this.#S.disabled=this.#I(),this.#b.disabled=this.#I())}#H(t,i){if(this.#I())return;let s=this.#X(t,i);s===null||s===this.#p||this.#R(s,"step")}#Y(t){if(this.#e==="enum"){let s=t==="min"?0:this.#r.length-1;this.#R(this.#r[s]?.value,"step");return}if(this.#e==="token"){let s=t==="min"?0:this.#o.length-1;this.#R(this.#o[s],"step");return}let i=t==="min"?this.#i===-1/0?this.#p:this.#i:this.#n===1/0?this.#p:this.#n;this.#R(String(i),"step")}#X(t,i){if(this.#e==="enum"){let c=this.#r.findIndex(d=>d.value===this.#p),l=c===-1?0:c,u=Math.min(this.#r.length-1,Math.max(0,l+t*i));return this.#r[u]?.value}if(this.#e==="token"){let l=this.#B(this.#p);l===-1&&(l=this.#z(this.#p));let u=Math.min(this.#o.length-1,Math.max(0,l+t*i));return this.#o[u]}let s=Number(this.#p)||0,n=Rr(this.#s),r=s+t*this.#s*i,a=Number(r.toFixed(n)),o=Math.min(this.#n,Math.max(this.#i,a));return String(o)}#B(t){if(t==null)return-1;let i=this.#o.indexOf(String(t));if(i!==-1)return i;let s=Number(t);if(Number.isFinite(s)){let n=this.#o.findIndex(r=>Number(r)===s);if(n!==-1)return n}return-1}#z(t){let i=Number(t);if(!Number.isFinite(i))return 0;let s=0,n=1/0;return this.#o.forEach((r,a)=>{let o=Number(r);if(!Number.isFinite(o))return;let c=Math.abs(o-i);c<n&&(n=c,s=a)}),s}#R(t,i){let s=this.#Q(t),n=s!==this.#p;this.#p=s,this.getAttribute("value")!==String(s)&&this.setAttribute("value",String(s)),this.#G(),this.#Z(),this.#J(),this.#et(),this.#j(),n&&i!=="init"&&(this.dispatchEvent(new Event("input",{bubbles:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}#Q(t){if(t==null)return this.#$();if(this.#e==="enum"){let n=String(t);return this.#r.find(a=>a.value===n)?n:this.#r[0]?.value??""}if(this.#e==="token")return String(t);let i=Number(t);if(!Number.isFinite(i))return String(this.#i===-1/0?0:this.#i);let s=Rr(this.#s);return String(Number(Math.min(this.#n,Math.max(this.#i,i)).toFixed(s)))}#G(){let t=this.#P();this.#E.textContent=t,this.#V(t)}#P(t=this.#p){if(this.#e==="enum")return this.#r.find(s=>s.value===t)?.label??t??"";if(this.#e==="token"){let i=this.#g?String(t).replace(/^--/,""):String(t);return this.#c?`${i}${this.#c}`:i}if(this.#e==="formatted"){let i=Number(t)||0;if(this.#a==="duration")return c0(i);if(this.#a==="bytes")return l0(i,this.#u);if(this.#k){let s=this.#a==="percent"?i/100:i,n=this.#k.format(s);return this.#c&&this.#a==="number"?`${n}${this.#c}`:n}return this.#c?`${i}${this.#c}`:String(i)}return String(t??"")}#st(){if(this.#e==="enum")return this.#r.map(s=>this.#P(s.value));if(this.#e==="token")return this.#o.map(s=>this.#P(s));let t=new Set,i=s=>{Number.isFinite(s)&&t.add(s)};if(this.#i!==-1/0&&i(this.#i),this.#n!==1/0&&i(this.#n),i(Number(this.getAttribute("value"))||0),this.#n===1/0){let s=[10,100,1e3,1e4];for(let n of s)i(n);if(this.#a==="bytes")for(let n of[999,999e3,999e6,999e9])i(n)}return[...t].map(s=>this.#P(String(s)))}#V(t){let i=String(t??"");if(!i||this.#v.has(i))return;this.#v.add(i);let s=document.createElement("span");s.className="stepper-value-reserve",s.setAttribute("aria-hidden","true"),s.textContent=i,this.#h.appendChild(s)}recomputeWidth(){if(this.#h){this.#h.querySelectorAll(".stepper-value-reserve").forEach(t=>t.remove()),this.#v=new Set;for(let t of this.#st())this.#V(t)}}#Z(){if(this.#e==="enum"){let i=this.#r.findIndex(s=>s.value===this.#p);this.#h.setAttribute("aria-valuemin","1"),this.#h.setAttribute("aria-valuemax",String(this.#r.length)),this.#h.setAttribute("aria-valuenow",String((i===-1?0:i)+1)),this.#h.setAttribute("aria-valuetext",this.#P());return}if(this.#e==="token"){let i=this.#B(this.#p);this.#h.setAttribute("aria-valuemin","1"),this.#h.setAttribute("aria-valuemax",String(this.#o.length)),this.#h.setAttribute("aria-valuenow",String((i===-1?0:i)+1)),this.#h.setAttribute("aria-valuetext",this.#P());return}let t=Number(this.#p)||0;this.#i!==-1/0?this.#h.setAttribute("aria-valuemin",String(this.#i)):this.#h.removeAttribute("aria-valuemin"),this.#n!==1/0?this.#h.setAttribute("aria-valuemax",String(this.#n)):this.#h.removeAttribute("aria-valuemax"),this.#h.setAttribute("aria-valuenow",String(t)),this.#h.setAttribute("aria-valuetext",this.#P())}#J(){let t=this.#U(),i=this.#K(),s=this.#I();this.#S.disabled=t||s,this.#b.disabled=i||s}#U(){return this.#e==="enum"?this.#p===this.#r[0]?.value:this.#e==="token"?this.#B(this.#p)===0:this.#i!==-1/0&&Number(this.#p)<=this.#i}#K(){return this.#e==="enum"?this.#p===this.#r[this.#r.length-1]?.value:this.#e==="token"?this.#B(this.#p)===this.#o.length-1:this.#n!==1/0&&Number(this.#p)>=this.#n}#et(){this.#t.setFormValue(String(this.#p??""))}#j(){this.setState("at-min",this.#U()),this.setState("at-max",this.#K())}formResetCallback(){this.#R(this.#y??this.#$(),"reset")}formDisabledCallback(t){this.#m=t,this.#h&&this.#L()}formStateRestoreCallback(t){t!=null&&this.#R(t,"restore")}get displayText(){return this.#E?.textContent??""}get value(){return this.#p==null?"":String(this.#p)}set value(t){String(t)!==String(this.#p)&&this.#R(t,"api")}get form(){return this.#t.form}get name(){return this.getAttribute("name")}get type(){return this.localName}get validity(){return this.#t.validity}get validationMessage(){return this.#t.validationMessage}checkValidity(){return this.#t.checkValidity()}reportValidity(){return this.#t.reportValidity()}};E("stepper-wc",Fr);var h0={live:"Live",recording:"Recording",streaming:"Streaming",error:"Error",online:"Online",running:"Running",away:"Away",paused:"Paused",busy:"Busy",offline:"Offline",stopped:"Stopped"},Pr=class extends k{static get observedAttributes(){return["data-variant","data-live","aria-label"]}#t=null;#e=null;#i=!1;setup(){let t=this.querySelector(":scope > .status-dot"),i=this.querySelector(":scope > .status-label"),s=this.querySelector(":scope > .status-default-label");t||(t=document.createElement("span"),t.className="status-dot",t.setAttribute("aria-hidden","true")),i||(i=document.createElement("span"),i.className="status-label"),s||(s=document.createElement("span"),s.className="status-default-label");for(let n of[...this.childNodes])n===t||n===i||n===s||i.appendChild(n);this.append(t,i,s),this.#t=i,this.#e=s,this.#n(),this.#s()}attributeChangedCallback(t,i,s){i!==s&&(!this.isConnected||!this.hasAttribute("data-upgraded")||(t==="data-variant"?(this.#s(),this.dispatchEvent(new CustomEvent("status-wc:change",{bubbles:!0,detail:{variant:s,previousVariant:i}}))):t==="data-live"?this.#n():t==="aria-label"&&this.#s()))}#n(){this.getAttribute("data-live")==="off"?this.#i&&(this.removeAttribute("role"),this.removeAttribute("aria-live"),this.#i=!1):!this.hasAttribute("role")&&!this.hasAttribute("aria-live")&&(this.setAttribute("role","status"),this.setAttribute("aria-live","polite"),this.#i=!0)}#s(){let t=this.#e;if(!t)return;let i=!!this.#t?.textContent?.trim(),s="";if(!i){let n=this.getAttribute("data-variant")||"";s=this.getAttribute("aria-label")||n&&this.getAttribute(`data-label-${n}`)||h0[n]||n}t.textContent!==s&&(t.textContent=s)}get variant(){return this.getAttribute("data-variant")}set variant(t){t?this.setAttribute("data-variant",t):this.removeAttribute("data-variant")}};E("status-wc",Pr);Ve();We();var Or=0,f0='a[href], button, input, select, textarea, summary, iframe, [tabindex], [contenteditable]:not([contenteditable="false"])',p0="a[href], button, input, select, textarea, summary",m0=new Set(["button","link","checkbox","radio","switch","tab","option","treeitem","gridcell","menuitem","menuitemcheckbox","menuitemradio","combobox","textbox","searchbox","slider","spinbutton"]);function ns(e){return e.hasAttribute("data-disabled")||e.getAttribute("aria-disabled")==="true"||!!e.disabled}function g0(e){return e.pointerType===""||e.pointerId===-1||e.button===-1||e.clientX===0&&e.clientY===0&&e.buttons===0}var qr=class extends k{#t;#e;#i;#n=[];#s=-1;#o=!1;#r=[];#a=!1;#l=[];#c=null;setup(){let t=this.querySelector(":scope > [data-trigger]"),i=this.querySelector('menu, ul[role="menu"]');if(!t||!i)return!1;this.#t=t,this.#e=i;let s=this.querySelector(":scope > pop-over[data-context-menu-host]");s?this.#i=s:(this.#i=document.createElement("pop-over"),this.#i.setAttribute("data-context-menu-host",""),this.#i.id=`ctx-menu-${++Or}`,this.#i.dataset.mode="auto",this.#i.appendChild(this.#e),this.appendChild(this.#i)),this.#e.parentElement!==this.#i&&this.#i.appendChild(this.#e),this.#e.setAttribute("role","menu"),this.#e.id||(this.#e.id=`ctx-menu-list-${++Or}`),this.#t.matches(f0)||this.#g("tabindex","0"),this.#a=this.#t.matches(p0)||this.#t.hasAttribute("tabindex")&&m0.has((this.#t.getAttribute("role")||"").trim().toLowerCase()),this.#a?(this.#g("aria-haspopup","menu"),this.#g("aria-expanded","false"),this.#g("aria-controls",this.#e.id)):!this.#t.hasAttribute("aria-description")&&!this.#t.hasAttribute("aria-describedby")&&this.#g("aria-description",this.getAttribute("data-label-available")||"Context menu available"),this.#e.querySelectorAll(':scope > li:empty:not([data-group]), :scope > [role="separator"], :scope > hr').forEach(r=>{r.setAttribute("role","separator")}),this.#f();let n=Array.from(this.#e.querySelectorAll('button, a, [role="menuitem"]'));return n.forEach(r=>{r.setAttribute("role","menuitem"),r.setAttribute("tabindex","-1")}),this.#n=n.filter(r=>!r.disabled),this.#e.querySelectorAll("li").forEach(r=>{r.querySelector(':scope > :is(button, a, [role="menuitem"])')&&r.setAttribute("role","none")}),this.#n.forEach(r=>{r.hasAttribute("data-disabled")&&r.setAttribute("aria-disabled","true"),this.listen(r,"click",this.#b);let a=r.getAttribute("data-shortcut");if(a){if(!r.querySelector(":scope > .ctx-kbd")){let c=document.createElement("kbd");c.className="ctx-kbd",c.setAttribute("aria-hidden","true"),c.textContent=Yl(a),r.appendChild(c)}r.setAttribute("aria-keyshortcuts",Ki(a));let o=Et(a,()=>{ns(r)||r.click()});this.#r.push(o)}}),this.listen(this.#t,"contextmenu",this.#p),this.listen(this.#t,"keydown",this.#y),this.listen(this.#e,"keydown",this.#v),this.listen(this.#e,"click",this.#S,{capture:!0}),this.listen(window,"scroll",this.#w,{capture:!0}),this.listen(this.#i,"pop-over:hide",this.#k),!0}teardown(){this.#r.forEach(t=>t()),this.#r=[];for(let t of this.#l)this.#t?.removeAttribute(t);this.#l=[],this.#c=null,this.#o&&(this.#o=!1,this.removeAttribute("data-open"),this.#i?.hide?.()),this.#s=-1,this.#n=[],this.#e?.querySelectorAll(".ctx-kbd").forEach(t=>t.remove()),this.#u()}#g(t,i){this.#t.setAttribute(t,i),this.#l.push(t)}#f(){let t=this.#e;for(let i of Array.from(t.querySelectorAll(":scope > li[data-group]"))){i.id||(i.id=`ctx-group-${++Or}`),i.classList.add("ctx-group-label"),i.setAttribute("aria-hidden","true");let s=document.createElement("li");s.setAttribute("role","group"),s.setAttribute("aria-labelledby",i.id),s.setAttribute("data-ctx-group","");let n=document.createElement("ul");n.setAttribute("role","none"),s.appendChild(n),t.insertBefore(s,i),n.appendChild(i);let r=s.nextElementSibling;for(;r&&!r.hasAttribute("data-group")&&r.getAttribute("role")!=="separator";){let a=r;r=r.nextElementSibling,n.appendChild(a)}}}#u(){let t=this.#e;if(t)for(let i of Array.from(t.querySelectorAll(":scope > li[data-ctx-group]"))){let s=i.querySelector(":scope > ul");if(s)for(let n of Array.from(s.children))t.insertBefore(n,i);i.remove()}}get items(){if(!this.#e)return[];let t=[],i=this.#e.querySelectorAll(":scope > li:not([data-ctx-group]), :scope > li[data-ctx-group] > ul > li");for(let s of i){if(s.hasAttribute("data-group")){t.push({group:s.textContent.trim()});continue}if(s.matches(':empty, [role="separator"]')||s.querySelector("hr")){t.push({separator:!0});continue}let n=s.querySelector('button, a, [role="menuitem"]');if(!n)continue;let r=Array.from(n.childNodes).filter(a=>!(a instanceof Element&&a.classList.contains("ctx-kbd"))).map(a=>a.textContent).join("");t.push({label:r.trim().replace(/\s+/g," "),value:n.getAttribute("data-value")||void 0,href:n.tagName==="A"?n.getAttribute("href"):void 0,shortcut:n.getAttribute("data-shortcut")||void 0,disabled:n.disabled||n.hasAttribute("data-disabled")||void 0})}return t}set items(t){let i=Array.isArray(t)?t:[],s=this.querySelector('menu, ul[role="menu"]');for(s||(s=document.createElement("menu"),this.appendChild(s));s.firstChild;)s.firstChild.remove();for(let n of i){let r=document.createElement("li");if(n.separator)r.setAttribute("role","separator");else if(n.group!=null)r.setAttribute("data-group",""),r.textContent=n.group;else{let a=n.href?document.createElement("a"):document.createElement("button");n.href&&a.setAttribute("href",n.href),n.value&&a.setAttribute("data-value",n.value),n.shortcut&&a.setAttribute("data-shortcut",n.shortcut),n.disabled&&a.setAttribute("data-disabled",""),a.tagName==="BUTTON"&&a.setAttribute("type","button"),a.textContent=n.label||"",r.appendChild(a)}s.appendChild(r)}this._reinit(),this.dispatchEvent(new CustomEvent("context-menu:items-changed",{detail:{items:i,source:"property"},bubbles:!0}))}#p=t=>{if(t.preventDefault(),g0(t)){this.#o||this.#d();return}t.buttons!==0?this.listen(window,"pointerup",()=>{setTimeout(()=>this.#m(t.clientX,t.clientY),0)},{once:!0,capture:!0}):this.#m(t.clientX,t.clientY)};#y=t=>{t.defaultPrevented||(t.key==="ContextMenu"||t.key==="F10"&&t.shiftKey)&&(t.preventDefault(),this.#o||this.#d())};#d(){let t=document.activeElement,s=(t&&this.#t.contains(t)?t:this.#t).getBoundingClientRect();this.#m(s.left,s.bottom)}#m(t,i){let s=document.activeElement;this.#c=s&&this.#t.contains(s)?s:this.#t,this.#o=!0,this.setAttribute("data-open",""),this.#a&&this.#t?.setAttribute("aria-expanded","true"),this.#i.style.top=`${i}px`,this.#i.style.left=`${t}px`,this.#i.show(),requestAnimationFrame(()=>{let n=this.#i.getBoundingClientRect(),r=t+n.width>window.innerWidth?t-n.width:t,a=i+n.height>window.innerHeight?i-n.height:i;this.#i.style.top=`${Math.max(0,a)}px`,this.#i.style.left=`${Math.max(0,r)}px`}),this.#s=-1,this.#A(0),this.dispatchEvent(new CustomEvent("context-menu:open",{bubbles:!0}))}close(){if(!this.#o)return;let t=this.#h();this.#o=!1,this.removeAttribute("data-open"),this.#a&&this.#t?.setAttribute("aria-expanded","false"),this.#s=-1,this.#i?.hide(),t&&this.#E(),this.dispatchEvent(new CustomEvent("context-menu:close",{bubbles:!0}))}#h(){let t=document.activeElement;return!t||t===document.body||!!this.#i?.contains(t)}#E(){let t=this.#c?.isConnected?this.#c:this.#t;this.#c=null,t?.isConnected&&t.focus({preventScroll:!0})}#v=t=>{switch(t.key){case"ArrowDown":case"Down":t.preventDefault(),this.#A(this.#s+1);break;case"ArrowUp":case"Up":t.preventDefault(),this.#A(this.#s-1);break;case"Home":t.preventDefault(),this.#A(0);break;case"End":t.preventDefault(),this.#A(this.#n.length-1);break;case"Enter":case" ":{t.preventDefault();let i=this.#n[this.#s];i&&!ns(i)&&i.click();break}case"Tab":this.close();break}};#S=t=>{let i=t.target.closest?.('button, a, [role="menuitem"]');i&&this.#e.contains(i)&&ns(i)&&(t.preventDefault(),t.stopPropagation())};#b=t=>{let i=t.currentTarget;ns(i)||(this.close(),this.dispatchEvent(new CustomEvent("context-menu:select",{bubbles:!0,detail:{item:i,value:i.getAttribute("data-value")||void 0}})))};#k=()=>{this.#o&&(this.#o=!1,this.removeAttribute("data-open"),this.#a&&this.#t?.setAttribute("aria-expanded","false"),this.#s=-1,this.#h()&&this.#E(),this.dispatchEvent(new CustomEvent("context-menu:close",{bubbles:!0})))};#w=()=>{this.#o&&this.close()};#A(t){this.#n.length!==0&&(t<0&&(t=this.#n.length-1),t>=this.#n.length&&(t=0),this.#s=t,this.#n[t].focus())}get isOpen(){return this.#o}};E("context-menu",qr);Rt();var Nu=10,b0=new Set(["replace","append","prepend"]),y0="Failed to load content",jr=class extends k{#t;#e;#i=null;#n=!1;#s=null;#o="";#r=!1;#a=null;setup(){let t=this.getAttribute("src");return t?(this.#r=!0,this.#i===null&&(this.#i=this.innerHTML),this.#n&&this.#s===t||this.#l(t),!0):!1}teardown(){this.#r=!1,this.#t?.disconnect(),this.hasAttribute("data-loading")&&(this.#e?.abort(),this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"))}get src(){return this.getAttribute("src")||""}set src(t){let i=t==null?"":String(t);this.src!==i&&(i?this.setAttribute("src",i):this.removeAttribute("src"),this.dispatchEvent(new CustomEvent("include-file:src-changed",{detail:{src:i,source:"property"},bubbles:!0})))}static get observedAttributes(){return["src"]}attributeChangedCallback(t,i,s){if(!(t!=="src"||!s||i===s)){if(!this.#r){queueMicrotask(()=>{!this.#r&&this.isConnected&&this.getAttribute("src")&&this._reinit()});return}this.#l(s)}}#l(t){this.hasAttribute("lazy")&&!this.#c()?this.#g():this.#d(t)}#c(){let t=this.getBoundingClientRect();return t.top<window.innerHeight+200&&t.bottom>-200}#g(){this.#t?.disconnect(),this.#t=new IntersectionObserver(t=>{for(let i of t)if(i.isIntersecting){this.#t.disconnect();let s=this.getAttribute("src");s&&this.#d(s)}},{rootMargin:"200px"}),this.#t.observe(this)}#f(t){let i;try{i=new URL(t,document.baseURI)}catch{throw new Error(`Invalid URL: ${t}`)}if(i.protocol!=="http:"&&i.protocol!=="https:")throw new Error(`Refused ${i.protocol} URL: only http(s) is allowed`);return this.#u(i.href),i.href}#u(t){if(!this.hasAttribute("allow-cross-origin")&&new URL(t).origin!==location.origin)throw new Error(`Refused cross-origin URL ${t} (add allow-cross-origin to permit)`)}#p(t){let i=0,s=this.parentElement?.closest("include-file");for(;s;){if(#o in s&&(i++,s.#o===t))throw new Error(`Refused include cycle: ${t} is already included by an ancestor`);s=s.parentElement?.closest("include-file")}if(i>=Nu)throw new Error(`Refused include: nesting deeper than ${Nu}`)}#y(){let t=this.getAttribute("mode")||"replace";return b0.has(t)?t:(console.warn(`<include-file>: unknown mode "${t}", using "replace"`),"replace")}async#d(t){this.#e?.abort();let i=new AbortController;this.#e=i,this.#h(),this.setAttribute("data-loading",""),this.setAttribute("aria-busy","true"),this.removeAttribute("data-loaded"),this.removeAttribute("data-error");try{let s=this.#f(t);this.#p(s),this.#o=s;let n=await fetch(s,{signal:i.signal});if(n.url&&this.#u(n.url),!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);let r=await n.text();if(i.signal.aborted)return;let a=this.hasAttribute("trusted");this.hasAttribute("allow-scripts")&&!a&&console.warn("<include-file>: allow-scripts is ignored without trusted");let o=a&&this.hasAttribute("allow-scripts"),c;if(a){let f=document.createElement("template");f.innerHTML=r,c=f.content}else c=ne(r,{allowIncludeFile:!0,keepIds:!0,keepStyle:!0});let l=document.createElement("template");l.content.append(c.cloneNode(!0));let u=l.innerHTML,d=[...c.querySelectorAll("script")];o||d.forEach(f=>f.remove());let h=this.#y();h==="replace"?this.replaceChildren(c):h==="append"?this.append(c):this.prepend(c);for(let f of o?d:[]){let p=document.createElement("script");for(let m of f.attributes)p.setAttribute(m.name,m.value);p.textContent=f.textContent,f.replaceWith(p)}this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"),this.setAttribute("data-loaded",""),this.#n=!0,this.#s=t,this.dispatchEvent(new CustomEvent("include-file:loaded",{bubbles:!0,detail:{src:t,url:s,html:u}}))}catch(s){if(s.name==="AbortError"||i.signal.aborted)return;this.#m(t,s)}}#m(t,i){if(this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"),this.setAttribute("data-error",""),this.#y()==="replace"&&this.#i!==null&&!this.#n&&(this.innerHTML=this.#i),!this.textContent.trim()&&!this.children.length){let s=document.createElement("p");s.setAttribute("role","alert"),s.setAttribute("data-include-error",""),s.textContent=this.getAttribute("data-label-error")||y0,this.append(s),this.#a=s}this.dispatchEvent(new CustomEvent("include-file:error",{bubbles:!0,detail:{src:t,error:i.message}}))}#h(){this.#a?.parentNode===this&&this.#a.remove(),this.#a=null}reload(){let t=this.getAttribute("src");t&&this.#d(t)}};E("include-file",jr);ct();var Mu="environment",_u="preferences",Hr={timeOfDay:!1,seasonal:!1},v0=900*1e3,xt={...Hr};function Ht(e,t,i){return e+(t-e)*Math.min(1,Math.max(0,i))}var pe={_timer:null,_baseHues:null,_timeOverride:null,_monthOverride:null,async init(){let e=await x.get(Mu,_u);xt=e?{...Hr,...e}:{...Hr},(xt.timeOfDay||xt.seasonal)&&(this._captureBaseHues(),this._update(),this._startLoop()),window.addEventListener("vb:theme-change",()=>{this._hasActiveSource()&&requestAnimationFrame(()=>{this._captureBaseHues(),this._update()})})},load(){return{...xt}},save(e){return xt={...xt,...e},x.set(Mu,_u,xt).catch(()=>{}),{...xt}},setTimeOverride(e){this._timeOverride=e,this._hasActiveSource()&&this._update()},setMonthOverride(e){this._monthOverride=e,this._hasActiveSource()&&this._update()},setSource(e,t){let i=this.save({[e]:t});t?(this._captureBaseHues(),this._update(),this._startLoop()):this._hasActiveSource(i)?this._update():(this._clearModifiers(),this._stopLoop())},_hasActiveSource(e){let t=e||this.load();return t.timeOfDay||t.seasonal},_captureBaseHues(){let e=document.documentElement;e.style.removeProperty("--hue-primary"),e.style.removeProperty("--hue-secondary"),e.style.removeProperty("--hue-accent");let t=e.getAttribute("data-theme");if(t){let i=`[data-theme~="${t}"]`;for(let s of document.styleSheets)try{for(let n=0;n<s.cssRules.length;n++){let r=s.cssRules[n];if(r.selectorText?.includes(i)&&!r.selectorText.includes("dark")){let a=r.style?.getPropertyValue("--hue-primary");if(a){this._baseHues={primary:parseFloat(a)||260,secondary:parseFloat(r.style.getPropertyValue("--hue-secondary"))||200,accent:parseFloat(r.style.getPropertyValue("--hue-accent"))||30};return}}}}catch{}}this._baseHues={primary:260,secondary:200,accent:30}},_update(){let e=this.load(),t=0;e.timeOfDay&&(t+=this._getTimeOfDayOffset()),e.seasonal&&(t+=this._getSeasonalOffset());let i=document.documentElement;t!==0&&this._baseHues?(i.style.setProperty("--hue-primary",String(this._baseHues.primary+t)),i.style.setProperty("--hue-secondary",String(this._baseHues.secondary+t)),i.style.setProperty("--hue-accent",String(this._baseHues.accent+t*.5))):t===0&&this._clearModifiers()},_clearModifiers(){let e=document.documentElement;e.style.removeProperty("--hue-primary"),e.style.removeProperty("--hue-secondary"),e.style.removeProperty("--hue-accent")},_getTimeOfDayOffset(){let e=this._timeOverride??new Date().getHours()+new Date().getMinutes()/60;return e<5?-20:e<7?Ht(-20,20,(e-5)/2):e<10?Ht(20,5,(e-7)/3):e<14?Ht(5,0,(e-10)/4):e<17?Ht(0,-5,(e-14)/3):e<19?Ht(-5,15,(e-17)/2):e<21?Ht(15,-10,(e-19)/2):Ht(-10,-20,(e-21)/8)},_getHemisphere(){return window.__VB_ENV_LOCATION?.hemisphere||"north"},_getSeasonalOffset(){let e=this._monthOverride??new Date().getMonth(),i=this._getHemisphere()==="south"?(e+6)%12:e;return i>=2&&i<=4?5:i>=5&&i<=7?10:i>=8&&i<=10?-5:-10},_startLoop(){this._timer||(this._timer=setInterval(()=>this._update(),v0))},_stopLoop(){this._timer&&clearInterval(this._timer),this._timer=null}};var rs=null;function Iu(){return"0.7.2-e7af00922"}function w0(){let e=document.querySelectorAll('script[src*="vanilla-breeze"]'),t="/cdn/sw.js";for(let i of e){let s=i.getAttribute("src");if(s){let n=s.lastIndexOf("/");if(n!==-1){t=s.slice(0,n)+"/sw.js";break}}}return t}function Bu(){return rs||(rs=navigator.serviceWorker?.ready??Promise.reject(new Error("SW not supported"))),rs}function Ru(e){return new Promise((t,i)=>{navigator.serviceWorker?.controller?$u(navigator.serviceWorker.controller,e,t,i):Bu().then(s=>{let n=s.active||s.waiting||s.installing;n?$u(n,e,t,i):i(new Error("No active service worker"))}).catch(i)})}function $u(e,t,i,s){let n=new MessageChannel;n.port1.onmessage=r=>i(r.data),n.port1.onmessageerror=()=>s(new Error("Message error")),e.postMessage({type:t},[n.port2]),setTimeout(()=>s(new Error("SW message timeout")),5e3)}async function Fu(){return Ru("GET_STATUS")}async function Pu(){return Ru("CLEAR_CACHE")}async function Ou(){let e=await Bu();return await e.update(),{updated:!!e.waiting}}function A0(){return typeof window>"u"||!("serviceWorker"in navigator)?!1:window.__VB_SERVICE_WORKER?!0:document.querySelector('meta[name="vb-service-worker"]')?.content==="true"}if(A0()){let e=w0();window.addEventListener("load",()=>{rs=navigator.serviceWorker.register(e).catch(t=>{console.warn("[VB] Service worker registration failed:",t)})})}ct();hr();var me=null,st="settings",cs={motionFx:!0,sounds:!1,charShortcuts:!0},Wr=()=>({...cs,charShortcuts:Ot()}),C0=document.documentElement.hasAttribute("data-sticky"),Gr=null,T0={trigger:"Site settings",dialog:"Site settings",title:"Settings",close:"Close settings",appearance:"Appearance","color-mode":"Color mode","mode-auto":"Auto","mode-light":"Light","mode-dark":"Dark",theme:"Theme",accessibility:"Accessibility","high-contrast":"High Contrast","large-text":"Large Text",dyslexia:"Dyslexia-Friendly","char-shortcuts":"Single-Key Shortcuts",layout:"Layout",fluid:"Fluid Scaling",density:"Density","density-compact":"Compact","density-default":"Default","density-spacious":"Spacious",backdrop:"Canvas Backdrop","backdrop-style":"Style","backdrop-default":"Default","backdrop-flush":"Flush","backdrop-elevated":"Elevated",chrome:"Chrome","chrome-card":"Card","chrome-stretch":"Stretch","chrome-integrated":"Integrated","fixed-header":"Fixed Header","page-bg":"Page Background","page-bg-default":"Theme Default","page-bg-color":"Solid Color","page-bg-gradient":"Gradient","bg-color":"Color","grad-start":"Start","grad-end":"End","grad-direction":"Direction","dir-to-bottom":"Top \u2192 Bottom","dir-to-right":"Left \u2192 Right","dir-135deg":"Diagonal \u2198","dir-45deg":"Diagonal \u2197",sticky:"Sticky Navigation",effects:"Effects",motion:"Motion Effects",sounds:"Sound Effects",environment:"Environment","time-of-day":"Time-of-Day Shifts",seasonal:"Seasonal Tinting",system:"System","sw-label":"Service Worker:","sw-checking":"checking\u2026","sw-unsupported":"Not supported","sw-active":"Active ({n} cached files)","sw-unregistered":"Not registered","clear-cache":"Clear Cache",clearing:"Clearing\u2026",cleared:"Cache cleared","check-update":"Check for Updates",checking:"Checking\u2026","update-available":"Update available","up-to-date":"Up to date",failed:"Failed",reset:"Reset to Defaults","reset-confirm":"Reset all settings to defaults?","reset-yes":"Reset","reset-cancel":"Cancel","reset-done":"Settings reset to defaults"},L0='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>';function Tt(e){return String(e).replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}async function Kr(e){let t=document.documentElement;e?t.dataset.sticky="":delete t.dataset.sticky;try{let i=await Promise.resolve().then(()=>(zu(),Hu));e?i.initStickyManager():i.destroyStickyManager()}catch{}}var Yr=class extends k{#t=null;#e=null;#i=!1;#n=!1;#s=0;#o="";#r=new Set;#a=[];#l=[];#c={...cs,charShortcuts:Ot()};#g=document.documentElement.hasAttribute("data-sticky");setup(){let t=++this.#s;return this.#o||=crypto.randomUUID().slice(0,8),this.#N(),this.#M(),this.#Z(),this.listen(window,"vb:theme-change",this.#V),this.listen(window,"vb:extensions-change",this.#V),this.listen(window,"vb:a11y-themes-change",this.#V),this.#n&&(this.#n=!1,this.open()),this.#y().then(()=>{this.#f(t)&&this.#Z()}),!0}teardown(){this.#s++;for(let i of this.#a)clearTimeout(i);this.#a=[],this.#i=!1,this.removeAttribute("open"),this.#t?.setAttribute("aria-expanded","false");let t=!!this.#e?.contains(document.activeElement);this.#e?.remove(),t&&this.#t?.isConnected&&this.#t.focus(),this.#e=null}#f(t){return t===this.#s&&this.isConnected}#u(t,i={}){let s=this.getAttribute(`data-label-${t}`)??T0[t]??t;for(let[n,r]of Object.entries(i))s=s.replaceAll(`{${n}}`,String(r));return s}#p(t){return Tt(this.#u(t))}get data(){return{a11yThemes:[...this.#l],extensions:{...this.#c},sticky:this.#g}}set data(t){if(!t||typeof t!="object")return;let i=[],s=[];Array.isArray(t.a11yThemes)&&(this.#l=t.a11yThemes.map(String),s.push("a11y"),i.push(x.set(st,"a11y",this.#l)),this.#j(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:[...this.#l]}))),t.extensions&&typeof t.extensions=="object"&&(this.#c={...Wr(),...t.extensions},s.push("extensions"),i.push(x.set(st,"extensions",this.#c)),this.#nt()),t.sticky!=null&&(this.#g=!!t.sticky,s.push("sticky"),i.push(x.set(st,"sticky",this.#g?"on":"off")),Kr(this.#g));for(let n of s)this.#r.add(n);this.#e&&this.#Z(),Promise.allSettled(i).then(()=>{for(let n of s)this.#r.delete(n);this.#e&&this.#Z(),this.dispatchEvent(new CustomEvent("settings-panel:data-changed",{detail:{data:this.data,source:"property"},bubbles:!0}))})}async#y(){let[t,i,s]=await Promise.all([x.get(st,"a11y"),x.get(st,"extensions"),x.get(st,"sticky")]);Gr===null&&(Gr=C0&&s!=="on"),this.#r.has("a11y")||(this.#l=Array.isArray(t)?t:[]),this.#r.has("extensions")||(this.#c={...Wr(),...i??{}}),this.#r.has("sticky")||(this.#g=document.documentElement.hasAttribute("data-sticky"))}#d(t){return t!==""&&t!==void 0}#m(t){return t==="compact"?"compact":t==="spacious"?"spacious":"default"}#h(t,i){return t?i==="compact"?"compact":i==="spacious"?"spacious":"default":""}#E(t){return t!==""&&t!==void 0}#v(t){return t==="flush"?"flush":t==="elevated"?"elevated":"default"}#S(t,i){return t?i==="flush"?"flush":i==="elevated"?"elevated":"default":""}#b(t){if(!t)return"card";let i=t.split(/\s+/);for(let s of i)if(s==="stretch"||s==="integrated")return s;return"card"}#k(t){return t?t.split(/\s+/).includes("fixed"):!1}#w(t,i){let s=[];return t&&t!=="card"&&s.push(t),i&&s.push("fixed"),s.join(" ")||"card"}#A(t){return this.#e?.querySelector(t)??null}#N(){this.#t=this.querySelector(":scope > [data-trigger]")||this.querySelector(":scope > button"),this.#t||(this.#t=document.createElement("button"),this.#t.setAttribute("type","button"),this.#t.setAttribute("data-trigger",""),this.#t.setAttribute("data-minted",""),this.#t.className="settings-trigger",this.#t.innerHTML=L0,this.prepend(this.#t)),this.#t.hasAttribute("data-minted")&&this.#t.setAttribute("aria-label",this.#u("trigger")),this.#t.setAttribute("aria-haspopup","dialog"),this.#t.setAttribute("aria-expanded","false"),this.#e=document.createElement("div"),this.#e.className="settings-panel",this.#e.setAttribute("role","dialog"),this.#e.setAttribute("aria-label",this.#u("dialog")),this.#e.tabIndex=-1;let t=`settings-panel-${this.#o}`;this.#e.id=t,this.#t.setAttribute("aria-controls",t),this.#e.innerHTML=this.#x(),this.appendChild(this.#e)}#x(){let{mode:t,brand:i,fluid:s,backdrop:n,backdropChrome:r,pageBgType:a,pageBgColor:o,pageBgGradStart:c,pageBgGradEnd:l,pageBgGradDir:u}=I.getState(),d=[...this.#l],h={...this.#c},f=pe.load(),p=this.#d(s),m=this.#m(s),g=this.#E(n),b=this.#v(n),A=this.#o,w=S=>this.#p(S),_=(S,L,P,Re,ot,ee={})=>`
345
+ `,pr=class extends E{static get observedAttributes(){return["trend","loading"]}setup(){if(this.shadowRoot)for(let t of lu){let i=this.shadowRoot.querySelector(`slot[name="${t}"]`);this.#t(t,i)}else{let t=this.attachShadow({mode:"open"});t.innerHTML=Sv;for(let i of lu){let s=t.querySelector(`slot[name="${i}"]`);s?.addEventListener("slotchange",()=>this.#t(i,s)),this.#t(i,s)}}this.#e(),this.#i(),this.#n()}attributeChangedCallback(t){this.isConnected&&(t==="trend"?this.#e():t==="loading"&&this.#i())}#t(t,i){let s=!!i&&i.assignedNodes({flatten:!0}).some(n=>n.nodeType===Node.ELEMENT_NODE||n.nodeType===Node.TEXT_NODE&&n.textContent.trim().length>0);this.setState(`has-${t}`,s)}#e(){let t=(this.getAttribute("trend")||"").toLowerCase();for(let i of kv)this.setState(`trend-${i}`,i===t)}#i(){let t=this.hasAttribute("loading");this.setState("loading",t),t?this.setAttribute("aria-busy","true"):this.getAttribute("aria-busy")==="true"&&this.removeAttribute("aria-busy")}#n(){let t=this.closest("a[href]");this.setState("interactive",!!t)}};A("score-card",pr);var xv=0;function Xi(e,t){return e.matches("content-swap")?t:`data-${t}`}function Ki(e){let t=e.querySelector(':scope > [data-face="front"]'),i=e.querySelector(':scope > [data-face="back"]');if(!t||!i)return;e.style.viewTransitionName||(e.style.viewTransitionName=`content-swap-${++xv}`);let s=e.matches("content-swap");s||e.setAttribute("data-swap-init","");let n=[];function r(l,u,d,h){l.addEventListener(u,d,h),n.push(()=>l.removeEventListener(u,d,h))}let a=[...e.querySelectorAll("[data-swap]")].filter(l=>l.parentElement?.closest("content-swap, [data-swap]")===e),o=a.length===0,c=e.querySelector(":scope > [data-swap-toggle]");if(o){if(!c){let l=document.createElement("button");l.type="button",l.setAttribute("data-swap-toggle",""),l.textContent="Show back",e.append(l),c=l}r(c,"click",l=>{l.stopPropagation(),qt(e,l.detail===0?"keyboard":"pointer")}),r(e,"click",l=>{let d=l.target.closest?.(Tv);d&&d!==e&&e.contains(d)||qt(e,"pointer")})}else c&&!c.hasAttribute("data-swap")&&c.remove(),c=null,a.forEach(l=>{let u=l.matches(Cv);r(l,"click",d=>{d.stopPropagation();let h=u&&d.detail===0;qt(e,h?"keyboard":"pointer")}),!u&&(l.hasAttribute("role")||(l.setAttribute("role","button"),n.push(()=>l.removeAttribute("role"))),l.hasAttribute("tabindex")||(l.setAttribute("tabindex","0"),n.push(()=>l.removeAttribute("tabindex"))),r(l,"keydown",d=>{d.target===l&&(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),qt(e,"keyboard"))}))});if(e.matches('[data-gesture="flick"], [data-gesture="swipe"]')&&(r(e,"swipe-left",()=>qt(e,"pointer")),r(e,"swipe-right",()=>qt(e,"pointer"))),!s){let l=new MutationObserver(()=>Yi(e,t,i));l.observe(e,{attributes:!0,attributeFilter:["data-swapped"]}),n.push(()=>l.disconnect())}return Yi(e,t,i),Lv([t,i]),()=>{for(let l of n)l();n.length=0}}var Cv='button, a[href], summary, input:is([type="button"], [type="submit"], [type="reset"])',Tv='a[href], button, input, select, textarea, label, summary, [contenteditable=""], [contenteditable="true"], [tabindex]';function Lv(e){let t=e.map(i=>i.style.transition);for(let i of e)i.style.transition="none";for(let i of e)getComputedStyle(i).transform;e.forEach((i,s)=>{i.style.transition=t[s]})}function Yi(e,t,i){let s=e.hasAttribute(Xi(e,"swapped"));t.inert=s,i.inert=!s,e.querySelector(":scope > [data-swap-toggle]")?.setAttribute("aria-pressed",String(s))}function hu(e){return{front:e.querySelector(':scope > [data-face="front"]'),back:e.querySelector(':scope > [data-face="back"]')}}function Ge(e,t,i="api"){let{front:s,back:n}=hu(e);if(!s||!n)return;let r=Xi(e,"swapped");if(t&&e.hasAttribute(r)||!t&&!e.hasAttribute(r))return;let a=document.activeElement,o=()=>{t?e.setAttribute(r,""):e.removeAttribute(r),Yi(e,s,n),Dv(e,i);let u=t?n:s,d=t?s:n,h=u.querySelector("[autofocus]");h?h.focus():i==="keyboard"&&d.contains(a)&&Nv(u)},c=u=>{let d=e;typeof d.setState=="function"&&d.setState("transition-running",u)};c(!0);let l=lt(o);l&&l.finished&&typeof l.finished.finally=="function"?l.finished.finally(()=>c(!1)):c(!1)}function qt(e,t="api"){Ge(e,!e.hasAttribute(Xi(e,"swapped")),t)}function Dv(e,t="internal"){e.dispatchEvent(new CustomEvent("content-swap:swap",{detail:{swapped:e.hasAttribute(Xi(e,"swapped")),source:t},bubbles:!0}))}function Nv(e){let t=e.querySelector("[data-swap], button, a, input, select, textarea");t&&t.focus()}var mr=class extends E{static observedAttributes=["swapped"];#t=null;attributeChangedCallback(){if(!this.isConnected)return;let{front:t,back:i}=hu(this);t&&i&&Yi(this,t,i)}setup(){this.#t=Ki(this)??null}teardown(){this.#t?.(),this.#t=null}flip(){Ge(this,!0)}unflip(){Ge(this,!1)}toggle(){qt(this)}get flipped(){return this.hasAttribute("swapped")}set flipped(t){Ge(this,!!t)}get swapped(){return this.hasAttribute("swapped")}set swapped(t){Ge(this,!!t)}};A("content-swap",mr);function uu(){document.querySelectorAll("[data-swap]:not(content-swap):not([data-swap-init])").forEach(e=>{e.querySelector(":scope > [data-face]")&&Ki(e)})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",uu):uu();var du=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.hasAttribute("data-swap")&&!s.matches("content-swap")&&!s.hasAttribute("data-swap-init")&&s.querySelector(":scope > [data-face]")&&Ki(s),s.querySelectorAll("[data-swap]:not(content-swap):not([data-swap-init])").forEach(n=>{n.querySelector(":scope > [data-face]")&&Ki(n)})}});document.body?du.observe(document.body,{childList:!0,subtree:!0}):document.addEventListener("DOMContentLoaded",()=>{du.observe(document.body,{childList:!0,subtree:!0})});var gr=class extends E{#t=null;#e=!1;#i=null;setup(){!this.hasAttribute("role")&&!this.querySelector("nav")&&this.setAttribute("role","navigation"),this.#r("pathname"),this.listen(window,"popstate",this.#s);let t=window.navigation;t&&typeof t.addEventListener=="function"&&this.listen(t,"currententrychange",this.#o)}get items(){return this.#t?this.#t.map(t=>({...t})):Array.from(this.#n()).map(t=>({href:t.getAttribute("href")||"",label:t.textContent?.trim()||""}))}set items(t){if(!Array.isArray(t))return;let i=t.map(s=>({...s}));this.#t&&this.#u(this.#t,i)||(this.#t=i,this.#g(i),this.#e?this.#c(this.#i):this.#r("pathname"),this.dispatchEvent(new CustomEvent("nav-bar:items-changed",{detail:{items:this.items,source:"property"},bubbles:!0,composed:!0})))}get current(){if(this.#e)return this.#i;for(let t of this.#n())if(t.getAttribute("aria-current")==="page")return t.getAttribute("data-route")||t.getAttribute("href")||null;return null}set current(t){let i=this.current,s=t==null?null:String(t);this.#e=!0,this.#i=s,this.#c(s),i!==s&&this.dispatchEvent(new CustomEvent("nav-bar:current-changed",{detail:{current:s,previous:i,source:"property"},bubbles:!0,composed:!0}))}releaseCurrent(){this.#e&&(this.#e=!1,this.#i=null,this.#r("pathname"))}refresh(){this.#e||this.#r("pathname")}#n(){let t=this.querySelectorAll("a[data-nav-link]");return t.length>0?t:this.querySelectorAll(":scope > a")}#s=()=>{this.#e||this.#r("popstate")};#o=()=>{queueMicrotask(()=>{this.#e||!this.isConnected||this.#r("navigation")})};#r(t){let i=this.current,s=this.#a();this.#c(s),s==null&&this.#l(),i!==s&&this.dispatchEvent(new CustomEvent("nav-bar:current-changed",{detail:{current:s,previous:i,source:t},bubbles:!0,composed:!0}))}#a(){let t=Zi(window.location.pathname),i=window.location.origin,s=Array.from(this.#n());if(s.length===0)return null;let n=this.getAttribute("data-match")==="exact",r=null,a=null,o=-1;for(let l of s){let u=l.getAttribute("href");if(!u||u.startsWith("#"))continue;let d;try{d=new URL(u,document.baseURI)}catch{continue}if(!/^https?:$/.test(d.protocol)||d.origin!==i)continue;let h=Zi(d.pathname);if(h===t){r==null&&(r=l);continue}!n&&h!=="/"&&t.startsWith(h+"/")&&h.length>o&&(a=l,o=h.length)}let c=r||a;return c?c.getAttribute("data-route")||c.getAttribute("href"):null}#l(){let t=Zi(window.location.pathname),i=window.location.origin,s=this.getAttribute("data-match")==="exact",n=null,r=-1;for(let a of this.querySelectorAll("a[data-nav-link]")){let o=a.closest("drop-down, li");if(!(!o||!this.contains(o)))for(let c of o.querySelectorAll("a[href]:not([data-nav-link])")){let l=c.getAttribute("href");if(!l||l.startsWith("#"))continue;let u;try{u=new URL(l,document.baseURI)}catch{continue}if(!/^https?:$/.test(u.protocol)||u.origin!==i)continue;let d=Zi(u.pathname),h=-1;d===t?h=Number.MAX_SAFE_INTEGER:!s&&d!=="/"&&t.startsWith(d+"/")&&(h=d.length),h>r&&(n=a,r=h)}}n&&n.setAttribute("aria-current","true")}#c(t){let i=this.#n();for(let s of i){let n=s.getAttribute("data-route")||s.getAttribute("href");t!=null&&n===t?s.setAttribute("aria-current","page"):s.removeAttribute("aria-current")}}#g(t){this.querySelectorAll(":scope > a").forEach(n=>n.remove());let i=this.querySelector("a[data-nav-link]")!=null,s=document.createDocumentFragment();for(let n of t){let r=this.#f(n);i&&r.setAttribute("data-nav-link",""),s.appendChild(r)}this.appendChild(s)}#f(t){let i=document.createElement("a"),s=Mv(t.href);if(s!=null&&i.setAttribute("href",s),t.route&&i.setAttribute("data-route",t.route),t.external&&(i.target="_blank",i.rel="noopener noreferrer"),t.icon){let n=document.createElement("icon-wc");n.setAttribute("name",String(t.icon)),n.setAttribute("size","sm"),i.appendChild(n)}if(i.appendChild(document.createTextNode(t.label||"")),t.external){let n=document.createElement("span");n.className="sr-only",n.textContent=` ${this.getAttribute("data-label-new-tab")??"(opens in new tab)"}`,i.appendChild(n)}if(t.badge!=null){let n=document.createElement("span");n.className="badge",n.textContent=String(t.badge),i.appendChild(n)}return i}#u(t,i){if(t.length!==i.length)return!1;for(let s=0;s<t.length;s++){let n=Object.keys(t[s]).sort(),r=Object.keys(i[s]).sort();if(n.length!==r.length)return!1;for(let a=0;a<n.length;a++)if(n[a]!==r[a]||t[s][n[a]]!==i[s][r[a]])return!1}return!0}};function Zi(e){let t=e.replace(/\/+$/,"");return t===""?"/":t}function Mv(e){if(e==null||e==="")return"#";let t=String(e),i;try{i=new URL(t,document.baseURI)}catch{return null}return/^https?:$/.test(i.protocol)?t:null}A("nav-bar",gr);var $v=0,wr=class extends E{#t;#e=[];#i;#n;#s;#o;#r;#a;#l=null;#c=0;#g=0;#f=!1;#u=!1;#p=!1;#y=null;#d=!1;#m=!1;#h=!1;#E=!1;#v=new WeakSet;get currentIndex(){return this.#c}get slideCount(){return this.#e.length}get playing(){return this.#l!==null}setup(){let t=[...this.children];if(t.length===0)return!1;this.#u=window.matchMedia("(prefers-reduced-motion: reduce)").matches||document.documentElement.hasAttribute("data-motion-reduced"),this.#p=this.hasAttribute("transition")&&!!document.startViewTransition,this.hasAttribute("transition")&&!this.#p&&this.removeAttribute("transition"),this.setAttribute("role","region"),this.setAttribute("aria-roledescription","carousel"),!this.hasAttribute("aria-label")&&!this.hasAttribute("aria-labelledby")&&this.setAttribute("aria-label","Carousel"),this.#t=document.createElement("div"),this.#t.className="carousel-track",this.#t.setAttribute("tabindex","0"),this.#t.setAttribute("role","group"),this.#t.setAttribute("aria-label",this.dataset.labelTrack||"Slides");let i=this.getAttribute("item-width");if(i&&i!=="auto"&&i!=="full"&&CSS.supports("inline-size",i)&&this.#t.style.setProperty("--_item-width",i),t.forEach((a,o)=>{a.setAttribute("role","group"),a.setAttribute("aria-roledescription","slide"),a.hasAttribute("aria-label")||(a.setAttribute("aria-label",`${o+1} of ${t.length}`),this.#v.add(a)),this.#t.appendChild(a)}),this.#e=[...this.#t.children],this.hasAttribute("autoplay")&&!this.#u&&this.#b(),this.#n=document.createElement("button"),this.#n.type="button",this.#n.className="carousel-prev",this.#n.setAttribute("aria-label","Previous slide"),this.#n.innerHTML='<icon-wc name="chevron-left" size="sm"></icon-wc>',this.#s=document.createElement("button"),this.#s.type="button",this.#s.className="carousel-next",this.#s.setAttribute("aria-label","Next slide"),this.#s.innerHTML='<icon-wc name="chevron-right" size="sm"></icon-wc>',this.getAttribute("indicators")!=="false"&&(this.#o=document.createElement("div"),this.#o.className="carousel-indicators",this.#o.setAttribute("role","group"),this.#o.setAttribute("aria-label","Slide indicators"),this.#e.forEach((a,o)=>{let c=document.createElement("button");c.type="button",c.className="carousel-dot",c.setAttribute("aria-label",`Go to slide ${o+1}`),o===0&&c.setAttribute("aria-current","true"),this.listen(c,"click",()=>this.goTo(o)),this.#o.appendChild(c)})),this.#r=document.createElement("div"),this.#r.className="carousel-live",this.#r.setAttribute("aria-live","polite"),this.#r.setAttribute("aria-atomic","true"),this.#i&&this.appendChild(this.#i),this.appendChild(this.#n),this.appendChild(this.#t),this.appendChild(this.#s),this.#o&&this.appendChild(this.#o),this.appendChild(this.#r),this.listen(this.#n,"click",()=>this.prev()),this.listen(this.#s,"click",()=>this.next()),this.listen(this.#t,"keydown",this.#O),this.listen(this,"mouseenter",()=>{this.#h=!0,this.#w()}),this.listen(this,"mouseleave",()=>{this.#h=!1,this.#w()}),this.listen(this,"touchstart",()=>{this.#h=!0,this.#w()},{passive:!0}),this.listen(this,"focusin",()=>{this.#E=!0,this.#w()}),this.listen(this,"focusout",a=>{this.contains(a.relatedTarget)||(this.#E=!1,this.#w())}),this.#p){let a=++$v,o=this.getAttribute("transition")||"fade",c=o==="slide"?"vt-carousel-slide":o==="scale"?"vt-carousel-scale":"vt-carousel";this.#t.style.viewTransitionName=`carousel-${a}`,this.#t.style.viewTransitionClass=c}if(this.#p){let a=this.#t;Promise.resolve().then(()=>(vr(),yr)).then(({addSwipeListener:o})=>{!this.isConnected||this.#t!==a||(this.#y=o(a,{threshold:40}),this.listen(a,"swipe-left",()=>this.#x()?this.prev():this.next()),this.listen(a,"swipe-right",()=>this.#x()?this.next():this.prev()))})}this.#p||(this.#a=new IntersectionObserver(this.#D,{root:this.#t,threshold:.5}),this.#e.forEach(a=>this.#a.observe(a)),"onscrollend"in window&&this.listen(this.#t,"scrollend",()=>{this.#f=!1,this.#_()}));let r=this.#$()??(Number(this.getAttribute("start"))||0);if(this.#p){let a=r>0&&r<this.#e.length?r:0;this.#e.forEach((o,c)=>{o.hidden=c!==a}),this.#M(a)}else r>0&&r<this.#e.length&&this.goTo(r,!1);return this.#F(),this.#h=this.#E=!1,this.#d=this.hasAttribute("autoplay")&&!this.#u&&!this.#m,this.#w(),!0}teardown(){this.#d=!1,this.#N(),this.#a&&(this.#a.disconnect(),this.#a=null),this.#y&&(this.#y(),this.#y=null),this.#t?.parentElement===this&&[...this.#t.children].forEach(t=>this.appendChild(t)),this.#e.forEach(t=>{this.#v.has(t)&&t.removeAttribute("aria-label")}),this.#t?.remove(),this.#i?.remove(),this.#n?.remove(),this.#s?.remove(),this.#o?.remove(),this.#r?.remove(),this.#t=this.#i=this.#n=this.#s=this.#o=this.#r=null,this.#e=[],this.#p=!1,this.#c=0,this.#g=0,this.#f=!1}get slides(){return this.#e.map((t,i)=>({id:t.id||void 0,html:t.innerHTML,label:t.getAttribute("aria-label")||`${i+1} of ${this.#e.length}`}))}set slides(t){let i=Array.isArray(t)?t:[];for(;this.firstChild;)this.firstChild.remove();for(let s of i){let n=document.createElement("div");s.id&&(n.id=s.id),s.label&&n.setAttribute("aria-label",s.label),n.innerHTML=s.html||"",this.appendChild(n)}this._reinit(),this.dispatchEvent(new CustomEvent("carousel-wc:slides-changed",{detail:{slides:i,source:"property"},bubbles:!0}))}next(){let t=this.hasAttribute("loop");this.#c<this.#e.length-1?this.goTo(this.#c+1):t&&this.goTo(0)}prev(){let t=this.hasAttribute("loop");this.#c>0?this.goTo(this.#c-1):t&&this.goTo(this.#e.length-1)}goTo(t,i=!0){if(!(t<0||t>=this.#e.length)){if(this.#p)if(i&&t!==this.#c){let s=t>this.#c?"forward":"backward";document.documentElement.dataset.vtDirection=s,lt(()=>{this.#S(t)}).finished?.then(()=>{delete document.documentElement.dataset.vtDirection})}else this.#S(t);else{let s=this.#e[t].getBoundingClientRect(),n=this.#t.getBoundingClientRect(),r=this.#x()?s.right-n.right:s.left-n.left,a=i&&!this.#u?"smooth":"instant";this.#t.scrollTo({left:this.#t.scrollLeft+r,behavior:a})}this.#M(t)}}#S(t){this.#e.forEach((i,s)=>{i.hidden=s!==t})}play(){this.#u||!this.#t||(this.#m=!1,this.#d=!0,this.#h=this.#E=!1,this.#i||(this.#b(),this.insertBefore(this.#i,this.firstChild)),this.#w())}pause(){this.#m=!0,this.#d=!1,this.#w()}#b(){let t=document.createElement("button");t.type="button",t.className="carousel-rotate",this.listen(t,"click",()=>{this.#d?this.pause():this.play()}),this.#i=t,this.#k()}#k(){let t=this.#i;if(!t)return;let i=this.#d?"Pause automatic slide show":"Start automatic slide show";t.getAttribute("aria-label")!==i&&(t.setAttribute("aria-label",i),t.innerHTML=`<icon-wc name="${this.#d?"pause":"play"}" size="sm"></icon-wc>`)}#w(){this.#d&&!this.#h&&!this.#E&&!this.#u&&this.isConnected&&!!this.#t?this.#A():this.#N(),this.#k()}#A(){if(this.#l)return;let t=Number(this.getAttribute("autoplay-delay"))||5e3;this.#l=setInterval(()=>this.next(),t),this.#r?.setAttribute("aria-live","off"),this.dispatchEvent(new CustomEvent("carousel-wc:play",{bubbles:!0}))}#N(){this.#r?.setAttribute("aria-live","polite"),this.#l&&(clearInterval(this.#l),this.#l=null,this.dispatchEvent(new CustomEvent("carousel-wc:pause",{bubbles:!0})))}#x(){return getComputedStyle(this).direction==="rtl"}reset(){let t=Number(this.getAttribute("start"))||0;this.goTo(t,!1),this.#C()}#M(t){this.#c=t,this.#F(),this.#W(),this.#r&&(this.#r.textContent=`Slide ${t+1} of ${this.#e.length}`),!this.#f&&(this.#_(),!this.#p&&"onscrollend"in window&&(this.#f=!0))}#_(){this.#c!==this.#g&&(this.#g=this.#c,this.dispatchEvent(new CustomEvent("carousel-wc:change",{detail:{index:this.#c,slide:this.#e[this.#c]},bubbles:!0})))}#F(){let t=this.hasAttribute("loop"),i=this.#c===0,s=this.#c===this.#e.length-1;if(this.#n&&(this.#n.disabled=!t&&i),this.#s&&(this.#s.disabled=!t&&s),this.#o){let n=this.#o.children;for(let r=0;r<n.length;r++)r===this.#c?(n[r].setAttribute("aria-current","true"),n[r].setAttribute("data-active","")):(n[r].removeAttribute("aria-current"),n[r].removeAttribute("data-active"))}}#D=t=>{for(let i of t)if(i.isIntersecting){let s=this.#e.indexOf(i.target);s!==-1&&s!==this.#c&&this.#M(s)}};#O=t=>{let i=(t.key==="ArrowLeft"||t.key==="ArrowRight")&&this.#x();switch(t.key){case"ArrowLeft":t.preventDefault(),i?this.next():this.prev();break;case"ArrowRight":t.preventDefault(),i?this.prev():this.next();break;case"Home":t.preventDefault(),this.goTo(0);break;case"End":t.preventDefault(),this.goTo(this.#e.length-1);break}};#$(){let t=this.getAttribute("persist");if(!t)return null;try{let i=localStorage.getItem(`carousel:${t}`);return i!==null?Number(i):null}catch{return null}}#W(){let t=this.getAttribute("persist");if(t)try{localStorage.setItem(`carousel:${t}`,String(this.#c))}catch{}}#C(){let t=this.getAttribute("persist");if(t)try{localStorage.removeItem(`carousel:${t}`)}catch{}}};A("carousel-wc",wr);var Iv=0,Ar=class extends E{static formAssociated=!0;#t;#e;#i;#n;#s=[];#o=[];#r=-1;#a=!1;#l="";#c="";#g;#f=!1;#u;#p;#y=[];constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}get#d(){return this.hasAttribute("multiple")}setup(){let t=this.querySelector(":scope > input")||this.querySelector(":scope > .tags-input-area > input");if(!t)return!1;this.#e=t;let i=this.#e.getAttribute("name");i&&(this.hasAttribute("name")||this.setAttribute("name",i),this.#e.removeAttribute("name"));let s=this.querySelector("ul, ol");if(!s)return!1;if(this.#i=s,this.#d){let c=this.querySelector(":scope > .tags-input-area");if(!c){c=document.createElement("div"),c.className="tags-input-area";let u=this.querySelector(":scope > pop-over[data-combobox-host]")||this.#i;this.insertBefore(c,u)}this.#u=c,this.#e.parentNode!==this.#u&&this.#u.appendChild(this.#e);let l=this.querySelector(":scope > [data-combobox-live]");l||(l=document.createElement("div"),l.setAttribute("aria-live","polite"),l.setAttribute("aria-atomic","true"),l.setAttribute("data-combobox-live",""),l.className="visually-hidden",this.appendChild(l)),this.#p=l}let n=this.getAttribute("placeholder");n&&!this.#e.getAttribute("placeholder")&&this.#e.setAttribute("placeholder",n);let r=`cb${++Iv}`;this.#i.id||(this.#i.id=`combobox-listbox-${r}`),this.#e.setAttribute("role","combobox"),this.#e.setAttribute("aria-expanded","false"),this.#e.setAttribute("aria-autocomplete","list"),this.#e.setAttribute("aria-controls",this.#i.id),this.#e.setAttribute("autocomplete","off"),this.#i.setAttribute("role","listbox"),this.#d&&this.#i.setAttribute("aria-multiselectable","true");let a=this.#d?this.#u:this.#e;a.id||(a.id=`combobox-anchor-${r}`);let o=this.querySelector(":scope > pop-over[data-combobox-host]");if(o?this.#n=o:(this.#n=document.createElement("pop-over"),this.#n.setAttribute("data-combobox-host",""),this.#n.id=`combobox-pop-${r}`,this.#n.dataset.mode="manual",this.#n.dataset.position="bottom-start",this.#n.dataset.anchor=a.id,this.#n.appendChild(this.#i),this.appendChild(this.#n)),this.#n.dataset.anchor=a.id,this.#i.parentElement!==this.#n&&this.#n.appendChild(this.#i),this.#E(),!this.#d){let c=this.getAttribute("value");c&&this.#C(c,!1),this.#g===void 0&&(this.#g=this.#l)}return this.listen(this.#e,"input",this.#w),this.listen(this.#e,"keydown",this.#A),this.listen(this.#e,"focus",this.#N),this.listen(this.#e,"click",this.#x),this.listen(this.#i,"click",this.#M),this.listen(this.#i,"pointerdown",this.#_),this.listen(document,"click",this.#F),this.listen(this.#n,"pop-over:hide",this.#tt),this.listen(this,"invalid",this.#m),this.#I(),this.#L(),this.#q(),this.#h(this.matches(":disabled")),!0}teardown(){}#m=()=>{this.#e.setAttribute("aria-invalid","true")};formDisabledCallback(t){this.#e&&this.#h(t)}#h(t){this.#f=t,t&&this.#q();let i=this.#b(),s=this.#d&&i>0&&this.#y.length>=i;if(this.#e.disabled=t||s,this.#u)for(let n of this.#u.querySelectorAll(".tag button"))n.disabled=t}#E(){this.#s=Array.from(this.#i.querySelectorAll(":scope > li[data-value]")),this.#s.forEach((t,i)=>{t.setAttribute("role","option"),t.setAttribute("aria-selected","false"),t.id||(t.id=`${this.#i.id}-option-${i}`)}),this.#o=[...this.#s]}#v(t,i){if(this.#y.some(o=>o.value===t))return;let s=this.#b();if(s&&this.#y.length>=s)return;this.#y.push({value:t,label:i});let n=document.createElement("span");n.className="tag",n.dataset.value=t,n.textContent=i+" ";let r=document.createElement("button");r.type="button",r.setAttribute("aria-label",`Remove ${i}`),r.innerHTML="&times;",r.disabled=this.#f,r.addEventListener("click",o=>{o.stopPropagation(),this.#S(t)}),n.appendChild(r),this.#u.insertBefore(n,this.#e);let a=this.#s.find(o=>o.getAttribute("data-value")===t);a&&a.setAttribute("aria-selected","true"),this.#k(`${i} added`),this.#e.value="",this.#D(""),this.#I(),this.#L(),this.#H(),s&&this.#y.length>=s&&(this.#e.disabled=!0,this.#q())}#S(t){let i=this.#y.findIndex(o=>o.value===t);if(i===-1)return;let s=this.#y.splice(i,1)[0],n=this.#u.querySelector(`.tag[data-value="${CSS.escape(t)}"]`);n&&n.remove();let r=this.#s.find(o=>o.getAttribute("data-value")===t);r&&r.setAttribute("aria-selected","false"),this.#k(`${s.label} removed`),this.#b()&&this.#e.disabled&&(this.#e.disabled=this.#f),this.#D(this.#e.value.trim()),this.#I(),this.#L(),this.#H(),this.#e.focus()}#b(){let t=this.getAttribute("max");return t?parseInt(t,10):0}#k(t){this.#p&&(this.#p.textContent="",requestAnimationFrame(()=>{this.#p.textContent=t}))}#w=()=>{let t=this.#e.value.trim();if(!this.#d&&this.#l){let i=this.#i.querySelector('[aria-selected="true"]');i&&i.setAttribute("aria-selected","false"),this.#l="",this.#c="",this.removeAttribute("value"),this.#I(),this.#L()}this.#D(t),this.#T()};#A=t=>{switch(t.key){case"ArrowDown":t.preventDefault(),this.#a||this.#T(),this.#O(this.#r+1);break;case"ArrowUp":t.preventDefault(),this.#a||this.#T(),this.#O(this.#r-1);break;case"Home":this.#a&&(t.preventDefault(),this.#O(0));break;case"End":this.#a&&(t.preventDefault(),this.#O(this.#o.length-1));break;case"Enter":if(this.#a&&this.#r>=0&&this.#o[this.#r]){t.preventDefault();let i=this.#o[this.#r];this.#d?this.#v(i.getAttribute("data-value"),i.textContent.trim()):this.#W(i)}else if(this.#d&&this.hasAttribute("custom")&&this.#e.value.trim()){t.preventDefault();let i=this.#e.value.trim();this.#v(i,i)}break;case"Backspace":if(this.#d&&!this.#e.value&&this.#y.length>0){let i=this.#y[this.#y.length-1];this.#S(i.value)}break;case",":if(this.#d&&this.hasAttribute("custom")&&this.#e.value.trim()){t.preventDefault();let i=this.#e.value.trim();this.#v(i,i)}break;case"Escape":this.#a&&(t.preventDefault(),t.stopPropagation(),this.#q(),this.#e.focus());break;case"Tab":this.#a&&this.#q();break}};#N=()=>{this.#d?(this.#D(this.#e.value.trim()),this.#T()):(this.#e.value||!this.#l)&&(this.#D(this.#e.value.trim()),this.#T())};#x=()=>{this.#a||(this.#D(this.#e.value.trim()),this.#T())};#M=t=>{let i=t.target.closest("li[data-value]");i&&this.#o.includes(i)&&(this.#d?this.#v(i.getAttribute("data-value"),i.textContent.trim()):this.#W(i))};#_=t=>{t.preventDefault()};#F=t=>{this.#a&&!this.contains(t.target)&&this.#q()};#D(t){let i=this.getAttribute("filter")||"contains",s=t.toLowerCase(),n=this.#d?new Set(this.#y.map(r=>r.value)):null;this.#o=[],this.#s.forEach(r=>{let a=r.getAttribute("data-value"),o=r.textContent.trim().toLowerCase();if(n&&n.has(a)){r.hidden=!0;return}let c;t?i==="startsWith"?c=o.startsWith(s):c=o.includes(s):c=!0,r.hidden=!c,c&&this.#o.push(r)}),this.#r=-1,this.#$(),this.setState("no-matches",this.#o.length===0)}#O(t){if(this.#o.length===0)return;t<0&&(t=this.#o.length-1),t>=this.#o.length&&(t=0),this.#r>=0&&this.#o[this.#r]&&this.#o[this.#r].removeAttribute("data-active"),this.#r=t;let i=this.#o[t];i.setAttribute("data-active",""),i.scrollIntoView({block:"nearest"}),this.#e.setAttribute("aria-activedescendant",i.id)}#$(){this.#s.forEach(t=>t.removeAttribute("data-active")),this.#e.removeAttribute("aria-activedescendant")}#W(t,i="internal"){let s=t.getAttribute("data-value")||"",n=t.textContent.trim();if(this.#l===s){this.#e.value=n,this.#q(),this.#e.focus();return}this.#s.forEach(r=>r.setAttribute("aria-selected","false")),t.setAttribute("aria-selected","true"),this.#l=s,this.#c=n,this.#e.value=n,this.setAttribute("value",s),this.#I(),this.#L(),this.#q(),this.#e.focus(),this.dispatchEvent(new CustomEvent("combo-box:change",{bubbles:!0,detail:{value:s,label:n,source:i}}))}#C(t,i=!0,s="api"){let n=this.#s.find(r=>r.getAttribute("data-value")===t);n&&(i?this.#W(n,s):(this.#s.forEach(r=>r.setAttribute("aria-selected","false")),n.setAttribute("aria-selected","true"),this.#l=t,this.#c=n.textContent.trim(),this.#e.value=this.#c,this.setAttribute("value",t)))}#T(){this.#a||this.#f||(this.#a=!0,this.setAttribute("open",""),this.#e.setAttribute("aria-expanded","true"),this.#n?.show(),this.dispatchEvent(new CustomEvent("combo-box:open",{bubbles:!0})))}#q(){this.#a&&(this.#a=!1,this.removeAttribute("open"),this.#e.setAttribute("aria-expanded","false"),this.#r=-1,this.#$(),this.#n?.hide(),this.dispatchEvent(new CustomEvent("combo-box:close",{bubbles:!0})))}#tt=()=>{this.#a&&(this.#a=!1,this.removeAttribute("open"),this.#e.setAttribute("aria-expanded","false"),this.#r=-1,this.#$(),this.dispatchEvent(new CustomEvent("combo-box:close",{bubbles:!0})))};#I(){if(this.#d)if(this.#y.length>0){let t=new FormData,i=this.getAttribute("name")||"";for(let s of this.#y)t.append(i,s.value);this.#t.setFormValue(t)}else this.#t.setFormValue(null);else this.#l?this.#t.setFormValue(this.#l,this.#c):this.#t.setFormValue(null)}#L(){this.hasAttribute("required")?this.#d?this.#y.length===0?this.#t.setValidity({valueMissing:!0},"Please select at least one option",this.#e):this.#t.setValidity({}):this.#l?this.#t.setValidity({}):this.#t.setValidity({valueMissing:!0},"Please select an option",this.#e):this.#t.setValidity({}),this.#t.validity.valid&&this.#e.removeAttribute("aria-invalid")}#H(){this.dispatchEvent(new CustomEvent("combo-box:change",{bubbles:!0,detail:{values:this.#y.map(t=>t.value),labels:this.#y.map(t=>t.label),source:"internal"}}))}formResetCallback(){this.#d?(this.#u.querySelectorAll(".tag").forEach(t=>t.remove()),this.#y=[],this.#e.value="",this.#e.disabled=this.#f):(this.#l="",this.#c="",this.#e.value="",this.removeAttribute("value")),this.#s.forEach(t=>{t.setAttribute("aria-selected","false"),t.hidden=!1}),this.#o=[...this.#s],this.#r=-1,this.#$(),this.#q(),this.#e.removeAttribute("aria-invalid"),!this.#d&&this.#g&&this.#C(this.#g,!1),this.#I(),this.#L()}formStateRestoreCallback(t){t&&(this.#d||(this.#C(t,!1),this.#I(),this.#L()))}get value(){return this.#l}set value(t){t?this.#C(t):this.#Y()}#Y(){this.#s.forEach(t=>t.setAttribute("aria-selected","false")),this.#l="",this.#c="",this.#e&&(this.#e.value=""),this.removeAttribute("value"),this.#I(),this.#L()}get label(){return this.#c}get values(){return this.#y.map(t=>t.value)}get labels(){return this.#y.map(t=>t.label)}static get observedAttributes(){return["value","disabled"]}attributeChangedCallback(t,i,s){if(!this.#e)return;if(t==="disabled"){this.#h(this.matches(":disabled"));return}let n=s??"";t==="value"&&n!==this.#l&&(n?(this.#C(n,!1),this.#I(),this.#L()):this.#Y())}};A("combo-box",Ar);var Qi=86400,Bv=0;function ce(e){return String(e).padStart(2,"0")}function jt(e){if(!e)return null;let t=/^(\d{2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?$/.exec(String(e).trim());if(!t)return null;let i=Number(t[1]),s=Number(t[2]),n=Number(t[3]||0);return i>23||s>59||n>59?null:i*3600+s*60+n}function vu(e,t){let i=Math.floor(e/3600),s=Math.floor(e%3600/60),n=e%60;return t?`${ce(i)}:${ce(s)}:${ce(n)}`:`${ce(i)}:${ce(s)}`}function bt(e,t){return(e%t+t)%t}function Rv(e){try{let{hourCycle:t}=new Intl.DateTimeFormat(e||void 0,{hour:"numeric"}).resolvedOptions();return t==="h12"||t==="h11"?"12h":"24h"}catch{return"24h"}}function Fv(e){let t={am:"AM",pm:"PM",periodFirst:!1};try{let i=new Intl.DateTimeFormat(e||void 0,{hour:"numeric",minute:"2-digit",hourCycle:"h12"}),s=i.formatToParts(new Date(2e3,0,1,9,0)),n=i.formatToParts(new Date(2e3,0,1,21,0)),r=s.find(o=>o.type==="dayPeriod")?.value,a=n.find(o=>o.type==="dayPeriod")?.value;if(r&&a){t.am=r,t.pm=a;let o=s.map(c=>c.type);t.periodFirst=o.indexOf("dayPeriod")<o.indexOf("hour")}}catch{}return t}function Pv(e,t){let i=e.trim().toLowerCase();if(!i)return null;let s=null,n=[[t.am.toLowerCase(),"AM"],[t.pm.toLowerCase(),"PM"],["a.m.","AM"],["p.m.","PM"],["am","AM"],["pm","PM"],["a","AM"],["p","PM"]].sort((l,u)=>u[0].length-l[0].length);for(let[l,u]of n)if(l){if(i.endsWith(l)){s=u,i=i.slice(0,-l.length).trim();break}if(i.startsWith(l)){s=u,i=i.slice(l.length).trim();break}}if(!/^\d{1,2}(?:[:.]\d{1,2}){0,2}$/.test(i))return null;let r=i.split(/[:.]/).map(Number),a=r[0],o=r[1]??0,c=r[2]??0;if(o>59||c>59)return null;if(s){if(a<1||a>12)return null;s==="AM"?a=a===12?0:a:a=a===12?12:a+12}else if(a>23)return null;return a*3600+o*60+c}var Er=class extends E{static formAssociated=!0;static get observedAttributes(){return["disabled","required"]}#t;#e=`tp${++Bv}`;#i=!1;#n;#s;#o;#r;#a;#l=[];#c=null;#g=[];#f="24h";#u="";#p={am:"AM",pm:"PM",periodFirst:!1};#y=!1;#d=null;#m=null;#h=null;#E=60;#v;#S;#b=!1;#k="";#w=!1;constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}setup(){let t=this.querySelector(':scope > input[type="time"]');if(!t)return!1;this.#n=t,this.#u=this.closest("[lang]")?.lang||navigator.language||"en-US",this.#p=Fv(this.#u);let i=this.getAttribute("data-format");this.#f=i==="12h"||i==="24h"?i:Rv(this.#u),this.#N();let s=t.getAttribute("name");s&&(this.hasAttribute("name")||this.setAttribute("name",s),t.removeAttribute("name")),t.hasAttribute("disabled")&&(t.removeAttribute("disabled"),this.hasAttribute("disabled")||this.setAttribute("disabled",""));let n=`${this.#e}-no-form`,r=t.getAttribute("form");return r&&r!==n&&!this.hasAttribute("form")&&this.setAttribute("form",r),t.setAttribute("form",n),this.#v===void 0&&(this.#v=t.defaultValue),this.#S!==void 0&&(t.value=this.#S,this.#S=void 0),this.#d=jt(t.value),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),t.style.cssText="position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden;",this.listen(t,"click",this.#_),this.listen(t,"focus",this.#M),this.#D(),this.#O(),this.#i=!0,this.#F(),this.#et(),this.#j(!1),this.#it(),this.listen(document,"click",this.#q),this.listen(this,"focusout",this.#tt),this.listen(this,"invalid",this.#X),this.#A(this.matches(":disabled")),!0}teardown(){this.#b=!1,this.#o?.remove(),this.#a?.remove(),this.#l=[],this.#g=[],this.#c=null,this.#i=!1,clearTimeout(this.#Q),this.#R=""}attributeChangedCallback(t){this.#i&&(t==="disabled"&&this.#A(this.matches(":disabled")),t==="required"&&this.#it())}formDisabledCallback(t){this.#i&&this.#A(t)}#A(t){this.#s.disabled=t,this.#r.disabled=t,t&&this.#T()}#N(){let t=this.#n.getAttribute("step");if(t&&t.trim().toLowerCase()==="any")this.#E=null;else{let s=Number(t);this.#E=Number.isFinite(s)&&s>0?Math.max(1,Math.round(s)):60}this.#m=jt(this.#n.getAttribute("min")),this.#h=jt(this.#n.getAttribute("max"));let i=jt(this.#n.value);this.#y=this.#E!==null&&this.#E%60!==0||i!==null&&i%60!==0}#x(t,i){return this.dataset[`label${t}`]||i}#M=()=>{this.#i&&!this.#s.disabled&&this.#s.focus()};#_=t=>{t.preventDefault(),this.#M()};#F(){let t=new Set([...Array.from(this.#n.labels||[]),...Array.from(this.#t.labels||[])]),i=[];for(let a of t)a.id||(a.id=`${this.#e}-label-${i.length}`),i.push(a.id),this.listen(a,"click",this.#M);let s=this.#s,n=i.join(" ")||this.#n.getAttribute("aria-labelledby")||this.getAttribute("aria-labelledby");n?s.setAttribute("aria-labelledby",n):s.setAttribute("aria-label",this.#n.getAttribute("aria-label")||this.getAttribute("aria-label")||this.#x("Input","Time"));let r=this.#n.getAttribute("aria-describedby");r&&s.setAttribute("aria-describedby",r)}#D(){this.#o=document.createElement("div"),this.#o.className="time-trigger";let t=document.createElement("input");t.type="text",t.className="time-input",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded","false"),t.setAttribute("autocomplete","off"),t.setAttribute("placeholder",this.#x("Placeholder","Type a time\u2026")),this.#s=t,this.#o.appendChild(t),this.#r=document.createElement("button"),this.#r.type="button",this.#r.className="time-trigger-icon",this.#r.setAttribute("aria-label",this.#x("Toggle","Toggle time spinners")),this.#r.setAttribute("tabindex","-1");let i=document.createElement("icon-wc");i.setAttribute("name","clock"),i.setAttribute("size","sm"),i.setAttribute("aria-hidden","true"),this.#r.appendChild(i),this.#o.appendChild(this.#r),this.appendChild(this.#o),this.listen(this.#r,"click",s=>{s.stopPropagation(),this.#b?this.#T():this.#C(),this.#s.focus()}),this.listen(t,"focus",()=>t.select()),this.listen(t,"keydown",this.#L),this.listen(t,"blur",this.#Y)}#O(){let t=`${this.#e}-panel`;this.#a=document.createElement("div"),this.#a.className="time-panel",this.#a.id=t,this.#a.setAttribute("role","dialog"),this.#a.setAttribute("aria-modal","false"),this.#a.setAttribute("aria-label",this.#x("Dialog","Choose time")),this.#s.setAttribute("aria-controls",t);let i=this.#E??60,s=i>=3600&&i%3600===0?i/3600:1,n=i>=60&&i<3600&&i%60===0?i/60:1,r=i<60?i:1,a=i>=3600&&i%3600===0,o=this.#f==="12h",c=null;o&&(c=document.createElement("button"),c.type="button",c.className="period-toggle"),this.#c=c,c&&this.#p.periodFirst&&this.#a.appendChild(c);let l=!o&&this.#m!==null&&this.#h!==null&&this.#m<=this.#h;this.#l=[],this.#l.push(this.#$("hour",this.#x("Hours","Hours"),o?1:l?Math.floor(this.#m/3600):0,o?12:l?Math.floor(this.#h/3600):23,s,!1)),this.#a.appendChild(this.#W()),this.#l.push(this.#$("minute",this.#x("Minutes","Minutes"),0,59,n,a)),this.#y&&(this.#a.appendChild(this.#W()),this.#l.push(this.#$("second",this.#x("Seconds","Seconds"),0,59,r,!1))),c&&!this.#p.periodFirst&&this.#a.appendChild(c),this.#g=[...this.#a.querySelectorAll(".time-spinner, .period-toggle")],this.appendChild(this.#a);for(let u of this.#l)this.listen(u.incBtn,"click",()=>this.#V(u,u.delta,"pointer")),this.listen(u.decBtn,"click",()=>this.#V(u,-u.delta,"pointer")),this.listen(u.el,"keydown",d=>this.#z(d,u));if(this.#c){let u=this.#c;this.listen(u,"click",d=>{this.#J(d.detail===0?"keyboard":"pointer")}),this.listen(u,"keydown",d=>this.#B(d,u))}}#$(t,i,s,n,r,a){let o=document.createElement("div");o.className="time-spinner",o.dataset.unit=t,o.setAttribute("role","spinbutton"),o.setAttribute("aria-label",i),o.setAttribute("aria-valuemin",String(s)),o.setAttribute("aria-valuemax",String(n)),a&&o.setAttribute("aria-readonly","true"),o.setAttribute("tabindex","0");let c=document.createElement("button");c.type="button",c.className="time-inc",c.setAttribute("aria-hidden","true"),c.setAttribute("tabindex","-1"),c.textContent="\u25B2",a&&(c.disabled=!0);let l=document.createElement("span");l.className="time-value";let u=document.createElement("button");return u.type="button",u.className="time-dec",u.setAttribute("aria-hidden","true"),u.setAttribute("tabindex","-1"),u.textContent="\u25BC",a&&(u.disabled=!0),o.append(c,l,u),this.#a.appendChild(o),{unit:t,el:o,valueEl:l,incBtn:c,decBtn:u,min:s,max:n,delta:r,readOnly:a}}#W(){let t=document.createElement("span");return t.className="time-sep",t.setAttribute("aria-hidden","true"),t.textContent=":",t}#C(){this.#b||this.#s.disabled||(this.#b=!0,this.#a.setAttribute("data-open",""),this.#s.setAttribute("aria-expanded","true"))}#T(){this.#b&&(this.#b=!1,this.#a.removeAttribute("data-open"),this.#s.setAttribute("aria-expanded","false"))}#q=t=>{this.#b&&!this.contains(t.target)&&this.#T()};#tt=t=>{let i=t.relatedTarget;i instanceof Node&&this.contains(i)||this.#T()};#I(t){try{let i=new Date(2e3,0,1,Math.floor(t/3600),Math.floor(t%3600/60),t%60),s={hour:this.#f==="12h"?"numeric":"2-digit",minute:"2-digit",hourCycle:this.#f==="12h"?"h12":"h23"};return this.#y&&(s.second="2-digit"),new Intl.DateTimeFormat(this.#u,s).format(i)}catch{return vu(t,this.#y)}}#L=t=>{switch(t.key){case"Enter":{t.preventDefault(),t.stopPropagation(),this.#H(),this.#b&&this.#T();return}case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.#b||this.#C(),this.#g[0]?.focus();return;case"Escape":t.preventDefault(),t.stopPropagation(),this.#b&&this.#T(),this.#et();return}};#H(){let t=this.#s.value.trim();if(!t)this.#U(null,"keyboard");else{let i=Pv(t,this.#p);i!==null&&this.#U(i,"keyboard")}this.#et()}#Y=t=>{t.relatedTarget instanceof Node&&this.contains(t.relatedTarget)||(this.#H(),this.#X())};#X=()=>{this.#i&&(this.#w||(this.#w=!0,this.#it()),this.#n.dispatchEvent(new Event("blur",{bubbles:!0})))};#B(t,i){let s=this.#g.indexOf(i),n=getComputedStyle(this).direction==="rtl",r=n?"ArrowLeft":"ArrowRight",a=n?"ArrowRight":"ArrowLeft";return t.key===r||t.key===a?(t.preventDefault(),this.#g[s+(t.key===r?1:-1)]?.focus(),!0):t.key==="Escape"?(t.preventDefault(),t.stopPropagation(),this.#T(),this.#s.focus(),!0):!1}#z(t,i){if(this.#B(t,i.el))return;let s=i.unit==="hour"?i.delta:Math.ceil(10/i.delta)*i.delta;switch(t.key){case"ArrowUp":t.preventDefault(),this.#V(i,i.delta,"keyboard");break;case"ArrowDown":t.preventDefault(),this.#V(i,-i.delta,"keyboard");break;case"PageUp":t.preventDefault(),this.#V(i,s,"keyboard");break;case"PageDown":t.preventDefault(),this.#V(i,-s,"keyboard");break;case"Home":t.preventDefault(),this.#Z(i,i.min,1,"keyboard");break;case"End":t.preventDefault(),this.#Z(i,i.max,-1,"keyboard");break;default:/^\d$/.test(t.key)&&(t.preventDefault(),this.#G(t.key,i))}}#R="";#Q;#G(t,i){clearTimeout(this.#Q),this.#R+=t;let s=()=>{let n=Math.min(Math.max(Number(this.#R),i.min),i.max);this.#R="",this.#Z(i,n,0,"keyboard")};this.#R.length>=2||Number(this.#R)*10>i.max?s():this.#Q=setTimeout(s,800)}#P(){return this.#st(this.#m??0,1)}#st(t,i){let s=bt(t,Qi),n=this.#E;if(n){let o=this.#m??0,c=(s-o)/n,l=i>0?Math.floor(c):i<0?Math.ceil(c):Math.round(c);s=bt(o+l*n,Qi)}let r=this.#m,a=this.#h;return r!==null&&a!==null&&r<=a?(s<r&&(s=r),s>a&&(s=n?r+Math.floor((a-r)/n)*n:a)):r!==null&&a===null&&s<r?s=r:a!==null&&r===null&&s>a&&(s=n?Math.floor(a/n)*n:a),s}#V(t,i,s){if(t.readOnly)return;if(this.#d===null){this.#U(this.#P(),s);return}let n=this.#d,r=Math.floor(n/3600),a=Math.floor(n%3600/60),o=n%60,c;t.unit==="hour"?c=(this.#f==="12h"?bt(r%12+i,12)+(r>=12?12:0):bt(r+i,24))*3600+a*60+o:t.unit==="minute"?c=r*3600+bt(a+i,60)*60+o:c=r*3600+a*60+bt(o+i,60),this.#U(this.#st(c,i),s)}#Z(t,i,s,n){if(t.readOnly)return;let r=this.#d??this.#P(),a=Math.floor(r/3600),o=Math.floor(r%3600/60),c=r%60,l;t.unit==="hour"?l=(this.#f==="12h"?i%12+(a>=12?12:0):i)*3600+o*60+c:t.unit==="minute"?l=a*3600+i*60+c:l=a*3600+o*60+i,this.#U(this.#st(l,s),n)}#J(t){let i=this.#d??this.#P();this.#U(this.#st(bt(i+12*3600,Qi),0),t)}#U(t,i){let s=this.value;return this.#d=t,t!==null&&t%60!==0&&!this.#y&&(this.#y=!0),this.#et(),this.value===s?!1:(this.#j(),this.#it(),this.dispatchEvent(new CustomEvent("time-picker:change",{bubbles:!0,detail:{...this.#K(),source:i}})),!0)}#K(){let t=this.#d;return t===null?{value:"",hours:null,minutes:null,seconds:null}:{value:this.value,hours:Math.floor(t/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}#et(){if(!this.#i)return;let t=this.#d;this.#s.value=t===null?"":this.#I(t);let i=this.#x("Empty","Not set"),s=t===null?null:Math.floor(t/3600),n={hour:s===null?null:this.#f==="12h"?s%12||12:s,minute:t===null?null:Math.floor(t%3600/60),second:t===null?null:t%60},r=s===null?"":s>=12?this.#p.pm:this.#p.am;for(let a of this.#l){let o=n[a.unit];if(a.valueEl.textContent=o===null?"--":ce(o),o===null){a.el.removeAttribute("aria-valuenow"),a.el.setAttribute("aria-valuetext",i);continue}a.el.setAttribute("aria-valuenow",String(o));let c;try{c=a.unit==="hour"&&this.#f==="12h"?new Intl.DateTimeFormat(this.#u,{hour:"numeric",hourCycle:"h12"}).format(new Date(2e3,0,1,s)):new Intl.NumberFormat(this.#u,{style:"unit",unit:a.unit,unitDisplay:"long"}).format(o)}catch{c=a.unit==="hour"&&r?`${o} ${r}`:String(o)}a.el.setAttribute("aria-valuetext",c)}this.#c&&(this.#c.textContent=r||"--",this.#c.setAttribute("aria-label",`${this.#x("Period","AM/PM")}: ${r||i}`))}#j(t=!0){let i=this.value;this.#t.setFormValue(i||null),this.#n.value=i,t&&this.#n.dispatchEvent(new Event("input",{bubbles:!0}))}#nt(t,i,s,n={}){let r=this.#n.getAttribute(`data-message-${t.toLowerCase()}`)??this.#x(i,s);for(let[a,o]of Object.entries(n))r=r.replaceAll(`{${a}}`,o);return r}#it(){if(!this.#i)return!1;let t=this.hasAttribute("required")||this.#n.hasAttribute("required");t?this.#s.setAttribute("aria-required","true"):this.#s.removeAttribute("aria-required");let i=this.#d,s=this.#m,n=this.#h,r={},a="";if(i===null)t&&(r={valueMissing:!0},a=this.#nt("valueMissing","Required","Please select a time"));else{let l=s!==null&&n!==null&&s>n,u=s!==null&&i<s,d=n!==null&&i>n;if(l?u&&d:u)r=l?{rangeUnderflow:!0,rangeOverflow:!0}:{rangeUnderflow:!0},a=this.#nt("rangeUnderflow","RangeUnderflow","Choose a time at or after {time}",{time:this.#I(s)});else if(!l&&d)r={rangeOverflow:!0},a=this.#nt("rangeOverflow","RangeOverflow","Choose a time at or before {time}",{time:this.#I(n)});else if(this.#E&&bt(i-(s??0),this.#E)!==0){let h=this.#st(i,1),f=bt(h+this.#E,Qi);r={stepMismatch:!0},a=this.#nt("stepMismatch","StepMismatch","Choose a valid time. The nearest are {lower} and {upper}",{lower:this.#I(h),upper:this.#I(f)})}}let o=this.#t.validationMessage;return a?this.#t.setValidity(r,a,this.#s):this.#t.setValidity({}),a&&(i!==null||this.#w)?this.#s.setAttribute("aria-invalid","true"):this.#s.removeAttribute("aria-invalid"),(this.#n.validationMessage===this.#k||!this.#n.validity.customError)&&(this.#n.setCustomValidity(a),this.#k=a),o!==a}#rt(t){this.#d=t,this.#et(),this.#j(),this.#it()}formResetCallback(){this.#i&&(this.#w=!1,this.#rt(jt(this.#v)))}formStateRestoreCallback(t){!this.#i||typeof t!="string"||this.#rt(jt(t))}get form(){return this.#t.form}get validity(){return this.#t.validity}get validationMessage(){return this.#t.validationMessage}get willValidate(){return this.#t.willValidate}checkValidity(){return this.#t.checkValidity()}reportValidity(){return this.#t.reportValidity()}get value(){return this.#i?this.#d===null?"":vu(this.#d,this.#y):this.#S??""}set value(t){let i=t==null?"":String(t).trim(),s=i?jt(i):null;if(!(i&&s===null)){if(!this.#i){this.#S=i;return}this.#U(s,"api")}}};A("time-picker",Er);var ts="popover"in HTMLElement.prototype;var le=[{ja:"\u4EE4\u548C",latin:"R",start:[2019,5,1]},{ja:"\u5E73\u6210",latin:"H",start:[1989,1,8]},{ja:"\u662D\u548C",latin:"S",start:[1926,12,25]},{ja:"\u5927\u6B63",latin:"T",start:[1912,7,30]},{ja:"\u660E\u6CBB",latin:"M",start:[1868,10,23]}],Ov=new RegExp(`^(?:(${le.map(e=>e.ja).join("|")})|(${le.map(e=>e.latin).join("|")}))`+String.raw`\s*(元|\d{1,2})年?[/.\-]?\s*(\d{1,2})月?[/.\-]?\s*(\d{1,2})日?$`,"i"),qv=/^(\d{4})年(\d{1,2})月(\d{1,2})日?$/;function wu(e){return e.trim().replace(/[0-9]/g,t=>String(t.charCodeAt(0)-65296)).replace(/\s+/g,"")}function Au(e,t,i){let s=new Date(2e3,t-1,i);return s.setFullYear(e),s.getMonth()===t-1&&s.getDate()===i?s:null}function Eu(e){let t=wu(e).match(Ov);if(!t)return null;let i=t[1]?le.find(a=>a.ja===t[1]):le.find(a=>a.latin.toUpperCase()===t[2].toUpperCase());if(!i)return null;let s=t[3]==="\u5143"?1:Number(t[3]);if(s<1)return null;let n=Au(i.start[0]+s-1,Number(t[4]),Number(t[5]));if(!n||n<new Date(i.start[0],i.start[1]-1,i.start[2]))return null;let r=le.indexOf(i);if(r>0){let a=le[r-1].start;if(n>=new Date(a[0],a[1]-1,a[2]))return null}return n}function ku(e){let t=wu(e).match(qv);return t?Au(Number(t[1]),Number(t[2]),Number(t[3])):null}Q();var Lr=["january","february","march","april","may","june","july","august","september","october","november","december"],jv=0;function it(e){let t=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${t}-${i}-${s}`}function Dr(e,t,i){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(i))return null;let s=new Date(e,t,i);return s.getFullYear()!==e||s.getMonth()!==t||s.getDate()!==i?null:s}function dt(e){if(!e)return null;let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(String(e).trim());return t?Dr(Number(t[1]),Number(t[2])-1,Number(t[3])):null}function Ke(e,t){return new Date(e,t+1,0).getDate()}function kr(e,t){let i=new Date(e.getFullYear(),e.getMonth()+t,1),s=i.getFullYear(),n=i.getMonth();return new Date(s,n,Math.min(e.getDate(),Ke(s,n)))}function Hv(e){try{let t=new Intl.Locale(e),i=t.getWeekInfo?.()??t.weekInfo;if(i)return i.firstDay%7}catch{}return 0}var Sr=new Map;function Su(e,t){let i=`${e}:${t}`;if(Sr.has(i))return Sr.get(i);let s;try{let n=new Intl.DateTimeFormat(e,{weekday:t});s=Array.from({length:7},(r,a)=>n.format(new Date(2026,0,4+a)))}catch{s=t==="long"?["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}return Sr.set(i,s),s}function xu(e,t){try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(e)}catch{return it(e)}}function xr(e,t){return!!(e&&t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())}var Cr=new Map;function zv(e){if(Cr.has(e))return Cr.get(e);let t=new Map;Lr.forEach((i,s)=>{t.set(i,s),t.set(i.slice(0,3),s)});try{let i=new Intl.DateTimeFormat(e,{month:"long"}),s=new Intl.DateTimeFormat(e,{month:"short"});for(let n=0;n<12;n++){let r=new Date(2e3,n,1);t.set(i.format(r).toLowerCase(),n),t.set(s.format(r).toLowerCase().replace(".",""),n)}}catch{}return Cr.set(e,t),t}function Tr(e,t){let i=e.trim(),s={date:null,partial:null};if(!i)return s;if(/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(i)){let o=dt(i.replace(/\//g,"-"));return o?{date:o,partial:null}:s}if(zi(t)==="ja"){let o=Eu(i);if(o)return{date:o,partial:null}}let n=ku(i);if(n)return{date:n,partial:null};let r=zv(t),a=i.match(/^([a-zÀ-ɏ]+)\.?\s+(\d{1,2}),?\s+(\d{4})$/i);if(a){let o=r.get(a[1].toLowerCase());if(o===void 0)return s;let c=Dr(Number(a[3]),o,Number(a[2]));return c?{date:c,partial:null}:s}if(a=i.match(/^(\d{1,2})\.?\s+([a-zÀ-ɏ]+)\.?\s+(\d{4})$/i),a){let o=r.get(a[2].toLowerCase());if(o===void 0)return s;let c=Dr(Number(a[3]),o,Number(a[1]));return c?{date:c,partial:null}:s}if(a=i.match(/^([a-zÀ-ɏ]+)\.?\s+(\d{4})$/i),a){let o=r.get(a[1].toLowerCase());if(o!==void 0)return{date:null,partial:{year:Number(a[2]),month:o}}}return s}function Cu(e){let t=new Map;if(!e)return t;for(let i of e.split(",")){let[s,n]=i.trim().split(":");s&&t.set(s,n||"")}return t}var Nr=class extends E{static formAssociated=!0;static get observedAttributes(){return["disabled","required"]}#t;#e=`dp${++jv}`;#i=!1;#n;#s;#o;#r;#a;#l;#c;#g;#f=!1;#u=!1;#p="en-US";#y=null;#d=null;#m=new Date().getFullYear();#h=new Date().getMonth();#E=null;#v=null;#S=new Map;#b=new Map;#k;#w;#A=0;#N="";#x=!1;constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}setup(){let t=this.querySelector(':scope > input[type="date"]');if(!t)return!1;this.#n=t,this.#p=wt(this.closest("[lang]")?.lang||navigator.language),this.#A=Hv(this.#p),this.#E=dt(t.getAttribute("min")),this.#v=dt(t.getAttribute("max")),this.#S=Cu(this.getAttribute("data-disabled-dates")),this.#b=Cu(this.getAttribute("data-highlight-dates"));let i=t.getAttribute("name");i&&(this.hasAttribute("name")||this.setAttribute("name",i),t.removeAttribute("name")),t.hasAttribute("disabled")&&(t.removeAttribute("disabled"),this.hasAttribute("disabled")||this.setAttribute("disabled",""));let s=`${this.#e}-no-form`,n=t.getAttribute("form");n&&n!==s&&!this.hasAttribute("form")&&this.setAttribute("form",n),t.setAttribute("form",s),this.#k===void 0&&(this.#k=t.defaultValue),this.#w!==void 0&&(t.value=this.#w,this.#w=void 0),this.#y=dt(t.value);let r=new Date;return this.#v&&r>this.#v&&(r=this.#v),this.#E&&r<this.#E&&(r=this.#E),this.#d=this.#y||r,this.#m=this.#d.getFullYear(),this.#h=this.#d.getMonth(),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),t.style.cssText="position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden;",this.listen(t,"click",this.#D),this.listen(t,"focus",this.#F),this.#$(),this.#W(),this.#i=!0,this.#O(),this.#X(),this.#K(!1),this.#j(),this.#u=ts,this.#u&&this.#a.setAttribute("popover","manual"),this.listen(document,"click",this.#Z),this.listen(this,"invalid",this.#V),this.#M(this.matches(":disabled")),!0}teardown(){this.#f=!1,this.removeAttribute("open"),window.removeEventListener("scroll",this.#Q,{capture:!0}),window.removeEventListener("resize",this.#Q),this.#r?.remove(),this.#a?.remove(),this.#S=new Map,this.#b=new Map,this.#i=!1}attributeChangedCallback(t){this.#i&&(t==="disabled"&&this.#M(this.matches(":disabled")),t==="required"&&this.#j())}formDisabledCallback(t){this.#i&&this.#M(t)}#M(t){this.#s.disabled=t,this.#o.disabled=t,t&&this.#z()}#_(t,i){return this.dataset[`label${t}`]||i}#F=()=>{this.#i&&!this.#s.disabled&&this.#s.focus()};#D=t=>{t.preventDefault(),this.#F()};#O(){let t=new Set([...Array.from(this.#n.labels||[]),...Array.from(this.#t.labels||[])]),i=[];for(let a of t)a.id||(a.id=`${this.#e}-label-${i.length}`),i.push(a.id),this.listen(a,"click",this.#F);let s=this.#s,n=i.join(" ")||this.#n.getAttribute("aria-labelledby")||this.getAttribute("aria-labelledby");n?s.setAttribute("aria-labelledby",n):s.setAttribute("aria-label",this.#n.getAttribute("aria-label")||this.getAttribute("aria-label")||this.#_("Input","Date"));let r=this.#n.getAttribute("aria-describedby");r&&s.setAttribute("aria-describedby",r)}#$(){this.#r=document.createElement("div"),this.#r.className="date-trigger",this.#s=document.createElement("input"),this.#s.type="text",this.#s.className="date-input",this.#s.setAttribute("role","combobox"),this.#s.setAttribute("aria-haspopup","dialog"),this.#s.setAttribute("aria-expanded","false"),this.#s.setAttribute("autocomplete","off"),this.#s.setAttribute("placeholder",this.#_("Placeholder","Type a date\u2026")),this.#r.appendChild(this.#s),this.#o=document.createElement("button"),this.#o.type="button",this.#o.className="date-trigger-icon",this.#o.setAttribute("aria-label",this.#_("Toggle","Toggle calendar")),this.#o.setAttribute("tabindex","-1");let t=document.createElement("icon-wc");t.setAttribute("name","calendar"),t.setAttribute("size","sm"),t.setAttribute("aria-hidden","true"),this.#o.appendChild(t),this.#r.appendChild(this.#o),this.appendChild(this.#r),this.listen(this.#o,"click",i=>{i.stopPropagation(),this.#f?this.#z():this.#B(),this.#s.focus()}),this.listen(this.#s,"focus",()=>this.#s.select()),this.listen(this.#s,"input",this.#G),this.listen(this.#s,"keydown",this.#P),this.listen(this.#s,"blur",this.#st)}#W(){let t=`${this.#e}-calendar`;this.#a=document.createElement("div"),this.#a.className="calendar",this.#a.id=t,this.#a.setAttribute("role","dialog"),this.#a.setAttribute("aria-modal","false"),this.#a.setAttribute("aria-label",this.#_("Dialog","Choose date")),this.#a.hidden=!0,this.#s.setAttribute("aria-controls",t);let i=document.createElement("div");i.className="calendar-header";let s=document.createElement("button");s.type="button",s.className="calendar-nav",s.setAttribute("aria-label",this.#_("Prev","Previous month"));let n=document.createElement("icon-wc");n.setAttribute("name","chevron-left"),n.setAttribute("size","sm"),n.setAttribute("aria-hidden","true"),s.appendChild(n);let r=document.createElement("span");r.className="calendar-title",this.#c=document.createElement("span"),this.#c.className="calendar-month",this.#c.id=`${t}-title`,this.#c.setAttribute("aria-live","polite"),this.#c.setAttribute("aria-atomic","true"),this.#g=document.createElement("select"),this.#g.className="calendar-year",this.#g.setAttribute("aria-label",this.#_("Year","Year")),this.#tt(),r.appendChild(this.#c),r.appendChild(this.#g);let a=document.createElement("button");a.type="button",a.className="calendar-nav",a.setAttribute("aria-label",this.#_("Next","Next month"));let o=document.createElement("icon-wc");o.setAttribute("name","chevron-right"),o.setAttribute("size","sm"),o.setAttribute("aria-hidden","true"),a.appendChild(o),i.appendChild(s),i.appendChild(r),i.appendChild(a),this.#a.appendChild(i);let c=document.createElement("table");c.setAttribute("role","grid"),c.setAttribute("aria-labelledby",`${t}-title`);let l=Su(this.#p,"short"),u=Su(this.#p,"long"),d=document.createElement("thead"),h=document.createElement("tr");for(let f=0;f<7;f++){let p=(this.#A+f)%7,m=document.createElement("th");m.setAttribute("abbr",u[p]),m.setAttribute("scope","col"),m.textContent=l[p],h.appendChild(m)}d.appendChild(h),c.appendChild(d),this.#l=document.createElement("tbody"),c.appendChild(this.#l),this.#a.appendChild(c),this.appendChild(this.#a),this.#C(),this.listen(s,"click",()=>this.#I(-1)),this.listen(a,"click",()=>this.#I(1)),this.listen(this.#g,"change",()=>{this.#m=Number(this.#g.value);let f=Ke(this.#m,this.#h),p=Math.min(this.#d?.getDate()??1,f);this.#d=new Date(this.#m,this.#h,p),this.#C()}),this.listen(this.#l,"click",this.#J),this.listen(this.#a,"keydown",this.#U)}#C(){let t;try{t=new Intl.DateTimeFormat(this.#p,{month:"long"}).format(new Date(this.#m,this.#h,1))}catch{t=Lr[this.#h].charAt(0).toUpperCase()+Lr[this.#h].slice(1)}let i;try{i=new Intl.DateTimeFormat(this.#p,{month:"long",year:"numeric"}).format(new Date(this.#m,this.#h,1))}catch{i=`${t} ${this.#m}`}if(this.#c.lastElementChild?.textContent!==i){let l=document.createElement("span");l.setAttribute("aria-hidden","true"),l.textContent=t;let u=document.createElement("span");u.className="visually-hidden",u.textContent=i,this.#c.replaceChildren(l,u)}this.#g.querySelector(`option[value="${this.#m}"]`)||this.#tt(),this.#g.value=String(this.#m),this.#l.replaceChildren();let s=Ke(this.#m,this.#h),r=(new Date(this.#m,this.#h,1).getDay()-this.#A+7)%7,a=new Date,o=document.createElement("tr");for(let l=0;l<r;l++)o.appendChild(document.createElement("td"));for(let l=1;l<=s;l++){let u=new Date(this.#m,this.#h,l),d=it(u),h=document.createElement("td"),f=document.createElement("button");f.type="button",f.setAttribute("data-date",d),f.textContent=String(l),xr(u,a)&&f.setAttribute("aria-current","date");let p=xr(u,this.#y);h.setAttribute("aria-selected",String(p));let m=this.#q(u,d);m.disabled&&(f.setAttribute("aria-disabled","true"),m.reason&&f.setAttribute("data-disabled-reason",m.reason)),this.#b.has(d)&&f.setAttribute("data-highlight",this.#b.get(d)||""),xr(u,this.#d)?(f.setAttribute("tabindex","0"),p||f.setAttribute("data-focused","")):f.setAttribute("tabindex","-1"),h.appendChild(f),o.appendChild(h),(r+l)%7===0&&(this.#l.appendChild(o),o=document.createElement("tr"))}let c=(r+s)%7;if(c>0){for(let l=c;l<7;l++)o.appendChild(document.createElement("td"));this.#l.appendChild(o)}}#T(t){return this.#q(t,it(t)).disabled}#q(t,i){return this.#S.has(i)?{disabled:!0,reason:this.#S.get(i)}:this.#E&&t<this.#E?{disabled:!0,reason:null}:this.#v&&t>this.#v?{disabled:!0,reason:null}:{disabled:!1,reason:null}}#tt(){this.#g.replaceChildren();let t=new Date().getFullYear(),i=this.#E?this.#E.getFullYear():t-100,s=this.#v?this.#v.getFullYear():t+10;i=Math.min(i,this.#m),s=Math.max(s,this.#m);for(let n=i;n<=s;n++){let r=document.createElement("option");r.value=String(n),r.textContent=String(n),this.#g.appendChild(r)}}#I(t){let i=this.#d??new Date(this.#m,this.#h,1),s=new Date(this.#m,this.#h,Math.min(i.getDate(),Ke(this.#m,this.#h)));this.#d=kr(s,t),this.#m=this.#d.getFullYear(),this.#h=this.#d.getMonth(),this.#C();let n=document.activeElement;n?.matches(".calendar-nav:focus-visible")&&this.#a.contains(n)||this.#Y(this.#d)}#L(t,i){if(t&&this.#T(t))return!1;let s=this.value,n=t?it(t):"";return this.#y=t,t&&(this.#d=t),this.#X(),n===s?!1:(this.#K(),this.#j(),t&&i==="api"&&(this.#m=t.getFullYear(),this.#h=t.getMonth()),(this.#f||i==="api")&&this.#C(),this.dispatchEvent(new CustomEvent("date-picker:change",{bubbles:!0,detail:{value:n,date:t?new Date(t):null,source:i}})),!0)}#H(t,i){this.#T(t)||(this.#L(t,i),this.#z(),this.#s.focus())}#Y(t){let i=this.#l.querySelector(`[data-date="${it(t)}"]`);if(i){for(let s of this.#l.querySelectorAll("button[data-date]"))s.setAttribute("tabindex",s===i?"0":"-1"),s!==i&&s.removeAttribute("data-focused");i.closest("td")?.getAttribute("aria-selected")!=="true"&&i.setAttribute("data-focused",""),i.focus()}}#X(){this.#s.value=this.#y?xu(this.#y,this.#p):""}#B(){if(!(this.#f||this.#s.disabled)){if(this.#f=!0,this.setAttribute("open",""),this.#s.setAttribute("aria-expanded","true"),this.#a.hidden=!1,this.#d&&(this.#m=this.#d.getFullYear(),this.#h=this.#d.getMonth()),this.#C(),this.#u){try{this.#a.showPopover()}catch{}this.#R(),window.addEventListener("scroll",this.#Q,{capture:!0,passive:!0}),window.addEventListener("resize",this.#Q,{passive:!0})}this.dispatchEvent(new CustomEvent("date-picker:open",{bubbles:!0}))}}#z(){if(this.#f){if(this.#f=!1,this.removeAttribute("open"),this.#s.setAttribute("aria-expanded","false"),this.#a.hidden=!0,this.#u){try{this.#a.hidePopover()}catch{}window.removeEventListener("scroll",this.#Q,{capture:!0}),window.removeEventListener("resize",this.#Q)}this.dispatchEvent(new CustomEvent("date-picker:close",{bubbles:!0}))}}#R(){if(!this.#u)return;let t=this.#r.getBoundingClientRect(),i=this.#a.getBoundingClientRect(),s=4,n=8,r=window.innerHeight,a=window.innerWidth,o=r-t.bottom-n,c=t.top-n,l;o<i.height&&c>o?(l=t.top-i.height-s,this.#a.dataset.placement="top"):(l=t.bottom+s,delete this.#a.dataset.placement);let u=t.left;u+i.width>a-n&&(u=a-i.width-n),u<n&&(u=n),this.#a.style.setProperty("--calendar-top",`${l}px`),this.#a.style.setProperty("--calendar-left",`${u}px`)}#Q=()=>{this.#f&&this.#R()};#G=()=>{let t=this.#s.value,{date:i,partial:s}=Tr(t,this.#p);if(i)this.#d=i,this.#m=i.getFullYear(),this.#h=i.getMonth(),this.#C();else if(s){this.#m=s.year,this.#h=s.month;let n=Ke(s.year,s.month),r=Math.min(this.#d?.getDate()??1,n);this.#d=new Date(s.year,s.month,r),this.#C()}!this.#f&&t.length>0&&this.#B()};#P=t=>{switch(t.key){case"Enter":{t.preventDefault(),t.stopPropagation();let i=this.#s.value.trim();if(!i){this.#L(null,"keyboard"),this.#z();return}let{date:s}=Tr(i,this.#p);s&&!this.#T(s)&&this.#H(s,"keyboard");return}case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.#f||this.#B(),requestAnimationFrame(()=>{this.#d&&this.#Y(this.#d)});return;case"Escape":t.preventDefault(),t.stopPropagation(),this.#f&&this.#z(),this.#X();return;case"Tab":this.#f&&this.#z();return}};#st=t=>{if(t.relatedTarget instanceof Node&&this.contains(t.relatedTarget))return;let i=this.#s.value.trim();if(!i)this.#L(null,"keyboard");else{let{date:s}=Tr(i,this.#p);s&&!this.#T(s)&&this.#L(s,"keyboard")}this.#X(),this.#f&&this.#z(),this.#V()};#V=()=>{this.#i&&(this.#x||(this.#x=!0,this.#j()),this.#n.dispatchEvent(new Event("blur",{bubbles:!0})))};#Z=t=>{this.#f&&!this.contains(t.target)&&this.#z()};#J=t=>{let s=t.target?.closest("button[data-date]");if(!s||s.getAttribute("aria-disabled")==="true")return;let n=dt(s.getAttribute("data-date"));n&&this.#H(n,"pointer")};#U=t=>{if(t.key==="Tab"){let o=[...this.#a.querySelectorAll('.calendar-header button, .calendar-header select, tbody button[tabindex="0"]')];if(!o.length)return;let c=o.indexOf(document.activeElement),l=c<0?0:(c+(t.shiftKey?-1:1)+o.length)%o.length;t.preventDefault(),o[l].focus();return}let i=t.target instanceof Element&&this.#l.contains(t.target),s=this.#d;if(!s)return;let n,r=(s.getDay()-this.#A+7)%7,a=getComputedStyle(this).direction==="rtl"?-1:1;switch(t.key){case"ArrowRight":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()+a);break;case"ArrowLeft":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()-a);break;case"ArrowDown":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()+7);break;case"ArrowUp":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()-7);break;case"PageDown":n=kr(s,t.shiftKey?12:1);break;case"PageUp":n=kr(s,t.shiftKey?-12:-1);break;case"Home":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()-r);break;case"End":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()+(6-r));break;case"Enter":case" ":if(!i)return;t.preventDefault(),t.stopPropagation(),this.#H(s,"keyboard");return;case"Escape":t.preventDefault(),t.stopPropagation(),this.#z(),this.#s.focus();return;default:return}i&&(t.preventDefault(),t.stopPropagation(),this.#E&&n<this.#E&&(n=this.#E),this.#v&&n>this.#v&&(n=this.#v),this.#d=n,(n.getMonth()!==this.#h||n.getFullYear()!==this.#m)&&(this.#h=n.getMonth(),this.#m=n.getFullYear(),this.#C()),this.#Y(n))};#K(t=!0){let i=this.#y?it(this.#y):"";this.#t.setFormValue(i||null),this.#n.value=i,t&&this.#n.dispatchEvent(new Event("input",{bubbles:!0}))}#et(t,i,s,n=null){let r=this.#n.getAttribute(`data-message-${t.toLowerCase()}`)??this.#_(i,s);return n?r.replaceAll("{date}",xu(n,this.#p)):r}#j(){if(!this.#i)return!1;let t=this.hasAttribute("required")||this.#n.hasAttribute("required");t?this.#s.setAttribute("aria-required","true"):this.#s.removeAttribute("aria-required");let i=this.#y,s={},n="";t&&!i?(s={valueMissing:!0},n=this.#et("valueMissing","Required","Please select a date")):i&&this.#E&&i<this.#E?(s={rangeUnderflow:!0},n=this.#et("rangeUnderflow","RangeUnderflow","Choose a date on or after {date}",this.#E)):i&&this.#v&&i>this.#v&&(s={rangeOverflow:!0},n=this.#et("rangeOverflow","RangeOverflow","Choose a date on or before {date}",this.#v));let r=this.#t.validationMessage;return n?this.#t.setValidity(s,n,this.#s):this.#t.setValidity({}),n&&(i||this.#x)?this.#s.setAttribute("aria-invalid","true"):this.#s.removeAttribute("aria-invalid"),(this.#n.validationMessage===this.#N||!this.#n.validity.customError)&&(this.#n.setCustomValidity(n),this.#N=n),r!==n}#nt(){this.#i&&(this.#C(),this.#j()&&this.#n.dispatchEvent(new Event("input",{bubbles:!0})))}#it(t){let i=t||new Date;this.#y=t,this.#d=i,this.#m=i.getFullYear(),this.#h=i.getMonth(),this.#X(),this.#K(),this.#j(),this.#C()}formResetCallback(){this.#i&&(this.#x=!1,this.#it(dt(this.#k)))}formStateRestoreCallback(t){!this.#i||typeof t!="string"||this.#it(dt(t))}get form(){return this.#t.form}get validity(){return this.#t.validity}get validationMessage(){return this.#t.validationMessage}get willValidate(){return this.#t.willValidate}checkValidity(){return this.#t.checkValidity()}reportValidity(){return this.#t.reportValidity()}get value(){return this.#i?this.#y?it(this.#y):"":this.#w??""}set value(t){let i=t==null?"":String(t).trim(),s=i?dt(i):null;if(!(i&&!s)){if(!this.#i){this.#w=i;return}this.#L(s,"api")}}get min(){return this.#E?it(this.#E):""}set min(t){this.#E=dt(t),this.#n&&(this.#E?this.#n.setAttribute("min",it(this.#E)):this.#n.removeAttribute("min")),this.#nt()}get max(){return this.#v?it(this.#v):""}set max(t){this.#v=dt(t),this.#n&&(this.#v?this.#n.setAttribute("max",it(this.#v)):this.#n.removeAttribute("max")),this.#nt()}};A("date-picker",Nr);re();function ue(e,t,i){t/=100,i/=100;let s=a=>(a+e/30)%12,n=t*Math.min(i,1-i),r=a=>i-n*Math.max(-1,Math.min(s(a)-3,9-s(a),1));return{r:Math.round(r(0)*255),g:Math.round(r(8)*255),b:Math.round(r(4)*255)}}function es(e,t,i,s=!1){e/=255,t/=255,i/=255;let n=Math.max(e,t,i),r=Math.min(e,t,i),a=(n+r)/2,o=0,c=0;if(n!==r){let l=n-r;switch(c=a>.5?l/(2-n-r):l/(n+r),n){case e:o=((t-i)/l+(t<i?6:0))/6;break;case t:o=((i-e)/l+2)/6;break;case i:o=((e-t)/l+4)/6;break}}return s?{h:o*360,s:c*100,l:a*100}:{h:Math.round(o*360),s:Math.round(c*100),l:Math.round(a*100)}}function Vv(e){e=e.replace(/^#/,""),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:t&255}}function Uv(e,t,i){return"#"+[e,t,i].map(s=>Math.max(0,Math.min(255,Math.round(s))).toString(16).padStart(2,"0")).join("")}function Et(e,t=!1){let{r:i,g:s,b:n}=Vv(e);return es(i,s,n,t)}function kt(e,t,i){let{r:s,g:n,b:r}=ue(e,t,i);return Uv(s,n,r)}function H(e,t,i){return Math.max(t,Math.min(i,e))}function Mr(e){return e/=255,e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function _r(e){let t=e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055;return Math.round(H(t,0,1)*255)}function Wv(e,t,i){let s=Mr(e),n=Mr(t),r=Mr(i),a=.4122214708*s+.5363325363*n+.0514459929*r,o=.2119034982*s+.6806995451*n+.1073969566*r,c=.0883024619*s+.2817188376*n+.6299787005*r,l=Math.cbrt(a),u=Math.cbrt(o),d=Math.cbrt(c),h=.2104542553*l+.793617785*u-.0040720468*d,f=1.9779984951*l-2.428592205*u+.4505937099*d,p=.0259040371*l+.7827717662*u-.808675766*d,m=Math.sqrt(f*f+p*p),g=Math.atan2(p,f)*180/Math.PI;return g<0&&(g+=360),m<1e-4&&(g=0),{L:h,C:m,H:g}}function Gv(e,t,i){let s=i*Math.PI/180,n=t*Math.cos(s),r=t*Math.sin(s),a=e+.3963377774*n+.2158037573*r,o=e-.1055613458*n-.0638541728*r,c=e-.0894841775*n-1.291485548*r,l=a**3,u=o**3,d=c**3,h=4.0767416621*l-3.3077115913*u+.2309699292*d,f=-1.2684380046*l+2.6097574011*u-.3413193965*d,p=-.0041960863*l-.7034186147*u+1.707614701*d;return{r:_r(h),g:_r(f),b:_r(p)}}function $r(e,t,i){let s=ue(e,t,i);return Wv(s.r,s.g,s.b)}function Tu(e,t,i,s=!1){let{r:n,g:r,b:a}=Gv(e,t,i);return es(n,r,a,s)}function Kv(e,t,i){return kt(e,t,i)}function Yv(e,t,i){let{r:s,g:n,b:r}=ue(e,t,i);return`rgb(${s} ${n} ${r})`}function Xv(e,t,i){return`hsl(${Math.round(e)}deg ${Math.round(t)}% ${Math.round(i)}%)`}function Zv(e,t,i){let{L:s,C:n,H:r}=$r(e,t,i);return`oklch(${(s*100).toFixed(1)}% ${n.toFixed(3)} ${r.toFixed(1)}deg)`}function Lu(e,t,i,s){switch(e){case"rgb":return Yv(t,i,s);case"hsl":return Xv(t,i,s);case"oklch":return Zv(t,i,s);default:return Kv(t,i,s)}}var de=["hex","rgb","hsl","oklch"],Jv="hex",Qv=/^#[0-9a-fA-F]{6}$/,he=8,tw=0,Ir=class extends E{static formAssociated=!0;#t;#e;#i;#n;#s;#o;#r;#a;#l;#c;#g;#f;#u={};#p=Jv;#y;#d;#m;#h=!1;#E=!1;#v=!1;#S=`cp${++tw}`;#b=0;#k=100;#w=50;#A;static get observedAttributes(){return["disabled"]}constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}setup(){if(this.#e=this.querySelector(':scope > input[type="color"]'),!this.#e)return!1;if(!this.#v){let s=this.getAttribute("format");s&&de.includes(s)&&(this.#p=s),this.#v=!0}if(this.#A===void 0){let s=this.#e.defaultValue;this.#A=Qv.test(s)?s.toLowerCase():this.#e.value||"#000000"}let t=Et(this.#e.value||this.#A,!0);this.#b=t.h,this.#k=t.s,this.#w=t.l;let i=this.#e.getAttribute("name");return i&&(this.hasAttribute("name")||this.setAttribute("name",i),this.#e.removeAttribute("name")),this.#e.hasAttribute("disabled")&&(this.#e.removeAttribute("disabled"),this.hasAttribute("disabled")||this.setAttribute("disabled","")),this.#e.setAttribute("tabindex","-1"),this.#e.setAttribute("aria-hidden","true"),this.#e.style.cssText="position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden;",this.listen(this.#e,"click",this.#x),this.#_(),this.#F(),this.#P(),this.#K(),this.#E=ts,this.#E&&this.#r.setAttribute("popover","manual"),this.listen(document,"click",this.#U),this.listen(this,"keydown",this.#M),this.#N(this.matches(":disabled")),!0}teardown(){this.#h=!1,this.removeAttribute("open"),window.removeEventListener("scroll",this.#J,{capture:!0}),window.removeEventListener("resize",this.#J),this.#i?.remove(),this.#r?.remove()}attributeChangedCallback(t){t==="disabled"&&this.#i&&this.#N(this.matches(":disabled"))}formDisabledCallback(t){this.#i&&this.#N(t)}#N(t){this.#i.disabled=t,t&&this.#V()}#x=t=>{t.preventDefault(),this.#i.disabled||this.#i.focus()};#M=t=>{t.key!=="Escape"||t.defaultPrevented||!this.#h||(t.preventDefault(),t.stopPropagation(),this.#V())};#_(){this.#i=document.createElement("button"),this.#i.type="button",this.#i.className="color-trigger",this.#i.setAttribute("aria-haspopup","dialog"),this.#i.setAttribute("aria-expanded","false"),this.#n=document.createElement("span"),this.#n.className="color-swatch",this.#s=document.createElement("span"),this.#s.className="color-hex",this.#s.id=`${this.#S}-value`,this.#i.appendChild(this.#n),this.#i.appendChild(this.#s);let t=[];for(let i of Array.from(this.#e.labels||[]))i.id||(i.id=`${this.#S}-label-${t.length}`),t.push(i.id);t.length===0&&(this.#o=document.createElement("span"),this.#o.className="visually-hidden",this.#o.id=`${this.#S}-name`,this.#o.textContent=this.#e.getAttribute("aria-label")||this.getAttribute("aria-label")||"Color",this.#i.prepend(this.#o),t.push(this.#o.id)),this.#i.setAttribute("aria-labelledby",[...t,this.#s.id].join(" ")),this.appendChild(this.#i),this.listen(this.#i,"click",()=>{this.#h?this.#V():this.#st()})}#F(){this.#y=void 0,this.#d=void 0,this.#r=document.createElement("div"),this.#r.className="color-panel",this.#r.setAttribute("role","dialog"),this.#r.setAttribute("aria-label","Color picker"),this.#a=document.createElement("div"),this.#a.className="color-area",this.#a.setAttribute("role","slider"),this.#a.setAttribute("aria-label","Saturation and lightness"),this.#a.setAttribute("aria-valuemin","0"),this.#a.setAttribute("aria-valuemax","100"),this.#a.setAttribute("tabindex","0"),this.#l=document.createElement("div"),this.#l.className="color-area-thumb",this.#a.appendChild(this.#l),this.#r.appendChild(this.#a);let t=document.createElement("div");t.className="color-hue-wrap",this.#c=document.createElement("div"),this.#c.className="color-hue",this.#c.setAttribute("role","slider"),this.#c.setAttribute("aria-label","Hue"),this.#c.setAttribute("aria-valuemin","0"),this.#c.setAttribute("aria-valuemax","360"),this.#c.setAttribute("tabindex","0"),this.#g=document.createElement("div"),this.#g.className="color-hue-thumb",this.#c.appendChild(this.#g),t.appendChild(this.#c),this.#r.appendChild(t);let i=document.createElement("div");i.className="color-format-row";let s=document.createElement("label");s.className="color-format-label";let n=document.createElement("span");n.textContent="Format",this.#f=document.createElement("select"),this.#f.className="color-format-select";for(let o of de){let c=document.createElement("option");c.value=o,c.textContent=o.toUpperCase(),this.#f.appendChild(c)}this.#f.value=this.#p,s.appendChild(n),s.appendChild(this.#f),i.appendChild(s),this.#r.appendChild(i),this.listen(this.#f,"change",this.#$),this.#u.hex=this.#D("hex",[{label:"Hex",channel:"hex",kind:"text",maxLength:7}]),this.#u.rgb=this.#D("rgb",[{label:"R",channel:"r",kind:"number",min:0,max:255,step:1},{label:"G",channel:"g",kind:"number",min:0,max:255,step:1},{label:"B",channel:"b",kind:"number",min:0,max:255,step:1}]),this.#u.hsl=this.#D("hsl",[{label:"H",channel:"h",kind:"number",min:0,max:360,step:1},{label:"S",channel:"s",kind:"number",min:0,max:100,step:1},{label:"L",channel:"l",kind:"number",min:0,max:100,step:1}]),this.#u.oklch=this.#D("oklch",[{label:"L%",channel:"oL",kind:"number",min:0,max:100,step:.1},{label:"C",channel:"oC",kind:"number",min:0,max:.4,step:.001},{label:"H\xB0",channel:"oH",kind:"number",min:0,max:360,step:.1}]);for(let o of de)this.#r.appendChild(this.#u[o].wrapper);this.#O();let r=this.querySelector(":scope > datalist");if(r){this.#y=document.createElement("div"),this.#y.className="color-swatches",this.#y.setAttribute("role","group"),this.#y.setAttribute("aria-label","Preset colors");for(let o of r.querySelectorAll("option[value]")){let c=document.createElement("button");c.type="button",c.setAttribute("aria-pressed","false"),c.style.background=o.value,c.setAttribute("aria-label",o.textContent||o.value),c.setAttribute("data-color",o.value),this.#y.appendChild(c)}this.#r.appendChild(this.#y),this.listen(this.#y,"click",this.#z)}let a=document.createElement("div");a.className="color-actions","EyeDropper"in window&&(this.#d=document.createElement("button"),this.#d.type="button",this.#d.className="color-eyedropper",this.#d.setAttribute("aria-label","Pick color from screen"),this.#d.textContent="\u{1F4A7}",a.appendChild(this.#d),this.listen(this.#d,"click",this.#R)),this.#m=document.createElement("button"),this.#m.type="button",this.#m.className="color-copy",this.#m.setAttribute("aria-label","Copy hex value"),this.#m.textContent="Copy",a.appendChild(this.#m),this.listen(this.#m,"click",this.#Q),this.#r.appendChild(a),this.appendChild(this.#r),this.listen(this.#a,"pointerdown",this.#W),this.listen(this.#a,"keydown",this.#T),this.listen(this.#c,"pointerdown",this.#q),this.listen(this.#c,"keydown",this.#I);for(let o of de){let c=o==="hex"?this.#H:o==="rgb"?this.#Y:o==="hsl"?this.#X:this.#B;for(let{el:l}of this.#u[o].inputs)this.listen(l,"change",c)}}#D(t,i){let s=document.createElement("div");s.className=`color-inputs color-inputs-${t}`,s.setAttribute("data-format",t);let n=[];for(let r of i){let a=document.createElement("label");a.className="color-input-label";let o=document.createElement("span");o.textContent=r.label;let c=document.createElement("input");c.type=r.kind,c.setAttribute("data-channel",r.channel),c.setAttribute("autocomplete","off"),c.setAttribute("spellcheck","false"),r.kind==="text"&&r.maxLength&&c.setAttribute("maxlength",String(r.maxLength)),r.kind==="number"&&(c.min=String(r.min),c.max=String(r.max),r.step!=null&&(c.step=String(r.step))),a.appendChild(o),a.appendChild(c),s.appendChild(a),n.push({el:c,channel:r.channel})}return{wrapper:s,inputs:n}}#O(){for(let t of de)this.#u[t].wrapper.hidden=t!==this.#p;this.#m&&this.#m.setAttribute("aria-label",`Copy ${this.#p.toUpperCase()} value`)}#$=()=>{let t=this.#f.value;de.includes(t)&&(this.#p=t,this.#O(),this.#P())};#W=t=>{t.preventDefault(),this.#a.setPointerCapture(t.pointerId),this.#C(t);let i=n=>this.#C(n),s=n=>{this.#a.releasePointerCapture(n.pointerId),this.#a.removeEventListener("pointermove",i),this.#a.removeEventListener("pointerup",s)};this.#a.addEventListener("pointermove",i),this.#a.addEventListener("pointerup",s)};#C(t){let i=this.#a.getBoundingClientRect(),s=H((t.clientX-i.left)/i.width,0,1),n=H((t.clientY-i.top)/i.height,0,1);this.#k=Math.round(s*100),this.#w=Math.round((1-n)*100),this.#G("pointer")}#T=t=>{let i=t.shiftKey?10:1;switch(this.#k=Math.round(this.#k),this.#w=Math.round(this.#w),t.key){case"ArrowRight":t.preventDefault(),this.#k=H(this.#k+i,0,100);break;case"ArrowLeft":t.preventDefault(),this.#k=H(this.#k-i,0,100);break;case"ArrowUp":t.preventDefault(),this.#w=H(this.#w+i,0,100);break;case"ArrowDown":t.preventDefault(),this.#w=H(this.#w-i,0,100);break;case"Home":t.preventDefault(),this.#k=0;break;case"End":t.preventDefault(),this.#k=100;break;case"PageUp":t.preventDefault(),this.#w=H(this.#w+10,0,100);break;case"PageDown":t.preventDefault(),this.#w=H(this.#w-10,0,100);break;default:return}this.#G("keyboard")};#q=t=>{t.preventDefault(),this.#c.setPointerCapture(t.pointerId),this.#tt(t);let i=n=>this.#tt(n),s=n=>{this.#c.releasePointerCapture(n.pointerId),this.#c.removeEventListener("pointermove",i),this.#c.removeEventListener("pointerup",s)};this.#c.addEventListener("pointermove",i),this.#c.addEventListener("pointerup",s)};#tt(t){let i=this.#c.getBoundingClientRect(),s=H((t.clientX-i.left)/i.width,0,1);this.#b=Math.round(s*360),this.#G("pointer")}#I=t=>{let i=t.shiftKey?10:1;switch(this.#b=Math.round(this.#b),t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.#b=(this.#b+i)%361;break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.#b=(this.#b-i+361)%361;break;case"PageUp":t.preventDefault(),this.#b=H(this.#b+10,0,360);break;case"PageDown":t.preventDefault(),this.#b=H(this.#b-10,0,360);break;case"Home":t.preventDefault(),this.#b=0;break;case"End":t.preventDefault(),this.#b=360;break;default:return}this.#G("keyboard")};#L(t,i){return this.#u[t].inputs.find(s=>s.channel===i)?.el}#H=()=>{let t=this.#L("hex","hex");if(!t)return;let i=t.value.trim();if(i.startsWith("#")||(i="#"+i),/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(i)){let s=Et(i,!0);this.#b=s.h,this.#k=s.s,this.#w=s.l,this.#G()}};#Y=()=>{let t=H(Number(this.#L("rgb","r").value)||0,0,255),i=H(Number(this.#L("rgb","g").value)||0,0,255),s=H(Number(this.#L("rgb","b").value)||0,0,255),n=es(t,i,s,!0);this.#b=n.h,this.#k=n.s,this.#w=n.l,this.#G()};#X=()=>{let t=H(Number(this.#L("hsl","h").value)||0,0,360)%361,i=H(Number(this.#L("hsl","s").value)||0,0,100),s=H(Number(this.#L("hsl","l").value)||0,0,100);this.#b=t,this.#k=i,this.#w=s,this.#G()};#B=()=>{let t=H(Number(this.#L("oklch","oL").value)||0,0,100)/100,i=H(Number(this.#L("oklch","oC").value)||0,0,.4),s=H(Number(this.#L("oklch","oH").value)||0,0,360),n=Tu(t,i,s,!0);this.#b=n.h,this.#k=n.s,this.#w=n.l,this.#G()};#z=t=>{let i=t.target.closest("button[data-color]");if(!i)return;let s=i.getAttribute("data-color"),n=Et(s,!0);this.#b=n.h,this.#k=n.s,this.#w=n.l,this.#G()};#R=async()=>{try{let i=await new window.EyeDropper().open(),s=Et(i.sRGBHex,!0);this.#b=s.h,this.#k=s.s,this.#w=s.l,this.#G()}catch{}};#Q=()=>{let t=Lu(this.#p,this.#b,this.#k,this.#w);gt(t,{button:this.#m,announceMessage:"Color copied"})};#G(t="internal"){this.#P(),this.#K();let i=kt(this.#b,this.#k,this.#w),s=ue(this.#b,this.#k,this.#w);this.dispatchEvent(new CustomEvent("color-picker:change",{bubbles:!0,detail:{hex:i,rgb:{r:s.r,g:s.g,b:s.b},hsl:{h:Math.round(this.#b),s:Math.round(this.#k),l:Math.round(this.#w)},source:t}}))}#P(){let t=kt(this.#b,this.#k,this.#w),i=ue(this.#b,this.#k,this.#w),s=kt(this.#b,100,50);this.#n.style.background=t,this.#s.textContent=t,this.#a.style.setProperty("--area-hue",s),this.#l.style.left=`${this.#k}%`,this.#l.style.top=`${100-this.#w}%`,this.#l.style.background=t;let n=Math.round(this.#b),r=Math.round(this.#k),a=Math.round(this.#w);this.#a.setAttribute("aria-valuenow",String(r)),this.#a.setAttribute("aria-valuetext",(this.getAttribute("data-label-area-value")||"Saturation {s}%, lightness {l}%").replaceAll("{s}",String(r)).replaceAll("{l}",String(a))),this.#g.style.left=`${this.#b/360*100}%`,this.#c.setAttribute("aria-valuenow",String(n)),this.#c.setAttribute("aria-valuetext",`Hue ${n}\xB0`);let o=(l,u,d)=>{let h=this.#L(l,u);h&&(h.value=String(d))};o("hex","hex",t),o("rgb","r",i.r),o("rgb","g",i.g),o("rgb","b",i.b),o("hsl","h",n),o("hsl","s",r),o("hsl","l",a);let c=$r(this.#b,this.#k,this.#w);if(o("oklch","oL",(c.L*100).toFixed(1)),o("oklch","oC",c.C.toFixed(3)),o("oklch","oH",c.H.toFixed(1)),this.#y)for(let l of this.#y.querySelectorAll("button[data-color]")){let u=(l.getAttribute("data-color")||"").toLowerCase()===t.toLowerCase();l.setAttribute("aria-pressed",String(u))}}#st(){if(!(this.#h||this.#i.disabled)){if(this.#h=!0,this.setAttribute("open",""),this.#i.setAttribute("aria-expanded","true"),this.#E){try{this.#r.showPopover()}catch{}this.#Z(),window.addEventListener("scroll",this.#J,{capture:!0,passive:!0}),window.addEventListener("resize",this.#J,{passive:!0})}requestAnimationFrame(()=>this.#a.focus()),this.dispatchEvent(new CustomEvent("color-picker:open",{bubbles:!0}))}}#V(){if(!this.#h)return;let t=this.#r.contains(document.activeElement);if(this.#h=!1,this.removeAttribute("open"),this.#i.setAttribute("aria-expanded","false"),this.#E){try{this.#r.hidePopover()}catch{}window.removeEventListener("scroll",this.#J,{capture:!0}),window.removeEventListener("resize",this.#J)}t&&this.#i.isConnected&&!this.#i.disabled&&this.#i.focus(),this.dispatchEvent(new CustomEvent("color-picker:close",{bubbles:!0}))}#Z(){if(!this.#E)return;let t=this.#i.getBoundingClientRect(),i=this.#r.offsetWidth,s=this.#r.offsetHeight,n=document.documentElement.clientWidth,r=document.documentElement.clientHeight,o=getComputedStyle(this).direction==="rtl"?t.right-i:t.left;o=Math.min(o,n-i-he),o=Math.max(o,he);let c=t.bottom+4;c+s>r-he&&t.top-s-4>=he&&(c=t.top-s-4),c=Math.max(he,Math.min(c,r-s-he)),this.#r.style.setProperty("--panel-top",`${Math.round(c)}px`),this.#r.style.setProperty("--panel-left",`${Math.round(o)}px`)}#J=()=>{this.#h&&this.#Z()};#U=t=>{this.#h&&!this.contains(t.target)&&this.#V()};#K(){let t=kt(this.#b,this.#k,this.#w);this.#t.setFormValue(t),this.#e.value=t,this.#e.dispatchEvent(new Event("input",{bubbles:!0}))}formResetCallback(){if(!this.#i)return;let t=Et(this.#A,!0);this.#b=t.h,this.#k=t.s,this.#w=t.l,this.#P(),this.#K()}formStateRestoreCallback(t){if(!t||!this.#i)return;let i=Et(t,!0);this.#b=i.h,this.#k=i.s,this.#w=i.l,this.#P(),this.#K()}get value(){return kt(this.#b,this.#k,this.#w)}set value(t){if(!/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t))return;let i=kt(this.#b,this.#k,this.#w).toLowerCase(),s=t.toLowerCase();if(i===s||i===s.toLowerCase())return;let n=Et(t,!0);this.#b=n.h,this.#k=n.s,this.#w=n.l,this.#G("api")}};A("color-picker",Ir);var ew='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><line x1="5" y1="12" x2="19" y2="12"/></svg>',iw='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>';function sw(e){if(!e)return[];let t=e.trim();if(t.startsWith("["))try{return JSON.parse(t).map(s=>({value:String(s.value),label:String(s.label??s.value)}))}catch{return[]}return t.split(",").map(i=>{let s=i.trim();return{value:s,label:s}})}function nw(e){return e?e.split(",").map(t=>t.trim()).filter(Boolean):[]}function rw(e){let t=Math.max(0,Math.round(e)),i=Math.floor(t/3600),s=Math.floor(t%3600/60),n=t%60,r=a=>String(a).padStart(2,"0");return i>0?`${i}:${r(s)}:${r(n)}`:`${s}:${r(n)}`}function aw(e,t){let i=Number(e)||0,s=["B","KB","MB","GB","TB","PB"],n=0,r=Math.abs(i);for(;r>=1e3&&n<s.length-1;)r/=1e3,n+=1;let a=new Intl.NumberFormat(t,{minimumFractionDigits:n===0?0:1,maximumFractionDigits:n===0?0:2});return`${i<0?"-":""}${a.format(r)} ${s[n]}`}function ow(){return document.documentElement.lang||void 0}function Br(e){let t=String(e),i=t.indexOf(".");return i<0?0:t.length-i-1}var Du=!1,cw=0,Rr=class extends E{static formAssociated=!0;static observedAttributes=["value","disabled","readonly","aria-label","aria-labelledby","data-label-decrease","data-label-increase"];#t;#e;#i=-1/0;#n=1/0;#s=1;#o=[];#r=[];#a;#l;#c="";#g=!1;#f=!1;#u;#p;#y;#d=!1;#m=!1;#h;#E;#v;#S;#b;#k;#w=0;#A=0;#N=!1;#x=!1;constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}setup(){this.#F(),this.#D(),this.#W();let t=this.getAttribute("value");this.#d||(this.#y=t,this.#d=!0),this.#R(t??this.#$(),"init"),this.#M(),requestAnimationFrame(()=>{this.isConnected&&this.#M()}),this.listen(this.#h,"focus",()=>this.#M()),this.listen(this,"click",i=>{i.target===this&&!this.#tt()&&this.#h.focus()})}teardown(){this.#T(),this.#x=!1}attributeChangedCallback(t,i,s){!this.isConnected||!this.#h||(t==="value"?this.#R(s??this.#$(),"attr"):t==="disabled"||t==="readonly"?this.#L():t==="aria-label"||t==="aria-labelledby"?this.#M():this.#_())}#M(){let t=[],i=[];try{i=[...this.#t.labels||[]]}catch{}for(let a of i)a.id||(a.id=`stepper-wc-label-${++cw}`),t.push(a.id);let s=(this.getAttribute("aria-labelledby")||"").trim();s&&t.push(...s.split(/\s+/));let n=[...new Set(t)];n.length?this.#h.setAttribute("aria-labelledby",n.join(" ")):this.#h.removeAttribute("aria-labelledby");let r=this.getAttribute("aria-label");r?this.#h.setAttribute("aria-label",r):this.#h.removeAttribute("aria-label")}#_(){this.#S.setAttribute("aria-label",this.getAttribute("data-label-decrease")||"Decrease"),this.#b.setAttribute("aria-label",this.getAttribute("data-label-increase")||"Increase")}#F(){if(this.hasAttribute("data-options"))this.#e="enum";else if(this.hasAttribute("data-values"))this.#e="token";else if(this.hasAttribute("data-format")||this.hasAttribute("data-suffix"))this.#e="formatted";else{if(this.#e="numeric",Du)return;Du=!0,console.info('[stepper-wc] No mode attribute set. Plain numeric stepping is better served by `<input type="number" data-stepper>`. See /docs/interaction/numeric-inputs/')}}#D(){this.#i=this.hasAttribute("data-min")?Number(this.getAttribute("data-min")):-1/0,this.#n=this.hasAttribute("data-max")?Number(this.getAttribute("data-max")):1/0,this.#s=Number(this.getAttribute("data-step"))||1,this.#o=nw(this.getAttribute("data-values")),this.#r=sw(this.getAttribute("data-options")),this.#a=this.getAttribute("data-format")||(this.hasAttribute("data-suffix")?"number":null),this.#l=this.getAttribute("data-currency")||"USD",this.#c=this.getAttribute("data-suffix")||"",this.#g=this.hasAttribute("data-show-label"),this.#f=this.hasAttribute("data-accelerate"),this.#u=ow(),this.#k=this.#O()}#O(){if(!this.#a)return null;let t=Br(this.#s);return this.#a==="number"?new Intl.NumberFormat(this.#u,{minimumFractionDigits:t,maximumFractionDigits:t}):this.#a==="currency"?new Intl.NumberFormat(this.#u,{style:"currency",currency:this.#l}):this.#a==="percent"?new Intl.NumberFormat(this.#u,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}):null}#$(){return this.#e==="enum"?this.#r[0]?.value??"":this.#e==="token"?this.#o[0]??"":"0"}#W(){this.replaceChildren(),this.#S=document.createElement("button"),this.#S.type="button",this.#S.className="stepper-dec",this.#S.setAttribute("tabindex","-1"),this.#S.innerHTML=ew,this.#b=document.createElement("button"),this.#b.type="button",this.#b.className="stepper-inc",this.#b.setAttribute("tabindex","-1"),this.#b.innerHTML=iw,this.#h=document.createElement("span"),this.#h.className="stepper-value",this.#h.setAttribute("role","spinbutton"),this.#h.setAttribute("tabindex","0"),this.#E=document.createElement("span"),this.#E.className="stepper-value-display",this.#h.appendChild(this.#E),this.#v=new Set;for(let t of this.#st())this.#V(t);this.appendChild(this.#S),this.appendChild(this.#h),this.appendChild(this.#b),this.#C(this.#S,-1),this.#C(this.#b,1),this.listen(this.#h,"keydown",this.#q),this.#_(),this.#L()}#C(t,i){if(this.listen(t,"click",n=>{if(this.#x){this.#x=!1,n.preventDefault();return}this.#H(i,1)}),!this.#f)return;this.listen(t,"pointerdown",n=>{let r=n;r.pointerType==="mouse"&&r.button!==0||this.#I()||(this.#N=!1,this.#w=window.setTimeout(()=>{this.#N=!0,this.#A=window.setInterval(()=>this.#H(i,1),100),this.#w=window.setTimeout(()=>{window.clearInterval(this.#A),this.#A=window.setInterval(()=>this.#H(i,5),50)},1e3)},500))});let s=()=>{this.#T(),this.#N&&(this.#x=!0)};this.listen(t,"pointerup",s),this.listen(t,"pointerleave",s),this.listen(t,"pointercancel",s)}#T(){window.clearTimeout(this.#w),window.clearInterval(this.#A),this.#w=0,this.#A=0}#q=t=>{if(this.#I())return;let i=getComputedStyle(this).direction==="rtl";switch(i&&t.key==="ArrowLeft"?"ArrowRight":i&&t.key==="ArrowRight"?"ArrowLeft":t.key){case"ArrowUp":case"ArrowRight":t.preventDefault(),this.#H(1,1);break;case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.#H(-1,1);break;case"PageUp":t.preventDefault(),this.#H(1,10);break;case"PageDown":t.preventDefault(),this.#H(-1,10);break;case"Home":t.preventDefault(),this.#Y("min");break;case"End":t.preventDefault(),this.#Y("max");break;default:}};#tt(){return this.hasAttribute("disabled")||this.#m}#I(){return this.#tt()||this.hasAttribute("readonly")}#L(){let t=this.#tt();this.#h.setAttribute("aria-disabled",String(t)),this.hasAttribute("readonly")?this.#h.setAttribute("aria-readonly","true"):this.#h.removeAttribute("aria-readonly"),t?(this.#h.removeAttribute("tabindex"),this.#T()):this.#h.setAttribute("tabindex","0"),this.#p!==void 0?this.#J():(this.#S.disabled=this.#I(),this.#b.disabled=this.#I())}#H(t,i){if(this.#I())return;let s=this.#X(t,i);s===null||s===this.#p||this.#R(s,"step")}#Y(t){if(this.#e==="enum"){let s=t==="min"?0:this.#r.length-1;this.#R(this.#r[s]?.value,"step");return}if(this.#e==="token"){let s=t==="min"?0:this.#o.length-1;this.#R(this.#o[s],"step");return}let i=t==="min"?this.#i===-1/0?this.#p:this.#i:this.#n===1/0?this.#p:this.#n;this.#R(String(i),"step")}#X(t,i){if(this.#e==="enum"){let c=this.#r.findIndex(d=>d.value===this.#p),l=c===-1?0:c,u=Math.min(this.#r.length-1,Math.max(0,l+t*i));return this.#r[u]?.value}if(this.#e==="token"){let l=this.#B(this.#p);l===-1&&(l=this.#z(this.#p));let u=Math.min(this.#o.length-1,Math.max(0,l+t*i));return this.#o[u]}let s=Number(this.#p)||0,n=Br(this.#s),r=s+t*this.#s*i,a=Number(r.toFixed(n)),o=Math.min(this.#n,Math.max(this.#i,a));return String(o)}#B(t){if(t==null)return-1;let i=this.#o.indexOf(String(t));if(i!==-1)return i;let s=Number(t);if(Number.isFinite(s)){let n=this.#o.findIndex(r=>Number(r)===s);if(n!==-1)return n}return-1}#z(t){let i=Number(t);if(!Number.isFinite(i))return 0;let s=0,n=1/0;return this.#o.forEach((r,a)=>{let o=Number(r);if(!Number.isFinite(o))return;let c=Math.abs(o-i);c<n&&(n=c,s=a)}),s}#R(t,i){let s=this.#Q(t),n=s!==this.#p;this.#p=s,this.getAttribute("value")!==String(s)&&this.setAttribute("value",String(s)),this.#G(),this.#Z(),this.#J(),this.#et(),this.#j(),n&&i!=="init"&&(this.dispatchEvent(new Event("input",{bubbles:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}#Q(t){if(t==null)return this.#$();if(this.#e==="enum"){let n=String(t);return this.#r.find(a=>a.value===n)?n:this.#r[0]?.value??""}if(this.#e==="token")return String(t);let i=Number(t);if(!Number.isFinite(i))return String(this.#i===-1/0?0:this.#i);let s=Br(this.#s);return String(Number(Math.min(this.#n,Math.max(this.#i,i)).toFixed(s)))}#G(){let t=this.#P();this.#E.textContent=t,this.#V(t)}#P(t=this.#p){if(this.#e==="enum")return this.#r.find(s=>s.value===t)?.label??t??"";if(this.#e==="token"){let i=this.#g?String(t).replace(/^--/,""):String(t);return this.#c?`${i}${this.#c}`:i}if(this.#e==="formatted"){let i=Number(t)||0;if(this.#a==="duration")return rw(i);if(this.#a==="bytes")return aw(i,this.#u);if(this.#k){let s=this.#a==="percent"?i/100:i,n=this.#k.format(s);return this.#c&&this.#a==="number"?`${n}${this.#c}`:n}return this.#c?`${i}${this.#c}`:String(i)}return String(t??"")}#st(){if(this.#e==="enum")return this.#r.map(s=>this.#P(s.value));if(this.#e==="token")return this.#o.map(s=>this.#P(s));let t=new Set,i=s=>{Number.isFinite(s)&&t.add(s)};if(this.#i!==-1/0&&i(this.#i),this.#n!==1/0&&i(this.#n),i(Number(this.getAttribute("value"))||0),this.#n===1/0){let s=[10,100,1e3,1e4];for(let n of s)i(n);if(this.#a==="bytes")for(let n of[999,999e3,999e6,999e9])i(n)}return[...t].map(s=>this.#P(String(s)))}#V(t){let i=String(t??"");if(!i||this.#v.has(i))return;this.#v.add(i);let s=document.createElement("span");s.className="stepper-value-reserve",s.setAttribute("aria-hidden","true"),s.textContent=i,this.#h.appendChild(s)}recomputeWidth(){if(this.#h){this.#h.querySelectorAll(".stepper-value-reserve").forEach(t=>t.remove()),this.#v=new Set;for(let t of this.#st())this.#V(t)}}#Z(){if(this.#e==="enum"){let i=this.#r.findIndex(s=>s.value===this.#p);this.#h.setAttribute("aria-valuemin","1"),this.#h.setAttribute("aria-valuemax",String(this.#r.length)),this.#h.setAttribute("aria-valuenow",String((i===-1?0:i)+1)),this.#h.setAttribute("aria-valuetext",this.#P());return}if(this.#e==="token"){let i=this.#B(this.#p);this.#h.setAttribute("aria-valuemin","1"),this.#h.setAttribute("aria-valuemax",String(this.#o.length)),this.#h.setAttribute("aria-valuenow",String((i===-1?0:i)+1)),this.#h.setAttribute("aria-valuetext",this.#P());return}let t=Number(this.#p)||0;this.#i!==-1/0?this.#h.setAttribute("aria-valuemin",String(this.#i)):this.#h.removeAttribute("aria-valuemin"),this.#n!==1/0?this.#h.setAttribute("aria-valuemax",String(this.#n)):this.#h.removeAttribute("aria-valuemax"),this.#h.setAttribute("aria-valuenow",String(t)),this.#h.setAttribute("aria-valuetext",this.#P())}#J(){let t=this.#U(),i=this.#K(),s=this.#I();this.#S.disabled=t||s,this.#b.disabled=i||s}#U(){return this.#e==="enum"?this.#p===this.#r[0]?.value:this.#e==="token"?this.#B(this.#p)===0:this.#i!==-1/0&&Number(this.#p)<=this.#i}#K(){return this.#e==="enum"?this.#p===this.#r[this.#r.length-1]?.value:this.#e==="token"?this.#B(this.#p)===this.#o.length-1:this.#n!==1/0&&Number(this.#p)>=this.#n}#et(){this.#t.setFormValue(String(this.#p??""))}#j(){this.setState("at-min",this.#U()),this.setState("at-max",this.#K())}formResetCallback(){this.#R(this.#y??this.#$(),"reset")}formDisabledCallback(t){this.#m=t,this.#h&&this.#L()}formStateRestoreCallback(t){t!=null&&this.#R(t,"restore")}get displayText(){return this.#E?.textContent??""}get value(){return this.#p==null?"":String(this.#p)}set value(t){String(t)!==String(this.#p)&&this.#R(t,"api")}get form(){return this.#t.form}get name(){return this.getAttribute("name")}get type(){return this.localName}get validity(){return this.#t.validity}get validationMessage(){return this.#t.validationMessage}checkValidity(){return this.#t.checkValidity()}reportValidity(){return this.#t.reportValidity()}};A("stepper-wc",Rr);var lw={live:"Live",recording:"Recording",streaming:"Streaming",error:"Error",online:"Online",running:"Running",away:"Away",paused:"Paused",busy:"Busy",offline:"Offline",stopped:"Stopped"},Fr=class extends E{static get observedAttributes(){return["data-variant","data-live","aria-label"]}#t=null;#e=null;#i=!1;setup(){let t=this.querySelector(":scope > .status-dot"),i=this.querySelector(":scope > .status-label"),s=this.querySelector(":scope > .status-default-label");t||(t=document.createElement("span"),t.className="status-dot",t.setAttribute("aria-hidden","true")),i||(i=document.createElement("span"),i.className="status-label"),s||(s=document.createElement("span"),s.className="status-default-label");for(let n of[...this.childNodes])n===t||n===i||n===s||i.appendChild(n);this.append(t,i,s),this.#t=i,this.#e=s,this.#n(),this.#s()}attributeChangedCallback(t,i,s){i!==s&&(!this.isConnected||!this.hasAttribute("data-upgraded")||(t==="data-variant"?(this.#s(),this.dispatchEvent(new CustomEvent("status-wc:change",{bubbles:!0,detail:{variant:s,previousVariant:i}}))):t==="data-live"?this.#n():t==="aria-label"&&this.#s()))}#n(){this.getAttribute("data-live")==="off"?this.#i&&(this.removeAttribute("role"),this.removeAttribute("aria-live"),this.#i=!1):!this.hasAttribute("role")&&!this.hasAttribute("aria-live")&&(this.setAttribute("role","status"),this.setAttribute("aria-live","polite"),this.#i=!0)}#s(){let t=this.#e;if(!t)return;let i=!!this.#t?.textContent?.trim(),s="";if(!i){let n=this.getAttribute("data-variant")||"";s=this.getAttribute("aria-label")||n&&this.getAttribute(`data-label-${n}`)||lw[n]||n}t.textContent!==s&&(t.textContent=s)}get variant(){return this.getAttribute("data-variant")}set variant(t){t?this.setAttribute("data-variant",t):this.removeAttribute("data-variant")}};A("status-wc",Fr);He();Ve();var Pr=0,uw='a[href], button, input, select, textarea, summary, iframe, [tabindex], [contenteditable]:not([contenteditable="false"])',dw="a[href], button, input, select, textarea, summary",hw=new Set(["button","link","checkbox","radio","switch","tab","option","treeitem","gridcell","menuitem","menuitemcheckbox","menuitemradio","combobox","textbox","searchbox","slider","spinbutton"]);function is(e){return e.hasAttribute("data-disabled")||e.getAttribute("aria-disabled")==="true"||!!e.disabled}function fw(e){return e.pointerType===""||e.pointerId===-1||e.button===-1||e.clientX===0&&e.clientY===0&&e.buttons===0}var Or=class extends E{#t;#e;#i;#n=[];#s=-1;#o=!1;#r=[];#a=!1;#l=[];#c=null;setup(){let t=this.querySelector(":scope > [data-trigger]"),i=this.querySelector('menu, ul[role="menu"]');if(!t||!i)return!1;this.#t=t,this.#e=i;let s=this.querySelector(":scope > pop-over[data-context-menu-host]");s?this.#i=s:(this.#i=document.createElement("pop-over"),this.#i.setAttribute("data-context-menu-host",""),this.#i.id=`ctx-menu-${++Pr}`,this.#i.dataset.mode="auto",this.#i.appendChild(this.#e),this.appendChild(this.#i)),this.#e.parentElement!==this.#i&&this.#i.appendChild(this.#e),this.#e.setAttribute("role","menu"),this.#e.id||(this.#e.id=`ctx-menu-list-${++Pr}`),this.#t.matches(uw)||this.#g("tabindex","0"),this.#a=this.#t.matches(dw)||this.#t.hasAttribute("tabindex")&&hw.has((this.#t.getAttribute("role")||"").trim().toLowerCase()),this.#a?(this.#g("aria-haspopup","menu"),this.#g("aria-expanded","false"),this.#g("aria-controls",this.#e.id)):!this.#t.hasAttribute("aria-description")&&!this.#t.hasAttribute("aria-describedby")&&this.#g("aria-description",this.getAttribute("data-label-available")||"Context menu available"),this.#e.querySelectorAll(':scope > li:empty:not([data-group]), :scope > [role="separator"], :scope > hr').forEach(r=>{r.setAttribute("role","separator")}),this.#f();let n=Array.from(this.#e.querySelectorAll('button, a, [role="menuitem"]'));return n.forEach(r=>{r.setAttribute("role","menuitem"),r.setAttribute("tabindex","-1")}),this.#n=n.filter(r=>!r.disabled),this.#e.querySelectorAll("li").forEach(r=>{r.querySelector(':scope > :is(button, a, [role="menuitem"])')&&r.setAttribute("role","none")}),this.#n.forEach(r=>{r.hasAttribute("data-disabled")&&r.setAttribute("aria-disabled","true"),this.listen(r,"click",this.#b);let a=r.getAttribute("data-shortcut");if(a){if(!r.querySelector(":scope > .ctx-kbd")){let c=document.createElement("kbd");c.className="ctx-kbd",c.setAttribute("aria-hidden","true"),c.textContent=Yl(a),r.appendChild(c)}r.setAttribute("aria-keyshortcuts",Wi(a));let o=At(a,()=>{is(r)||r.click()});this.#r.push(o)}}),this.listen(this.#t,"contextmenu",this.#p),this.listen(this.#t,"keydown",this.#y),this.listen(this.#e,"keydown",this.#v),this.listen(this.#e,"click",this.#S,{capture:!0}),this.listen(window,"scroll",this.#w,{capture:!0}),this.listen(this.#i,"pop-over:hide",this.#k),!0}teardown(){this.#r.forEach(t=>t()),this.#r=[];for(let t of this.#l)this.#t?.removeAttribute(t);this.#l=[],this.#c=null,this.#o&&(this.#o=!1,this.removeAttribute("data-open"),this.#i?.hide?.()),this.#s=-1,this.#n=[],this.#e?.querySelectorAll(".ctx-kbd").forEach(t=>t.remove()),this.#u()}#g(t,i){this.#t.setAttribute(t,i),this.#l.push(t)}#f(){let t=this.#e;for(let i of Array.from(t.querySelectorAll(":scope > li[data-group]"))){i.id||(i.id=`ctx-group-${++Pr}`),i.classList.add("ctx-group-label"),i.setAttribute("aria-hidden","true");let s=document.createElement("li");s.setAttribute("role","group"),s.setAttribute("aria-labelledby",i.id),s.setAttribute("data-ctx-group","");let n=document.createElement("ul");n.setAttribute("role","none"),s.appendChild(n),t.insertBefore(s,i),n.appendChild(i);let r=s.nextElementSibling;for(;r&&!r.hasAttribute("data-group")&&r.getAttribute("role")!=="separator";){let a=r;r=r.nextElementSibling,n.appendChild(a)}}}#u(){let t=this.#e;if(t)for(let i of Array.from(t.querySelectorAll(":scope > li[data-ctx-group]"))){let s=i.querySelector(":scope > ul");if(s)for(let n of Array.from(s.children))t.insertBefore(n,i);i.remove()}}get items(){if(!this.#e)return[];let t=[],i=this.#e.querySelectorAll(":scope > li:not([data-ctx-group]), :scope > li[data-ctx-group] > ul > li");for(let s of i){if(s.hasAttribute("data-group")){t.push({group:s.textContent.trim()});continue}if(s.matches(':empty, [role="separator"]')||s.querySelector("hr")){t.push({separator:!0});continue}let n=s.querySelector('button, a, [role="menuitem"]');if(!n)continue;let r=Array.from(n.childNodes).filter(a=>!(a instanceof Element&&a.classList.contains("ctx-kbd"))).map(a=>a.textContent).join("");t.push({label:r.trim().replace(/\s+/g," "),value:n.getAttribute("data-value")||void 0,href:n.tagName==="A"?n.getAttribute("href"):void 0,shortcut:n.getAttribute("data-shortcut")||void 0,disabled:n.disabled||n.hasAttribute("data-disabled")||void 0})}return t}set items(t){let i=Array.isArray(t)?t:[],s=this.querySelector('menu, ul[role="menu"]');for(s||(s=document.createElement("menu"),this.appendChild(s));s.firstChild;)s.firstChild.remove();for(let n of i){let r=document.createElement("li");if(n.separator)r.setAttribute("role","separator");else if(n.group!=null)r.setAttribute("data-group",""),r.textContent=n.group;else{let a=n.href?document.createElement("a"):document.createElement("button");n.href&&a.setAttribute("href",n.href),n.value&&a.setAttribute("data-value",n.value),n.shortcut&&a.setAttribute("data-shortcut",n.shortcut),n.disabled&&a.setAttribute("data-disabled",""),a.tagName==="BUTTON"&&a.setAttribute("type","button"),a.textContent=n.label||"",r.appendChild(a)}s.appendChild(r)}this._reinit(),this.dispatchEvent(new CustomEvent("context-menu:items-changed",{detail:{items:i,source:"property"},bubbles:!0}))}#p=t=>{if(t.preventDefault(),fw(t)){this.#o||this.#d();return}t.buttons!==0?this.listen(window,"pointerup",()=>{setTimeout(()=>this.#m(t.clientX,t.clientY),0)},{once:!0,capture:!0}):this.#m(t.clientX,t.clientY)};#y=t=>{t.defaultPrevented||(t.key==="ContextMenu"||t.key==="F10"&&t.shiftKey)&&(t.preventDefault(),this.#o||this.#d())};#d(){let t=document.activeElement,s=(t&&this.#t.contains(t)?t:this.#t).getBoundingClientRect();this.#m(s.left,s.bottom)}#m(t,i){let s=document.activeElement;this.#c=s&&this.#t.contains(s)?s:this.#t,this.#o=!0,this.setAttribute("data-open",""),this.#a&&this.#t?.setAttribute("aria-expanded","true"),this.#i.style.top=`${i}px`,this.#i.style.left=`${t}px`,this.#i.show(),requestAnimationFrame(()=>{let n=this.#i.getBoundingClientRect(),r=t+n.width>window.innerWidth?t-n.width:t,a=i+n.height>window.innerHeight?i-n.height:i;this.#i.style.top=`${Math.max(0,a)}px`,this.#i.style.left=`${Math.max(0,r)}px`}),this.#s=-1,this.#A(0),this.dispatchEvent(new CustomEvent("context-menu:open",{bubbles:!0}))}close(){if(!this.#o)return;let t=this.#h();this.#o=!1,this.removeAttribute("data-open"),this.#a&&this.#t?.setAttribute("aria-expanded","false"),this.#s=-1,this.#i?.hide(),t&&this.#E(),this.dispatchEvent(new CustomEvent("context-menu:close",{bubbles:!0}))}#h(){let t=document.activeElement;return!t||t===document.body||!!this.#i?.contains(t)}#E(){let t=this.#c?.isConnected?this.#c:this.#t;this.#c=null,t?.isConnected&&t.focus({preventScroll:!0})}#v=t=>{switch(t.key){case"ArrowDown":case"Down":t.preventDefault(),this.#A(this.#s+1);break;case"ArrowUp":case"Up":t.preventDefault(),this.#A(this.#s-1);break;case"Home":t.preventDefault(),this.#A(0);break;case"End":t.preventDefault(),this.#A(this.#n.length-1);break;case"Enter":case" ":{t.preventDefault();let i=this.#n[this.#s];i&&!is(i)&&i.click();break}case"Tab":this.close();break}};#S=t=>{let i=t.target.closest?.('button, a, [role="menuitem"]');i&&this.#e.contains(i)&&is(i)&&(t.preventDefault(),t.stopPropagation())};#b=t=>{let i=t.currentTarget;is(i)||(this.close(),this.dispatchEvent(new CustomEvent("context-menu:select",{bubbles:!0,detail:{item:i,value:i.getAttribute("data-value")||void 0}})))};#k=()=>{this.#o&&(this.#o=!1,this.removeAttribute("data-open"),this.#a&&this.#t?.setAttribute("aria-expanded","false"),this.#s=-1,this.#h()&&this.#E(),this.dispatchEvent(new CustomEvent("context-menu:close",{bubbles:!0})))};#w=()=>{this.#o&&this.close()};#A(t){this.#n.length!==0&&(t<0&&(t=this.#n.length-1),t>=this.#n.length&&(t=0),this.#s=t,this.#n[t].focus())}get isOpen(){return this.#o}};A("context-menu",Or);Rt();var Nu=10,pw=new Set(["replace","append","prepend"]),mw="Failed to load content",qr=class extends E{#t;#e;#i=null;#n=!1;#s=null;#o="";#r=!1;#a=null;setup(){let t=this.getAttribute("src");return t?(this.#r=!0,this.#i===null&&(this.#i=this.innerHTML),this.#n&&this.#s===t||this.#l(t),!0):!1}teardown(){this.#r=!1,this.#t?.disconnect(),this.hasAttribute("data-loading")&&(this.#e?.abort(),this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"))}get src(){return this.getAttribute("src")||""}set src(t){let i=t==null?"":String(t);this.src!==i&&(i?this.setAttribute("src",i):this.removeAttribute("src"),this.dispatchEvent(new CustomEvent("include-file:src-changed",{detail:{src:i,source:"property"},bubbles:!0})))}static get observedAttributes(){return["src"]}attributeChangedCallback(t,i,s){if(!(t!=="src"||!s||i===s)){if(!this.#r){queueMicrotask(()=>{!this.#r&&this.isConnected&&this.getAttribute("src")&&this._reinit()});return}this.#l(s)}}#l(t){this.hasAttribute("lazy")&&!this.#c()?this.#g():this.#d(t)}#c(){let t=this.getBoundingClientRect();return t.top<window.innerHeight+200&&t.bottom>-200}#g(){this.#t?.disconnect(),this.#t=new IntersectionObserver(t=>{for(let i of t)if(i.isIntersecting){this.#t.disconnect();let s=this.getAttribute("src");s&&this.#d(s)}},{rootMargin:"200px"}),this.#t.observe(this)}#f(t){let i;try{i=new URL(t,document.baseURI)}catch{throw new Error(`Invalid URL: ${t}`)}if(i.protocol!=="http:"&&i.protocol!=="https:")throw new Error(`Refused ${i.protocol} URL: only http(s) is allowed`);return this.#u(i.href),i.href}#u(t){if(!this.hasAttribute("allow-cross-origin")&&new URL(t).origin!==location.origin)throw new Error(`Refused cross-origin URL ${t} (add allow-cross-origin to permit)`)}#p(t){let i=0,s=this.parentElement?.closest("include-file");for(;s;){if(#o in s&&(i++,s.#o===t))throw new Error(`Refused include cycle: ${t} is already included by an ancestor`);s=s.parentElement?.closest("include-file")}if(i>=Nu)throw new Error(`Refused include: nesting deeper than ${Nu}`)}#y(){let t=this.getAttribute("mode")||"replace";return pw.has(t)?t:(console.warn(`<include-file>: unknown mode "${t}", using "replace"`),"replace")}async#d(t){this.#e?.abort();let i=new AbortController;this.#e=i,this.#h(),this.setAttribute("data-loading",""),this.setAttribute("aria-busy","true"),this.removeAttribute("data-loaded"),this.removeAttribute("data-error");try{let s=this.#f(t);this.#p(s),this.#o=s;let n=await fetch(s,{signal:i.signal});if(n.url&&this.#u(n.url),!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);let r=await n.text();if(i.signal.aborted)return;let a=this.hasAttribute("trusted");this.hasAttribute("allow-scripts")&&!a&&console.warn("<include-file>: allow-scripts is ignored without trusted");let o=a&&this.hasAttribute("allow-scripts"),c;if(a){let f=document.createElement("template");f.innerHTML=r,c=f.content}else c=se(r,{allowIncludeFile:!0,keepIds:!0,keepStyle:!0});let l=document.createElement("template");l.content.append(c.cloneNode(!0));let u=l.innerHTML,d=[...c.querySelectorAll("script")];o||d.forEach(f=>f.remove());let h=this.#y();h==="replace"?this.replaceChildren(c):h==="append"?this.append(c):this.prepend(c);for(let f of o?d:[]){let p=document.createElement("script");for(let m of f.attributes)p.setAttribute(m.name,m.value);p.textContent=f.textContent,f.replaceWith(p)}this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"),this.setAttribute("data-loaded",""),this.#n=!0,this.#s=t,this.dispatchEvent(new CustomEvent("include-file:loaded",{bubbles:!0,detail:{src:t,url:s,html:u}}))}catch(s){if(s.name==="AbortError"||i.signal.aborted)return;this.#m(t,s)}}#m(t,i){if(this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"),this.setAttribute("data-error",""),this.#y()==="replace"&&this.#i!==null&&!this.#n&&(this.innerHTML=this.#i),!this.textContent.trim()&&!this.children.length){let s=document.createElement("p");s.setAttribute("role","alert"),s.setAttribute("data-include-error",""),s.textContent=this.getAttribute("data-label-error")||mw,this.append(s),this.#a=s}this.dispatchEvent(new CustomEvent("include-file:error",{bubbles:!0,detail:{src:t,error:i.message}}))}#h(){this.#a?.parentNode===this&&this.#a.remove(),this.#a=null}reload(){let t=this.getAttribute("src");t&&this.#d(t)}};A("include-file",qr);var jr="vb-ambient",gw="ambient:preference";function ss(){try{return localStorage.getItem(jr)!=="off"}catch{return!0}}function Hr(e){try{e?localStorage.removeItem(jr):localStorage.setItem(jr,"off")}catch{}document.dispatchEvent(new CustomEvent(gw,{detail:{enabled:!!e}}))}var ns=null;function _u(){return"0.7.3-51817a1a4"}function bw(){let e=document.querySelectorAll('script[src*="vanilla-breeze"]'),t="/cdn/sw.js";for(let i of e){let s=i.getAttribute("src");if(s){let n=s.lastIndexOf("/");if(n!==-1){t=s.slice(0,n)+"/sw.js";break}}}return t}function $u(){return ns||(ns=navigator.serviceWorker?.ready??Promise.reject(new Error("SW not supported"))),ns}function Iu(e){return new Promise((t,i)=>{navigator.serviceWorker?.controller?Mu(navigator.serviceWorker.controller,e,t,i):$u().then(s=>{let n=s.active||s.waiting||s.installing;n?Mu(n,e,t,i):i(new Error("No active service worker"))}).catch(i)})}function Mu(e,t,i,s){let n=new MessageChannel;n.port1.onmessage=r=>i(r.data),n.port1.onmessageerror=()=>s(new Error("Message error")),e.postMessage({type:t},[n.port2]),setTimeout(()=>s(new Error("SW message timeout")),5e3)}async function Bu(){return Iu("GET_STATUS")}async function Ru(){return Iu("CLEAR_CACHE")}async function Fu(){let e=await $u();return await e.update(),{updated:!!e.waiting}}function yw(){return typeof window>"u"||!("serviceWorker"in navigator)?!1:window.__VB_SERVICE_WORKER?!0:document.querySelector('meta[name="vb-service-worker"]')?.content==="true"}if(yw()){let e=bw();window.addEventListener("load",()=>{ns=navigator.serviceWorker.register(e).catch(t=>{console.warn("[VB] Service worker registration failed:",t)})})}mt();dr();var fe=null,st="settings",os={motionFx:!0,sounds:!1,charShortcuts:!0},Wr=()=>({...os,charShortcuts:Ot()}),kw=document.documentElement.hasAttribute("data-sticky"),Gr=null,Sw={trigger:"Site settings",dialog:"Site settings",title:"Settings",close:"Close settings",appearance:"Appearance","color-mode":"Color mode","mode-auto":"Auto","mode-light":"Light","mode-dark":"Dark",theme:"Theme",accessibility:"Accessibility","high-contrast":"High Contrast","large-text":"Large Text",dyslexia:"Dyslexia-Friendly","char-shortcuts":"Single-Key Shortcuts",layout:"Layout",fluid:"Fluid Scaling",density:"Density","density-compact":"Compact","density-default":"Default","density-spacious":"Spacious",backdrop:"Canvas Backdrop","backdrop-style":"Style","backdrop-default":"Default","backdrop-flush":"Flush","backdrop-elevated":"Elevated",chrome:"Chrome","chrome-card":"Card","chrome-stretch":"Stretch","chrome-integrated":"Integrated","fixed-header":"Fixed Header","page-bg":"Page Background","page-bg-default":"Theme Default","page-bg-color":"Solid Color","page-bg-gradient":"Gradient","bg-color":"Color","grad-start":"Start","grad-end":"End","grad-direction":"Direction","dir-to-bottom":"Top \u2192 Bottom","dir-to-right":"Left \u2192 Right","dir-135deg":"Diagonal \u2198","dir-45deg":"Diagonal \u2197",sticky:"Sticky Navigation",effects:"Effects",motion:"Motion Effects",sounds:"Sound Effects",environment:"Environment",ambient:"Ambient Styling",system:"System","sw-label":"Service Worker:","sw-checking":"checking\u2026","sw-unsupported":"Not supported","sw-active":"Active ({n} cached files)","sw-unregistered":"Not registered","clear-cache":"Clear Cache",clearing:"Clearing\u2026",cleared:"Cache cleared","check-update":"Check for Updates",checking:"Checking\u2026","update-available":"Update available","up-to-date":"Up to date",failed:"Failed",reset:"Reset to Defaults","reset-confirm":"Reset all settings to defaults?","reset-yes":"Reset","reset-cancel":"Cancel","reset-done":"Settings reset to defaults"},xw='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>';function xt(e){return String(e).replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}async function Kr(e){let t=document.documentElement;e?t.dataset.sticky="":delete t.dataset.sticky;try{let i=await Promise.resolve().then(()=>(ju(),qu));e?i.initStickyManager():i.destroyStickyManager()}catch{}}var Yr=class extends E{#t=null;#e=null;#i=!1;#n=!1;#s=0;#o="";#r=new Set;#a=[];#l=[];#c={...os,charShortcuts:Ot()};#g=document.documentElement.hasAttribute("data-sticky");setup(){let t=++this.#s;return this.#o||=crypto.randomUUID().slice(0,8),this.#N(),this.#M(),this.#Z(),this.listen(window,"vb:theme-change",this.#V),this.listen(window,"vb:extensions-change",this.#V),this.listen(window,"vb:a11y-themes-change",this.#V),this.#n&&(this.#n=!1,this.open()),this.#y().then(()=>{this.#f(t)&&this.#Z()}),!0}teardown(){this.#s++;for(let i of this.#a)clearTimeout(i);this.#a=[],this.#i=!1,this.removeAttribute("open"),this.#t?.setAttribute("aria-expanded","false");let t=!!this.#e?.contains(document.activeElement);this.#e?.remove(),t&&this.#t?.isConnected&&this.#t.focus(),this.#e=null}#f(t){return t===this.#s&&this.isConnected}#u(t,i={}){let s=this.getAttribute(`data-label-${t}`)??Sw[t]??t;for(let[n,r]of Object.entries(i))s=s.replaceAll(`{${n}}`,String(r));return s}#p(t){return xt(this.#u(t))}get data(){return{a11yThemes:[...this.#l],extensions:{...this.#c},sticky:this.#g}}set data(t){if(!t||typeof t!="object")return;let i=[],s=[];Array.isArray(t.a11yThemes)&&(this.#l=t.a11yThemes.map(String),s.push("a11y"),i.push(C.set(st,"a11y",this.#l)),this.#j(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:[...this.#l]}))),t.extensions&&typeof t.extensions=="object"&&(this.#c={...Wr(),...t.extensions},s.push("extensions"),i.push(C.set(st,"extensions",this.#c)),this.#nt()),t.sticky!=null&&(this.#g=!!t.sticky,s.push("sticky"),i.push(C.set(st,"sticky",this.#g?"on":"off")),Kr(this.#g));for(let n of s)this.#r.add(n);this.#e&&this.#Z(),Promise.allSettled(i).then(()=>{for(let n of s)this.#r.delete(n);this.#e&&this.#Z(),this.dispatchEvent(new CustomEvent("settings-panel:data-changed",{detail:{data:this.data,source:"property"},bubbles:!0}))})}async#y(){let[t,i,s]=await Promise.all([C.get(st,"a11y"),C.get(st,"extensions"),C.get(st,"sticky")]);Gr===null&&(Gr=kw&&s!=="on"),this.#r.has("a11y")||(this.#l=Array.isArray(t)?t:[]),this.#r.has("extensions")||(this.#c={...Wr(),...i??{}}),this.#r.has("sticky")||(this.#g=document.documentElement.hasAttribute("data-sticky"))}#d(t){return t!==""&&t!==void 0}#m(t){return t==="compact"?"compact":t==="spacious"?"spacious":"default"}#h(t,i){return t?i==="compact"?"compact":i==="spacious"?"spacious":"default":""}#E(t){return t!==""&&t!==void 0}#v(t){return t==="flush"?"flush":t==="elevated"?"elevated":"default"}#S(t,i){return t?i==="flush"?"flush":i==="elevated"?"elevated":"default":""}#b(t){if(!t)return"card";let i=t.split(/\s+/);for(let s of i)if(s==="stretch"||s==="integrated")return s;return"card"}#k(t){return t?t.split(/\s+/).includes("fixed"):!1}#w(t,i){let s=[];return t&&t!=="card"&&s.push(t),i&&s.push("fixed"),s.join(" ")||"card"}#A(t){return this.#e?.querySelector(t)??null}#N(){this.#t=this.querySelector(":scope > [data-trigger]")||this.querySelector(":scope > button"),this.#t||(this.#t=document.createElement("button"),this.#t.setAttribute("type","button"),this.#t.setAttribute("data-trigger",""),this.#t.setAttribute("data-minted",""),this.#t.className="settings-trigger",this.#t.innerHTML=xw,this.prepend(this.#t)),this.#t.hasAttribute("data-minted")&&this.#t.setAttribute("aria-label",this.#u("trigger")),this.#t.setAttribute("aria-haspopup","dialog"),this.#t.setAttribute("aria-expanded","false"),this.#e=document.createElement("div"),this.#e.className="settings-panel",this.#e.setAttribute("role","dialog"),this.#e.setAttribute("aria-label",this.#u("dialog")),this.#e.tabIndex=-1;let t=`settings-panel-${this.#o}`;this.#e.id=t,this.#t.setAttribute("aria-controls",t),this.#e.innerHTML=this.#x(),this.appendChild(this.#e)}#x(){let{mode:t,brand:i,fluid:s,backdrop:n,backdropChrome:r,pageBgType:a,pageBgColor:o,pageBgGradStart:c,pageBgGradEnd:l,pageBgGradDir:u}=B.getState(),d=[...this.#l],h={...this.#c},f=(document.documentElement.getAttribute("data-ambient")||"").split(/\s+/).filter(Boolean),p=f.length>0&&!f.includes("off"),m=this.#d(s),g=this.#m(s),b=this.#E(n),T=this.#v(n),w=this.#o,k=L=>this.#p(L),$=(L,V,Mt,ot,Ie,te={})=>`
346
346
  <fieldset data-segmented>
347
- <legend class="visually-hidden">${L}</legend>
348
- ${P.map(mt=>`
347
+ <legend class="visually-hidden">${V}</legend>
348
+ ${Mt.map(_t=>`
349
349
  <label>
350
- <input type="radio" name="settings-${S}-${A}" data-field="${S}" value="${mt}" ${Re===mt?"checked":""} />
351
- ${ee[mt]?`<icon-wc name="${ee[mt]}" size="xs"></icon-wc> `:""}${w(`${ot}-${mt}`)}
350
+ <input type="radio" name="settings-${L}-${w}" data-field="${L}" value="${_t}" ${ot===_t?"checked":""} />
351
+ ${te[_t]?`<icon-wc name="${te[_t]}" size="xs"></icon-wc> `:""}${k(`${Ie}-${_t}`)}
352
352
  </label>
353
353
  `).join("")}
354
- </fieldset>`,D=(S,L,P)=>`
354
+ </fieldset>`,N=(L,V,Mt)=>`
355
355
  <label class="toggle-row">
356
- <span>${w(S)}</span>
357
- <input type="checkbox" name="settings-${S}-${A}" data-switch="s" ${L} ${P?"checked":""} />
358
- </label>`,V=[["to bottom","dir-to-bottom"],["to right","dir-to-right"],["135deg","dir-135deg"],["45deg","dir-45deg"]];return`
356
+ <span>${k(L)}</span>
357
+ <input type="checkbox" name="settings-${L}-${w}" data-switch="s" ${V} ${Mt?"checked":""} />
358
+ </label>`,D=[["to bottom","dir-to-bottom"],["to right","dir-to-right"],["135deg","dir-135deg"],["45deg","dir-45deg"]];return`
359
359
  <header class="settings-header">
360
- <strong>${w("title")}</strong>
361
- <button type="button" class="settings-close" aria-label="${w("close")}">
360
+ <strong>${k("title")}</strong>
361
+ <button type="button" class="settings-close" aria-label="${k("close")}">
362
362
  <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
363
363
  </button>
364
364
  </header>
365
365
 
366
366
  <div class="settings-body">
367
- <details name="settings-${A}" open>
368
- <summary>${w("appearance")}</summary>
367
+ <details name="settings-${w}" open>
368
+ <summary>${k("appearance")}</summary>
369
369
  <div class="settings-section">
370
- <span class="settings-label" aria-hidden="true">${w("color-mode")}</span>
371
- ${_("mode",w("color-mode"),["auto","light","dark"],t,"mode",{auto:"monitor",light:"sun",dark:"moon"})}
372
-
373
- <label class="settings-label" for="settings-theme-${A}">${w("theme")}</label>
374
- <select id="settings-theme-${A}" name="settings-theme-${A}" data-field="theme">
375
- ${dl.map(S=>`
376
- <optgroup label="${Tt(S.label)}">
377
- ${S.themes.map(L=>`
378
- <option value="${Tt(L.id)}" ${i===L.id?"selected":""}>${Tt(L.name)}</option>
370
+ <span class="settings-label" aria-hidden="true">${k("color-mode")}</span>
371
+ ${$("mode",k("color-mode"),["auto","light","dark"],t,"mode",{auto:"monitor",light:"sun",dark:"moon"})}
372
+
373
+ <label class="settings-label" for="settings-theme-${w}">${k("theme")}</label>
374
+ <select id="settings-theme-${w}" name="settings-theme-${w}" data-field="theme">
375
+ ${dl.map(L=>`
376
+ <optgroup label="${xt(L.label)}">
377
+ ${L.themes.map(V=>`
378
+ <option value="${xt(V.id)}" ${i===V.id?"selected":""}>${xt(V.name)}</option>
379
379
  `).join("")}
380
380
  </optgroup>
381
381
  `).join("")}
@@ -383,105 +383,104 @@ svg {
383
383
  </div>
384
384
  </details>
385
385
 
386
- <details name="settings-${A}">
387
- <summary>${w("accessibility")}</summary>
386
+ <details name="settings-${w}">
387
+ <summary>${k("accessibility")}</summary>
388
388
  <div class="settings-section">
389
- ${D("high-contrast",'data-a11y="a11y-high-contrast"',d.includes("a11y-high-contrast"))}
390
- ${D("large-text",'data-a11y="a11y-large-text"',d.includes("a11y-large-text"))}
391
- ${D("dyslexia",'data-a11y="a11y-dyslexia"',d.includes("a11y-dyslexia"))}
392
- ${D("char-shortcuts",'data-ext="charShortcuts"',h.charShortcuts!==!1)}
389
+ ${N("high-contrast",'data-a11y="a11y-high-contrast"',d.includes("a11y-high-contrast"))}
390
+ ${N("large-text",'data-a11y="a11y-large-text"',d.includes("a11y-large-text"))}
391
+ ${N("dyslexia",'data-a11y="a11y-dyslexia"',d.includes("a11y-dyslexia"))}
392
+ ${N("char-shortcuts",'data-ext="charShortcuts"',h.charShortcuts!==!1)}
393
393
  </div>
394
394
  </details>
395
395
 
396
- <details name="settings-${A}">
397
- <summary>${w("layout")}</summary>
396
+ <details name="settings-${w}">
397
+ <summary>${k("layout")}</summary>
398
398
  <div class="settings-section">
399
- ${D("fluid","data-fluid-toggle",p)}
400
- <div class="density-row" ${p?"":"hidden"}>
401
- <span class="settings-label" aria-hidden="true">${w("density")}</span>
402
- ${_("density",w("density"),["compact","default","spacious"],m,"density")}
399
+ ${N("fluid","data-fluid-toggle",m)}
400
+ <div class="density-row" ${m?"":"hidden"}>
401
+ <span class="settings-label" aria-hidden="true">${k("density")}</span>
402
+ ${$("density",k("density"),["compact","default","spacious"],g,"density")}
403
403
  </div>
404
404
 
405
- ${D("backdrop","data-backdrop-toggle",g)}
406
- <div class="backdrop-row" ${g?"":"hidden"}>
407
- <span class="settings-label" aria-hidden="true">${w("backdrop-style")}</span>
408
- ${_("backdrop",w("backdrop-style"),["default","flush","elevated"],b,"backdrop")}
405
+ ${N("backdrop","data-backdrop-toggle",b)}
406
+ <div class="backdrop-row" ${b?"":"hidden"}>
407
+ <span class="settings-label" aria-hidden="true">${k("backdrop-style")}</span>
408
+ ${$("backdrop",k("backdrop-style"),["default","flush","elevated"],T,"backdrop")}
409
409
  </div>
410
- <div class="backdrop-row" ${g?"":"hidden"}>
411
- <span class="settings-label" aria-hidden="true">${w("chrome")}</span>
412
- ${_("chrome",w("chrome"),["card","stretch","integrated"],this.#b(r),"chrome")}
410
+ <div class="backdrop-row" ${b?"":"hidden"}>
411
+ <span class="settings-label" aria-hidden="true">${k("chrome")}</span>
412
+ ${$("chrome",k("chrome"),["card","stretch","integrated"],this.#b(r),"chrome")}
413
413
  </div>
414
- <div class="backdrop-row" ${g?"":"hidden"}>
415
- ${D("fixed-header","data-backdrop-fixed",this.#k(r))}
414
+ <div class="backdrop-row" ${b?"":"hidden"}>
415
+ ${N("fixed-header","data-backdrop-fixed",this.#k(r))}
416
416
  </div>
417
- <div class="backdrop-row" ${g?"":"hidden"}>
418
- <label class="settings-label" for="settings-page-bg-${A}">${w("page-bg")}</label>
419
- <select id="settings-page-bg-${A}" name="settings-page-bg-${A}" data-field="page-bg">
420
- <option value="" ${a===""?"selected":""}>${w("page-bg-default")}</option>
421
- <option value="color" ${a==="color"?"selected":""}>${w("page-bg-color")}</option>
422
- <option value="gradient" ${a==="gradient"?"selected":""}>${w("page-bg-gradient")}</option>
417
+ <div class="backdrop-row" ${b?"":"hidden"}>
418
+ <label class="settings-label" for="settings-page-bg-${w}">${k("page-bg")}</label>
419
+ <select id="settings-page-bg-${w}" name="settings-page-bg-${w}" data-field="page-bg">
420
+ <option value="" ${a===""?"selected":""}>${k("page-bg-default")}</option>
421
+ <option value="color" ${a==="color"?"selected":""}>${k("page-bg-color")}</option>
422
+ <option value="gradient" ${a==="gradient"?"selected":""}>${k("page-bg-gradient")}</option>
423
423
  </select>
424
424
  </div>
425
- <div class="page-bg-color-row backdrop-row" ${a==="color"&&g?"":"hidden"}>
426
- <label class="settings-label" for="settings-bg-color-${A}">${w("bg-color")}</label>
427
- <input type="color" id="settings-bg-color-${A}" name="settings-bg-color-${A}" data-field="page-bg-color" value="${Tt(o||"#1a1a2e")}" />
425
+ <div class="page-bg-color-row backdrop-row" ${a==="color"&&b?"":"hidden"}>
426
+ <label class="settings-label" for="settings-bg-color-${w}">${k("bg-color")}</label>
427
+ <input type="color" id="settings-bg-color-${w}" name="settings-bg-color-${w}" data-field="page-bg-color" value="${xt(o||"#1a1a2e")}" />
428
428
  </div>
429
- <div class="page-bg-grad-row backdrop-row" ${a==="gradient"&&g?"":"hidden"}>
430
- <label class="settings-label" for="settings-grad-start-${A}">${w("grad-start")}</label>
431
- <input type="color" id="settings-grad-start-${A}" name="settings-grad-start-${A}" data-field="grad-start" value="${Tt(c||"#1a1a2e")}" />
432
- <label class="settings-label" for="settings-grad-end-${A}">${w("grad-end")}</label>
433
- <input type="color" id="settings-grad-end-${A}" name="settings-grad-end-${A}" data-field="grad-end" value="${Tt(l||"#16213e")}" />
429
+ <div class="page-bg-grad-row backdrop-row" ${a==="gradient"&&b?"":"hidden"}>
430
+ <label class="settings-label" for="settings-grad-start-${w}">${k("grad-start")}</label>
431
+ <input type="color" id="settings-grad-start-${w}" name="settings-grad-start-${w}" data-field="grad-start" value="${xt(c||"#1a1a2e")}" />
432
+ <label class="settings-label" for="settings-grad-end-${w}">${k("grad-end")}</label>
433
+ <input type="color" id="settings-grad-end-${w}" name="settings-grad-end-${w}" data-field="grad-end" value="${xt(l||"#16213e")}" />
434
434
  </div>
435
- <div class="page-bg-grad-dir-row backdrop-row" ${a==="gradient"&&g?"":"hidden"}>
436
- <label class="settings-label" for="settings-grad-dir-${A}">${w("grad-direction")}</label>
437
- <select id="settings-grad-dir-${A}" name="settings-grad-dir-${A}" data-field="grad-dir">
438
- ${V.map(([S,L])=>`<option value="${S}" ${(u||"to bottom")===S?"selected":""}>${w(L)}</option>`).join("")}
435
+ <div class="page-bg-grad-dir-row backdrop-row" ${a==="gradient"&&b?"":"hidden"}>
436
+ <label class="settings-label" for="settings-grad-dir-${w}">${k("grad-direction")}</label>
437
+ <select id="settings-grad-dir-${w}" name="settings-grad-dir-${w}" data-field="grad-dir">
438
+ ${D.map(([L,V])=>`<option value="${L}" ${(u||"to bottom")===L?"selected":""}>${k(V)}</option>`).join("")}
439
439
  </select>
440
440
  </div>
441
441
 
442
- ${D("sticky","data-sticky-toggle",this.#g)}
442
+ ${N("sticky","data-sticky-toggle",this.#g)}
443
443
  </div>
444
444
  </details>
445
445
 
446
- <details name="settings-${A}">
447
- <summary>${w("effects")}</summary>
446
+ <details name="settings-${w}">
447
+ <summary>${k("effects")}</summary>
448
448
  <div class="settings-section">
449
- ${D("motion",'data-ext="motionFx"',!!h.motionFx)}
450
- ${D("sounds",'data-ext="sounds"',!!h.sounds)}
449
+ ${N("motion",'data-ext="motionFx"',!!h.motionFx)}
450
+ ${N("sounds",'data-ext="sounds"',!!h.sounds)}
451
451
  </div>
452
452
  </details>
453
453
 
454
- <details name="settings-${A}">
455
- <summary>${w("environment")}</summary>
454
+ ${p?`<details name="settings-${w}">
455
+ <summary>${k("environment")}</summary>
456
456
  <div class="settings-section">
457
- ${D("time-of-day",'data-env="timeOfDay"',!!f.timeOfDay)}
458
- ${D("seasonal",'data-env="seasonal"',!!f.seasonal)}
457
+ ${N("ambient","data-ambient-pref",ss())}
459
458
  </div>
460
- </details>
459
+ </details>`:""}
461
460
 
462
- <details name="settings-${A}">
463
- <summary>${w("system")}</summary>
461
+ <details name="settings-${w}">
462
+ <summary>${k("system")}</summary>
464
463
  <div class="settings-section system-info">
465
- <p class="system-version">Vanilla Breeze <code>v${Tt(Iu())}</code></p>
466
- <p class="system-sw-status" data-sw-status role="status">${w("sw-label")} <span>${w("sw-checking")}</span></p>
464
+ <p class="system-version">Vanilla Breeze <code>v${xt(_u())}</code></p>
465
+ <p class="system-sw-status" data-sw-status role="status">${k("sw-label")} <span>${k("sw-checking")}</span></p>
467
466
  <footer class="system-actions">
468
- <button type="button" data-action="clear-cache">${w("clear-cache")}</button>
469
- <button type="button" data-action="check-update">${w("check-update")}</button>
467
+ <button type="button" data-action="clear-cache">${k("clear-cache")}</button>
468
+ <button type="button" data-action="check-update">${k("check-update")}</button>
470
469
  </footer>
471
470
  </div>
472
471
  </details>
473
472
  </div>
474
473
 
475
474
  <footer class="settings-footer">
476
- <button type="button" class="settings-reset">${w("reset")}</button>
477
- <p class="settings-reset-confirm" role="group" aria-labelledby="settings-reset-q-${A}" hidden>
478
- <span id="settings-reset-q-${A}">${w("reset-confirm")}</span>
479
- <button type="button" data-action="reset-confirm">${w("reset-yes")}</button>
480
- <button type="button" data-action="reset-cancel">${w("reset-cancel")}</button>
475
+ <button type="button" class="settings-reset">${k("reset")}</button>
476
+ <p class="settings-reset-confirm" role="group" aria-labelledby="settings-reset-q-${w}" hidden>
477
+ <span id="settings-reset-q-${w}">${k("reset-confirm")}</span>
478
+ <button type="button" data-action="reset-confirm">${k("reset-yes")}</button>
479
+ <button type="button" data-action="reset-cancel">${k("reset-cancel")}</button>
481
480
  </p>
482
481
  </footer>
483
482
  <p class="visually-hidden" data-live role="status"></p>
484
- `}#M(){let t=this.#e;this.listen(this.#t,"click",this.#_),this.listen(document,"click",this.#F),this.listen(this,"keydown",this.#D),this.listen(this,"focusout",this.#O),t.querySelector(".settings-close")?.addEventListener("click",()=>this.close()),t.querySelectorAll('input[data-field="mode"]').forEach(i=>i.addEventListener("change",this.#$)),this.#A('[data-field="theme"]')?.addEventListener("change",this.#W),this.#A("input[data-fluid-toggle]")?.addEventListener("change",this.#C),t.querySelectorAll('input[data-field="density"]').forEach(i=>i.addEventListener("change",this.#T)),this.#A("input[data-backdrop-toggle]")?.addEventListener("change",this.#q),t.querySelectorAll('input[data-field="backdrop"]').forEach(i=>i.addEventListener("change",this.#tt)),t.querySelectorAll('input[data-field="chrome"]').forEach(i=>i.addEventListener("change",this.#I)),this.#A("input[data-backdrop-fixed]")?.addEventListener("change",this.#L),this.#A("input[data-sticky-toggle]")?.addEventListener("change",this.#H),this.#A('[data-field="page-bg"]')?.addEventListener("change",this.#X),this.#A('[data-field="page-bg-color"]')?.addEventListener("input",this.#B),this.#A('[data-field="grad-start"]')?.addEventListener("input",this.#B),this.#A('[data-field="grad-end"]')?.addEventListener("input",this.#B),this.#A('[data-field="grad-dir"]')?.addEventListener("change",this.#B),t.querySelectorAll("input[data-a11y]").forEach(i=>i.addEventListener("change",this.#z)),t.querySelectorAll("input[data-ext]").forEach(i=>i.addEventListener("change",this.#R)),t.querySelectorAll("input[data-env]").forEach(i=>i.addEventListener("change",this.#Q)),this.#A(".settings-reset")?.addEventListener("click",this.#G),this.#A('[data-action="reset-confirm"]')?.addEventListener("click",this.#st),this.#A('[data-action="reset-cancel"]')?.addEventListener("click",()=>this.#P(!0)),this.#A('[data-action="clear-cache"]')?.addEventListener("click",this.#ot),this.#A('[data-action="check-update"]')?.addEventListener("click",this.#ct),this.#rt(this.#s)}#_=t=>{t.stopPropagation(),this.toggle()};#F=t=>{this.#i&&!this.contains(t.target)&&this.close()};#D=t=>{t.key==="Escape"&&!t.defaultPrevented&&this.#i&&(t.preventDefault(),this.close())};#O=t=>{if(!this.#i)return;let i=t.relatedTarget;i&&!this.contains(i)&&this.close()};#$=t=>{I.setMode(t.target.value)};#W=async t=>{let i=t.target;i.disabled=!0;try{await I.setBrand(i.value),this.#j()}catch{console.warn("[VB] Theme load failed, using default")}finally{i.disabled=!1}};#C=t=>{let i=t.target.checked,s=this.#m(I.getState().fluid)||"default";I.setFluid(this.#h(i,s)),this.#J(i)};#T=t=>{I.setFluid(this.#h(!0,t.target.value))};#q=t=>{let i=t.target.checked,s=this.#v(I.getState().backdrop)||"default";I.setBackdrop(this.#S(i,s)),this.#U(i)};#tt=t=>{I.setBackdrop(this.#S(!0,t.target.value))};#I=t=>{let i=this.#k(I.getState().backdropChrome);I.setBackdropChrome(this.#w(t.target.value,i))};#L=t=>{let i=this.#b(I.getState().backdropChrome);I.setBackdropChrome(this.#w(i,t.target.checked))};#H=t=>{let i=t.target.checked;this.#g=i,x.set(st,"sticky",i?"on":"off").catch(()=>{}),Kr(i)};#Y(){let t=this.#A('[data-field="page-bg"]')?.value||"";return t==="color"?{type:t,color:this.#A('[data-field="page-bg-color"]')?.value||"#1a1a2e"}:t==="gradient"?{type:t,gradStart:this.#A('[data-field="grad-start"]')?.value||"#1a1a2e",gradEnd:this.#A('[data-field="grad-end"]')?.value||"#16213e",gradDir:this.#A('[data-field="grad-dir"]')?.value||"to bottom"}:null}#X=t=>{this.#K(t.target.value),I.setPageBg(this.#Y()??{})};#B=()=>{let t=this.#Y();t&&I.setPageBg(t)};#z=t=>{let i=t.target.dataset.a11y,s=[...this.#l];if(t.target.checked&&!s.includes(i))s.push(i);else if(!t.target.checked){let n=s.indexOf(i);n!==-1&&s.splice(n,1)}this.#et(s),this.#j(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:[...s]}))};#R=t=>{let i=t.target.dataset.ext;this.#c={...this.#c,[i]:t.target.checked},x.set(st,"extensions",this.#c).catch(()=>{}),this.#nt()};#Q=t=>{pe.setSource(t.target.dataset.env,t.target.checked)};#G=()=>{let t=this.#A(".settings-reset-confirm"),i=this.#A(".settings-reset");!t||!i||(t.hidden=!1,i.hidden=!0,this.#A('[data-action="reset-cancel"]')?.focus())};#P(t=!1){let i=this.#A(".settings-reset-confirm"),s=this.#A(".settings-reset");i&&(i.hidden=!0),s&&(s.hidden=!1,t&&s.focus())}#st=()=>{let t=["a11y","extensions","sticky"];for(let i of t)this.#r.add(i);setTimeout(()=>{for(let i of t)this.#r.delete(i)},0),I.reset(),this.#et([]),this.#j(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:[]})),this.#c={...cs,charShortcuts:eu()},x.remove(st,"extensions").catch(()=>{}),this.#nt(),this.#g=!!Gr,x.remove(st,"sticky").catch(()=>{}),Kr(this.#g),pe.setSource("timeOfDay",!1),pe.setSource("seasonal",!1),this.#P(!0),this.#Z(),this.#it(this.#u("reset-done"))};#V=t=>{if(t.type==="vb:a11y-themes-change"&&Array.isArray(t.detail))this.#l=t.detail.map(String);else if(t.type==="vb:extensions-change"&&t.detail&&typeof t.detail=="object")this.#c={...Wr(),...t.detail};else if(t.type==="vb:theme-change"){let i=this.#s;this.#y().then(()=>{this.#f(i)&&this.#Z()})}this.#Z()};#Z(){if(!this.#e)return;let{mode:t,brand:i,fluid:s,backdrop:n,backdropChrome:r,pageBgType:a,pageBgColor:o,pageBgGradStart:c,pageBgGradEnd:l,pageBgGradDir:u}=I.getState(),d=this.#l,h=this.#c,f=this.#d(s),p=this.#m(s),m=this.#E(n),g=this.#v(n),b=this.#e,A=(S,L)=>{let P=this.#A(S);P&&(P.checked=L)},w=(S,L)=>{let P=this.#A(S);P&&L&&(P.value=L)};A(`input[data-field="mode"][value="${t}"]`,!0);let _=this.#A('[data-field="theme"]');_&&(_.value=i||"default"),A("input[data-fluid-toggle]",f),A(`input[data-field="density"][value="${p}"]`,!0),this.#J(f),A("input[data-backdrop-toggle]",m),A(`input[data-field="backdrop"][value="${g}"]`,!0),A(`input[data-field="chrome"][value="${this.#b(r)}"]`,!0),A("input[data-backdrop-fixed]",this.#k(r)),this.#U(m);let D=this.#A('[data-field="page-bg"]');D&&(D.value=a||""),w('[data-field="page-bg-color"]',o),w('[data-field="grad-start"]',c),w('[data-field="grad-end"]',l),w('[data-field="grad-dir"]',u),m&&this.#K(a||""),b.querySelectorAll("input[data-a11y]").forEach(S=>{let L=S;L.checked=d.includes(L.dataset.a11y||"")}),b.querySelectorAll("input[data-ext]").forEach(S=>{let L=S,P=L.dataset.ext;L.checked=h[P]??cs[P]}),A("input[data-sticky-toggle]",this.#g);let V=pe.load();b.querySelectorAll("input[data-env]").forEach(S=>{let L=S;L.checked=V[L.dataset.env]??!1})}#J(t){let i=this.#A(".density-row");i&&(i.hidden=!t)}#U(t){this.#e?.querySelectorAll(".backdrop-row").forEach(i=>{i.hidden=!t}),t&&this.#K(this.#A('[data-field="page-bg"]')?.value||"")}#K(t){let i=this.#A(".page-bg-color-row"),s=this.#A(".page-bg-grad-row"),n=this.#A(".page-bg-grad-dir-row");i&&(i.hidden=t!=="color"),s&&(s.hidden=t!=="gradient"),n&&(n.hidden=t!=="gradient")}#et(t){this.#l=[...t],x.set(st,"a11y",this.#l).catch(()=>{})}#j(){let t=[...this.#l],{brand:i}=I.getState(),s=document.documentElement,n=i!=="default"?[i,...t]:[...t];n.length?s.dataset.theme=n.join(" "):delete s.dataset.theme}async#nt(){let t={...this.#c},i=document.documentElement;t.motionFx?delete i.dataset.motionReduced:i.dataset.motionReduced="",Ql(t.charShortcuts!==!1),t.sounds?(me||(me=(await Promise.resolve().then(()=>(Wu(),Uu))).SoundManager),me.init(),me.enable()):me&&me.disable(),window.dispatchEvent(new CustomEvent("vb:extensions-change",{detail:t}))}#it(t){let i=this.#A("[data-live]");i&&(i.textContent="",requestAnimationFrame(()=>{i.textContent=t}))}async#rt(t){let i=this.#A("[data-sw-status] span");if(i){if(!("serviceWorker"in navigator)){i.textContent=this.#u("sw-unsupported");return}try{let s=await Fu();if(!this.#f(t))return;let n=s.cachedURLs?.length??0;i.textContent=this.#u("sw-active",{n})}catch{this.#f(t)&&(i.textContent=this.#u("sw-unregistered"))}}}async#at(t,i,s,n){let r=this.#s;t.disabled=!0,t.textContent=this.#u(s);let a;try{a=await n()}catch{a=this.#u("failed")}this.#f(r)&&(t.textContent=a,this.#it(a),this.#a.push(setTimeout(()=>{t.textContent=this.#u(i),t.disabled=!1},2e3)))}#ot=t=>{let i=this.#s;this.#at(t.currentTarget,"clear-cache","clearing",async()=>(await Pu(),this.#rt(i),this.#u("cleared")))};#ct=t=>{this.#at(t.currentTarget,"check-update","checking",async()=>{let{updated:i}=await Ou();return this.#u(i?"update-available":"up-to-date")})};open(){if(!this.#e){this.#n=!0;return}this.#i||(this.#i=!0,this.setAttribute("open",""),this.#t?.setAttribute("aria-expanded","true"),this.#Z(),this.#lt(),this.#e.focus({preventScroll:!0}))}#lt(){let t=this.getBoundingClientRect(),i=this.#e;i.style.removeProperty("top"),i.style.removeProperty("bottom"),i.style.removeProperty("left"),i.style.removeProperty("right");let s=i.getBoundingClientRect(),n=window.innerWidth,r=window.innerHeight,a=t.top,o=r-t.bottom;a<s.height&&o>a?(i.style.top="calc(100% + 8px)",i.style.bottom="auto"):(i.style.bottom="calc(100% + 8px)",i.style.top="auto");let c=n-t.right,l=t.left,u=s.width;t.right<u&&l<c?(i.style.left="0",i.style.right="auto"):(i.style.right="0",i.style.left="auto")}close(){if(this.#n=!1,!this.#i)return;let t=!!this.#e?.contains(document.activeElement);this.#i=!1,this.removeAttribute("open"),this.#t?.setAttribute("aria-expanded","false"),this.#P(),t&&this.#t?.isConnected&&this.#t.focus()}toggle(){this.#i?this.close():this.open()}};E("settings-panel",Yr);ct();ge();dt();var M0={update:"package",alert:"alert-triangle",watch:"eye",system:"settings",message:"mail",stewardship:"shield"},_0={trigger:"Notifications",unread:"{n} unread",title:"Notifications","mark-all":"Mark all read",close:"Close notifications",tabs:"Notification categories",all:"All",watching:"Watching",empty:"No notifications","watch-empty":"You aren\u2019t watching any pages yet. Use the \u201CWatch\u201D button on a page to start.","last-checked":"Last checked: {date}",never:"\u2014",changed:"Changed",unwatch:"Unwatch {title}",new:"New notification",added:"New notification: {title}. {n} unread","variant-info":"Information:","variant-success":"Success:","variant-warning":"Warning:","variant-error":"Error:"};function O(e){return String(e??"").replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[t])}function Yu(e){if(typeof e!="string"||!e.trim())return null;try{let{protocol:t}=new URL(e,location.href);return t==="http:"||t==="https:"?e:null}catch{return null}}function Xu(e,t){let i=new Date(e);if(Number.isNaN(i.getTime()))return String(e);let n=/^\d{4}-\d{2}-\d{2}$/.test(e)?{dateStyle:"medium",timeZone:"UTC"}:{dateStyle:"medium",timeStyle:"short"};try{return new Intl.DateTimeFormat(t||void 0,n).format(i)}catch{return new Intl.DateTimeFormat(void 0,n).format(i)}}var $0=0,Zr=class extends k{static observedAttributes=["variant","position"];#t="panel";#e=0;#i=null;#n=null;#s=null;#o=null;#r=new Set;#a=[];#l=!1;#c=null;#g=new Set;#f="all";#u=[];#p=[];#y=new Set;#d=!1;#m=!1;#h=null;setup(){let t=++this.#e;return this.#t=this.getAttribute("mode")==="banner"?"banner":"panel",this.#t==="banner"?this.#k(t):(this.#m&&(this.removeAttribute("role"),this.#m=!1),this.#_(t)),!0}teardown(){this.#e++,this.#d=!1,this.#c!=null&&(clearInterval(this.#c),this.#c=null),this.#l&&(this.#l=!1,this.#nt(),this.#s&&(this.#s.hidden=!0),this.#i?.setAttribute("aria-expanded","false"))}attributeChangedCallback(t,i,s){i===s||this.#t!=="banner"||!this.hasAttribute("data-upgraded")||(t==="variant"&&(this.dataset.variant=s||"info",this.#A(),this.#w()),t==="position"&&(this.dataset.position=s||"top"))}#E(t){return t===this.#e&&this.isConnected}#v(t,i={}){let s=this.getAttribute(`data-label-${t}`)??_0[t]??t;for(let[n,r]of Object.entries(i))s=s.replaceAll(`{${n}}`,String(r));return s}#S(){let t=(this.getAttribute("toast-new")||"").trim(),i=null;if(t){try{i=document.querySelector(t)}catch{i=null}i&&i.localName!=="toast-msg"&&(i=null)}return i??document.querySelector("toast-msg")}#b(){return this.closest("[lang]")?.lang||document.documentElement.lang||void 0}get notifications(){return[...this.#a]}set notifications(t){this.#t==="panel"&&(this.#a=Array.isArray(t)?t:[],this.#C(),this.dispatchEvent(new CustomEvent("notification-wc:notifications-changed",{detail:{notifications:this.#a,source:"property"},bubbles:!0})))}async#k(t){let i=this.getAttribute("persist");if(i||console.warn("[notification-wc] banner mode requires a persist attribute"),this.dataset.mode="banner",this.dataset.variant=this.getAttribute("variant")||"info",this.dataset.position=this.getAttribute("position")||"top",this.#A(),this.#w(),this.listen(this,"focusin",this.#x),i){let n=Number(this.getAttribute("expires")??""),r=Number.isFinite(n)&&n>0?n*864e5:void 0,a=await x.get("notifications",i,r?{maxAge:r}:void 0);if(!this.#E(t))return;if(a&&a.dismissed){this.hidden=!0;return}}let s=this.querySelector('[value="dismiss"], [data-dismiss]');s&&this.listen(s,"click",this.#N)}#w(){this.setAttribute("role",this.dataset.variant==="error"?"alert":"status"),this.#m=!0}#A(){let t=this.dataset.variant||"info",i=this.querySelector(":scope [data-variant-prefix]");i||(i=document.createElement("span"),i.className="visually-hidden",i.setAttribute("data-variant-prefix",""),(this.querySelector(":scope > :is(p, strong, span, h2, h3, h4)")||this).prepend(i)),i.textContent=`${this.#v(`variant-${t}`)} `}#N=async t=>{t.preventDefault();let i=this.contains(document.activeElement),s=this.getAttribute("persist");this.hidden=!0,i&&this.#M(),s&&await x.set("notifications",s,{dismissed:!0}),this.dispatchEvent(new CustomEvent("notification-wc:dismiss",{bubbles:!0,composed:!0,detail:{id:s}}))};#x=t=>{let i=t.relatedTarget;i&&!this.contains(i)&&(this.#h=i)};#M(){let t=o=>!!o?.isConnected&&(typeof o.checkVisibility!="function"||o.checkVisibility()),i=[...document.querySelectorAll('notification-wc[mode="banner"]')],s=i.indexOf(this),n=[...i.slice(s+1),...i.slice(0,s).reverse()];for(let o of n){if(!t(o))continue;let c=o.querySelector("a[href], button:not([disabled])");if(c&&(c.focus({preventScroll:!0}),document.activeElement===c))return}let r=this.#h;if(this.#h=null,t(r)&&(r.focus({preventScroll:!0}),document.activeElement===r))return;let a=document.querySelector('main, [role="main"]')||document.querySelector("h1");a&&(a.hasAttribute("tabindex")||(a.setAttribute("tabindex","-1"),a.addEventListener("blur",()=>a.removeAttribute("tabindex"),{once:!0})),a.focus({preventScroll:!0}))}async#_(t){if(this.dataset.mode="panel",this.listen(document,"notification-wc:new",this.#L),await this.#F(),!!this.#E(t)&&(this.#O(),this.#$(),this.listen(document,"click",this.#st),this.listen(this,"keydown",this.#J),this.listen(this,"focusout",this.#Z),this.listen(document,"page-watch:add",this.#H),this.listen(document,"page-watch:remove",this.#H),await this.#Y(),!!this.#E(t))){if(this.getAttribute("src")){if(await this.#it(t),!this.#E(t))return;let i=Number(this.getAttribute("poll"));Number.isFinite(i)&&i>0&&(this.#c=setInterval(()=>this.#it(t),i))}this.#d=!0}}async#F(){let t=this.getAttribute("storage-key")||"notifications",i=await x.get(t,"read-ids");Array.isArray(i)&&(this.#r=new Set(i.filter(s=>typeof s=="string")))}async#D(){let t=this.getAttribute("storage-key")||"notifications";await x.set(t,"read-ids",Array.from(this.#r))}#O(){if(this.#i=this.querySelector(":scope > [data-trigger]"),this.#i){if(!this.#i.classList.contains("notification-trigger")&&this.#n===null){let i=this.#i.cloneNode(!0);i.querySelector(".notification-badge")?.remove(),this.#n=(this.#i.getAttribute("aria-label")||i.textContent||"").trim()}}else{let i=document.createElement("button");i.type="button",i.setAttribute("data-trigger",""),i.className="notification-trigger",i.innerHTML='<icon-wc name="bell" size="sm" aria-hidden="true"></icon-wc><span class="notification-badge" aria-hidden="true" hidden>0</span>',this.#i=i,this.prepend(i)}let t=this.#i.querySelector(".notification-badge");t||(t=document.createElement("span"),t.className="notification-badge",t.setAttribute("aria-hidden","true"),t.hidden=!0,this.#i.appendChild(t)),this.#o=t,this.#i.setAttribute("aria-haspopup","dialog"),this.#i.setAttribute("aria-expanded","false"),this.listen(this.#i,"click",this.#P)}#$(){let t=this.querySelector(":scope > .notification-panel");t||(t=document.createElement("div"),t.className="notification-panel",t.id=`notification-panel-${++$0}-${Math.random().toString(36).slice(2,7)}`,this.appendChild(t)),this.#s=t;let i=t.id;t.setAttribute("role","dialog"),t.setAttribute("aria-labelledby",`${i}-title`),t.tabIndex=-1,t.hidden=!0,this.#i?.setAttribute("aria-controls",i);let s=this.#f==="all";t.innerHTML=`
483
+ `}#M(){let t=this.#e;this.listen(this.#t,"click",this.#_),this.listen(document,"click",this.#F),this.listen(this,"keydown",this.#D),this.listen(this,"focusout",this.#O),t.querySelector(".settings-close")?.addEventListener("click",()=>this.close()),t.querySelectorAll('input[data-field="mode"]').forEach(i=>i.addEventListener("change",this.#$)),this.#A('[data-field="theme"]')?.addEventListener("change",this.#W),this.#A("input[data-fluid-toggle]")?.addEventListener("change",this.#C),t.querySelectorAll('input[data-field="density"]').forEach(i=>i.addEventListener("change",this.#T)),this.#A("input[data-backdrop-toggle]")?.addEventListener("change",this.#q),t.querySelectorAll('input[data-field="backdrop"]').forEach(i=>i.addEventListener("change",this.#tt)),t.querySelectorAll('input[data-field="chrome"]').forEach(i=>i.addEventListener("change",this.#I)),this.#A("input[data-backdrop-fixed]")?.addEventListener("change",this.#L),this.#A("input[data-sticky-toggle]")?.addEventListener("change",this.#H),this.#A('[data-field="page-bg"]')?.addEventListener("change",this.#X),this.#A('[data-field="page-bg-color"]')?.addEventListener("input",this.#B),this.#A('[data-field="grad-start"]')?.addEventListener("input",this.#B),this.#A('[data-field="grad-end"]')?.addEventListener("input",this.#B),this.#A('[data-field="grad-dir"]')?.addEventListener("change",this.#B),t.querySelectorAll("input[data-a11y]").forEach(i=>i.addEventListener("change",this.#z)),t.querySelectorAll("input[data-ext]").forEach(i=>i.addEventListener("change",this.#R)),t.querySelectorAll("input[data-ambient-pref]").forEach(i=>i.addEventListener("change",this.#Q)),this.#A(".settings-reset")?.addEventListener("click",this.#G),this.#A('[data-action="reset-confirm"]')?.addEventListener("click",this.#st),this.#A('[data-action="reset-cancel"]')?.addEventListener("click",()=>this.#P(!0)),this.#A('[data-action="clear-cache"]')?.addEventListener("click",this.#ot),this.#A('[data-action="check-update"]')?.addEventListener("click",this.#ct),this.#rt(this.#s)}#_=t=>{t.stopPropagation(),this.toggle()};#F=t=>{this.#i&&!this.contains(t.target)&&this.close()};#D=t=>{t.key==="Escape"&&!t.defaultPrevented&&this.#i&&(t.preventDefault(),this.close())};#O=t=>{if(!this.#i)return;let i=t.relatedTarget;i&&!this.contains(i)&&this.close()};#$=t=>{B.setMode(t.target.value)};#W=async t=>{let i=t.target;i.disabled=!0;try{await B.setBrand(i.value),this.#j()}catch{console.warn("[VB] Theme load failed, using default")}finally{i.disabled=!1}};#C=t=>{let i=t.target.checked,s=this.#m(B.getState().fluid)||"default";B.setFluid(this.#h(i,s)),this.#J(i)};#T=t=>{B.setFluid(this.#h(!0,t.target.value))};#q=t=>{let i=t.target.checked,s=this.#v(B.getState().backdrop)||"default";B.setBackdrop(this.#S(i,s)),this.#U(i)};#tt=t=>{B.setBackdrop(this.#S(!0,t.target.value))};#I=t=>{let i=this.#k(B.getState().backdropChrome);B.setBackdropChrome(this.#w(t.target.value,i))};#L=t=>{let i=this.#b(B.getState().backdropChrome);B.setBackdropChrome(this.#w(i,t.target.checked))};#H=t=>{let i=t.target.checked;this.#g=i,C.set(st,"sticky",i?"on":"off").catch(()=>{}),Kr(i)};#Y(){let t=this.#A('[data-field="page-bg"]')?.value||"";return t==="color"?{type:t,color:this.#A('[data-field="page-bg-color"]')?.value||"#1a1a2e"}:t==="gradient"?{type:t,gradStart:this.#A('[data-field="grad-start"]')?.value||"#1a1a2e",gradEnd:this.#A('[data-field="grad-end"]')?.value||"#16213e",gradDir:this.#A('[data-field="grad-dir"]')?.value||"to bottom"}:null}#X=t=>{this.#K(t.target.value),B.setPageBg(this.#Y()??{})};#B=()=>{let t=this.#Y();t&&B.setPageBg(t)};#z=t=>{let i=t.target.dataset.a11y,s=[...this.#l];if(t.target.checked&&!s.includes(i))s.push(i);else if(!t.target.checked){let n=s.indexOf(i);n!==-1&&s.splice(n,1)}this.#et(s),this.#j(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:[...s]}))};#R=t=>{let i=t.target.dataset.ext;this.#c={...this.#c,[i]:t.target.checked},C.set(st,"extensions",this.#c).catch(()=>{}),this.#nt()};#Q=t=>{Hr(t.target.checked)};#G=()=>{let t=this.#A(".settings-reset-confirm"),i=this.#A(".settings-reset");!t||!i||(t.hidden=!1,i.hidden=!0,this.#A('[data-action="reset-cancel"]')?.focus())};#P(t=!1){let i=this.#A(".settings-reset-confirm"),s=this.#A(".settings-reset");i&&(i.hidden=!0),s&&(s.hidden=!1,t&&s.focus())}#st=()=>{let t=["a11y","extensions","sticky"];for(let i of t)this.#r.add(i);setTimeout(()=>{for(let i of t)this.#r.delete(i)},0),B.reset(),this.#et([]),this.#j(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:[]})),this.#c={...os,charShortcuts:eu()},C.remove(st,"extensions").catch(()=>{}),this.#nt(),this.#g=!!Gr,C.remove(st,"sticky").catch(()=>{}),Kr(this.#g),ss()||Hr(!0),this.#P(!0),this.#Z(),this.#it(this.#u("reset-done"))};#V=t=>{if(t.type==="vb:a11y-themes-change"&&Array.isArray(t.detail))this.#l=t.detail.map(String);else if(t.type==="vb:extensions-change"&&t.detail&&typeof t.detail=="object")this.#c={...Wr(),...t.detail};else if(t.type==="vb:theme-change"){let i=this.#s;this.#y().then(()=>{this.#f(i)&&this.#Z()})}this.#Z()};#Z(){if(!this.#e)return;let{mode:t,brand:i,fluid:s,backdrop:n,backdropChrome:r,pageBgType:a,pageBgColor:o,pageBgGradStart:c,pageBgGradEnd:l,pageBgGradDir:u}=B.getState(),d=this.#l,h=this.#c,f=this.#d(s),p=this.#m(s),m=this.#E(n),g=this.#v(n),b=this.#e,T=(N,D)=>{let L=this.#A(N);L&&(L.checked=D)},w=(N,D)=>{let L=this.#A(N);L&&D&&(L.value=D)};T(`input[data-field="mode"][value="${t}"]`,!0);let k=this.#A('[data-field="theme"]');k&&(k.value=i||"default"),T("input[data-fluid-toggle]",f),T(`input[data-field="density"][value="${p}"]`,!0),this.#J(f),T("input[data-backdrop-toggle]",m),T(`input[data-field="backdrop"][value="${g}"]`,!0),T(`input[data-field="chrome"][value="${this.#b(r)}"]`,!0),T("input[data-backdrop-fixed]",this.#k(r)),this.#U(m);let $=this.#A('[data-field="page-bg"]');$&&($.value=a||""),w('[data-field="page-bg-color"]',o),w('[data-field="grad-start"]',c),w('[data-field="grad-end"]',l),w('[data-field="grad-dir"]',u),m&&this.#K(a||""),b.querySelectorAll("input[data-a11y]").forEach(N=>{let D=N;D.checked=d.includes(D.dataset.a11y||"")}),b.querySelectorAll("input[data-ext]").forEach(N=>{let D=N,L=D.dataset.ext;D.checked=h[L]??os[L]}),T("input[data-sticky-toggle]",this.#g),T("input[data-ambient-pref]",ss())}#J(t){let i=this.#A(".density-row");i&&(i.hidden=!t)}#U(t){this.#e?.querySelectorAll(".backdrop-row").forEach(i=>{i.hidden=!t}),t&&this.#K(this.#A('[data-field="page-bg"]')?.value||"")}#K(t){let i=this.#A(".page-bg-color-row"),s=this.#A(".page-bg-grad-row"),n=this.#A(".page-bg-grad-dir-row");i&&(i.hidden=t!=="color"),s&&(s.hidden=t!=="gradient"),n&&(n.hidden=t!=="gradient")}#et(t){this.#l=[...t],C.set(st,"a11y",this.#l).catch(()=>{})}#j(){let t=[...this.#l],{brand:i}=B.getState(),s=document.documentElement,n=i!=="default"?[i,...t]:[...t];n.length?s.dataset.theme=n.join(" "):delete s.dataset.theme}async#nt(){let t={...this.#c},i=document.documentElement;t.motionFx?delete i.dataset.motionReduced:i.dataset.motionReduced="",Ql(t.charShortcuts!==!1),t.sounds?(fe||(fe=(await Promise.resolve().then(()=>(Vu(),zu))).SoundManager),fe.init(),fe.enable()):fe&&fe.disable(),window.dispatchEvent(new CustomEvent("vb:extensions-change",{detail:t}))}#it(t){let i=this.#A("[data-live]");i&&(i.textContent="",requestAnimationFrame(()=>{i.textContent=t}))}async#rt(t){let i=this.#A("[data-sw-status] span");if(i){if(!("serviceWorker"in navigator)){i.textContent=this.#u("sw-unsupported");return}try{let s=await Bu();if(!this.#f(t))return;let n=s.cachedURLs?.length??0;i.textContent=this.#u("sw-active",{n})}catch{this.#f(t)&&(i.textContent=this.#u("sw-unregistered"))}}}async#at(t,i,s,n){let r=this.#s;t.disabled=!0,t.textContent=this.#u(s);let a;try{a=await n()}catch{a=this.#u("failed")}this.#f(r)&&(t.textContent=a,this.#it(a),this.#a.push(setTimeout(()=>{t.textContent=this.#u(i),t.disabled=!1},2e3)))}#ot=t=>{let i=this.#s;this.#at(t.currentTarget,"clear-cache","clearing",async()=>(await Ru(),this.#rt(i),this.#u("cleared")))};#ct=t=>{this.#at(t.currentTarget,"check-update","checking",async()=>{let{updated:i}=await Fu();return this.#u(i?"update-available":"up-to-date")})};open(){if(!this.#e){this.#n=!0;return}this.#i||(this.#i=!0,this.setAttribute("open",""),this.#t?.setAttribute("aria-expanded","true"),this.#Z(),this.#lt(),this.#e.focus({preventScroll:!0}))}#lt(){let t=this.getBoundingClientRect(),i=this.#e;i.style.removeProperty("top"),i.style.removeProperty("bottom"),i.style.removeProperty("left"),i.style.removeProperty("right");let s=i.getBoundingClientRect(),n=window.innerWidth,r=window.innerHeight,a=t.top,o=r-t.bottom;a<s.height&&o>a?(i.style.top="calc(100% + 8px)",i.style.bottom="auto"):(i.style.bottom="calc(100% + 8px)",i.style.top="auto");let c=n-t.right,l=t.left,u=s.width;t.right<u&&l<c?(i.style.left="0",i.style.right="auto"):(i.style.right="0",i.style.left="auto")}close(){if(this.#n=!1,!this.#i)return;let t=!!this.#e?.contains(document.activeElement);this.#i=!1,this.removeAttribute("open"),this.#t?.setAttribute("aria-expanded","false"),this.#P(),t&&this.#t?.isConnected&&this.#t.focus()}toggle(){this.#i?this.close():this.open()}};A("settings-panel",Yr);mt();pe();ut();var Lw={update:"package",alert:"alert-triangle",watch:"eye",system:"settings",message:"mail",stewardship:"shield"},Dw={trigger:"Notifications",unread:"{n} unread",title:"Notifications","mark-all":"Mark all read",close:"Close notifications",tabs:"Notification categories",all:"All",watching:"Watching",empty:"No notifications","watch-empty":"You aren\u2019t watching any pages yet. Use the \u201CWatch\u201D button on a page to start.","last-checked":"Last checked: {date}",never:"\u2014",changed:"Changed",unwatch:"Unwatch {title}",new:"New notification",added:"New notification: {title}. {n} unread","variant-info":"Information:","variant-success":"Success:","variant-warning":"Warning:","variant-error":"Error:"};function O(e){return String(e??"").replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[t])}function Gu(e){if(typeof e!="string"||!e.trim())return null;try{let{protocol:t}=new URL(e,location.href);return t==="http:"||t==="https:"?e:null}catch{return null}}function Ku(e,t){let i=new Date(e);if(Number.isNaN(i.getTime()))return String(e);let n=/^\d{4}-\d{2}-\d{2}$/.test(e)?{dateStyle:"medium",timeZone:"UTC"}:{dateStyle:"medium",timeStyle:"short"};try{return new Intl.DateTimeFormat(t||void 0,n).format(i)}catch{return new Intl.DateTimeFormat(void 0,n).format(i)}}var Nw=0,Zr=class extends E{static observedAttributes=["variant","position"];#t="panel";#e=0;#i=null;#n=null;#s=null;#o=null;#r=new Set;#a=[];#l=!1;#c=null;#g=new Set;#f="all";#u=[];#p=[];#y=new Set;#d=!1;#m=!1;#h=null;setup(){let t=++this.#e;return this.#t=this.getAttribute("mode")==="banner"?"banner":"panel",this.#t==="banner"?this.#k(t):(this.#m&&(this.removeAttribute("role"),this.#m=!1),this.#_(t)),!0}teardown(){this.#e++,this.#d=!1,this.#c!=null&&(clearInterval(this.#c),this.#c=null),this.#l&&(this.#l=!1,this.#nt(),this.#s&&(this.#s.hidden=!0),this.#i?.setAttribute("aria-expanded","false"))}attributeChangedCallback(t,i,s){i===s||this.#t!=="banner"||!this.hasAttribute("data-upgraded")||(t==="variant"&&(this.dataset.variant=s||"info",this.#A(),this.#w()),t==="position"&&(this.dataset.position=s||"top"))}#E(t){return t===this.#e&&this.isConnected}#v(t,i={}){let s=this.getAttribute(`data-label-${t}`)??Dw[t]??t;for(let[n,r]of Object.entries(i))s=s.replaceAll(`{${n}}`,String(r));return s}#S(){let t=(this.getAttribute("toast-new")||"").trim(),i=null;if(t){try{i=document.querySelector(t)}catch{i=null}i&&i.localName!=="toast-msg"&&(i=null)}return i??document.querySelector("toast-msg")}#b(){return this.closest("[lang]")?.lang||document.documentElement.lang||void 0}get notifications(){return[...this.#a]}set notifications(t){this.#t==="panel"&&(this.#a=Array.isArray(t)?t:[],this.#C(),this.dispatchEvent(new CustomEvent("notification-wc:notifications-changed",{detail:{notifications:this.#a,source:"property"},bubbles:!0})))}async#k(t){let i=this.getAttribute("persist");if(i||console.warn("[notification-wc] banner mode requires a persist attribute"),this.dataset.mode="banner",this.dataset.variant=this.getAttribute("variant")||"info",this.dataset.position=this.getAttribute("position")||"top",this.#A(),this.#w(),this.listen(this,"focusin",this.#x),i){let n=Number(this.getAttribute("expires")??""),r=Number.isFinite(n)&&n>0?n*864e5:void 0,a=await C.get("notifications",i,r?{maxAge:r}:void 0);if(!this.#E(t))return;if(a&&a.dismissed){this.hidden=!0;return}}let s=this.querySelector('[value="dismiss"], [data-dismiss]');s&&this.listen(s,"click",this.#N)}#w(){this.setAttribute("role",this.dataset.variant==="error"?"alert":"status"),this.#m=!0}#A(){let t=this.dataset.variant||"info",i=this.querySelector(":scope [data-variant-prefix]");i||(i=document.createElement("span"),i.className="visually-hidden",i.setAttribute("data-variant-prefix",""),(this.querySelector(":scope > :is(p, strong, span, h2, h3, h4)")||this).prepend(i)),i.textContent=`${this.#v(`variant-${t}`)} `}#N=async t=>{t.preventDefault();let i=this.contains(document.activeElement),s=this.getAttribute("persist");this.hidden=!0,i&&this.#M(),s&&await C.set("notifications",s,{dismissed:!0}),this.dispatchEvent(new CustomEvent("notification-wc:dismiss",{bubbles:!0,composed:!0,detail:{id:s}}))};#x=t=>{let i=t.relatedTarget;i&&!this.contains(i)&&(this.#h=i)};#M(){let t=o=>!!o?.isConnected&&(typeof o.checkVisibility!="function"||o.checkVisibility()),i=[...document.querySelectorAll('notification-wc[mode="banner"]')],s=i.indexOf(this),n=[...i.slice(s+1),...i.slice(0,s).reverse()];for(let o of n){if(!t(o))continue;let c=o.querySelector("a[href], button:not([disabled])");if(c&&(c.focus({preventScroll:!0}),document.activeElement===c))return}let r=this.#h;if(this.#h=null,t(r)&&(r.focus({preventScroll:!0}),document.activeElement===r))return;let a=document.querySelector('main, [role="main"]')||document.querySelector("h1");a&&(a.hasAttribute("tabindex")||(a.setAttribute("tabindex","-1"),a.addEventListener("blur",()=>a.removeAttribute("tabindex"),{once:!0})),a.focus({preventScroll:!0}))}async#_(t){if(this.dataset.mode="panel",this.listen(document,"notification-wc:new",this.#L),await this.#F(),!!this.#E(t)&&(this.#O(),this.#$(),this.listen(document,"click",this.#st),this.listen(this,"keydown",this.#J),this.listen(this,"focusout",this.#Z),this.listen(document,"page-watch:add",this.#H),this.listen(document,"page-watch:remove",this.#H),await this.#Y(),!!this.#E(t))){if(this.getAttribute("src")){if(await this.#it(t),!this.#E(t))return;let i=Number(this.getAttribute("poll"));Number.isFinite(i)&&i>0&&(this.#c=setInterval(()=>this.#it(t),i))}this.#d=!0}}async#F(){let t=this.getAttribute("storage-key")||"notifications",i=await C.get(t,"read-ids");Array.isArray(i)&&(this.#r=new Set(i.filter(s=>typeof s=="string")))}async#D(){let t=this.getAttribute("storage-key")||"notifications";await C.set(t,"read-ids",Array.from(this.#r))}#O(){if(this.#i=this.querySelector(":scope > [data-trigger]"),this.#i){if(!this.#i.classList.contains("notification-trigger")&&this.#n===null){let i=this.#i.cloneNode(!0);i.querySelector(".notification-badge")?.remove(),this.#n=(this.#i.getAttribute("aria-label")||i.textContent||"").trim()}}else{let i=document.createElement("button");i.type="button",i.setAttribute("data-trigger",""),i.className="notification-trigger",i.innerHTML='<icon-wc name="bell" size="sm" aria-hidden="true"></icon-wc><span class="notification-badge" aria-hidden="true" hidden>0</span>',this.#i=i,this.prepend(i)}let t=this.#i.querySelector(".notification-badge");t||(t=document.createElement("span"),t.className="notification-badge",t.setAttribute("aria-hidden","true"),t.hidden=!0,this.#i.appendChild(t)),this.#o=t,this.#i.setAttribute("aria-haspopup","dialog"),this.#i.setAttribute("aria-expanded","false"),this.listen(this.#i,"click",this.#P)}#$(){let t=this.querySelector(":scope > .notification-panel");t||(t=document.createElement("div"),t.className="notification-panel",t.id=`notification-panel-${++Nw}-${Math.random().toString(36).slice(2,7)}`,this.appendChild(t)),this.#s=t;let i=t.id;t.setAttribute("role","dialog"),t.setAttribute("aria-labelledby",`${i}-title`),t.tabIndex=-1,t.hidden=!0,this.#i?.setAttribute("aria-controls",i);let s=this.#f==="all";t.innerHTML=`
485
484
  <header class="notification-header">
486
485
  <strong id="${i}-title">${O(this.#v("title"))}</strong>
487
486
  <button type="button" class="notification-mark-all">${O(this.#v("mark-all"))}</button>
@@ -498,16 +497,16 @@ svg {
498
497
  <div class="notification-tabpanel" role="tabpanel" id="${i}-watching" aria-labelledby="${i}-tab-watching" data-tab-panel="watching"${s?" hidden":""}>
499
498
  <ul class="notification-watch-list" role="list"></ul>
500
499
  </div>
501
- `,this.listen(t,"click",this.#Q),this.listen(t,"keydown",this.#R),this.#C(),this.#X()}#W(){let t=Array.from(this.querySelectorAll(":scope > article")),i=new Map;for(let s of t){let n=s.getAttribute("data-id")||s.id||`static-${i.size}`,r=s.getAttribute("data-type")||"update",a=s.getAttribute("data-date")||"",o=s.querySelector("h1, h2, h3, h4, h5, h6")?.textContent?.trim()||n,l=s.querySelector("p")?.textContent?.trim()||"",u=s.querySelector("a");i.set(n,{id:n,type:r,date:a,title:o,body:l,url:u?.getAttribute("href")||null,source:"static"})}for(let s of[...this.#p,...this.#a])if(!(!s||typeof s.id!="string")){if(s.dismissed){i.delete(s.id);continue}i.set(s.id,{...i.get(s.id),...s,source:"dynamic"})}return Array.from(i.values()).sort((s,n)=>{let r=s.date&&Date.parse(s.date)||0;return(n.date&&Date.parse(n.date)||0)-r})}#C(){if(!this.#s)return;let t=this.#s.querySelector(".notification-list"),i=this.#s.querySelector(".notification-footer");if(!t)return;let s=this.#W(),n=this.#b(),r=this.#q(t,a=>a.getAttribute("data-notification-id"));t.innerHTML=s.map(a=>this.#tt(a,n)).join(""),r(),i&&(i.hidden=s.length>0),this.#I(s),this.#T(s)}#T(t){let i=t.filter(r=>!this.#y.has(r.id));for(let r of i)this.#y.add(r.id);if(!this.#d)return;let s=i.find(r=>!this.#r.has(r.id));if(!s)return;let n=t.filter(r=>!this.#r.has(r.id)).length;G(this.#v("added",{title:s.title||this.#v("new"),n}))}#q(t,i){let s=document.activeElement,n=s&&t.contains(s)?s.closest("li"):null;if(!s||!n)return()=>{};let r=i(n),a=[...t.children].indexOf(n),o=s.matches("[data-watch-unwatch]")?"[data-watch-unwatch]":"a, button";return()=>{let c=[...t.children],l=r!=null&&c.find(d=>i(d)===r)||c[Math.min(a,c.length-1)];(l?.querySelector(o)??l?.querySelector("a, button")??this.#s)?.focus({preventScroll:!0})}}#tt(t,i){let s=M0[t.type]||"bell",n=this.#r.has(t.id),r=t.date?Xu(t.date,i):"",a=`
500
+ `,this.listen(t,"click",this.#Q),this.listen(t,"keydown",this.#R),this.#C(),this.#X()}#W(){let t=Array.from(this.querySelectorAll(":scope > article")),i=new Map;for(let s of t){let n=s.getAttribute("data-id")||s.id||`static-${i.size}`,r=s.getAttribute("data-type")||"update",a=s.getAttribute("data-date")||"",o=s.querySelector("h1, h2, h3, h4, h5, h6")?.textContent?.trim()||n,l=s.querySelector("p")?.textContent?.trim()||"",u=s.querySelector("a");i.set(n,{id:n,type:r,date:a,title:o,body:l,url:u?.getAttribute("href")||null,source:"static"})}for(let s of[...this.#p,...this.#a])if(!(!s||typeof s.id!="string")){if(s.dismissed){i.delete(s.id);continue}i.set(s.id,{...i.get(s.id),...s,source:"dynamic"})}return Array.from(i.values()).sort((s,n)=>{let r=s.date&&Date.parse(s.date)||0;return(n.date&&Date.parse(n.date)||0)-r})}#C(){if(!this.#s)return;let t=this.#s.querySelector(".notification-list"),i=this.#s.querySelector(".notification-footer");if(!t)return;let s=this.#W(),n=this.#b(),r=this.#q(t,a=>a.getAttribute("data-notification-id"));t.innerHTML=s.map(a=>this.#tt(a,n)).join(""),r(),i&&(i.hidden=s.length>0),this.#I(s),this.#T(s)}#T(t){let i=t.filter(r=>!this.#y.has(r.id));for(let r of i)this.#y.add(r.id);if(!this.#d)return;let s=i.find(r=>!this.#r.has(r.id));if(!s)return;let n=t.filter(r=>!this.#r.has(r.id)).length;G(this.#v("added",{title:s.title||this.#v("new"),n}))}#q(t,i){let s=document.activeElement,n=s&&t.contains(s)?s.closest("li"):null;if(!s||!n)return()=>{};let r=i(n),a=[...t.children].indexOf(n),o=s.matches("[data-watch-unwatch]")?"[data-watch-unwatch]":"a, button";return()=>{let c=[...t.children],l=r!=null&&c.find(d=>i(d)===r)||c[Math.min(a,c.length-1)];(l?.querySelector(o)??l?.querySelector("a, button")??this.#s)?.focus({preventScroll:!0})}}#tt(t,i){let s=Lw[t.type]||"bell",n=this.#r.has(t.id),r=t.date?Ku(t.date,i):"",a=`
502
501
  <icon-wc class="notification-type-icon" name="${O(s)}" size="sm" aria-hidden="true"></icon-wc>
503
502
  <span class="notification-body">
504
503
  <strong class="notification-title">${O(t.title)}</strong>
505
504
  ${t.body?`<span class="notification-text">${O(t.body)}</span>`:""}
506
505
  ${r?`<time datetime="${O(t.date)}">${O(r)}</time>`:""}
507
506
  </span>
508
- `,o=Yu(t.url),c=o?"a":"button",l=o?`href="${O(o)}"`:'type="button"';return`<li data-notification-id="${O(t.id)}" data-type="${O(t.type||"update")}"${n?" data-read":""}>
507
+ `,o=Gu(t.url),c=o?"a":"button",l=o?`href="${O(o)}"`:'type="button"';return`<li data-notification-id="${O(t.id)}" data-type="${O(t.type||"update")}"${n?" data-read":""}>
509
508
  <${c} class="notification-row" ${l}>${a}</${c}>
510
- </li>`}#I(t=this.#W()){if(!this.#o||!this.#i)return;let i=t.filter(r=>!this.#r.has(r.id)).length,s=this.#i.querySelector("icon-wc");i>0?(this.#o.textContent=String(i),this.#o.hidden=!1,s?.setAttribute("name","bell-dot"),this.setAttribute("data-unread",String(i))):(this.#o.hidden=!0,s?.setAttribute("name","bell"),this.removeAttribute("data-unread"));let n=this.#n||this.#v("trigger");this.#i.setAttribute("aria-label",i>0?`${n}, ${this.#v("unread",{n:i})}`:n)}#L=t=>{if(t.target instanceof Element&&t.target.localName==="notification-wc")return;let i=t.detail?.notification;!i||typeof i.id!="string"||this.#p.some(s=>s.id===i.id)||(this.#p.push(i),this.#C())};#H=()=>{this.#Y()};async#Y(){let t=this.#e,i;try{i=await x.list("watches")}catch{i=[]}this.#E(t)&&(this.#u=Array.isArray(i)?i:[],this.#X())}#X(){if(!this.#s)return;let t=this.#s.querySelector(".notification-watch-list"),i=this.#s.querySelector(".notification-tab-count");if(!t)return;let s=this.#b(),n=this.#q(t,r=>r.querySelector("[data-watch-key]")?.getAttribute("data-watch-key"));if(t.innerHTML=this.#u.map(r=>this.#B(r,s)).join("")||`<li class="notification-empty"><em>${O(this.#v("watch-empty"))}</em></li>`,n(),i){let r=this.#u.length;i.textContent=String(r),i.hidden=r===0}}#B(t,i){let s=t.data||{},n=s.url||t.key,r=s.title||n,a=s.lastChecked?Xu(s.lastChecked,i):this.#v("never"),o=!!s.lastChanged,c=Yu(n),l=`
509
+ </li>`}#I(t=this.#W()){if(!this.#o||!this.#i)return;let i=t.filter(r=>!this.#r.has(r.id)).length,s=this.#i.querySelector("icon-wc");i>0?(this.#o.textContent=String(i),this.#o.hidden=!1,s?.setAttribute("name","bell-dot"),this.setAttribute("data-unread",String(i))):(this.#o.hidden=!0,s?.setAttribute("name","bell"),this.removeAttribute("data-unread"));let n=this.#n||this.#v("trigger");this.#i.setAttribute("aria-label",i>0?`${n}, ${this.#v("unread",{n:i})}`:n)}#L=t=>{if(t.target instanceof Element&&t.target.localName==="notification-wc")return;let i=t.detail?.notification;!i||typeof i.id!="string"||this.#p.some(s=>s.id===i.id)||(this.#p.push(i),this.#C())};#H=()=>{this.#Y()};async#Y(){let t=this.#e,i;try{i=await C.list("watches")}catch{i=[]}this.#E(t)&&(this.#u=Array.isArray(i)?i:[],this.#X())}#X(){if(!this.#s)return;let t=this.#s.querySelector(".notification-watch-list"),i=this.#s.querySelector(".notification-tab-count");if(!t)return;let s=this.#b(),n=this.#q(t,r=>r.querySelector("[data-watch-key]")?.getAttribute("data-watch-key"));if(t.innerHTML=this.#u.map(r=>this.#B(r,s)).join("")||`<li class="notification-empty"><em>${O(this.#v("watch-empty"))}</em></li>`,n(),i){let r=this.#u.length;i.textContent=String(r),i.hidden=r===0}}#B(t,i){let s=t.data||{},n=s.url||t.key,r=s.title||n,a=s.lastChecked?Ku(s.lastChecked,i):this.#v("never"),o=!!s.lastChanged,c=Gu(n),l=`
511
510
  <icon-wc class="notification-type-icon" name="eye" size="sm" aria-hidden="true"></icon-wc>
512
511
  <span class="notification-body">
513
512
  <strong class="notification-title">${O(r)}${o?` <span class="notification-changed-badge">${O(this.#v("changed"))}</span>`:""}</strong>
@@ -518,7 +517,7 @@ svg {
518
517
  <button type="button" class="notification-unwatch" data-watch-unwatch data-watch-key="${O(t.key)}" aria-label="${O(this.#v("unwatch",{title:r}))}">
519
518
  <icon-wc name="x" size="xs" aria-hidden="true"></icon-wc>
520
519
  </button>
521
- </li>`}#z(t,{focus:i=!1}={}){if(this.#s){this.#f=t;for(let s of this.#s.querySelectorAll('[role="tab"]')){let n=s.dataset.tab===t;s.setAttribute("aria-selected",n?"true":"false"),s.setAttribute("tabindex",n?"0":"-1"),n&&i&&s.focus()}for(let s of this.#s.querySelectorAll("[data-tab-panel]"))s.hidden=s.dataset.tabPanel!==t}}#R=t=>{let i=t.target.closest?.('[role="tab"]');if(!i||!this.#s)return;let s=[...this.#s.querySelectorAll('[role="tab"]')],n=s.indexOf(i),r=getComputedStyle(this.#s).direction==="rtl",a=-1;if(t.key==="ArrowRight")a=r?n-1:n+1;else if(t.key==="ArrowLeft")a=r?n+1:n-1;else if(t.key==="Home")a=0;else if(t.key==="End")a=s.length-1;else return;t.preventDefault(),a=(a+s.length)%s.length;let o=s[a].dataset.tab;o&&this.#z(o,{focus:!0})};#Q=t=>{let i=t.target,s=i.closest('[role="tab"]');if(s?.dataset.tab){this.#z(s.dataset.tab);return}if(i.closest(".notification-mark-all")){this.#K();return}if(i.closest(".notification-close")){this.#j({restoreFocus:!0});return}let n=i.closest("[data-watch-unwatch]");if(n){this.#G(t,n);return}let r=i.closest(".notification-list .notification-row");r&&this.#U(r)};async#G(t,i){t.preventDefault(),t.stopPropagation();let s=i.getAttribute("data-watch-key");if(!s||!this.#s)return;let r=[...this.#s.querySelectorAll("[data-watch-unwatch]")].indexOf(i),a=this.#u.find(l=>l.key===s);await x.remove("watches",s),this.#u=this.#u.filter(l=>l.key!==s),this.#X();let o=[...this.#s.querySelectorAll("[data-watch-unwatch]")];(o[Math.min(r,o.length-1)]||this.#s.querySelector('[role="tab"][data-tab="watching"]'))?.focus(),this.dispatchEvent(new CustomEvent("page-watch:remove",{bubbles:!0,composed:!0,detail:{url:a?.data?.url||s,subscriptionId:a?.data?.subscriptionId||null}}))}#P=t=>{t.stopPropagation(),this.#l?this.#j():this.#et()};#st=t=>{if(this.#l){if(!this.contains(t.target)){this.#j();return}if(t.target===this.#s&&this.#s?.matches(":popover-open")){let i=this.#s.getBoundingClientRect(),{clientX:s,clientY:n}=t;(s<i.left||s>i.right||n<i.top||n>i.bottom)&&this.#j({restoreFocus:!0})}}};#V(){return!!this.closest("[popover]")||matchMedia("(width < 37.5rem)").matches}#Z=t=>{let i=t.relatedTarget;this.#l&&i&&!this.contains(i)&&this.#j()};#J=t=>{t.key==="Escape"&&!t.defaultPrevented&&this.#l&&(t.preventDefault(),this.#j({restoreFocus:!0}))};async#U(t){let i=t.closest("[data-notification-id]"),s=i?.getAttribute("data-notification-id");!i||!s||this.#r.has(s)||(this.#r.add(s),i.setAttribute("data-read",""),this.#I(),this.dispatchEvent(new CustomEvent("notification-wc:read",{bubbles:!0,composed:!0,detail:{id:s}})),await this.#D())}async#K(){let t=this.#W();for(let i of t)this.#r.add(i.id);this.#C();for(let i of t)this.dispatchEvent(new CustomEvent("notification-wc:read",{bubbles:!0,composed:!0,detail:{id:i.id}}));await this.#D()}#et(){this.#s&&(this.#l=!0,this.#s.hidden=!1,this.#V()&&typeof this.#s.showPopover=="function"&&(this.#s.setAttribute("popover","manual"),this.#s.showPopover()),this.#i?.setAttribute("aria-expanded","true"),this.#s.focus({preventScroll:!0}),this.#Y(),this.dispatchEvent(new CustomEvent("notification-wc:open",{bubbles:!0,composed:!0})))}#j({restoreFocus:t=!1}={}){if(!this.#s)return;let i=this.#s.contains(document.activeElement);this.#l=!1,this.#nt(),this.#s.hidden=!0,this.#i?.setAttribute("aria-expanded","false"),(t||i)&&this.#i?.focus(),this.dispatchEvent(new CustomEvent("notification-wc:close",{bubbles:!0,composed:!0}))}#nt(){let t=this.#s;t?.hasAttribute("popover")&&(t.matches(":popover-open")&&t.hidePopover(),t.removeAttribute("popover"))}async#it(t){let i=this.getAttribute("src");if(!i)return;let s,n=0;try{if(i.startsWith("http")||i.startsWith("/")){let l=await fetch(i,{headers:{accept:"application/json"}});if(n=l.status,!l.ok)throw new Error(`${l.status}`);s=await l.json()}else s=await new J(i).get("/")}catch(l){let u=l instanceof K?l.status:n;if(u===404||u===503)return;let d=l instanceof K?`${l.status}`:String(l);console.warn("[notification-wc] failed to fetch",i,d);return}if(!this.#E(t))return;let r=Array.isArray(s)?s:Array.isArray(s?.notifications)?s.notifications:[],a=this.#g,o=a.size===0,c=this.hasAttribute("toast-new")?this.#S():null;for(let l of r)l?.id&&(a.has(l.id)||(this.dispatchEvent(new CustomEvent("notification-wc:new",{bubbles:!0,composed:!0,detail:{notification:l}})),!o&&c&&typeof c.show=="function"&&(c.show({message:l.title||l.body||this.#v("new"),variant:l.type==="alert"||l.type==="stewardship"?"warning":"info",duration:5e3}),this.#y.add(l.id))),a.add(l.id));this.#a=r,this.#C()}};E("notification-wc",Zr);var J0={watch:"Watch for updates",watching:"Watching",action:"Watch this page for updates",stop:"Stop watching this page"},oa=class extends k{static observedAttributes=["variant","label","data-label-watch","data-label-watching","data-label-action","data-label-stop"];#t=null;#e=null;setup(){if(this.hasAttribute("server-sync")){let s=window;s.vbPageWatch={...s.vbPageWatch??{},serverSync:!0}}let t=this.#n();this.dataset.variant=t,this.querySelectorAll(":scope > [data-watch-wc]").forEach(s=>s.remove());let i=this.#s(t);this.#t=i,this.appendChild(i),this.#o(),this.#e=new MutationObserver(()=>this.#o()),this.#e.observe(i,{attributes:!0,attributeFilter:["aria-pressed"]}),Promise.resolve().then(()=>(aa(),ra)).catch(()=>{})}teardown(){this.#e?.disconnect(),this.#e=null,this.#t?.remove(),this.#t=null}attributeChangedCallback(t,i,s){i===s||!this.hasAttribute("data-upgraded")||this._reinit()}#i(t){return this.getAttribute(`data-label-${t}`)??J0[t]}#n(){let t=this.getAttribute("variant");return t==="compact"||t==="button"?t:"icon"}#s(t){let i=document.createElement("button");i.type="button",i.className="ghost",i.setAttribute("data-watch-page",""),i.setAttribute("data-watch-wc",""),i.setAttribute("data-watch-label-locked",""),i.setAttribute("aria-pressed","false");let s=document.createElement("icon-wc");return s.setAttribute("name","bookmark"),s.setAttribute("size",t==="icon"?"sm":"xs"),s.setAttribute("aria-hidden","true"),i.appendChild(s),t==="icon"?i.setAttribute("aria-label",this.#i("action")):i.appendChild(document.createElement("span")),i}#o(){let t=this.#t;if(!t)return;let i=t.getAttribute("aria-pressed")==="true";t.querySelector("icon-wc")?.setAttribute("name",i?"bookmark-check":"bookmark");let s=t.querySelector(":scope > span");s?(s.textContent=this.getAttribute("label")??this.#i(i?"watching":"watch"),t.removeAttribute("title")):t.setAttribute("title",i?this.#i("stop"):this.#i("action"))}};E("watch-wc",oa);function vd(e){let t=!1;try{t=sessionStorage.getItem("vb_optout")==="1"}catch{}let i=!1;if(typeof e?.consent=="function")try{i=e.consent()===!1}catch{i=!0}return{user:t,gpc:navigator.globalPrivacyControl===!0,dnt:navigator.doNotTrack==="1",consent:i}}function wd(e){let t=vd(e);return t.user?"user":t.gpc?"gpc":t.dnt?"dnt":t.consent?"consent":null}function ni(e){return wd(e)!==null}function Ad(e){return e?.closest?.("[data-vb-no-track]")!=null}function Q0(){let{dataset:e}=document.documentElement,t={};for(let i of Object.keys(e)){let s=e[i];s!=null&&s!==""&&(t[i]=s)}return t}var tw=new Set(["track-history","track-history-params","no-track-history"]);function ew(){let e={};for(let i of document.querySelectorAll('meta[name^="vb:"]')){let s=i.getAttribute("name")?.slice(3),n=i.getAttribute("content")?.trim();s&&tw.has(s)||s&&n&&(e[s]=n)}let t=[];for(let i of document.querySelectorAll('meta[name="concept"]')){let s=i.getAttribute("content")?.trim();s&&t.push(s)}return t.length&&(e.concepts=t),e}function iw(e,t){if(!t?.length)return e;for(let{pattern:i,replace:s}of t)if(i.test(e))return e.replace(i,s);return e}function sw(e,t){let i=JSON.stringify(t);if(typeof navigator.sendBeacon=="function"){let s=new Blob([i],{type:"application/json"});if(navigator.sendBeacon(e,s))return!0}try{return fetch(e,{method:"POST",body:i,keepalive:!0,headers:{"content-type":"application/json"}}),!0}catch{return!1}}var z={config:null,queue:[]},ye={sent:0,logged:0,iframeDisabled:!1},ca=Symbol.for("vanilla-breeze.analytics"),ua="vb:analytics-status";function ys(){try{document.dispatchEvent(new CustomEvent(ua))}catch{}}function da(e){return`${(z.config?.endpoint??"/api/analytics").replace(/\/+$/,"")}/${e}`}function vs(e,t){let i=z.config;if(!i)throw new Error("analytics: buildEnvelope called before init");let s=iw(location.pathname+location.search,i.urlMasks),n=typeof i.context=="function"?i.context()??{}:{};return{name:e,ts:Date.now(),site:i.siteId,path:s,referrer:document.referrer||"",context:{...Q0(),...ew(),...n},props:t??{}}}function ws(e,t){let i=z.config;if(!i||i.transport==="disabled")return!1;if(i.transport==="console")return console.log("%c[vb:analytics]","color:#0aa;font-weight:600",e,t),ye.logged++,ys(),!0;let s=sw(da(e),t);return s&&(ye.sent++,ys()),s}function Ed(){let e=z.config?.sampleRate??1;return e>=1?!0:Math.random()<e}var bd=null;function kd(){if(!z.config||ni(z.config)||document.documentElement.hasAttribute("data-vb-no-track")||!Ed())return;let e=location.pathname+location.search;e!==bd&&(bd=e,ws("hit",vs("page.view",{})))}function nw(){let e,t=()=>{clearTimeout(e),e=setTimeout(kd,100)},i=history.pushState.bind(history);history.pushState=function(...n){i(...n),t()};let s=history.replaceState.bind(history);history.replaceState=function(...n){s(...n),t()},window.addEventListener("popstate",t)}function rw(e){let t={};for(let[i,s]of Object.entries(e.dataset)){if(i==="vbEvent"||!i.startsWith("vbEvent"))continue;let n=i.slice(7).replace(/^./,r=>r.toLowerCase());t[n]=s}return t}function aw(e){if(!z.config||ni(z.config))return;let i=e.target?.closest?.("[data-vb-event]");if(!i||Ad(i))return;let s=i.dataset.vbEvent;s&&ha.track(s,rw(i))}function yd(){let e=document.querySelectorAll('a[href^="http"]');for(let t of e){if(t.hostname===location.hostname||Ad(t)||t.hasAttribute("data-vb-analytics-wired"))continue;let i=encodeURIComponent(z.config?.siteId??"default"),s=`${da("click")}?site=${i}&from=${encodeURIComponent(location.pathname)}`,n=!t.hasAttribute("ping"),r=()=>{n&&(ni(z.config)?t.removeAttribute("ping"):t.setAttribute("ping",s))};t.addEventListener("click",r,{capture:!0}),t.addEventListener("auxclick",r,{capture:!0}),t.addEventListener("click",()=>{if(ni(z.config))return;let a=navigator.userAgent;/Firefox|Brave/.test(a)&&ws("click",vs("link.outbound",{to:t.hostname,href:t.href}))}),t.setAttribute("data-vb-analytics-wired","")}}function la(){if(!z.queue.length)return;let e=z.queue.splice(0);ws("events",{site:z.config?.siteId,events:e})}function ow(){document.visibilityState==="hidden"&&la()}var cw={endpoint:"/api/analytics",siteId:"default",transport:"disabled",sampleRate:1,consent:null,context:null,urlMasks:null,autoPageView:!0,autoOutboundLinks:!0,autoDeclarative:!0,allowInIframe:!1};function lw(){try{return window.top!==window.self}catch{return!0}}var ha={init(e={}){if(z.config)return;let t={...cw,...e};if(z.config=t,globalThis[ca]||(globalThis[ca]=ha),queueMicrotask(ys),lw()&&!t.allowInIframe){ye.iframeDisabled=!0,t.transport="disabled",t.autoPageView=!1,t.autoOutboundLinks=!1,t.autoDeclarative=!1;return}t.transport==="disabled"&&(t.autoOutboundLinks=!1),t.autoDeclarative&&document.addEventListener("click",aw,{capture:!0}),t.autoOutboundLinks&&(yd(),new MutationObserver(()=>yd()).observe(document.body,{childList:!0,subtree:!0})),t.autoPageView&&(kd(),nw()),document.addEventListener("visibilitychange",ow),window.addEventListener("pagehide",la)},track(e,t={}){z.config&&(ni(z.config)||Ed()&&ws("hit",vs(e,t)))},flush:la,setConsent(e){try{e?sessionStorage.removeItem("vb_optout"):sessionStorage.setItem("vb_optout","1")}catch{}ys()},getStatus(){let e=z.config,t=vd(e),i=wd(e),s=null;if(e)try{s=vs("page.view",{})}catch{s=null}let n=e?.transport??null;return{initialized:e!=null,active:e!=null&&n!=="disabled"&&i===null,optedOut:i!==null,reason:i,signals:t,transport:n,inIframe:ye.iframeDisabled,endpoint:e?da("hit"):null,siteId:e?.siteId??null,sampleRate:e?.sampleRate??null,outboundLinks:e?.autoOutboundLinks??!1,queued:z.queue.length,sent:ye.sent,logged:ye.logged,collects:s?Object.keys(s):[],contextKeys:s?Object.keys(s.context):[],preview:s}},get config(){return z.config?{...z.config}:null}};function fa(){return globalThis[ca]??ha}var uw="Analytics on this page",dw=2;function hw(e){let t=Number.parseInt(e??"",10);return Number.isInteger(t)&&t>=1&&t<=6?t:dw}var Sd={gpc:"your browser sends a Global Privacy Control signal",dnt:"your browser sends Do Not Track",consent:"this site has not been given consent to collect analytics"};function fw(e){if(!e||!e.initialized)return{state:"off",reason:"uninitialized",text:"Off. The analytics runtime is not running on this page, so nothing is sent."};if(e.inIframe)return{state:"off",reason:"iframe",text:"Off. Analytics does not run inside embedded frames, so nothing is sent."};if(e.reason==="user")return{state:"paused",reason:"user",text:"Paused for this tab. Nothing is being sent."};if(e.reason){let i=Sd[e.reason];return{state:"off",reason:e.reason,text:`Off because ${i}. Nothing is sent.`}}if(e.transport==="disabled")return{state:"off",reason:"disabled",text:"Off. This site has analytics switched off, so nothing is sent."};if(e.transport==="console")return{state:"debug",reason:null,text:"Debug mode. Events are written to this browser\u2019s console, not sent anywhere."};let t=typeof e.sampleRate=="number"&&e.sampleRate<1?` (a ${Math.round(e.sampleRate*100)}% sample)`:"";return{state:"active",reason:null,text:`Active. Events from this page are sent to ${e.endpoint}${t}.`}}function pw(e){return e?.signals?["gpc","dnt","consent"].filter(t=>e.signals[t]):[]}var pa=class extends k{static get observedAttributes(){return["heading","heading-level"]}#t={};setup(){(!this.#t.status||!this.contains(this.#t.status))&&this.#s(),this.listen(this,"click",this.#i),this.listen(document,ua,()=>this.refresh()),this.refresh()}attributeChangedCallback(t){this.#t.heading&&(t==="heading"&&(this.#t.heading.textContent=this.#e),t==="heading-level"&&this.#o())}get#e(){return this.getAttribute("heading")||uw}get status(){let t=fa();return typeof t?.getStatus=="function"?t.getStatus():null}#i=t=>{let i=t.target?.closest?.("[data-analytics-action]");if(!i||!this.contains(i)||i.getAttribute("aria-disabled")==="true")return;let s=i.dataset.analyticsAction;s==="toggle"&&this.#n(),s==="refresh"&&this.refresh()};#n(){let t=!this.status?.signals?.user;fa().setConsent(!t),this.dispatchEvent(new CustomEvent(t?"analytics-panel:optout":"analytics-panel:optin",{bubbles:!0,composed:!0})),this.refresh()}#s(){let t=`analytics-panel-${Math.random().toString(36).slice(2,8)}`;this.innerHTML=`
520
+ </li>`}#z(t,{focus:i=!1}={}){if(this.#s){this.#f=t;for(let s of this.#s.querySelectorAll('[role="tab"]')){let n=s.dataset.tab===t;s.setAttribute("aria-selected",n?"true":"false"),s.setAttribute("tabindex",n?"0":"-1"),n&&i&&s.focus()}for(let s of this.#s.querySelectorAll("[data-tab-panel]"))s.hidden=s.dataset.tabPanel!==t}}#R=t=>{let i=t.target.closest?.('[role="tab"]');if(!i||!this.#s)return;let s=[...this.#s.querySelectorAll('[role="tab"]')],n=s.indexOf(i),r=getComputedStyle(this.#s).direction==="rtl",a=-1;if(t.key==="ArrowRight")a=r?n-1:n+1;else if(t.key==="ArrowLeft")a=r?n+1:n-1;else if(t.key==="Home")a=0;else if(t.key==="End")a=s.length-1;else return;t.preventDefault(),a=(a+s.length)%s.length;let o=s[a].dataset.tab;o&&this.#z(o,{focus:!0})};#Q=t=>{let i=t.target,s=i.closest('[role="tab"]');if(s?.dataset.tab){this.#z(s.dataset.tab);return}if(i.closest(".notification-mark-all")){this.#K();return}if(i.closest(".notification-close")){this.#j({restoreFocus:!0});return}let n=i.closest("[data-watch-unwatch]");if(n){this.#G(t,n);return}let r=i.closest(".notification-list .notification-row");r&&this.#U(r)};async#G(t,i){t.preventDefault(),t.stopPropagation();let s=i.getAttribute("data-watch-key");if(!s||!this.#s)return;let r=[...this.#s.querySelectorAll("[data-watch-unwatch]")].indexOf(i),a=this.#u.find(l=>l.key===s);await C.remove("watches",s),this.#u=this.#u.filter(l=>l.key!==s),this.#X();let o=[...this.#s.querySelectorAll("[data-watch-unwatch]")];(o[Math.min(r,o.length-1)]||this.#s.querySelector('[role="tab"][data-tab="watching"]'))?.focus(),this.dispatchEvent(new CustomEvent("page-watch:remove",{bubbles:!0,composed:!0,detail:{url:a?.data?.url||s,subscriptionId:a?.data?.subscriptionId||null}}))}#P=t=>{t.stopPropagation(),this.#l?this.#j():this.#et()};#st=t=>{if(this.#l){if(!this.contains(t.target)){this.#j();return}if(t.target===this.#s&&this.#s?.matches(":popover-open")){let i=this.#s.getBoundingClientRect(),{clientX:s,clientY:n}=t;(s<i.left||s>i.right||n<i.top||n>i.bottom)&&this.#j({restoreFocus:!0})}}};#V(){return!!this.closest("[popover]")||matchMedia("(width < 37.5rem)").matches}#Z=t=>{let i=t.relatedTarget;this.#l&&i&&!this.contains(i)&&this.#j()};#J=t=>{t.key==="Escape"&&!t.defaultPrevented&&this.#l&&(t.preventDefault(),this.#j({restoreFocus:!0}))};async#U(t){let i=t.closest("[data-notification-id]"),s=i?.getAttribute("data-notification-id");!i||!s||this.#r.has(s)||(this.#r.add(s),i.setAttribute("data-read",""),this.#I(),this.dispatchEvent(new CustomEvent("notification-wc:read",{bubbles:!0,composed:!0,detail:{id:s}})),await this.#D())}async#K(){let t=this.#W();for(let i of t)this.#r.add(i.id);this.#C();for(let i of t)this.dispatchEvent(new CustomEvent("notification-wc:read",{bubbles:!0,composed:!0,detail:{id:i.id}}));await this.#D()}#et(){this.#s&&(this.#l=!0,this.#s.hidden=!1,this.#V()&&typeof this.#s.showPopover=="function"&&(this.#s.setAttribute("popover","manual"),this.#s.showPopover()),this.#i?.setAttribute("aria-expanded","true"),this.#s.focus({preventScroll:!0}),this.#Y(),this.dispatchEvent(new CustomEvent("notification-wc:open",{bubbles:!0,composed:!0})))}#j({restoreFocus:t=!1}={}){if(!this.#s)return;let i=this.#s.contains(document.activeElement);this.#l=!1,this.#nt(),this.#s.hidden=!0,this.#i?.setAttribute("aria-expanded","false"),(t||i)&&this.#i?.focus(),this.dispatchEvent(new CustomEvent("notification-wc:close",{bubbles:!0,composed:!0}))}#nt(){let t=this.#s;t?.hasAttribute("popover")&&(t.matches(":popover-open")&&t.hidePopover(),t.removeAttribute("popover"))}async#it(t){let i=this.getAttribute("src");if(!i)return;let s,n=0;try{if(i.startsWith("http")||i.startsWith("/")){let l=await fetch(i,{headers:{accept:"application/json"}});if(n=l.status,!l.ok)throw new Error(`${l.status}`);s=await l.json()}else s=await new J(i).get("/")}catch(l){let u=l instanceof K?l.status:n;if(u===404||u===503)return;let d=l instanceof K?`${l.status}`:String(l);console.warn("[notification-wc] failed to fetch",i,d);return}if(!this.#E(t))return;let r=Array.isArray(s)?s:Array.isArray(s?.notifications)?s.notifications:[],a=this.#g,o=a.size===0,c=this.hasAttribute("toast-new")?this.#S():null;for(let l of r)l?.id&&(a.has(l.id)||(this.dispatchEvent(new CustomEvent("notification-wc:new",{bubbles:!0,composed:!0,detail:{notification:l}})),!o&&c&&typeof c.show=="function"&&(c.show({message:l.title||l.body||this.#v("new"),variant:l.type==="alert"||l.type==="stewardship"?"warning":"info",duration:5e3}),this.#y.add(l.id))),a.add(l.id));this.#a=r,this.#C()}};A("notification-wc",Zr);var Yw={watch:"Watch for updates",watching:"Watching",action:"Watch this page for updates",stop:"Stop watching this page"},oa=class extends E{static observedAttributes=["variant","label","data-label-watch","data-label-watching","data-label-action","data-label-stop"];#t=null;#e=null;setup(){if(this.hasAttribute("server-sync")){let s=window;s.vbPageWatch={...s.vbPageWatch??{},serverSync:!0}}let t=this.#n();this.dataset.variant=t,this.querySelectorAll(":scope > [data-watch-wc]").forEach(s=>s.remove());let i=this.#s(t);this.#t=i,this.appendChild(i),this.#o(),this.#e=new MutationObserver(()=>this.#o()),this.#e.observe(i,{attributes:!0,attributeFilter:["aria-pressed"]}),Promise.resolve().then(()=>(aa(),ra)).catch(()=>{})}teardown(){this.#e?.disconnect(),this.#e=null,this.#t?.remove(),this.#t=null}attributeChangedCallback(t,i,s){i===s||!this.hasAttribute("data-upgraded")||this._reinit()}#i(t){return this.getAttribute(`data-label-${t}`)??Yw[t]}#n(){let t=this.getAttribute("variant");return t==="compact"||t==="button"?t:"icon"}#s(t){let i=document.createElement("button");i.type="button",i.className="ghost",i.setAttribute("data-watch-page",""),i.setAttribute("data-watch-wc",""),i.setAttribute("data-watch-label-locked",""),i.setAttribute("aria-pressed","false");let s=document.createElement("icon-wc");return s.setAttribute("name","bookmark"),s.setAttribute("size",t==="icon"?"sm":"xs"),s.setAttribute("aria-hidden","true"),i.appendChild(s),t==="icon"?i.setAttribute("aria-label",this.#i("action")):i.appendChild(document.createElement("span")),i}#o(){let t=this.#t;if(!t)return;let i=t.getAttribute("aria-pressed")==="true";t.querySelector("icon-wc")?.setAttribute("name",i?"bookmark-check":"bookmark");let s=t.querySelector(":scope > span");s?(s.textContent=this.getAttribute("label")??this.#i(i?"watching":"watch"),t.removeAttribute("title")):t.setAttribute("title",i?this.#i("stop"):this.#i("action"))}};A("watch-wc",oa);function bd(e){let t=!1;try{t=sessionStorage.getItem("vb_optout")==="1"}catch{}let i=!1;if(typeof e?.consent=="function")try{i=e.consent()===!1}catch{i=!0}return{user:t,gpc:navigator.globalPrivacyControl===!0,dnt:navigator.doNotTrack==="1",consent:i}}function yd(e){let t=bd(e);return t.user?"user":t.gpc?"gpc":t.dnt?"dnt":t.consent?"consent":null}function ii(e){return yd(e)!==null}function vd(e){return e?.closest?.("[data-vb-no-track]")!=null}function Xw(){let{dataset:e}=document.documentElement,t={};for(let i of Object.keys(e)){let s=e[i];s!=null&&s!==""&&(t[i]=s)}return t}var Zw=new Set(["track-history","track-history-params","no-track-history"]);function Jw(){let e={};for(let i of document.querySelectorAll('meta[name^="vb:"]')){let s=i.getAttribute("name")?.slice(3),n=i.getAttribute("content")?.trim();s&&Zw.has(s)||s&&n&&(e[s]=n)}let t=[];for(let i of document.querySelectorAll('meta[name="concept"]')){let s=i.getAttribute("content")?.trim();s&&t.push(s)}return t.length&&(e.concepts=t),e}function Qw(e,t){if(!t?.length)return e;for(let{pattern:i,replace:s}of t)if(i.test(e))return e.replace(i,s);return e}function t0(e,t){let i=JSON.stringify(t);if(typeof navigator.sendBeacon=="function"){let s=new Blob([i],{type:"application/json"});if(navigator.sendBeacon(e,s))return!0}try{return fetch(e,{method:"POST",body:i,keepalive:!0,headers:{"content-type":"application/json"}}),!0}catch{return!1}}var z={config:null,queue:[]},ge={sent:0,logged:0,iframeDisabled:!1},ca=Symbol.for("vanilla-breeze.analytics"),ua="vb:analytics-status";function bs(){try{document.dispatchEvent(new CustomEvent(ua))}catch{}}function da(e){return`${(z.config?.endpoint??"/api/analytics").replace(/\/+$/,"")}/${e}`}function ys(e,t){let i=z.config;if(!i)throw new Error("analytics: buildEnvelope called before init");let s=Qw(location.pathname+location.search,i.urlMasks),n=typeof i.context=="function"?i.context()??{}:{};return{name:e,ts:Date.now(),site:i.siteId,path:s,referrer:document.referrer||"",context:{...Xw(),...Jw(),...n},props:t??{}}}function vs(e,t){let i=z.config;if(!i||i.transport==="disabled")return!1;if(i.transport==="console")return console.log("%c[vb:analytics]","color:#0aa;font-weight:600",e,t),ge.logged++,bs(),!0;let s=t0(da(e),t);return s&&(ge.sent++,bs()),s}function wd(){let e=z.config?.sampleRate??1;return e>=1?!0:Math.random()<e}var md=null;function Ad(){if(!z.config||ii(z.config)||document.documentElement.hasAttribute("data-vb-no-track")||!wd())return;let e=location.pathname+location.search;e!==md&&(md=e,vs("hit",ys("page.view",{})))}function e0(){let e,t=()=>{clearTimeout(e),e=setTimeout(Ad,100)},i=history.pushState.bind(history);history.pushState=function(...n){i(...n),t()};let s=history.replaceState.bind(history);history.replaceState=function(...n){s(...n),t()},window.addEventListener("popstate",t)}function i0(e){let t={};for(let[i,s]of Object.entries(e.dataset)){if(i==="vbEvent"||!i.startsWith("vbEvent"))continue;let n=i.slice(7).replace(/^./,r=>r.toLowerCase());t[n]=s}return t}function s0(e){if(!z.config||ii(z.config))return;let i=e.target?.closest?.("[data-vb-event]");if(!i||vd(i))return;let s=i.dataset.vbEvent;s&&ha.track(s,i0(i))}function gd(){let e=document.querySelectorAll('a[href^="http"]');for(let t of e){if(t.hostname===location.hostname||vd(t)||t.hasAttribute("data-vb-analytics-wired"))continue;let i=encodeURIComponent(z.config?.siteId??"default"),s=`${da("click")}?site=${i}&from=${encodeURIComponent(location.pathname)}`,n=!t.hasAttribute("ping"),r=()=>{n&&(ii(z.config)?t.removeAttribute("ping"):t.setAttribute("ping",s))};t.addEventListener("click",r,{capture:!0}),t.addEventListener("auxclick",r,{capture:!0}),t.addEventListener("click",()=>{if(ii(z.config))return;let a=navigator.userAgent;/Firefox|Brave/.test(a)&&vs("click",ys("link.outbound",{to:t.hostname,href:t.href}))}),t.setAttribute("data-vb-analytics-wired","")}}function la(){if(!z.queue.length)return;let e=z.queue.splice(0);vs("events",{site:z.config?.siteId,events:e})}function n0(){document.visibilityState==="hidden"&&la()}var r0={endpoint:"/api/analytics",siteId:"default",transport:"disabled",sampleRate:1,consent:null,context:null,urlMasks:null,autoPageView:!0,autoOutboundLinks:!0,autoDeclarative:!0,allowInIframe:!1};function a0(){try{return window.top!==window.self}catch{return!0}}var ha={init(e={}){if(z.config)return;let t={...r0,...e};if(z.config=t,globalThis[ca]||(globalThis[ca]=ha),queueMicrotask(bs),a0()&&!t.allowInIframe){ge.iframeDisabled=!0,t.transport="disabled",t.autoPageView=!1,t.autoOutboundLinks=!1,t.autoDeclarative=!1;return}t.transport==="disabled"&&(t.autoOutboundLinks=!1),t.autoDeclarative&&document.addEventListener("click",s0,{capture:!0}),t.autoOutboundLinks&&(gd(),new MutationObserver(()=>gd()).observe(document.body,{childList:!0,subtree:!0})),t.autoPageView&&(Ad(),e0()),document.addEventListener("visibilitychange",n0),window.addEventListener("pagehide",la)},track(e,t={}){z.config&&(ii(z.config)||wd()&&vs("hit",ys(e,t)))},flush:la,setConsent(e){try{e?sessionStorage.removeItem("vb_optout"):sessionStorage.setItem("vb_optout","1")}catch{}bs()},getStatus(){let e=z.config,t=bd(e),i=yd(e),s=null;if(e)try{s=ys("page.view",{})}catch{s=null}let n=e?.transport??null;return{initialized:e!=null,active:e!=null&&n!=="disabled"&&i===null,optedOut:i!==null,reason:i,signals:t,transport:n,inIframe:ge.iframeDisabled,endpoint:e?da("hit"):null,siteId:e?.siteId??null,sampleRate:e?.sampleRate??null,outboundLinks:e?.autoOutboundLinks??!1,queued:z.queue.length,sent:ge.sent,logged:ge.logged,collects:s?Object.keys(s):[],contextKeys:s?Object.keys(s.context):[],preview:s}},get config(){return z.config?{...z.config}:null}};function fa(){return globalThis[ca]??ha}var o0="Analytics on this page",c0=2;function l0(e){let t=Number.parseInt(e??"",10);return Number.isInteger(t)&&t>=1&&t<=6?t:c0}var Ed={gpc:"your browser sends a Global Privacy Control signal",dnt:"your browser sends Do Not Track",consent:"this site has not been given consent to collect analytics"};function u0(e){if(!e||!e.initialized)return{state:"off",reason:"uninitialized",text:"Off. The analytics runtime is not running on this page, so nothing is sent."};if(e.inIframe)return{state:"off",reason:"iframe",text:"Off. Analytics does not run inside embedded frames, so nothing is sent."};if(e.reason==="user")return{state:"paused",reason:"user",text:"Paused for this tab. Nothing is being sent."};if(e.reason){let i=Ed[e.reason];return{state:"off",reason:e.reason,text:`Off because ${i}. Nothing is sent.`}}if(e.transport==="disabled")return{state:"off",reason:"disabled",text:"Off. This site has analytics switched off, so nothing is sent."};if(e.transport==="console")return{state:"debug",reason:null,text:"Debug mode. Events are written to this browser\u2019s console, not sent anywhere."};let t=typeof e.sampleRate=="number"&&e.sampleRate<1?` (a ${Math.round(e.sampleRate*100)}% sample)`:"";return{state:"active",reason:null,text:`Active. Events from this page are sent to ${e.endpoint}${t}.`}}function d0(e){return e?.signals?["gpc","dnt","consent"].filter(t=>e.signals[t]):[]}var pa=class extends E{static get observedAttributes(){return["heading","heading-level"]}#t={};setup(){(!this.#t.status||!this.contains(this.#t.status))&&this.#s(),this.listen(this,"click",this.#i),this.listen(document,ua,()=>this.refresh()),this.refresh()}attributeChangedCallback(t){this.#t.heading&&(t==="heading"&&(this.#t.heading.textContent=this.#e),t==="heading-level"&&this.#o())}get#e(){return this.getAttribute("heading")||o0}get status(){let t=fa();return typeof t?.getStatus=="function"?t.getStatus():null}#i=t=>{let i=t.target?.closest?.("[data-analytics-action]");if(!i||!this.contains(i)||i.getAttribute("aria-disabled")==="true")return;let s=i.dataset.analyticsAction;s==="toggle"&&this.#n(),s==="refresh"&&this.refresh()};#n(){let t=!this.status?.signals?.user;fa().setConsent(!t),this.dispatchEvent(new CustomEvent(t?"analytics-panel:optout":"analytics-panel:optin",{bubbles:!0,composed:!0})),this.refresh()}#s(){let t=`analytics-panel-${Math.random().toString(36).slice(2,8)}`;this.innerHTML=`
522
521
  <header class="analytics-panel__header">
523
522
  <h2 data-part="heading"></h2>
524
523
  <p class="analytics-panel__status" role="status">
@@ -548,12 +547,12 @@ svg {
548
547
  server records your country from the request; your IP address is not
549
548
  stored.
550
549
  </p>
551
- `;for(let i of this.querySelectorAll("[data-part]"))this.#t[i.dataset.part??""]=i;this.#t.heading.textContent=this.#e,this.#o()}#o(){let t=hw(this.getAttribute("heading-level")),i={heading:t,"fields-heading":Math.min(t+1,6)};for(let[s,n]of Object.entries(i)){let r=this.#t[s];if(!r||r.localName===`h${n}`)continue;let a=document.createElement(`h${n}`);for(let{name:o,value:c}of r.attributes)a.setAttribute(o,c);a.textContent=r.textContent,r.replaceWith(a),this.#t[s]=a}}refresh(){if(!this.#t.status)return;let t=this.status,i=fw(t),s=this.#t;this.setAttribute("data-state",i.state),i.reason?this.setAttribute("data-reason",i.reason):this.removeAttribute("data-reason"),s.status.textContent!==i.text&&(s.status.textContent=i.text),this.#r(t);let n=!!t?.signals?.user,r=pw(t),a=n?"Resume analytics":"Pause analytics";if(s.toggle.textContent!==a&&(s.toggle.textContent=a),s.toggle.setAttribute("aria-pressed",String(n)),n&&r.length>0?s.toggle.setAttribute("aria-disabled","true"):s.toggle.removeAttribute("aria-disabled"),r.length){let c=r.map(l=>Sd[l]).join(" and ");s.hint.textContent=n?`Resume is unavailable because ${c}.`:`Analytics stays off because ${c}; pausing as well changes nothing.`,s.hint.hidden=!1,s.toggle.setAttribute("aria-describedby",s.hint.id)}else s.hint.textContent="",s.hint.hidden=!0,s.toggle.removeAttribute("aria-describedby")}#r(t){let{data:i,empty:s}=this.#t;if(!t?.initialized||!t.preview){i.hidden=!0,i.replaceChildren(),s.hidden=!1,s.textContent="Nothing to show: the analytics runtime has not started on this page.";return}s.hidden=!0,i.hidden=!1;let n=[["Fields",t.collects.join(", ")],["Page path",t.preview.path],["Referrer",t.preview.referrer||"(none)"],["Page context",t.contextKeys.length?t.contextKeys.join(", "):"(none)"]];t.transport==="beacon"?(n.push(["Sent to",t.endpoint]),n.push(["Sent from this page",String(t.sent)])):t.transport==="console"&&n.push(["Logged on this page",String(t.logged)]),t.queued>0&&n.push(["Waiting to send",String(t.queued)]),t.outboundLinks&&n.push(["Outbound link clicks","Reported (site, page path, destination)"]);let r=document.createDocumentFragment();for(let[a,o]of n){let c=document.createElement("dt");c.textContent=a;let l=document.createElement("dd");l.textContent=o,r.append(c,l)}i.replaceChildren(r)}};E("analytics-panel",pa);var ma="data-brand-mark-img",mw="(width < 48rem)",ga=class extends k{static observedAttributes=["src","src-dark","src-compact","compact-media","alt","wordmark","height"];#t=null;#e=null;#i=null;#n=!1;setup(){this.#a(),this.hasAttribute("src-dark")&&this.#o(),this.#c(),this.#e=new MutationObserver(()=>this.#g()),this.#e.observe(this,{childList:!0,characterData:!0,subtree:!0})}teardown(){this.#t?.disconnect(),this.#t=null,this.#e?.disconnect(),this.#e=null,this.#i=null,this.#n=!1}attributeChangedCallback(t,i,s){if(i!==s&&!(!this.isConnected||!this.hasAttribute("data-upgraded"))){if(t==="height"){this.#a();return}t==="src-dark"&&s!==null&&this.#o(),this.#c()}}#s(){let t=document.documentElement.getAttribute("data-mode");if(t==="dark")return!0;if(t==="light")return!1;let i=getComputedStyle(this).colorScheme||"";return/\bdark\b/.test(i)&&!/\blight\b/.test(i)?!0:/\blight\b/.test(i)&&!/\bdark\b/.test(i)?!1:(this.#i??matchMedia("(prefers-color-scheme: dark)")).matches}#o(){this.#n||(this.#n=!0,this.#i=matchMedia("(prefers-color-scheme: dark)"),this.listen(this.#i,"change",this.#r),this.listen(window,"vb:theme-change",this.#r),this.#t=new MutationObserver(this.#r),this.#t.observe(document.documentElement,{attributes:!0,attributeFilter:["data-mode","data-theme"]}))}#r=()=>{this.isConnected&&this.#c()};#a(){let t=this.getAttribute("height")?.trim();if(!t){this.style.removeProperty("--brand-mark-height"),this.getAttribute("style")||this.removeAttribute("style");return}this.style.setProperty("--brand-mark-height",/^\d+(\.\d+)?$/.test(t)?`${t}px`:t)}#l(){return this.querySelector(`:scope > [${ma}]`)}#c(){let t=this.getAttribute("src"),i=this.#l();if(!t){i?.remove();return}let s=this.getAttribute("src-dark"),n=s&&this.#s()?s:t;if(!(i instanceof HTMLPictureElement)||!i.querySelector(":scope > img")){i?.remove(),i=document.createElement("picture"),i.setAttribute(ma,"");let c=document.createElement("img");c.decoding="async",i.append(c),this.prepend(i)}let r=i.querySelector(":scope > img");r.getAttribute("src")!==n&&r.setAttribute("src",n);let a=this.getAttribute("src-compact"),o=i.querySelector(":scope > source");if(a){o||(o=document.createElement("source"),i.prepend(o));let c=this.getAttribute("compact-media")||mw;o.getAttribute("media")!==c&&o.setAttribute("media",c),o.getAttribute("srcset")!==a&&o.setAttribute("srcset",a)}else o?.remove();this.#g()}#g(){let t=this.#l()?.querySelector(":scope > img");if(!t)return;let i=this.getAttribute("alt"),s=!this.hasAttribute("wordmark"),n;s&&i?n=i:this.#f()?n="":n=i??"",t.getAttribute("alt")!==n&&t.setAttribute("alt",n)}#f(){for(let t of this.childNodes)if(!(t instanceof Element&&t.hasAttribute(ma))&&t.textContent?.trim())return!0;return!1}};E("brand-mark",ga);var gw="52rem",ba=class extends HTMLElement{static observedAttributes=["breakpoint"];#t=null;#e=new Map;connectedCallback(){this.#i()}disconnectedCallback(){this.#n(),this.#r()}attributeChangedCallback(){this.isConnected&&this.#i()}#i(){this.#n();let t=this.getAttribute("breakpoint")||gw;this.#t=matchMedia(`(max-width: ${t})`),this.#t.addEventListener("change",this.#s),this.#s()}#n(){this.#t?.removeEventListener("change",this.#s),this.#t=null}#s=()=>{let t=this.#t?.matches??!1;if(this.toggleAttribute("data-mobile",t),t?this.#o():this.#r(),!t){let i=this.querySelector("[popover]");i?.matches(":popover-open")&&i.hidePopover?.()}};#o(){let t=this.querySelector("[popover]"),i=this.parentElement;if(!t||!i)return;let s=t.querySelector("[data-mobile-menu-slot]")??t;for(let n of i.querySelectorAll(":scope > [data-mobile-menu]")){let r=document.createComment("mobile-menu");n.before(r),this.#e.set(n,r),s.append(n)}}#r(){for(let[t,i]of this.#e)i.isConnected?i.replaceWith(t):i.remove();this.#e.clear()}};customElements.get("mobile-menu")||customElements.define("mobile-menu",ba);var Y="interestfor",Dd="interestForElement"in HTMLButtonElement.prototype,W=new WeakMap,ve=new WeakMap,ks=new Set,wa=!1,Aa=CSS.supports?.("anchor-name","--a")??!1;function xd(e){let t=String(e).trim(),i=t.match(/^([\d.]+)s$/);if(i)return parseFloat(i[1])*1e3;let s=t.match(/^([\d.]+)ms$/);return s?parseFloat(s[1]):parseFloat(t)||0}function Nd(e,t){let i=getComputedStyle(e),s=i.getPropertyValue(t).trim();if(s.toLowerCase()!=="normal")return xd(s);let n=i.getPropertyValue("--interest-delay").trim();if(n&&n.toLowerCase()!=="normal"){let r=n.split(/\s+/).filter(a=>a.length>0);if(r.length>0){let a=t==="--interest-delay-start"?r[0]:r[1]||r[0];if(a.toLowerCase()!=="normal")return xd(a)}}return t==="--interest-delay-start"?500:250}var Md=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(","),bw="h1,h2,h3,h4,h5,h6,ul,ol,li,table,nav,header,footer,main,aside,article,section,form,blockquote,details,summary,dialog";function Ea(e){if(e.getAttribute("popover")?.toLowerCase()!=="hint"||e.querySelector(Md)||e.querySelector(bw))return!1;for(let t of e.querySelectorAll("[role]")){let i=t.getAttribute("role").toLowerCase();if(!["presentation","none","generic","image"].includes(i))return!1}return!0}function Cd(e,t,i){let s=(e.getAttribute(t)||"").split(/\s+/).filter(Boolean);s.includes(i)||e.setAttribute(t,[...s,i].join(" "))}function yw(e,t){t.parentElement?.localName!=="tool-tip"&&(Ea(t)?Cd(e,"aria-describedby",t.id):(Cd(e,"aria-details",t.id),e.setAttribute("aria-expanded","false"),!(t.matches(".hover-card")||t.querySelector(Md))&&!t.hasAttribute("role")&&t.setAttribute("role","tooltip")))}function ft(e){let t=e.getAttribute(Y);return t?document.getElementById(t):null}function Es(e){let t=ve.get(e);return t?.invoker&&W.get(t.invoker)?.state==="full"?t.invoker:null}function oi(e){if(W.has(e))return W.get(e);let t={state:"none",gainedTimer:null,lostTimer:null,longPressTimer:null};W.set(e,t);let i=ft(e);return i&&yw(e,i),t}function _d(e,t){if(!e||!t||!e.isConnected||ft(e)!==t)return!1;let i=Es(t);if(i){if(i===e)return clearTimeout(W.get(i).lostTimer),!1;if(!ai(i,t)||!e.isConnected||ft(e)!==t)return!1}let s=oi(e);if(s.state!=="none")return!1;let n=new CustomEvent("interest",{bubbles:!1,cancelable:!0,detail:{source:e}});if(t.dispatchEvent(n),t.hasAttribute("popover")){try{t.showPopover()}catch{}ww(e,t)}s.state="full",ve.has(t)||ve.set(t,{});let r=ve.get(t);if(r.invoker=e,t.hasAttribute("popover")){let a=o=>{o.newState==="closed"&&ai(e,t)};r.toggleListener=a,t.addEventListener("toggle",a)}return ks.add(e),e.classList.add("interest-source"),t.classList.add("interest-target"),Ea(t)||e.setAttribute("aria-expanded","true"),!0}function ai(e,t){if(!e||!t||ft(e)!==t||Es(t)!==e)return!1;let i=W.get(e);if(!i||i.state==="none")return!1;if(clearTimeout(i.gainedTimer),clearTimeout(i.lostTimer),t.dispatchEvent(new CustomEvent("loseinterest",{bubbles:!1,detail:{source:e}})),t.hasAttribute("popover"))try{t.hidePopover()}catch{}let s=ve.get(t);return s?.toggleListener&&t.removeEventListener("toggle",s.toggleListener),ve.delete(t),ks.delete(e),e.classList.remove("interest-source"),t.classList.remove("interest-target"),Ea(t)||e.setAttribute("aria-expanded","false"),i.state="none",!0}function vw(e){let t=oi(e);clearTimeout(t.gainedTimer);let i=Nd(e,"--interest-delay-start");t.gainedTimer=setTimeout(()=>{let s=ft(e);s&&_d(e,s)},i)}function ya(e){let t=W.get(e);if(!t)return;clearTimeout(t.lostTimer);let i=Nd(e,"--interest-delay-end");t.lostTimer=setTimeout(()=>{let s=ft(e);s&&ai(e,s)},i)}function ri(e){if(!Aa)return;let t=e.getAttribute(Y),i=t?document.getElementById(t):null;if(!i?.id)return;let s=`--interest-${i.id}`;e.style.anchorName=s,i.style.positionAnchor=s}function ww(e,t){if(Aa)return;let i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),n=8,r=8,a=i.top-s.height-n,o=i.left+(i.width-s.width)/2;a<r&&(a=i.bottom+n),o=Math.max(r,Math.min(o,window.innerWidth-s.width-r)),a=Math.max(r,Math.min(a,window.innerHeight-s.height-r)),t.style.top=`${a}px`,t.style.left=`${o}px`,t.style.margin="0"}function Aw(e,t){if(wa||!e.isConnected)return;if(!ft(e)){let r=e.closest(".interest-target");if(r){let a=Es(r);a&&(t?clearTimeout(W.get(a)?.lostTimer):ya(a))}return}let s=oi(e),n=Es(e);if(t)clearTimeout(s.lostTimer),n&&clearTimeout(W.get(n)?.lostTimer),vw(e);else if(clearTimeout(s.gainedTimer),s.state!=="none"&&ya(e),n){let r=W.get(n);r&&clearTimeout(r.gainedTimer),ya(n)}}function Ew(){let e=(s,n)=>{for(let r=s.target;r;r=r.parentElement)Aw(r,n)};document.body.addEventListener("mouseover",s=>e(s,!0)),document.body.addEventListener("mouseout",s=>e(s,!1)),document.body.addEventListener("focusin",s=>e(s,!0)),document.body.addEventListener("focusout",s=>e(s,!1)),document.body.addEventListener("keydown",s=>{if(s.key==="Escape")for(let n of ks){let r=ft(n);r&&ai(n,r)}});let t=500;document.body.addEventListener("touchstart",s=>{wa=!0;let n=s.target.closest(`button[${Y}]`);if(!n)return;let r=oi(n);r.longPressTimer=setTimeout(()=>{let a=ft(n);a&&_d(n,a),r.longPressTimer=null},t)});let i=s=>{let n=s.target.closest(`button[${Y}]`);if(!n)return;let r=W.get(n);r?.longPressTimer&&(clearTimeout(r.longPressTimer),r.longPressTimer=null)};document.body.addEventListener("touchend",s=>{i(s),wa=!1}),document.body.addEventListener("touchmove",i)}function kw(){let e=document.createElement("style");e.textContent=['@property --interest-delay-start { syntax: "normal | <time>"; inherits: false; initial-value: normal; }','@property --interest-delay-end { syntax: "normal | <time>"; inherits: false; initial-value: normal; }','@property --interest-delay { syntax: "*"; inherits: false; initial-value: normal; }'].join(`
552
- `),document.head.appendChild(e)}function As(e){oi(e),ri(e)}function va(e){let t=W.get(e);if(t){if(clearTimeout(t.gainedTimer),clearTimeout(t.lostTimer),clearTimeout(t.longPressTimer),t.state!=="none"){let i=ft(e);i&&ai(e,i)}e.classList.remove("interest-source"),W.delete(e),ks.delete(e)}}function Td(e=document){e.querySelectorAll(`[${Y}]`).forEach(As)}var Ld=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.hasAttribute(Y)&&As(s),s.querySelectorAll(`[${Y}]`).forEach(As)}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;W.has(s)&&va(s),s.querySelectorAll(`[${Y}]`).forEach(n=>{W.has(n)&&va(n)})}if(t.type==="attributes"&&t.target.nodeType===Node.ELEMENT_NODE){let i=t.target;i.hasAttribute(Y)?W.has(i)||As(i):W.has(i)&&va(i)}}});Dd||(kw(),Ew(),document.documentElement.setAttribute("data-interest-polyfill",""),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{Td(),Ld.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[Y]})}):(Td(),Ld.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[Y]})));if(Dd&&Aa){let e=()=>{document.querySelectorAll(`[${Y}]`).forEach(ri),new MutationObserver(t=>{for(let i of t){for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.hasAttribute(Y)&&ri(n),n.querySelectorAll(`[${Y}]`).forEach(ri)}i.type==="attributes"&&i.target.hasAttribute?.(Y)&&ri(i.target)}}).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[Y]})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}ae();Ca();Ve();var Ta="kbd[data-hotkey]";function Pd(e=document){e.querySelectorAll(Ta).forEach(t=>La(t))}function Tw(e,t){if(!/^[a-z][a-z0-9]*$/.test(t))return null;let i=`data-label-${t}`;return e.closest(`[${i}]`)?.getAttribute(i)||null}function La(e){let t=e.dataset.hotkey;if(!t||e.getAttribute("data-hotkey-init")===t)return;let i=Wi(t);if(!i.length)return;e.setAttribute("data-hotkey-init",t);let s=[],n=document.createDocumentFragment();i.forEach((a,o)=>{let c=dr(a,tt),l=Tw(e,a),u=l&&!(tt&&c.modifier)?l:c.label;s.push(l??c.spoken);let d=document.createElement("kbd");if(d.textContent=u,d.setAttribute("aria-hidden","true"),n.appendChild(d),o<i.length-1&&!tt){let h=document.createElement("span");h.textContent="+",h.setAttribute("aria-hidden","true"),n.appendChild(h)}});let r=document.createElement("span");r.className="visually-hidden",r.textContent=s.join(" "),n.appendChild(r),e.replaceChildren(n),e.removeAttribute("aria-label")}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Pd()):Pd();var Lw=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ta)&&La(s),s.querySelectorAll(Ta).forEach(n=>La(n))}});Lw.observe(document.documentElement,{childList:!0,subtree:!0});Ma();Fa();Oa();Va();Ka();Ya();Za();Ja();ro();co();lo();ho();mo();go();bo();yo();vo();var iE=window.matchMedia("(prefers-reduced-motion: reduce)");function sE(){return iE.matches||document.documentElement.hasAttribute("data-motion-reduced")}var mf=0,nE=new Map([["vb-fade-in","entrance"],["vb-slide-up","entrance"],["vb-pop","entrance"],["vb-slide-in-ltr","entrance"],["vb-slide-in-rtl","entrance"],["vb-fade-slide-up","entrance"],["vb-shadow-lift","entrance"],["vb-fade-out","exit"],["vb-collapse","exit"],["vb-slide-out-ltr","exit"],["vb-slide-out-rtl","exit"],["vb-shake","attention"],["vb-pulse","attention"],["vb-bounce","attention"],["vb-blink","attention"],["vb-neon-pulse","decoration"],["vb-3d-shift","decoration"],["vb-outline-glow-pulse","decoration"],["vb-rainbow","decoration"],["vb-gradient-flow","decoration"],["vb-shimmer","decoration"],["vb-shimmer-gradient","decoration"],["vb-glow","decoration"],["vb-float","decoration"]]),gf="__vbEffectsRuntime",bf=globalThis,y=bf[gf]??{_effects:new Map,_triggers:new Map,_transitions:new Map,_instances:new WeakMap,_triggerCleanups:new WeakMap,_wiredTriggers:new WeakMap,_transitionCleanups:new WeakMap,_transitionFallback:new WeakSet,_processed:new WeakSet,_transitionProcessed:new WeakSet,_staggerTime:new WeakSet,_unresolved:new Set,_warnedTriggers:new Set,_unresolvedTimer:null,_keyframePhase:nE,_observer:null,_animationEndHandler:null,_autoBooted:!1,effect(e,t){this._effects.set(e,t),document.querySelectorAll("[data-effect]").forEach(i=>{if(!(i.getAttribute("data-effect")||"").split(/\s+/).includes(e))return;let n=!this._instances.get(i)?.has(e);this._initEffect(i,e),n&&i.hasAttribute("data-effect-active")&&this._instances.get(i)?.get(e)?.activate?.()})},trigger(e,t){this._triggers.set(e,t),document.querySelectorAll("[data-effect][data-trigger]").forEach(i=>{if(!this._processed.has(i))return;let s=i.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[];this._wireTrigger(i,s)})},transition(e,t){this._transitions.set(e,t),document.querySelectorAll("[data-transition]").forEach(i=>{if(!this._transitionProcessed.has(i)||!this._transitionFallback.has(i))return;let s=i.getAttribute("data-transition")||"",n=s.indexOf(":");if((n>-1?s.slice(0,n):s)!==e)return;this._transitionFallback.delete(i);let r=i;r.style.viewTransitionName="";let a=t(i,n>-1?s.slice(n+1):null);a&&this._transitionCleanups.set(i,a)})},uid(e){return e.id?e.id:(e._vbUid||(mf++,e._vbUid=`vb-${mf}`),e._vbUid)},theme(e,t){this._themes=this._themes||new Map,this._themes.set(e,t)},applyTheme(e,t=document.documentElement){let i=this._themes?.get(e);if(i)for(let[s,n]of Object.entries(i))t.style.setProperty(s,n)},swap(e){if(!document.startViewTransition){e(),queueMicrotask(()=>this._dispatchVtDone(document.body));return}let t=document.startViewTransition(e);return t.updateCallbackDone.then(()=>{this._dispatchVtDone(document.body)}).catch(()=>{}),t},_dispatchVtDone(e){e.querySelectorAll('[data-trigger~="vt"]').forEach(t=>{this.emit(t,"vb:vt-update-done",{})})},activate(e){this._activateEffects(e)},deactivate(e){e.hasAttribute("data-effect-active")&&(e.removeAttribute("data-effect-active"),this.emit(e,"vb:phase-change",{active:!1}))},onPhaseEnd(e,t,i){let s=n=>{n.detail?.phase===t&&i(n.detail)};return e.addEventListener("vb:effect-phase-end",s),()=>e.removeEventListener("vb:effect-phase-end",s)},registerKeyframe(e,t){this._keyframePhase.set(e,t)},observe(e=document){if(e.querySelectorAll("[data-effect]").forEach(i=>this._processElement(i)),e.querySelectorAll("[data-stagger]").forEach(i=>this._processStagger(i)),e.querySelectorAll("[data-transition]").forEach(i=>this._processTransition(i)),this._observer)return;this._observer=new MutationObserver(i=>{let s=new Set;for(let n of i){if(n.type==="childList"){let r=n.target;r.hasAttribute?.("data-stagger")&&s.add(r);for(let a of n.addedNodes)a.nodeType===Node.ELEMENT_NODE&&this._processTree(a);for(let a of n.removedNodes)a.nodeType===Node.ELEMENT_NODE&&(a.isConnected||this._cleanupTree(a))}if(n.type==="attributes"){let r=n.target;n.attributeName==="data-effect"&&this._reconcileEffects(r),n.attributeName==="data-trigger"&&this._reconcileTrigger(r),n.attributeName==="data-stagger"&&(r.hasAttribute("data-stagger")?s.add(r):this._cleanupStagger(r)),n.attributeName==="data-transition"&&this._reconcileTransition(r)}}for(let n of s)n.isConnected&&this._processStagger(n)});let t=e===document?document.body:e;this._observer.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-effect","data-trigger","data-stagger","data-transition"]}),this._animationEndHandler||(this._animationEndHandler=i=>{let s=i.target;if(!(s instanceof Element)||!s.hasAttribute("data-effect"))return;let n=this._keyframePhase.get(i.animationName);n&&this.emit(s,"vb:effect-phase-end",{phase:n,animationName:i.animationName})},document.addEventListener("animationend",this._animationEndHandler))},disconnect(){this._observer&&(this._observer.disconnect(),this._observer=null),this._animationEndHandler&&(document.removeEventListener("animationend",this._animationEndHandler),this._animationEndHandler=null)},params(e){let t=getComputedStyle(e);return{get(i){return t.getPropertyValue(`--vb-${i}`).trim()},getNumber(i,s=0){let n=t.getPropertyValue(`--vb-${i}`).trim();return n?parseFloat(n):s},getTime(i,s=0){let n=t.getPropertyValue(`--vb-${i}`).trim();if(!n)return s;let r=parseFloat(n);return Number.isFinite(r)?/s\s*$/.test(n)&&!/ms\s*$/.test(n)?r*1e3:r:s},hasClass(i){return e.classList.contains(i)}}},emit(e,t,i={}){e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:i}))},prefersReducedMotion:sE,_processTree(e){e.hasAttribute?.("data-effect")&&this._processElement(e),e.hasAttribute?.("data-stagger")&&this._processStagger(e),e.hasAttribute?.("data-transition")&&this._processTransition(e),e.querySelectorAll?.("[data-effect]").forEach(t=>this._processElement(t)),e.querySelectorAll?.("[data-stagger]").forEach(t=>this._processStagger(t)),e.querySelectorAll?.("[data-transition]").forEach(t=>this._processTransition(t))},_cleanupTree(e){e.hasAttribute?.("data-effect")&&this._cleanupElement(e),e.hasAttribute?.("data-transition")&&this._cleanupTransition(e),e.querySelectorAll?.("[data-effect]").forEach(t=>this._cleanupElement(t)),e.querySelectorAll?.("[data-transition]").forEach(t=>this._cleanupTransition(t))},_processElement(e){if(this._processed.has(e))return;this._processed.add(e),e.removeAttribute("data-effect-processed"),e.removeAttribute("data-effect-armed");let t=e.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[];for(let i of t)this._initEffect(e,i);this._wireTrigger(e,t)},_initEffect(e,t){let i=this._effects.get(t);if(!i)return;let s=this._instances.get(e);if(s?.has(t))return;let n=i(e);n&&(s||(s=new Map,this._instances.set(e,s)),typeof n=="function"?s.set(t,{cleanup:n}):s.set(t,n))},_parseTrigger(e){let t=e.indexOf(":");return t>-1?[e.slice(0,t),e.slice(t+1)]:[e,null]},_wireTrigger(e,t){let i=e.getAttribute("data-trigger");if(!i||!i.trim()){e.removeAttribute("data-effect-armed"),this._activateEffects(e);return}let s=i.split(/\s+/).filter(Boolean);this._wiredTriggers??=new WeakMap;let n=this._wiredTriggers.get(e);n||(n=new Set,this._wiredTriggers.set(e,n));let r=!1;for(let a of s){if(n.has(a))continue;let[o,c]=this._parseTrigger(a),l=this._triggers.get(o);if(!l){r=!0;continue}n.add(a);let u=l(e,()=>this._activateEffects(e),c);if(u){let d=this._triggerCleanups.get(e);if(d){let h=d;this._triggerCleanups.set(e,()=>{h(),u()})}else this._triggerCleanups.set(e,u)}}n.size&&e.setAttribute("data-effect-armed",""),r?(this._unresolved.add(e),this._scheduleUnresolvedCheck()):this._unresolved.delete(e)},_scheduleUnresolvedCheck(){if(this._unresolvedTimer)return;let e=()=>{this._unresolvedTimer=null,this._resolveUnknownTriggers()};typeof window>"u"||typeof window.addEventListener!="function"||(document.readyState==="complete"?this._unresolvedTimer=setTimeout(e,0):(this._unresolvedTimer=!0,window.addEventListener("load",()=>setTimeout(e,0),{once:!0})))},_resolveUnknownTriggers(){for(let e of[...this._unresolved]){if(this._unresolved.delete(e),!e.isConnected||!this._processed.has(e))continue;let i=(e.getAttribute("data-trigger")||"").split(/\s+/).filter(Boolean).filter(s=>!this._triggers.has(this._parseTrigger(s)[0]));if(i.length){for(let s of i){let n=this._parseTrigger(s)[0];this._warnedTriggers.has(n)||(this._warnedTriggers.add(n),console.warn(`[VB] data-trigger="${s}": no trigger named "${n}" is registered. The effect runs immediately instead. Register it with VB.trigger('${n}', \u2026) or check the spelling.`,e))}!e.hasAttribute("data-effect-armed")&&!e.hasAttribute("data-effect-active")&&this._activateEffects(e)}}},_activateEffects(e){e.setAttribute("data-effect-active",""),this.emit(e,"vb:phase-change",{active:!0});let t=this._instances.get(e);if(t)for(let[,i]of t)i.activate&&i.activate()},_cleanupElement(e){let t=this._instances.get(e);if(t){for(let[,s]of t)s.cleanup&&s.cleanup();this._instances.delete(e)}let i=this._triggerCleanups.get(e);i&&(i(),this._triggerCleanups.delete(e)),this._wiredTriggers?.delete(e),this._unresolved.delete(e),e.removeAttribute("data-effect-armed"),this._processed.delete(e)},_reconcileEffects(e){if(!e.hasAttribute("data-effect")){this._cleanupElement(e),e.removeAttribute("data-effect-active");return}let t=e.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[],i=this._instances.get(e);if(i)for(let[s,n]of i)t.includes(s)||(n.cleanup&&n.cleanup(),i.delete(s));for(let s of t)i?.has(s)||this._initEffect(e,s);this._processed.has(e)||this._processElement(e)},_reconcileTrigger(e){if(!e.hasAttribute("data-effect"))return;let t=this._triggerCleanups.get(e);if(t&&(t(),this._triggerCleanups.delete(e)),this._wiredTriggers?.delete(e),this._unresolved.delete(e),e.removeAttribute("data-effect-armed"),!this._processed.has(e)){this._processElement(e);return}let i=e.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[];this._wireTrigger(e,i)},_parseStagger(e){let t=(e||"").trim().split(/\s+/).filter(Boolean),i=t.find(n=>/^(\d+(\.\d+)?|\.\d+)(ms|s)$/i.test(n))||null;return{mode:t.find(n=>n==="reverse"||n==="random"||n==="grid")||"",time:i}},_processStagger(e){let{mode:t,time:i}=this._parseStagger(e.getAttribute("data-stagger"));i?(e.style.setProperty("--vb-stagger",i),this._staggerTime.add(e)):this._staggerTime.has(e)&&(e.style.removeProperty("--vb-stagger"),this._staggerTime.delete(e));let s=Array.from(e.children),n=s.length,r;if(t==="reverse")r=Array.from({length:n},(a,o)=>n-1-o);else if(t==="random"){let a=this._hashString(this.uid(e));r=Array.from({length:n},(c,l)=>l);let o=a;for(let c=n-1;c>0;c--){o^=o<<13,o^=o>>>17,o^=o<<5;let l=Math.abs(o)%(c+1);[r[c],r[l]]=[r[l],r[c]]}}else t==="grid"?r=this._gridStaggerIndices(e,s):r=Array.from({length:n},(a,o)=>o);for(let a=0;a<n;a++)s[a].style.setProperty("--vb-stagger-index",String(r[a]))},_gridStaggerIndices(e,t){let i=t.length,s=()=>Array.from({length:i},(l,u)=>u);if(!i)return[];let n=t.map(l=>{let u=getComputedStyle(l);return[parseInt(u.gridRowStart,10),parseInt(u.gridColumnStart,10)]});if(n.every(([l,u])=>Number.isFinite(l)&&Number.isFinite(u))){let l=Math.min(...n.map(([d])=>d)),u=Math.min(...n.map(([,d])=>d));return n.map(([d,h])=>d-l+(h-u))}let r=t.map(l=>l.getBoundingClientRect?.());if(!r.every(Boolean)||r.every(l=>l.width===0&&l.height===0))return s();let a=getComputedStyle(e).direction==="rtl",o=this._trackRanks(r.map(l=>[l.top,l.bottom])),c=this._trackRanks(r.map(l=>a?[-l.right,-l.left]:[l.left,l.right]));return o.map((l,u)=>l+c[u])},_trackRanks(e){let t=e.map((r,a)=>a).sort((r,a)=>e[r][0]-e[a][0]),i=new Array(e.length),s=-1,n=-1/0;for(let r of t){let[a,o]=e[r];a>=n-.5?(s++,n=o):n=Math.min(n,o),i[r]=s}return i},_cleanupStagger(e){this._staggerTime.has(e)&&(e.style.removeProperty("--vb-stagger"),this._staggerTime.delete(e));for(let t of Array.from(e.children))t.style?.removeProperty("--vb-stagger-index")},_hashString(e){let t=5381;for(let i=0;i<e.length;i++)t=(t<<5)+t^e.charCodeAt(i);return t|0},_vtIdent(e){let t=String(e).replace(/[^A-Za-z0-9_ -￿-]/g,"-");return(!t||/^(-?\d|--)/.test(t))&&(t=`vb-${t}`),t},_processTransition(e){if(this._transitionProcessed.has(e)||e.matches?.("[data-swap], content-swap"))return;let t=(e.getAttribute("data-transition")||"").trim();if(!t)return;this._transitionProcessed.add(e),e.removeAttribute("data-transition-processed");let[i,s]=this._parseTrigger(t),n=this._transitions.get(i);if(n){let r=n(e,s);r&&this._transitionCleanups.set(e,r)}else e.style.viewTransitionName=this._vtIdent(`${i}-${this.uid(e)}`),this._transitionFallback.add(e)},_cleanupTransition(e){if(!this._transitionProcessed.has(e))return;let t=this._transitionCleanups.get(e);t&&(t(),this._transitionCleanups.delete(e)),this._transitionFallback.has(e)&&(this._transitionFallback.delete(e),e.style.viewTransitionName=""),this._transitionProcessed.delete(e)},_reconcileTransition(e){this._cleanupTransition(e),e.hasAttribute("data-transition")&&this._processTransition(e)}};bf[gf]=y;if(typeof window<"u"){let e=window.VB;if(e&&e!==y)for(let t of Object.keys(e))t in y||(y[t]=e[t]);window.VB=y}typeof document<"u"&&!y._autoBooted&&(y._autoBooted=!0,document.body?y.observe():document.addEventListener("DOMContentLoaded",()=>y.observe(),{once:!0}));var Hs="vb-split-sr",wo="vb-split";function rE(e){return e.closest?.("[lang]")?.getAttribute("lang")||void 0}function Se(e,t){if(typeof Intl<"u"&&"Segmenter"in Intl)try{let i=new Intl.Segmenter(t,{granularity:"grapheme"});return Array.from(i.segment(e),s=>s.segment)}catch{}return Array.from(e)}function aE(e,t){let i=[],s;if(typeof Intl<"u"&&"Segmenter"in Intl)try{s=Array.from(new Intl.Segmenter(t,{granularity:"word"}).segment(e))}catch{s=null}if(!s){for(let r of e.split(/(\s+)/))r&&i.push({text:r,space:/^\s+$/.test(r)});return i}let n="";for(let r of s){if(/^\s+$/.test(r.segment)){n&&(i.push({text:n,space:!1}),n=""),i.push({text:r.segment,space:!0});continue}let a=i[i.length-1];if(!r.isWordLike){a&&!a.space?a.text+=r.segment:n+=r.segment;continue}i.push({text:n+r.segment,space:!1}),n=""}return n&&i.push({text:n,space:!1}),i}function X(e){for(let t of e.querySelectorAll(`.${Hs}`)){let i=t.nextElementSibling;i?.classList.contains(wo)&&i.remove(),t.replaceWith(document.createTextNode(t.textContent||""))}e.normalize()}function yf(e){let t=e.querySelectorAll(`.${Hs}`);return t.length?Array.from(t,i=>i.textContent).join(""):e.textContent||""}function Nt(e,{unit:t="word",className:i="",locale:s}={}){X(e);let n=s||rE(e),r=[],a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(l){let u=l.parentElement;return u&&u.closest("script, style, template, svg, math")?NodeFilter.FILTER_REJECT:l.nodeValue&&l.nodeValue.trim()?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});for(;a.nextNode();)r.push(a.currentNode);let o=[],c=l=>{let u=document.createElement("span");return i&&(u.className=i),u.textContent=l,o.push(u),u};for(let l of r){let u=l.nodeValue||"",d=document.createElement("span");d.className=Hs,d.textContent=u;let h=document.createElement("span");if(h.className=wo,h.setAttribute("aria-hidden","true"),t==="grapheme")for(let f of Se(u,n)){let p=c(f);/^\s+$/.test(f)&&p.setAttribute("data-space",""),h.append(p)}else for(let f of aE(u,n))h.append(f.space?document.createTextNode(f.text):c(f.text));l.replaceWith(d,h)}return o}function vf(e,t){X(e);let i=document.createElement("span");i.className=Hs,i.textContent=t;let s=document.createElement("span");return s.className=wo,s.setAttribute("aria-hidden","true"),e.replaceChildren(i,s),s}function xe(e){let t=0,i=null;for(let s of e){let n=s.getBoundingClientRect(),r=n.top;i!==null&&r-i>n.height/2&&t++,i=r,s.style.setProperty("--i",String(t))}return e.length?t+1:0}var Ao="data-effect-reveal-init";y.effect("reveal",e=>{let t=e;if(X(t),t.removeAttribute(Ao),y.prefersReducedMotion())return{cleanup(){}};let i=y.params(t);t.style.setProperty("--reveal-delay",i.get("reveal-delay")||"80ms"),t.style.setProperty("--reveal-duration",i.get("reveal-duration")||"400ms");let s=Nt(t,{className:"vb-reveal-chunk"});s.forEach((r,a)=>r.style.setProperty("--i",String(a))),t.setAttribute(Ao,"");let n=null;if(t.classList.contains("line")){xe(s);let r=t.clientWidth;n=new ResizeObserver(()=>{t.clientWidth!==r&&(r=t.clientWidth,xe(s))}),n.observe(t)}return{activate(){t.setAttribute("data-effect-active","")},cleanup(){n?.disconnect(),X(t),t.removeAttribute(Ao),t.style.removeProperty("--reveal-delay"),t.style.removeProperty("--reveal-duration")}}});var wf="data-effect-highlight-init";y.effect("highlight",e=>{let t=e,i=y.params(t).get("highlight-color");return i&&t.style.setProperty("--highlight-color",i),t.setAttribute(wf,""),y.prefersReducedMotion()&&t.setAttribute("data-effect-active",""),{activate(){t.setAttribute("data-effect-active","")},cleanup(){t.removeAttribute(wf),t.style.removeProperty("--highlight-color")}}});So();Do();var _o="vb:recently-visited",gE="vb:recently-visited:paused";var bE="recently-visited:change";function $o(e){let t=document.querySelector(`meta[name="${e}"]`);return t?t.getAttribute("content")??"":null}function yE(){return typeof document>"u"||document.documentElement.hasAttribute("data-vb-no-track")||$o("vb:no-track-history")!==null?!1:($o("vb:track-history")??"").trim().toLowerCase()==="on"?!0:document.querySelector("recently-visited")!==null}function vE(){try{return localStorage.getItem(gE)==="1"}catch{return!1}}function wE(){let e=$o("vb:track-history-params")||"";return new Set(e.split(/[\s,]+/).filter(Boolean))}function Mf(e,t=null){if(typeof e!="string")return null;let i=e.trim().replace(/^[\\/]{2,}/,"/");if(!i)return null;let s;try{s=new URL(i,location.origin)}catch{return null}if(s.protocol!=="http:"&&s.protocol!=="https:"||s.origin!==location.origin)return null;let n=s.pathname.replace(/^\/{2,}/,"/"),r=s.search;if(t){let a=new URLSearchParams;for(let[c,l]of s.searchParams)t.has(c)&&a.append(c,l);let o=a.toString();r=o?`?${o}`:""}return n+r}function AE(){return Mf(location.pathname+location.search,wE())}function _f(e,t=Date.now()){if(!Array.isArray(e))return[];let i=[];for(let s of e){if(!s||typeof s!="object")continue;let n=Number(s.ts);if(!Number.isFinite(n)||Math.abs(t-n)>2592e6)continue;let r=Mf(s.url);if(!r)continue;let a=typeof s.hash=="string"&&s.hash.startsWith("#")&&s.hash.length>1?s.hash:"";i.push({url:r,hash:a,title:typeof s.title=="string"?s.title:"",hashTitle:a&&typeof s.hashTitle=="string"?s.hashTitle:"",ts:n})}return i}function EE(){try{let e=localStorage.getItem(_o);return e?_f(JSON.parse(e)):[]}catch{return[]}}function kE(e){window.dispatchEvent(new CustomEvent(bE,{detail:{key:e}}))}function SE(e){try{localStorage.setItem(_o,JSON.stringify(_f(e).slice(0,100)))}catch{}kE(_o)}function xE(e){if(!e)return"";let t=e.slice(1);try{t=decodeURIComponent(t)}catch{}if(!t)return"";let i=document.getElementById(t);return i&&(i.textContent||"").trim().slice(0,80)||t}function No(){if(!yE()||vE()||location.protocol!=="http:"&&location.protocol!=="https:")return!1;let e=AE();if(!e)return!1;let t=location.hash.length>1?location.hash:"",i=(document.title||"").trim();if(!i)return!1;let s=EE(),n=e+t,r=s[0];if(r&&r.url+r.hash===n)return!1;let a=s.filter(o=>o.url+o.hash!==n);return a.unshift({url:e,hash:t,title:i,hashTitle:xE(t),ts:Date.now()}),SE(a),!0}var Mo=typeof document<"u"?document.documentElement:null;Mo&&!Mo.hasAttribute("data-vb-recently-visited-init")&&(Mo.setAttribute("data-vb-recently-visited-init",""),No(),window.addEventListener("pageshow",e=>{e.persisted&&No()}),window.addEventListener("hashchange",No));var Bf=CSS.supports("anchor-name","--test"),CE=new Set(["BUTTON","A","AREA"]),Rf=(()=>{let e=document.createElement("span");return e.setAttribute("popover","hint"),e.popover==="hint"})(),Ff=new Map,$f=!1;function TE(){if($f||Rf)return;$f=!0;let e=t=>{Ff.forEach((i,s)=>{s.matches(":popover-open")&&!t(s,i)&&s.hidePopover()})};document.addEventListener("keydown",t=>{t.key==="Escape"&&e(()=>!1)}),document.addEventListener("pointerdown",t=>{let i=t.target;e((s,n)=>s.contains(i)||n.contains(i))})}function Pf(e){return e.getAttribute("aria-label")?.trim()||e.hasAttribute("aria-labelledby")||e.labels?.length||e.textContent?.trim()||e instanceof HTMLInputElement&&["button","submit","reset"].includes(e.type)&&e.value?!0:!!e.querySelector('img[alt]:not([alt=""]), [aria-label]:not([aria-hidden="true"])')}function Of(e,t,i){let s=(e.getAttribute(t)||"").split(/\s+/).filter(Boolean);s.includes(i)||e.setAttribute(t,[...s,i].join(" "))}function LE(e){return document.documentElement.hasAttribute("data-interest-polyfill")?!0:"interestForElement"in HTMLButtonElement.prototype?CE.has(e.tagName):!1}function Io(e,t){if(Ff.set(t,e),TE(),LE(e)){e.setAttribute("interestfor",t.id),t.addEventListener("toggle",l=>{l.newState==="open"&&zs(e,t)});return}let i=null,s=null,n=t,r=()=>{clearTimeout(s),i=setTimeout(()=>{n.showPopover(),zs(e,t)},200)},a=()=>{clearTimeout(i),s=setTimeout(()=>{n.hidePopover()},100)},o=()=>{clearTimeout(s),n.showPopover(),zs(e,t)},c=()=>{clearTimeout(i),n.hidePopover()};e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",a),e.addEventListener("focus",o),e.addEventListener("blur",c),t.addEventListener("mouseenter",()=>clearTimeout(s)),t.addEventListener("mouseleave",a)}function Bo(e,t){if(!Bf)return;let i=`--tooltip-anchor-${t.id}`;e.style.anchorName=i,t.style.positionAnchor=i,t.setAttribute("data-anchor","")}function DE(e){let t=e.getAttribute("title");if(!t)return;let i=!Pf(e);i&&e.setAttribute("aria-label",t),e.removeAttribute("title");let s=document.createElement("div");s.setAttribute("role","tooltip"),s.setAttribute("popover",Rf?"hint":"manual"),s.id=`tooltip-${crypto.randomUUID().slice(0,8)}`,s.textContent=t;let n=e.dataset.tooltipPosition||"top";s.dataset.tooltipPosition=n;let r=document.createElement("span");r.className="tooltip-arrow",r.setAttribute("aria-hidden","true"),s.appendChild(r),e.after(s),i||Of(e,"aria-describedby",s.id),Bo(e,s),Io(e,s)}function NE(e,t){let i=document.getElementById(t);if(!i?.hasAttribute("popover"))return;let s=e.getAttribute("title");s&&(Pf(e)||e.setAttribute("aria-label",s),e.removeAttribute("title")),Of(e,"aria-describedby",t),Bo(e,i),Io(e,i)}function If(e=document){e.querySelectorAll("[data-tooltip]").forEach(t=>{if(t.closest("tool-tip")||t.hasAttribute("data-tooltip-init"))return;t.setAttribute("data-tooltip-init","");let i=t.dataset.tooltip;i?NE(t,i):DE(t)}),e.querySelectorAll("[aria-describedby]").forEach(t=>{let i=t.getAttribute("aria-describedby")??"",s=document.getElementById(i);!s?.hasAttribute("popover")||!s.matches('[role="tooltip"]')||t.closest("tool-tip")||t.hasAttribute("data-tooltip-init")||(t.setAttribute("data-tooltip-init",""),Bo(t,s),Io(t,s))}),e.querySelectorAll("[popovertarget]").forEach(t=>{let i=t.getAttribute("popovertarget")??"",s=document.getElementById(i);!s?.hasAttribute("popover")||!s.matches('[role="tooltip"]')||s.hasAttribute("data-tooltip-click-init")||(s.setAttribute("data-tooltip-click-init",""),s.addEventListener("toggle",n=>{n.newState==="open"&&zs(t,s)}))})}function zs(e,t){if(Bf||t.hasAttribute("data-anchor"))return;let i=e.getBoundingClientRect(),s=t.dataset.tooltipPosition||"top",n=8,r=t.getBoundingClientRect(),a,o;switch(s){case"bottom":a=i.bottom+n,o=i.left+(i.width-r.width)/2;break;case"left":a=i.top+(i.height-r.height)/2,o=i.left-r.width-n;break;case"right":a=i.top+(i.height-r.height)/2,o=i.right+n;break;default:a=i.top-r.height-n,o=i.left+(i.width-r.width)/2;break}let c=8;o=Math.max(c,Math.min(o,window.innerWidth-r.width-c)),a=Math.max(c,Math.min(a,window.innerHeight-r.height-c)),t.style.top=`${a}px`,t.style.left=`${o}px`}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>If()):If();var Ro="[data-vt-name]";function Vs(e){let t=e;t.removeAttribute("data-vt-name-init"),t.style.viewTransitionName=t.dataset.vtName||""}function qf(e=document){e.querySelectorAll(Ro).forEach(Vs)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>qf()):qf();var ME=new MutationObserver(e=>{for(let t of e){if(t.type==="attributes"){Vs(t.target);continue}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ro)&&Vs(s),s.querySelectorAll(Ro).forEach(Vs)}}});ME.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-vt-name"]});var Us='progress[data-type="ring"]',jf={xs:"2em",s:"3em",m:"4em",l:"6em",xl:"8em"};function _E(e){let t=e.max||100,i=e.value;return t>0?Math.round(i/t*100):0}var Fo=new WeakMap;function $E(e){let t=Fo.get(e);if(t)return t;let i=document.createElement("div");i.className="progress-ring-wrap";let s=e.dataset.size;return s&&jf[s]&&i.style.setProperty("--progress-ring-size",jf[s]),e.parentNode?.insertBefore(i,e),i.appendChild(e),t=document.createElement("span"),t.className="progress-ring-label",t.setAttribute("aria-hidden","true"),i.appendChild(t),Fo.set(e,t),t}function zf(e){let t=_E(e);e.style.setProperty("--progress",String(t));let i=e.dataset.label;if(i==="none")return;let s=!e.hasAttribute("value");if(s&&!Fo.has(e))return;let n=$E(e);n.hidden=s,n.textContent=i||t+"%"}function Po(e){e.hasAttribute("data-enhanced")||(e.setAttribute("data-enhanced",""),zf(e))}function Hf(e=document){e.querySelectorAll(Us).forEach(t=>Po(t))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Hf()):Hf();var IE=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Us)&&Po(s),s.querySelectorAll(Us).forEach(n=>Po(n))}if(t.type==="attributes"){let i=t.target;i.matches(Us)&&i.hasAttribute("data-enhanced")&&zf(i)}}});IE.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","max"]});function Vf(e){document.querySelectorAll("browser-window").forEach(t=>{t.setAttribute("mode",e)}),document.querySelectorAll("code-block").forEach(t=>{t.setAttribute("theme",e)})}function Uf(){let{effectiveMode:e}=I.getState();Vf(e),window.addEventListener("vb:theme-change",i=>{Vf(i.detail.effectiveMode)}),new MutationObserver(i=>{let{effectiveMode:s}=I.getState();for(let n of i)for(let r of n.addedNodes){if(r.nodeType!==Node.ELEMENT_NODE)continue;let a=r;a.tagName==="BROWSER-WINDOW"?a.setAttribute("mode",s):a.tagName==="CODE-BLOCK"&&a.setAttribute("theme",s),a.querySelectorAll("browser-window").forEach(o=>{o.setAttribute("mode",s)}),a.querySelectorAll("code-block").forEach(o=>{o.setAttribute("theme",s)})}}).observe(document.body,{childList:!0,subtree:!0})}var Im=[{selector:"[data-wizard]",load:()=>Promise.resolve().then(()=>(Jf(),Zf))},{selector:"[data-gesture]",load:()=>Promise.resolve().then(()=>(wr(),vr))},{selector:"[data-keyboard-aware]",load:()=>Promise.resolve().then(()=>(ep(),tp))},{selector:"[data-focus-trap]",load:()=>Promise.resolve().then(()=>(np(),sp))},{selector:"[data-scroll-hide]",load:()=>Promise.resolve().then(()=>(ap(),HE))},{selector:"[data-spotlight]",load:()=>Promise.resolve().then(()=>(lp(),cp))},{selector:"[data-splitter]",load:()=>Promise.resolve().then(()=>(Ka(),ih))},{selector:"[data-back-to-top]",load:()=>Promise.resolve().then(()=>(Ca(),Fd))},{selector:"[data-hotkey]:not(kbd)",load:()=>Promise.resolve().then(()=>(mp(),pp))},{selector:'a[target="_blank"]',load:()=>Promise.resolve().then(()=>(Ap(),wp))},{selector:"[data-watch-page], watch-wc",load:()=>Promise.resolve().then(()=>(aa(),ra))},{selector:"img[data-responsive]",load:()=>Promise.resolve().then(()=>(Tp(),Cp))},{selector:"form-field[data-floating-label]",load:()=>Promise.resolve().then(()=>(Mp(),Np))},{selector:"button[data-loading]",load:()=>Promise.resolve().then(()=>(Fp(),Rp))},{selector:"input[data-mask]",load:()=>Promise.resolve().then(()=>(mo(),Yh))},{selector:"input[data-accept]",load:()=>Promise.resolve().then(()=>(go(),tf))},{selector:'input[type="file"][data-upload]',load:()=>Promise.resolve().then(()=>(lo(),Ph))},{selector:'input[type="range"][data-range]',load:()=>Promise.resolve().then(()=>(co(),Mh))},{selector:'input[type="number"][data-stepper]',load:()=>Promise.resolve().then(()=>(yo(),uf))},{selector:'input[type="checkbox"][data-switch]',load:()=>Promise.resolve().then(()=>(Ya(),rh))},{selector:'input[type="color"][data-color]',load:()=>Promise.resolve().then(()=>(vo(),pf))},{selector:"textarea[data-grow]",load:()=>Promise.resolve().then(()=>(Ja(),bh))},{selector:"textarea[data-count]",load:()=>Promise.resolve().then(()=>(Za(),fh))},{selector:"fieldset[data-toggle-tags][data-max]",load:()=>Promise.resolve().then(()=>(bo(),rf))},{selector:"form[data-autosave]",load:()=>Promise.resolve().then(()=>(ho(),Hh))},{selector:"form[data-vb-email-form]",load:()=>Promise.resolve().then(()=>(qp(),Op))},{selector:"form[data-vb-newsletter-form]",load:()=>Promise.resolve().then(()=>(Gp(),Wp))},{selector:"[data-copy], [data-copy-target], [data-paste-target]",load:()=>Promise.resolve().then(()=>(ae(),Vl))},{selector:"[data-select-all]",load:()=>Promise.resolve().then(()=>(So(),Sf))},{selector:"[data-show-when], [data-hide-when]",load:()=>Promise.resolve().then(()=>(ro(),xh))},{selector:"[data-spoiler]",load:()=>Promise.resolve().then(()=>(Va(),Jd))},{selector:"[data-math], code.language-math",load:()=>Promise.resolve().then(()=>(Do(),Nf))},{selector:"time[data-format-date]",load:()=>Promise.resolve().then(()=>(Fa(),Ud))},{selector:"data[data-format-number]",load:()=>Promise.resolve().then(()=>(Ma(),Od))},{selector:"data[data-format-bytes]",load:()=>Promise.resolve().then(()=>(Oa(),Kd))},{selector:"[data-audio-playlist]",load:()=>Promise.resolve().then(()=>(Qp(),Jp))},{selector:"[data-paged]",load:()=>Promise.resolve().then(()=>(om(),am))},{selector:"[data-sortable], [data-sort-target]",load:()=>Promise.resolve().then(()=>(Am(),wm))},{selector:"[data-toggle]",load:()=>Promise.resolve().then(()=>(Dm(),Lm))},{selector:'table[data-responsive="card"]',load:()=>Promise.resolve().then(()=>($m(),_m))}],De=new Set,Ei=null,hc=0;function qk(){hc=0;for(let e of De)document.querySelector(e.selector)&&(De.delete(e),e.load());De.size||(Ei?.disconnect(),Ei=null)}function jk(){if(Ei||!De.size||typeof MutationObserver>"u")return;let e=document.documentElement;e&&(Ei=new MutationObserver(()=>{hc||(hc=window.setTimeout(qk,100))}),Ei.observe(e,{childList:!0,subtree:!0,attributes:!0}))}function Bm(e,t=document){for(let i of e)t.querySelector(i.selector)?(De.delete(i),i.load()):t===document&&De.add(i);t===document&&jk()}var Tx=[{selector:"[data-emoji]",load:()=>Promise.resolve().then(()=>(Ym(),Km))},{selector:"[data-highlights]",load:()=>Promise.resolve().then(()=>(ea(),cd))},{selector:"[data-command], [commandfor]",load:()=>Promise.resolve().then(()=>(Qm(),Jm))},{selector:"[data-markdown-editable]",load:()=>Promise.resolve().then(()=>(yg(),JS))},{selector:"markdown-viewer[data-auto-mermaid], markdown-editor[data-auto-mermaid]",load:()=>Promise.resolve().then(()=>(Sg(),ix))},{selector:":is(img, video, iframe, canvas)[data-mock]",load:()=>Promise.resolve().then(()=>(Ng(),Dg))},{selector:"[data-lorem]",load:()=>Promise.resolve().then(()=>($g(),_g))},{selector:'track[kind="chapters"][data-chapter-list]',load:()=>Promise.resolve().then(()=>(Rg(),Bg))}],Lx=[...Im,...Tx];function Fg(e=document){Bm(Lx,e)}var Dx=["valueMissing","typeMismatch","patternMismatch","tooShort","tooLong","rangeUnderflow","rangeOverflow","stepMismatch","badInput"],Nx={"data-label-group":"Group","data-message-min-checked":"Select at least {min}","data-message-max-checked":"Select no more than {max}","data-message-invalid-selection":"Invalid selection","data-message-match":"Values do not match","data-message-network":"Something went wrong. Please try again."},Ni=new WeakSet,_e=new WeakSet,Mx=0;function Qt(e,t,i,s={}){return(t?.getAttribute(i)??e.getAttribute(i)??Nx[i]??"").replace(/\{(\w+)\}/g,(r,a)=>a in s?String(s[a]):r)}function Pg(e,t){let i=e.closest("[lang]")?.getAttribute("lang")||void 0,s="other";try{s=new Intl.PluralRules(i).select(t)}catch{}return(e.getAttribute(`data-label-summary-${s}`)??e.getAttribute("data-label-summary")??(t===1?"Please fix {count} error:":"Please fix {count} errors:")).replaceAll("{count}",String(t))}function Mi(e){return[...e.elements].filter(t=>t.willValidate&&!("honeypot"in t.dataset))}function Og(e){return Mi(e).filter(t=>t.dataset.match)}function Vg(e){return[...e.querySelectorAll("form-field[data-upgraded]")]}function Gc(e){let t=e.closest("form-field[data-upgraded]");return t&&t.input===e?t:null}function Ug(e){return e.id||(e.id=`vb-field-${++Mx}`),e.id}function _x(e){return!e.disabled&&!e.closest("[inert], [hidden]")&&e.getClientRects().length>0}function $x(e,t){if(t.type==="radio"){let s=t.closest("fieldset")?.querySelector(":scope > legend")?.textContent?.trim();if(s)return s}let i=Gc(t);return i?.fieldName?i.fieldName:t.labels?.[0]?.textContent?.trim()||t.getAttribute("aria-label")||t.name||t.id||Qt(e,null,"data-label-group")}function Ix(e){let t=Gc(e);if(t&&typeof t.errorMessage=="string"&&t.errorMessage)return t.errorMessage;let i=Uc(e)?.textContent?.trim();if(i)return i;for(let s of Dx){if(!e.validity[s])continue;let n=e.getAttribute(`data-message-${s.toLowerCase()}`);if(n)return n;break}return e.validationMessage}function Uc(e){let t=e.getAttribute("aria-describedby")?.split(/\s+/)??[];for(let s of t){let n=document.getElementById(s);if(n?.tagName==="OUTPUT"&&n.classList.contains("error"))return n}return e.closest("form-field")?.querySelector("output.error")??null}function Bx(e){return e.querySelector('input:not([type="hidden"]), select, textarea, button')}function Wg(e,t){let i=e.dataset.match;return i?t.querySelector(`#${CSS.escape(i)}`)??t.querySelector(`[name="${CSS.escape(i)}"]`):null}function hn(e,t){let i=Wg(e,t);if(i){if(e.setCustomValidity(""),e.value&&i.value&&e.value!==i.value){let s=Qt(t,e,"data-message-match");e.setCustomValidity(s);let n=Uc(e);n&&(n.textContent=s)}else if(e.validity.valid){let s=Uc(e);s&&(s.textContent="")}}}function qg(e,t){let s=[...t.querySelectorAll('input[type="checkbox"]')].filter(c=>c.checked).length,n=parseInt(t.dataset.minChecked??"0",10),r=parseInt(t.dataset.maxChecked??"999",10),a=t.querySelector(":scope > output"),o=null;return s<n&&(o=Qt(e,t,"data-message-min-checked",{min:n,max:r})),s>r&&(o=Qt(e,t,"data-message-max-checked",{min:n,max:r})),a&&(a.textContent=o??""),o?t.dataset.invalid="":delete t.dataset.invalid,!o}function jg(e){return[...e.querySelectorAll("fieldset[data-min-checked], fieldset[data-max-checked]")]}function Gg(e){let t=[],i=new Set;for(let s of Mi(e)){if(s.validity.valid)continue;let n=s;if(s.type==="radio"&&s.name){if(i.has(s.name))continue;i.add(s.name),n=Mi(e).find(r=>r.type==="radio"&&r.name===s.name)??s}t.push({target:n,label:$x(e,s),message:Ix(s)})}for(let s of e.querySelectorAll("fieldset[data-invalid]")){let n=Bx(s);if(!n)continue;let r=s.querySelector(":scope > output");t.push({target:n,label:s.querySelector(":scope > legend")?.textContent?.trim()||Qt(e,s,"data-label-group"),message:r?.textContent?.trim()||Qt(e,s,"data-message-invalid-selection")})}return t.sort((s,n)=>s.target.compareDocumentPosition(n.target)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1),t}function Kg(e){return Gg(e).map(t=>t.target).find(_x)??null}function Rx(e){let t=e.querySelector("[data-form-summary]");if(t)return{el:t,type:"authored",signature:"",active:!1};let i=e.querySelector("output.error-summary");return i?{el:i,type:"legacy",signature:"",active:!1}:null}function Hg(e){return e.map(t=>{let i=document.createElement("li"),s=document.createElement("a");return s.href=`#${Ug(t.target)}`,s.textContent=`${t.label}: ${t.message}`,i.append(s),i})}function Wc(e,t,{focus:i=!1}={}){if(!t)return;let s=Gg(e);if(s.length===0){Yg(t);return}t.active=!0;let n=s.map(a=>`${Ug(a.target)}\0${a.label}\0${a.message}`).join(""),r=n!==t.signature;if(t.signature=n,t.type==="authored"){if(r){t.el.querySelector("[data-summary-list]")?.replaceChildren(...Hg(s));let a=t.el.querySelector("[data-summary-heading]");a&&(a.textContent=Pg(e,s.length))}(t.el.hidden||!t.el.hasAttribute("data-state-visible"))&&(t.el.hidden=!1,t.el.offsetHeight,t.el.dataset.stateVisible="")}else if(r){let a=document.createElement("p");a.textContent=Pg(e,s.length);let o=document.createElement("ul");o.append(...Hg(s)),t.el.replaceChildren(a,o)}i&&t.el.focus()}function Fx(e){let t=getComputedStyle(e),i=r=>r.split(",").map(a=>parseFloat(a)*(a.trim().endsWith("ms")?1:1e3)||0),s=i(t.transitionDuration),n=i(t.transitionDelay);return Math.max(0,...s.map((r,a)=>r+(n[a]??n[0]??0)))}function Yg(e){if(e)if(e.active=!1,e.signature="",e.type==="authored"){let t=e.el;delete t.dataset.stateVisible;let i=()=>{t.hasAttribute("data-state-visible")||(t.hidden=!0,t.querySelector("[data-summary-list]")?.replaceChildren())},n=matchMedia("(prefers-reduced-motion: reduce)").matches?0:Fx(t);n===0?i():setTimeout(i,n+50)}else e.el.replaceChildren()}function Px(e){e&&e.el.addEventListener("click",t=>{let i=t.target.closest('a[href^="#"]');if(!i)return;t.preventDefault();let s=document.getElementById((i.getAttribute("href")??"#").slice(1));s&&(s.scrollIntoView({behavior:"smooth",block:"center"}),s.focus())})}function Ox(e){for(let t of Mi(e))Gc(t)||(t.validity.valid?_e.has(t)&&(t.removeAttribute("aria-invalid"),_e.delete(t)):(t.setAttribute("aria-invalid","true"),_e.add(t)))}function zg(e){let t=e.target;if(!_e.has(t))return;let i=t.type==="radio"&&t.form&&t.name?Mi(t.form).filter(s=>s.type==="radio"&&s.name===t.name):[t];for(let s of i)_e.has(s)&&s.validity.valid&&(s.removeAttribute("aria-invalid"),_e.delete(s))}function qx(e){let t=e.querySelector("[data-form-error]");return t||(t=document.createElement("p"),t.setAttribute("data-form-error",""),t.hidden=!0,e.prepend(t)),t.hasAttribute("role")||t.setAttribute("role","alert"),t}function jx(e){e.dataset.error="network";let t=qx(e);(!t.textContent.trim()||t.hasAttribute("data-vb-generated"))&&(t.textContent=Qt(e,null,"data-message-network"),t.setAttribute("data-vb-generated","")),t.hidden=!1}function Hx(e){if(e.hasAttribute("data-success")){delete e.dataset.success;let i=e.querySelector("[data-form-success]");i&&(i.hidden=!0)}delete e.dataset.error;let t=e.querySelector("[data-form-error]");t&&(t.hidden=!0)}function zx(e){e.dataset.success="";let t=e.querySelector("[data-form-success]");t&&(t.hidden=!1,t.hasAttribute("tabindex")||(t.tabIndex=-1),t.hasAttribute("role")||t.setAttribute("role","status"),t.focus())}function Vx(e){return[...e.elements].find(t=>t instanceof HTMLButtonElement&&t.type==="submit"||t instanceof HTMLInputElement&&(t.type==="submit"||t.type==="image"))??null}function Xg(e,t){try{return t?new FormData(e,t):new FormData(e)}catch{return new FormData(e)}}function Ux(e,t){return t?.hasAttribute("formenctype")?t.formEnctype:e.hasAttribute("enctype")?e.enctype:"multipart/form-data"}function Wx(e,t){if(t==="multipart/form-data")return e;let i=[...e].map(([s,n])=>[s,typeof n=="string"?n:n.name]);return t==="text/plain"?i.map(([s,n])=>`${s}=${n}\r
553
- `).join(""):new URLSearchParams(i)}async function Gx(e,t){let i=t??Vx(e),n=(t?.getAttribute("formmethod")||e.getAttribute("method")||"post").toLowerCase()==="get"?"GET":"POST",r=t?.hasAttribute("formaction")?t.formAction:e.action;e.dataset.submitting="",i&&i.setAttribute("aria-disabled","true");let a=()=>{delete e.dataset.submitting,i&&i.getAttribute("aria-busy")!=="true"&&i.removeAttribute("aria-disabled")};try{let o=Xg(e,t),c;if(n==="GET"){let l=new URL(r,document.baseURI);l.search="";for(let[u,d]of o)typeof d=="string"&&l.searchParams.append(u,d);c=await fetch(l,{method:n})}else c=await fetch(r,{method:n,body:Wx(o,Ux(e,t))});if(a(),!c.ok){if((c.headers.get("content-type")??"").includes("application/json")){let u=await c.json();if(u.errors){Kx(e,u.errors);return}}throw new Error(`Server error: ${c.status}`)}zx(e)}catch{a(),jx(e)}}function Kx(e,t){e.dataset.error="";let i=Vg(e),s=!1;for(let n of i){let r=n.input??n.querySelector("input, textarea, select");if(!r)continue;let a=t[r.name];a&&(n.setError(String(a)),s=!0)}if(s){let n=e._vbSummary;n?Wc(e,n,{focus:!0}):Kg(e)?.focus()}for(let n of i)(n.input??n.querySelector("input, textarea, select"))?.addEventListener("input",()=>n.clearError(),{once:!0})}function Yx(e,t){setTimeout(()=>{if(!e.isConnected)return;let i=t?.isConnected&&t.form===e?t:null;Ni.add(e);try{i?e.requestSubmit(i):e.requestSubmit()}catch{Ni.delete(e),e.submit()}Ni.delete(e)})}function Vc(e){if(e.hasAttribute("data-vb-enhanced"))return;e.setAttribute("novalidate",""),e.setAttribute("data-vb-enhanced","");let t=Rx(e);e._vbSummary=t,t&&Px(t);for(let i of Og(e))i.addEventListener("input",()=>hn(i,e)),i.addEventListener("blur",()=>hn(i,e)),Wg(i,e)?.addEventListener("input",()=>hn(i,e));for(let i of jg(e))i.addEventListener("change",()=>qg(e,i));if(e.addEventListener("input",zg),e.addEventListener("change",zg),e.addEventListener("submit",i=>{if(Ni.has(e)){Ni.delete(e);return}i.preventDefault();let s=i.submitter??null;Hx(e);let n=!!s?.hasAttribute("formnovalidate");if(!n){for(let c of Vg(e))c.validate();for(let c of Og(e))hn(c,e);for(let c of jg(e))qg(e,c);Ox(e)}if(!(n||e.checkValidity()&&!e.querySelector("fieldset[data-invalid]"))){if(t)Wc(e,t,{focus:!0});else{let c=Kg(e);c&&(c.scrollIntoView({behavior:"smooth",block:"center"}),c.focus())}return}Yg(t);let a=new CustomEvent("vb:beforesubmit",{bubbles:!0,cancelable:!0,detail:{form:e,submitter:s}});if(e.dispatchEvent(a),a.defaultPrevented)return;let o=e.dataset.submit??"native";o==="fetch"?Gx(e,s):o==="event"?e.dispatchEvent(new CustomEvent("vb:submit",{bubbles:!0,cancelable:!0,detail:Xg(e,s)})):Yx(e,s)}),t){let i=()=>requestAnimationFrame(()=>{t.active&&Wc(e,t)});e.addEventListener("focusout",i),e.addEventListener("change",i)}}function Zg(){for(let t of document.querySelectorAll("form[data-validate]"))Vc(t);new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.("form[data-validate]")&&Vc(n),n.querySelectorAll?.("form[data-validate]").forEach(r=>Vc(r))}}).observe(document.body,{childList:!0,subtree:!0})}$();var Jg='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/></svg>',Xx='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"/><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"/><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"/><path d="m2 2 20 20"/></svg>',$e={password:new WeakSet,otp:new WeakSet,strength:new WeakSet},Zx=0;function U(e,t,i){return e.getAttribute(`data-label-${t}`)??i}function Kc(e){let t=e.querySelector('input[type="password"]');if(!t||$e.password.has(e)||t.closest(".password-wrapper")||e.querySelector(".password-toggle"))return;$e.password.add(e);let i=U(e,"show-password","Show password"),s=U(e,"hide-password","Hide password"),n=document.createElement("div");n.className="password-wrapper",t.parentNode.insertBefore(n,t),n.appendChild(t);let r=document.createElement("button");r.type="button",r.className="password-toggle",r.setAttribute("aria-label",i),r.setAttribute("aria-pressed","false"),r.innerHTML=Jg,n.appendChild(r),r.addEventListener("click",()=>{let a=t.type==="password";t.type=a?"text":"password",r.setAttribute("aria-pressed",String(a)),r.setAttribute("aria-label",a?s:i),r.innerHTML=a?Xx:Jg})}function Yc(e){let t=e.querySelector('input[data-type="otp"], input[data-type="pin"]');if(!t||$e.otp.has(e)||e.querySelector(".otp-wrapper"))return;let i=t;$e.otp.add(e),e.setAttribute("data-otp-ready","");let s=Math.max(1,parseInt(i.dataset.length||"6",10)||6),n=i.id||`otp-${++Zx}`;i.classList.add("otp-source"),i.tabIndex=-1,i.setAttribute("aria-hidden","true"),i.hasAttribute("pattern")||(i.pattern=`\\d{${s}}`),i.maxLength=s;let r=i.getAttribute("autocomplete")||(i.dataset.type==="otp"?"one-time-code":"off");i.setAttribute("autocomplete","off"),i.hasAttribute("data-message-patternmismatch")||i.setAttribute("data-message-patternmismatch",U(e,"incomplete","Enter all {total} digits").replace("{total}",String(s)));let a=i.id&&e.querySelector(`label[for="${CSS.escape(i.id)}"]`)||e.querySelector("label"),o=document.createElement("div");o.className="otp-wrapper",o.setAttribute("role","group"),a&&(a.id||(a.id=`${n}-label`),o.setAttribute("aria-labelledby",a.id));let c=[...e.querySelectorAll("output.hint")].map((m,g)=>(m.id||(m.id=`${n}-hint${g?`-${g}`:""}`),m.id)),l=[...new Set([...(i.getAttribute("aria-describedby")??"").split(/\s+/),...c])].filter(Boolean);l.length&&o.setAttribute("aria-describedby",l.join(" ")),i.after(o);let u=U(e,"digit","Digit {n} of {total}"),d=[];for(let m=0;m<s;m++){let g=document.createElement("input");g.type="text",g.inputMode="numeric",g.pattern="[0-9]",g.className="otp-digit",g.setAttribute("autocomplete",m===0?r:"off"),g.setAttribute("aria-label",u.replace("{n}",String(m+1)).replace("{total}",String(s))),d.push(g),o.appendChild(g)}[...i.value.replace(/\D/g,"").slice(0,s)].forEach((m,g)=>{d[g].value=m});function f(){i.value=d.map(m=>m.value).join(""),i.dispatchEvent(new Event("input",{bubbles:!0}))}function p(m,g){let b=g.replace(/\D/g,"").slice(0,s-m).split("");b.forEach((w,_)=>{d[m+_].value=w});let A=d.findIndex(w=>!w.value);A!==-1?d[A].focus():d[Math.min(m+Math.max(b.length,1)-1,s-1)].focus(),f()}d.forEach((m,g)=>{m.addEventListener("input",()=>{let b=m.value;if(b.length>1){m.value="",p(g,b);return}if(b&&!/^\d$/.test(b)){m.value="";return}b&&g<d.length-1&&d[g+1].focus(),f()}),m.addEventListener("keydown",b=>{b.key==="Backspace"&&!m.value&&g>0&&d[g-1].focus();let A=getComputedStyle(o).direction==="rtl",w=A?"ArrowRight":"ArrowLeft",_=A?"ArrowLeft":"ArrowRight";b.key===w&&g>0&&(b.preventDefault(),d[g-1].focus()),b.key===_&&g<d.length-1&&(b.preventDefault(),d[g+1].focus())}),m.addEventListener("paste",b=>{b.preventDefault();let A=(b.clipboardData||window.clipboardData)?.getData("text")??"";p(0,A)}),m.addEventListener("focus",()=>{m.select()})}),i.addEventListener("focus",()=>{(d.find(m=>!m.value)??d[s-1]).focus()}),i.form?.addEventListener("reset",()=>{queueMicrotask(()=>{let m=i.value.replace(/\D/g,"");d.forEach((g,b)=>{g.value=m[b]??""})})}),e.addEventListener("click",m=>{m.target===e&&d[0].focus()})}var Qg=["weak","fair","good","strong"],Jx=0;function Xc(e){let t=e.querySelector("input[data-strength]");if(!t||$e.strength.has(e))return;let i=t;$e.strength.add(e),e.querySelectorAll(".strength-meter, .strength-rules, .strength-status").forEach(S=>S.remove());let s=tb(i.dataset.rules||"length:8",e),n={weak:U(e,"strength-weak","Weak"),fair:U(e,"strength-fair","Fair"),good:U(e,"strength-good","Good"),strong:U(e,"strength-strong","Strong")},r=U(e,"strength","Password strength"),a=U(e,"strength-empty","No password entered"),o=U(e,"rule-met","met"),c=U(e,"rule-unmet","not met"),l=`strength-${++Jx}`,u=document.createElement("div");u.className="strength-meter";let d=document.createElement("meter");d.min=0,d.max=s.length,d.low=Math.ceil(s.length*.4),d.high=Math.ceil(s.length*.75),d.optimum=s.length,d.value=0,d.className="s",d.setAttribute("aria-label",r);let h=document.createElement("span");h.className="strength-label",h.setAttribute("aria-hidden","true"),u.append(d,h);let f=document.createElement("ul");f.className="strength-rules",f.id=`${l}-rules`,f.setAttribute("aria-label",U(e,"requirements","Password requirements"));let p=s.map(S=>{let L=document.createElement("li");L.dataset.rule=S.type;let P=document.createElement("span");return P.className="visually-hidden",L.append(S.label,P),f.append(L),{li:L,state:P}}),m=document.createElement("span");m.className="strength-status visually-hidden",m.setAttribute("role","status"),(e.querySelector(".password-wrapper")||i).insertAdjacentElement("afterend",u),u.insertAdjacentElement("afterend",f),f.insertAdjacentElement("afterend",m);let b=new Set((i.getAttribute("aria-describedby")||"").split(/\s+/).filter(S=>S&&!/^strength-\d+-rules$/.test(S)));b.add(f.id),i.setAttribute("aria-describedby",[...b].join(" "));let A=Qg.indexOf(i.dataset.strengthMin??""),w=U(e,"strength-too-weak","Choose a stronger password. Meet more of the requirements."),_=0,D="";function V({announce:S=!0}={}){let L=i.value,P=0;s.forEach((mt,pb)=>{let bn=Qx(mt,L),{li:mb,state:gb}=p[pb];mb.toggleAttribute("data-met",bn),gb.textContent=`: ${bn?o:c}`,bn&&P++}),d.value=P;let Re=P/s.length,ot=L.length===0?"":Re<.4?"weak":Re<.75?"fair":Re<1?"good":"strong",ee=ot?n[ot]:"";if(h.textContent=ee,u.dataset.level=ot,d.setAttribute("aria-valuetext",ee||a),A>=0){let mt=ot!==""&&Qg.indexOf(ot)<A;i.setCustomValidity(mt?w:"")}ot!==D&&(D=ot,clearTimeout(_),S&&ot?_=window.setTimeout(()=>{m.textContent=`${r}: ${ee}`},600):m.textContent="")}i.addEventListener("input",()=>V()),F(i,()=>V({announce:!1})),V({announce:!1})}function tb(e,t){let i=[];for(let s of e.split(",")){let[n,r]=s.trim().split(":");switch(n){case"length":{let a=parseInt(r)||8;i.push({type:n,param:a,label:U(t,"rule-length","At least {n} characters").replace("{n}",String(a))});break}case"uppercase":i.push({type:n,label:U(t,"rule-uppercase","One uppercase letter")});break;case"lowercase":i.push({type:n,label:U(t,"rule-lowercase","One lowercase letter")});break;case"number":i.push({type:n,label:U(t,"rule-number","One number")});break;case"special":i.push({type:n,label:U(t,"rule-special","One special character")});break;case"":break;default:console.warn(`[data-strength] Unknown rule "${n}" ignored.`,t)}}return i.length?i:tb("length:8",t)}function Qx(e,t){switch(e.type){case"length":return[...t].length>=(e.param||8);case"uppercase":return/\p{Lu}/u.test(t);case"lowercase":return/\p{Ll}/u.test(t);case"number":return/\p{N}/u.test(t);case"special":return/[^\p{L}\p{N}]/u.test(t);default:return!1}}function tC(){document.querySelectorAll('form-field:has(input[type="password"])').forEach(Kc)}function eC(){document.querySelectorAll('form-field:has(input[data-type="otp"]), form-field:has(input[data-type="pin"])').forEach(Yc)}function iC(){document.querySelectorAll("form-field:has(input[data-strength])").forEach(Xc)}function eb(){tC(),eC(),iC(),new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.('form-field:has(input[type="password"])')&&Kc(n),(n.matches?.('form-field:has(input[data-type="otp"])')||n.matches?.('form-field:has(input[data-type="pin"])'))&&Yc(n),n.matches?.("form-field:has(input[data-strength])")&&Xc(n),n.querySelectorAll?.('form-field:has(input[type="password"])')?.forEach(Kc),n.querySelectorAll?.('form-field:has(input[data-type="otp"]), form-field:has(input[data-type="pin"])')?.forEach(Yc),n.querySelectorAll?.("form-field:has(input[data-strength])")?.forEach(Xc)}}).observe(document.body,{childList:!0,subtree:!0})}function sC(e){let t=Date.now(),i=e*7+t%9973&65535;return btoa(JSON.stringify({s:e,t,c:i}))}function nC(e,t,i){let s=0,n=e.submitAt-(e.firstInteractionAt??e.submitAt),r=t.querySelector("[data-honeypot]");return r&&r.value.trim()&&(s+=80),[...t.querySelectorAll('input[type="text"], input[type="email"], input[type="tel"], textarea')].filter(o=>o.value.trim()&&!("honeypot"in o.dataset)).length>0&&e.keyboardEventCount===0&&(s+=30),e.fieldFocusCount===0&&(s+=40),!i&&!e.mouseMovedInForm&&(s+=20),n<1e3?s+=80:n<3e3&&(s+=50),Math.min(s,100)}function rC(e){return new Promise((t,i)=>{let s=document.createElement("script");s.src=e,s.async=!0,s.onload=t,s.onerror=i,document.head.appendChild(s)})}async function aC(e,t){if(!document.querySelector("[data-cf-turnstile-loaded]"))try{await rC("https://challenges.cloudflare.com/turnstile/v0/api.js"),document.head.dataset.cfTurnstileLoaded="";let i=document.createElement("div");i.className="cf-turnstile",i.dataset.sitekey=t,i.dataset.size="invisible",e.appendChild(i)}catch{}}function Zc(e){if(e.hasAttribute("data-bot-enhanced"))return;e.setAttribute("data-bot-enhanced","");let t={fieldFocusCount:0,keyboardEventCount:0,mouseMovedInForm:!1,firstInteractionAt:null,submitAt:null},i=navigator.maxTouchPoints>0;e.addEventListener("focusin",s=>{s.target.matches("input, textarea, select")&&!("honeypot"in s.target.dataset)&&(t.fieldFocusCount++,t.firstInteractionAt??=Date.now())},{capture:!0}),e.addEventListener("keydown",s=>{s.target.matches("input, textarea")&&t.keyboardEventCount++},{capture:!0}),i||e.addEventListener("mousemove",()=>{t.mouseMovedInForm=!0},{once:!0}),e.addEventListener("vb:beforesubmit",s=>{t.submitAt=Date.now();let n=nC(t,e,i),r=e.querySelector("[data-bot-score-field]");if(r||(r=document.createElement("input"),r.type="hidden",r.name="_vb_score",r.dataset.botScoreField="",e.appendChild(r)),r.value=sC(n),n>=80){s.preventDefault(),e.dispatchEvent(new CustomEvent("vb:botblocked",{bubbles:!0,detail:{score:n}}));return}n>=60&&e.dataset.turnstileSitekey&&aC(e,e.dataset.turnstileSitekey)})}function ib(){for(let t of document.querySelectorAll("form[data-bot-protection]"))Zc(t);new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.("form[data-bot-protection]")&&Zc(n),n.querySelectorAll?.("form[data-bot-protection]").forEach(r=>Zc(r))}}).observe(document.body,{childList:!0,subtree:!0})}var vt=null,fn=new Map,Jc=null;function oC(){if(typeof window<"u"&&window.__VB_COMPONENT_BASE)return String(window.__VB_COMPONENT_BASE).replace(/\/$/,"");if(typeof document<"u"){let e=document.querySelectorAll('script[src*="vanilla-breeze"]');for(let t of e){let i=t.getAttribute("src");if(i){let s=i.lastIndexOf("/");if(s!==-1)return i.slice(0,s)}}}return"/cdn"}async function cC(){if(vt)return vt;let e=oC();vt=new Map;try{let t=await fetch(`${e}/components/manifest.json`);if(!t.ok)throw new Error(`HTTP ${t.status}`);let i=await t.json();for(let[s,n]of Object.entries(i))vt.set(s,`${e}/components/${n.file}`)}catch{console.warn("[VB] Component manifest unavailable \u2014 autoloader disabled")}return vt}async function nb(e){if(customElements.get(e))return;if(fn.has(e))return fn.get(e);let t=vt?.get(e);if(!t)return;let i=import(t).then(()=>customElements.whenDefined(e)).then(()=>{}).catch(s=>{console.warn(`[VB] Failed to autoload ${e}:`,s),fn.delete(e)});return fn.set(e,i),i}function sb(e){if(!vt)return;let t=e===document?document.querySelectorAll("*"):e.querySelectorAll?.("*")||[],i=new Set;for(let s of t){let n=s.localName;n.includes("-")&&!customElements.get(n)&&vt.has(n)&&i.add(n)}for(let s of i)nb(s)}async function rb(){await cC(),sb(document),!Jc&&(Jc=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i,n=s.localName;n.includes("-")&&vt?.has(n)&&nb(n),s.querySelectorAll&&sb(s)}}),Jc.observe(document.documentElement,{childList:!0,subtree:!0}))}ct();ge();Q();dt();function lC(e,t){let i=String(e??"").split(`
550
+ `;for(let i of this.querySelectorAll("[data-part]"))this.#t[i.dataset.part??""]=i;this.#t.heading.textContent=this.#e,this.#o()}#o(){let t=l0(this.getAttribute("heading-level")),i={heading:t,"fields-heading":Math.min(t+1,6)};for(let[s,n]of Object.entries(i)){let r=this.#t[s];if(!r||r.localName===`h${n}`)continue;let a=document.createElement(`h${n}`);for(let{name:o,value:c}of r.attributes)a.setAttribute(o,c);a.textContent=r.textContent,r.replaceWith(a),this.#t[s]=a}}refresh(){if(!this.#t.status)return;let t=this.status,i=u0(t),s=this.#t;this.setAttribute("data-state",i.state),i.reason?this.setAttribute("data-reason",i.reason):this.removeAttribute("data-reason"),s.status.textContent!==i.text&&(s.status.textContent=i.text),this.#r(t);let n=!!t?.signals?.user,r=d0(t),a=n?"Resume analytics":"Pause analytics";if(s.toggle.textContent!==a&&(s.toggle.textContent=a),s.toggle.setAttribute("aria-pressed",String(n)),n&&r.length>0?s.toggle.setAttribute("aria-disabled","true"):s.toggle.removeAttribute("aria-disabled"),r.length){let c=r.map(l=>Ed[l]).join(" and ");s.hint.textContent=n?`Resume is unavailable because ${c}.`:`Analytics stays off because ${c}; pausing as well changes nothing.`,s.hint.hidden=!1,s.toggle.setAttribute("aria-describedby",s.hint.id)}else s.hint.textContent="",s.hint.hidden=!0,s.toggle.removeAttribute("aria-describedby")}#r(t){let{data:i,empty:s}=this.#t;if(!t?.initialized||!t.preview){i.hidden=!0,i.replaceChildren(),s.hidden=!1,s.textContent="Nothing to show: the analytics runtime has not started on this page.";return}s.hidden=!0,i.hidden=!1;let n=[["Fields",t.collects.join(", ")],["Page path",t.preview.path],["Referrer",t.preview.referrer||"(none)"],["Page context",t.contextKeys.length?t.contextKeys.join(", "):"(none)"]];t.transport==="beacon"?(n.push(["Sent to",t.endpoint]),n.push(["Sent from this page",String(t.sent)])):t.transport==="console"&&n.push(["Logged on this page",String(t.logged)]),t.queued>0&&n.push(["Waiting to send",String(t.queued)]),t.outboundLinks&&n.push(["Outbound link clicks","Reported (site, page path, destination)"]);let r=document.createDocumentFragment();for(let[a,o]of n){let c=document.createElement("dt");c.textContent=a;let l=document.createElement("dd");l.textContent=o,r.append(c,l)}i.replaceChildren(r)}};A("analytics-panel",pa);var ma="data-brand-mark-img",h0="(width < 48rem)",ga=class extends E{static observedAttributes=["src","src-dark","src-compact","compact-media","alt","wordmark","height"];#t=null;#e=null;#i=null;#n=!1;setup(){this.#a(),this.hasAttribute("src-dark")&&this.#o(),this.#c(),this.#e=new MutationObserver(()=>this.#g()),this.#e.observe(this,{childList:!0,characterData:!0,subtree:!0})}teardown(){this.#t?.disconnect(),this.#t=null,this.#e?.disconnect(),this.#e=null,this.#i=null,this.#n=!1}attributeChangedCallback(t,i,s){if(i!==s&&!(!this.isConnected||!this.hasAttribute("data-upgraded"))){if(t==="height"){this.#a();return}t==="src-dark"&&s!==null&&this.#o(),this.#c()}}#s(){let t=document.documentElement.getAttribute("data-mode");if(t==="dark")return!0;if(t==="light")return!1;let i=getComputedStyle(this).colorScheme||"";return/\bdark\b/.test(i)&&!/\blight\b/.test(i)?!0:/\blight\b/.test(i)&&!/\bdark\b/.test(i)?!1:(this.#i??matchMedia("(prefers-color-scheme: dark)")).matches}#o(){this.#n||(this.#n=!0,this.#i=matchMedia("(prefers-color-scheme: dark)"),this.listen(this.#i,"change",this.#r),this.listen(window,"vb:theme-change",this.#r),this.#t=new MutationObserver(this.#r),this.#t.observe(document.documentElement,{attributes:!0,attributeFilter:["data-mode","data-theme"]}))}#r=()=>{this.isConnected&&this.#c()};#a(){let t=this.getAttribute("height")?.trim();if(!t){this.style.removeProperty("--brand-mark-height"),this.getAttribute("style")||this.removeAttribute("style");return}this.style.setProperty("--brand-mark-height",/^\d+(\.\d+)?$/.test(t)?`${t}px`:t)}#l(){return this.querySelector(`:scope > [${ma}]`)}#c(){let t=this.getAttribute("src"),i=this.#l();if(!t){i?.remove();return}let s=this.getAttribute("src-dark"),n=s&&this.#s()?s:t;if(!(i instanceof HTMLPictureElement)||!i.querySelector(":scope > img")){i?.remove(),i=document.createElement("picture"),i.setAttribute(ma,"");let c=document.createElement("img");c.decoding="async",i.append(c),this.prepend(i)}let r=i.querySelector(":scope > img");r.getAttribute("src")!==n&&r.setAttribute("src",n);let a=this.getAttribute("src-compact"),o=i.querySelector(":scope > source");if(a){o||(o=document.createElement("source"),i.prepend(o));let c=this.getAttribute("compact-media")||h0;o.getAttribute("media")!==c&&o.setAttribute("media",c),o.getAttribute("srcset")!==a&&o.setAttribute("srcset",a)}else o?.remove();this.#g()}#g(){let t=this.#l()?.querySelector(":scope > img");if(!t)return;let i=this.getAttribute("alt"),s=!this.hasAttribute("wordmark"),n;s&&i?n=i:this.#f()?n="":n=i??"",t.getAttribute("alt")!==n&&t.setAttribute("alt",n)}#f(){for(let t of this.childNodes)if(!(t instanceof Element&&t.hasAttribute(ma))&&t.textContent?.trim())return!0;return!1}};A("brand-mark",ga);var f0="52rem",ba=class extends HTMLElement{static observedAttributes=["breakpoint"];#t=null;#e=new Map;connectedCallback(){this.#i()}disconnectedCallback(){this.#n(),this.#r()}attributeChangedCallback(){this.isConnected&&this.#i()}#i(){this.#n();let t=this.getAttribute("breakpoint")||f0;this.#t=matchMedia(`(max-width: ${t})`),this.#t.addEventListener("change",this.#s),this.#s()}#n(){this.#t?.removeEventListener("change",this.#s),this.#t=null}#s=()=>{let t=this.#t?.matches??!1;if(this.toggleAttribute("data-mobile",t),t?this.#o():this.#r(),!t){let i=this.querySelector("[popover]");i?.matches(":popover-open")&&i.hidePopover?.()}};#o(){let t=this.querySelector("[popover]"),i=this.parentElement;if(!t||!i)return;let s=t.querySelector("[data-mobile-menu-slot]")??t;for(let n of i.querySelectorAll(":scope > [data-mobile-menu]")){let r=document.createComment("mobile-menu");n.before(r),this.#e.set(n,r),s.append(n)}}#r(){for(let[t,i]of this.#e)i.isConnected?i.replaceWith(t):i.remove();this.#e.clear()}};customElements.get("mobile-menu")||customElements.define("mobile-menu",ba);var Y="interestfor",Td="interestForElement"in HTMLButtonElement.prototype,W=new WeakMap,be=new WeakMap,Es=new Set,wa=!1,Aa=CSS.supports?.("anchor-name","--a")??!1;function kd(e){let t=String(e).trim(),i=t.match(/^([\d.]+)s$/);if(i)return parseFloat(i[1])*1e3;let s=t.match(/^([\d.]+)ms$/);return s?parseFloat(s[1]):parseFloat(t)||0}function Ld(e,t){let i=getComputedStyle(e),s=i.getPropertyValue(t).trim();if(s.toLowerCase()!=="normal")return kd(s);let n=i.getPropertyValue("--interest-delay").trim();if(n&&n.toLowerCase()!=="normal"){let r=n.split(/\s+/).filter(a=>a.length>0);if(r.length>0){let a=t==="--interest-delay-start"?r[0]:r[1]||r[0];if(a.toLowerCase()!=="normal")return kd(a)}}return t==="--interest-delay-start"?500:250}var Dd=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(","),p0="h1,h2,h3,h4,h5,h6,ul,ol,li,table,nav,header,footer,main,aside,article,section,form,blockquote,details,summary,dialog";function Ea(e){if(e.getAttribute("popover")?.toLowerCase()!=="hint"||e.querySelector(Dd)||e.querySelector(p0))return!1;for(let t of e.querySelectorAll("[role]")){let i=t.getAttribute("role").toLowerCase();if(!["presentation","none","generic","image"].includes(i))return!1}return!0}function Sd(e,t,i){let s=(e.getAttribute(t)||"").split(/\s+/).filter(Boolean);s.includes(i)||e.setAttribute(t,[...s,i].join(" "))}function m0(e,t){t.parentElement?.localName!=="tool-tip"&&(Ea(t)?Sd(e,"aria-describedby",t.id):(Sd(e,"aria-details",t.id),e.setAttribute("aria-expanded","false"),!(t.matches(".hover-card")||t.querySelector(Dd))&&!t.hasAttribute("role")&&t.setAttribute("role","tooltip")))}function ht(e){let t=e.getAttribute(Y);return t?document.getElementById(t):null}function As(e){let t=be.get(e);return t?.invoker&&W.get(t.invoker)?.state==="full"?t.invoker:null}function ri(e){if(W.has(e))return W.get(e);let t={state:"none",gainedTimer:null,lostTimer:null,longPressTimer:null};W.set(e,t);let i=ht(e);return i&&m0(e,i),t}function Nd(e,t){if(!e||!t||!e.isConnected||ht(e)!==t)return!1;let i=As(t);if(i){if(i===e)return clearTimeout(W.get(i).lostTimer),!1;if(!ni(i,t)||!e.isConnected||ht(e)!==t)return!1}let s=ri(e);if(s.state!=="none")return!1;let n=new CustomEvent("interest",{bubbles:!1,cancelable:!0,detail:{source:e}});if(t.dispatchEvent(n),t.hasAttribute("popover")){try{t.showPopover()}catch{}b0(e,t)}s.state="full",be.has(t)||be.set(t,{});let r=be.get(t);if(r.invoker=e,t.hasAttribute("popover")){let a=o=>{o.newState==="closed"&&ni(e,t)};r.toggleListener=a,t.addEventListener("toggle",a)}return Es.add(e),e.classList.add("interest-source"),t.classList.add("interest-target"),Ea(t)||e.setAttribute("aria-expanded","true"),!0}function ni(e,t){if(!e||!t||ht(e)!==t||As(t)!==e)return!1;let i=W.get(e);if(!i||i.state==="none")return!1;if(clearTimeout(i.gainedTimer),clearTimeout(i.lostTimer),t.dispatchEvent(new CustomEvent("loseinterest",{bubbles:!1,detail:{source:e}})),t.hasAttribute("popover"))try{t.hidePopover()}catch{}let s=be.get(t);return s?.toggleListener&&t.removeEventListener("toggle",s.toggleListener),be.delete(t),Es.delete(e),e.classList.remove("interest-source"),t.classList.remove("interest-target"),Ea(t)||e.setAttribute("aria-expanded","false"),i.state="none",!0}function g0(e){let t=ri(e);clearTimeout(t.gainedTimer);let i=Ld(e,"--interest-delay-start");t.gainedTimer=setTimeout(()=>{let s=ht(e);s&&Nd(e,s)},i)}function ya(e){let t=W.get(e);if(!t)return;clearTimeout(t.lostTimer);let i=Ld(e,"--interest-delay-end");t.lostTimer=setTimeout(()=>{let s=ht(e);s&&ni(e,s)},i)}function si(e){if(!Aa)return;let t=e.getAttribute(Y),i=t?document.getElementById(t):null;if(!i?.id)return;let s=`--interest-${i.id}`;e.style.anchorName=s,i.style.positionAnchor=s}function b0(e,t){if(Aa)return;let i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),n=8,r=8,a=i.top-s.height-n,o=i.left+(i.width-s.width)/2;a<r&&(a=i.bottom+n),o=Math.max(r,Math.min(o,window.innerWidth-s.width-r)),a=Math.max(r,Math.min(a,window.innerHeight-s.height-r)),t.style.top=`${a}px`,t.style.left=`${o}px`,t.style.margin="0"}function y0(e,t){if(wa||!e.isConnected)return;if(!ht(e)){let r=e.closest(".interest-target");if(r){let a=As(r);a&&(t?clearTimeout(W.get(a)?.lostTimer):ya(a))}return}let s=ri(e),n=As(e);if(t)clearTimeout(s.lostTimer),n&&clearTimeout(W.get(n)?.lostTimer),g0(e);else if(clearTimeout(s.gainedTimer),s.state!=="none"&&ya(e),n){let r=W.get(n);r&&clearTimeout(r.gainedTimer),ya(n)}}function v0(){let e=(s,n)=>{for(let r=s.target;r;r=r.parentElement)y0(r,n)};document.body.addEventListener("mouseover",s=>e(s,!0)),document.body.addEventListener("mouseout",s=>e(s,!1)),document.body.addEventListener("focusin",s=>e(s,!0)),document.body.addEventListener("focusout",s=>e(s,!1)),document.body.addEventListener("keydown",s=>{if(s.key==="Escape")for(let n of Es){let r=ht(n);r&&ni(n,r)}});let t=500;document.body.addEventListener("touchstart",s=>{wa=!0;let n=s.target.closest(`button[${Y}]`);if(!n)return;let r=ri(n);r.longPressTimer=setTimeout(()=>{let a=ht(n);a&&Nd(n,a),r.longPressTimer=null},t)});let i=s=>{let n=s.target.closest(`button[${Y}]`);if(!n)return;let r=W.get(n);r?.longPressTimer&&(clearTimeout(r.longPressTimer),r.longPressTimer=null)};document.body.addEventListener("touchend",s=>{i(s),wa=!1}),document.body.addEventListener("touchmove",i)}function w0(){let e=document.createElement("style");e.textContent=['@property --interest-delay-start { syntax: "normal | <time>"; inherits: false; initial-value: normal; }','@property --interest-delay-end { syntax: "normal | <time>"; inherits: false; initial-value: normal; }','@property --interest-delay { syntax: "*"; inherits: false; initial-value: normal; }'].join(`
551
+ `),document.head.appendChild(e)}function ws(e){ri(e),si(e)}function va(e){let t=W.get(e);if(t){if(clearTimeout(t.gainedTimer),clearTimeout(t.lostTimer),clearTimeout(t.longPressTimer),t.state!=="none"){let i=ht(e);i&&ni(e,i)}e.classList.remove("interest-source"),W.delete(e),Es.delete(e)}}function xd(e=document){e.querySelectorAll(`[${Y}]`).forEach(ws)}var Cd=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.hasAttribute(Y)&&ws(s),s.querySelectorAll(`[${Y}]`).forEach(ws)}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;W.has(s)&&va(s),s.querySelectorAll(`[${Y}]`).forEach(n=>{W.has(n)&&va(n)})}if(t.type==="attributes"&&t.target.nodeType===Node.ELEMENT_NODE){let i=t.target;i.hasAttribute(Y)?W.has(i)||ws(i):W.has(i)&&va(i)}}});Td||(w0(),v0(),document.documentElement.setAttribute("data-interest-polyfill",""),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{xd(),Cd.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[Y]})}):(xd(),Cd.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[Y]})));if(Td&&Aa){let e=()=>{document.querySelectorAll(`[${Y}]`).forEach(si),new MutationObserver(t=>{for(let i of t){for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.hasAttribute(Y)&&si(n),n.querySelectorAll(`[${Y}]`).forEach(si)}i.type==="attributes"&&i.target.hasAttribute?.(Y)&&si(i.target)}}).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[Y]})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}re();Ca();He();var Ta="kbd[data-hotkey]";function Rd(e=document){e.querySelectorAll(Ta).forEach(t=>La(t))}function S0(e,t){if(!/^[a-z][a-z0-9]*$/.test(t))return null;let i=`data-label-${t}`;return e.closest(`[${i}]`)?.getAttribute(i)||null}function La(e){let t=e.dataset.hotkey;if(!t||e.getAttribute("data-hotkey-init")===t)return;let i=Vi(t);if(!i.length)return;e.setAttribute("data-hotkey-init",t);let s=[],n=document.createDocumentFragment();i.forEach((a,o)=>{let c=ur(a,tt),l=S0(e,a),u=l&&!(tt&&c.modifier)?l:c.label;s.push(l??c.spoken);let d=document.createElement("kbd");if(d.textContent=u,d.setAttribute("aria-hidden","true"),n.appendChild(d),o<i.length-1&&!tt){let h=document.createElement("span");h.textContent="+",h.setAttribute("aria-hidden","true"),n.appendChild(h)}});let r=document.createElement("span");r.className="visually-hidden",r.textContent=s.join(" "),n.appendChild(r),e.replaceChildren(n),e.removeAttribute("aria-label")}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Rd()):Rd();var x0=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ta)&&La(s),s.querySelectorAll(Ta).forEach(n=>La(n))}});x0.observe(document.documentElement,{childList:!0,subtree:!0});Ma();Fa();Oa();Va();Ka();Ya();Za();Ja();ro();co();lo();ho();mo();go();bo();yo();vo();var QA=window.matchMedia("(prefers-reduced-motion: reduce)");function tE(){return QA.matches||document.documentElement.hasAttribute("data-motion-reduced")}var ff=0,eE=new Map([["vb-fade-in","entrance"],["vb-slide-up","entrance"],["vb-pop","entrance"],["vb-slide-in-ltr","entrance"],["vb-slide-in-rtl","entrance"],["vb-fade-slide-up","entrance"],["vb-shadow-lift","entrance"],["vb-fade-out","exit"],["vb-collapse","exit"],["vb-slide-out-ltr","exit"],["vb-slide-out-rtl","exit"],["vb-shake","attention"],["vb-pulse","attention"],["vb-bounce","attention"],["vb-blink","attention"],["vb-neon-pulse","decoration"],["vb-3d-shift","decoration"],["vb-outline-glow-pulse","decoration"],["vb-rainbow","decoration"],["vb-gradient-flow","decoration"],["vb-shimmer","decoration"],["vb-shimmer-gradient","decoration"],["vb-glow","decoration"],["vb-float","decoration"]]),pf="__vbEffectsRuntime",mf=globalThis,y=mf[pf]??{_effects:new Map,_triggers:new Map,_transitions:new Map,_instances:new WeakMap,_triggerCleanups:new WeakMap,_wiredTriggers:new WeakMap,_transitionCleanups:new WeakMap,_transitionFallback:new WeakSet,_processed:new WeakSet,_transitionProcessed:new WeakSet,_staggerTime:new WeakSet,_unresolved:new Set,_warnedTriggers:new Set,_unresolvedTimer:null,_keyframePhase:eE,_observer:null,_animationEndHandler:null,_autoBooted:!1,effect(e,t){this._effects.set(e,t),document.querySelectorAll("[data-effect]").forEach(i=>{if(!(i.getAttribute("data-effect")||"").split(/\s+/).includes(e))return;let n=!this._instances.get(i)?.has(e);this._initEffect(i,e),n&&i.hasAttribute("data-effect-active")&&this._instances.get(i)?.get(e)?.activate?.()})},trigger(e,t){this._triggers.set(e,t),document.querySelectorAll("[data-effect][data-trigger]").forEach(i=>{if(!this._processed.has(i))return;let s=i.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[];this._wireTrigger(i,s)})},transition(e,t){this._transitions.set(e,t),document.querySelectorAll("[data-transition]").forEach(i=>{if(!this._transitionProcessed.has(i)||!this._transitionFallback.has(i))return;let s=i.getAttribute("data-transition")||"",n=s.indexOf(":");if((n>-1?s.slice(0,n):s)!==e)return;this._transitionFallback.delete(i);let r=i;r.style.viewTransitionName="";let a=t(i,n>-1?s.slice(n+1):null);a&&this._transitionCleanups.set(i,a)})},uid(e){return e.id?e.id:(e._vbUid||(ff++,e._vbUid=`vb-${ff}`),e._vbUid)},theme(e,t){this._themes=this._themes||new Map,this._themes.set(e,t)},applyTheme(e,t=document.documentElement){let i=this._themes?.get(e);if(i)for(let[s,n]of Object.entries(i))t.style.setProperty(s,n)},swap(e){if(!document.startViewTransition){e(),queueMicrotask(()=>this._dispatchVtDone(document.body));return}let t=document.startViewTransition(e);return t.updateCallbackDone.then(()=>{this._dispatchVtDone(document.body)}).catch(()=>{}),t},_dispatchVtDone(e){e.querySelectorAll('[data-trigger~="vt"]').forEach(t=>{this.emit(t,"vb:vt-update-done",{})})},activate(e){this._activateEffects(e)},deactivate(e){e.hasAttribute("data-effect-active")&&(e.removeAttribute("data-effect-active"),this.emit(e,"vb:phase-change",{active:!1}))},onPhaseEnd(e,t,i){let s=n=>{n.detail?.phase===t&&i(n.detail)};return e.addEventListener("vb:effect-phase-end",s),()=>e.removeEventListener("vb:effect-phase-end",s)},registerKeyframe(e,t){this._keyframePhase.set(e,t)},observe(e=document){if(e.querySelectorAll("[data-effect]").forEach(i=>this._processElement(i)),e.querySelectorAll("[data-stagger]").forEach(i=>this._processStagger(i)),e.querySelectorAll("[data-transition]").forEach(i=>this._processTransition(i)),this._observer)return;this._observer=new MutationObserver(i=>{let s=new Set;for(let n of i){if(n.type==="childList"){let r=n.target;r.hasAttribute?.("data-stagger")&&s.add(r);for(let a of n.addedNodes)a.nodeType===Node.ELEMENT_NODE&&this._processTree(a);for(let a of n.removedNodes)a.nodeType===Node.ELEMENT_NODE&&(a.isConnected||this._cleanupTree(a))}if(n.type==="attributes"){let r=n.target;n.attributeName==="data-effect"&&this._reconcileEffects(r),n.attributeName==="data-trigger"&&this._reconcileTrigger(r),n.attributeName==="data-stagger"&&(r.hasAttribute("data-stagger")?s.add(r):this._cleanupStagger(r)),n.attributeName==="data-transition"&&this._reconcileTransition(r)}}for(let n of s)n.isConnected&&this._processStagger(n)});let t=e===document?document.body:e;this._observer.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-effect","data-trigger","data-stagger","data-transition"]}),this._animationEndHandler||(this._animationEndHandler=i=>{let s=i.target;if(!(s instanceof Element)||!s.hasAttribute("data-effect"))return;let n=this._keyframePhase.get(i.animationName);n&&this.emit(s,"vb:effect-phase-end",{phase:n,animationName:i.animationName})},document.addEventListener("animationend",this._animationEndHandler))},disconnect(){this._observer&&(this._observer.disconnect(),this._observer=null),this._animationEndHandler&&(document.removeEventListener("animationend",this._animationEndHandler),this._animationEndHandler=null)},params(e){let t=getComputedStyle(e);return{get(i){return t.getPropertyValue(`--vb-${i}`).trim()},getNumber(i,s=0){let n=t.getPropertyValue(`--vb-${i}`).trim();return n?parseFloat(n):s},getTime(i,s=0){let n=t.getPropertyValue(`--vb-${i}`).trim();if(!n)return s;let r=parseFloat(n);return Number.isFinite(r)?/s\s*$/.test(n)&&!/ms\s*$/.test(n)?r*1e3:r:s},hasClass(i){return e.classList.contains(i)}}},emit(e,t,i={}){e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:i}))},prefersReducedMotion:tE,_processTree(e){e.hasAttribute?.("data-effect")&&this._processElement(e),e.hasAttribute?.("data-stagger")&&this._processStagger(e),e.hasAttribute?.("data-transition")&&this._processTransition(e),e.querySelectorAll?.("[data-effect]").forEach(t=>this._processElement(t)),e.querySelectorAll?.("[data-stagger]").forEach(t=>this._processStagger(t)),e.querySelectorAll?.("[data-transition]").forEach(t=>this._processTransition(t))},_cleanupTree(e){e.hasAttribute?.("data-effect")&&this._cleanupElement(e),e.hasAttribute?.("data-transition")&&this._cleanupTransition(e),e.querySelectorAll?.("[data-effect]").forEach(t=>this._cleanupElement(t)),e.querySelectorAll?.("[data-transition]").forEach(t=>this._cleanupTransition(t))},_processElement(e){if(this._processed.has(e))return;this._processed.add(e),e.removeAttribute("data-effect-processed"),e.removeAttribute("data-effect-armed");let t=e.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[];for(let i of t)this._initEffect(e,i);this._wireTrigger(e,t)},_initEffect(e,t){let i=this._effects.get(t);if(!i)return;let s=this._instances.get(e);if(s?.has(t))return;let n=i(e);n&&(s||(s=new Map,this._instances.set(e,s)),typeof n=="function"?s.set(t,{cleanup:n}):s.set(t,n))},_parseTrigger(e){let t=e.indexOf(":");return t>-1?[e.slice(0,t),e.slice(t+1)]:[e,null]},_wireTrigger(e,t){let i=e.getAttribute("data-trigger");if(!i||!i.trim()){e.removeAttribute("data-effect-armed"),this._activateEffects(e);return}let s=i.split(/\s+/).filter(Boolean);this._wiredTriggers??=new WeakMap;let n=this._wiredTriggers.get(e);n||(n=new Set,this._wiredTriggers.set(e,n));let r=!1;for(let a of s){if(n.has(a))continue;let[o,c]=this._parseTrigger(a),l=this._triggers.get(o);if(!l){r=!0;continue}n.add(a);let u=l(e,()=>this._activateEffects(e),c);if(u){let d=this._triggerCleanups.get(e);if(d){let h=d;this._triggerCleanups.set(e,()=>{h(),u()})}else this._triggerCleanups.set(e,u)}}n.size&&e.setAttribute("data-effect-armed",""),r?(this._unresolved.add(e),this._scheduleUnresolvedCheck()):this._unresolved.delete(e)},_scheduleUnresolvedCheck(){if(this._unresolvedTimer)return;let e=()=>{this._unresolvedTimer=null,this._resolveUnknownTriggers()};typeof window>"u"||typeof window.addEventListener!="function"||(document.readyState==="complete"?this._unresolvedTimer=setTimeout(e,0):(this._unresolvedTimer=!0,window.addEventListener("load",()=>setTimeout(e,0),{once:!0})))},_resolveUnknownTriggers(){for(let e of[...this._unresolved]){if(this._unresolved.delete(e),!e.isConnected||!this._processed.has(e))continue;let i=(e.getAttribute("data-trigger")||"").split(/\s+/).filter(Boolean).filter(s=>!this._triggers.has(this._parseTrigger(s)[0]));if(i.length){for(let s of i){let n=this._parseTrigger(s)[0];this._warnedTriggers.has(n)||(this._warnedTriggers.add(n),console.warn(`[VB] data-trigger="${s}": no trigger named "${n}" is registered. The effect runs immediately instead. Register it with VB.trigger('${n}', \u2026) or check the spelling.`,e))}!e.hasAttribute("data-effect-armed")&&!e.hasAttribute("data-effect-active")&&this._activateEffects(e)}}},_activateEffects(e){e.setAttribute("data-effect-active",""),this.emit(e,"vb:phase-change",{active:!0});let t=this._instances.get(e);if(t)for(let[,i]of t)i.activate&&i.activate()},_cleanupElement(e){let t=this._instances.get(e);if(t){for(let[,s]of t)s.cleanup&&s.cleanup();this._instances.delete(e)}let i=this._triggerCleanups.get(e);i&&(i(),this._triggerCleanups.delete(e)),this._wiredTriggers?.delete(e),this._unresolved.delete(e),e.removeAttribute("data-effect-armed"),this._processed.delete(e)},_reconcileEffects(e){if(!e.hasAttribute("data-effect")){this._cleanupElement(e),e.removeAttribute("data-effect-active");return}let t=e.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[],i=this._instances.get(e);if(i)for(let[s,n]of i)t.includes(s)||(n.cleanup&&n.cleanup(),i.delete(s));for(let s of t)i?.has(s)||this._initEffect(e,s);this._processed.has(e)||this._processElement(e)},_reconcileTrigger(e){if(!e.hasAttribute("data-effect"))return;let t=this._triggerCleanups.get(e);if(t&&(t(),this._triggerCleanups.delete(e)),this._wiredTriggers?.delete(e),this._unresolved.delete(e),e.removeAttribute("data-effect-armed"),!this._processed.has(e)){this._processElement(e);return}let i=e.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[];this._wireTrigger(e,i)},_parseStagger(e){let t=(e||"").trim().split(/\s+/).filter(Boolean),i=t.find(n=>/^(\d+(\.\d+)?|\.\d+)(ms|s)$/i.test(n))||null;return{mode:t.find(n=>n==="reverse"||n==="random"||n==="grid")||"",time:i}},_processStagger(e){let{mode:t,time:i}=this._parseStagger(e.getAttribute("data-stagger"));i?(e.style.setProperty("--vb-stagger",i),this._staggerTime.add(e)):this._staggerTime.has(e)&&(e.style.removeProperty("--vb-stagger"),this._staggerTime.delete(e));let s=Array.from(e.children),n=s.length,r;if(t==="reverse")r=Array.from({length:n},(a,o)=>n-1-o);else if(t==="random"){let a=this._hashString(this.uid(e));r=Array.from({length:n},(c,l)=>l);let o=a;for(let c=n-1;c>0;c--){o^=o<<13,o^=o>>>17,o^=o<<5;let l=Math.abs(o)%(c+1);[r[c],r[l]]=[r[l],r[c]]}}else t==="grid"?r=this._gridStaggerIndices(e,s):r=Array.from({length:n},(a,o)=>o);for(let a=0;a<n;a++)s[a].style.setProperty("--vb-stagger-index",String(r[a]))},_gridStaggerIndices(e,t){let i=t.length,s=()=>Array.from({length:i},(l,u)=>u);if(!i)return[];let n=t.map(l=>{let u=getComputedStyle(l);return[parseInt(u.gridRowStart,10),parseInt(u.gridColumnStart,10)]});if(n.every(([l,u])=>Number.isFinite(l)&&Number.isFinite(u))){let l=Math.min(...n.map(([d])=>d)),u=Math.min(...n.map(([,d])=>d));return n.map(([d,h])=>d-l+(h-u))}let r=t.map(l=>l.getBoundingClientRect?.());if(!r.every(Boolean)||r.every(l=>l.width===0&&l.height===0))return s();let a=getComputedStyle(e).direction==="rtl",o=this._trackRanks(r.map(l=>[l.top,l.bottom])),c=this._trackRanks(r.map(l=>a?[-l.right,-l.left]:[l.left,l.right]));return o.map((l,u)=>l+c[u])},_trackRanks(e){let t=e.map((r,a)=>a).sort((r,a)=>e[r][0]-e[a][0]),i=new Array(e.length),s=-1,n=-1/0;for(let r of t){let[a,o]=e[r];a>=n-.5?(s++,n=o):n=Math.min(n,o),i[r]=s}return i},_cleanupStagger(e){this._staggerTime.has(e)&&(e.style.removeProperty("--vb-stagger"),this._staggerTime.delete(e));for(let t of Array.from(e.children))t.style?.removeProperty("--vb-stagger-index")},_hashString(e){let t=5381;for(let i=0;i<e.length;i++)t=(t<<5)+t^e.charCodeAt(i);return t|0},_vtIdent(e){let t=String(e).replace(/[^A-Za-z0-9_ -￿-]/g,"-");return(!t||/^(-?\d|--)/.test(t))&&(t=`vb-${t}`),t},_processTransition(e){if(this._transitionProcessed.has(e)||e.matches?.("[data-swap], content-swap"))return;let t=(e.getAttribute("data-transition")||"").trim();if(!t)return;this._transitionProcessed.add(e),e.removeAttribute("data-transition-processed");let[i,s]=this._parseTrigger(t),n=this._transitions.get(i);if(n){let r=n(e,s);r&&this._transitionCleanups.set(e,r)}else e.style.viewTransitionName=this._vtIdent(`${i}-${this.uid(e)}`),this._transitionFallback.add(e)},_cleanupTransition(e){if(!this._transitionProcessed.has(e))return;let t=this._transitionCleanups.get(e);t&&(t(),this._transitionCleanups.delete(e)),this._transitionFallback.has(e)&&(this._transitionFallback.delete(e),e.style.viewTransitionName=""),this._transitionProcessed.delete(e)},_reconcileTransition(e){this._cleanupTransition(e),e.hasAttribute("data-transition")&&this._processTransition(e)}};mf[pf]=y;if(typeof window<"u"){let e=window.VB;if(e&&e!==y)for(let t of Object.keys(e))t in y||(y[t]=e[t]);window.VB=y}typeof document<"u"&&!y._autoBooted&&(y._autoBooted=!0,document.body?y.observe():document.addEventListener("DOMContentLoaded",()=>y.observe(),{once:!0}));var js="vb-split-sr",wo="vb-split";function iE(e){return e.closest?.("[lang]")?.getAttribute("lang")||void 0}function Ee(e,t){if(typeof Intl<"u"&&"Segmenter"in Intl)try{let i=new Intl.Segmenter(t,{granularity:"grapheme"});return Array.from(i.segment(e),s=>s.segment)}catch{}return Array.from(e)}function sE(e,t){let i=[],s;if(typeof Intl<"u"&&"Segmenter"in Intl)try{s=Array.from(new Intl.Segmenter(t,{granularity:"word"}).segment(e))}catch{s=null}if(!s){for(let r of e.split(/(\s+)/))r&&i.push({text:r,space:/^\s+$/.test(r)});return i}let n="";for(let r of s){if(/^\s+$/.test(r.segment)){n&&(i.push({text:n,space:!1}),n=""),i.push({text:r.segment,space:!0});continue}let a=i[i.length-1];if(!r.isWordLike){a&&!a.space?a.text+=r.segment:n+=r.segment;continue}i.push({text:n+r.segment,space:!1}),n=""}return n&&i.push({text:n,space:!1}),i}function X(e){for(let t of e.querySelectorAll(`.${js}`)){let i=t.nextElementSibling;i?.classList.contains(wo)&&i.remove(),t.replaceWith(document.createTextNode(t.textContent||""))}e.normalize()}function gf(e){let t=e.querySelectorAll(`.${js}`);return t.length?Array.from(t,i=>i.textContent).join(""):e.textContent||""}function Lt(e,{unit:t="word",className:i="",locale:s}={}){X(e);let n=s||iE(e),r=[],a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(l){let u=l.parentElement;return u&&u.closest("script, style, template, svg, math")?NodeFilter.FILTER_REJECT:l.nodeValue&&l.nodeValue.trim()?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});for(;a.nextNode();)r.push(a.currentNode);let o=[],c=l=>{let u=document.createElement("span");return i&&(u.className=i),u.textContent=l,o.push(u),u};for(let l of r){let u=l.nodeValue||"",d=document.createElement("span");d.className=js,d.textContent=u;let h=document.createElement("span");if(h.className=wo,h.setAttribute("aria-hidden","true"),t==="grapheme")for(let f of Ee(u,n)){let p=c(f);/^\s+$/.test(f)&&p.setAttribute("data-space",""),h.append(p)}else for(let f of sE(u,n))h.append(f.space?document.createTextNode(f.text):c(f.text));l.replaceWith(d,h)}return o}function bf(e,t){X(e);let i=document.createElement("span");i.className=js,i.textContent=t;let s=document.createElement("span");return s.className=wo,s.setAttribute("aria-hidden","true"),e.replaceChildren(i,s),s}function ke(e){let t=0,i=null;for(let s of e){let n=s.getBoundingClientRect(),r=n.top;i!==null&&r-i>n.height/2&&t++,i=r,s.style.setProperty("--i",String(t))}return e.length?t+1:0}var Ao="data-effect-reveal-init";y.effect("reveal",e=>{let t=e;if(X(t),t.removeAttribute(Ao),y.prefersReducedMotion())return{cleanup(){}};let i=y.params(t);t.style.setProperty("--reveal-delay",i.get("reveal-delay")||"80ms"),t.style.setProperty("--reveal-duration",i.get("reveal-duration")||"400ms");let s=Lt(t,{className:"vb-reveal-chunk"});s.forEach((r,a)=>r.style.setProperty("--i",String(a))),t.setAttribute(Ao,"");let n=null;if(t.classList.contains("line")){ke(s);let r=t.clientWidth;n=new ResizeObserver(()=>{t.clientWidth!==r&&(r=t.clientWidth,ke(s))}),n.observe(t)}return{activate(){t.setAttribute("data-effect-active","")},cleanup(){n?.disconnect(),X(t),t.removeAttribute(Ao),t.style.removeProperty("--reveal-delay"),t.style.removeProperty("--reveal-duration")}}});var yf="data-effect-highlight-init";y.effect("highlight",e=>{let t=e,i=y.params(t).get("highlight-color");return i&&t.style.setProperty("--highlight-color",i),t.setAttribute(yf,""),y.prefersReducedMotion()&&t.setAttribute("data-effect-active",""),{activate(){t.setAttribute("data-effect-active","")},cleanup(){t.removeAttribute(yf),t.style.removeProperty("--highlight-color")}}});So();Do();var _o="vb:recently-visited",fE="vb:recently-visited:paused";var pE="recently-visited:change";function $o(e){let t=document.querySelector(`meta[name="${e}"]`);return t?t.getAttribute("content")??"":null}function mE(){return typeof document>"u"||document.documentElement.hasAttribute("data-vb-no-track")||$o("vb:no-track-history")!==null?!1:($o("vb:track-history")??"").trim().toLowerCase()==="on"?!0:document.querySelector("recently-visited")!==null}function gE(){try{return localStorage.getItem(fE)==="1"}catch{return!1}}function bE(){let e=$o("vb:track-history-params")||"";return new Set(e.split(/[\s,]+/).filter(Boolean))}function Df(e,t=null){if(typeof e!="string")return null;let i=e.trim().replace(/^[\\/]{2,}/,"/");if(!i)return null;let s;try{s=new URL(i,location.origin)}catch{return null}if(s.protocol!=="http:"&&s.protocol!=="https:"||s.origin!==location.origin)return null;let n=s.pathname.replace(/^\/{2,}/,"/"),r=s.search;if(t){let a=new URLSearchParams;for(let[c,l]of s.searchParams)t.has(c)&&a.append(c,l);let o=a.toString();r=o?`?${o}`:""}return n+r}function yE(){return Df(location.pathname+location.search,bE())}function Nf(e,t=Date.now()){if(!Array.isArray(e))return[];let i=[];for(let s of e){if(!s||typeof s!="object")continue;let n=Number(s.ts);if(!Number.isFinite(n)||Math.abs(t-n)>2592e6)continue;let r=Df(s.url);if(!r)continue;let a=typeof s.hash=="string"&&s.hash.startsWith("#")&&s.hash.length>1?s.hash:"";i.push({url:r,hash:a,title:typeof s.title=="string"?s.title:"",hashTitle:a&&typeof s.hashTitle=="string"?s.hashTitle:"",ts:n})}return i}function vE(){try{let e=localStorage.getItem(_o);return e?Nf(JSON.parse(e)):[]}catch{return[]}}function wE(e){window.dispatchEvent(new CustomEvent(pE,{detail:{key:e}}))}function AE(e){try{localStorage.setItem(_o,JSON.stringify(Nf(e).slice(0,100)))}catch{}wE(_o)}function EE(e){if(!e)return"";let t=e.slice(1);try{t=decodeURIComponent(t)}catch{}if(!t)return"";let i=document.getElementById(t);return i&&(i.textContent||"").trim().slice(0,80)||t}function No(){if(!mE()||gE()||location.protocol!=="http:"&&location.protocol!=="https:")return!1;let e=yE();if(!e)return!1;let t=location.hash.length>1?location.hash:"",i=(document.title||"").trim();if(!i)return!1;let s=vE(),n=e+t,r=s[0];if(r&&r.url+r.hash===n)return!1;let a=s.filter(o=>o.url+o.hash!==n);return a.unshift({url:e,hash:t,title:i,hashTitle:EE(t),ts:Date.now()}),AE(a),!0}var Mo=typeof document<"u"?document.documentElement:null;Mo&&!Mo.hasAttribute("data-vb-recently-visited-init")&&(Mo.setAttribute("data-vb-recently-visited-init",""),No(),window.addEventListener("pageshow",e=>{e.persisted&&No()}),window.addEventListener("hashchange",No));var $f=CSS.supports("anchor-name","--test"),kE=new Set(["BUTTON","A","AREA"]),If=(()=>{let e=document.createElement("span");return e.setAttribute("popover","hint"),e.popover==="hint"})(),Bf=new Map,Mf=!1;function SE(){if(Mf||If)return;Mf=!0;let e=t=>{Bf.forEach((i,s)=>{s.matches(":popover-open")&&!t(s,i)&&s.hidePopover()})};document.addEventListener("keydown",t=>{t.key==="Escape"&&e(()=>!1)}),document.addEventListener("pointerdown",t=>{let i=t.target;e((s,n)=>s.contains(i)||n.contains(i))})}function Rf(e){return e.getAttribute("aria-label")?.trim()||e.hasAttribute("aria-labelledby")||e.labels?.length||e.textContent?.trim()||e instanceof HTMLInputElement&&["button","submit","reset"].includes(e.type)&&e.value?!0:!!e.querySelector('img[alt]:not([alt=""]), [aria-label]:not([aria-hidden="true"])')}function Ff(e,t,i){let s=(e.getAttribute(t)||"").split(/\s+/).filter(Boolean);s.includes(i)||e.setAttribute(t,[...s,i].join(" "))}function xE(e){return document.documentElement.hasAttribute("data-interest-polyfill")?!0:"interestForElement"in HTMLButtonElement.prototype?kE.has(e.tagName):!1}function Io(e,t){if(Bf.set(t,e),SE(),xE(e)){e.setAttribute("interestfor",t.id),t.addEventListener("toggle",l=>{l.newState==="open"&&Hs(e,t)});return}let i=null,s=null,n=t,r=()=>{clearTimeout(s),i=setTimeout(()=>{n.showPopover(),Hs(e,t)},200)},a=()=>{clearTimeout(i),s=setTimeout(()=>{n.hidePopover()},100)},o=()=>{clearTimeout(s),n.showPopover(),Hs(e,t)},c=()=>{clearTimeout(i),n.hidePopover()};e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",a),e.addEventListener("focus",o),e.addEventListener("blur",c),t.addEventListener("mouseenter",()=>clearTimeout(s)),t.addEventListener("mouseleave",a)}function Bo(e,t){if(!$f)return;let i=`--tooltip-anchor-${t.id}`;e.style.anchorName=i,t.style.positionAnchor=i,t.setAttribute("data-anchor","")}function CE(e){let t=e.getAttribute("title");if(!t)return;let i=!Rf(e);i&&e.setAttribute("aria-label",t),e.removeAttribute("title");let s=document.createElement("div");s.setAttribute("role","tooltip"),s.setAttribute("popover",If?"hint":"manual"),s.id=`tooltip-${crypto.randomUUID().slice(0,8)}`,s.textContent=t;let n=e.dataset.tooltipPosition||"top";s.dataset.tooltipPosition=n;let r=document.createElement("span");r.className="tooltip-arrow",r.setAttribute("aria-hidden","true"),s.appendChild(r),e.after(s),i||Ff(e,"aria-describedby",s.id),Bo(e,s),Io(e,s)}function TE(e,t){let i=document.getElementById(t);if(!i?.hasAttribute("popover"))return;let s=e.getAttribute("title");s&&(Rf(e)||e.setAttribute("aria-label",s),e.removeAttribute("title")),Ff(e,"aria-describedby",t),Bo(e,i),Io(e,i)}function _f(e=document){e.querySelectorAll("[data-tooltip]").forEach(t=>{if(t.closest("tool-tip")||t.hasAttribute("data-tooltip-init"))return;t.setAttribute("data-tooltip-init","");let i=t.dataset.tooltip;i?TE(t,i):CE(t)}),e.querySelectorAll("[aria-describedby]").forEach(t=>{let i=t.getAttribute("aria-describedby")??"",s=document.getElementById(i);!s?.hasAttribute("popover")||!s.matches('[role="tooltip"]')||t.closest("tool-tip")||t.hasAttribute("data-tooltip-init")||(t.setAttribute("data-tooltip-init",""),Bo(t,s),Io(t,s))}),e.querySelectorAll("[popovertarget]").forEach(t=>{let i=t.getAttribute("popovertarget")??"",s=document.getElementById(i);!s?.hasAttribute("popover")||!s.matches('[role="tooltip"]')||s.hasAttribute("data-tooltip-click-init")||(s.setAttribute("data-tooltip-click-init",""),s.addEventListener("toggle",n=>{n.newState==="open"&&Hs(t,s)}))})}function Hs(e,t){if($f||t.hasAttribute("data-anchor"))return;let i=e.getBoundingClientRect(),s=t.dataset.tooltipPosition||"top",n=8,r=t.getBoundingClientRect(),a,o;switch(s){case"bottom":a=i.bottom+n,o=i.left+(i.width-r.width)/2;break;case"left":a=i.top+(i.height-r.height)/2,o=i.left-r.width-n;break;case"right":a=i.top+(i.height-r.height)/2,o=i.right+n;break;default:a=i.top-r.height-n,o=i.left+(i.width-r.width)/2;break}let c=8;o=Math.max(c,Math.min(o,window.innerWidth-r.width-c)),a=Math.max(c,Math.min(a,window.innerHeight-r.height-c)),t.style.top=`${a}px`,t.style.left=`${o}px`}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>_f()):_f();var Ro="[data-vt-name]";function zs(e){let t=e;t.removeAttribute("data-vt-name-init"),t.style.viewTransitionName=t.dataset.vtName||""}function Pf(e=document){e.querySelectorAll(Ro).forEach(zs)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Pf()):Pf();var LE=new MutationObserver(e=>{for(let t of e){if(t.type==="attributes"){zs(t.target);continue}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ro)&&zs(s),s.querySelectorAll(Ro).forEach(zs)}}});LE.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-vt-name"]});var Vs='progress[data-type="ring"]',Of={xs:"2em",s:"3em",m:"4em",l:"6em",xl:"8em"};function DE(e){let t=e.max||100,i=e.value;return t>0?Math.round(i/t*100):0}var Fo=new WeakMap;function NE(e){let t=Fo.get(e);if(t)return t;let i=document.createElement("div");i.className="progress-ring-wrap";let s=e.dataset.size;return s&&Of[s]&&i.style.setProperty("--progress-ring-size",Of[s]),e.parentNode?.insertBefore(i,e),i.appendChild(e),t=document.createElement("span"),t.className="progress-ring-label",t.setAttribute("aria-hidden","true"),i.appendChild(t),Fo.set(e,t),t}function jf(e){let t=DE(e);e.style.setProperty("--progress",String(t));let i=e.dataset.label;if(i==="none")return;let s=!e.hasAttribute("value");if(s&&!Fo.has(e))return;let n=NE(e);n.hidden=s,n.textContent=i||t+"%"}function Po(e){e.hasAttribute("data-enhanced")||(e.setAttribute("data-enhanced",""),jf(e))}function qf(e=document){e.querySelectorAll(Vs).forEach(t=>Po(t))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>qf()):qf();var ME=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Vs)&&Po(s),s.querySelectorAll(Vs).forEach(n=>Po(n))}if(t.type==="attributes"){let i=t.target;i.matches(Vs)&&i.hasAttribute("data-enhanced")&&jf(i)}}});ME.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","max"]});function Hf(e){document.querySelectorAll("browser-window").forEach(t=>{t.setAttribute("mode",e)}),document.querySelectorAll("code-block").forEach(t=>{t.setAttribute("theme",e)})}function zf(){let{effectiveMode:e}=B.getState();Hf(e),window.addEventListener("vb:theme-change",i=>{Hf(i.detail.effectiveMode)}),new MutationObserver(i=>{let{effectiveMode:s}=B.getState();for(let n of i)for(let r of n.addedNodes){if(r.nodeType!==Node.ELEMENT_NODE)continue;let a=r;a.tagName==="BROWSER-WINDOW"?a.setAttribute("mode",s):a.tagName==="CODE-BLOCK"&&a.setAttribute("theme",s),a.querySelectorAll("browser-window").forEach(o=>{o.setAttribute("mode",s)}),a.querySelectorAll("code-block").forEach(o=>{o.setAttribute("theme",s)})}}).observe(document.body,{childList:!0,subtree:!0})}var _m=[{selector:"[data-wizard]",load:()=>Promise.resolve().then(()=>(Xf(),Yf))},{selector:"[data-gesture]",load:()=>Promise.resolve().then(()=>(vr(),yr))},{selector:"[data-keyboard-aware]",load:()=>Promise.resolve().then(()=>(Qf(),Jf))},{selector:"[data-focus-trap]",load:()=>Promise.resolve().then(()=>(ip(),ep))},{selector:"[data-scroll-hide]",load:()=>Promise.resolve().then(()=>(np(),OE))},{selector:"[data-spotlight]",load:()=>Promise.resolve().then(()=>(op(),ap))},{selector:"[data-splitter]",load:()=>Promise.resolve().then(()=>(Ka(),th))},{selector:"[data-back-to-top]",load:()=>Promise.resolve().then(()=>(Ca(),Bd))},{selector:"[data-hotkey]:not(kbd)",load:()=>Promise.resolve().then(()=>(fp(),hp))},{selector:'a[target="_blank"]',load:()=>Promise.resolve().then(()=>(vp(),yp))},{selector:"[data-watch-page], watch-wc",load:()=>Promise.resolve().then(()=>(aa(),ra))},{selector:"img[data-responsive]",load:()=>Promise.resolve().then(()=>(xp(),Sp))},{selector:"form-field[data-floating-label]",load:()=>Promise.resolve().then(()=>(Dp(),Lp))},{selector:"button[data-loading]",load:()=>Promise.resolve().then(()=>(Bp(),Ip))},{selector:"input[data-mask]",load:()=>Promise.resolve().then(()=>(mo(),Gh))},{selector:"input[data-accept]",load:()=>Promise.resolve().then(()=>(go(),Jh))},{selector:'input[type="file"][data-upload]',load:()=>Promise.resolve().then(()=>(lo(),Rh))},{selector:'input[type="range"][data-range]',load:()=>Promise.resolve().then(()=>(co(),Dh))},{selector:'input[type="number"][data-stepper]',load:()=>Promise.resolve().then(()=>(yo(),cf))},{selector:'input[type="checkbox"][data-switch]',load:()=>Promise.resolve().then(()=>(Ya(),sh))},{selector:'input[type="color"][data-color]',load:()=>Promise.resolve().then(()=>(vo(),hf))},{selector:"textarea[data-grow]",load:()=>Promise.resolve().then(()=>(Ja(),mh))},{selector:"textarea[data-count]",load:()=>Promise.resolve().then(()=>(Za(),dh))},{selector:"fieldset[data-toggle-tags][data-max]",load:()=>Promise.resolve().then(()=>(bo(),sf))},{selector:"form[data-autosave]",load:()=>Promise.resolve().then(()=>(ho(),qh))},{selector:"form[data-vb-email-form]",load:()=>Promise.resolve().then(()=>(Pp(),Fp))},{selector:"form[data-vb-newsletter-form]",load:()=>Promise.resolve().then(()=>(Up(),Vp))},{selector:"[data-copy], [data-copy-target], [data-paste-target]",load:()=>Promise.resolve().then(()=>(re(),Vl))},{selector:"[data-select-all]",load:()=>Promise.resolve().then(()=>(So(),Ef))},{selector:"[data-show-when], [data-hide-when]",load:()=>Promise.resolve().then(()=>(ro(),kh))},{selector:"[data-spoiler]",load:()=>Promise.resolve().then(()=>(Va(),Xd))},{selector:"[data-math], code.language-math",load:()=>Promise.resolve().then(()=>(Do(),Lf))},{selector:"time[data-format-date]",load:()=>Promise.resolve().then(()=>(Fa(),zd))},{selector:"data[data-format-number]",load:()=>Promise.resolve().then(()=>(Ma(),Fd))},{selector:"data[data-format-bytes]",load:()=>Promise.resolve().then(()=>(Oa(),Wd))},{selector:"[data-audio-playlist]",load:()=>Promise.resolve().then(()=>(Zp(),Xp))},{selector:"[data-paged]",load:()=>Promise.resolve().then(()=>(rm(),nm))},{selector:"[data-sortable], [data-sort-target]",load:()=>Promise.resolve().then(()=>(vm(),ym))},{selector:"[data-toggle]",load:()=>Promise.resolve().then(()=>(Tm(),Cm))},{selector:'table[data-responsive="card"]',load:()=>Promise.resolve().then(()=>(Mm(),Nm))}],Te=new Set,wi=null,hc=0;function Fk(){hc=0;for(let e of Te)document.querySelector(e.selector)&&(Te.delete(e),e.load());Te.size||(wi?.disconnect(),wi=null)}function Pk(){if(wi||!Te.size||typeof MutationObserver>"u")return;let e=document.documentElement;e&&(wi=new MutationObserver(()=>{hc||(hc=window.setTimeout(Fk,100))}),wi.observe(e,{childList:!0,subtree:!0,attributes:!0}))}function $m(e,t=document){for(let i of e)t.querySelector(i.selector)?(Te.delete(i),i.load()):t===document&&Te.add(i);t===document&&Pk()}var Sx=[{selector:"[data-emoji]",load:()=>Promise.resolve().then(()=>(Gm(),Wm))},{selector:"[data-highlights]",load:()=>Promise.resolve().then(()=>(ea(),ad))},{selector:"[data-command], [commandfor]",load:()=>Promise.resolve().then(()=>(Zm(),Xm))},{selector:"[data-markdown-editable]",load:()=>Promise.resolve().then(()=>(gg(),YS))},{selector:"markdown-viewer[data-auto-mermaid], markdown-editor[data-auto-mermaid]",load:()=>Promise.resolve().then(()=>(Eg(),QS))},{selector:":is(img, video, iframe, canvas)[data-mock]",load:()=>Promise.resolve().then(()=>(Lg(),Tg))},{selector:"[data-lorem]",load:()=>Promise.resolve().then(()=>(Mg(),Ng))},{selector:'track[kind="chapters"][data-chapter-list]',load:()=>Promise.resolve().then(()=>(Ig(),$g))}],xx=[..._m,...Sx];function Bg(e=document){$m(xx,e)}var Cx=["valueMissing","typeMismatch","patternMismatch","tooShort","tooLong","rangeUnderflow","rangeOverflow","stepMismatch","badInput"],Tx={"data-label-group":"Group","data-message-min-checked":"Select at least {min}","data-message-max-checked":"Select no more than {max}","data-message-invalid-selection":"Invalid selection","data-message-match":"Values do not match","data-message-network":"Something went wrong. Please try again."},Li=new WeakSet,Ne=new WeakSet,Lx=0;function Jt(e,t,i,s={}){return(t?.getAttribute(i)??e.getAttribute(i)??Tx[i]??"").replace(/\{(\w+)\}/g,(r,a)=>a in s?String(s[a]):r)}function Rg(e,t){let i=e.closest("[lang]")?.getAttribute("lang")||void 0,s="other";try{s=new Intl.PluralRules(i).select(t)}catch{}return(e.getAttribute(`data-label-summary-${s}`)??e.getAttribute("data-label-summary")??(t===1?"Please fix {count} error:":"Please fix {count} errors:")).replaceAll("{count}",String(t))}function Di(e){return[...e.elements].filter(t=>t.willValidate&&!("honeypot"in t.dataset))}function Fg(e){return Di(e).filter(t=>t.dataset.match)}function Hg(e){return[...e.querySelectorAll("form-field[data-upgraded]")]}function Gc(e){let t=e.closest("form-field[data-upgraded]");return t&&t.input===e?t:null}function zg(e){return e.id||(e.id=`vb-field-${++Lx}`),e.id}function Dx(e){return!e.disabled&&!e.closest("[inert], [hidden]")&&e.getClientRects().length>0}function Nx(e,t){if(t.type==="radio"){let s=t.closest("fieldset")?.querySelector(":scope > legend")?.textContent?.trim();if(s)return s}let i=Gc(t);return i?.fieldName?i.fieldName:t.labels?.[0]?.textContent?.trim()||t.getAttribute("aria-label")||t.name||t.id||Jt(e,null,"data-label-group")}function Mx(e){let t=Gc(e);if(t&&typeof t.errorMessage=="string"&&t.errorMessage)return t.errorMessage;let i=Uc(e)?.textContent?.trim();if(i)return i;for(let s of Cx){if(!e.validity[s])continue;let n=e.getAttribute(`data-message-${s.toLowerCase()}`);if(n)return n;break}return e.validationMessage}function Uc(e){let t=e.getAttribute("aria-describedby")?.split(/\s+/)??[];for(let s of t){let n=document.getElementById(s);if(n?.tagName==="OUTPUT"&&n.classList.contains("error"))return n}return e.closest("form-field")?.querySelector("output.error")??null}function _x(e){return e.querySelector('input:not([type="hidden"]), select, textarea, button')}function Vg(e,t){let i=e.dataset.match;return i?t.querySelector(`#${CSS.escape(i)}`)??t.querySelector(`[name="${CSS.escape(i)}"]`):null}function dn(e,t){let i=Vg(e,t);if(i){if(e.setCustomValidity(""),e.value&&i.value&&e.value!==i.value){let s=Jt(t,e,"data-message-match");e.setCustomValidity(s);let n=Uc(e);n&&(n.textContent=s)}else if(e.validity.valid){let s=Uc(e);s&&(s.textContent="")}}}function Pg(e,t){let s=[...t.querySelectorAll('input[type="checkbox"]')].filter(c=>c.checked).length,n=parseInt(t.dataset.minChecked??"0",10),r=parseInt(t.dataset.maxChecked??"999",10),a=t.querySelector(":scope > output"),o=null;return s<n&&(o=Jt(e,t,"data-message-min-checked",{min:n,max:r})),s>r&&(o=Jt(e,t,"data-message-max-checked",{min:n,max:r})),a&&(a.textContent=o??""),o?t.dataset.invalid="":delete t.dataset.invalid,!o}function Og(e){return[...e.querySelectorAll("fieldset[data-min-checked], fieldset[data-max-checked]")]}function Ug(e){let t=[],i=new Set;for(let s of Di(e)){if(s.validity.valid)continue;let n=s;if(s.type==="radio"&&s.name){if(i.has(s.name))continue;i.add(s.name),n=Di(e).find(r=>r.type==="radio"&&r.name===s.name)??s}t.push({target:n,label:Nx(e,s),message:Mx(s)})}for(let s of e.querySelectorAll("fieldset[data-invalid]")){let n=_x(s);if(!n)continue;let r=s.querySelector(":scope > output");t.push({target:n,label:s.querySelector(":scope > legend")?.textContent?.trim()||Jt(e,s,"data-label-group"),message:r?.textContent?.trim()||Jt(e,s,"data-message-invalid-selection")})}return t.sort((s,n)=>s.target.compareDocumentPosition(n.target)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1),t}function Wg(e){return Ug(e).map(t=>t.target).find(Dx)??null}function $x(e){let t=e.querySelector("[data-form-summary]");if(t)return{el:t,type:"authored",signature:"",active:!1};let i=e.querySelector("output.error-summary");return i?{el:i,type:"legacy",signature:"",active:!1}:null}function qg(e){return e.map(t=>{let i=document.createElement("li"),s=document.createElement("a");return s.href=`#${zg(t.target)}`,s.textContent=`${t.label}: ${t.message}`,i.append(s),i})}function Wc(e,t,{focus:i=!1}={}){if(!t)return;let s=Ug(e);if(s.length===0){Gg(t);return}t.active=!0;let n=s.map(a=>`${zg(a.target)}\0${a.label}\0${a.message}`).join(""),r=n!==t.signature;if(t.signature=n,t.type==="authored"){if(r){t.el.querySelector("[data-summary-list]")?.replaceChildren(...qg(s));let a=t.el.querySelector("[data-summary-heading]");a&&(a.textContent=Rg(e,s.length))}(t.el.hidden||!t.el.hasAttribute("data-state-visible"))&&(t.el.hidden=!1,t.el.offsetHeight,t.el.dataset.stateVisible="")}else if(r){let a=document.createElement("p");a.textContent=Rg(e,s.length);let o=document.createElement("ul");o.append(...qg(s)),t.el.replaceChildren(a,o)}i&&t.el.focus()}function Ix(e){let t=getComputedStyle(e),i=r=>r.split(",").map(a=>parseFloat(a)*(a.trim().endsWith("ms")?1:1e3)||0),s=i(t.transitionDuration),n=i(t.transitionDelay);return Math.max(0,...s.map((r,a)=>r+(n[a]??n[0]??0)))}function Gg(e){if(e)if(e.active=!1,e.signature="",e.type==="authored"){let t=e.el;delete t.dataset.stateVisible;let i=()=>{t.hasAttribute("data-state-visible")||(t.hidden=!0,t.querySelector("[data-summary-list]")?.replaceChildren())},n=matchMedia("(prefers-reduced-motion: reduce)").matches?0:Ix(t);n===0?i():setTimeout(i,n+50)}else e.el.replaceChildren()}function Bx(e){e&&e.el.addEventListener("click",t=>{let i=t.target.closest('a[href^="#"]');if(!i)return;t.preventDefault();let s=document.getElementById((i.getAttribute("href")??"#").slice(1));s&&(s.scrollIntoView({behavior:"smooth",block:"center"}),s.focus())})}function Rx(e){for(let t of Di(e))Gc(t)||(t.validity.valid?Ne.has(t)&&(t.removeAttribute("aria-invalid"),Ne.delete(t)):(t.setAttribute("aria-invalid","true"),Ne.add(t)))}function jg(e){let t=e.target;if(!Ne.has(t))return;let i=t.type==="radio"&&t.form&&t.name?Di(t.form).filter(s=>s.type==="radio"&&s.name===t.name):[t];for(let s of i)Ne.has(s)&&s.validity.valid&&(s.removeAttribute("aria-invalid"),Ne.delete(s))}function Fx(e){let t=e.querySelector("[data-form-error]");return t||(t=document.createElement("p"),t.setAttribute("data-form-error",""),t.hidden=!0,e.prepend(t)),t.hasAttribute("role")||t.setAttribute("role","alert"),t}function Px(e){e.dataset.error="network";let t=Fx(e);(!t.textContent.trim()||t.hasAttribute("data-vb-generated"))&&(t.textContent=Jt(e,null,"data-message-network"),t.setAttribute("data-vb-generated","")),t.hidden=!1}function Ox(e){if(e.hasAttribute("data-success")){delete e.dataset.success;let i=e.querySelector("[data-form-success]");i&&(i.hidden=!0)}delete e.dataset.error;let t=e.querySelector("[data-form-error]");t&&(t.hidden=!0)}function qx(e){e.dataset.success="";let t=e.querySelector("[data-form-success]");t&&(t.hidden=!1,t.hasAttribute("tabindex")||(t.tabIndex=-1),t.hasAttribute("role")||t.setAttribute("role","status"),t.focus())}function jx(e){return[...e.elements].find(t=>t instanceof HTMLButtonElement&&t.type==="submit"||t instanceof HTMLInputElement&&(t.type==="submit"||t.type==="image"))??null}function Kg(e,t){try{return t?new FormData(e,t):new FormData(e)}catch{return new FormData(e)}}function Hx(e,t){return t?.hasAttribute("formenctype")?t.formEnctype:e.hasAttribute("enctype")?e.enctype:"multipart/form-data"}function zx(e,t){if(t==="multipart/form-data")return e;let i=[...e].map(([s,n])=>[s,typeof n=="string"?n:n.name]);return t==="text/plain"?i.map(([s,n])=>`${s}=${n}\r
552
+ `).join(""):new URLSearchParams(i)}async function Vx(e,t){let i=t??jx(e),n=(t?.getAttribute("formmethod")||e.getAttribute("method")||"post").toLowerCase()==="get"?"GET":"POST",r=t?.hasAttribute("formaction")?t.formAction:e.action;e.dataset.submitting="",i&&i.setAttribute("aria-disabled","true");let a=()=>{delete e.dataset.submitting,i&&i.getAttribute("aria-busy")!=="true"&&i.removeAttribute("aria-disabled")};try{let o=Kg(e,t),c;if(n==="GET"){let l=new URL(r,document.baseURI);l.search="";for(let[u,d]of o)typeof d=="string"&&l.searchParams.append(u,d);c=await fetch(l,{method:n})}else c=await fetch(r,{method:n,body:zx(o,Hx(e,t))});if(a(),!c.ok){if((c.headers.get("content-type")??"").includes("application/json")){let u=await c.json();if(u.errors){Ux(e,u.errors);return}}throw new Error(`Server error: ${c.status}`)}qx(e)}catch{a(),Px(e)}}function Ux(e,t){e.dataset.error="";let i=Hg(e),s=!1;for(let n of i){let r=n.input??n.querySelector("input, textarea, select");if(!r)continue;let a=t[r.name];a&&(n.setError(String(a)),s=!0)}if(s){let n=e._vbSummary;n?Wc(e,n,{focus:!0}):Wg(e)?.focus()}for(let n of i)(n.input??n.querySelector("input, textarea, select"))?.addEventListener("input",()=>n.clearError(),{once:!0})}function Wx(e,t){setTimeout(()=>{if(!e.isConnected)return;let i=t?.isConnected&&t.form===e?t:null;Li.add(e);try{i?e.requestSubmit(i):e.requestSubmit()}catch{Li.delete(e),e.submit()}Li.delete(e)})}function Vc(e){if(e.hasAttribute("data-vb-enhanced"))return;e.setAttribute("novalidate",""),e.setAttribute("data-vb-enhanced","");let t=$x(e);e._vbSummary=t,t&&Bx(t);for(let i of Fg(e))i.addEventListener("input",()=>dn(i,e)),i.addEventListener("blur",()=>dn(i,e)),Vg(i,e)?.addEventListener("input",()=>dn(i,e));for(let i of Og(e))i.addEventListener("change",()=>Pg(e,i));if(e.addEventListener("input",jg),e.addEventListener("change",jg),e.addEventListener("submit",i=>{if(Li.has(e)){Li.delete(e);return}i.preventDefault();let s=i.submitter??null;Ox(e);let n=!!s?.hasAttribute("formnovalidate");if(!n){for(let c of Hg(e))c.validate();for(let c of Fg(e))dn(c,e);for(let c of Og(e))Pg(e,c);Rx(e)}if(!(n||e.checkValidity()&&!e.querySelector("fieldset[data-invalid]"))){if(t)Wc(e,t,{focus:!0});else{let c=Wg(e);c&&(c.scrollIntoView({behavior:"smooth",block:"center"}),c.focus())}return}Gg(t);let a=new CustomEvent("vb:beforesubmit",{bubbles:!0,cancelable:!0,detail:{form:e,submitter:s}});if(e.dispatchEvent(a),a.defaultPrevented)return;let o=e.dataset.submit??"native";o==="fetch"?Vx(e,s):o==="event"?e.dispatchEvent(new CustomEvent("vb:submit",{bubbles:!0,cancelable:!0,detail:Kg(e,s)})):Wx(e,s)}),t){let i=()=>requestAnimationFrame(()=>{t.active&&Wc(e,t)});e.addEventListener("focusout",i),e.addEventListener("change",i)}}function Yg(){for(let t of document.querySelectorAll("form[data-validate]"))Vc(t);new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.("form[data-validate]")&&Vc(n),n.querySelectorAll?.("form[data-validate]").forEach(r=>Vc(r))}}).observe(document.body,{childList:!0,subtree:!0})}I();var Xg='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/></svg>',Gx='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"/><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"/><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"/><path d="m2 2 20 20"/></svg>',Me={password:new WeakSet,otp:new WeakSet,strength:new WeakSet},Kx=0;function U(e,t,i){return e.getAttribute(`data-label-${t}`)??i}function Kc(e){let t=e.querySelector('input[type="password"]');if(!t||Me.password.has(e)||t.closest(".password-wrapper")||e.querySelector(".password-toggle"))return;Me.password.add(e);let i=U(e,"show-password","Show password"),s=U(e,"hide-password","Hide password"),n=document.createElement("div");n.className="password-wrapper",t.parentNode.insertBefore(n,t),n.appendChild(t);let r=document.createElement("button");r.type="button",r.className="password-toggle",r.setAttribute("aria-label",i),r.setAttribute("aria-pressed","false"),r.innerHTML=Xg,n.appendChild(r),r.addEventListener("click",()=>{let a=t.type==="password";t.type=a?"text":"password",r.setAttribute("aria-pressed",String(a)),r.setAttribute("aria-label",a?s:i),r.innerHTML=a?Gx:Xg})}function Yc(e){let t=e.querySelector('input[data-type="otp"], input[data-type="pin"]');if(!t||Me.otp.has(e)||e.querySelector(".otp-wrapper"))return;let i=t;Me.otp.add(e),e.setAttribute("data-otp-ready","");let s=Math.max(1,parseInt(i.dataset.length||"6",10)||6),n=i.id||`otp-${++Kx}`;i.classList.add("otp-source"),i.tabIndex=-1,i.setAttribute("aria-hidden","true"),i.hasAttribute("pattern")||(i.pattern=`\\d{${s}}`),i.maxLength=s;let r=i.getAttribute("autocomplete")||(i.dataset.type==="otp"?"one-time-code":"off");i.setAttribute("autocomplete","off"),i.hasAttribute("data-message-patternmismatch")||i.setAttribute("data-message-patternmismatch",U(e,"incomplete","Enter all {total} digits").replace("{total}",String(s)));let a=i.id&&e.querySelector(`label[for="${CSS.escape(i.id)}"]`)||e.querySelector("label"),o=document.createElement("div");o.className="otp-wrapper",o.setAttribute("role","group"),a&&(a.id||(a.id=`${n}-label`),o.setAttribute("aria-labelledby",a.id));let c=[...e.querySelectorAll("output.hint")].map((m,g)=>(m.id||(m.id=`${n}-hint${g?`-${g}`:""}`),m.id)),l=[...new Set([...(i.getAttribute("aria-describedby")??"").split(/\s+/),...c])].filter(Boolean);l.length&&o.setAttribute("aria-describedby",l.join(" ")),i.after(o);let u=U(e,"digit","Digit {n} of {total}"),d=[];for(let m=0;m<s;m++){let g=document.createElement("input");g.type="text",g.inputMode="numeric",g.pattern="[0-9]",g.className="otp-digit",g.setAttribute("autocomplete",m===0?r:"off"),g.setAttribute("aria-label",u.replace("{n}",String(m+1)).replace("{total}",String(s))),d.push(g),o.appendChild(g)}[...i.value.replace(/\D/g,"").slice(0,s)].forEach((m,g)=>{d[g].value=m});function f(){i.value=d.map(m=>m.value).join(""),i.dispatchEvent(new Event("input",{bubbles:!0}))}function p(m,g){let b=g.replace(/\D/g,"").slice(0,s-m).split("");b.forEach((w,k)=>{d[m+k].value=w});let T=d.findIndex(w=>!w.value);T!==-1?d[T].focus():d[Math.min(m+Math.max(b.length,1)-1,s-1)].focus(),f()}d.forEach((m,g)=>{m.addEventListener("input",()=>{let b=m.value;if(b.length>1){m.value="",p(g,b);return}if(b&&!/^\d$/.test(b)){m.value="";return}b&&g<d.length-1&&d[g+1].focus(),f()}),m.addEventListener("keydown",b=>{b.key==="Backspace"&&!m.value&&g>0&&d[g-1].focus();let T=getComputedStyle(o).direction==="rtl",w=T?"ArrowRight":"ArrowLeft",k=T?"ArrowLeft":"ArrowRight";b.key===w&&g>0&&(b.preventDefault(),d[g-1].focus()),b.key===k&&g<d.length-1&&(b.preventDefault(),d[g+1].focus())}),m.addEventListener("paste",b=>{b.preventDefault();let T=(b.clipboardData||window.clipboardData)?.getData("text")??"";p(0,T)}),m.addEventListener("focus",()=>{m.select()})}),i.addEventListener("focus",()=>{(d.find(m=>!m.value)??d[s-1]).focus()}),i.form?.addEventListener("reset",()=>{queueMicrotask(()=>{let m=i.value.replace(/\D/g,"");d.forEach((g,b)=>{g.value=m[b]??""})})}),e.addEventListener("click",m=>{m.target===e&&d[0].focus()})}var Zg=["weak","fair","good","strong"],Yx=0;function Xc(e){let t=e.querySelector("input[data-strength]");if(!t||Me.strength.has(e))return;let i=t;Me.strength.add(e),e.querySelectorAll(".strength-meter, .strength-rules, .strength-status").forEach(D=>D.remove());let s=Jg(i.dataset.rules||"length:8",e),n={weak:U(e,"strength-weak","Weak"),fair:U(e,"strength-fair","Fair"),good:U(e,"strength-good","Good"),strong:U(e,"strength-strong","Strong")},r=U(e,"strength","Password strength"),a=U(e,"strength-empty","No password entered"),o=U(e,"rule-met","met"),c=U(e,"rule-unmet","not met"),l=`strength-${++Yx}`,u=document.createElement("div");u.className="strength-meter";let d=document.createElement("meter");d.min=0,d.max=s.length,d.low=Math.ceil(s.length*.4),d.high=Math.ceil(s.length*.75),d.optimum=s.length,d.value=0,d.className="s",d.setAttribute("aria-label",r);let h=document.createElement("span");h.className="strength-label",h.setAttribute("aria-hidden","true"),u.append(d,h);let f=document.createElement("ul");f.className="strength-rules",f.id=`${l}-rules`,f.setAttribute("aria-label",U(e,"requirements","Password requirements"));let p=s.map(D=>{let L=document.createElement("li");L.dataset.rule=D.type;let V=document.createElement("span");return V.className="visually-hidden",L.append(D.label,V),f.append(L),{li:L,state:V}}),m=document.createElement("span");m.className="strength-status visually-hidden",m.setAttribute("role","status"),(e.querySelector(".password-wrapper")||i).insertAdjacentElement("afterend",u),u.insertAdjacentElement("afterend",f),f.insertAdjacentElement("afterend",m);let b=new Set((i.getAttribute("aria-describedby")||"").split(/\s+/).filter(D=>D&&!/^strength-\d+-rules$/.test(D)));b.add(f.id),i.setAttribute("aria-describedby",[...b].join(" "));let T=Zg.indexOf(i.dataset.strengthMin??""),w=U(e,"strength-too-weak","Choose a stronger password. Meet more of the requirements."),k=0,$="";function N({announce:D=!0}={}){let L=i.value,V=0;s.forEach((te,_t)=>{let gn=Xx(te,L),{li:hb,state:fb}=p[_t];hb.toggleAttribute("data-met",gn),fb.textContent=`: ${gn?o:c}`,gn&&V++}),d.value=V;let Mt=V/s.length,ot=L.length===0?"":Mt<.4?"weak":Mt<.75?"fair":Mt<1?"good":"strong",Ie=ot?n[ot]:"";if(h.textContent=Ie,u.dataset.level=ot,d.setAttribute("aria-valuetext",Ie||a),T>=0){let te=ot!==""&&Zg.indexOf(ot)<T;i.setCustomValidity(te?w:"")}ot!==$&&($=ot,clearTimeout(k),D&&ot?k=window.setTimeout(()=>{m.textContent=`${r}: ${Ie}`},600):m.textContent="")}i.addEventListener("input",()=>N()),P(i,()=>N({announce:!1})),N({announce:!1})}function Jg(e,t){let i=[];for(let s of e.split(",")){let[n,r]=s.trim().split(":");switch(n){case"length":{let a=parseInt(r)||8;i.push({type:n,param:a,label:U(t,"rule-length","At least {n} characters").replace("{n}",String(a))});break}case"uppercase":i.push({type:n,label:U(t,"rule-uppercase","One uppercase letter")});break;case"lowercase":i.push({type:n,label:U(t,"rule-lowercase","One lowercase letter")});break;case"number":i.push({type:n,label:U(t,"rule-number","One number")});break;case"special":i.push({type:n,label:U(t,"rule-special","One special character")});break;case"":break;default:console.warn(`[data-strength] Unknown rule "${n}" ignored.`,t)}}return i.length?i:Jg("length:8",t)}function Xx(e,t){switch(e.type){case"length":return[...t].length>=(e.param||8);case"uppercase":return/\p{Lu}/u.test(t);case"lowercase":return/\p{Ll}/u.test(t);case"number":return/\p{N}/u.test(t);case"special":return/[^\p{L}\p{N}]/u.test(t);default:return!1}}function Zx(){document.querySelectorAll('form-field:has(input[type="password"])').forEach(Kc)}function Jx(){document.querySelectorAll('form-field:has(input[data-type="otp"]), form-field:has(input[data-type="pin"])').forEach(Yc)}function Qx(){document.querySelectorAll("form-field:has(input[data-strength])").forEach(Xc)}function Qg(){Zx(),Jx(),Qx(),new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.('form-field:has(input[type="password"])')&&Kc(n),(n.matches?.('form-field:has(input[data-type="otp"])')||n.matches?.('form-field:has(input[data-type="pin"])'))&&Yc(n),n.matches?.("form-field:has(input[data-strength])")&&Xc(n),n.querySelectorAll?.('form-field:has(input[type="password"])')?.forEach(Kc),n.querySelectorAll?.('form-field:has(input[data-type="otp"]), form-field:has(input[data-type="pin"])')?.forEach(Yc),n.querySelectorAll?.("form-field:has(input[data-strength])")?.forEach(Xc)}}).observe(document.body,{childList:!0,subtree:!0})}function tC(e){let t=Date.now(),i=e*7+t%9973&65535;return btoa(JSON.stringify({s:e,t,c:i}))}function eC(e,t,i){let s=0,n=e.submitAt-(e.firstInteractionAt??e.submitAt),r=t.querySelector("[data-honeypot]");return r&&r.value.trim()&&(s+=80),[...t.querySelectorAll('input[type="text"], input[type="email"], input[type="tel"], textarea')].filter(o=>o.value.trim()&&!("honeypot"in o.dataset)).length>0&&e.keyboardEventCount===0&&(s+=30),e.fieldFocusCount===0&&(s+=40),!i&&!e.mouseMovedInForm&&(s+=20),n<1e3?s+=80:n<3e3&&(s+=50),Math.min(s,100)}function iC(e){return new Promise((t,i)=>{let s=document.createElement("script");s.src=e,s.async=!0,s.onload=t,s.onerror=i,document.head.appendChild(s)})}async function sC(e,t){if(!document.querySelector("[data-cf-turnstile-loaded]"))try{await iC("https://challenges.cloudflare.com/turnstile/v0/api.js"),document.head.dataset.cfTurnstileLoaded="";let i=document.createElement("div");i.className="cf-turnstile",i.dataset.sitekey=t,i.dataset.size="invisible",e.appendChild(i)}catch{}}function Zc(e){if(e.hasAttribute("data-bot-enhanced"))return;e.setAttribute("data-bot-enhanced","");let t={fieldFocusCount:0,keyboardEventCount:0,mouseMovedInForm:!1,firstInteractionAt:null,submitAt:null},i=navigator.maxTouchPoints>0;e.addEventListener("focusin",s=>{s.target.matches("input, textarea, select")&&!("honeypot"in s.target.dataset)&&(t.fieldFocusCount++,t.firstInteractionAt??=Date.now())},{capture:!0}),e.addEventListener("keydown",s=>{s.target.matches("input, textarea")&&t.keyboardEventCount++},{capture:!0}),i||e.addEventListener("mousemove",()=>{t.mouseMovedInForm=!0},{once:!0}),e.addEventListener("vb:beforesubmit",s=>{t.submitAt=Date.now();let n=eC(t,e,i),r=e.querySelector("[data-bot-score-field]");if(r||(r=document.createElement("input"),r.type="hidden",r.name="_vb_score",r.dataset.botScoreField="",e.appendChild(r)),r.value=tC(n),n>=80){s.preventDefault(),e.dispatchEvent(new CustomEvent("vb:botblocked",{bubbles:!0,detail:{score:n}}));return}n>=60&&e.dataset.turnstileSitekey&&sC(e,e.dataset.turnstileSitekey)})}function tb(){for(let t of document.querySelectorAll("form[data-bot-protection]"))Zc(t);new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.("form[data-bot-protection]")&&Zc(n),n.querySelectorAll?.("form[data-bot-protection]").forEach(r=>Zc(r))}}).observe(document.body,{childList:!0,subtree:!0})}var yt=null,hn=new Map,Jc=null;function nC(){if(typeof window<"u"&&window.__VB_COMPONENT_BASE)return String(window.__VB_COMPONENT_BASE).replace(/\/$/,"");if(typeof document<"u"){let e=document.querySelectorAll('script[src*="vanilla-breeze"]');for(let t of e){let i=t.getAttribute("src");if(i){let s=i.lastIndexOf("/");if(s!==-1)return i.slice(0,s)}}}return"/cdn"}async function rC(){if(yt)return yt;let e=nC();yt=new Map;try{let t=await fetch(`${e}/components/manifest.json`);if(!t.ok)throw new Error(`HTTP ${t.status}`);let i=await t.json();for(let[s,n]of Object.entries(i))yt.set(s,`${e}/components/${n.file}`)}catch{console.warn("[VB] Component manifest unavailable \u2014 autoloader disabled")}return yt}async function ib(e){if(customElements.get(e))return;if(hn.has(e))return hn.get(e);let t=yt?.get(e);if(!t)return;let i=import(t).then(()=>customElements.whenDefined(e)).then(()=>{}).catch(s=>{console.warn(`[VB] Failed to autoload ${e}:`,s),hn.delete(e)});return hn.set(e,i),i}function eb(e){if(!yt)return;let t=e===document?document.querySelectorAll("*"):e.querySelectorAll?.("*")||[],i=new Set;for(let s of t){let n=s.localName;n.includes("-")&&!customElements.get(n)&&yt.has(n)&&i.add(n)}for(let s of i)ib(s)}async function sb(){await rC(),eb(document),!Jc&&(Jc=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i,n=s.localName;n.includes("-")&&yt?.has(n)&&ib(n),s.querySelectorAll&&eb(s)}}),Jc.observe(document.documentElement,{childList:!0,subtree:!0}))}mt();pe();Q();ut();function aC(e,t){let i=String(e??"").split(`
554
553
  `),s=String(t??"").split(`
555
- `),n=i.length,r=s.length,a=Array.from({length:n+1},()=>new Array(r+1).fill(0));for(let u=1;u<=n;u++)for(let d=1;d<=r;d++)i[u-1]===s[d-1]?a[u][d]=a[u-1][d-1]+1:a[u][d]=Math.max(a[u-1][d],a[u][d-1]);let o=[],c=n,l=r;for(;c>0||l>0;)c>0&&l>0&&i[c-1]===s[l-1]?(o.unshift({type:"eq",text:i[c-1]}),c-=1,l-=1):l>0&&(c===0||a[c][l-1]>=a[c-1][l])?(o.unshift({type:"add",text:s[l-1]}),l-=1):(o.unshift({type:"del",text:i[c-1]}),c-=1);return o}function uC(e){let t=document.createDocumentFragment(),i=document.createElement("pre");i.className="text-diff";for(let s of e)if(s.type==="eq")i.appendChild(document.createTextNode(`${s.text}
554
+ `),n=i.length,r=s.length,a=Array.from({length:n+1},()=>new Array(r+1).fill(0));for(let u=1;u<=n;u++)for(let d=1;d<=r;d++)i[u-1]===s[d-1]?a[u][d]=a[u-1][d-1]+1:a[u][d]=Math.max(a[u-1][d],a[u][d-1]);let o=[],c=n,l=r;for(;c>0||l>0;)c>0&&l>0&&i[c-1]===s[l-1]?(o.unshift({type:"eq",text:i[c-1]}),c-=1,l-=1):l>0&&(c===0||a[c][l-1]>=a[c-1][l])?(o.unshift({type:"add",text:s[l-1]}),l-=1):(o.unshift({type:"del",text:i[c-1]}),c-=1);return o}function oC(e){let t=document.createDocumentFragment(),i=document.createElement("pre");i.className="text-diff";for(let s of e)if(s.type==="eq")i.appendChild(document.createTextNode(`${s.text}
556
555
  `));else if(s.type==="add"){let n=document.createElement("ins");n.textContent=`${s.text}
557
556
  `,i.appendChild(n)}else if(s.type==="del"){let n=document.createElement("del");n.textContent=`${s.text}
558
- `,i.appendChild(n)}return t.appendChild(i),t}function pn(e,t){y.deactivate(e),e.offsetWidth,t()}function Qc(e,t){if(y.prefersReducedMotion()){t();return}let i=new IntersectionObserver(([s])=>{s.isIntersecting&&(i.disconnect(),t())},{threshold:.1});return i.observe(e),()=>i.disconnect()}function dC(e){let t=(e||"0").trim(),i=parseFloat(t);return!Number.isFinite(i)||i<0?0:/^[\d.]+s$/i.test(t)?i*1e3:i}y.trigger("scroll",(e,t)=>Qc(e,t));y.trigger("hover",(e,t)=>{let i=!1,s=!1;function n(u){let d=i||s;u==="hover"?i=!0:s=!0,d||pn(e,t)}function r(){!i&&!s&&y.deactivate(e)}let a=()=>n("hover"),o=()=>{i=!1,r()},c=()=>n("focus"),l=u=>{u.relatedTarget instanceof Node&&e.contains(u.relatedTarget)||(s=!1,r())};return e.addEventListener("pointerenter",a),e.addEventListener("pointerleave",o),e.addEventListener("focusin",c),e.addEventListener("focusout",l),()=>{e.removeEventListener("pointerenter",a),e.removeEventListener("pointerleave",o),e.removeEventListener("focusin",c),e.removeEventListener("focusout",l)}});y.trigger("click",(e,t,i)=>{function s(){i==="replay"?pn(e,t):e.hasAttribute("data-effect-active")?y.deactivate(e):t()}return e.addEventListener("click",s),()=>e.removeEventListener("click",s)});y.trigger("time",(e,t,i)=>{let s=setTimeout(t,dC(i));return()=>clearTimeout(s)});y.trigger("intersect",(e,t,i)=>{if(y.prefersReducedMotion()){t();return}if((i||"once")==="toggle"){let n=new IntersectionObserver(([r])=>{r.isIntersecting?t():y.deactivate(e)},{threshold:.1});return n.observe(e),()=>n.disconnect()}return Qc(e,t)});y.trigger("media",(e,t,i)=>{if(!i)return;let s=window.matchMedia(i);function n(){s.matches?t():y.deactivate(e)}return s.addEventListener("change",n),n(),()=>s.removeEventListener("change",n)});y.trigger("event",(e,t,i)=>{if(!i)return;let s=()=>pn(e,t);return e.addEventListener(i,s),()=>e.removeEventListener(i,s)});y.trigger("vt",(e,t)=>{let i=()=>pn(e,t);return e.addEventListener("vb:vt-update-done",i),()=>e.removeEventListener("vb:vt-update-done",i)});var hC=typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timeline: view()");for(let e of["view-progress","scroll-progress"])y.trigger(e,(t,i)=>{if(!(hC&&!y.prefersReducedMotion()))return Qc(t,i)});var fC=12;function te(e,t,i){let s=y.uid(t),n=i===void 0?`${e}-${s}`:`${e}-${s}-${i}`;return typeof CSS<"u"&&CSS.escape?CSS.escape(n):n.replace(/[^\w-]/g,"_")}function Ie(e,t,i){return e.style.viewTransitionName=t,i&&(e.style.viewTransitionClass=i),()=>{e.style.viewTransitionName="",i&&(e.style.viewTransitionClass="")}}y.transition("morph",e=>Ie(e,te("morph",e)));function pC(e,t){let i=(t||"forward").trim().toLowerCase();if(i==="left")return"slide-left";if(i==="right")return"slide-right";let n=!(getComputedStyle(e).direction==="rtl");return(i==="back"?!n:n)?"slide-left":"slide-right"}y.transition("slide",(e,t)=>Ie(e,te("slide",e),pC(e,t)));y.transition("fade",e=>Ie(e,te("fade",e),"fade"));y.transition("scale",e=>Ie(e,te("scale",e),"scale"));y.transition("none",e=>Ie(e,te("none",e),"vt-none"));function mC(e){let t=new Set,i=()=>{let n=Array.from(e.children);for(let r of t)r.parentElement!==e&&(r.style.viewTransitionName="",r.style.viewTransitionClass="",t.delete(r));n.forEach((r,a)=>{if(!(r instanceof HTMLElement))return;let o=Math.min(a,fC-1);r.style.viewTransitionName=te("stagger",e,y.uid(r)),r.style.viewTransitionClass=`fade vt-stagger-${o}`,t.add(r)})};i();let s=new MutationObserver(i);return s.observe(e,{childList:!0}),()=>{s.disconnect();for(let n of t)n.style.viewTransitionName="",n.style.viewTransitionClass="";t.clear()}}y.transition("stagger",e=>mC(e));y.transition("effect",(e,t)=>{let i=(t||"fade").trim();return Ie(e,te("effect",e),/^-?[_a-zA-Z][\w-]*$/.test(i)?i:"fade")});var ab="data-effect-glitch-init";y.effect("glitch",e=>(e.setAttribute("data-glitch-text",(e.textContent||"").trim()),e.setAttribute(ab,""),{cleanup(){e.removeAttribute(ab),e.removeAttribute("data-glitch-text")}}));var tl="data-effect-blur-reveal-init";y.effect("blur-reveal",e=>{let t=e;if(X(t),t.removeAttribute(tl),y.prefersReducedMotion())return{cleanup(){}};t.style.setProperty("--blur-delay",y.params(t).get("blur-reveal-delay")||"80ms");let i=Nt(t,{className:"vb-blur-chunk"});i.forEach((n,r)=>n.style.setProperty("--i",String(r))),t.setAttribute(tl,"");let s=null;if(t.classList.contains("line")){xe(i);let n=t.clientWidth;s=new ResizeObserver(()=>{t.clientWidth!==n&&(n=t.clientWidth,xe(i))}),s.observe(t)}return{activate(){t.setAttribute("data-effect-active","")},cleanup(){s?.disconnect(),X(t),t.removeAttribute(tl),t.style.removeProperty("--blur-delay")}}});var el="data-effect-typewriter-init",gC=2e3,bC=400,yC=200;y.effect("typewriter",e=>{let t=e;if(X(t),t.querySelectorAll(":scope > .vb-typewriter-cursor").forEach(d=>d.remove()),t.removeAttribute(el),y.prefersReducedMotion())return{cleanup(){}};let i=Nt(t,{unit:"grapheme",className:"vb-typewriter-char"});t.setAttribute(el,"");let s=0,n=null,r=()=>{clearTimeout(s),s=0},a=()=>!!t.closest("[data-paused]"),o=(d,h)=>{s=window.setTimeout(function f(){if(a()){s=window.setTimeout(f,yC);return}d()},h)},c=d=>i.forEach((h,f)=>{h.hidden=f>=d}),l=(d,h)=>{let f=d+h;for(;f>0&&f<i.length&&i[f-1].hasAttribute("data-space");)f+=h;return f};function u(){r();let d=y.params(t),h=d.getTime("typewriter-speed",50),f=d.getTime("typewriter-delay",0),p=t.classList.contains("loop");!n&&!t.classList.contains("no-cursor")&&(n=document.createElement("span"),n.className="vb-typewriter-cursor",n.textContent="|",n.setAttribute("aria-hidden","true"),t.append(n));let m=0;c(0);let g=()=>{m<i.length?(m=l(m,1),c(m),o(g,h)):p&&o(b,gC)},b=()=>{m>0?(m=Math.max(0,l(m,-1)),c(m),o(b,h/2)):o(g,bC)};o(g,f)}return{activate(){u()},cleanup(){r(),n?.remove(),n=null,X(t),t.removeAttribute(el)}}});var il="data-effect-scramble-init",vC="!<>-_\\/[]{}=+*^?#";function wC(e){let t=y.params(e).get("scramble-chars"),i=/^(['"])(.*)\1$/.exec(t);i&&(t=i[2]);let s=Se(t);return s.length?s:Se(vC)}var AC=e=>e[Math.floor(Math.random()*e.length)];y.effect("scramble",e=>{let t=e;if(X(t),t.removeAttribute(il),y.prefersReducedMotion())return{cleanup(){}};let i=Nt(t,{unit:"grapheme",className:"vb-scramble-char"}),s=i.map(l=>l.textContent||""),n=i.flatMap((l,u)=>l.hasAttribute("data-space")?[]:[u]);t.setAttribute(il,"");let r=0,a=()=>{clearTimeout(r),r=0},o=()=>i.forEach((l,u)=>{l.textContent=s[u]});function c(){a();let l=y.params(t),u=l.getTime("scramble-duration",1500),d=Math.max(1,l.getTime("scramble-speed",30)),h=wC(t),f=Math.max(1,Math.ceil(u/d)),p=0,m=()=>{let g=Math.floor(p/f*n.length);n.forEach((b,A)=>{i[b].textContent=A<g?s[b]:AC(h)}),p++,p<=f?r=window.setTimeout(m,d):o()};m()}return{activate(){c()},cleanup(){a(),X(t),t.removeAttribute(il)}}});Cs();var EC=5e3;function kC(e){return e===1?1:1-Math.pow(2,-10*e)}function SC(e){let t=e.trim(),i=t.indexOf(".");return i===-1||/e/i.test(t)?0:t.length-i-1}function xC(e){if(e==null||e.trim()==="")return null;let t=parseInt(e,10);return Number.isInteger(t)&&t>=0&&t<=20?t:null}function CC(e,t,i){let s=i??SC(t),n=i!=null||!e.hasAttribute("data-format-number");return{formatter:xs(e,n?{minimumFractionDigits:s,maximumFractionDigits:s}:{}),step:s}}function TC(e,t){let i=Math.pow(10,Math.min(t,15));return Math.round(e*i)/i}function LC(e){let t=e.getAttribute("value");if(t==null||t.trim()==="")return null;let i=Number(t);if(isNaN(i))return null;let s=y.params(e),n=s.getNumber("ticker-start",0),r=Math.min(Math.max(s.getTime("ticker-duration",1e3),0),EC),a=xC(s.get("ticker-decimals")),{formatter:o,step:c}=CC(e,t,a),l=i-n;if(l===0)return null;let u=null,d=0;function h(){e.removeAttribute("aria-busy")}function f(p){u||(u=p);let m=p-u,g=r===0?1:Math.min(m/r,1);if(g<1){let b=TC(n+l*kC(g),c);e.textContent=o?o.format(b):b.toFixed(c),d=requestAnimationFrame(f)}else e.textContent=o?o.format(i):i.toFixed(c),h()}return e.setAttribute("aria-busy","true"),d=requestAnimationFrame(f),()=>{cancelAnimationFrame(d),h()}}y.effect("ticker",e=>{if(y.prefersReducedMotion())return{cleanup(){}};let t=null,i=e.textContent;return{activate(){t?.(),t=LC(e)},cleanup(){t?.(),t=null,e.textContent!==i&&(e.textContent=i)}}});dt();var ob="animate-image-wrapper";function DC(e){let t=(e.getAttribute("alt")||"").trim(),i=B(e,"animation-pause","Pause animation");return i.includes("{alt}")?i.replace("{alt}",t).trim():t?`${i}: ${t}`:i}y.effect("animate-image",e=>{let t=e;if(t.tagName!=="IMG"||!t.parentNode)return{cleanup(){}};t.removeAttribute("data-effect-animate-image-init"),t.hasAttribute("alt")||console.warn("[animate-image] Image has no alt text; describe what the animation shows.",t);let i=t.getAttribute("data-animate-image-src");if(i){t.src=i;let S=t.getAttribute("data-animate-image-srcset");S&&(t.srcset=S),t.removeAttribute("data-animate-image-src"),t.removeAttribute("data-animate-image-srcset")}let s=t.parentElement?.tagName==="PICTURE"?t.parentElement:null,n=s||t,r=s?[...s.querySelectorAll(":scope > source")]:[],a=n.parentElement?.classList.contains(ob)?n.parentElement:null,o=a||document.createElement("span");a?o.querySelectorAll(":scope > .animate-image-toggle, :scope > .animate-image-placeholder").forEach(S=>S.remove()):(o.className=ob,n.parentNode?.insertBefore(o,n),o.appendChild(n));let c=document.createElement("span");c.className="animate-image-placeholder",c.hidden=!0,o.appendChild(c);let l=document.createElement("button");l.type="button",l.className="animate-image-toggle",l.setAttribute("aria-pressed","false"),l.setAttribute("aria-label",DC(t)),o.appendChild(l);let u=t.hasAttribute("data-animate-image-paused"),d=t.getAttribute("data-poster"),h=!1,f=!1,p=null;function m(){if(d||!t.naturalWidth)return;let S=document.createElement("canvas");S.width=t.naturalWidth,S.height=t.naturalHeight;let L=S.getContext("2d");if(L)try{L.drawImage(t,0,0),d=S.toDataURL("image/png")}catch{d=null}}function g(){l.setAttribute("aria-pressed",String(h)),l.classList.toggle("paused",h),t.toggleAttribute("data-animate-image-paused",h)}function b({auto:S=!1}={}){if(!h){if(m(),h=!0,f=S,p={src:t.currentSrc||t.src,srcset:t.getAttribute("srcset"),sizes:t.getAttribute("sizes"),sources:r.map(L=>[L,L.getAttribute("srcset"),L.getAttribute("sizes")])},t.setAttribute("data-animate-image-src",t.getAttribute("src")||p.src),p.srcset&&t.setAttribute("data-animate-image-srcset",p.srcset),d){for(let[L]of p.sources)L.removeAttribute("srcset"),L.removeAttribute("sizes");t.removeAttribute("srcset"),t.removeAttribute("sizes"),t.src=d}else c.textContent=t.getAttribute("alt")||"",c.hidden=!1,o.setAttribute("data-animate-image-hidden","");g()}}function A(){if(h){if(h=!1,f=!1,p){for(let[S,L,P]of p.sources)L!=null&&S.setAttribute("srcset",L),P!=null&&S.setAttribute("sizes",P);p.sizes!=null&&t.setAttribute("sizes",p.sizes),p.srcset!=null&&t.setAttribute("srcset",p.srcset),t.src=t.getAttribute("data-animate-image-src")||p.src}p=null,t.removeAttribute("data-animate-image-src"),t.removeAttribute("data-animate-image-srcset"),c.hidden=!0,o.removeAttribute("data-animate-image-hidden"),g()}}l.addEventListener("click",()=>h?A():b());function w(S){t.complete&&t.naturalWidth?S():t.addEventListener("load",S,{once:!0})}w(m),u?w(()=>b()):y.prefersReducedMotion()&&w(()=>b({auto:!0}));let _=()=>{y.prefersReducedMotion()?w(()=>b({auto:!0})):f&&A()},D=window.matchMedia("(prefers-reduced-motion: reduce)");D.addEventListener("change",_);let V=new MutationObserver(_);return V.observe(document.documentElement,{attributes:!0,attributeFilter:["data-motion-reduced"]}),{cleanup(){D.removeEventListener("change",_),V.disconnect(),h&&A(),t.toggleAttribute("data-animate-image-paused",u),l.remove(),c.remove(),o.parentNode&&(o.parentNode.insertBefore(n,o),o.remove())}}});var cb="data-effect-flipboard-init",mn=" ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,:!?/-",NC=60,MC=30,_C=80,_t="\xA0",lb=new WeakMap;function $C(){let e=document.createElement("span");e.className="vb-flap-char";for(let i of["top","bottom","flip-top","flip-bottom"]){let s=document.createElement("span");s.className=`vb-flap-${i}`;let n=document.createElement("span");n.className="vb-flap-text",n.textContent=_t,s.append(n),e.append(s)}let t=document.createElement("span");return t.className="vb-flap-hinge",e.append(t),e}function ub(e,t){for(let i of e.querySelectorAll(".vb-flap-text"))i.textContent=t||_t}function gn(e,t){return new Promise(i=>{let s=window.setTimeout(()=>{e.timers.delete(s),i(void 0)},t);e.timers.add(s)})}async function IC(e,t,i,s,n){let r=t.querySelector(".vb-flap-top .vb-flap-text"),a=t.querySelector(".vb-flap-bottom .vb-flap-text"),o=t.querySelector(".vb-flap-flip-top"),c=t.querySelector(".vb-flap-flip-bottom");r.textContent=i||_t,a.textContent=i||_t,o.querySelector(".vb-flap-text").textContent=i||_t,c.querySelector(".vb-flap-text").textContent=s||_t,o.classList.add("vb-flap-flipping"),c.classList.add("vb-flap-flipping"),await gn(e,n/2),r.textContent=s||_t,await gn(e,n/2),a.textContent=s||_t,o.classList.remove("vb-flap-flipping"),c.classList.remove("vb-flap-flipping")}async function BC(e,t,i,s,n,r){for(let a=0;a<s;a++){if(e.generation!==n)return;let o=a===s-1,c=mn[a%mn.length],l=o?i:mn[(a+1)%mn.length];await IC(e,t,c,l,r),o||await gn(e,MC)}}function db(e){e.generation++;for(let t of e.timers)clearTimeout(t);e.timers.clear()}function RC(e,t){let i=vf(e,t.original);return e.classList.add("vb-flap-board"),t.chars.map(()=>i.appendChild($C()))}function FC(e,t){db(t);let i=e,s=y.params(i).getTime("flip-ms",NC);i.style.setProperty("--_vb-flip-duration",`${s}ms`);let n=RC(e,t),r=t.generation;if(y.prefersReducedMotion()){n.forEach((a,o)=>ub(a,t.chars[o]));return}Promise.all(n.map(async(a,o)=>{if(await gn(t,o*_C),t.generation!==r)return;let c=4+Math.floor(Math.random()*7);await BC(t,a,t.chars[o],c,r,s)})).then(()=>{t.generation===r&&n.forEach((a,o)=>ub(a,t.chars[o]))})}y.effect("flipboard",e=>{let t=yf(e).trim();if(X(e),e.classList.remove("vb-flap-board"),!t)return{cleanup(){}};let i={original:t,chars:Se(t.toLocaleUpperCase(e.closest("[lang]")?.getAttribute("lang")||void 0)),generation:0,timers:new Set};return lb.set(e,i),e.setAttribute(cb,""),FC(e,i),{cleanup(){db(i),lb.delete(e),e.textContent=i.original,e.classList.remove("vb-flap-board"),e.removeAttribute(cb),e.style.removeProperty("--_vb-flip-duration")}}});var hb="vb-stamp-noise",Be="http://www.w3.org/2000/svg";function PC(){if(document.getElementById(hb))return;let e=document.createElementNS(Be,"svg");e.setAttribute("aria-hidden","true"),e.setAttribute("focusable","false"),e.setAttribute("width","0"),e.setAttribute("height","0"),e.style.position="absolute",e.style.overflow="hidden";let t=document.createElementNS(Be,"filter");t.id=hb;for(let[a,o]of Object.entries({x:"-5%",y:"-5%",width:"110%",height:"110%"}))t.setAttribute(a,o);let i=document.createElementNS(Be,"feTurbulence");for(let[a,o]of Object.entries({type:"fractalNoise",baseFrequency:"0.75",numOctaves:"4",stitchTiles:"stitch",result:"noise"}))i.setAttribute(a,o);let s=document.createElementNS(Be,"feColorMatrix");for(let[a,o]of Object.entries({type:"saturate",values:"0",in:"noise",result:"greyNoise"}))s.setAttribute(a,o);let n=document.createElementNS(Be,"feComposite");for(let[a,o]of Object.entries({in:"SourceGraphic",in2:"greyNoise",operator:"in"}))n.setAttribute(a,o);t.append(i,s,n);let r=document.createElementNS(Be,"defs");r.append(t),e.append(r),document.body.prepend(e)}y.effect("stamp",()=>(PC(),{cleanup(){}}));var OC="Rating cleared";function fb(e,t){e.dispatchEvent(new CustomEvent("rating:change",{bubbles:!0,detail:{value:t}}))}function sl(e){return e instanceof HTMLInputElement&&e.type==="radio"?e:null}y.effect("rating",e=>{if(e.hasAttribute("data-rating-readonly"))return;let t=document.createElement("span");t.setAttribute("data-rating-live",""),t.setAttribute("role","status"),e.appendChild(t);let i=0;function s(u){t.textContent="",clearTimeout(i),i=window.setTimeout(()=>{t.textContent=u},50)}function n(u){u.checked=!1,fb(e,0),s(e.getAttribute("data-label-cleared")||OC)}let r=!1,a=0;function o(u){let d=sl(u.target);!d||!d.checked||(r=!1,clearTimeout(a),a=window.setTimeout(()=>{!r&&d.checked&&n(d)},0))}function c(u){if(u.key!=="Delete"&&u.key!=="Backspace")return;let d=sl(u.target);!d||!d.checked||(u.preventDefault(),n(d))}function l(u){let d=sl(u.target);!d||!d.checked||(r=!0,fb(e,Number(d.value)))}return e.addEventListener("click",o),e.addEventListener("keydown",c),e.addEventListener("change",l),{cleanup(){clearTimeout(i),clearTimeout(a),e.removeEventListener("click",o),e.removeEventListener("keydown",c),e.removeEventListener("change",l),t.remove()}}});await I.init();Uf();Zg();eb();ib();Fg();y.observe();await rb();export{I as ThemeManager,J as VBService,K as VBServiceError,x as VBStore,or as VbI18n,G as announce,lC as diffLines,R as getLocale,Qy as isRTL,uC as renderDiffFragment,At as usableLocale};
557
+ `,i.appendChild(n)}return t.appendChild(i),t}function fn(e,t){y.deactivate(e),e.offsetWidth,t()}function Qc(e,t){if(y.prefersReducedMotion()){t();return}let i=new IntersectionObserver(([s])=>{s.isIntersecting&&(i.disconnect(),t())},{threshold:.1});return i.observe(e),()=>i.disconnect()}function cC(e){let t=(e||"0").trim(),i=parseFloat(t);return!Number.isFinite(i)||i<0?0:/^[\d.]+s$/i.test(t)?i*1e3:i}y.trigger("scroll",(e,t)=>Qc(e,t));y.trigger("hover",(e,t)=>{let i=!1,s=!1;function n(u){let d=i||s;u==="hover"?i=!0:s=!0,d||fn(e,t)}function r(){!i&&!s&&y.deactivate(e)}let a=()=>n("hover"),o=()=>{i=!1,r()},c=()=>n("focus"),l=u=>{u.relatedTarget instanceof Node&&e.contains(u.relatedTarget)||(s=!1,r())};return e.addEventListener("pointerenter",a),e.addEventListener("pointerleave",o),e.addEventListener("focusin",c),e.addEventListener("focusout",l),()=>{e.removeEventListener("pointerenter",a),e.removeEventListener("pointerleave",o),e.removeEventListener("focusin",c),e.removeEventListener("focusout",l)}});y.trigger("click",(e,t,i)=>{function s(){i==="replay"?fn(e,t):e.hasAttribute("data-effect-active")?y.deactivate(e):t()}return e.addEventListener("click",s),()=>e.removeEventListener("click",s)});y.trigger("time",(e,t,i)=>{let s=setTimeout(t,cC(i));return()=>clearTimeout(s)});y.trigger("intersect",(e,t,i)=>{if(y.prefersReducedMotion()){t();return}if((i||"once")==="toggle"){let n=new IntersectionObserver(([r])=>{r.isIntersecting?t():y.deactivate(e)},{threshold:.1});return n.observe(e),()=>n.disconnect()}return Qc(e,t)});y.trigger("media",(e,t,i)=>{if(!i)return;let s=window.matchMedia(i);function n(){s.matches?t():y.deactivate(e)}return s.addEventListener("change",n),n(),()=>s.removeEventListener("change",n)});y.trigger("event",(e,t,i)=>{if(!i)return;let s=()=>fn(e,t);return e.addEventListener(i,s),()=>e.removeEventListener(i,s)});y.trigger("vt",(e,t)=>{let i=()=>fn(e,t);return e.addEventListener("vb:vt-update-done",i),()=>e.removeEventListener("vb:vt-update-done",i)});var lC=typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timeline: view()");for(let e of["view-progress","scroll-progress"])y.trigger(e,(t,i)=>{if(!(lC&&!y.prefersReducedMotion()))return Qc(t,i)});var uC=12;function Qt(e,t,i){let s=y.uid(t),n=i===void 0?`${e}-${s}`:`${e}-${s}-${i}`;return typeof CSS<"u"&&CSS.escape?CSS.escape(n):n.replace(/[^\w-]/g,"_")}function _e(e,t,i){return e.style.viewTransitionName=t,i&&(e.style.viewTransitionClass=i),()=>{e.style.viewTransitionName="",i&&(e.style.viewTransitionClass="")}}y.transition("morph",e=>_e(e,Qt("morph",e)));function dC(e,t){let i=(t||"forward").trim().toLowerCase();if(i==="left")return"slide-left";if(i==="right")return"slide-right";let n=!(getComputedStyle(e).direction==="rtl");return(i==="back"?!n:n)?"slide-left":"slide-right"}y.transition("slide",(e,t)=>_e(e,Qt("slide",e),dC(e,t)));y.transition("fade",e=>_e(e,Qt("fade",e),"fade"));y.transition("scale",e=>_e(e,Qt("scale",e),"scale"));y.transition("none",e=>_e(e,Qt("none",e),"vt-none"));function hC(e){let t=new Set,i=()=>{let n=Array.from(e.children);for(let r of t)r.parentElement!==e&&(r.style.viewTransitionName="",r.style.viewTransitionClass="",t.delete(r));n.forEach((r,a)=>{if(!(r instanceof HTMLElement))return;let o=Math.min(a,uC-1);r.style.viewTransitionName=Qt("stagger",e,y.uid(r)),r.style.viewTransitionClass=`fade vt-stagger-${o}`,t.add(r)})};i();let s=new MutationObserver(i);return s.observe(e,{childList:!0}),()=>{s.disconnect();for(let n of t)n.style.viewTransitionName="",n.style.viewTransitionClass="";t.clear()}}y.transition("stagger",e=>hC(e));y.transition("effect",(e,t)=>{let i=(t||"fade").trim();return _e(e,Qt("effect",e),/^-?[_a-zA-Z][\w-]*$/.test(i)?i:"fade")});var nb="data-effect-glitch-init";y.effect("glitch",e=>(e.setAttribute("data-glitch-text",(e.textContent||"").trim()),e.setAttribute(nb,""),{cleanup(){e.removeAttribute(nb),e.removeAttribute("data-glitch-text")}}));var tl="data-effect-blur-reveal-init";y.effect("blur-reveal",e=>{let t=e;if(X(t),t.removeAttribute(tl),y.prefersReducedMotion())return{cleanup(){}};t.style.setProperty("--blur-delay",y.params(t).get("blur-reveal-delay")||"80ms");let i=Lt(t,{className:"vb-blur-chunk"});i.forEach((n,r)=>n.style.setProperty("--i",String(r))),t.setAttribute(tl,"");let s=null;if(t.classList.contains("line")){ke(i);let n=t.clientWidth;s=new ResizeObserver(()=>{t.clientWidth!==n&&(n=t.clientWidth,ke(i))}),s.observe(t)}return{activate(){t.setAttribute("data-effect-active","")},cleanup(){s?.disconnect(),X(t),t.removeAttribute(tl),t.style.removeProperty("--blur-delay")}}});var el="data-effect-typewriter-init",fC=2e3,pC=400,mC=200;y.effect("typewriter",e=>{let t=e;if(X(t),t.querySelectorAll(":scope > .vb-typewriter-cursor").forEach(d=>d.remove()),t.removeAttribute(el),y.prefersReducedMotion())return{cleanup(){}};let i=Lt(t,{unit:"grapheme",className:"vb-typewriter-char"});t.setAttribute(el,"");let s=0,n=null,r=()=>{clearTimeout(s),s=0},a=()=>!!t.closest("[data-paused]"),o=(d,h)=>{s=window.setTimeout(function f(){if(a()){s=window.setTimeout(f,mC);return}d()},h)},c=d=>i.forEach((h,f)=>{h.hidden=f>=d}),l=(d,h)=>{let f=d+h;for(;f>0&&f<i.length&&i[f-1].hasAttribute("data-space");)f+=h;return f};function u(){r();let d=y.params(t),h=d.getTime("typewriter-speed",50),f=d.getTime("typewriter-delay",0),p=t.classList.contains("loop");!n&&!t.classList.contains("no-cursor")&&(n=document.createElement("span"),n.className="vb-typewriter-cursor",n.textContent="|",n.setAttribute("aria-hidden","true"),t.append(n));let m=0;c(0);let g=()=>{m<i.length?(m=l(m,1),c(m),o(g,h)):p&&o(b,fC)},b=()=>{m>0?(m=Math.max(0,l(m,-1)),c(m),o(b,h/2)):o(g,pC)};o(g,f)}return{activate(){u()},cleanup(){r(),n?.remove(),n=null,X(t),t.removeAttribute(el)}}});var il="data-effect-scramble-init",gC="!<>-_\\/[]{}=+*^?#";function bC(e){let t=y.params(e).get("scramble-chars"),i=/^(['"])(.*)\1$/.exec(t);i&&(t=i[2]);let s=Ee(t);return s.length?s:Ee(gC)}var yC=e=>e[Math.floor(Math.random()*e.length)];y.effect("scramble",e=>{let t=e;if(X(t),t.removeAttribute(il),y.prefersReducedMotion())return{cleanup(){}};let i=Lt(t,{unit:"grapheme",className:"vb-scramble-char"}),s=i.map(l=>l.textContent||""),n=i.flatMap((l,u)=>l.hasAttribute("data-space")?[]:[u]);t.setAttribute(il,"");let r=0,a=()=>{clearTimeout(r),r=0},o=()=>i.forEach((l,u)=>{l.textContent=s[u]});function c(){a();let l=y.params(t),u=l.getTime("scramble-duration",1500),d=Math.max(1,l.getTime("scramble-speed",30)),h=bC(t),f=Math.max(1,Math.ceil(u/d)),p=0,m=()=>{let g=Math.floor(p/f*n.length);n.forEach((b,T)=>{i[b].textContent=T<g?s[b]:yC(h)}),p++,p<=f?r=window.setTimeout(m,d):o()};m()}return{activate(){c()},cleanup(){a(),X(t),t.removeAttribute(il)}}});xs();var vC=5e3;function wC(e){return e===1?1:1-Math.pow(2,-10*e)}function AC(e){let t=e.trim(),i=t.indexOf(".");return i===-1||/e/i.test(t)?0:t.length-i-1}function EC(e){if(e==null||e.trim()==="")return null;let t=parseInt(e,10);return Number.isInteger(t)&&t>=0&&t<=20?t:null}function kC(e,t,i){let s=i??AC(t),n=i!=null||!e.hasAttribute("data-format-number");return{formatter:Ss(e,n?{minimumFractionDigits:s,maximumFractionDigits:s}:{}),step:s}}function SC(e,t){let i=Math.pow(10,Math.min(t,15));return Math.round(e*i)/i}function xC(e){let t=e.getAttribute("value");if(t==null||t.trim()==="")return null;let i=Number(t);if(isNaN(i))return null;let s=y.params(e),n=s.getNumber("ticker-start",0),r=Math.min(Math.max(s.getTime("ticker-duration",1e3),0),vC),a=EC(s.get("ticker-decimals")),{formatter:o,step:c}=kC(e,t,a),l=i-n;if(l===0)return null;let u=null,d=0;function h(){e.removeAttribute("aria-busy")}function f(p){u||(u=p);let m=p-u,g=r===0?1:Math.min(m/r,1);if(g<1){let b=SC(n+l*wC(g),c);e.textContent=o?o.format(b):b.toFixed(c),d=requestAnimationFrame(f)}else e.textContent=o?o.format(i):i.toFixed(c),h()}return e.setAttribute("aria-busy","true"),d=requestAnimationFrame(f),()=>{cancelAnimationFrame(d),h()}}y.effect("ticker",e=>{if(y.prefersReducedMotion())return{cleanup(){}};let t=null,i=e.textContent;return{activate(){t?.(),t=xC(e)},cleanup(){t?.(),t=null,e.textContent!==i&&(e.textContent=i)}}});ut();var rb="animate-image-wrapper";function CC(e){let t=(e.getAttribute("alt")||"").trim(),i=R(e,"animation-pause","Pause animation");return i.includes("{alt}")?i.replace("{alt}",t).trim():t?`${i}: ${t}`:i}y.effect("animate-image",e=>{let t=e;if(t.tagName!=="IMG"||!t.parentNode)return{cleanup(){}};t.removeAttribute("data-effect-animate-image-init"),t.hasAttribute("alt")||console.warn("[animate-image] Image has no alt text; describe what the animation shows.",t);let i=t.getAttribute("data-animate-image-src");if(i){t.src=i;let D=t.getAttribute("data-animate-image-srcset");D&&(t.srcset=D),t.removeAttribute("data-animate-image-src"),t.removeAttribute("data-animate-image-srcset")}let s=t.parentElement?.tagName==="PICTURE"?t.parentElement:null,n=s||t,r=s?[...s.querySelectorAll(":scope > source")]:[],a=n.parentElement?.classList.contains(rb)?n.parentElement:null,o=a||document.createElement("span");a?o.querySelectorAll(":scope > .animate-image-toggle, :scope > .animate-image-placeholder").forEach(D=>D.remove()):(o.className=rb,n.parentNode?.insertBefore(o,n),o.appendChild(n));let c=document.createElement("span");c.className="animate-image-placeholder",c.hidden=!0,o.appendChild(c);let l=document.createElement("button");l.type="button",l.className="animate-image-toggle",l.setAttribute("aria-pressed","false"),l.setAttribute("aria-label",CC(t)),o.appendChild(l);let u=t.hasAttribute("data-animate-image-paused"),d=t.getAttribute("data-poster"),h=!1,f=!1,p=null;function m(){if(d||!t.naturalWidth)return;let D=document.createElement("canvas");D.width=t.naturalWidth,D.height=t.naturalHeight;let L=D.getContext("2d");if(L)try{L.drawImage(t,0,0),d=D.toDataURL("image/png")}catch{d=null}}function g(){l.setAttribute("aria-pressed",String(h)),l.classList.toggle("paused",h),t.toggleAttribute("data-animate-image-paused",h)}function b({auto:D=!1}={}){if(!h){if(m(),h=!0,f=D,p={src:t.currentSrc||t.src,srcset:t.getAttribute("srcset"),sizes:t.getAttribute("sizes"),sources:r.map(L=>[L,L.getAttribute("srcset"),L.getAttribute("sizes")])},t.setAttribute("data-animate-image-src",t.getAttribute("src")||p.src),p.srcset&&t.setAttribute("data-animate-image-srcset",p.srcset),d){for(let[L]of p.sources)L.removeAttribute("srcset"),L.removeAttribute("sizes");t.removeAttribute("srcset"),t.removeAttribute("sizes"),t.src=d}else c.textContent=t.getAttribute("alt")||"",c.hidden=!1,o.setAttribute("data-animate-image-hidden","");g()}}function T(){if(h){if(h=!1,f=!1,p){for(let[D,L,V]of p.sources)L!=null&&D.setAttribute("srcset",L),V!=null&&D.setAttribute("sizes",V);p.sizes!=null&&t.setAttribute("sizes",p.sizes),p.srcset!=null&&t.setAttribute("srcset",p.srcset),t.src=t.getAttribute("data-animate-image-src")||p.src}p=null,t.removeAttribute("data-animate-image-src"),t.removeAttribute("data-animate-image-srcset"),c.hidden=!0,o.removeAttribute("data-animate-image-hidden"),g()}}l.addEventListener("click",()=>h?T():b());function w(D){t.complete&&t.naturalWidth?D():t.addEventListener("load",D,{once:!0})}w(m),u?w(()=>b()):y.prefersReducedMotion()&&w(()=>b({auto:!0}));let k=()=>{y.prefersReducedMotion()?w(()=>b({auto:!0})):f&&T()},$=window.matchMedia("(prefers-reduced-motion: reduce)");$.addEventListener("change",k);let N=new MutationObserver(k);return N.observe(document.documentElement,{attributes:!0,attributeFilter:["data-motion-reduced"]}),{cleanup(){$.removeEventListener("change",k),N.disconnect(),h&&T(),t.toggleAttribute("data-animate-image-paused",u),l.remove(),c.remove(),o.parentNode&&(o.parentNode.insertBefore(n,o),o.remove())}}});var ab="data-effect-flipboard-init",pn=" ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,:!?/-",TC=60,LC=30,DC=80,Nt="\xA0",ob=new WeakMap;function NC(){let e=document.createElement("span");e.className="vb-flap-char";for(let i of["top","bottom","flip-top","flip-bottom"]){let s=document.createElement("span");s.className=`vb-flap-${i}`;let n=document.createElement("span");n.className="vb-flap-text",n.textContent=Nt,s.append(n),e.append(s)}let t=document.createElement("span");return t.className="vb-flap-hinge",e.append(t),e}function cb(e,t){for(let i of e.querySelectorAll(".vb-flap-text"))i.textContent=t||Nt}function mn(e,t){return new Promise(i=>{let s=window.setTimeout(()=>{e.timers.delete(s),i(void 0)},t);e.timers.add(s)})}async function MC(e,t,i,s,n){let r=t.querySelector(".vb-flap-top .vb-flap-text"),a=t.querySelector(".vb-flap-bottom .vb-flap-text"),o=t.querySelector(".vb-flap-flip-top"),c=t.querySelector(".vb-flap-flip-bottom");r.textContent=i||Nt,a.textContent=i||Nt,o.querySelector(".vb-flap-text").textContent=i||Nt,c.querySelector(".vb-flap-text").textContent=s||Nt,o.classList.add("vb-flap-flipping"),c.classList.add("vb-flap-flipping"),await mn(e,n/2),r.textContent=s||Nt,await mn(e,n/2),a.textContent=s||Nt,o.classList.remove("vb-flap-flipping"),c.classList.remove("vb-flap-flipping")}async function _C(e,t,i,s,n,r){for(let a=0;a<s;a++){if(e.generation!==n)return;let o=a===s-1,c=pn[a%pn.length],l=o?i:pn[(a+1)%pn.length];await MC(e,t,c,l,r),o||await mn(e,LC)}}function lb(e){e.generation++;for(let t of e.timers)clearTimeout(t);e.timers.clear()}function $C(e,t){let i=bf(e,t.original);return e.classList.add("vb-flap-board"),t.chars.map(()=>i.appendChild(NC()))}function IC(e,t){lb(t);let i=e,s=y.params(i).getTime("flip-ms",TC);i.style.setProperty("--_vb-flip-duration",`${s}ms`);let n=$C(e,t),r=t.generation;if(y.prefersReducedMotion()){n.forEach((a,o)=>cb(a,t.chars[o]));return}Promise.all(n.map(async(a,o)=>{if(await mn(t,o*DC),t.generation!==r)return;let c=4+Math.floor(Math.random()*7);await _C(t,a,t.chars[o],c,r,s)})).then(()=>{t.generation===r&&n.forEach((a,o)=>cb(a,t.chars[o]))})}y.effect("flipboard",e=>{let t=gf(e).trim();if(X(e),e.classList.remove("vb-flap-board"),!t)return{cleanup(){}};let i={original:t,chars:Ee(t.toLocaleUpperCase(e.closest("[lang]")?.getAttribute("lang")||void 0)),generation:0,timers:new Set};return ob.set(e,i),e.setAttribute(ab,""),IC(e,i),{cleanup(){lb(i),ob.delete(e),e.textContent=i.original,e.classList.remove("vb-flap-board"),e.removeAttribute(ab),e.style.removeProperty("--_vb-flip-duration")}}});var ub="vb-stamp-noise",$e="http://www.w3.org/2000/svg";function BC(){if(document.getElementById(ub))return;let e=document.createElementNS($e,"svg");e.setAttribute("aria-hidden","true"),e.setAttribute("focusable","false"),e.setAttribute("width","0"),e.setAttribute("height","0"),e.style.position="absolute",e.style.overflow="hidden";let t=document.createElementNS($e,"filter");t.id=ub;for(let[a,o]of Object.entries({x:"-5%",y:"-5%",width:"110%",height:"110%"}))t.setAttribute(a,o);let i=document.createElementNS($e,"feTurbulence");for(let[a,o]of Object.entries({type:"fractalNoise",baseFrequency:"0.75",numOctaves:"4",stitchTiles:"stitch",result:"noise"}))i.setAttribute(a,o);let s=document.createElementNS($e,"feColorMatrix");for(let[a,o]of Object.entries({type:"saturate",values:"0",in:"noise",result:"greyNoise"}))s.setAttribute(a,o);let n=document.createElementNS($e,"feComposite");for(let[a,o]of Object.entries({in:"SourceGraphic",in2:"greyNoise",operator:"in"}))n.setAttribute(a,o);t.append(i,s,n);let r=document.createElementNS($e,"defs");r.append(t),e.append(r),document.body.prepend(e)}y.effect("stamp",()=>(BC(),{cleanup(){}}));var RC="Rating cleared";function db(e,t){e.dispatchEvent(new CustomEvent("rating:change",{bubbles:!0,detail:{value:t}}))}function sl(e){return e instanceof HTMLInputElement&&e.type==="radio"?e:null}y.effect("rating",e=>{if(e.hasAttribute("data-rating-readonly"))return;let t=document.createElement("span");t.setAttribute("data-rating-live",""),t.setAttribute("role","status"),e.appendChild(t);let i=0;function s(u){t.textContent="",clearTimeout(i),i=window.setTimeout(()=>{t.textContent=u},50)}function n(u){u.checked=!1,db(e,0),s(e.getAttribute("data-label-cleared")||RC)}let r=!1,a=0;function o(u){let d=sl(u.target);!d||!d.checked||(r=!1,clearTimeout(a),a=window.setTimeout(()=>{!r&&d.checked&&n(d)},0))}function c(u){if(u.key!=="Delete"&&u.key!=="Backspace")return;let d=sl(u.target);!d||!d.checked||(u.preventDefault(),n(d))}function l(u){let d=sl(u.target);!d||!d.checked||(r=!0,db(e,Number(d.value)))}return e.addEventListener("click",o),e.addEventListener("keydown",c),e.addEventListener("change",l),{cleanup(){clearTimeout(i),clearTimeout(a),e.removeEventListener("click",o),e.removeEventListener("keydown",c),e.removeEventListener("change",l),t.remove()}}});await B.init();zf();Yg();Qg();tb();Bg();y.observe();await sb();export{B as ThemeManager,J as VBService,K as VBServiceError,C as VBStore,ar as VbI18n,G as announce,aC as diffLines,F as getLocale,Xy as isRTL,oC as renderDiffFragment,wt as usableLocale};
559
558
  //# sourceMappingURL=vanilla-breeze-autoload.js.map