| 14 | `):u+=p[0]}return u+=l.slice(m),u}let i=nn(t,e||location.href);return i=await r(i,e||location.href,0),i}var sn=/url\((["']?)([^"')]+)\1\)/g,er=/@font-face[^{}]*\{[^}]*\}/g;function an(t){if(!t)return[];let e=[],n=t.split(",").map(o=>o.trim()).filter(Boolean);for(let o of n){let s=o.match(/^U\+([0-9A-Fa-f?]+)(?:-([0-9A-Fa-f?]+))?$/);if(!s)continue;let r=s[1],i=s[2],l=c=>{if(!c.includes("?"))return parseInt(c,16);let a=parseInt(c.replace(/\?/g,"0"),16),u=parseInt(c.replace(/\?/g,"F"),16);return[a,u]};if(i){let c=l(r),a=l(i),u=Array.isArray(c)?c[0]:c,m=Array.isArray(a)?a[1]:a;e.push([Math.min(u,m),Math.max(u,m)])}else{let c=l(r);Array.isArray(c)?e.push([c[0],c[1]]):e.push([c,c])}}return e}function cn(t,e){if(!e.length||!t||t.size===0)return!0;for(let n of t)for(let[o,s]of e)if(n>=o&&n<=s)return!0;return!1}function ye(t,e){let n=[];if(!t)return n;for(let o of t.matchAll(sn)){let s=(o[2]||"").trim();if(!(!s||s.startsWith("data:"))){if(!/^https?:/i.test(s))try{s=new URL(s,e||location.href).href}catch{}n.push(s)}}return n}async function ln(t,e,n=""){let o=t;for(let s of t.matchAll(sn)){let r=it(s[0]);if(!r)continue;let i=r;if(!i.startsWith("http")&&!i.startsWith("data:"))try{i=new URL(i,e||location.href).href}catch{}if(!q(i)){if(S.resource?.has(i)){S.font?.add(i),o=o.replace(s[0],`url(${S.resource.get(i)})`);continue}if(!S.font?.has(i))try{let l=await P(i,{as:"dataURL",useProxy:n,silent:!0});if(l.ok&&typeof l.data=="string"){let c=l.data;S.resource?.set(i,c),S.font?.add(i),o=o.replace(s[0],`url(${c})`)}}catch{console.warn("[snapDOM] Failed to fetch font resource:",i)}}}return o}function nr(t){if(!t.length)return null;let e=(l,c)=>t.some(([a,u])=>!(u<l||a>c)),n=e(0,255)||e(305,305),o=e(256,591)||e(7680,7935),s=e(880,1023),r=e(1024,1279);return e(7840,7929)||e(258,259)||e(416,417)||e(431,432)?"vietnamese":r?"cyrillic":s?"greek":o?"latin-ext":n?"latin":null}function on(t={}){let e=new Set((t.families||[]).map(s=>String(s).toLowerCase())),n=new Set((t.domains||[]).map(s=>String(s).toLowerCase())),o=new Set((t.subsets||[]).map(s=>String(s).toLowerCase()));return(s,r)=>{if(e.size&&e.has(s.family.toLowerCase()))return!0;if(n.size)for(let i of s.srcUrls)try{if(n.has(new URL(i).host.toLowerCase()))return!0}catch{}if(o.size){let i=nr(r);if(i&&o.has(i))return!0}return!1}}function or(t){if(!t)return t;let e=/@font-face[^{}]*\{[^}]*\}/gi,n=new Set,o=[];for(let r of t.match(e)||[]){let i=r.match(/font-family:\s*([^;]+);/i)?.[1]||"",l=Vt(i),c=(r.match(/font-weight:\s*([^;]+);/i)?.[1]||"400").trim(),a=(r.match(/font-style:\s*([^;]+);/i)?.[1]||"normal").trim(),u=(r.match(/font-stretch:\s*([^;]+);/i)?.[1]||"100%").trim(),m=(r.match(/unicode-range:\s*([^;]+);/i)?.[1]||"").trim(),p=(r.match(/src\s*:\s*([^;}]+)[;}]/i)?.[1]||"").trim(),h=ye(p,location.href),y=h.length?h.map(d=>String(d).toLowerCase()).sort().join("|"):p.toLowerCase(),f=[String(l||"").toLowerCase(),c,a,u,m.toLowerCase(),y].join("|");n.has(f)||(n.add(f),o.push(r))}if(o.length===0)return t;let s=0;return t.replace(e,()=>o[s++]||"")}function rr(t,e,n,o){let s=Array.from(t||[]).sort().join("|"),r=e?JSON.stringify({families:(e.families||[]).map(c=>String(c).toLowerCase()).sort(),domains:(e.domains||[]).map(c=>String(c).toLowerCase()).sort(),subsets:(e.subsets||[]).map(c=>String(c).toLowerCase()).sort()}):"",i=(n||[]).map(c=>`${(c.family||"").toLowerCase()}::${c.weight||"normal"}::${c.style||"normal"}::${c.src||""}`).sort().join("|");return`fonts-embed-css::req=${s}::ex=${r}::lf=${i}::px=${o||""}`}async function un(t,e,n,o){let s;try{s=t.cssRules||[]}catch{return}let r=(i,l)=>{try{return new URL(i,l||location.href).href}catch{return i}};for(let i of s){if(i.type===CSSRule.IMPORT_RULE&&i.styleSheet){let l=i.href?r(i.href,e):e;if(o.depth>=jt){console.warn(`[snapDOM] CSSOM import depth exceeded (${jt}) at ${l}`);continue}if(l&&o.visitedSheets.has(l)){console.warn(`[snapDOM] Skipping circular CSSOM import: ${l}`);continue}l&&o.visitedSheets.add(l);let c={...o,depth:(o.depth||0)+1};await un(i.styleSheet,l,n,c);continue}if(i.type===CSSRule.FONT_FACE_RULE){let l=(i.style.getPropertyValue("font-family")||"").trim(),c=Vt(l);if(!c||q(c))continue;let a=(i.style.getPropertyValue("font-weight")||"400").trim(),u=(i.style.getPropertyValue("font-style")||"normal").trim(),m=(i.style.getPropertyValue("font-stretch")||"100%").trim(),p=(i.style.getPropertyValue("src")||"").trim(),h=(i.style.getPropertyValue("unicode-range")||"").trim();if(!o.faceMatchesRequired(c,u,a,m))continue;let y=an(h);if(!cn(o.usedCodepoints,y))continue;let f={family:c,weightSpec:a,styleSpec:u,stretchSpec:m,unicodeRange:h,srcRaw:p,srcUrls:ye(p,e||location.href),href:e||location.href};if(o.simpleExcluder&&o.simpleExcluder(f,y))continue;if(/url\(/i.test(p)){let d=await ln(p,e||location.href,o.useProxy);await n(`@font-face{font-family:${c};src:${d};font-style:${u};font-weight:${a};font-stretch:${m};${h?`unicode-range:${h};`:""}}`)}else await n(`@font-face{font-family:${c};src:${p};font-style:${u};font-weight:${a};font-stretch:${m};${h?`unicode-range:${h};`:""}}`)}}}async function Xt({required:t,usedCodepoints:e,exclude:n=void 0,localFonts:o=[],useProxy:s=""}={}){t instanceof Set||(t=new Set),e instanceof Set||(e=new Set);let r=new Map;for(let f of t){let[d,g,b,x]=String(f).split("__");if(!d)continue;let w=r.get(d)||[];w.push({w:parseInt(g,10),s:b,st:parseInt(x,10)}),r.set(d,w)}function i(f,d,g,b){if(!r.has(f))return!1;let x=r.get(f),w=Ko(g),k=Go(d),C=Qo(b),v=w.min!==w.max,E=w.min,$=M=>k.kind==="normal"&&M==="normal"||k.kind!=="normal"&&(M==="italic"||M==="oblique"),N=!1;for(let M of x){let I=v?M.w>=w.min&&M.w<=w.max:M.w===E,_=$(zt(M.s)),B=M.st>=C.min&&M.st<=C.max;if(I&&_&&B){N=!0;break}}if(N)return!0;if(!v)for(let M of x){let I=$(zt(M.s)),_=M.st>=C.min&&M.st<=C.max;if(Math.abs(E-M.w)<=300&&I&&_)return!0}if(!v&&k.kind==="normal"&&x.some(I=>zt(I.s)!=="normal"))for(let I of x){let _=Math.abs(E-I.w)<=300,B=I.st>=C.min&&I.st<=C.max;if(_&&B)return!0}return!1}let l=on(n),c=rr(t,n,o,s);if(S.resource?.has(c))return S.resource.get(c);let a=Zo(t),u=[],m=ge;for(let f of document.querySelectorAll("style")){let d=f.textContent||"";for(let g of d.matchAll(m)){let b=(g[2]||g[4]||"").trim();if(!b||q(b))continue;!!document.querySelector(`link[rel="stylesheet"][href="${b}"]`)||u.push(b)}}u.length&&await Promise.all(u.map(f=>new Promise(d=>{if(document.querySelector(`link[rel="stylesheet"][href="${f}"]`))return d(null);let g=document.createElement("link");g.rel="stylesheet",g.href=f,g.setAttribute("data-snapdom","injected-import"),g.onload=()=>d(g),g.onerror=()=>d(null),document.head.appendChild(g)})));let p="",h=Array.from(document.querySelectorAll('link[rel="stylesheet"]')).filter(f=>!!f.href);for(let f of h)try{if(q(f.href))continue;let d="",g=!1;try{g=new URL(f.href,location.href).origin===location.origin}catch{}if(!g&&!Jo(f.href,a))continue;if(g){let x=Array.from(document.styleSheets).find(w=>w.href===f.href);if(x)try{let w=x.cssRules||[];d=Array.from(w).map(k=>k.cssText).join("")}catch{}}if(!d&&(d=(await P(f.href,{as:"text",useProxy:s})).data,q(f.href)))continue;d=await tr(d,f.href,s);let b="";for(let x of d.match(er)||[]){let w=(x.match(/font-family:\s*([^;]+);/i)?.[1]||"").trim(),k=Vt(w);if(!k||q(k))continue;let C=(x.match(/font-weight:\s*([^;]+);/i)?.[1]||"400").trim(),v=(x.match(/font-style:\s*([^;]+);/i)?.[1]||"normal").trim(),E=(x.match(/font-stretch:\s*([^;]+);/i)?.[1]||"100%").trim(),$=(x.match(/unicode-range:\s*([^;]+);/i)?.[1]||"").trim(),N=(x.match(/src\s*:\s*([^;}]+)[;}]/i)?.[1]||"").trim(),M=ye(N,f.href);if(!i(k,v,C,E))continue;let I=an($);if(!cn(e,I))continue;let _={family:k,weightSpec:C,styleSpec:v,stretchSpec:E,unicodeRange:$,srcRaw:N,srcUrls:M,href:f.href};if(n&&l(_,I))continue;let B=/url\(/i.test(N)?await ln(x,f.href,s):x;b+=B}b.trim()&&(p+=b)}catch{console.warn("[snapDOM] Failed to process stylesheet:",f.href)}let y={requiredIndex:r,usedCodepoints:e,faceMatchesRequired:i,simpleExcluder:n?on(n):null,useProxy:s,visitedSheets:new Set,depth:0};for(let f of document.styleSheets)if(!(f.href&&h.some(d=>d.href===f.href)))try{let d=f.href||location.href;d&&y.visitedSheets.add(d),await un(f,d,async g=>{p+=g},y)}catch{}try{for(let f of document.fonts||[]){if(!f||!f.family||f.status!=="loaded"||!f._snapdomSrc)continue;let d=String(f.family).replace(/^['"]+|['"]+$/g,"");if(q(d)||!r.has(d)||n?.families&&n.families.some(b=>String(b).toLowerCase()===d.toLowerCase()))continue;let g=f._snapdomSrc;if(!String(g).startsWith("data:")){if(S.resource?.has(f._snapdomSrc))g=S.resource.get(f._snapdomSrc),S.font?.add(f._snapdomSrc);else if(!S.font?.has(f._snapdomSrc))try{let b=await P(f._snapdomSrc,{as:"dataURL",useProxy:s,silent:!0});if(b.ok&&typeof b.data=="string")g=b.data,S.resource?.set(f._snapdomSrc,g),S.font?.add(f._snapdomSrc);else continue}catch{console.warn("[snapDOM] Failed to fetch dynamic font src:",f._snapdomSrc);continue}}p+=`@font-face{font-family:'${d}';src:url(${g});font-style:${f.style||"normal"};font-weight:${f.weight||"normal"};}`}}catch{}for(let f of o){if(!f||typeof f!="object")continue;let d=String(f.family||"").replace(/^['"]+|['"]+$/g,"");if(!d||q(d)||!r.has(d)||n?.families&&n.families.some(C=>String(C).toLowerCase()===d.toLowerCase()))continue;let g=f.weight!=null?String(f.weight):"normal",b=f.style!=null?String(f.style):"normal",x=f.stretchPct!=null?`${f.stretchPct}%`:"100%",w=String(f.src||""),k=w;if(!k.startsWith("data:")){if(S.resource?.has(w))k=S.resource.get(w),S.font?.add(w);else if(!S.font?.has(w))try{let C=await P(w,{as:"dataURL",useProxy:s,silent:!0});if(C.ok&&typeof C.data=="string")k=C.data,S.resource?.set(w,k),S.font?.add(w);else continue}catch{console.warn("[snapDOM] Failed to fetch localFonts src:",w);continue}}p+=`@font-face{font-family:'${d}';src:url(${k});font-style:${b};font-weight:${g};font-stretch:${x};}`}return p&&(p=or(p),S.resource?.set(c,p)),p}function Yt(t){let e=new Set;if(!t)return e;let n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,null),o=i=>{let l=Vt(i.fontFamily);if(!l)return;let c=(a,u,m)=>`${l}__${qt(a)}__${zt(u)}__${Yo(m)}`;e.add(c(i.fontWeight,i.fontStyle,i.fontStretch))};o(getComputedStyle(t));let s=getComputedStyle(t,"::before");s&&s.content&&s.content!=="none"&&o(s);let r=getComputedStyle(t,"::after");for(r&&r.content&&r.content!=="none"&&o(r);n.nextNode();){let i=n.currentNode,l=getComputedStyle(i);o(l);let c=getComputedStyle(i,"::before");c&&c.content&&c.content!=="none"&&o(c);let a=getComputedStyle(i,"::after");a&&a.content&&a.content!=="none"&&o(a)}return e}function Kt(t){let e=new Set,n=s=>{if(s)for(let r of s)e.add(r.codePointAt(0))},o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null);for(;o.nextNode();){let s=o.currentNode;if(s.nodeType===Node.TEXT_NODE)n(s.nodeValue||"");else if(s.nodeType===Node.ELEMENT_NODE){let r=s;for(let i of["::before","::after"]){let c=getComputedStyle(r,i)?.getPropertyValue("content");if(!(!c||c==="none"))if(/^"/.test(c)||/^'/.test(c))n(c.slice(1,-1));else{let a=c.match(/\\[0-9A-Fa-f]{1,6}/g);if(a)for(let u of a)try{e.add(parseInt(u.slice(1),16))}catch{}}}}}return e}async function Gt(t,e=2){try{await document.fonts.ready}catch{}let n=Array.from(t||[]).filter(Boolean);if(n.length===0)return;let o=()=>{let s=document.createElement("div");s.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;opacity:0!important;pointer-events:none!important;contain:layout size style;";for(let r of n){let i=document.createElement("span");i.textContent="AaBbGg1234\xC1\xC9\xCD\xD3\xDA\xE7\xF1\u2014\u221E",i.style.fontFamily=`"${r}"`,i.style.fontWeight="700",i.style.fontStyle="italic",i.style.fontSize="32px",i.style.lineHeight="1",i.style.whiteSpace="nowrap",i.style.margin="0",i.style.padding="0",s.appendChild(i)}document.body.appendChild(s),s.offsetWidth,document.body.removeChild(s)};for(let s=0;s<Math.max(1,e);s++)o(),await new Promise(r=>requestAnimationFrame(()=>requestAnimationFrame(r)))}H();function pn(t){return/\bcounter\s*\(|\bcounters\s*\(/.test(t||"")}function sr(t){return(t||"").replace(/"([^"]*)"/g,"$1")}function fn(t,e=!1){let n="",o=Math.max(1,t);for(;o>0;)o--,n=String.fromCharCode(97+o%26)+n,o=Math.floor(o/26);return e?n.toUpperCase():n}function dn(t,e=!0){let n=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]],o=Math.max(1,Math.min(3999,t)),s="";for(let[r,i]of n)for(;o>=r;)s+=i,o-=r;return e?s:s.toLowerCase()}function mn(t,e){switch((e||"decimal").toLowerCase()){case"decimal":return String(Math.max(0,t));case"decimal-leading-zero":return(t<10?"0":"")+String(Math.max(0,t));case"lower-alpha":return fn(t,!1);case"upper-alpha":return fn(t,!0);case"lower-roman":return dn(t,!1);case"upper-roman":return dn(t,!0);default:return String(Math.max(0,t))}}function hn(t){let e=()=>S?.session?.__counterEpoch??0,n=e(),o=new WeakMap,s=t instanceof Document?t.documentElement:t,r=p=>p&&p.tagName==="LI",i=p=>{let h=0,y=p?.parentElement;if(!y)return 0;for(let f of y.children){if(f===p)break;f.tagName==="LI"&&h++}return h},l=p=>{let h=new Map;for(let[y,f]of p)h.set(y,f.slice());return h},c=(p,h,y)=>{let f=l(p),d;try{d=y.style?.counterReset||getComputedStyle(y).counterReset}catch{}if(d&&d!=="none")for(let b of d.split(",")){let x=b.trim().split(/\s+/),w=x[0],k=Number.isFinite(Number(x[1]))?Number(x[1]):0;if(!w)continue;let C=h.get(w);if(C&&C.length){let v=C.slice();v.push(k),f.set(w,v)}else f.set(w,[k])}let g;try{g=y.style?.counterIncrement||getComputedStyle(y).counterIncrement}catch{}if(g&&g!=="none")for(let b of g.split(",")){let x=b.trim().split(/\s+/),w=x[0],k=Number.isFinite(Number(x[1]))?Number(x[1]):1;if(!w)continue;let C=f.get(w)||[];C.length===0&&C.push(0),C[C.length-1]+=k,f.set(w,C)}try{if(getComputedStyle(y).display==="list-item"&&r(y)){let x=y.parentElement,w=1;if(x&&x.tagName==="OL"){let C=x.getAttribute("start"),v=Number.isFinite(Number(C))?Number(C):1,E=i(y),$=y.getAttribute("value");w=Number.isFinite(Number($))?Number($):v+E}else w=1+i(y);let k=f.get("list-item")||[];k.length===0&&k.push(0),k[k.length-1]=w,f.set("list-item",k)}}catch{}return f},a=(p,h,y)=>{let f=c(y,h,p);o.set(p,f);let d=f;for(let g of p.children)d=a(g,f,d);return f},u=new Map;a(s,u,u);function m(){let p=e();if(p!==n){n=p;let h=new Map;a(s,h,h)}}return{get(p,h){m();let y=o.get(p)?.get(h);return y&&y.length?y[y.length-1]:0},getStack(p,h){m();let y=o.get(p)?.get(h);return y?y.slice():[]}}}function gn(t,e,n){if(!t||t==="none")return t;try{let o=/\b(counter|counters)\s*\(([^)]+)\)/g,s=t.replace(o,(r,i,l)=>{let c=String(l).split(",").map(a=>a.trim());if(i==="counter"){let a=c[0]?.replace(/^["']|["']$/g,""),u=(c[1]||"decimal").toLowerCase(),m=n.get(e,a);return mn(m,u)}else{let a=c[0]?.replace(/^["']|["']$/g,""),u=c[1]?.replace(/^["']|["']$/g,"")??"",m=(c[2]||"decimal").toLowerCase(),p=n.getStack(e,a);return p.length?p.map(y=>mn(y,m)).join(u):""}});return sr(s)}catch{return"- "}}at();H();var bt=new WeakMap,yn=300;function ir(t,e){let n=Sn(t);return e?(e.__pseudoPreflightFp!==n&&(e.__pseudoPreflight=bn(t),e.__pseudoPreflightFp=n),!!e.__pseudoPreflight):bn(t)}function we(t){try{return t&&t.cssRules?t.cssRules:null}catch{return null}}function Sn(t){let e=t.querySelectorAll('style,link[rel~="stylesheet"]'),n=`n:${e.length}|`,o=0;for(let r=0;r<e.length;r++){let i=e[r];if(i.tagName==="STYLE"){let l=i.textContent?i.textContent.length:0;n+=`S${l}|`;let c=i.sheet,a=c?we(c):null;a&&(o+=a.length)}else{let l=i.getAttribute("href")||"",c=i.getAttribute("media")||"all";n+=`L${l}|m:${c}|`;let a=i.sheet,u=a?we(a):null;u&&(o+=u.length)}}let s=t.adoptedStyleSheets;return n+=`ass:${Array.isArray(s)?s.length:0}|tr:${o}`,n}function wn(t,e,n){let o=we(t);if(!o)return!1;for(let s=0;s<o.length;s++){if(n.budget<=0)return!1;let r=o[s],i=r&&r.cssText?r.cssText:"";n.budget--;for(let l of e)if(i.includes(l))return!0;if(r&&r.cssRules&&r.cssRules.length)for(let l=0;l<r.cssRules.length&&n.budget>0;l++){let c=r.cssRules[l],a=c&&c.cssText?c.cssText:"";n.budget--;for(let u of e)if(a.includes(u))return!0}if(n.budget<=0)return!1}return!1}function bn(t=document){let e=Sn(t),n=bt.get(t);if(n&&n.fingerprint===e)return n.result;let o=["::before","::after","::first-letter",":before",":after",":first-letter","counter(","counters(","counter-increment","counter-reset"],s=t.querySelectorAll("style");for(let i=0;i<s.length;i++){let l=s[i].textContent||"";for(let c of o)if(l.includes(c))return bt.set(t,{fingerprint:e,result:!0}),!0}let r=t.adoptedStyleSheets;if(Array.isArray(r)&&r.length){let i={budget:yn};try{for(let l of r)if(wn(l,o,i))return bt.set(t,{fingerprint:e,result:!0}),!0}catch{}}{let i=t.querySelectorAll('style,link[rel~="stylesheet"]'),l={budget:yn};for(let c=0;c<i.length&&l.budget>0;c++){let a=i[c],u=null;if(a.tagName,u=a.sheet||null,u&&wn(u,o,l))return bt.set(t,{fingerprint:e,result:!0}),!0}}return t.querySelector('[style*="counter("], [style*="counters("]')?(bt.set(t,{fingerprint:e,result:!0}),!0):(bt.set(t,{fingerprint:e,result:!1}),!1)}var xt=new WeakMap,xn=-1;function ar(t){return(t||"").replace(/"([^"]*)"/g,"$1")}function cr(t){if(!t)return"";let e=[],n=/"([^"]*)"/g,o;for(;o=n.exec(t);)e.push(o[1]);return e.length?e.join(""):ar(t)}function be(t,e){let n=t.parentElement,o=n?xt.get(n):null;return o?{get(s,r){let i=e.get(s,r),l=o.get(r);return typeof l=="number"?Math.max(i,l):i},getStack(s,r){let i=e.getStack(s,r);if(!i.length)return i;let l=o.get(r);if(typeof l=="number"){let c=i.slice();return c[c.length-1]=Math.max(c[c.length-1],l),c}return i}}:e}function xe(t,e,n){let o=new Map;function s(c){let a=[];if(!c||c==="none")return a;for(let u of String(c).split(",")){let m=u.trim().split(/\s+/),p=m[0],h=Number.isFinite(Number(m[1]))?Number(m[1]):void 0;p&&a.push({name:p,num:h})}return a}let r=s(e?.counterReset),i=s(e?.counterIncrement);function l(c){if(o.has(c))return o.get(c).slice();let a=n.getStack(t,c);a=a.length?a.slice():[];let u=r.find(p=>p.name===c);if(u){let p=Number.isFinite(u.num)?u.num:0;a=a.length?[...a,p]:[p]}let m=i.find(p=>p.name===c);if(m){let p=Number.isFinite(m.num)?m.num:1;a.length===0&&(a=[0]),a[a.length-1]+=p}return o.set(c,a.slice()),a}return{get(c,a){let u=l(a);return u.length?u[u.length-1]:0},getStack(c,a){return l(a)},__incs:i}}function lr(t,e,n){let o;try{o=getComputedStyle(t,e)}catch{}let s=o?.content;if(!s||s==="none"||s==="normal")return{text:"",incs:[]};let r=be(t,n),i=xe(t,o,r),l=pn(s)?gn(s,t,i):s;return{text:cr(l),incs:i.__incs||[]}}async function Se(t,e,n,o){if(!(t instanceof Element)||!(e instanceof Element))return;let s=t.ownerDocument||document;if(!ir(s,n))return;let r=S?.session?.__counterEpoch??0;if(xn!==r&&(xt=new WeakMap,n&&(n.__counterCtx=null),xn=r),!n.__counterCtx)try{n.__counterCtx=hn(t.ownerDocument||document)}catch{}let i=n.__counterCtx;for(let a of["::before","::after","::first-letter"])try{let u=lt(t,a);if(!u||u.content==="none"&&u.backgroundImage==="none"&&u.backgroundColor==="transparent"&&(u.borderStyle==="none"||parseFloat(u.borderWidth)===0)&&(!u.transform||u.transform==="none")&&u.display==="inline")continue;if(a==="::first-letter"){let R=getComputedStyle(t);if(!(u.color!==R.color||u.fontSize!==R.fontSize||u.fontWeight!==R.fontWeight))continue;let W=Array.from(e.childNodes).find(ee=>ee.nodeType===Node.TEXT_NODE&&ee.textContent?.trim().length>0);if(!W)continue;let U=W.textContent,dt=U.match(/^([^\p{L}\p{N}\s]*[\p{L}\p{N}](?:['’])?)/u)?.[0],Zt=U.slice(dt?.length||0);if(!dt||/[\uD800-\uDFFF]/.test(dt))continue;let mt=document.createElement("span");mt.textContent=dt,mt.dataset.snapdomPseudo="::first-letter";let te=Ut(u),Rt=yt(te,"span");n.styleMap.set(mt,Rt);let Tt=document.createTextNode(Zt);e.replaceChild(Tt,W),e.insertBefore(mt,Tt);continue}let p=u.content??"",h=p===""||p==="none"||p==="normal",{text:y,incs:f}=lr(t,a,i),d=u.backgroundImage,g=u.backgroundColor,b=u.fontFamily,x=parseInt(u.fontSize)||32,w=parseInt(u.fontWeight)||!1,k=u.color||"#000",C=u.borderStyle,v=parseFloat(u.borderWidth),E=u.transform,$=q(b),N=!h&&y!=="",M=d&&d!=="none",I=g&&g!=="transparent"&&g!=="rgba(0, 0, 0, 0)",_=C&&C!=="none"&&v>0,B=E&&E!=="none";if(!(N||M||I||_||B)){if(f&&f.length&&t.parentElement){let R=xt.get(t.parentElement)||new Map;for(let{name:T}of f){if(!T)continue;let W=be(t,i),st=xe(t,getComputedStyle(t,a),W).get(t,T);R.set(T,st)}xt.set(t.parentElement,R)}continue}let F=document.createElement("span");F.dataset.snapdomPseudo=a,F.style.pointerEvents="none";let ot=Ut(u),rt=yt(ot,"span");if(n.styleMap.set(F,rt),$&&y&&y.length===1){let{dataUrl:R,width:T,height:W}=await rn(y,b,w,x,k),U=document.createElement("img");U.src=R,U.style=`height:${x}px;width:${T/W*x}px;object-fit:contain;`,F.appendChild(U),e.dataset.snapdomHasIcon="true"}else if(y&&y.startsWith("url(")){let R=it(y);if(R?.trim())try{let T=document.createElement("img"),W=await P(J(R),{as:"dataURL",useProxy:o.useProxy});T.src=W.data,T.style=`width:${x}px;height:auto;object-fit:contain;`,F.appendChild(T)}catch(T){console.error(`[snapdom] Error in pseudo ${a} for`,t,T)}}else!$&&N&&(F.textContent=y);F.style.backgroundImage="none","maskImage"in F.style&&(F.style.maskImage="none"),"webkitMaskImage"in F.style&&(F.style.webkitMaskImage="none");try{F.style.backgroundRepeat=u.backgroundRepeat,F.style.backgroundSize=u.backgroundSize,u.backgroundPositionX&&u.backgroundPositionY?(F.style.backgroundPositionX=u.backgroundPositionX,F.style.backgroundPositionY=u.backgroundPositionY):F.style.backgroundPosition=u.backgroundPosition,F.style.backgroundOrigin=u.backgroundOrigin,F.style.backgroundClip=u.backgroundClip,F.style.backgroundAttachment=u.backgroundAttachment,F.style.backgroundBlendMode=u.backgroundBlendMode}catch{}if(M)try{let R=vt(d),T=await Promise.all(R.map(ct));F.style.backgroundImage=T.join(", ")}catch(R){console.warn(`[snapdom] Failed to inline background-image for ${a}`,R)}I&&(F.style.backgroundColor=g);let ft=F.childNodes.length>0||F.textContent?.trim()!==""||M||I||_||B;if(f&&f.length&&t.parentElement){let R=xt.get(t.parentElement)||new Map,T=be(t,i),W=xe(t,getComputedStyle(t,a),T);for(let{name:U}of f){if(!U)continue;let st=W.get(t,U);R.set(U,st)}xt.set(t.parentElement,R)}if(!ft)continue;a==="::before"?e.insertBefore(F,e.firstChild):e.appendChild(F)}catch(u){console.warn(`[snapdom] Failed to capture ${a} for`,t,u)}let l=Array.from(t.children),c=Array.from(e.children).filter(a=>!a.dataset.snapdomPseudo);for(let a=0;a<Math.min(l.length,c.length);a++)await Se(l[a],c[a],n,o)}function Cn(t,e){if(!t||!(t instanceof Element))return;let n=t.ownerDocument||document,o=e||n,s=t instanceof SVGSVGElement?[t]:Array.from(t.querySelectorAll("svg"));if(s.length===0)return;let r=/url\(\s*#([^)]+)\)/g,i=["fill","stroke","filter","clip-path","mask","marker","marker-start","marker-mid","marker-end"],l=w=>window.CSS&&CSS.escape?CSS.escape(w):w.replace(/[^a-zA-Z0-9_-]/g,"\\$&"),c="http://www.w3.org/1999/xlink",a=w=>{if(!w||!w.getAttribute)return null;let k=w.getAttribute("href")||w.getAttribute("xlink:href")||(typeof w.getAttributeNS=="function"?w.getAttributeNS(c,"href"):null);if(k)return k;let C=w.attributes;if(!C)return null;for(let v=0;v<C.length;v++){let E=C[v];if(!E||!E.name)continue;if(E.name==="href")return E.value;let $=E.name.indexOf(":");if($!==-1&&E.name.slice($+1)==="href")return E.value}return null},u=new Set(Array.from(t.querySelectorAll("[id]")).map(w=>w.id)),m=new Set,p=!1,h=(w,k=null)=>{if(!w)return;r.lastIndex=0;let C;for(;C=r.exec(w);){p=!0;let v=(C[1]||"").trim();v&&(u.has(v)||(m.add(v),k&&!k.has(v)&&k.add(v)))}},y=w=>{let k=w.querySelectorAll("use");for(let E of k){let $=a(E);if(!$||!$.startsWith("#"))continue;p=!0;let N=$.slice(1).trim();N&&!u.has(N)&&m.add(N)}let v=w.querySelectorAll('*[style*="url("],*[fill^="url("], *[stroke^="url("],*[filter^="url("],*[clip-path^="url("],*[mask^="url("],*[marker^="url("],*[marker-start^="url("],*[marker-mid^="url("],*[marker-end^="url("]');for(let E of v){h(E.getAttribute("style")||"");for(let $ of i)h(E.getAttribute($))}};for(let w of s)y(w);if(!p)return;let f=t.querySelector("svg.inline-defs-container");f||(f=n.createElementNS("http://www.w3.org/2000/svg","svg"),f.classList.add("inline-defs-container"),f.setAttribute("aria-hidden","true"),f.setAttribute("style","position:absolute;width:0;height:0;overflow:hidden"),t.insertBefore(f,t.firstChild||null));let d=f.querySelector("defs")||null,g=w=>{if(!w||u.has(w))return null;let k=l(w),C=v=>{let E=o.querySelector(v);return E&&!t.contains(E)?E:null};return C(`svg defs > *#${k}`)||C(`svg > symbol#${k}`)||C(`*#${k}`)};if(!m.size)return;let b=new Set(m),x=new Set;for(;b.size;){let w=b.values().next().value;if(b.delete(w),!w||u.has(w)||x.has(w))continue;let k=g(w);if(!k){x.add(w);continue}d||(d=n.createElementNS("http://www.w3.org/2000/svg","defs"),f.appendChild(d));let C=k.cloneNode(!0);C.id||C.setAttribute("id",w),d.appendChild(C),x.add(w),u.add(w);let v=[C,...C.querySelectorAll("*")];for(let E of v){let $=a(E);if($&&$.startsWith("#")){let M=$.slice(1).trim();M&&!u.has(M)&&!x.has(M)&&b.add(M)}let N=E.getAttribute?.("style")||"";N&&h(N,b);for(let M of i){let I=E.getAttribute?.(M);I&&h(I,b)}}}}H();function An(t,e){if(!t||!e)return;let n=t.scrollTop||0;if(!n)return;getComputedStyle(e).position==="static"&&(e.style.position="relative");let o=t.getBoundingClientRect(),s=t.clientHeight,r="data-snap-ph",i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;i.nextNode();){let l=i.currentNode,c=getComputedStyle(l),a=c.position;if(a!=="sticky"&&a!=="-webkit-sticky")continue;let u=kn(c.top),m=kn(c.bottom);if(u==null&&m==null)continue;let p=ur(l,t),h=fr(e,p,r);if(!h)continue;let y=l.getBoundingClientRect(),f=y.width,d=y.height,g=y.left-o.left;if(!(f>0&&d>0)||!Number.isFinite(g))continue;let b=u!=null?u+n:n+(s-d-m);if(!Number.isFinite(b))continue;let x=Number.parseInt(c.zIndex,10),w=Number.isFinite(x),k=w?Math.max(x,1)+1:2,C=w?x-1:0,v=h.cloneNode(!1);v.setAttribute(r,"1"),v.style.position="sticky",v.style.left=`${g}px`,v.style.top=`${b}px`,v.style.width=`${f}px`,v.style.height=`${d}px`,v.style.visibility="hidden",v.style.zIndex=String(C),v.style.overflow="hidden",v.style.background="transparent",v.style.boxShadow="none",v.style.filter="none",h.parentElement?.insertBefore(v,h),h.style.position="absolute",h.style.left=`${g}px`,h.style.top=`${b}px`,h.style.bottom="auto",h.style.zIndex=String(k),h.style.pointerEvents="none"}}function kn(t){if(!t||t==="auto")return null;let e=Number.parseFloat(t);return Number.isFinite(e)?e:null}function ur(t,e){let n=[];for(let o=t;o&&o!==e;){let s=o.parentElement;if(!s)break;n.push(Array.prototype.indexOf.call(s.children,o)),o=s}return n.reverse()}function fr(t,e,n){let o=t;for(let s=0;s<e.length;s++)if(o=dr(o,n)[e[s]],!o)return null;return o instanceof HTMLElement?o:null}function dr(t,e){let n=[],o=t.children;for(let s=0;s<o.length;s++){let r=o[s];r.hasAttribute(e)||n.push(r)}return n}function vn(t){let e=getComputedStyle(t),n=e.outlineStyle,o=e.outlineWidth,s=e.borderStyle,r=e.borderWidth,i=n!=="none"&&parseFloat(o)>0,l=s==="none"||parseFloat(r)===0;i&&l&&(t.style.border=`${o} solid transparent`)}async function Mn(t,e={}){let n={styleMap:S.session.styleMap,styleCache:S.session.styleCache,nodeMap:S.session.nodeMap},o,s="",r="";vn(t);try{Cn(t)}catch(c){console.warn("inlineExternal defs or symbol failed:",c)}try{o=await $t(t,n,e,t)}catch(c){throw console.warn("deepClone failed:",c),c}try{await Se(t,o,n,e)}catch(c){console.warn("inlinePseudoElements failed:",c)}await Je(o);try{let c=o.querySelectorAll("style[data-sd]");for(let a of c)r+=a.textContent||"",a.remove()}catch{}let i=fe(n.styleMap);s=Array.from(i.entries()).map(([c,a])=>`.${a}{${c}}`).join(""),s=r+s;for(let[c,a]of n.styleMap.entries()){if(c.tagName==="STYLE")continue;if(c.getRootNode&&c.getRootNode()instanceof ShadowRoot){c.setAttribute("style",a.replace(/;/g,"; "));continue}let u=i.get(a);u&&c.classList.add(u);let m=c.style?.backgroundImage,p=c.dataset?.snapdomHasIcon;m&&m!=="none"&&(c.style.backgroundImage=m),p&&(c.style.verticalAlign="middle",c.style.display="inline")}for(let[c,a]of n.nodeMap.entries()){let u=a.scrollLeft,m=a.scrollTop;if((u||m)&&c instanceof HTMLElement){c.style.overflow="hidden",c.style.scrollbarWidth="none",c.style.msOverflowStyle="none";let h=document.createElement("div");for(h.style.transform=`translate(${-u}px, ${-m}px)`,h.style.willChange="transform",h.style.display="inline-block",h.style.width="100%";c.firstChild;)h.appendChild(c.firstChild);c.appendChild(h)}}let l=o instanceof HTMLElement&&o.firstElementChild instanceof HTMLElement?o.firstElementChild:o;if(An(t,l),t===n.nodeMap.get(o)){let c=n.styleCache.get(t)||window.getComputedStyle(t);n.styleCache.set(t,c);let a=se(c.transform);o.style.margin="0",o.style.top="auto",o.style.left="auto",o.style.right="auto",o.style.bottom="auto",o.style.animation="none",o.style.transition="none",o.style.willChange="auto",o.style.float="none",o.style.clear="none",o.style.transform=a||""}for(let[c,a]of n.nodeMap.entries())a.tagName==="PRE"&&(c.style.marginTop="0",c.style.marginBlockStart="0");return{clone:o,classCSS:s,styleCache:n.styleCache}}at();function mr(t){let e=parseInt(t.dataset?.snapdomWidth||"",10)||0,n=parseInt(t.dataset?.snapdomHeight||"",10)||0,o=parseInt(t.getAttribute("width")||"",10)||0,s=parseInt(t.getAttribute("height")||"",10)||0,r=parseFloat(t.style?.width||"")||0,i=parseFloat(t.style?.height||"")||0,l=e||r||o||t.width||t.naturalWidth||100,c=n||i||s||t.height||t.naturalHeight||100;return{width:l,height:c}}async function En(t,e={}){let n=Array.from(t.querySelectorAll("img")),o=async s=>{if(!s.getAttribute("src")){let u=s.currentSrc||s.src||"";u&&s.setAttribute("src",u)}s.removeAttribute("srcset"),s.removeAttribute("sizes");let r=s.src||"";if(!r)return;let i=await P(r,{as:"dataURL",useProxy:e.useProxy});if(i.ok&&typeof i.data=="string"&&i.data.startsWith("data:")){s.src=i.data,s.width||(s.width=s.naturalWidth||100),s.height||(s.height=s.naturalHeight||100);return}let{width:l,height:c}=mr(s),{fallbackURL:a}=e||{};if(a)try{let u=typeof a=="function"?await a({width:l,height:c,src:r,element:s}):a;if(u){let m=await P(u,{as:"dataURL",useProxy:e.useProxy});s.src=m.data,s.width||(s.width=l),s.height||(s.height=c);return}}catch{}if(e.placeholders!==!1){let u=document.createElement("div");u.style.cssText=[`width:${l}px`,`height:${c}px`,"background:#ccc","display:inline-block","text-align:center",`line-height:${c}px`,"color:#666","font-size:12px","overflow:hidden"].join(";"),u.textContent="img",s.replaceWith(u)}else{let u=document.createElement("div");u.style.cssText=`display:inline-block;width:${l}px;height:${c}px;visibility:hidden;`,s.replaceWith(u)}};for(let s=0;s<n.length;s+=4){let r=n.slice(s,s+4).map(o);await Promise.allSettled(r)}}Y();async function Qt(t,e,n,o={}){let s=[[t,e]],r=["background-image","mask","mask-image","-webkit-mask","-webkit-mask-image","mask-source","mask-box-image-source","mask-border-source","-webkit-mask-box-image-source","border-image","border-image-source"],i=["mask-position","mask-size","mask-repeat","-webkit-mask-position","-webkit-mask-size","-webkit-mask-repeat","mask-origin","mask-clip","-webkit-mask-origin","-webkit-mask-clip","-webkit-mask-position-x","-webkit-mask-position-y"],l=["background-position","background-position-x","background-position-y","background-size","background-repeat","background-origin","background-clip","background-attachment","background-blend-mode"],c=["border-image-slice","border-image-width","border-image-outset","border-image-repeat"];for(;s.length;){let[a,u]=s.shift(),m=n.get(a)||lt(a);n.has(a)||n.set(a,m);let p=(()=>{let f=m.getPropertyValue("border-image"),d=m.getPropertyValue("border-image-source");return f&&f!=="none"||d&&d!=="none"})();for(let f of l){let d=m.getPropertyValue(f);d&&u.style.setProperty(f,d)}for(let f of r){let d=m.getPropertyValue(f);if(!d||d==="none")continue;let g=vt(d),b=await Promise.all(g.map(x=>ct(x,o)));b.some(x=>x&&x!=="none"&&!/^url\(undefined/.test(x))&&u.style.setProperty(f,b.join(", "))}for(let f of i){let d=m.getPropertyValue(f);!d||d==="initial"||u.style.setProperty(f,d)}if(p)for(let f of c){let d=m.getPropertyValue(f);!d||d==="initial"||u.style.setProperty(f,d)}let h=Array.from(a.children),y=Array.from(u.children).filter(f=>!(f.dataset&&f.dataset.snapdomPseudo));for(let f=0;f<Math.min(h.length,y.length);f++)s.push([h[f],y[f]])}}Y();H();function Fn(t){if(!t)return()=>{};let e=pr(t);if(e<=0)return()=>{};if(!yr(t))return()=>{};let n=getComputedStyle(t),o=Math.round(hr(n)*e+gr(n)),s=t.textContent??"",r=s;if(t.scrollHeight<=o+.5)return()=>{};let i=0,l=s.length,c=-1;for(;i<=l;){let a=i+l>>1;t.textContent=s.slice(0,a)+"\u2026",t.scrollHeight<=o+.5?(c=a,i=a+1):l=a-1}return t.textContent=(c>=0?s.slice(0,c):"")+"\u2026",()=>{t.textContent=r}}function pr(t){let e=getComputedStyle(t),n=e.getPropertyValue("-webkit-line-clamp")||e.getPropertyValue("line-clamp");n=(n||"").trim();let o=parseInt(n,10);return Number.isFinite(o)&&o>0?o:0}function hr(t){let e=(t.lineHeight||"").trim(),n=parseFloat(t.fontSize)||16;return!e||e==="normal"?Math.round(n*1.2):e.endsWith("px")?parseFloat(e):/^\d+(\.\d+)?$/.test(e)?Math.round(parseFloat(e)*n):e.endsWith("%")?Math.round(parseFloat(e)/100*n):Math.round(n*1.2)}function gr(t){return(parseFloat(t.paddingTop)||0)+(parseFloat(t.paddingBottom)||0)}function yr(t){return t.childElementCount>0?!1:Array.from(t.childNodes).some(e=>e.nodeType===Node.TEXT_NODE)}var It=[];function $n(t){if(!t)return null;if(Array.isArray(t)){let[e,n]=t;return typeof e=="function"?e(n):e}if(typeof t=="object"&&"plugin"in t){let{plugin:e,options:n}=t;return typeof e=="function"?e(n):e}return typeof t=="function"?t():t}function In(...t){let e=t.flat();for(let n of e){let o=$n(n);o&&(It.some(s=>s&&s.name&&o.name&&s.name===o.name)||It.push(o))}}function Ln(t){return(t&&Array.isArray(t.plugins)?t.plugins:It)||It}async function j(t,e,n){let o=n,s=Ln(e);for(let r of s){let i=r&&typeof r[t]=="function"?r[t]:null;if(!i)continue;let l=await i(e,o);typeof l<"u"&&(o=l)}return o}async function Nn(t,e,n){let o=[],s=Ln(e);for(let r of s){let i=r&&typeof r[t]=="function"?r[t]:null;if(!i)continue;let l=await i(e,n);typeof l<"u"&&o.push(l)}return o}function wr(t){let e=[];if(Array.isArray(t))for(let n of t){let o=$n(n);if(!o||!o.name)continue;let s=e.findIndex(r=>r&&r.name===o.name);s>=0&&e.splice(s,1),e.push(o)}for(let n of It)n&&n.name&&!e.some(o=>o.name===n.name)&&e.push(n);return Object.freeze(e)}function Rn(t,e,n=!1){return!t||t.plugins&&!n||(t.plugins=wr(e)),t}function Tn(t,e){if(!t||!e||!e.style)return;let n=getComputedStyle(t);try{e.style.boxShadow="none"}catch{}try{e.style.textShadow="none"}catch{}try{e.style.outline="none"}catch{}let s=(n.filter||"").replace(/\bblur\([^()]*\)\s*/gi,"").replace(/\bdrop-shadow\([^()]*\)\s*/gi,"").trim().replace(/\s+/g," ");try{e.style.filter=s.length?s:"none"}catch{}}function br(t){let e=document.createTreeWalker(t,NodeFilter.SHOW_COMMENT),n=[];for(;e.nextNode();)n.push(e.currentNode);for(let o of n)o.remove()}function xr(t,e={}){let{stripFrameworkDirectives:n=!0}=e,o=new Set(["xml","xlink"]),s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;s.nextNode();){let r=s.currentNode;for(let i of Array.from(r.attributes)){let l=i.name;if(l.includes("@")){r.removeAttribute(l);continue}if(l.includes(":")){let c=l.split(":",1)[0];if(!o.has(c)){r.removeAttribute(l);continue}}if(n&&(l.startsWith("x-")||l.startsWith("v-")||l.startsWith(":")||l.startsWith("on:")||l.startsWith("bind:")||l.startsWith("let:")||l.startsWith("class:"))){r.removeAttribute(l);continue}}}}function Pn(t,e={}){t&&(xr(t,e),br(t))}function Sr(t){try{let e=t.getAttribute?.("style")||"";return/\b(height|width|block-size|inline-size)\s*:/.test(e)}catch{return!1}}function Cr(t){return t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof HTMLIFrameElement||t instanceof SVGElement||t instanceof HTMLObjectElement||t instanceof HTMLEmbedElement}function kr(t,e){if(!(t instanceof Element)||Sr(t)||Cr(t))return!1;let n=e.position;if(n==="absolute"||n==="fixed"||n==="sticky")return!1;let o=e.display||"";return!(o.includes("flex")||o.includes("grid")||o.startsWith("table")||e.transform&&e.transform!=="none")}function _n(t,e,n=new Map){function o(s,r){if(!(s instanceof Element)||!(r instanceof Element))return;let i=s.childElementCount>r.childElementCount,l=n.get(s)||getComputedStyle(s);if(n.has(s)||n.set(s,l),i&&kr(s,l)){r.style.height||(r.style.height="auto"),r.style.width||(r.style.width="auto"),r.style.removeProperty("block-size"),r.style.removeProperty("inline-size"),r.style.minHeight||(r.style.minHeight="0"),r.style.minWidth||(r.style.minWidth="0"),r.style.maxHeight||(r.style.maxHeight="none"),r.style.maxWidth||(r.style.maxWidth="none");let u=l.overflowY||l.overflowBlock||"visible",m=l.overflowX||l.overflowInline||"visible";(u!=="visible"||m!=="visible")&&(r.style.overflow="visible")}let c=Array.from(s.children),a=Array.from(r.children);for(let u=0;u<Math.min(c.length,a.length);u++)o(c[u],a[u])}o(t,e)}function Ar(t){let e=getComputedStyle(t);return!(e.display==="none"||e.position==="absolute"||e.position==="fixed"||e.position==="sticky"||(e.cssFloat||e.float||"none")!=="none"||e.transform&&e.transform!=="none")}function vr(t,e){if(!(t instanceof Element))return!1;if(t.getAttribute("data-capture")==="exclude"&&e?.excludeMode==="remove")return!0;if(Array.isArray(e?.exclude))for(let n of e.exclude)try{if(t.matches(n))return e.excludeMode==="remove"}catch{}return!1}function Wn(t,e){let n=getComputedStyle(t),o=t.getBoundingClientRect(),s=1/0,r=-1/0,i=!1,l=Array.from(t.children);for(let h of l){if(vr(h,e)||!Ar(h))continue;let y=h.getBoundingClientRect(),f=y.top-o.top,d=y.bottom-o.top;d<=f||(f<s&&(s=f),d>r&&(r=d),i=!0)}let c=i?Math.max(0,r-s):0,a=parseFloat(n.borderTopWidth)||0,u=parseFloat(n.borderBottomWidth)||0,m=parseFloat(n.paddingTop)||0,p=parseFloat(n.paddingBottom)||0;return a+u+m+p+c}var A=(t,e=3)=>Number.isFinite(t)?Math.round(t*10**e)/10**e:t;function On(t){let e=t.boxShadow||"";if(!e||e==="none")return{top:0,right:0,bottom:0,left:0};let n=e.split(/\),(?=(?:[^()]*\([^()]*\))*[^()]*$)/).map(l=>l.trim()),o=0,s=0,r=0,i=0;for(let l of n){let c=l.match(/-?\d+(\.\d+)?px/g)?.map(f=>parseFloat(f))||[];if(c.length<2)continue;let[a,u,m=0,p=0]=c,h=Math.abs(a)+m+p,y=Math.abs(u)+m+p;s=Math.max(s,h+Math.max(a,0)),i=Math.max(i,h+Math.max(-a,0)),r=Math.max(r,y+Math.max(u,0)),o=Math.max(o,y+Math.max(-u,0))}return{top:Math.ceil(o),right:Math.ceil(s),bottom:Math.ceil(r),left:Math.ceil(i)}}function Un(t){let e=(t.filter||"").match(/blur\(\s*([0-9.]+)px\s*\)/),n=e?Math.ceil(parseFloat(e[1])||0):0;return{top:n,right:n,bottom:n,left:n}}function Bn(t){if((t.outlineStyle||"none")==="none")return{top:0,right:0,bottom:0,left:0};let e=Math.ceil(parseFloat(t.outlineWidth||"0")||0);return{top:e,right:e,bottom:e,left:e}}function Dn(t){let e=`${t.filter||""} ${t.webkitFilter||""}`.trim();if(!e||e==="none")return{bleed:{top:0,right:0,bottom:0,left:0},has:!1};let n=e.match(/drop-shadow\((?:[^()]|\([^()]*\))*\)/gi)||[],o=0,s=0,r=0,i=0,l=!1;for(let c of n){l=!0;let a=c.match(/-?\d+(?:\.\d+)?px/gi)?.map(f=>parseFloat(f))||[],[u=0,m=0,p=0]=a,h=Math.abs(u)+p,y=Math.abs(m)+p;s=Math.max(s,h+Math.max(u,0)),i=Math.max(i,h+Math.max(-u,0)),r=Math.max(r,y+Math.max(m,0)),o=Math.max(o,y+Math.max(-m,0))}return{bleed:{top:A(o),right:A(s),bottom:A(r),left:A(i)},has:l}}function Hn(t,e){if(!t||!e||!e.style)return null;let n=getComputedStyle(t);try{e.style.transformOrigin="0 0"}catch{}try{"translate"in e.style&&(e.style.translate="none"),"rotate"in e.style&&(e.style.rotate="none")}catch{}let o=n.transform||"none";if(!o||o==="none")try{let r=Xn(t);if(r.a===1&&r.b===0&&r.c===0&&r.d===1)return e.style.transform="none",{a:1,b:0,c:0,d:1}}catch{}let s=o.match(/^matrix\(\s*([^)]+)\)$/i);if(s){let r=s[1].split(",").map(i=>parseFloat(i.trim()));if(r.length===6&&r.every(Number.isFinite)){let[i,l,c,a]=r,u=Math.sqrt(i*i+l*l)||0,m=0,p=0,h=0,y=0,f=0,d=0;u>0&&(m=i/u,p=l/u,h=m*c+p*a,y=c-m*h,f=a-p*h,d=Math.sqrt(y*y+f*f)||0,d>0?h=h/d:h=0);let g=u,b=0,x=h*d,w=d;try{e.style.transform=`matrix(${g}, ${b}, ${x}, ${w}, 0, 0)`}catch{}return{a:g,b,c:x,d:w}}}try{let r=String(o).trim();return e.style.transform=r+" translate(0px, 0px) rotate(0deg)",null}catch{return null}}function ke(t,e,n,o,s){let r=n.a,i=n.b,l=n.c,c=n.d,a=n.e||0,u=n.f||0;function m(g,b){let x=g-o,w=b-s,k=r*x+l*w,C=i*x+c*w;return k+=o+a,C+=s+u,[k,C]}let p=[m(0,0),m(t,0),m(0,e),m(t,e)],h=1/0,y=1/0,f=-1/0,d=-1/0;for(let[g,b]of p)g<h&&(h=g),b<y&&(y=b),g>f&&(f=g),b>d&&(d=b);return{minX:h,minY:y,maxX:f,maxY:d,width:f-h,height:d-y}}function qn(t,e,n){let o=(t.transformOrigin||"0 0").trim().split(/\s+/),[s,r]=[o[0]||"0",o[1]||"0"],i=(l,c)=>{let a=l.toLowerCase();return a==="left"||a==="top"?0:a==="center"?c/2:a==="right"||a==="bottom"?c:a.endsWith("px")?parseFloat(a)||0:a.endsWith("%")?(parseFloat(a)||0)*c/100:/^-?\d+(\.\d+)?$/.test(a)&&parseFloat(a)||0};return{ox:i(s,e),oy:i(r,n)}}function zn(t){let e={rotate:"0deg",scale:null,translate:null},n=typeof t.computedStyleMap=="function"?t.computedStyleMap():null;if(n){let s=c=>{try{return typeof n.has=="function"&&!n.has(c)||typeof n.get!="function"?null:n.get(c)}catch{return null}},r=s("rotate");if(r)if(r.angle){let c=r.angle;e.rotate=c.unit==="rad"?c.value*180/Math.PI+"deg":c.value+c.unit}else r.unit?e.rotate=r.unit==="rad"?r.value*180/Math.PI+"deg":r.value+r.unit:e.rotate=String(r);else{let c=getComputedStyle(t);e.rotate=c.rotate&&c.rotate!=="none"?c.rotate:"0deg"}let i=s("scale");if(i){let c="x"in i&&i.x?.value!=null?i.x.value:Array.isArray(i)?i[0]?.value:Number(i)||1,a="y"in i&&i.y?.value!=null?i.y.value:Array.isArray(i)?i[1]?.value:c;e.scale=`${c} ${a}`}else{let c=getComputedStyle(t);e.scale=c.scale&&c.scale!=="none"?c.scale:null}let l=s("translate");if(l){let c="x"in l&&"value"in l.x?l.x.value:Array.isArray(l)?l[0]?.value:0,a="y"in l&&"value"in l.y?l.y.value:Array.isArray(l)?l[1]?.value:0,u="x"in l&&l.x?.unit?l.x.unit:"px",m="y"in l&&l.y?.unit?l.y.unit:"px";e.translate=`${c}${u} ${a}${m}`}else{let c=getComputedStyle(t);e.translate=c.translate&&c.translate!=="none"?c.translate:null}return e}let o=getComputedStyle(t);return e.rotate=o.rotate&&o.rotate!=="none"?o.rotate:"0deg",e.scale=o.scale&&o.scale!=="none"?o.scale:null,e.translate=o.translate&&o.translate!=="none"?o.translate:null,e}var Ce=null;function Mr(){if(Ce)return Ce;let t=document.createElement("div");return t.id="snapdom-measure-slot",t.setAttribute("aria-hidden","true"),Object.assign(t.style,{position:"absolute",left:"-99999px",top:"0px",width:"0px",height:"0px",overflow:"hidden",opacity:"0",pointerEvents:"none",contain:"size layout style"}),document.documentElement.appendChild(t),Ce=t,t}function jn(t){let e=Mr(),n=document.createElement("div");n.style.transformOrigin="0 0",t.baseTransform&&(n.style.transform=t.baseTransform),t.rotate&&(n.style.rotate=t.rotate),t.scale&&(n.style.scale=t.scale),t.translate&&(n.style.translate=t.translate),e.appendChild(n);let o=Xn(n);return e.removeChild(n),o}function Vn(t){let e=getComputedStyle(t),n=e.transform||"none";if(n!=="none"&&!/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(n))return!0;let s=e.rotate&&e.rotate!=="none"&&e.rotate!=="0deg",r=e.scale&&e.scale!=="none"&&e.scale!=="1",i=e.translate&&e.translate!=="none"&&e.translate!=="0px 0px";return!!(s||r||i)}function Xn(t){let e=getComputedStyle(t).transform;if(!e||e==="none")return new DOMMatrix;try{return new DOMMatrix(e)}catch{return new WebKitCSSMatrix(e)}}async function Ae(t,e){if(!t)throw new Error("Element cannot be null or undefined");_t(e.cache);let n=e.fast,o=e.outerTransforms!==!1,s=!!e.outerShadows,r={element:t,options:e,plugins:e.plugins},i,l,c,a="",u="",m,p,h=null;await j("beforeSnap",r),await j("beforeClone",r);let y=Fn(r.element);try{({clone:i,classCSS:l,styleCache:c}=await Mn(r.element,r.options)),!o&&i&&(h=Hn(r.element,i)),!s&&i&&Tn(r.element,i)}finally{y()}if(r={clone:i,classCSS:l,styleCache:c,...r},await j("afterClone",r),Pn(r.clone),r.options?.excludeMode==="remove")try{_n(r.element,r.clone,r.styleCache)}catch(b){console.warn("[snapdom] shrink pass failed:",b)}try{await en(r.clone,r.element)}catch{}await new Promise(b=>{X(async()=>{await En(r.clone,r.options),b()},{fast:n})}),await new Promise(b=>{X(async()=>{await Qt(r.element,r.clone,r.styleCache,r.options),b()},{fast:n})}),e.embedFonts&&await new Promise(b=>{X(async()=>{let x=Yt(r.element),w=Kt(r.element);if(O()){let k=new Set(Array.from(x).map(C=>String(C).split("__")[0]).filter(Boolean));await Gt(k,1)}a=await Xt({required:x,usedCodepoints:w,preCached:!1,exclude:r.options.excludeFonts,useProxy:r.options.useProxy}),b()},{fast:n})});let f=le(r.clone).sort(),d=f.join(",");S.baseStyle.has(d)?u=S.baseStyle.get(d):await new Promise(b=>{X(()=>{u=ue(f),S.baseStyle.set(d,u),b()},{fast:n})}),r={fontsCSS:a,baseCSS:u,...r},await j("beforeRender",r),await new Promise(b=>{X(()=>{let x=getComputedStyle(r.element),w=r.element.getBoundingClientRect(),k=Math.max(1,A(r.element.offsetWidth||parseFloat(x.width)||w.width||1)),C=Math.max(1,A(r.element.offsetHeight||parseFloat(x.height)||w.height||1));if(r.options?.excludeMode==="remove"){let z=Wn(r.element,r.options);Number.isFinite(z)&&z>0&&(C=Math.max(1,Math.min(C,A(z+1))))}let v=(z,V=NaN)=>{let ht=typeof z=="string"?parseFloat(z):z;return Number.isFinite(ht)?ht:V},E=v(r.options.width),$=v(r.options.height),N=k,M=C,I=Number.isFinite(E),_=Number.isFinite($),B=C>0?k/C:1;I&&_?(N=Math.max(1,A(E)),M=Math.max(1,A($))):I?(N=Math.max(1,A(E)),M=Math.max(1,A(N/(B||1)))):_?(M=Math.max(1,A($)),N=Math.max(1,A(M*(B||1)))):(N=k,M=C);let nt=0,F=0,ot=k,rt=C;if(!o&&h&&Number.isFinite(h.a)){let z={a:h.a,b:h.b||0,c:h.c||0,d:h.d||1,e:0,f:0},V=ke(k,C,z,0,0);nt=A(V.minX),F=A(V.minY),ot=A(V.maxX),rt=A(V.maxY)}else if(o&&Er(r.element)){let V=x.transform&&x.transform!=="none"?x.transform:"",ht=zn(r.element),re=jn({baseTransform:V,rotate:ht.rotate||"0deg",scale:ht.scale,translate:ht.translate}),{ox:so,oy:io}=qn(x,k,C),ao=re.is2D?re:new DOMMatrix(re.toString()),Pt=ke(k,C,ao,so,io);nt=A(Pt.minX),F=A(Pt.minY),ot=A(Pt.maxX),rt=A(Pt.maxY)}let Ct=On(x),ft=Un(x),R=Bn(x),T=Dn(x),W=s?{top:A(Ct.top+ft.top+R.top+T.bleed.top),right:A(Ct.right+ft.right+R.right+T.bleed.right),bottom:A(Ct.bottom+ft.bottom+R.bottom+T.bleed.bottom),left:A(Ct.left+ft.left+R.left+T.bleed.left)}:{top:0,right:0,bottom:0,left:0};nt=A(nt-W.left),F=A(F-W.top),ot=A(ot+W.right),rt=A(rt+W.bottom);let U=Math.max(1,A(ot-nt)),st=Math.max(1,A(rt-F)),dt=I||_?A(N/k):1,Zt=_||I?A(M/C):1,mt=Math.max(1,A(U*dt)),te=Math.max(1,A(st*Zt)),Rt="http://www.w3.org/2000/svg",Tt=O()?1:0,G=A(Tt+(o?0:1)),Q=document.createElementNS(Rt,"foreignObject"),to=A(nt),eo=A(F);Q.setAttribute("x",String(A(-(to-G)))),Q.setAttribute("y",String(A(-(eo-G)))),Q.setAttribute("width",String(A(k+G*2))),Q.setAttribute("height",String(A(C+G*2))),Q.style.overflow="visible";let Ie=document.createElement("style");Ie.textContent=r.baseCSS+r.fontsCSS+"svg{overflow:visible;} foreignObject{overflow:visible;}"+r.classCSS,Q.appendChild(Ie);let pt=document.createElement("div");pt.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),pt.style.width=`${A(k)}px`,pt.style.height=`${A(C)}px`,pt.style.overflow="visible",r.clone.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),pt.appendChild(r.clone),Q.appendChild(pt);let no=new XMLSerializer().serializeToString(Q),ne=A(U+G*2),oe=A(st+G*2),Le=I||_;e.meta={w0:k,h0:C,vbW:ne,vbH:oe,targetW:N,targetH:M};let oo=O()&&Le?ne:A(mt+G*2),ro=O()&&Le?oe:A(te+G*2);p=`<svg xmlns="${Rt}" width="${oo}" height="${ro}" viewBox="0 0 ${ne} ${oe}">`+no+"</svg>",m=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`,r={svgString:p,dataURL:m,...r},b()},{fast:n})}),await j("afterRender",r);let g=document.getElementById("snapdom-sandbox");return g&&g.style.position==="absolute"&&g.remove(),r.dataURL}function Er(t){return Vn(t)}function Fr(t){if(typeof t=="string"){let e=t.toLowerCase().trim();if(e==="disabled"||e==="full"||e==="auto"||e==="soft")return e}return"soft"}function Yn(t={}){let e=t.format??"png";e==="jpg"&&(e="jpeg");let n=Fr(t.cache);return{debug:t.debug??!1,fast:t.fast??!0,scale:t.scale??1,exclude:t.exclude??[],excludeMode:t.excludeMode??"hide",filter:t.filter??null,filterMode:t.filterMode??"hide",placeholders:t.placeholders!==!1,embedFonts:t.embedFonts??!1,iconFonts:Array.isArray(t.iconFonts)?t.iconFonts:t.iconFonts?[t.iconFonts]:[],localFonts:Array.isArray(t.localFonts)?t.localFonts:[],excludeFonts:t.excludeFonts??void 0,fallbackURL:t.fallbackURL??void 0,cache:n,useProxy:typeof t.useProxy=="string"?t.useProxy:"",width:t.width??null,height:t.height??null,format:e,type:t.type??"svg",quality:t.quality??.92,dpr:t.dpr??(window.devicePixelRatio||1),backgroundColor:t.backgroundColor??(["jpeg","webp"].includes(e)?"#ffffff":null),filename:t.filename??"snapDOM",outerTransforms:t.outerTransforms??!0,outerShadows:t.outerShadows??!1}}Bt();Y();at();H();async function Kn(t=document,e={}){let{embedFonts:n=!0,useProxy:o=""}=e,s=e.cache??e.cacheOpt??"full";_t(s);try{await document.fonts?.ready}catch{}try{ae()}catch{}S.session=S.session||{},S.session.styleCache||(S.session.styleCache=new WeakMap),S.image=S.image||new Map,S.background=S.background||new Map;try{await Qt(t,void 0,S.session.styleCache,{useProxy:o})}catch{}let r=[],i=[];try{if(t&&t.nodeType===1){let c=t.querySelectorAll?Array.from(t.querySelectorAll("*")):[];i=[t,...c],r=[],t.tagName==="IMG"&&t.getAttribute("src")&&r.push(t),r.push(...Array.from(t.querySelectorAll?.("img[src]")||[]))}else t?.querySelectorAll&&(r=Array.from(t.querySelectorAll("img[src]")),i=Array.from(t.querySelectorAll("*")))}catch{}let l=[];for(let c of r){let a=c?.currentSrc||c?.src;if(a&&!S.image.has(a)){let u=Promise.resolve().then(async()=>{let m=await P(a,{as:"dataURL",useProxy:o});m?.ok&&typeof m.data=="string"&&S.image.set(a,m.data)}).catch(()=>{});l.push(u)}}for(let c of i){let a="";try{a=c?.style?.backgroundImage||"",(!a||a==="none")&&(a=lt(c).backgroundImage)}catch{}if(a&&a!=="none"){let u=a.match(/url\((?:[^()"']+|"(?:[^"]*)"|'(?:[^']*)')\)/gi)||[];for(let m of u){let p=Promise.resolve().then(()=>ct(m,{...e,useProxy:o})).catch(()=>{});l.push(p)}}}if(n)try{let c=Yt(t),a=Kt(t);if(typeof O=="function"?O():!!O){let m=new Set(Array.from(c).map(p=>String(p).split("__")[0]).filter(Boolean));await Gt(m,3)}await Xt({required:c,usedCodepoints:a,exclude:e.excludeFonts,localFonts:e.localFonts,useProxy:e.useProxy??o})}catch{}await Promise.allSettled(l)}function Ur(...t){return In(...t),L}var L=Object.assign(Br,{plugins:Ur}),Zn=Symbol("snapdom.internal"),et=Symbol("snapdom.internal.silent"),$e=!1;async function Br(t,e){if(!t)throw new Error("Element cannot be null or undefined");let n=Yn(e);if(Rn(n,e&&e.plugins),O()&&(n.embedFonts===!0||Hr(t)))for(let o=0;o<3;o++)try{await Dr(t,e),$e=!1}catch{}return n.iconFonts&&n.iconFonts.length>0&&tn(n.iconFonts),n.snap||(n.snap={toPng:(o,s)=>L.toPng(o,s),toSvg:(o,s)=>L.toSvg(o,s)}),L.capture(t,n,Zn)}L.capture=async(t,e,n)=>{if(n!==Zn)throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");let o=await Ae(t,e),s={img:async(f,d)=>{let{toImg:g}=await Promise.resolve().then(()=>(Nt(),Lt));return g(o,{...f,...d||{}})},svg:async(f,d)=>{let{toSvg:g}=await Promise.resolve().then(()=>(Nt(),Lt));return g(o,{...f,...d||{}})},canvas:async(f,d)=>{let{toCanvas:g}=await Promise.resolve().then(()=>(St(),ve));return g(o,{...f,...d||{}})},blob:async(f,d)=>{let{toBlob:g}=await Promise.resolve().then(()=>(Jt(),Fe));return g(o,{...f,...d||{}})},png:async(f,d)=>{let{rasterize:g}=await Promise.resolve().then(()=>(K(),tt));return g(o,{...f,...d||{},format:"png"})},jpeg:async(f,d)=>{let{rasterize:g}=await Promise.resolve().then(()=>(K(),tt));return g(o,{...f,...d||{},format:"jpeg"})},webp:async(f,d)=>{let{rasterize:g}=await Promise.resolve().then(()=>(K(),tt));return g(o,{...f,...d||{},format:"webp"})},download:async(f,d)=>{let{download:g}=await Promise.resolve().then(()=>(Jn(),Qn));return g(o,{...f,...d||{}})}},i={...e,export:{url:o},exports:{svg:async f=>{let{toSvg:d}=await Promise.resolve().then(()=>(Nt(),Lt));return d(o,{...e,...f||{},[et]:!0})},canvas:async f=>{let{toCanvas:d}=await Promise.resolve().then(()=>(St(),ve));return d(o,{...e,...f||{},[et]:!0})},png:async f=>{let{rasterize:d}=await Promise.resolve().then(()=>(K(),tt));return d(o,{...e,...f||{},format:"png",[et]:!0})},jpeg:async f=>{let{rasterize:d}=await Promise.resolve().then(()=>(K(),tt));return d(o,{...e,...f||{},format:"jpeg",[et]:!0})},jpg:async f=>{let{rasterize:d}=await Promise.resolve().then(()=>(K(),tt));return d(o,{...e,...f||{},format:"jpeg",[et]:!0})},webp:async f=>{let{rasterize:d}=await Promise.resolve().then(()=>(K(),tt));return d(o,{...e,...f||{},format:"webp",[et]:!0})},blob:async f=>{let{toBlob:d}=await Promise.resolve().then(()=>(Jt(),Fe));return d(o,{...e,...f||{},[et]:!0})},img:async f=>{let{toImg:d}=await Promise.resolve().then(()=>(Nt(),Lt));return d(o,{...e,...f||{},[et]:!0})}}},l=await Nn("defineExports",i),c=Object.assign({},...l.filter(f=>f&&typeof f=="object")),a={...s,...c};a.jpeg&&!a.jpg&&(a.jpg=(f,d)=>a.jpeg(f,d));function u(f,d){let g={...e,...d||{}};return(f==="jpeg"||f==="jpg")&&(g.backgroundColor==null||g.backgroundColor==="transparent")&&(g.backgroundColor="#ffffff"),g}let m=!1,p=Promise.resolve();async function h(f,d){let g=async()=>{let b=a[f];if(!b)throw new Error(`[snapdom] Unknown export type: ${f}`);let x=u(f,d),w={...e,export:{type:f,options:x,url:o}};await j("beforeExport",w);let k=await b(w,x);return await j("afterExport",w,k),m||(m=!0,await j("afterSnap",e)),k};return p=p.then(g)}let y={url:o,toRaw:()=>o,to:(f,d)=>h(f,d),toImg:f=>h("img",f),toSvg:f=>h("svg",f),toCanvas:f=>h("canvas",f),toBlob:f=>h("blob",f),toPng:f=>h("png",f),toJpg:f=>h("jpg",f),toWebp:f=>h("webp",f),download:f=>h("download",f)};for(let f of Object.keys(a)){let d="to"+f.charAt(0).toUpperCase()+f.slice(1);y[d]||(y[d]=g=>h(f,g))}return y};L.toRaw=(t,e)=>L(t,e).then(n=>n.toRaw());L.toImg=(t,e)=>L(t,e).then(n=>n.toImg());L.toSvg=(t,e)=>L(t,e).then(n=>n.toSvg());L.toCanvas=(t,e)=>L(t,e).then(n=>n.toCanvas());L.toBlob=(t,e)=>L(t,e).then(n=>n.toBlob());L.toPng=(t,e)=>L(t,{...e,format:"png"}).then(n=>n.toPng());L.toJpg=(t,e)=>L(t,{...e,format:"jpeg"}).then(n=>n.toJpg());L.toWebp=(t,e)=>L(t,{...e,format:"webp"}).then(n=>n.toWebp());L.download=(t,e)=>L(t,e).then(n=>n.download());async function Dr(t,e){if($e)return;let n={...e,fast:!0,embedFonts:!0,scale:.2},o;try{o=await Ae(t,n)}catch{}await new Promise(s=>requestAnimationFrame(()=>requestAnimationFrame(s))),o&&await new Promise(s=>{let r=new Image;try{r.decoding="sync",r.loading="eager"}catch{}r.style.cssText="position:fixed;left:0px;top:0px;width:10px;height:10px;opacity:0.01;pointer-events:none;",r.src=o,document.body.appendChild(r),(async()=>{try{typeof r.decode=="function"&&await r.decode()}catch{}let i=performance.now();for(;!(r.complete&&r.naturalWidth>0)&&performance.now()-i<900;)await new Promise(l=>setTimeout(l,200));await new Promise(l=>requestAnimationFrame(l));try{r.remove()}catch{}s()})()}),t.querySelectorAll("canvas").forEach(s=>{try{let r=s.getContext("2d",{willReadFrequently:!0});r&&r.getImageData(0,0,1,1)}catch{}}),$e=!0}function Hr(t){let e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;e.nextNode();){let n=e.currentNode,o=getComputedStyle(n),s=o.backgroundImage&&o.backgroundImage!=="none",r=o.maskImage&&o.maskImage!=="none"||o.webkitMaskImage&&o.webkitMaskImage!=="none";if(s||r||n.tagName==="CANVAS")return!0}return!1}typeof window<"u"&&(window.snapdom=L,window.preCache=Kn); |