@siteping/widget 0.9.6 → 0.9.8

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.
@@ -1,28 +1,28 @@
1
- "use strict";var SitePing=(()=>{var ke=Object.defineProperty;var rs=Object.getOwnPropertyDescriptor;var as=Object.getOwnPropertyNames;var ls=Object.prototype.hasOwnProperty;var ps=(n,e)=>{for(var t in e)ke(n,t,{get:e[t],enumerable:!0})},ds=(n,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of as(e))!ls.call(n,o)&&o!==t&&ke(n,o,{get:()=>e[o],enumerable:!(s=rs(e,o))||s.enumerable});return n};var cs=n=>ds(ke({},"__esModule",{value:!0}),n);var kn={};ps(kn,{initSiteping:()=>xn});var F,Ce,Qe;function Je(n,e){if(Qe=new Date,n.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(n.tagName.toLowerCase()==="html")return"html";let t={root:document.body,idName:o=>!0,className:o=>!0,tagName:o=>!0,attr:(o,i)=>!1,seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};F={...t,...e},Ce=us(F.root,t);let s=Y(n,"all",()=>Y(n,"two",()=>Y(n,"one",()=>Y(n,"none"))));if(s){let o=tt(st(s,n));return o.length>0&&(s=o[0]),W(s)}else throw new Error("Selector was not found.")}function us(n,e){return n.nodeType===Node.DOCUMENT_NODE?n:n===e.root?n.ownerDocument:n}function Y(n,e,t){let s=null,o=[],i=n,r=0;for(;i;){let a=new Date().getTime()-Qe.getTime();if(F.timeoutMs!==void 0&&a>F.timeoutMs)throw new Error(`Timeout: Can't find a unique selector after ${a}ms`);let p=U(hs(i))||U(...bs(i))||U(...gs(i))||U(ms(i))||[Ge()],d=fs(i);if(e=="all")d&&(p=p.concat(p.filter(we).map(u=>q(u,d))));else if(e=="two")p=p.slice(0,1),d&&(p=p.concat(p.filter(we).map(u=>q(u,d))));else if(e=="one"){let[u]=p=p.slice(0,1);d&&we(u)&&(p=[q(u,d)])}else e=="none"&&(p=[Ge()],d&&(p=[q(p[0],d)]));for(let u of p)u.level=r;if(o.push(p),o.length>=F.seedMinLength&&(s=Xe(o,t),s))break;i=i.parentElement,r++}return s||(s=Xe(o,t)),!s&&t?t():s}function Xe(n,e){let t=tt(et(n));if(t.length>F.threshold)return e?e():null;for(let s of t)if(Ze(s))return s;return null}function W(n){let e=n[0],t=e.name;for(let s=1;s<n.length;s++){let o=n[s].level||0;e.level===o-1?t=`${n[s].name} > ${t}`:t=`${n[s].name} ${t}`,e=n[s]}return t}function Ve(n){return n.map(e=>e.penalty).reduce((e,t)=>e+t,0)}function Ze(n){let e=W(n);switch(Ce.querySelectorAll(e).length){case 0:throw new Error(`Can't select any node with this selector: ${e}`);case 1:return!0;default:return!1}}function hs(n){let e=n.getAttribute("id");return e&&F.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null}function bs(n){return Array.from(n.attributes).filter(t=>F.attr(t.name,t.value)).map(t=>({name:`[${CSS.escape(t.name)}="${CSS.escape(t.value)}"]`,penalty:.5}))}function gs(n){return Array.from(n.classList).filter(F.className).map(t=>({name:"."+CSS.escape(t),penalty:1}))}function ms(n){let e=n.tagName.toLowerCase();return F.tagName(e)?{name:e,penalty:2}:null}function Ge(){return{name:"*",penalty:3}}function fs(n){let e=n.parentNode;if(!e)return null;let t=e.firstChild;if(!t)return null;let s=0;for(;t&&(t.nodeType===Node.ELEMENT_NODE&&s++,t!==n);)t=t.nextSibling;return s}function q(n,e){return{name:n.name+`:nth-child(${e})`,penalty:n.penalty+1}}function we(n){return n.name!=="html"&&!n.name.startsWith("#")}function U(...n){let e=n.filter(vs);return e.length>0?e:null}function vs(n){return n!=null}function*et(n,e=[]){if(n.length>0)for(let t of n[0])yield*et(n.slice(1,n.length),e.concat(t));else yield e}function tt(n){return[...n].sort((e,t)=>Ve(e)-Ve(t))}function*st(n,e,t={counter:0,visited:new Map}){if(n.length>2&&n.length>F.optimizedMinLength)for(let s=1;s<n.length-1;s++){if(t.counter>F.maxNumberOfTries)return;t.counter+=1;let o=[...n];o.splice(s,1);let i=W(o);if(t.visited.has(i))return;Ze(o)&&ys(o,e)&&(yield o,t.visited.set(i,!0),yield*st(o,e,t))}}function ys(n,e){return Ce.querySelector(W(n))===e}var xs=["role","aria-label","type","name","href","src","data-testid","data-id"];function ks(n){let e=5381;for(let t=0;t<n.length;t++)e=(e<<5)+e+n.charCodeAt(t)|0;return(e>>>0).toString(36)}function Ee(n){let e=n.children.length,t=0,s=n.parentElement;if(s)for(let r of s.children){if(r===n)break;r.tagName===n.tagName&&t++}let o=[];for(let r of xs){let a=n.getAttribute(r);a&&o.push(`${r}=${a}`)}let i=o.length>0?ks(o.join(",")):"0";return`${e}:${t}:${i}`}function nt(n,e){let t=e.split(":");if(t.length!==3)return 0;let[s,o,i]=t,r=Number(s),a=Number(o);if(Number.isNaN(r)||Number.isNaN(a))return 0;let p=Ee(n),[d,u,h]=p.split(":"),b=0,f=Math.abs(Number(d)-r);f===0?b+=.2:f<=2?b+=.1:f<=5&&(b+=.03);let k=Math.abs(Number(u)-a);return k===0?b+=.4:k===1?b+=.2:k<=3&&(b+=.08),h===i&&(b+=.4),b}function D(n,e){let t=e==="before"?"previousElementSibling":"nextElementSibling",s=n[t],o=3;for(;s&&o>0;){let i=s.textContent?.trim();if(i)return e==="before"?i.slice(-32):i.slice(0,32);s=s[t],o--}return""}function X(n){let e=n.previousElementSibling?.textContent?.trim().slice(0,40)??"",t=n.nextElementSibling?.textContent?.trim().slice(0,40)??"";return[e,t].filter(Boolean).join(" | ")}function ot(n){if(n.id){let s=n.id.includes("'")?`concat('${n.id.replace(/'/g,`',"'",'`)}')`:`'${n.id}'`;return`//${n.localName}[@id=${s}]`}let e=[],t=n;for(;t&&t!==document.body&&e.length<6;){let s=t.localName,o=t.parentElement;if(t.id){let r=t.id.includes("'")?`concat('${t.id.replace(/'/g,`',"'",'`)}')`:`'${t.id}'`;return e.unshift(`/${s}[@id=${r}]`),"/"+e.join("")}let i=1;if(o)for(let r of o.children){if(r===t)break;r.localName===s&&i++}e.unshift(`/${s}[${i}]`),t=o}return"/html/body"+e.join("")}function Te(n){let e=Je(n,{className:d=>!/^(css|sc|emotion|styled)-/.test(d)&&!/^[a-z]{1,3}[A-Za-z0-9]{4,8}$/.test(d),attr:d=>["data-testid","data-id","role","aria-label"].includes(d),idName:d=>!d.startsWith("radix-")&&!/^:r[0-9]+:$/.test(d),seedMinLength:3,optimizedMinLength:2}),t=ot(n),o=(n.textContent?.trim()??"").slice(0,120),i=D(n,"before"),r=D(n,"after"),a=Ee(n),p=X(n);return{cssSelector:e,xpath:t,textSnippet:o,textPrefix:i,textSuffix:r,fingerprint:a,neighborText:p,elementTag:n.tagName,elementId:n.id||void 0}}function it(n,e=document.documentElement){let t=n.x+n.width/2,s=n.y+n.height/2,o=document.elementFromPoint(t,s);if(!o||o===e)return document.body;let i=o;for(;i&&i!==document.body;){let r=i.getBoundingClientRect();if(r.left<=n.x&&r.top<=n.y&&r.right>=n.x+n.width&&r.bottom>=n.y+n.height)return i;i=i.parentElement}return document.body}function rt(n,e){return e.width<=0||e.height<=0?{xPct:0,yPct:0,wPct:1,hPct:1}:{xPct:(n.x-e.x)/e.width,yPct:(n.y-e.y)/e.height,wPct:n.width/e.width,hPct:n.height/e.height}}function v(n){let s=document.createRange().createContextualFragment(n).firstElementChild;if(!s||s.nodeName.toLowerCase()!=="svg")throw new Error("[siteping] Invalid SVG string");for(let o of[...s.attributes])o.name.startsWith("on")&&s.removeAttribute(o.name);for(let o of s.querySelectorAll("*"))for(let i of[...o.attributes])i.name.startsWith("on")&&o.removeAttribute(i.name);return s}function l(n,e){let t=document.createElement(n);if(e)for(let[s,o]of Object.entries(e))s==="class"?t.className=o:s==="style"?t.style.cssText=o:t.setAttribute(s,o);return t}function c(n,e){n.textContent=e}function V(n,e="en"){let t=Date.now()-new Date(n).getTime(),s=Math.floor(t/1e3);if(s<60)return new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"second");let o=new Intl.RelativeTimeFormat(e,{numeric:"always",style:"narrow"}),i=Math.floor(s/60);if(i<60)return o.format(-i,"minute");let r=Math.floor(i/60);if(r<24)return o.format(-r,"hour");let a=Math.floor(r/24);return a<7?o.format(-a,"day"):new Date(n).toLocaleDateString(e)}var Se='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><circle cx="12" cy="10" r="1" fill="currentColor" stroke="none"/><circle cx="8" cy="10" r="1" fill="currentColor" stroke="none"/><circle cx="16" cy="10" r="1" fill="currentColor" stroke="none"/></svg>',at='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>',lt='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18"/><path d="M9 3v18"/></svg>',Ae='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',Le='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/><path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/><line x1="1" y1="1" x2="23" y2="23"/></svg>',G='<svg 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>',pt='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>',Q='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>',J='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>',Z='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/></svg>',ee='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="8" y="6" width="8" height="14" rx="4"/><path d="M19 9h2"/><path d="M3 9h2"/><path d="M19 13h2"/><path d="M3 13h2"/><path d="M19 17h2"/><path d="M3 17h2"/><path d="M10 2h4"/></svg>',te='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',Me='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polygon points="12 2 2 7 12 12 22 7 12 2"/><polyline points="2 17 12 22 22 17"/><polyline points="2 12 12 17 22 12"/></svg>',dt='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="3" fill="currentColor" stroke="none"/></svg>',ct='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>',ut='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg>',Be='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/></svg>';var bt="#0066ff",ws=/^#[0-9a-fA-F]{6}$/,ht=/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,Cs=/^#[0-9a-fA-F]{8}$/;function Es(n){if(ws.test(n))return n;let e=ht.test(n)?n.match(ht):null;return e?`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:Cs.test(n)?n.slice(0,7):(console.warn(`[siteping] Invalid accentColor "${n}" \u2014 only hex colors (#RGB, #RRGGBB, #RRGGBBAA) are supported. Using default.`),bt)}function Ts(n,e){let t=Math.max(0,Math.round(parseInt(n.slice(1,3),16)*(1-e))),s=Math.max(0,Math.round(parseInt(n.slice(3,5),16)*(1-e))),o=Math.max(0,Math.round(parseInt(n.slice(5,7),16)*(1-e)));return`#${t.toString(16).padStart(2,"0")}${s.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}`}function Ss(){return typeof window>"u"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}function As(n){return n==="dark"||n==="auto"&&Ss()?"dark":"light"}function gt(n=bt,e){let t=Es(n),s=Ts(t,.15);return As(e)==="dark"?{accent:t,accentLight:t+"22",accentDark:s,accentGlow:t+"44",accentGradient:`linear-gradient(135deg, ${t}, ${s})`,bg:"#0f172a",bgHover:"#1e293b",text:"#f1f5f9",textSecondary:"#94a3b8",textTertiary:"#64748b",border:"#334155",shadow:"rgba(0, 0, 0, 0.3)",glassBg:"rgba(15, 23, 42, 0.78)",glassBgHeavy:"rgba(15, 23, 42, 0.88)",glassBorder:"rgba(51, 65, 85, 0.5)",glassBorderSubtle:"rgba(51, 65, 85, 0.3)",typeQuestion:"#60a5fa",typeChange:"#fbbf24",typeBug:"#f87171",typeOther:"#94a3b8",typeQuestionBg:"rgba(59, 130, 246, 0.15)",typeChangeBg:"rgba(245, 158, 11, 0.15)",typeBugBg:"rgba(239, 68, 68, 0.15)",typeOtherBg:"rgba(100, 116, 139, 0.15)",statusOpen:"#4ade80",statusOpenBg:"rgba(74, 222, 128, 0.15)",statusResolved:"#94a3b8",statusResolvedBg:"rgba(148, 163, 184, 0.15)"}:{accent:t,accentLight:t+"14",accentDark:s,accentGlow:t+"33",accentGradient:`linear-gradient(135deg, ${t}, ${s})`,bg:"#ffffff",bgHover:"#f8f9fb",text:"#0f172a",textSecondary:"#475569",textTertiary:"#64748b",border:"#e2e8f0",shadow:"rgba(0, 0, 0, 0.06)",glassBg:"rgba(255, 255, 255, 0.72)",glassBgHeavy:"rgba(255, 255, 255, 0.85)",glassBorder:"rgba(255, 255, 255, 0.35)",glassBorderSubtle:"rgba(255, 255, 255, 0.18)",typeQuestion:"#3b82f6",typeChange:"#b45309",typeBug:"#ef4444",typeOther:"#64748b",typeQuestionBg:"#eff6ff",typeChangeBg:"#fffbeb",typeBugBg:"#fef2f2",typeOtherBg:"#f8fafc",statusOpen:"#16a34a",statusOpenBg:"#f0fdf4",statusResolved:"#64748b",statusResolvedBg:"#f1f5f9"}}function M(n,e){switch(n){case"question":return e.typeQuestion;case"change":return e.typeChange;case"bug":return e.typeBug;default:return e.typeOther}}function P(n,e){switch(n){case"question":return e.typeQuestionBg;case"change":return e.typeChangeBg;case"bug":return e.typeBugBg;default:return e.typeOtherBg}}function mt(n){return`
2
- --sp-accent: ${n.accent};
3
- --sp-accent-light: ${n.accentLight};
4
- --sp-accent-dark: ${n.accentDark};
5
- --sp-accent-glow: ${n.accentGlow};
6
- --sp-accent-gradient: ${n.accentGradient};
7
- --sp-bg: ${n.bg};
8
- --sp-bg-hover: ${n.bgHover};
9
- --sp-text: ${n.text};
10
- --sp-text-secondary: ${n.textSecondary};
11
- --sp-text-tertiary: ${n.textTertiary};
12
- --sp-border: ${n.border};
13
- --sp-shadow: ${n.shadow};
14
- --sp-glass-bg: ${n.glassBg};
15
- --sp-glass-bg-heavy: ${n.glassBgHeavy};
16
- --sp-glass-border: ${n.glassBorder};
17
- --sp-glass-border-subtle: ${n.glassBorderSubtle};
18
- --sp-type-question: ${n.typeQuestion};
19
- --sp-type-change: ${n.typeChange};
20
- --sp-type-bug: ${n.typeBug};
21
- --sp-type-other: ${n.typeOther};
22
- --sp-type-question-bg: ${n.typeQuestionBg};
23
- --sp-type-change-bg: ${n.typeChangeBg};
24
- --sp-type-bug-bg: ${n.typeBugBg};
25
- --sp-type-other-bg: ${n.typeOtherBg};
1
+ var SitePing=(function(exports){'use strict';var Yu=Object.create;var Vs=Object.defineProperty;var Ju=Object.getOwnPropertyDescriptor;var Wu=Object.getOwnPropertyNames;var ju=Object.getPrototypeOf,$u=Object.prototype.hasOwnProperty;var gA=(o,s)=>()=>(o&&(s=o(o=0)),s);var zu=(o,s)=>()=>(s||o((s={exports:{}}).exports,s),s.exports),we=(o,s)=>{for(var n in s)Vs(o,n,{get:s[n],enumerable:true});},Zu=(o,s,n,a)=>{if(s&&typeof s=="object"||typeof s=="function")for(let c of Wu(s))!$u.call(o,c)&&c!==n&&Vs(o,c,{get:()=>s[c],enumerable:!(a=Ju(s,c))||a.enumerable});return o};var qu=(o,s,n)=>(n=o!=null?Yu(ju(o)):{},Zu(Vs(n,"default",{value:o,enumerable:true}),o));function _(o){let a=document.createRange().createContextualFragment(o).firstElementChild;if(!a||a.nodeName.toLowerCase()!=="svg")throw new Error("[siteping] Invalid SVG string");for(let c of [...a.attributes])c.name.startsWith("on")&&a.removeAttribute(c.name);for(let c of a.querySelectorAll("*"))for(let p of [...c.attributes])p.name.startsWith("on")&&c.removeAttribute(p.name);return a}function C(o,s){let n=document.createElement(o);if(s)for(let[a,c]of Object.entries(s))a==="class"?n.className=c:a==="style"?n.style.cssText=c:n.setAttribute(a,c);return n}function U(o,s){o.textContent=s;}function me(o){let s=Array.from(o.childNodes).map(n=>n.cloneNode(true));return o.disabled=true,o.replaceChildren(C("div",{class:"sp-spinner sp-spinner--sm"})),()=>{o.replaceChildren(...s),o.disabled=false;}}function wr(o,s="en"){let n=Date.now()-new Date(o).getTime(),a=Math.floor(n/1e3);if(a<60)return new Intl.RelativeTimeFormat(s,{numeric:"auto"}).format(0,"second");let c=new Intl.RelativeTimeFormat(s,{numeric:"always",style:"narrow"}),p=Math.floor(a/60);if(p<60)return c.format(-p,"minute");let g=Math.floor(p/60);if(g<24)return c.format(-g,"hour");let f=Math.floor(g/24);return f<7?c.format(-f,"day"):new Date(o).toLocaleDateString(s)}var UA=gA(()=>{});var js,ko,Lo,$s,zs,mr,So,br,Cr,vr,Qr,yr,Zs,To,Ko,Do,qs,Fr=gA(()=>{js='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><circle cx="12" cy="10" r="1" fill="currentColor" stroke="none"/><circle cx="8" cy="10" r="1" fill="currentColor" stroke="none"/><circle cx="16" cy="10" r="1" fill="currentColor" stroke="none"/></svg>',ko='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>',Lo='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18"/><path d="M9 3v18"/></svg>',$s='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',zs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/><path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/><line x1="1" y1="1" x2="23" y2="23"/></svg>',mr='<svg 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>',So='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>',br='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>',Cr='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>',vr='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/></svg>',Qr='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="8" y="6" width="8" height="14" rx="4"/><path d="M19 9h2"/><path d="M3 9h2"/><path d="M19 13h2"/><path d="M3 13h2"/><path d="M19 17h2"/><path d="M3 17h2"/><path d="M10 2h4"/></svg>',yr='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',Zs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polygon points="12 2 2 7 12 12 22 7 12 2"/><polyline points="2 17 12 22 22 17"/><polyline points="2 12 12 17 22 12"/></svg>',To='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="3" fill="currentColor" stroke="none"/></svg>',Ko='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>',Do='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg>',qs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/></svg>';});function ph(o){if(ch.test(o))return o;let s=Mo.test(o)?o.match(Mo):null;return s?`#${s[1]}${s[1]}${s[2]}${s[2]}${s[3]}${s[3]}`:dh.test(o)?o.slice(0,7):(console.warn(`[siteping] Invalid accentColor "${o}" \u2014 only hex colors (#RGB, #RRGGBB, #RRGGBBAA) are supported. Using default.`),Ro)}function uh(o,s){let n=Math.max(0,Math.round(parseInt(o.slice(1,3),16)*(1-s))),a=Math.max(0,Math.round(parseInt(o.slice(3,5),16)*(1-s))),c=Math.max(0,Math.round(parseInt(o.slice(5,7),16)*(1-s)));return `#${n.toString(16).padStart(2,"0")}${a.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}`}function hh(){return typeof window>"u"?false:window.matchMedia("(prefers-color-scheme: dark)").matches}function gh(o){return o==="dark"||o==="auto"&&hh()?"dark":"light"}function Oo(o=Ro,s){let n=ph(o),a=uh(n,.15);return gh(s)==="dark"?{accent:n,accentLight:n+"22",accentDark:a,accentGlow:n+"44",accentGradient:`linear-gradient(135deg, ${n}, ${a})`,bg:"#0f172a",bgHover:"#1e293b",text:"#f1f5f9",textSecondary:"#94a3b8",textTertiary:"#64748b",border:"#334155",shadow:"rgba(0, 0, 0, 0.3)",glassBg:"rgba(15, 23, 42, 0.78)",glassBgHeavy:"rgba(15, 23, 42, 0.88)",glassBorder:"rgba(51, 65, 85, 0.5)",glassBorderSubtle:"rgba(51, 65, 85, 0.3)",typeQuestion:"#60a5fa",typeChange:"#fbbf24",typeBug:"#f87171",typeOther:"#94a3b8",typeQuestionBg:"rgba(59, 130, 246, 0.15)",typeChangeBg:"rgba(245, 158, 11, 0.15)",typeBugBg:"rgba(239, 68, 68, 0.15)",typeOtherBg:"rgba(100, 116, 139, 0.15)",statusOpen:"#4ade80",statusOpenBg:"rgba(74, 222, 128, 0.15)",statusResolved:"#94a3b8",statusResolvedBg:"rgba(148, 163, 184, 0.15)"}:{accent:n,accentLight:n+"14",accentDark:a,accentGlow:n+"33",accentGradient:`linear-gradient(135deg, ${n}, ${a})`,bg:"#ffffff",bgHover:"#f8f9fb",text:"#0f172a",textSecondary:"#475569",textTertiary:"#64748b",border:"#e2e8f0",shadow:"rgba(0, 0, 0, 0.06)",glassBg:"rgba(255, 255, 255, 0.72)",glassBgHeavy:"rgba(255, 255, 255, 0.85)",glassBorder:"rgba(255, 255, 255, 0.35)",glassBorderSubtle:"rgba(255, 255, 255, 0.18)",typeQuestion:"#3b82f6",typeChange:"#b45309",typeBug:"#ef4444",typeOther:"#64748b",typeQuestionBg:"#eff6ff",typeChangeBg:"#fffbeb",typeBugBg:"#fef2f2",typeOtherBg:"#f8fafc",statusOpen:"#16a34a",statusOpenBg:"#f0fdf4",statusResolved:"#64748b",statusResolvedBg:"#f1f5f9"}}function HA(o,s){switch(o){case "question":return s.typeQuestion;case "change":return s.typeChange;case "bug":return s.typeBug;default:return s.typeOther}}function JA(o,s){switch(o){case "question":return s.typeQuestionBg;case "change":return s.typeChangeBg;case "bug":return s.typeBugBg;default:return s.typeOtherBg}}function No(o){return `
2
+ --sp-accent: ${o.accent};
3
+ --sp-accent-light: ${o.accentLight};
4
+ --sp-accent-dark: ${o.accentDark};
5
+ --sp-accent-glow: ${o.accentGlow};
6
+ --sp-accent-gradient: ${o.accentGradient};
7
+ --sp-bg: ${o.bg};
8
+ --sp-bg-hover: ${o.bgHover};
9
+ --sp-text: ${o.text};
10
+ --sp-text-secondary: ${o.textSecondary};
11
+ --sp-text-tertiary: ${o.textTertiary};
12
+ --sp-border: ${o.border};
13
+ --sp-shadow: ${o.shadow};
14
+ --sp-glass-bg: ${o.glassBg};
15
+ --sp-glass-bg-heavy: ${o.glassBgHeavy};
16
+ --sp-glass-border: ${o.glassBorder};
17
+ --sp-glass-border-subtle: ${o.glassBorderSubtle};
18
+ --sp-type-question: ${o.typeQuestion};
19
+ --sp-type-change: ${o.typeChange};
20
+ --sp-type-bug: ${o.typeBug};
21
+ --sp-type-other: ${o.typeOther};
22
+ --sp-type-question-bg: ${o.typeQuestionBg};
23
+ --sp-type-change-bg: ${o.typeChangeBg};
24
+ --sp-type-bug-bg: ${o.typeBugBg};
25
+ --sp-type-other-bg: ${o.typeOtherBg};
26
26
  --sp-radius: 12px;
27
27
  --sp-radius-lg: 16px;
28
28
  --sp-radius-xl: 20px;
@@ -35,140 +35,13 @@
35
35
  --sp-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.04);
36
36
  --sp-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
37
37
  --sp-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
38
- `}var se=class{constructor(e,t){this.colors=e;this.t=t;this.root=l("div",{style:`
39
- position:fixed;
40
- z-index:${2147483647};
41
- width:300px;
42
- padding:16px;
43
- border-radius:16px;
44
- background:${this.colors.glassBg};
45
- backdrop-filter:blur(24px);
46
- -webkit-backdrop-filter:blur(24px);
47
- border:1px solid ${this.colors.glassBorder};
48
- box-shadow:0 8px 32px ${this.colors.shadow}, 0 2px 8px ${this.colors.shadow};
49
- font-family:"Inter",system-ui,-apple-system,sans-serif;
50
- opacity:0;
51
- transform:translateY(8px) scale(0.98);
52
- transition:opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
53
- display:none;
54
- -webkit-font-smoothing:antialiased;
55
- `}),this.root.setAttribute("role","dialog"),this.root.setAttribute("aria-modal","true"),this.root.setAttribute("aria-label",this.t("popup.ariaLabel"));let s=[{type:"question",label:this.t("type.question"),icon:J},{type:"change",label:this.t("type.change"),icon:Z},{type:"bug",label:this.t("type.bug"),icon:ee},{type:"other",label:this.t("type.other"),icon:te}],o=l("div",{style:"display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px;"});for(let u of s){let h=document.createElement("button");h.style.cssText=`
56
- height:44px;
57
- border-radius:9999px;border:1px solid ${this.colors.border};
58
- background:${this.colors.glassBg};cursor:pointer;
59
- display:flex;align-items:center;justify-content:center;gap:5px;
60
- font-family:"Inter",system-ui,-apple-system,sans-serif;
61
- font-size:13px;font-weight:500;color:${this.colors.textTertiary};
62
- transition:all 0.2s ease;
63
- padding:0 12px;
64
- `;let b=v(u.icon);b.setAttribute("style","width:13px;height:13px;flex-shrink:0;"),h.appendChild(b);let f=document.createElement("span");c(f,u.label),h.appendChild(f),h.dataset.type=u.type,h.setAttribute("aria-pressed","false"),h.addEventListener("click",()=>{this.selectType(u.type,o)}),h.addEventListener("mouseenter",()=>{if(h.dataset.type!==this.selectedType){let k=P(h.dataset.type??"",this.colors);h.style.background=k,h.style.borderColor=M(h.dataset.type??"",this.colors)+"40"}}),h.addEventListener("mouseleave",()=>{h.dataset.type!==this.selectedType&&(h.style.background=this.colors.glassBg,h.style.borderColor=this.colors.border)}),o.appendChild(h)}this.textarea=document.createElement("textarea"),this.textarea.style.cssText=`
65
- width:100%;min-height:72px;max-height:152px;
66
- padding:10px 12px;border-radius:12px;
67
- border:1px solid ${this.colors.border};
68
- background:${this.colors.glassBgHeavy};
69
- color:${this.colors.text};font-family:"Inter",system-ui,-apple-system,sans-serif;
70
- font-size:13px;line-height:1.5;resize:vertical;
71
- outline:none;transition:all 0.2s ease;
72
- box-sizing:border-box;
73
- `,this.textarea.placeholder=this.t("popup.placeholder"),this.textarea.maxLength=5e3,this.textarea.setAttribute("aria-label",this.t("popup.textareaAria"));let i=l("div",{style:`
74
- font-size:11px;color:${this.colors.textTertiary};
75
- text-align:right;margin-top:4px;
76
- font-family:"Inter",system-ui,-apple-system,sans-serif;
77
- letter-spacing:0.01em;
78
- `}),r=navigator.userAgentData,a=r?r.platform==="macOS":navigator.platform?.includes("Mac")??/Macintosh|Mac OS X/i.test(navigator.userAgent);c(i,a?this.t("popup.submitHintMac"):this.t("popup.submitHintOther")),this.textarea.addEventListener("focus",()=>{this.textarea.style.borderColor=this.colors.accent,this.textarea.style.boxShadow=`0 0 0 3px ${this.colors.accent}14`,this.textarea.style.background=this.colors.bg}),this.textarea.addEventListener("blur",()=>{this.textarea.style.borderColor=this.colors.border,this.textarea.style.boxShadow="none",this.textarea.style.background=this.colors.glassBgHeavy}),this.textarea.addEventListener("input",()=>{this.updateSubmitState()}),this.textarea.addEventListener("keydown",u=>{u.key==="Enter"&&(u.ctrlKey||u.metaKey)&&(u.preventDefault(),this.submit()),u.key==="Escape"&&this.cancel()});let p=l("div",{style:"display:flex;justify-content:flex-end;gap:8px;margin-top:12px;"}),d=document.createElement("button");d.style.cssText=`
79
- height:34px;padding:0 16px;border-radius:9999px;
80
- border:1px solid ${this.colors.border};
81
- background:${this.colors.glassBg};
82
- color:${this.colors.textTertiary};font-family:"Inter",system-ui,-apple-system,sans-serif;
83
- font-size:13px;font-weight:500;cursor:pointer;
84
- transition:all 0.2s ease;
85
- `,c(d,this.t("popup.cancel")),d.addEventListener("click",()=>this.cancel()),d.addEventListener("mouseenter",()=>{d.style.borderColor=this.colors.accent,d.style.color=this.colors.accent}),d.addEventListener("mouseleave",()=>{d.style.borderColor=this.colors.border,d.style.color=this.colors.textTertiary}),this.submitBtn=document.createElement("button"),this.submitBtn.style.cssText=`
86
- height:34px;padding:0 18px;border-radius:9999px;
87
- border:none;background:${this.colors.accentGradient};
88
- color:#fff;font-family:"Inter",system-ui,-apple-system,sans-serif;
89
- font-size:13px;font-weight:600;cursor:pointer;
90
- opacity:0.35;pointer-events:none;
91
- transition:all 0.2s ease;
92
- box-shadow:0 2px 8px ${this.colors.accentGlow};
93
- `,c(this.submitBtn,this.t("popup.submit")),this.submitBtn.addEventListener("click",()=>this.submit()),p.appendChild(d),p.appendChild(this.submitBtn),this.root.appendChild(o),this.root.appendChild(this.textarea),this.root.appendChild(i),this.root.appendChild(p),document.body.appendChild(this.root)}colors;t;root;selectedType=null;textarea;submitBtn;resolve=null;previouslyFocused=null;onKeydownTrap=null;show(e){return new Promise(t=>{this.resolve=t,this.selectedType=null,this.textarea.value="",this.updateSubmitState(),this.resetTypeButtons(),this.previouslyFocused=document.activeElement;let s=e.bottom+8,o=e.left;s+220>window.innerHeight&&(s=e.top-220-8),o+300>window.innerWidth&&(o=e.right-300),o=Math.max(8,o),s=Math.max(8,s),this.root.style.top=`${s}px`,this.root.style.left=`${o}px`,this.root.style.display="block",this.onKeydownTrap=r=>{if(r.key==="Tab"){let a=Array.from(this.root.querySelectorAll('button:not([disabled]), textarea, input, [tabindex]:not([tabindex="-1"])'));if(a.length===0)return;let p=a[0],d=a[a.length-1];if(!p||!d)return;r.shiftKey?(document.activeElement===p||!this.root.contains(document.activeElement))&&(r.preventDefault(),d.focus()):(document.activeElement===d||!this.root.contains(document.activeElement))&&(r.preventDefault(),p.focus())}},this.root.addEventListener("keydown",this.onKeydownTrap);let i=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;this.root.style.transition=i?"none":"",requestAnimationFrame(()=>{this.root.style.opacity="1",this.root.style.transform="translateY(0) scale(1)",this.textarea.focus()})})}selectType(e,t){this.selectedType=e;let s=t.querySelectorAll("button");for(let o of s){let i=o.dataset.type===e,r=M(o.dataset.type??"",this.colors),a=P(o.dataset.type??"",this.colors);o.style.background=i?a:this.colors.glassBg,o.style.borderColor=i?r+"60":this.colors.border,o.style.color=i?r:this.colors.textTertiary,o.style.fontWeight=i?"600":"500",o.setAttribute("aria-pressed",String(i))}this.updateSubmitState()}resetTypeButtons(){let e=this.root.querySelectorAll("button[data-type]");for(let t of e)t.setAttribute("aria-pressed","false"),t.style.background=this.colors.glassBg,t.style.borderColor=this.colors.border,t.style.color=this.colors.textTertiary,t.style.fontWeight="500"}updateSubmitState(){let e=this.selectedType!==null&&this.textarea.value.trim().length>0;this.submitBtn.disabled=!e,this.submitBtn.style.opacity=e?"1":"0.35",this.submitBtn.style.pointerEvents=e?"auto":"none"}submit(){!this.selectedType||!this.textarea.value.trim()||(this.resolve?.({type:this.selectedType,message:this.textarea.value.trim()}),this.resolve=null,this.hideElement())}cancel(){this.resolve?.(null),this.resolve=null,this.hideElement()}hideElement(){this.onKeydownTrap&&(this.root.removeEventListener("keydown",this.onKeydownTrap),this.onKeydownTrap=null),this.root.style.opacity="0",this.root.style.transform="translateY(8px) scale(0.98)",this.previouslyFocused?.focus(),this.previouslyFocused=null,setTimeout(()=>{this.root.style.display="none"},250)}destroy(){this.root.remove()}};var ne=class{constructor(e,t,s){this.colors=e;this.bus=t;this.t=s;this.popup=new se(e,s),this.bus.on("annotation:start",()=>this.activate())}colors;bus;t;overlay=null;toolbar=null;drawingRect=null;startX=0;startY=0;isDrawing=!1;isActive=!1;popup;savedOverflow="";preActiveFocusElement=null;rafId=null;pendingMoveEvent=null;activate(){if(this.isActive)return;this.isActive=!0,this.preActiveFocusElement=document.activeElement,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden",this.overlay=l("div",{style:`
94
- position:fixed;inset:0;
95
- z-index:${2147483646};
96
- background:rgba(15, 23, 42, 0.04);
97
- cursor:crosshair;
98
- `}),this.overlay.setAttribute("aria-hidden","true"),this.toolbar=l("div",{style:`
99
- position:fixed;top:0;left:0;right:0;
100
- z-index:${2147483647};
101
- height:52px;
102
- background:${this.colors.glassBg};
103
- backdrop-filter:blur(24px);
104
- -webkit-backdrop-filter:blur(24px);
105
- border-bottom:1px solid ${this.colors.glassBorder};
106
- display:flex;align-items:center;justify-content:center;gap:16px;
107
- font-family:"Inter",system-ui,-apple-system,sans-serif;
108
- font-size:14px;color:${this.colors.text};
109
- box-shadow:0 4px 16px ${this.colors.shadow};
110
- -webkit-font-smoothing:antialiased;
111
- `});let e=l("span",{style:`
112
- width:8px;height:8px;border-radius:50%;
113
- background:${this.colors.accent};
114
- box-shadow:0 0 8px ${this.colors.accentGlow};
115
- animation:pulse 1.5s ease-in-out infinite;
116
- `}),t=document.createElement("style");t.textContent=["@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.4}}","@media(prefers-reduced-motion:reduce){@keyframes pulse{from,to{opacity:1}}}"].join(""),this.toolbar.appendChild(t);let s=l("span",{style:"font-weight:500;letter-spacing:-0.01em;"});c(s,this.t("annotator.instruction"));let o=document.createElement("button");o.style.cssText=`
117
- height:34px;padding:0 18px;border-radius:9999px;
118
- border:1px solid ${this.colors.border};
119
- background:${this.colors.glassBg};
120
- color:${this.colors.textTertiary};font-family:"Inter",system-ui,-apple-system,sans-serif;
121
- font-size:13px;font-weight:500;cursor:pointer;
122
- transition:all 0.2s ease;
123
- `,c(o,this.t("annotator.cancel")),o.addEventListener("click",()=>this.deactivate()),o.addEventListener("mouseenter",()=>{o.style.borderColor=this.colors.typeBug,o.style.color=this.colors.typeBug,o.style.background=this.colors.typeBugBg}),o.addEventListener("mouseleave",()=>{o.style.borderColor=this.colors.border,o.style.color=this.colors.textTertiary,o.style.background=this.colors.glassBg}),this.toolbar.appendChild(e),this.toolbar.appendChild(s),this.toolbar.appendChild(o),this.overlay.addEventListener("mousedown",this.onMouseDown),this.overlay.addEventListener("mousemove",this.onMouseMove),this.overlay.addEventListener("mouseup",this.onMouseUp),this.overlay.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.overlay.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.overlay.addEventListener("touchend",this.onTouchEnd),this.overlay.addEventListener("keydown",this.onOverlayKeyDown),this.overlay.setAttribute("tabindex","0"),document.addEventListener("keydown",this.onKeyDown),document.body.appendChild(this.overlay),document.body.appendChild(this.toolbar)}deactivate(){this.isActive&&(this.isActive=!1,this.isDrawing=!1,this.preActiveFocusElement=null,this.rafId!==null&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.pendingMoveEvent=null,document.body.style.overflow=this.savedOverflow,document.removeEventListener("keydown",this.onKeyDown),this.overlay?.remove(),this.toolbar?.remove(),this.drawingRect?.remove(),this.overlay=null,this.toolbar=null,this.drawingRect=null,this.bus.emit("annotation:end"))}onKeyDown=e=>{e.key==="Escape"&&this.deactivate()};onOverlayKeyDown=async e=>{if(e.key!=="Enter")return;e.preventDefault();let t=this.preActiveFocusElement;if(!t||!(t instanceof HTMLElement))return;let s=t.getBoundingClientRect();if(s.width<=0||s.height<=0)return;let o=new DOMRect(s.x,s.y,s.width,s.height),i=await this.popup.show(o);if(!i)return;let a={anchor:Te(t),rect:{xPct:0,yPct:0,wPct:1,hPct:1},scrollX:window.scrollX,scrollY:window.scrollY,viewportW:window.innerWidth,viewportH:window.innerHeight,devicePixelRatio:window.devicePixelRatio};this.deactivate(),this.bus.emit("annotation:complete",{annotation:a,type:i.type,message:i.message})};onMouseDown=e=>{this.startDrawing(e.clientX,e.clientY)};onTouchStart=e=>{e.preventDefault();let t=e.touches[0];t&&this.startDrawing(t.clientX,t.clientY)};startDrawing(e,t){this.isDrawing=!0,this.startX=e,this.startY=t,this.drawingRect?.remove(),this.drawingRect=l("div",{style:`
124
- position:fixed;
125
- border:2px solid ${this.colors.accent};
126
- background:${this.colors.accent}12;
127
- pointer-events:none;
128
- border-radius:8px;
129
- box-shadow:0 0 16px ${this.colors.accentGlow};
130
- transition:box-shadow 0.15s ease;
131
- `}),this.overlay?.appendChild(this.drawingRect)}onMouseMove=e=>{this.scheduleRectUpdate(e)};onTouchMove=e=>{e.preventDefault(),e.touches[0]&&this.scheduleRectUpdate(e.touches[0])};scheduleRectUpdate(e){!this.isDrawing||!this.drawingRect||(this.pendingMoveEvent=e,this.rafId===null&&(this.rafId=requestAnimationFrame(()=>{this.rafId=null;let t=this.pendingMoveEvent;if(!t||!this.drawingRect)return;let s=Math.min(t.clientX,this.startX),o=Math.min(t.clientY,this.startY),i=Math.abs(t.clientX-this.startX),r=Math.abs(t.clientY-this.startY);this.drawingRect.style.left=`${s}px`,this.drawingRect.style.top=`${o}px`,this.drawingRect.style.width=`${i}px`,this.drawingRect.style.height=`${r}px`})))}onTouchEnd=async e=>{let t=e.changedTouches[0];t&&await this.finishDrawing(t.clientX,t.clientY)};onMouseUp=async e=>{await this.finishDrawing(e.clientX,e.clientY)};finishDrawing=async(e,t)=>{if(!this.isDrawing||!this.drawingRect)return;this.isDrawing=!1;let s=Math.min(e,this.startX),o=Math.min(t,this.startY),i=Math.abs(e-this.startX),r=Math.abs(t-this.startY);if(i<10||r<10){this.drawingRect.remove(),this.drawingRect=null;return}let a=new DOMRect(s,o,i,r),p=await this.popup.show(a);if(!p){this.drawingRect?.remove(),this.drawingRect=null;return}let d=this.buildAnnotation(a);this.drawingRect?.remove(),this.drawingRect=null,this.deactivate(),this.bus.emit("annotation:complete",{annotation:d,type:p.type,message:p.message})};buildAnnotation(e){this.overlay&&(this.overlay.style.pointerEvents="none");let t=it(e);this.overlay&&(this.overlay.style.pointerEvents="auto");let s=Te(t),o=t.getBoundingClientRect(),i=rt(e,o);return{anchor:s,rect:i,scrollX:window.scrollX,scrollY:window.scrollY,viewportW:window.innerWidth,viewportH:window.innerHeight,devicePixelRatio:window.devicePixelRatio}}destroy(){this.deactivate(),this.popup.destroy()}};var H="siteping_retry_queue";async function O(n,e,t=3){for(let s=0;s<=t;s++){let o=new AbortController,i=setTimeout(()=>o.abort(),1e4);try{let p=await fetch(n,{...e,signal:o.signal});if(clearTimeout(i),p.ok||p.status>=400&&p.status<500||s===t)return p}catch(p){if(clearTimeout(i),s===t)throw p}let r=1e3*2**s,a=Math.random()*1e3-500;await new Promise(p=>setTimeout(p,r+a))}throw new Error("Max retries exceeded")}var Ls="siteping_retry_queue";async function ft(n){return typeof navigator<"u"&&navigator.locks?navigator.locks.request(Ls,()=>n()):n()}function Ms(n,e){ft(()=>{try{let t=localStorage.getItem(H),s=t?JSON.parse(t):[],o=Array.isArray(s)?s:[];o.length>=20&&o.shift(),o.push({endpoint:n,payload:e}),localStorage.setItem(H,JSON.stringify(o))}catch{}})}async function vt(n){await ft(async()=>{try{let e=localStorage.getItem(H);if(!e)return;let t=JSON.parse(e),s=Array.isArray(t)?t:[],o=s.filter(a=>a.endpoint===n);if(o.length===0)return;let i=[];for(let a of o)try{(await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a.payload)})).ok||i.push(a)}catch{i.push(a)}let r=s.filter(a=>a.endpoint!==n).concat(i);r.length>0?localStorage.setItem(H,JSON.stringify(r)):localStorage.removeItem(H)}catch{}})}var oe=class{constructor(e,t){this.endpoint=e;this.projectName=t}endpoint;projectName;async sendFeedback(e){try{let t=await O(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){let s=await t.text().catch(()=>"Unknown error");throw new Error(`Failed to send feedback: ${t.status} ${s}`)}return await t.json()}catch(t){throw Ms(this.endpoint,e),t}}async getFeedbacks(e,t){let s=new URLSearchParams({projectName:e});t?.page&&s.set("page",String(t.page)),t?.limit&&s.set("limit",String(t.limit)),t?.type&&s.set("type",t.type),t?.status&&s.set("status",t.status),t?.search&&s.set("search",t.search);let o=await O(`${this.endpoint}?${s.toString()}`,{method:"GET",cache:"no-store"});if(!o.ok)throw new Error(`Failed to fetch feedbacks: ${o.status}`);return await o.json()}async resolveFeedback(e,t){let s=await O(this.endpoint,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,projectName:this.projectName,status:t?"resolved":"open"})});if(!s.ok)throw new Error(`Failed to update feedback: ${s.status}`);return await s.json()}async deleteFeedback(e){let t=await O(this.endpoint,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,projectName:this.projectName})});if(!t.ok)throw new Error(`Failed to delete feedback: ${t.status}`)}async deleteAllFeedbacks(e){let t=await O(this.endpoint,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectName:e,deleteAll:!0})});if(!t.ok)throw new Error(`Failed to delete all feedbacks: ${t.status}`)}};var $=class{listeners=new Map;on(e,t){this.listeners.has(e)||this.listeners.set(e,new Set);let s=this.listeners.get(e);return s.add(t),()=>{s.delete(t)}}off(e,t){let s=this.listeners.get(e);s&&s.delete(t)}emit(e,...t){let s=this.listeners.get(e);if(s)for(let o of s)try{o(...t)}catch(i){console.error(`[siteping] Error in event listener for "${String(e)}":`,i)}}removeAll(){this.listeners.clear()}};var Bs=54,ie=class{constructor(e,t,s,o){this.bus=s;this.t=o;let i=t.position??"bottom-right",r=i==="bottom-right";this.items=[{id:"chat",icon:at,label:o("fab.messages")},{id:"annotate",icon:lt,label:o("fab.annotate")},{id:"toggle-annotations",icon:Ae,iconAlt:Le,label:o("fab.annotations")}],this.fab=document.createElement("button"),this.fab.className=`sp-fab sp-fab--${i} sp-anim-fab-in`,this.fab.style.position="fixed",this.fab.appendChild(v(Se)),this.fab.setAttribute("aria-label",o("fab.aria")),this.fab.setAttribute("aria-expanded","false"),this.fab.addEventListener("click",()=>this.toggle()),this.radialContainer=document.createElement("div"),this.radialContainer.className=`sp-radial sp-radial--${i}`,this.radialContainer.setAttribute("role","menu");for(let d=0;d<this.items.length;d++){let u=this.items[d];if(!u)continue;let h=document.createElement("button");h.className="sp-radial-item",h.style.setProperty("--sp-i",String(d)),h.appendChild(v(u.icon)),h.setAttribute("role","menuitem"),h.setAttribute("aria-label",u.label),h.dataset.itemId=u.id,h.addEventListener("click",f=>{f.stopPropagation(),this.handleItemClick(u.id)});let b=document.createElement("span");b.className="sp-radial-label",b.textContent=u.label,b.style.cssText=r?"position:absolute; right:54px; top:50%; transform:translateY(-50%); white-space:nowrap;":"position:absolute; left:54px; top:50%; transform:translateY(-50%); white-space:nowrap;",h.appendChild(b),this.radialContainer.appendChild(h)}this.root=document.createElement("div"),this.root.appendChild(this.radialContainer),this.root.appendChild(this.fab),e.appendChild(this.root);let a=e.host;this.onDocumentClick=d=>{this.isOpen&&!d.composedPath().includes(a)&&this.close()},document.addEventListener("click",this.onDocumentClick);let p=d=>{d.key==="Escape"&&this.isOpen&&(d.stopPropagation(),this.close())};this.fab.addEventListener("keydown",p),this.radialContainer.addEventListener("keydown",p),this.radialContainer.addEventListener("keydown",d=>{let u=Array.from(this.radialContainer.querySelectorAll(".sp-radial-item"));if(u.length===0||!this.isOpen)return;let h=e.activeElement??document.activeElement,b=u.indexOf(h);switch(d.key){case"ArrowUp":{d.preventDefault();let f=b<=0?u.length-1:b-1;u[f]?.focus();break}case"ArrowDown":{d.preventDefault();let f=b>=u.length-1?0:b+1;u[f]?.focus();break}case"Home":{d.preventDefault(),u[0]?.focus();break}case"End":{d.preventDefault(),u[u.length-1]?.focus();break}}})}bus;t;root;fab;radialContainer;badgeEl=null;isOpen=!1;annotationsVisible=!0;items;onDocumentClick;updateBadge(e){if(e<=0){this.badgeEl?.remove(),this.badgeEl=null;return}this.badgeEl||(this.badgeEl=document.createElement("span"),this.badgeEl.className="sp-fab-badge",this.badgeEl.setAttribute("role","status"),this.badgeEl.setAttribute("aria-live","polite"),this.fab.appendChild(this.badgeEl));let t=e>99?"99+":String(e);c(this.badgeEl,t),this.badgeEl.setAttribute("aria-label",this.t("fab.badge").replace("{count}",String(e)))}toggle(){this.isOpen?this.close():this.open()}open(){this.isOpen=!0,this.setFabIcon(G),this.fab.setAttribute("aria-expanded","true"),this.radialContainer.querySelectorAll(".sp-radial-item").forEach((t,s)=>{let o=-(16+Bs*(s+1));t.style.transform=`translate(0px, ${o}px) scale(1)`,t.classList.add("sp-radial-item--open")}),requestAnimationFrame(()=>{this.radialContainer.querySelector(".sp-radial-item")?.focus()})}close(){this.isOpen=!1,this.setFabIcon(Se),this.fab.setAttribute("aria-expanded","false"),this.radialContainer.querySelectorAll(".sp-radial-item").forEach(t=>{t.style.transform="translate(0, 0) scale(0.8)",t.classList.remove("sp-radial-item--open")}),this.fab.focus()}setFabIcon(e){let t=this.badgeEl;this.fab.replaceChildren(v(e)),t&&this.fab.appendChild(t)}handleItemClick(e){switch(this.close(),e){case"chat":this.bus.emit("panel:toggle",!0);break;case"annotate":this.bus.emit("annotation:start");break;case"toggle-annotations":{this.annotationsVisible=!this.annotationsVisible,this.bus.emit("annotations:toggle",this.annotationsVisible);let t=this.radialContainer.querySelector('[data-item-id="toggle-annotations"]');t&&t.replaceChildren(v(this.annotationsVisible?Ae:Le));break}}}destroy(){document.removeEventListener("click",this.onDocumentClick),this.root.remove()}};var yt={"panel.title":"Feedbacks","panel.ariaLabel":"Siteping-Feedback-Panel","panel.feedbackList":"Feedbackliste","panel.loading":"Feedbacks werden geladen","panel.close":"Panel schlie\xDFen","panel.deleteAll":"Alle l\xF6schen","panel.deleteAllConfirmTitle":"Alle l\xF6schen","panel.deleteAllConfirmMessage":"Alle Feedbacks f\xFCr dieses Projekt l\xF6schen? Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden.","panel.search":"Suchen...","panel.searchAria":"Feedbacks suchen","panel.filterAll":"Alle","panel.loadError":"Laden fehlgeschlagen","panel.retry":"Erneut versuchen","panel.empty":"Noch kein Feedback","panel.showMore":"Mehr anzeigen","panel.showLess":"Weniger anzeigen","panel.resolve":"Erledigen","panel.reopen":"Wieder \xF6ffnen","panel.delete":"L\xF6schen","panel.cancel":"Abbrechen","panel.confirmDelete":"L\xF6schen","panel.loadMore":"Mehr laden ({remaining} verbleibend)","panel.statusAll":"Alle","panel.statusOpen":"Offen","panel.statusResolved":"Erledigt","type.label":"Typ","type.question":"Frage","type.change":"\xC4nderung","type.bug":"Fehler","type.other":"Sonstiges","status.label":"Status","fab.aria":"Siteping \u2014 Feedback-Men\xFC","fab.messages":"Nachrichten","fab.annotate":"Kommentieren","fab.annotations":"Anmerkungen","annotator.instruction":"Zeichne ein Rechteck um den Bereich, den du kommentieren m\xF6chtest","annotator.cancel":"Abbrechen","popup.ariaLabel":"Feedbackformular","popup.placeholder":"Beschreibe dein Feedback...","popup.textareaAria":"Feedbacknachricht","popup.submitHintMac":"\u2318+Enter zum Senden","popup.submitHintOther":"Strg+Enter zum Senden","popup.cancel":"Abbrechen","popup.submit":"Senden","identity.title":"Identifiziere dich","identity.nameLabel":"Name","identity.namePlaceholder":"Dein Name","identity.emailLabel":"E-Mail","identity.emailPlaceholder":"deine@email.de","identity.cancel":"Abbrechen","identity.submit":"Fortfahren","marker.approximate":"Ungef\xE4hre Position (Konfidenz: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","fab.badge":"{count} unerledigte Feedbacks","feedback.sent.confirmation":"Feedback erfolgreich gesendet","feedback.error.message":"Feedback konnte nicht gesendet werden","feedback.deleted.confirmation":"Feedback gel\xF6scht","badge.count":"{count} unerledigte Feedbacks"};var xt={"panel.title":"Feedbacks","panel.ariaLabel":"Siteping feedback panel","panel.feedbackList":"Feedback list","panel.loading":"Loading feedbacks","panel.close":"Close panel","panel.deleteAll":"Delete all","panel.deleteAllConfirmTitle":"Delete all","panel.deleteAllConfirmMessage":"Delete all feedbacks for this project? This action cannot be undone.","panel.search":"Search...","panel.searchAria":"Search feedbacks","panel.filterAll":"All","panel.loadError":"Failed to load","panel.retry":"Retry","panel.empty":"No feedback yet","panel.showMore":"Show more","panel.showLess":"Show less","panel.resolve":"Resolve","panel.reopen":"Reopen","panel.delete":"Delete","panel.cancel":"Cancel","panel.confirmDelete":"Delete","panel.loadMore":"Load more ({remaining} remaining)","panel.statusAll":"All","panel.statusOpen":"Open","panel.statusResolved":"Resolved","type.label":"Type","type.question":"Question","type.change":"Change","type.bug":"Bug","type.other":"Other","status.label":"Status","fab.aria":"Siteping \u2014 Feedback menu","fab.messages":"Messages","fab.annotate":"Annotate","fab.annotations":"Annotations","annotator.instruction":"Draw a rectangle on the area to comment","annotator.cancel":"Cancel","popup.ariaLabel":"Feedback form","popup.placeholder":"Describe your feedback...","popup.textareaAria":"Feedback message","popup.submitHintMac":"\u2318+Enter to send","popup.submitHintOther":"Ctrl+Enter to send","popup.cancel":"Cancel","popup.submit":"Send","identity.title":"Identify yourself","identity.nameLabel":"Name","identity.namePlaceholder":"Your name","identity.emailLabel":"Email","identity.emailPlaceholder":"your@email.com","identity.cancel":"Cancel","identity.submit":"Continue","marker.approximate":"Approximate position (confidence: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","fab.badge":"{count} unresolved feedbacks","feedback.sent.confirmation":"Feedback sent successfully","feedback.error.message":"Failed to send feedback","feedback.deleted.confirmation":"Feedback deleted","badge.count":"{count} unresolved feedbacks"};var kt={"panel.title":"Comentarios","panel.ariaLabel":"Panel de comentarios de Siteping","panel.feedbackList":"Lista de comentarios","panel.loading":"Cargando comentarios","panel.close":"Cerrar panel","panel.deleteAll":"Eliminar todo","panel.deleteAllConfirmTitle":"Eliminar todo","panel.deleteAllConfirmMessage":"\xBFEliminar todos los comentarios de este proyecto? Esta acci\xF3n no se puede deshacer.","panel.search":"Buscar...","panel.searchAria":"Buscar comentarios","panel.filterAll":"Todos","panel.loadError":"No se pudo cargar","panel.retry":"Reintentar","panel.empty":"A\xFAn no hay comentarios","panel.showMore":"Mostrar m\xE1s","panel.showLess":"Mostrar menos","panel.resolve":"Resolver","panel.reopen":"Reabrir","panel.delete":"Eliminar","panel.cancel":"Cancelar","panel.confirmDelete":"Eliminar","panel.loadMore":"Cargar m\xE1s ({remaining} restantes)","panel.statusAll":"Todos","panel.statusOpen":"Abiertos","panel.statusResolved":"Resueltos","type.label":"Tipo","type.question":"Pregunta","type.change":"Cambio","type.bug":"Error","type.other":"Otro","status.label":"Estado","fab.aria":"Siteping \u2014 Men\xFA de comentarios","fab.messages":"Mensajes","fab.annotate":"Anotar","fab.annotations":"Anotaciones","annotator.instruction":"Dibuja un rect\xE1ngulo sobre el \xE1rea que quieres comentar","annotator.cancel":"Cancelar","popup.ariaLabel":"Formulario de comentarios","popup.placeholder":"Describe tu comentario...","popup.textareaAria":"Mensaje de comentario","popup.submitHintMac":"\u2318+Enter para enviar","popup.submitHintOther":"Ctrl+Enter para enviar","popup.cancel":"Cancelar","popup.submit":"Enviar","identity.title":"Identif\xEDcate","identity.nameLabel":"Nombre","identity.namePlaceholder":"Tu nombre","identity.emailLabel":"Correo electr\xF3nico","identity.emailPlaceholder":"tu@email.com","identity.cancel":"Cancelar","identity.submit":"Continuar","marker.approximate":"Posici\xF3n aproximada (confianza: {confidence}%)","marker.aria":"Comentario #{number}: {type} \u2014 {message}","fab.badge":"{count} comentarios sin resolver","feedback.sent.confirmation":"Comentario enviado correctamente","feedback.error.message":"No se pudo enviar el comentario","feedback.deleted.confirmation":"Comentario eliminado","badge.count":"{count} comentarios sin resolver"};var wt={"panel.title":"Feedbacks","panel.ariaLabel":"Panneau de feedback Siteping","panel.feedbackList":"Liste des feedbacks","panel.loading":"Chargement des feedbacks","panel.close":"Fermer le panneau","panel.deleteAll":"Tout supprimer","panel.deleteAllConfirmTitle":"Tout supprimer","panel.deleteAllConfirmMessage":"Supprimer tous les feedbacks de ce projet ? Cette action est irr\xE9versible.","panel.search":"Rechercher...","panel.searchAria":"Rechercher dans les feedbacks","panel.filterAll":"Tous","panel.loadError":"Erreur de chargement","panel.retry":"R\xE9essayer","panel.empty":"Aucun feedback pour le moment","panel.showMore":"Voir plus","panel.showLess":"Voir moins","panel.resolve":"R\xE9soudre","panel.reopen":"Rouvrir","panel.delete":"Supprimer","panel.cancel":"Annuler","panel.confirmDelete":"Supprimer","panel.loadMore":"Voir plus ({remaining} restants)","panel.statusAll":"Tous","panel.statusOpen":"Ouvert","panel.statusResolved":"R\xE9solu","type.label":"Type","type.question":"Question","type.change":"Changement","type.bug":"Bug","type.other":"Autre","status.label":"Statut","fab.aria":"Siteping \u2014 Menu feedback","fab.messages":"Messages","fab.annotate":"Annoter","fab.annotations":"Annotations","annotator.instruction":"Tracez un rectangle sur la zone \xE0 commenter","annotator.cancel":"Annuler","popup.ariaLabel":"Formulaire de feedback","popup.placeholder":"D\xE9crivez votre retour...","popup.textareaAria":"Message de feedback","popup.submitHintMac":"\u2318+Entr\xE9e pour envoyer","popup.submitHintOther":"Ctrl+Entr\xE9e pour envoyer","popup.cancel":"Annuler","popup.submit":"Envoyer","identity.title":"Identifiez-vous","identity.nameLabel":"Nom","identity.namePlaceholder":"Votre nom","identity.emailLabel":"Email","identity.emailPlaceholder":"votre@email.com","identity.cancel":"Annuler","identity.submit":"Continuer","marker.approximate":"Position approximative (confiance : {confidence}%)","marker.aria":"Feedback n\xB0{number} : {type} \u2014 {message}","fab.badge":"{count} feedbacks non r\xE9solus","feedback.sent.confirmation":"Feedback envoy\xE9 avec succ\xE8s","feedback.error.message":"\xC9chec de l'envoi du feedback","feedback.deleted.confirmation":"Feedback supprim\xE9","badge.count":"{count} feedbacks non r\xE9solus"};var Ct={"panel.title":"Feedback","panel.ariaLabel":"Pannello feedback di Siteping","panel.feedbackList":"Elenco feedback","panel.loading":"Caricamento feedback","panel.close":"Chiudi pannello","panel.deleteAll":"Elimina tutto","panel.deleteAllConfirmTitle":"Elimina tutto","panel.deleteAllConfirmMessage":"Eliminare tutti i feedback per questo progetto? Questa azione non pu\xF2 essere annullata.","panel.search":"Cerca...","panel.searchAria":"Cerca feedback","panel.filterAll":"Tutti","panel.loadError":"Caricamento non riuscito","panel.retry":"Riprova","panel.empty":"Nessun feedback ancora","panel.showMore":"Mostra di pi\xF9","panel.showLess":"Mostra meno","panel.resolve":"Risolvi","panel.reopen":"Riapri","panel.delete":"Elimina","panel.cancel":"Annulla","panel.confirmDelete":"Elimina","panel.loadMore":"Carica altro ({remaining} rimanenti)","panel.statusAll":"Tutti","panel.statusOpen":"Aperti","panel.statusResolved":"Risolti","type.label":"Tipo","type.question":"Domanda","type.change":"Modifica","type.bug":"Bug","type.other":"Altro","status.label":"Stato","fab.aria":"Siteping \u2014 Menu feedback","fab.messages":"Messaggi","fab.annotate":"Annota","fab.annotations":"Annotazioni","annotator.instruction":"Disegna un rettangolo sull'area da commentare","annotator.cancel":"Annulla","popup.ariaLabel":"Modulo feedback","popup.placeholder":"Descrivi il tuo feedback...","popup.textareaAria":"Messaggio di feedback","popup.submitHintMac":"\u2318+Invio per inviare","popup.submitHintOther":"Ctrl+Invio per inviare","popup.cancel":"Annulla","popup.submit":"Invia","identity.title":"Identificati","identity.nameLabel":"Nome","identity.namePlaceholder":"Il tuo nome","identity.emailLabel":"Email","identity.emailPlaceholder":"tua@email.com","identity.cancel":"Annulla","identity.submit":"Continua","marker.approximate":"Posizione approssimativa (confidenza: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","fab.badge":"{count} feedback non risolti","feedback.sent.confirmation":"Feedback inviato con successo","feedback.error.message":"Invio del feedback non riuscito","feedback.deleted.confirmation":"Feedback eliminato","badge.count":"{count} feedback non risolti"};var Et={"panel.title":"Feedbacks","panel.ariaLabel":"Painel de feedback do Siteping","panel.feedbackList":"Lista de feedbacks","panel.loading":"Carregando feedbacks","panel.close":"Fechar painel","panel.deleteAll":"Excluir tudo","panel.deleteAllConfirmTitle":"Excluir tudo","panel.deleteAllConfirmMessage":"Excluir todos os feedbacks deste projeto? Esta a\xE7\xE3o n\xE3o pode ser desfeita.","panel.search":"Pesquisar...","panel.searchAria":"Pesquisar feedbacks","panel.filterAll":"Todos","panel.loadError":"Falha ao carregar","panel.retry":"Tentar novamente","panel.empty":"Nenhum feedback ainda","panel.showMore":"Mostrar mais","panel.showLess":"Mostrar menos","panel.resolve":"Resolver","panel.reopen":"Reabrir","panel.delete":"Excluir","panel.cancel":"Cancelar","panel.confirmDelete":"Excluir","panel.loadMore":"Carregar mais ({remaining} restantes)","panel.statusAll":"Todos","panel.statusOpen":"Abertos","panel.statusResolved":"Resolvidos","type.label":"Tipo","type.question":"Pergunta","type.change":"Altera\xE7\xE3o","type.bug":"Bug","type.other":"Outro","status.label":"Status","fab.aria":"Siteping \u2014 Menu de feedback","fab.messages":"Mensagens","fab.annotate":"Anotar","fab.annotations":"Anota\xE7\xF5es","annotator.instruction":"Desenhe um ret\xE2ngulo na \xE1rea que deseja comentar","annotator.cancel":"Cancelar","popup.ariaLabel":"Formul\xE1rio de feedback","popup.placeholder":"Descreva seu feedback...","popup.textareaAria":"Mensagem de feedback","popup.submitHintMac":"\u2318+Enter para enviar","popup.submitHintOther":"Ctrl+Enter para enviar","popup.cancel":"Cancelar","popup.submit":"Enviar","identity.title":"Identifique-se","identity.nameLabel":"Nome","identity.namePlaceholder":"Seu nome","identity.emailLabel":"E-mail","identity.emailPlaceholder":"seu@email.com","identity.cancel":"Cancelar","identity.submit":"Continuar","marker.approximate":"Posi\xE7\xE3o aproximada (confian\xE7a: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","fab.badge":"{count} feedbacks n\xE3o resolvidos","feedback.sent.confirmation":"Feedback enviado com sucesso","feedback.error.message":"Falha ao enviar feedback","feedback.deleted.confirmation":"Feedback exclu\xEDdo","badge.count":"{count} feedbacks n\xE3o resolvidos"};var Tt={"panel.title":"\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C","panel.ariaLabel":"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0439 \u0441\u0432\u044F\u0437\u0438 Siteping","panel.feedbackList":"\u0421\u043F\u0438\u0441\u043E\u043A \u043E\u0442\u0437\u044B\u0432\u043E\u0432","panel.loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043E\u0442\u0437\u044B\u0432\u043E\u0432","panel.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C","panel.deleteAll":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0451","panel.deleteAllConfirmTitle":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0451","panel.deleteAllConfirmMessage":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435 \u043E\u0442\u0437\u044B\u0432\u044B \u044D\u0442\u043E\u0433\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430? \u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0442\u0438\u043C\u043E.","panel.search":"\u041F\u043E\u0438\u0441\u043A...","panel.searchAria":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u043E\u0442\u0437\u044B\u0432\u0430\u043C","panel.filterAll":"\u0412\u0441\u0435","panel.loadError":"\u041E\u0448\u0438\u0431\u043A\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438","panel.retry":"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C","panel.empty":"\u041F\u043E\u043A\u0430 \u043D\u0435\u0442 \u043E\u0442\u0437\u044B\u0432\u043E\u0432","panel.showMore":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435","panel.showLess":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043C\u0435\u043D\u044C\u0448\u0435","panel.resolve":"\u0420\u0435\u0448\u0435\u043D\u043E","panel.reopen":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E","panel.delete":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","panel.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","panel.confirmDelete":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","panel.loadMore":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451 ({remaining} \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C)","panel.statusAll":"\u0412\u0441\u0435","panel.statusOpen":"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0435","panel.statusResolved":"\u0420\u0435\u0448\u0451\u043D\u043D\u044B\u0435","type.label":"\u0422\u0438\u043F","type.question":"\u0412\u043E\u043F\u0440\u043E\u0441","type.change":"\u0423\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u0435","type.bug":"\u0411\u0430\u0433","type.other":"\u0414\u0440\u0443\u0433\u043E\u0435","status.label":"\u0421\u0442\u0430\u0442\u0443\u0441","fab.aria":"Siteping \u2014 \u041C\u0435\u043D\u044E \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0439 \u0441\u0432\u044F\u0437\u0438","fab.messages":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F","fab.annotate":"\u0410\u043D\u043D\u043E\u0442\u0430\u0446\u0438\u044F","fab.annotations":"\u0410\u043D\u043D\u043E\u0442\u0430\u0446\u0438\u0438","annotator.instruction":"\u0412\u044B\u0434\u0435\u043B\u0438\u0442\u0435 \u043E\u0431\u043B\u0430\u0441\u0442\u044C \u0434\u043B\u044F \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F","annotator.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","popup.ariaLabel":"\u0424\u043E\u0440\u043C\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0439 \u0441\u0432\u044F\u0437\u0438","popup.placeholder":"\u041E\u043F\u0438\u0448\u0438\u0442\u0435 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0443 \u0438\u043B\u0438 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435...","popup.textareaAria":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","popup.submitHintMac":"\u2318+Enter \u2014 \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","popup.submitHintOther":"Ctrl+Enter \u2014 \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","popup.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","popup.submit":"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","identity.title":"\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044C\u0442\u0435\u0441\u044C","identity.nameLabel":"\u0418\u043C\u044F","identity.namePlaceholder":"\u0412\u0430\u0448\u0435 \u0438\u043C\u044F","identity.emailLabel":"Email","identity.emailPlaceholder":"\u0432\u0430\u0448@email.com","identity.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","identity.submit":"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C","marker.approximate":"\u041F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u0430\u044F \u043F\u043E\u0437\u0438\u0446\u0438\u044F (\u0442\u043E\u0447\u043D\u043E\u0441\u0442\u044C: {confidence}%)","marker.aria":"\u041E\u0442\u0437\u044B\u0432 #{number}: {type} \u2014 {message}","fab.badge":"\u041D\u0435\u0440\u0435\u0448\u0451\u043D\u043D\u044B\u0445 \u043E\u0442\u0437\u044B\u0432\u043E\u0432: {count}","feedback.sent.confirmation":"\u041E\u0442\u0437\u044B\u0432 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D","feedback.error.message":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u0437\u044B\u0432","feedback.deleted.confirmation":"\u041E\u0442\u0437\u044B\u0432 \u0443\u0434\u0430\u043B\u0451\u043D","badge.count":"\u041D\u0435\u0440\u0435\u0448\u0451\u043D\u043D\u044B\u0445 \u043E\u0442\u0437\u044B\u0432\u043E\u0432: {count}"};var Fe={de:yt,en:xt,es:kt,fr:wt,it:Ct,pt:Et,ru:Tt};function re(n){let e=(n.split("-")[0]??n).toLowerCase();Fe[e]||console.warn(`[siteping] Unknown locale "${n}", falling back to "en"`);let t=Fe[e]??Fe.en??{};return s=>t[s]??s}function N(n,e){switch(n){case"question":return e("type.question");case"change":return e("type.change");case"bug":return e("type.bug");case"other":return e("type.other");default:return n}}var St="siteping_identity";function At(){try{let n=localStorage.getItem(St);if(!n)return null;let e=JSON.parse(n);if(typeof e=="object"&&e!==null&&"name"in e&&typeof e.name=="string"&&"email"in e&&typeof e.email=="string"){let t=e;if(t.name&&t.email)return t}return null}catch{return null}}function Lt(n){try{localStorage.setItem(St,JSON.stringify(n))}catch{}}function Fs(n,e){if(n===e)return 0;if(n.length===0)return e.length;if(e.length===0)return n.length;if(n.length>e.length){let r=n;n=e,e=r}let t=n.length,s=e.length,o=new Array(t+1);for(let r=0;r<=t;r++)o[r]=r;let i=new Array(t+1);for(let r=1;r<=s;r++){i[0]=r;for(let p=1;p<=t;p++){let d=o[p-1]??0;i[p]=n[p-1]===e[r-1]?d:1+Math.min(d,o[p]??0,i[p-1]??0)}let a=o;o=i,i=a}return o[t]??0}function _(n,e){if(n===e)return 1;let t=Math.max(n.length,e.length);return t===0?1:1-Fs(n,e)/t}function Re(n,e,t=.6){if(!e||!n)return 0;if(n.includes(e))return 1;let s=e.length;if(s>n.length){let a=_(n,e);return a>=t?a:0}let o=0,i=n.length>500?n.slice(0,500):n,r=i.length-s;for(let a=0;a<=r;a++){let p=i.slice(a,a+s),d=_(p,e);if(d>o&&(o=d),o>=.95)break}return o>=t?o:0}var Rs=300,Ps=.3;function Pe(n,e){if(!e.textSnippet)return!0;let t=(n.textContent?.trim()??"").slice(0,500);return Re(t,e.textSnippet,.5)>Ps}function Is(n){if(n.elementId){let e=document.getElementById(n.elementId);if(e&&e.tagName===n.elementTag&&Pe(e,n))return{element:e,confidence:1,strategy:"id"}}try{let e=document.querySelector(n.cssSelector);if(e&&e.tagName===n.elementTag&&Pe(e,n))return{element:e,confidence:.95,strategy:"css"}}catch{}try{let t=document.evaluate(n.xpath,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(t instanceof Element&&t.tagName===n.elementTag&&Pe(t,n))return{element:t,confidence:.9,strategy:"xpath"}}catch{}return Ns(n)}function Ns(n){let e=n.elementTag.toLowerCase(),t=document.querySelectorAll(e);if(t.length===0)return null;let s=null,o=0,i=Math.min(t.length,Rs);for(let r=0;r<i;r++){let a=t[r];if(!a)continue;let p=Ds(a,n);if(p>o&&(o=p,s=a,o>=.85))break}return!s||o<.4?null:{element:s,confidence:Math.min(o,.85),strategy:"scan"}}function Ds(n,e){let t=0,s=0,o=(n.textContent?.trim()??"").slice(0,500);if(e.textSnippet&&(s+=40,t+=Re(o,e.textSnippet,.5)*40),e.fingerprint&&(s+=20,t+=nt(n,e.fingerprint)*20),e.textPrefix||e.textSuffix){s+=20;let i=0,r=0;if(e.textPrefix){let a=D(n,"before");i+=a?_(a,e.textPrefix):0,r++}if(e.textSuffix){let a=D(n,"after");i+=a?_(a,e.textSuffix):0,r++}r>0&&(t+=i/r*20)}if(e.neighborText){s+=20;let i=X(n);t+=i?_(i,e.neighborText)*20:0}return s>0?t/s:0}function ae(n,e){let t=Is(n);if(!t)return null;let s=t.element.getBoundingClientRect(),o=new DOMRect(s.x+e.xPct*s.width,s.y+e.yPct*s.height,e.wPct*s.width,e.hPct*s.height);return{element:t.element,rect:o,confidence:t.confidence,strategy:t.strategy}}function Ie(n){return{cssSelector:n.cssSelector,xpath:n.xpath,textSnippet:n.textSnippet,elementTag:n.elementTag,elementId:n.elementId??void 0,textPrefix:n.textPrefix,textSuffix:n.textSuffix,fingerprint:n.fingerprint,neighborText:n.neighborText}}function le(n){return{xPct:n.xPct,yPct:n.yPct,wPct:n.wPct,hPct:n.hPct}}var Mt=13;function Bt(n){return{top:n.top+window.scrollY-Mt,left:n.right+window.scrollX-Mt}}function j(n,e){let t=n.entries[e],s=n.elementIndices[e];if(!(!t||s===void 0))return t.elements[s]}var Ft=300,Rt=200,_s=.7,Os=28,Pt=32,pe=class{constructor(e,t,s,o){this.colors=e;this.tooltip=t;this.bus=s;this.t=o;this.container=l("div",{style:`position:absolute;top:0;left:0;pointer-events:none;z-index:${2147483646};`}),this.container.id="siteping-markers",document.body.appendChild(this.container),this.bus.on("annotations:toggle",i=>{this.container.style.display=i?"block":"none"}),this.resizeHandler=()=>this.scheduleReposition(),window.addEventListener("resize",this.resizeHandler,{passive:!0}),this.scrollHandler=()=>this.scheduleReposition(),window.addEventListener("scroll",this.scrollHandler,{passive:!0,capture:!0}),this.mutationObserver=new MutationObserver(i=>{if(i.length>20){this.scheduleReposition();return}let r=!1;for(let a of i)if(!(this.container.contains(a.target)||this.tooltip.contains(a.target))){r=!0;break}r&&this.scheduleReposition()}),this.mutationObserver.observe(document.body,{childList:!0,subtree:!0,attributes:!1,characterData:!1}),this.onDocumentClickForClusters=i=>{this.container.contains(i.target)||this.collapseAllClusters()},document.addEventListener("click",this.onDocumentClickForClusters)}colors;tooltip;bus;t;container;entries=[];highlightElements=[];pinnedFeedback=null;onDocumentClick=null;repositionTimer=null;mutationObserver=null;scrollHandler=null;resizeHandler=null;anchorCache=new Map;clusters=[];onDocumentClickForClusters=null;get count(){return this.entries.length}scheduleReposition(){this.repositionTimer||("requestIdleCallback"in window?this.repositionTimer=window.requestIdleCallback(()=>{this.repositionTimer=null,this.repositionAll()},{timeout:Rt+100}):this.repositionTimer=+setTimeout(()=>{this.repositionTimer=null,this.repositionAll()},Rt))}repositionAll(){let e=new Set;for(let t of this.entries)for(let s=0;s<t.feedback.annotations.length;s++){let o=t.elements[s];if(!o)continue;let i=t.feedback.annotations[s];if(!i)continue;let r=`${t.feedback.id}:${s}`;e.add(r);let p=this.anchorCache.get(r)?.deref(),d;if(p?.isConnected){let h=p.getBoundingClientRect(),b=le(i);d={element:p,rect:new DOMRect(h.left+b.xPct*h.width,h.top+b.yPct*h.height,b.wPct*h.width,b.hPct*h.height),confidence:1,strategy:"css"}}else d=ae(Ie(i),le(i)),d?.element&&this.anchorCache.set(r,new WeakRef(d.element));if(!d){o.style.display="none";continue}let u=Bt(d.rect);t.baseTop=u.top,t.baseLeft=u.left,o.style.display="flex",this.applyConfidenceStyle(o,d.confidence,t.feedback)}for(let t of this.anchorCache.keys())e.has(t)||this.anchorCache.delete(t);this.applyClusterPositions()}applyClusterPositions(){for(let e of this.clusters)e.expanded?this.applyFanPositions(e):this.applyStackPositions(e)}render(e){this.clear(),e.forEach((t,s)=>{let o=this.buildEntry(t,s+1);this.entries.push(o)}),this.buildClusters()}addFeedback(e,t){let s=this.buildEntry(e,t);for(let o of s.elements)o.style.animation="sp-marker-in 0.35s cubic-bezier(0.34,1.56,0.64,1) both";this.entries.push(s),this.buildClusters()}buildEntry(e,t){let s={feedback:e,elements:[],baseTop:0,baseLeft:0};for(let o of e.annotations){let i=ae(Ie(o),le(o));if(!i)continue;let r=Bt(i.rect);s.baseTop=r.top,s.baseLeft=r.left;let a=this.createMarker(t,e,r);this.applyConfidenceStyle(a,i.confidence,e),this.container.appendChild(a),s.elements.push(a)}return s}buildClusters(){for(let s of this.container.querySelectorAll(".sp-cluster-badge"))s.remove();let e=[];for(let s of this.entries)for(let o=0;o<s.elements.length;o++)e.push({entry:s,elIdx:o});let t=new Set;this.clusters=[];for(let s=0;s<e.length;s++){if(t.has(s))continue;let o=e[s];if(!o)continue;let i={entries:[o.entry],elementIndices:[o.elIdx],expanded:!1};t.add(s);for(let r=s+1;r<e.length;r++){if(t.has(r))continue;let a=o.entry,p=e[r];if(!p)continue;let d=p.entry;Math.sqrt((a.baseLeft-d.baseLeft)**2+(a.baseTop-d.baseTop)**2)<Os&&(i.entries.push(d),i.elementIndices.push(p.elIdx),t.add(r))}this.clusters.push(i)}for(let s of this.clusters)s.entries.length<=1||(this.applyStackPositions(s),this.addClusterBadge(s))}applyStackPositions(e){let t=e.entries[0];if(!t)return;let{baseTop:s,baseLeft:o}=t,i=e.entries.length<=1;for(let r=0;r<e.entries.length;r++){let a=j(e,r);a&&(a.style.top=`${s+(i?0:r*3)}px`,a.style.left=`${o+(i?0:r*3)}px`,a.style.zIndex=String(r+1))}}applyFanPositions(e){let t=e.entries[0];if(!t)return;let{baseTop:s,baseLeft:o}=t,i=e.entries.length,r=(i-1)*Pt,a=o-r/2;for(let p=0;p<i;p++){let d=j(e,p);d&&(d.style.top=`${s}px`,d.style.left=`${a+p*Pt}px`,d.style.zIndex=String(10+p))}}addClusterBadge(e){let t=j(e,e.entries.length-1);if(!t)return;let s=l("div",{class:"sp-cluster-badge",style:`
132
- position:absolute;top:-6px;right:-6px;
133
- min-width:16px;height:16px;padding:0 4px;
134
- border-radius:9999px;
135
- background:${this.colors.accent};color:#fff;
136
- font-size:10px;font-weight:700;
137
- display:flex;align-items:center;justify-content:center;
138
- border:1.5px solid #fff;
139
- pointer-events:none;
140
- font-family:"Inter",system-ui,-apple-system,sans-serif;
141
- line-height:1;
142
- `});c(s,String(e.entries.length)),t.appendChild(s)}setBadgesVisible(e,t){for(let s=0;s<e.entries.length;s++){let o=j(e,s)?.querySelector(".sp-cluster-badge");o&&(o.style.display=t?"flex":"none")}}findCluster(e){for(let t of this.clusters)if(!(t.entries.length<=1)){for(let s=0;s<t.entries.length;s++)if(j(t,s)===e)return t}return null}handleClusterClick(e,t){let s=this.findCluster(e);return s?s.expanded?!1:(t.stopPropagation(),this.collapseAllClusters(),s.expanded=!0,this.applyFanPositions(s),this.setBadgesVisible(s,!1),!0):!1}collapseCluster(e){e.expanded&&(e.expanded=!1,this.applyStackPositions(e),this.setBadgesVisible(e,!0))}collapseAllClusters(){for(let e of this.clusters)this.collapseCluster(e)}applyConfidenceStyle(e,t,s){let o=s.status==="resolved";t<_s&&!o?(e.style.borderStyle="dashed",e.style.opacity="0.7",e.title=this.t("marker.approximate").replace("{confidence}",String(Math.round(t*100)))):(e.style.borderStyle="solid",e.style.opacity="1",e.title="")}createMarker(e,t,s){let o=M(t.type,this.colors),i=t.status==="resolved",r=l("div",{style:`
143
- position:absolute;
144
- top:${s.top}px;
145
- left:${s.left}px;
146
- width:26px;height:26px;
147
- border-radius:50%;
148
- background:${i?"rgba(241,245,249,0.9)":"rgba(255,255,255,0.92)"};
149
- border:2px solid ${i?"#cbd5e1":o};
150
- display:flex;align-items:center;justify-content:center;
151
- font-family:"Inter",system-ui,-apple-system,sans-serif;
152
- font-size:11px;font-weight:700;
153
- color:${i?"#94a3b8":o};
154
- cursor:pointer;pointer-events:auto;
155
- box-shadow:${i?"0 2px 8px rgba(0,0,0,0.06)":`0 2px 12px ${o}25, 0 2px 6px rgba(0,0,0,0.06)`};
156
- transition:top 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.15s ease, box-shadow 0.15s ease;
157
- user-select:none;
158
- -webkit-font-smoothing:antialiased;
159
- `});r.dataset.feedbackId=t.id,r.setAttribute("tabindex","0"),r.setAttribute("role","button");let a=t.message.length>60?`${t.message.slice(0,60)}...`:t.message,p=this.t("marker.aria").replace("{number}",String(e)).replace("{type}",N(t.type,this.t)).replace("{message}",a);r.setAttribute("aria-label",p),r.setAttribute("aria-describedby",this.tooltip.tooltipId),c(r,i?"\u2713":String(e)),r.addEventListener("mouseenter",()=>{r.style.transform="scale(1.2)",r.style.boxShadow=i?"0 4px 16px rgba(0,0,0,0.1)":`0 4px 20px ${o}35, 0 4px 12px rgba(0,0,0,0.08)`,this.tooltip.show(t,r.getBoundingClientRect()),this.pinnedFeedback||this.showHighlight(t)}),r.addEventListener("mouseleave",()=>{r.style.transform="scale(1)",r.style.boxShadow=i?"0 2px 8px rgba(0,0,0,0.06)":`0 2px 12px ${o}25, 0 2px 6px rgba(0,0,0,0.06)`,this.tooltip.scheduleHide(),this.pinnedFeedback||this.clearHighlight()});let d=u=>{u instanceof MouseEvent&&this.handleClusterClick(r,u)||(this.pinHighlight(t),this.bus.emit("panel:toggle",!0),r.dispatchEvent(new CustomEvent("sp-marker-click",{detail:{feedbackId:t.id},bubbles:!0})))};return r.addEventListener("click",u=>d(u)),r.addEventListener("keydown",u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d(u))}),r}highlight(e){for(let t of this.entries)if(t.feedback.id===e)for(let s of t.elements)s.style.animation="sp-pulse-ring 0.7s ease-out",s.addEventListener("animationend",()=>{s.style.animation=""},{once:!0})}showHighlight(e){this.removeHighlightElements();for(let t of e.annotations){let s=ae(Ie(t),le(t));if(!s)continue;let o=M(e.type,this.colors),i=s.rect,r=l("div",{style:`
160
- position:absolute;
161
- top:${i.top+window.scrollY}px;
162
- left:${i.left+window.scrollX}px;
163
- width:${i.width}px;height:${i.height}px;
164
- border:2px solid ${o};
165
- background:${o}0c;
166
- border-radius:8px;
167
- pointer-events:none;z-index:-1;
168
- opacity:0;
169
- box-shadow:0 0 16px ${o}20;
170
- transition:opacity ${Ft}ms ease;
171
- `});this.container.appendChild(r),this.highlightElements.push(r),r.offsetHeight,r.style.opacity="1"}}pinHighlight(e){this.unpinHighlight(),this.showHighlight(e),this.pinnedFeedback=e,this.onDocumentClick=t=>{this.container.contains(t.target)||this.unpinHighlight()},document.addEventListener("click",this.onDocumentClick,{capture:!0})}unpinHighlight(){this.onDocumentClick&&(document.removeEventListener("click",this.onDocumentClick,{capture:!0}),this.onDocumentClick=null),this.pinnedFeedback=null,this.clearHighlight()}clearHighlight(){for(let e of this.highlightElements)e.style.opacity="0",setTimeout(()=>e.remove(),Ft);this.highlightElements=[]}removeHighlightElements(){for(let e of this.highlightElements)e.remove();this.highlightElements=[]}clear(){this.unpinHighlight(),this.container.replaceChildren(),this.entries=[],this.clusters=[],this.anchorCache.clear()}destroy(){this.unpinHighlight(),this.repositionTimer&&("cancelIdleCallback"in window&&window.cancelIdleCallback(this.repositionTimer),clearTimeout(this.repositionTimer)),this.resizeHandler&&window.removeEventListener("resize",this.resizeHandler),this.scrollHandler&&window.removeEventListener("scroll",this.scrollHandler,{capture:!0}),this.onDocumentClickForClusters&&document.removeEventListener("click",this.onDocumentClickForClusters),this.mutationObserver?.disconnect(),this.container.remove()}};var Hs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>',$s='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><line x1="3" y1="9" x2="21" y2="9"/><line x1="3" y1="15" x2="21" y2="15"/><line x1="9" y1="3" x2="9" y2="21"/><line x1="15" y1="3" x2="15" y2="21"/></svg>',js='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 3H6a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2 2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h2"/><path d="M16 3h2a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2 2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-2"/></svg>',Ne={"export.label":"Export","export.csv":"Export CSV","export.json":"Export JSON"},Dt={"export.label":"Exporter","export.csv":"Exporter CSV","export.json":"Exporter JSON"},_t=`
38
+ `}var Ro,ch,Mo,dh,oe=gA(()=>{Ro="#0066ff",ch=/^#[0-9a-fA-F]{6}$/,Mo=/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,dh=/^#[0-9a-fA-F]{8}$/;});var Po=zu((An,en)=>{(function(o,s){typeof An=="object"&&typeof en<"u"?en.exports=s():typeof define=="function"&&define.amd?define(s):(o=typeof globalThis<"u"?globalThis:o||self,o.html2canvas=s());})(An,(function(){var o=function(e,A){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t;}||function(r,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);},o(e,A)};function s(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");o(e,A);function r(){this.constructor=e;}e.prototype=A===null?Object.create(A):(r.prototype=A.prototype,new r);}var n=function(){return n=Object.assign||function(A){for(var r,t=1,i=arguments.length;t<i;t++){r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(A[l]=r[l]);}return A},n.apply(this,arguments)};function a(e,A,r,t){function i(l){return l instanceof r?l:new r(function(d){d(l);})}return new(r||(r=Promise))(function(l,d){function h(w){try{B(t.next(w));}catch(v){d(v);}}function u(w){try{B(t.throw(w));}catch(v){d(v);}}function B(w){w.done?l(w.value):i(w.value).then(h,u);}B((t=t.apply(e,[])).next());})}function c(e,A){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},t,i,l,d;return d={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function h(B){return function(w){return u([B,w])}}function u(B){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,i&&(l=B[0]&2?i.return:B[0]?i.throw||((l=i.return)&&l.call(i),0):i.next)&&!(l=l.call(i,B[1])).done)return l;switch(i=0,l&&(B=[B[0]&2,l.value]),B[0]){case 0:case 1:l=B;break;case 4:return r.label++,{value:B[1],done:!1};case 5:r.label++,i=B[1],B=[0];continue;case 7:B=r.ops.pop(),r.trys.pop();continue;default:if(l=r.trys,!(l=l.length>0&&l[l.length-1])&&(B[0]===6||B[0]===2)){r=0;continue}if(B[0]===3&&(!l||B[1]>l[0]&&B[1]<l[3])){r.label=B[1];break}if(B[0]===6&&r.label<l[1]){r.label=l[1],l=B;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(B);break}l[2]&&r.ops.pop(),r.trys.pop();continue}B=A.call(e,r);}catch(w){B=[6,w],i=0;}finally{t=l=0;}if(B[0]&5)throw B[1];return {value:B[0]?B[1]:void 0,done:true}}}function p(e,A,r){if(arguments.length===2)for(var t=0,i=A.length,l;t<i;t++)(l||!(t in A))&&(l||(l=Array.prototype.slice.call(A,0,t)),l[t]=A[t]);return e.concat(l||A)}for(var g=(function(){function e(A,r,t,i){this.left=A,this.top=r,this.width=t,this.height=i;}return e.prototype.add=function(A,r,t,i){return new e(this.left+A,this.top+r,this.width+t,this.height+i)},e.fromClientRect=function(A,r){return new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(A,r){var t=Array.from(r).find(function(i){return i.width!==0});return t?new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e})(),f=function(e,A){return g.fromClientRect(e,A.getBoundingClientRect())},m=function(e){var A=e.body,r=e.documentElement;if(!A||!r)throw new Error("Unable to get document size");var t=Math.max(Math.max(A.scrollWidth,r.scrollWidth),Math.max(A.offsetWidth,r.offsetWidth),Math.max(A.clientWidth,r.clientWidth)),i=Math.max(Math.max(A.scrollHeight,r.scrollHeight),Math.max(A.offsetHeight,r.offsetHeight),Math.max(A.clientHeight,r.clientHeight));return new g(0,0,t,i)},Q=function(e){for(var A=[],r=0,t=e.length;r<t;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<t){var l=e.charCodeAt(r++);(l&64512)===56320?A.push(((i&1023)<<10)+(l&1023)+65536):(A.push(i),r--);}else A.push(i);}return A},b=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return "";for(var t=[],i=-1,l="";++i<r;){var d=e[i];d<=65535?t.push(d):(d-=65536,t.push((d>>10)+55296,d%1024+56320)),(i+1===r||t.length>16384)&&(l+=String.fromCharCode.apply(String,t),t.length=0);}return l},F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I=typeof Uint8Array>"u"?[]:new Uint8Array(256),M=0;M<F.length;M++)I[F.charCodeAt(M)]=M;for(var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=typeof Uint8Array>"u"?[]:new Uint8Array(256),P=0;P<O.length;P++)N[O.charCodeAt(P)]=P;for(var AA=function(e){var A=e.length*.75,r=e.length,t,i=0,l,d,h,u;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var B=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),w=Array.isArray(B)?B:new Uint8Array(B);for(t=0;t<r;t+=4)l=N[e.charCodeAt(t)],d=N[e.charCodeAt(t+1)],h=N[e.charCodeAt(t+2)],u=N[e.charCodeAt(t+3)],w[i++]=l<<2|d>>4,w[i++]=(d&15)<<4|h>>2,w[i++]=(h&3)<<6|u&63;return B},E=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},G=function(e){for(var A=e.length,r=[],t=0;t<A;t+=4)r.push(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]);return r},R=5,$=11,j=2,lA=$-R,rA=65536>>R,BA=1<<R,oA=BA-1,ve=1024>>R,Wr=rA+ve,Oe=Wr,jr=32,yt=Oe+jr,$r=65536>>$,V=1<<lA,uA=V-1,PA=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},Ne=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},Pe=function(e,A){var r=AA(e),t=Array.isArray(r)?G(r):new Uint32Array(r),i=Array.isArray(r)?E(r):new Uint16Array(r),l=24,d=PA(i,l/2,t[4]/2),h=t[5]===2?PA(i,(l+t[4])/2):Ne(t,Math.ceil((l+t[4])/4));return new jA(t[0],t[1],t[2],t[3],d,h)},jA=(function(){function e(A,r,t,i,l,d){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=i,this.index=l,this.data=d;}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>R],r=(r<<j)+(A&oA),this.data[r];if(A<=65535)return r=this.index[rA+(A-55296>>R)],r=(r<<j)+(A&oA),this.data[r];if(A<this.highStart)return r=yt-$r+(A>>$),r=this.index[r],r+=A>>R&uA,r=this.index[r],r=(r<<j)+(A&oA),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),Ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ge=typeof Uint8Array>"u"?[]:new Uint8Array(256),le=0;le<Ft.length;le++)Ge[Ft.charCodeAt(le)]=le;var zr="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsByw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AMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwA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0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4A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eAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUAB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AFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFc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QAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQ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AB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACs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sASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJ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UAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",DA=50,Pa=1,bn=2,Cn=3,Ga=4,_a=5,vn=7,Qn=8,yn=9,$A=10,Zr=11,Fn=12,qr=13,Va=14,_e=15,As=16,Ut=17,Ve=18,Xa=19,Un=20,es=21,Xe=22,ts=23,Qe=24,xA=25,Ye=26,Je=27,ye=28,Ya=29,ce=30,Ja=31,xt=32,Et=33,rs=34,ss=35,ns=36,We=37,is=38,Ht=39,It=40,os=41,xn=42,Wa=43,ja=[9001,65288],En="!",z="\xD7",kt="\xF7",as=Pe(zr),GA=[ce,ns],ls=[Pa,bn,Cn,_a],Hn=[$A,Qn],In=[Je,Ye],$a=ls.concat(Hn),kn=[is,Ht,It,rs,ss],za=[_e,qr],Za=function(e,A){A===void 0&&(A="strict");var r=[],t=[],i=[];return e.forEach(function(l,d){var h=as.get(l);if(h>DA?(i.push(true),h-=DA):i.push(false),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(l)!==-1)return t.push(d),r.push(As);if(h===Ga||h===Zr){if(d===0)return t.push(d),r.push(ce);var u=r[d-1];return $a.indexOf(u)===-1?(t.push(t[d-1]),r.push(u)):(t.push(d),r.push(ce))}if(t.push(d),h===Ja)return r.push(A==="strict"?es:We);if(h===xn||h===Ya)return r.push(ce);if(h===Wa)return l>=131072&&l<=196605||l>=196608&&l<=262141?r.push(We):r.push(ce);r.push(h);}),[t,r,i]},cs=function(e,A,r,t){var i=t[r];if(Array.isArray(e)?e.indexOf(i)!==-1:e===i)for(var l=r;l<=t.length;){l++;var d=t[l];if(d===A)return true;if(d!==$A)break}if(i===$A)for(var l=r;l>0;){l--;var h=t[l];if(Array.isArray(e)?e.indexOf(h)!==-1:e===h)for(var u=r;u<=t.length;){u++;var d=t[u];if(d===A)return true;if(d!==$A)break}if(h!==$A)break}return false},Ln=function(e,A){for(var r=e;r>=0;){var t=A[r];if(t===$A)r--;else return t}return 0},qa=function(e,A,r,t,i){if(r[t]===0)return z;var l=t-1;if(Array.isArray(i)&&i[l]===true)return z;var d=l-1,h=l+1,u=A[l],B=d>=0?A[d]:0,w=A[h];if(u===bn&&w===Cn)return z;if(ls.indexOf(u)!==-1)return En;if(ls.indexOf(w)!==-1||Hn.indexOf(w)!==-1)return z;if(Ln(l,A)===Qn)return kt;if(as.get(e[l])===Zr||(u===xt||u===Et)&&as.get(e[h])===Zr||u===vn||w===vn||u===yn||[$A,qr,_e].indexOf(u)===-1&&w===yn||[Ut,Ve,Xa,Qe,ye].indexOf(w)!==-1||Ln(l,A)===Xe||cs(ts,Xe,l,A)||cs([Ut,Ve],es,l,A)||cs(Fn,Fn,l,A))return z;if(u===$A)return kt;if(u===ts||w===ts)return z;if(w===As||u===As)return kt;if([qr,_e,es].indexOf(w)!==-1||u===Va||B===ns&&za.indexOf(u)!==-1||u===ye&&w===ns||w===Un||GA.indexOf(w)!==-1&&u===xA||GA.indexOf(u)!==-1&&w===xA||u===Je&&[We,xt,Et].indexOf(w)!==-1||[We,xt,Et].indexOf(u)!==-1&&w===Ye||GA.indexOf(u)!==-1&&In.indexOf(w)!==-1||In.indexOf(u)!==-1&&GA.indexOf(w)!==-1||[Je,Ye].indexOf(u)!==-1&&(w===xA||[Xe,_e].indexOf(w)!==-1&&A[h+1]===xA)||[Xe,_e].indexOf(u)!==-1&&w===xA||u===xA&&[xA,ye,Qe].indexOf(w)!==-1)return z;if([xA,ye,Qe,Ut,Ve].indexOf(w)!==-1)for(var v=l;v>=0;){var y=A[v];if(y===xA)return z;if([ye,Qe].indexOf(y)!==-1)v--;else break}if([Je,Ye].indexOf(w)!==-1)for(var v=[Ut,Ve].indexOf(u)!==-1?d:l;v>=0;){var y=A[v];if(y===xA)return z;if([ye,Qe].indexOf(y)!==-1)v--;else break}if(is===u&&[is,Ht,rs,ss].indexOf(w)!==-1||[Ht,rs].indexOf(u)!==-1&&[Ht,It].indexOf(w)!==-1||[It,ss].indexOf(u)!==-1&&w===It||kn.indexOf(u)!==-1&&[Un,Ye].indexOf(w)!==-1||kn.indexOf(w)!==-1&&u===Je||GA.indexOf(u)!==-1&&GA.indexOf(w)!==-1||u===Qe&&GA.indexOf(w)!==-1||GA.concat(xA).indexOf(u)!==-1&&w===Xe&&ja.indexOf(e[h])===-1||GA.concat(xA).indexOf(w)!==-1&&u===Ve)return z;if(u===os&&w===os){for(var S=r[l],x=1;S>0&&(S--,A[S]===os);)x++;if(x%2!==0)return z}return u===xt&&w===Et?z:kt},Al=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var r=Za(e,A.lineBreak),t=r[0],i=r[1],l=r[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(i=i.map(function(h){return [xA,ce,xn].indexOf(h)!==-1?We:h}));var d=A.wordBreak==="keep-all"?l.map(function(h,u){return h&&e[u]>=19968&&e[u]<=40959}):void 0;return [t,i,d]},el=(function(){function e(A,r,t,i){this.codePoints=A,this.required=r===En,this.start=t,this.end=i;}return e.prototype.slice=function(){return b.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),tl=function(e,A){var r=Q(e),t=Al(r,A),i=t[0],l=t[1],d=t[2],h=r.length,u=0,B=0;return {next:function(){if(B>=h)return {done:true,value:null};for(var w=z;B<h&&(w=qa(r,l,i,++B,d))===z;);if(w!==z||B===h){var v=new el(r,w,u,B);return u=B,{value:v,done:false}}return {done:true,value:null}}}},rl=1,sl=2,je=4,Sn=8,Lt=10,Tn=47,$e=92,nl=9,il=32,St=34,ze=61,ol=35,al=36,ll=37,Tt=39,Kt=40,Ze=41,cl=95,vA=45,dl=33,pl=60,ul=62,hl=64,gl=91,Bl=93,fl=61,wl=123,Dt=63,ml=125,Kn=124,bl=126,Cl=128,Dn=65533,ds=42,de=43,vl=44,Ql=58,yl=59,qe=46,Fl=0,Ul=8,xl=11,El=14,Hl=31,Il=127,MA=-1,Mn=48,Rn=97,On=101,kl=102,Ll=117,Sl=122,Nn=65,Pn=69,Gn=70,Tl=85,Kl=90,CA=function(e){return e>=Mn&&e<=57},Dl=function(e){return e>=55296&&e<=57343},Fe=function(e){return CA(e)||e>=Nn&&e<=Gn||e>=Rn&&e<=kl},Ml=function(e){return e>=Rn&&e<=Sl},Rl=function(e){return e>=Nn&&e<=Kl},Ol=function(e){return Ml(e)||Rl(e)},Nl=function(e){return e>=Cl},Mt=function(e){return e===Lt||e===nl||e===il},Rt=function(e){return Ol(e)||Nl(e)||e===cl},_n=function(e){return Rt(e)||CA(e)||e===vA},Pl=function(e){return e>=Fl&&e<=Ul||e===xl||e>=El&&e<=Hl||e===Il},zA=function(e,A){return e!==$e?false:A!==Lt},Ot=function(e,A,r){return e===vA?Rt(A)||zA(A,r):Rt(e)?true:!!(e===$e&&zA(e,A))},ps=function(e,A,r){return e===de||e===vA?CA(A)?true:A===qe&&CA(r):CA(e===qe?A:e)},Gl=function(e){var A=0,r=1;(e[A]===de||e[A]===vA)&&(e[A]===vA&&(r=-1),A++);for(var t=[];CA(e[A]);)t.push(e[A++]);var i=t.length?parseInt(b.apply(void 0,t),10):0;e[A]===qe&&A++;for(var l=[];CA(e[A]);)l.push(e[A++]);var d=l.length,h=d?parseInt(b.apply(void 0,l),10):0;(e[A]===Pn||e[A]===On)&&A++;var u=1;(e[A]===de||e[A]===vA)&&(e[A]===vA&&(u=-1),A++);for(var B=[];CA(e[A]);)B.push(e[A++]);var w=B.length?parseInt(b.apply(void 0,B),10):0;return r*(i+h*Math.pow(10,-d))*Math.pow(10,u*w)},_l={type:2},Vl={type:3},Xl={type:4},Yl={type:13},Jl={type:8},Wl={type:21},jl={type:9},$l={type:10},zl={type:11},Zl={type:12},ql={type:14},Nt={type:23},Ac={type:1},ec={type:25},tc={type:24},rc={type:26},sc={type:27},nc={type:28},ic={type:29},oc={type:31},us={type:32},Vn=(function(){function e(){this._value=[];}return e.prototype.write=function(A){this._value=this._value.concat(Q(A));},e.prototype.read=function(){for(var A=[],r=this.consumeToken();r!==us;)A.push(r),r=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case St:return this.consumeStringToken(St);case ol:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),i=this.peekCodePoint(2);if(_n(r)||zA(t,i)){var l=Ot(r,t,i)?sl:rl,d=this.consumeName();return {type:5,value:d,flags:l}}break;case al:if(this.peekCodePoint(0)===ze)return this.consumeCodePoint(),Yl;break;case Tt:return this.consumeStringToken(Tt);case Kt:return _l;case Ze:return Vl;case ds:if(this.peekCodePoint(0)===ze)return this.consumeCodePoint(),ql;break;case de:if(ps(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case vl:return Xl;case vA:var h=A,u=this.peekCodePoint(0),B=this.peekCodePoint(1);if(ps(h,u,B))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Ot(h,u,B))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(u===vA&&B===ul)return this.consumeCodePoint(),this.consumeCodePoint(),tc;break;case qe:if(ps(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Tn:if(this.peekCodePoint(0)===ds)for(this.consumeCodePoint();;){var w=this.consumeCodePoint();if(w===ds&&(w=this.consumeCodePoint(),w===Tn))return this.consumeToken();if(w===MA)return this.consumeToken()}break;case Ql:return rc;case yl:return sc;case pl:if(this.peekCodePoint(0)===dl&&this.peekCodePoint(1)===vA&&this.peekCodePoint(2)===vA)return this.consumeCodePoint(),this.consumeCodePoint(),ec;break;case hl:var v=this.peekCodePoint(0),y=this.peekCodePoint(1),S=this.peekCodePoint(2);if(Ot(v,y,S)){var d=this.consumeName();return {type:7,value:d}}break;case gl:return nc;case $e:if(zA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Bl:return ic;case fl:if(this.peekCodePoint(0)===ze)return this.consumeCodePoint(),Jl;break;case wl:return zl;case ml:return Zl;case Ll:case Tl:var x=this.peekCodePoint(0),H=this.peekCodePoint(1);return x===de&&(Fe(H)||H===Dt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Kn:if(this.peekCodePoint(0)===ze)return this.consumeCodePoint(),jl;if(this.peekCodePoint(0)===Kn)return this.consumeCodePoint(),Wl;break;case bl:if(this.peekCodePoint(0)===ze)return this.consumeCodePoint(),$l;break;case MA:return us}return Mt(A)?(this.consumeWhiteSpace(),oc):CA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):Rt(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:b(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A);},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],r=this.consumeCodePoint();Fe(r)&&A.length<6;)A.push(r),r=this.consumeCodePoint();for(var t=false;r===Dt&&A.length<6;)A.push(r),r=this.consumeCodePoint(),t=true;if(t){var i=parseInt(b.apply(void 0,A.map(function(u){return u===Dt?Mn:u})),16),l=parseInt(b.apply(void 0,A.map(function(u){return u===Dt?Gn:u})),16);return {type:30,start:i,end:l}}var d=parseInt(b.apply(void 0,A),16);if(this.peekCodePoint(0)===vA&&Fe(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var h=[];Fe(r)&&h.length<6;)h.push(r),r=this.consumeCodePoint();var l=parseInt(b.apply(void 0,h),16);return {type:30,start:d,end:l}}else return {type:30,start:d,end:d}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Kt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Kt?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===MA)return {type:22,value:""};var r=this.peekCodePoint(0);if(r===Tt||r===St){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===MA||this.peekCodePoint(0)===Ze)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),Nt)}for(;;){var i=this.consumeCodePoint();if(i===MA||i===Ze)return {type:22,value:b.apply(void 0,A)};if(Mt(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===MA||this.peekCodePoint(0)===Ze?(this.consumeCodePoint(),{type:22,value:b.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Nt);if(i===St||i===Tt||i===Kt||Pl(i))return this.consumeBadUrlRemnants(),Nt;if(i===$e)if(zA(i,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Nt;else A.push(i);}},e.prototype.consumeWhiteSpace=function(){for(;Mt(this.peekCodePoint(0));)this.consumeCodePoint();},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===Ze||A===MA)return;zA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint();}},e.prototype.consumeStringSlice=function(A){for(var r=5e4,t="";A>0;){var i=Math.min(r,A);t+=b.apply(void 0,this._value.splice(0,i)),A-=i;}return this._value.shift(),t},e.prototype.consumeStringToken=function(A){var r="",t=0;do{var i=this._value[t];if(i===MA||i===void 0||i===A)return r+=this.consumeStringSlice(t),{type:0,value:r};if(i===Lt)return this._value.splice(0,t),Ac;if(i===$e){var l=this._value[t+1];l!==MA&&l!==void 0&&(l===Lt?(r+=this.consumeStringSlice(t),t=-1,this._value.shift()):zA(i,l)&&(r+=this.consumeStringSlice(t),r+=b(this.consumeEscapedCodePoint()),t=-1));}t++;}while(true)},e.prototype.consumeNumber=function(){var A=[],r=je,t=this.peekCodePoint(0);for((t===de||t===vA)&&A.push(this.consumeCodePoint());CA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(t===qe&&CA(i))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Sn;CA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),i=this.peekCodePoint(1);var l=this.peekCodePoint(2);if((t===Pn||t===On)&&((i===de||i===vA)&&CA(l)||CA(i)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Sn;CA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return [Gl(A),r]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),r=A[0],t=A[1],i=this.peekCodePoint(0),l=this.peekCodePoint(1),d=this.peekCodePoint(2);if(Ot(i,l,d)){var h=this.consumeName();return {type:15,number:r,flags:t,unit:h}}return i===ll?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Fe(A)){for(var r=b(A);Fe(this.peekCodePoint(0))&&r.length<6;)r+=b(this.consumeCodePoint());Mt(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||Dl(t)||t>1114111?Dn:t}return A===MA?Dn:A},e.prototype.consumeName=function(){for(var A="";;){var r=this.consumeCodePoint();if(_n(r))A+=b(r);else if(zA(r,this.peekCodePoint(0)))A+=b(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),A}},e})(),Xn=(function(){function e(A){this._tokens=A;}return e.create=function(A){var r=new Vn;return r.write(A),new e(r.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var r=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var r=this.consumeComponentValue();if(r.type===32)return A;A.push(r),A.push();}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var r={type:A,values:[]},t=this.consumeToken();;){if(t.type===32||lc(t,A))return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue()),t=this.consumeToken();}},e.prototype.consumeFunction=function(A){for(var r={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue());}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?us:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A);},e})(),At=function(e){return e.type===15},Ue=function(e){return e.type===17},sA=function(e){return e.type===20},ac=function(e){return e.type===0},hs=function(e,A){return sA(e)&&e.value===A},Yn=function(e){return e.type!==31},xe=function(e){return e.type!==31&&e.type!==4},RA=function(e){var A=[],r=[];return e.forEach(function(t){if(t.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(r),r=[];return}t.type!==31&&r.push(t);}),r.length&&A.push(r),A},lc=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?true:A===2&&e.type===3},ZA=function(e){return e.type===17||e.type===15},dA=function(e){return e.type===16||ZA(e)},Jn=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},wA={type:17,number:0,flags:je},gs={type:16,number:50,flags:je},qA={type:16,number:100,flags:je},et=function(e,A,r){var t=e[0],i=e[1];return [iA(t,A),iA(typeof i<"u"?i:t,r)]},iA=function(e,A){if(e.type===16)return e.number/100*A;if(At(e))switch(e.unit){case "rem":case "em":return 16*e.number;default:return e.number}return e.number},Wn="deg",jn="grad",$n="rad",zn="turn",Pt={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case Wn:return Math.PI*A.number/180;case jn:return Math.PI/200*A.number;case $n:return A.number;case zn:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Zn=function(e){return e.type===15&&(e.unit===Wn||e.unit===jn||e.unit===$n||e.unit===zn)},qn=function(e){var A=e.filter(sA).map(function(r){return r.value}).join(" ");switch(A){case "to bottom right":case "to right bottom":case "left top":case "top left":return [wA,wA];case "to top":case "bottom":return IA(0);case "to bottom left":case "to left bottom":case "right top":case "top right":return [wA,qA];case "to right":case "left":return IA(90);case "to top left":case "to left top":case "right bottom":case "bottom right":return [qA,qA];case "to bottom":case "top":return IA(180);case "to top right":case "to right top":case "left bottom":case "bottom left":return [qA,wA];case "to left":case "right":return IA(270)}return 0},IA=function(e){return Math.PI*e/180},Ae={name:"color",parse:function(e,A){if(A.type===18){var r=cc[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return r(e,A.values)}if(A.type===5){if(A.value.length===3){var t=A.value.substring(0,1),i=A.value.substring(1,2),l=A.value.substring(2,3);return te(parseInt(t+t,16),parseInt(i+i,16),parseInt(l+l,16),1)}if(A.value.length===4){var t=A.value.substring(0,1),i=A.value.substring(1,2),l=A.value.substring(2,3),d=A.value.substring(3,4);return te(parseInt(t+t,16),parseInt(i+i,16),parseInt(l+l,16),parseInt(d+d,16)/255)}if(A.value.length===6){var t=A.value.substring(0,2),i=A.value.substring(2,4),l=A.value.substring(4,6);return te(parseInt(t,16),parseInt(i,16),parseInt(l,16),1)}if(A.value.length===8){var t=A.value.substring(0,2),i=A.value.substring(2,4),l=A.value.substring(4,6),d=A.value.substring(6,8);return te(parseInt(t,16),parseInt(i,16),parseInt(l,16),parseInt(d,16)/255)}}if(A.type===20){var h=_A[A.value.toUpperCase()];if(typeof h<"u")return h}return _A.TRANSPARENT}},ee=function(e){return (255&e)===0},fA=function(e){var A=255&e,r=255&e>>8,t=255&e>>16,i=255&e>>24;return A<255?"rgba("+i+","+t+","+r+","+A/255+")":"rgb("+i+","+t+","+r+")"},te=function(e,A,r,t){return (e<<24|A<<16|r<<8|Math.round(t*255)<<0)>>>0},Ai=function(e,A){if(e.type===17)return e.number;if(e.type===16){var r=A===3?1:255;return A===3?e.number/100*r:Math.round(e.number/100*r)}return 0},ei=function(e,A){var r=A.filter(xe);if(r.length===3){var t=r.map(Ai),i=t[0],l=t[1],d=t[2];return te(i,l,d,1)}if(r.length===4){var h=r.map(Ai),i=h[0],l=h[1],d=h[2],u=h[3];return te(i,l,d,u)}return 0};function Bs(e,A,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(A-e)*r*6+e:r<1/2?A:r<2/3?(A-e)*6*(2/3-r)+e:e}var ti=function(e,A){var r=A.filter(xe),t=r[0],i=r[1],l=r[2],d=r[3],h=(t.type===17?IA(t.number):Pt.parse(e,t))/(Math.PI*2),u=dA(i)?i.number/100:0,B=dA(l)?l.number/100:0,w=typeof d<"u"&&dA(d)?iA(d,1):1;if(u===0)return te(B*255,B*255,B*255,1);var v=B<=.5?B*(u+1):B+u-B*u,y=B*2-v,S=Bs(y,v,h+1/3),x=Bs(y,v,h),H=Bs(y,v,h-1/3);return te(S*255,x*255,H*255,w)},cc={hsl:ti,hsla:ti,rgb:ei,rgba:ei},tt=function(e,A){return Ae.parse(e,Xn.create(A).parseComponentValue())},_A={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},dc={name:"background-clip",initialValue:"border-box",prefix:false,type:1,parse:function(e,A){return A.map(function(r){if(sA(r))switch(r.value){case "padding-box":return 1;case "content-box":return 2}return 0})}},pc={name:"background-color",initialValue:"transparent",prefix:false,type:3,format:"color"},Gt=function(e,A){var r=Ae.parse(e,A[0]),t=A[1];return t&&dA(t)?{color:r,stop:t}:{color:r,stop:null}},ri=function(e,A){var r=e[0],t=e[e.length-1];r.stop===null&&(r.stop=wA),t.stop===null&&(t.stop=qA);for(var i=[],l=0,d=0;d<e.length;d++){var h=e[d].stop;if(h!==null){var u=iA(h,A);u>l?i.push(u):i.push(l),l=u;}else i.push(null);}for(var B=null,d=0;d<i.length;d++){var w=i[d];if(w===null)B===null&&(B=d);else if(B!==null){for(var v=d-B,y=i[B-1],S=(w-y)/(v+1),x=1;x<=v;x++)i[B+x-1]=S*x;B=null;}}return e.map(function(H,J){var D=H.color;return {color:D,stop:Math.max(Math.min(1,i[J]/A),0)}})},uc=function(e,A,r){var t=A/2,i=r/2,l=iA(e[0],A)-t,d=i-iA(e[1],r);return (Math.atan2(d,l)+Math.PI*2)%(Math.PI*2)},hc=function(e,A,r){var t=typeof e=="number"?e:uc(e,A,r),i=Math.abs(A*Math.sin(t))+Math.abs(r*Math.cos(t)),l=A/2,d=r/2,h=i/2,u=Math.sin(t-Math.PI/2)*h,B=Math.cos(t-Math.PI/2)*h;return [i,l-B,l+B,d-u,d+u]},KA=function(e,A){return Math.sqrt(e*e+A*A)},si=function(e,A,r,t,i){var l=[[0,0],[0,A],[e,0],[e,A]];return l.reduce(function(d,h){var u=h[0],B=h[1],w=KA(r-u,t-B);return (i?w<d.optimumDistance:w>d.optimumDistance)?{optimumCorner:h,optimumDistance:w}:d},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},gc=function(e,A,r,t,i){var l=0,d=0;switch(e.size){case 0:e.shape===0?l=d=Math.min(Math.abs(A),Math.abs(A-t),Math.abs(r),Math.abs(r-i)):e.shape===1&&(l=Math.min(Math.abs(A),Math.abs(A-t)),d=Math.min(Math.abs(r),Math.abs(r-i)));break;case 2:if(e.shape===0)l=d=Math.min(KA(A,r),KA(A,r-i),KA(A-t,r),KA(A-t,r-i));else if(e.shape===1){var h=Math.min(Math.abs(r),Math.abs(r-i))/Math.min(Math.abs(A),Math.abs(A-t)),u=si(t,i,A,r,true),B=u[0],w=u[1];l=KA(B-A,(w-r)/h),d=h*l;}break;case 1:e.shape===0?l=d=Math.max(Math.abs(A),Math.abs(A-t),Math.abs(r),Math.abs(r-i)):e.shape===1&&(l=Math.max(Math.abs(A),Math.abs(A-t)),d=Math.max(Math.abs(r),Math.abs(r-i)));break;case 3:if(e.shape===0)l=d=Math.max(KA(A,r),KA(A,r-i),KA(A-t,r),KA(A-t,r-i));else if(e.shape===1){var h=Math.max(Math.abs(r),Math.abs(r-i))/Math.max(Math.abs(A),Math.abs(A-t)),v=si(t,i,A,r,false),B=v[0],w=v[1];l=KA(B-A,(w-r)/h),d=h*l;}break}return Array.isArray(e.size)&&(l=iA(e.size[0],t),d=e.size.length===2?iA(e.size[1],i):l),[l,d]},Bc=function(e,A){var r=IA(180),t=[];return RA(A).forEach(function(i,l){if(l===0){var d=i[0];if(d.type===20&&d.value==="to"){r=qn(i);return}else if(Zn(d)){r=Pt.parse(e,d);return}}var h=Gt(e,i);t.push(h);}),{angle:r,stops:t,type:1}},_t=function(e,A){var r=IA(180),t=[];return RA(A).forEach(function(i,l){if(l===0){var d=i[0];if(d.type===20&&["top","left","right","bottom"].indexOf(d.value)!==-1){r=qn(i);return}else if(Zn(d)){r=(Pt.parse(e,d)+IA(270))%IA(360);return}}var h=Gt(e,i);t.push(h);}),{angle:r,stops:t,type:1}},fc=function(e,A){var r=IA(180),t=[],i=1,l=0,d=3,h=[];return RA(A).forEach(function(u,B){var w=u[0];if(B===0){if(sA(w)&&w.value==="linear"){i=1;return}else if(sA(w)&&w.value==="radial"){i=2;return}}if(w.type===18){if(w.name==="from"){var v=Ae.parse(e,w.values[0]);t.push({stop:wA,color:v});}else if(w.name==="to"){var v=Ae.parse(e,w.values[0]);t.push({stop:qA,color:v});}else if(w.name==="color-stop"){var y=w.values.filter(xe);if(y.length===2){var v=Ae.parse(e,y[1]),S=y[0];Ue(S)&&t.push({stop:{type:16,number:S.number*100,flags:S.flags},color:v});}}}}),i===1?{angle:(r+IA(180))%IA(360),stops:t,type:i}:{size:d,shape:l,stops:t,position:h,type:i}},ni="closest-side",ii="farthest-side",oi="closest-corner",ai="farthest-corner",li="circle",ci="ellipse",di="cover",pi="contain",wc=function(e,A){var r=0,t=3,i=[],l=[];return RA(A).forEach(function(d,h){var u=true;if(h===0){var B=false;u=d.reduce(function(v,y){if(B)if(sA(y))switch(y.value){case "center":return l.push(gs),v;case "top":case "left":return l.push(wA),v;case "right":case "bottom":return l.push(qA),v}else (dA(y)||ZA(y))&&l.push(y);else if(sA(y))switch(y.value){case li:return r=0,false;case ci:return r=1,false;case "at":return B=true,false;case ni:return t=0,false;case di:case ii:return t=1,false;case pi:case oi:return t=2,false;case ai:return t=3,false}else if(ZA(y)||dA(y))return Array.isArray(t)||(t=[]),t.push(y),false;return v},u);}if(u){var w=Gt(e,d);i.push(w);}}),{size:t,shape:r,stops:i,position:l,type:2}},Vt=function(e,A){var r=0,t=3,i=[],l=[];return RA(A).forEach(function(d,h){var u=true;if(h===0?u=d.reduce(function(w,v){if(sA(v))switch(v.value){case "center":return l.push(gs),false;case "top":case "left":return l.push(wA),false;case "right":case "bottom":return l.push(qA),false}else if(dA(v)||ZA(v))return l.push(v),false;return w},u):h===1&&(u=d.reduce(function(w,v){if(sA(v))switch(v.value){case li:return r=0,false;case ci:return r=1,false;case pi:case ni:return t=0,false;case ii:return t=1,false;case oi:return t=2,false;case di:case ai:return t=3,false}else if(ZA(v)||dA(v))return Array.isArray(t)||(t=[]),t.push(v),false;return w},u)),u){var B=Gt(e,d);i.push(B);}}),{size:t,shape:r,stops:i,position:l,type:2}},mc=function(e){return e.type===1},bc=function(e){return e.type===2},fs={name:"image",parse:function(e,A){if(A.type===22){var r={url:A.value,type:0};return e.cache.addImage(A.value),r}if(A.type===18){var t=ui[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function Cc(e){return !(e.type===20&&e.value==="none")&&(e.type!==18||!!ui[e.name])}var ui={"linear-gradient":Bc,"-moz-linear-gradient":_t,"-ms-linear-gradient":_t,"-o-linear-gradient":_t,"-webkit-linear-gradient":_t,"radial-gradient":wc,"-moz-radial-gradient":Vt,"-ms-radial-gradient":Vt,"-o-radial-gradient":Vt,"-webkit-radial-gradient":Vt,"-webkit-gradient":fc},vc={name:"background-image",initialValue:"none",type:1,prefix:false,parse:function(e,A){if(A.length===0)return [];var r=A[0];return r.type===20&&r.value==="none"?[]:A.filter(function(t){return xe(t)&&Cc(t)}).map(function(t){return fs.parse(e,t)})}},Qc={name:"background-origin",initialValue:"border-box",prefix:false,type:1,parse:function(e,A){return A.map(function(r){if(sA(r))switch(r.value){case "padding-box":return 1;case "content-box":return 2}return 0})}},yc={name:"background-position",initialValue:"0% 0%",type:1,prefix:false,parse:function(e,A){return RA(A).map(function(r){return r.filter(dA)}).map(Jn)}},Fc={name:"background-repeat",initialValue:"repeat",prefix:false,type:1,parse:function(e,A){return RA(A).map(function(r){return r.filter(sA).map(function(t){return t.value}).join(" ")}).map(Uc)}},Uc=function(e){switch(e){case "no-repeat":return 1;case "repeat-x":case "repeat no-repeat":return 2;case "repeat-y":case "no-repeat repeat":return 3;default:return 0}},Ee;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover";})(Ee||(Ee={}));var xc={name:"background-size",initialValue:"0",prefix:false,type:1,parse:function(e,A){return RA(A).map(function(r){return r.filter(Ec)})}},Ec=function(e){return sA(e)||dA(e)},Xt=function(e){return {name:"border-"+e+"-color",initialValue:"transparent",prefix:false,type:3,format:"color"}},Hc=Xt("top"),Ic=Xt("right"),kc=Xt("bottom"),Lc=Xt("left"),Yt=function(e){return {name:"border-radius-"+e,initialValue:"0 0",prefix:false,type:1,parse:function(A,r){return Jn(r.filter(dA))}}},Sc=Yt("top-left"),Tc=Yt("top-right"),Kc=Yt("bottom-right"),Dc=Yt("bottom-left"),Jt=function(e){return {name:"border-"+e+"-style",initialValue:"solid",prefix:false,type:2,parse:function(A,r){switch(r){case "none":return 0;case "dashed":return 2;case "dotted":return 3;case "double":return 4}return 1}}},Mc=Jt("top"),Rc=Jt("right"),Oc=Jt("bottom"),Nc=Jt("left"),Wt=function(e){return {name:"border-"+e+"-width",initialValue:"0",type:0,prefix:false,parse:function(A,r){return At(r)?r.number:0}}},Pc=Wt("top"),Gc=Wt("right"),_c=Wt("bottom"),Vc=Wt("left"),Xc={name:"color",initialValue:"transparent",prefix:false,type:3,format:"color"},Yc={name:"direction",initialValue:"ltr",prefix:false,type:2,parse:function(e,A){return A==="rtl"?1:0}},Jc={name:"display",initialValue:"inline-block",prefix:false,type:1,parse:function(e,A){return A.filter(sA).reduce(function(r,t){return r|Wc(t.value)},0)}},Wc=function(e){switch(e){case "block":case "-webkit-box":return 2;case "inline":return 4;case "run-in":return 8;case "flow":return 16;case "flow-root":return 32;case "table":return 64;case "flex":case "-webkit-flex":return 128;case "grid":case "-ms-grid":return 256;case "ruby":return 512;case "subgrid":return 1024;case "list-item":return 2048;case "table-row-group":return 4096;case "table-header-group":return 8192;case "table-footer-group":return 16384;case "table-row":return 32768;case "table-cell":return 65536;case "table-column-group":return 131072;case "table-column":return 262144;case "table-caption":return 524288;case "ruby-base":return 1048576;case "ruby-text":return 2097152;case "ruby-base-container":return 4194304;case "ruby-text-container":return 8388608;case "contents":return 16777216;case "inline-block":return 33554432;case "inline-list-item":return 67108864;case "inline-table":return 134217728;case "inline-flex":return 268435456;case "inline-grid":return 536870912}return 0},jc={name:"float",initialValue:"none",prefix:false,type:2,parse:function(e,A){switch(A){case "left":return 1;case "right":return 2;case "inline-start":return 3;case "inline-end":return 4}return 0}},$c={name:"letter-spacing",initialValue:"0",prefix:false,type:0,parse:function(e,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},jt;(function(e){e.NORMAL="normal",e.STRICT="strict";})(jt||(jt={}));var zc={name:"line-break",initialValue:"normal",prefix:false,type:2,parse:function(e,A){return A==="strict"?jt.STRICT:jt.NORMAL}},Zc={name:"line-height",initialValue:"normal",prefix:false,type:4},hi=function(e,A){return sA(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:dA(e)?iA(e,A):A},qc={name:"list-style-image",initialValue:"none",type:0,prefix:false,parse:function(e,A){return A.type===20&&A.value==="none"?null:fs.parse(e,A)}},Ad={name:"list-style-position",initialValue:"outside",prefix:false,type:2,parse:function(e,A){return A==="inside"?0:1}},ws={name:"list-style-type",initialValue:"none",prefix:false,type:2,parse:function(e,A){switch(A){case "disc":return 0;case "circle":return 1;case "square":return 2;case "decimal":return 3;case "cjk-decimal":return 4;case "decimal-leading-zero":return 5;case "lower-roman":return 6;case "upper-roman":return 7;case "lower-greek":return 8;case "lower-alpha":return 9;case "upper-alpha":return 10;case "arabic-indic":return 11;case "armenian":return 12;case "bengali":return 13;case "cambodian":return 14;case "cjk-earthly-branch":return 15;case "cjk-heavenly-stem":return 16;case "cjk-ideographic":return 17;case "devanagari":return 18;case "ethiopic-numeric":return 19;case "georgian":return 20;case "gujarati":return 21;case "gurmukhi":return 22;case "hebrew":return 22;case "hiragana":return 23;case "hiragana-iroha":return 24;case "japanese-formal":return 25;case "japanese-informal":return 26;case "kannada":return 27;case "katakana":return 28;case "katakana-iroha":return 29;case "khmer":return 30;case "korean-hangul-formal":return 31;case "korean-hanja-formal":return 32;case "korean-hanja-informal":return 33;case "lao":return 34;case "lower-armenian":return 35;case "malayalam":return 36;case "mongolian":return 37;case "myanmar":return 38;case "oriya":return 39;case "persian":return 40;case "simp-chinese-formal":return 41;case "simp-chinese-informal":return 42;case "tamil":return 43;case "telugu":return 44;case "thai":return 45;case "tibetan":return 46;case "trad-chinese-formal":return 47;case "trad-chinese-informal":return 48;case "upper-armenian":return 49;case "disclosure-open":return 50;case "disclosure-closed":return 51;default:return -1}}},$t=function(e){return {name:"margin-"+e,initialValue:"0",prefix:false,type:4}},ed=$t("top"),td=$t("right"),rd=$t("bottom"),sd=$t("left"),nd={name:"overflow",initialValue:"visible",prefix:false,type:1,parse:function(e,A){return A.filter(sA).map(function(r){switch(r.value){case "hidden":return 1;case "scroll":return 2;case "clip":return 3;case "auto":return 4;default:return 0}})}},id={name:"overflow-wrap",initialValue:"normal",prefix:false,type:2,parse:function(e,A){return A==="break-word"?"break-word":"normal"}},zt=function(e){return {name:"padding-"+e,initialValue:"0",prefix:false,type:3,format:"length-percentage"}},od=zt("top"),ad=zt("right"),ld=zt("bottom"),cd=zt("left"),dd={name:"text-align",initialValue:"left",prefix:false,type:2,parse:function(e,A){switch(A){case "right":return 2;case "center":case "justify":return 1;default:return 0}}},pd={name:"position",initialValue:"static",prefix:false,type:2,parse:function(e,A){switch(A){case "relative":return 1;case "absolute":return 2;case "fixed":return 3;case "sticky":return 4}return 0}},ud={name:"text-shadow",initialValue:"none",type:1,prefix:false,parse:function(e,A){return A.length===1&&hs(A[0],"none")?[]:RA(A).map(function(r){for(var t={color:_A.TRANSPARENT,offsetX:wA,offsetY:wA,blur:wA},i=0,l=0;l<r.length;l++){var d=r[l];ZA(d)?(i===0?t.offsetX=d:i===1?t.offsetY=d:t.blur=d,i++):t.color=Ae.parse(e,d);}return t})}},hd={name:"text-transform",initialValue:"none",prefix:false,type:2,parse:function(e,A){switch(A){case "uppercase":return 2;case "lowercase":return 1;case "capitalize":return 3}return 0}},gd={name:"transform",initialValue:"none",prefix:true,type:0,parse:function(e,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var r=wd[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return r(A.values)}return null}},Bd=function(e){var A=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return A.length===6?A:null},fd=function(e){var A=e.filter(function(u){return u.type===17}).map(function(u){return u.number}),r=A[0],t=A[1];A[2],A[3];var i=A[4],l=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var d=A[12],h=A[13];return A[14],A[15],A.length===16?[r,t,i,l,d,h]:null},wd={matrix:Bd,matrix3d:fd},gi={type:16,number:50,flags:je},md=[gi,gi],bd={name:"transform-origin",initialValue:"50% 50%",prefix:true,type:1,parse:function(e,A){var r=A.filter(dA);return r.length!==2?md:[r[0],r[1]]}},Cd={name:"visible",initialValue:"none",prefix:false,type:2,parse:function(e,A){switch(A){case "hidden":return 1;case "collapse":return 2;default:return 0}}},rt;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all";})(rt||(rt={}));for(var vd={name:"word-break",initialValue:"normal",prefix:false,type:2,parse:function(e,A){switch(A){case "break-all":return rt.BREAK_ALL;case "keep-all":return rt.KEEP_ALL;default:return rt.NORMAL}}},Qd={name:"z-index",initialValue:"auto",prefix:false,type:0,parse:function(e,A){if(A.type===20)return {auto:true,order:0};if(Ue(A))return {auto:false,order:A.number};throw new Error("Invalid z-index number parsed")}},Bi={name:"time",parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case "s":return 1e3*A.number;case "ms":return A.number}throw new Error("Unsupported time type")}},yd={name:"opacity",initialValue:"1",type:0,prefix:false,parse:function(e,A){return Ue(A)?A.number:1}},Fd={name:"text-decoration-color",initialValue:"transparent",prefix:false,type:3,format:"color"},Ud={name:"text-decoration-line",initialValue:"none",prefix:false,type:1,parse:function(e,A){return A.filter(sA).map(function(r){switch(r.value){case "underline":return 1;case "overline":return 2;case "line-through":return 3;case "none":return 4}return 0}).filter(function(r){return r!==0})}},xd={name:"font-family",initialValue:"",prefix:false,type:1,parse:function(e,A){var r=[],t=[];return A.forEach(function(i){switch(i.type){case 20:case 0:r.push(i.value);break;case 17:r.push(i.number.toString());break;case 4:t.push(r.join(" ")),r.length=0;break}}),r.length&&t.push(r.join(" ")),t.map(function(i){return i.indexOf(" ")===-1?i:"'"+i+"'"})}},Ed={name:"font-size",initialValue:"0",prefix:false,type:3,format:"length"},Hd={name:"font-weight",initialValue:"normal",type:0,prefix:false,parse:function(e,A){return Ue(A)?A.number:sA(A)&&A.value==="bold"?700:400}},Id={name:"font-variant",initialValue:"none",type:1,prefix:false,parse:function(e,A){return A.filter(sA).map(function(r){return r.value})}},kd={name:"font-style",initialValue:"normal",prefix:false,type:2,parse:function(e,A){switch(A){case "oblique":return "oblique";case "italic":return "italic";default:return "normal"}}},hA=function(e,A){return (e&A)!==0},Ld={name:"content",initialValue:"none",type:1,prefix:false,parse:function(e,A){if(A.length===0)return [];var r=A[0];return r.type===20&&r.value==="none"?[]:A}},Sd={name:"counter-increment",initialValue:"none",prefix:true,type:1,parse:function(e,A){if(A.length===0)return null;var r=A[0];if(r.type===20&&r.value==="none")return null;for(var t=[],i=A.filter(Yn),l=0;l<i.length;l++){var d=i[l],h=i[l+1];if(d.type===20){var u=h&&Ue(h)?h.number:1;t.push({counter:d.value,increment:u});}}return t}},Td={name:"counter-reset",initialValue:"none",prefix:true,type:1,parse:function(e,A){if(A.length===0)return [];for(var r=[],t=A.filter(Yn),i=0;i<t.length;i++){var l=t[i],d=t[i+1];if(sA(l)&&l.value!=="none"){var h=d&&Ue(d)?d.number:0;r.push({counter:l.value,reset:h});}}return r}},Kd={name:"duration",initialValue:"0s",prefix:false,type:1,parse:function(e,A){return A.filter(At).map(function(r){return Bi.parse(e,r)})}},Dd={name:"quotes",initialValue:"none",prefix:true,type:1,parse:function(e,A){if(A.length===0)return null;var r=A[0];if(r.type===20&&r.value==="none")return null;var t=[],i=A.filter(ac);if(i.length%2!==0)return null;for(var l=0;l<i.length;l+=2){var d=i[l].value,h=i[l+1].value;t.push({open:d,close:h});}return t}},fi=function(e,A,r){if(!e)return "";var t=e[Math.min(A,e.length-1)];return t?r?t.open:t.close:""},Md={name:"box-shadow",initialValue:"none",type:1,prefix:false,parse:function(e,A){return A.length===1&&hs(A[0],"none")?[]:RA(A).map(function(r){for(var t={color:255,offsetX:wA,offsetY:wA,blur:wA,spread:wA,inset:false},i=0,l=0;l<r.length;l++){var d=r[l];hs(d,"inset")?t.inset=true:ZA(d)?(i===0?t.offsetX=d:i===1?t.offsetY=d:i===2?t.blur=d:t.spread=d,i++):t.color=Ae.parse(e,d);}return t})}},Rd={name:"paint-order",initialValue:"normal",prefix:false,type:1,parse:function(e,A){var r=[0,1,2],t=[];return A.filter(sA).forEach(function(i){switch(i.value){case "stroke":t.push(1);break;case "fill":t.push(0);break;case "markers":t.push(2);break}}),r.forEach(function(i){t.indexOf(i)===-1&&t.push(i);}),t}},Od={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:false,type:3,format:"color"},Nd={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:false,parse:function(e,A){return At(A)?A.number:0}},Pd=(function(){function e(A,r){var t,i;this.animationDuration=T(A,Kd,r.animationDuration),this.backgroundClip=T(A,dc,r.backgroundClip),this.backgroundColor=T(A,pc,r.backgroundColor),this.backgroundImage=T(A,vc,r.backgroundImage),this.backgroundOrigin=T(A,Qc,r.backgroundOrigin),this.backgroundPosition=T(A,yc,r.backgroundPosition),this.backgroundRepeat=T(A,Fc,r.backgroundRepeat),this.backgroundSize=T(A,xc,r.backgroundSize),this.borderTopColor=T(A,Hc,r.borderTopColor),this.borderRightColor=T(A,Ic,r.borderRightColor),this.borderBottomColor=T(A,kc,r.borderBottomColor),this.borderLeftColor=T(A,Lc,r.borderLeftColor),this.borderTopLeftRadius=T(A,Sc,r.borderTopLeftRadius),this.borderTopRightRadius=T(A,Tc,r.borderTopRightRadius),this.borderBottomRightRadius=T(A,Kc,r.borderBottomRightRadius),this.borderBottomLeftRadius=T(A,Dc,r.borderBottomLeftRadius),this.borderTopStyle=T(A,Mc,r.borderTopStyle),this.borderRightStyle=T(A,Rc,r.borderRightStyle),this.borderBottomStyle=T(A,Oc,r.borderBottomStyle),this.borderLeftStyle=T(A,Nc,r.borderLeftStyle),this.borderTopWidth=T(A,Pc,r.borderTopWidth),this.borderRightWidth=T(A,Gc,r.borderRightWidth),this.borderBottomWidth=T(A,_c,r.borderBottomWidth),this.borderLeftWidth=T(A,Vc,r.borderLeftWidth),this.boxShadow=T(A,Md,r.boxShadow),this.color=T(A,Xc,r.color),this.direction=T(A,Yc,r.direction),this.display=T(A,Jc,r.display),this.float=T(A,jc,r.cssFloat),this.fontFamily=T(A,xd,r.fontFamily),this.fontSize=T(A,Ed,r.fontSize),this.fontStyle=T(A,kd,r.fontStyle),this.fontVariant=T(A,Id,r.fontVariant),this.fontWeight=T(A,Hd,r.fontWeight),this.letterSpacing=T(A,$c,r.letterSpacing),this.lineBreak=T(A,zc,r.lineBreak),this.lineHeight=T(A,Zc,r.lineHeight),this.listStyleImage=T(A,qc,r.listStyleImage),this.listStylePosition=T(A,Ad,r.listStylePosition),this.listStyleType=T(A,ws,r.listStyleType),this.marginTop=T(A,ed,r.marginTop),this.marginRight=T(A,td,r.marginRight),this.marginBottom=T(A,rd,r.marginBottom),this.marginLeft=T(A,sd,r.marginLeft),this.opacity=T(A,yd,r.opacity);var l=T(A,nd,r.overflow);this.overflowX=l[0],this.overflowY=l[l.length>1?1:0],this.overflowWrap=T(A,id,r.overflowWrap),this.paddingTop=T(A,od,r.paddingTop),this.paddingRight=T(A,ad,r.paddingRight),this.paddingBottom=T(A,ld,r.paddingBottom),this.paddingLeft=T(A,cd,r.paddingLeft),this.paintOrder=T(A,Rd,r.paintOrder),this.position=T(A,pd,r.position),this.textAlign=T(A,dd,r.textAlign),this.textDecorationColor=T(A,Fd,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=T(A,Ud,(i=r.textDecorationLine)!==null&&i!==void 0?i:r.textDecoration),this.textShadow=T(A,ud,r.textShadow),this.textTransform=T(A,hd,r.textTransform),this.transform=T(A,gd,r.transform),this.transformOrigin=T(A,bd,r.transformOrigin),this.visibility=T(A,Cd,r.visibility),this.webkitTextStrokeColor=T(A,Od,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=T(A,Nd,r.webkitTextStrokeWidth),this.wordBreak=T(A,vd,r.wordBreak),this.zIndex=T(A,Qd,r.zIndex);}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return ee(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return hA(this.display,4)||hA(this.display,33554432)||hA(this.display,268435456)||hA(this.display,536870912)||hA(this.display,67108864)||hA(this.display,134217728)},e})(),Gd=(function(){function e(A,r){this.content=T(A,Ld,r.content),this.quotes=T(A,Dd,r.quotes);}return e})(),wi=(function(){function e(A,r){this.counterIncrement=T(A,Sd,r.counterIncrement),this.counterReset=T(A,Td,r.counterReset);}return e})(),T=function(e,A,r){var t=new Vn,i=r!==null&&typeof r<"u"?r.toString():A.initialValue;t.write(i);var l=new Xn(t.read());switch(A.type){case 2:var d=l.parseComponentValue();return A.parse(e,sA(d)?d.value:A.initialValue);case 0:return A.parse(e,l.parseComponentValue());case 1:return A.parse(e,l.parseComponentValues());case 4:return l.parseComponentValue();case 3:switch(A.format){case "angle":return Pt.parse(e,l.parseComponentValue());case "color":return Ae.parse(e,l.parseComponentValue());case "image":return fs.parse(e,l.parseComponentValue());case "length":var h=l.parseComponentValue();return ZA(h)?h:wA;case "length-percentage":var u=l.parseComponentValue();return dA(u)?u:wA;case "time":return Bi.parse(e,l.parseComponentValue())}break}},_d="data-html2canvas-debug",Vd=function(e){var A=e.getAttribute(_d);switch(A){case "all":return 1;case "clone":return 2;case "parse":return 3;case "render":return 4;default:return 0}},ms=function(e,A){var r=Vd(e);return r===1||A===r},OA=(function(){function e(A,r){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,ms(r,3))debugger;this.styles=new Pd(A,window.getComputedStyle(r,null)),Ss(r)&&(this.styles.animationDuration.some(function(t){return t>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=f(this.context,r),ms(r,4)&&(this.flags|=16);}return e})(),Xd="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA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U1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigD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lQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFig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AOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",mi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",st=typeof Uint8Array>"u"?[]:new Uint8Array(256),Zt=0;Zt<mi.length;Zt++)st[mi.charCodeAt(Zt)]=Zt;for(var Yd=function(e){var A=e.length*.75,r=e.length,t,i=0,l,d,h,u;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var B=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),w=Array.isArray(B)?B:new Uint8Array(B);for(t=0;t<r;t+=4)l=st[e.charCodeAt(t)],d=st[e.charCodeAt(t+1)],h=st[e.charCodeAt(t+2)],u=st[e.charCodeAt(t+3)],w[i++]=l<<2|d>>4,w[i++]=(d&15)<<4|h>>2,w[i++]=(h&3)<<6|u&63;return B},Jd=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},Wd=function(e){for(var A=e.length,r=[],t=0;t<A;t+=4)r.push(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]);return r},pe=5,bs=11,Cs=2,jd=bs-pe,bi=65536>>pe,$d=1<<pe,vs=$d-1,zd=1024>>pe,Zd=bi+zd,qd=Zd,Ap=32,ep=qd+Ap,tp=65536>>bs,rp=1<<jd,sp=rp-1,Ci=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},np=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},ip=function(e,A){var r=Yd(e),t=Array.isArray(r)?Wd(r):new Uint32Array(r),i=Array.isArray(r)?Jd(r):new Uint16Array(r),l=24,d=Ci(i,l/2,t[4]/2),h=t[5]===2?Ci(i,(l+t[4])/2):np(t,Math.ceil((l+t[4])/4));return new op(t[0],t[1],t[2],t[3],d,h)},op=(function(){function e(A,r,t,i,l,d){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=i,this.index=l,this.data=d;}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>pe],r=(r<<Cs)+(A&vs),this.data[r];if(A<=65535)return r=this.index[bi+(A-55296>>pe)],r=(r<<Cs)+(A&vs),this.data[r];if(A<this.highStart)return r=ep-tp+(A>>bs),r=this.index[r],r+=A>>pe&sp,r=this.index[r],r=(r<<Cs)+(A&vs),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),vi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ap=typeof Uint8Array>"u"?[]:new Uint8Array(256),qt=0;qt<vi.length;qt++)ap[vi.charCodeAt(qt)]=qt;var lp=1,Qs=2,ys=3,Qi=4,yi=5,cp=7,Fi=8,Fs=9,Us=10,Ui=11,xi=12,Ei=13,Hi=14,xs=15,dp=function(e){for(var A=[],r=0,t=e.length;r<t;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<t){var l=e.charCodeAt(r++);(l&64512)===56320?A.push(((i&1023)<<10)+(l&1023)+65536):(A.push(i),r--);}else A.push(i);}return A},pp=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return "";for(var t=[],i=-1,l="";++i<r;){var d=e[i];d<=65535?t.push(d):(d-=65536,t.push((d>>10)+55296,d%1024+56320)),(i+1===r||t.length>16384)&&(l+=String.fromCharCode.apply(String,t),t.length=0);}return l},up=ip(Xd),kA="\xD7",Es="\xF7",hp=function(e){return up.get(e)},gp=function(e,A,r){var t=r-2,i=A[t],l=A[r-1],d=A[r];if(l===Qs&&d===ys)return kA;if(l===Qs||l===ys||l===Qi||d===Qs||d===ys||d===Qi)return Es;if(l===Fi&&[Fi,Fs,Ui,xi].indexOf(d)!==-1||(l===Ui||l===Fs)&&(d===Fs||d===Us)||(l===xi||l===Us)&&d===Us||d===Ei||d===yi||d===cp||l===lp)return kA;if(l===Ei&&d===Hi){for(;i===yi;)i=A[--t];if(i===Hi)return kA}if(l===xs&&d===xs){for(var h=0;i===xs;)h++,i=A[--t];if(h%2===0)return kA}return Es},Bp=function(e){var A=dp(e),r=A.length,t=0,i=0,l=A.map(hp);return {next:function(){if(t>=r)return {done:true,value:null};for(var d=kA;t<r&&(d=gp(A,l,++t))===kA;);if(d!==kA||t===r){var h=pp.apply(null,A.slice(i,t));return i=t,{value:h,done:false}}return {done:true,value:null}}}},fp=function(e){for(var A=Bp(e),r=[],t;!(t=A.next()).done;)t.value&&r.push(t.value.slice());return r},wp=function(e){var A=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var t=e.createElement("boundtest");t.style.height=A+"px",t.style.display="block",e.body.appendChild(t),r.selectNode(t);var i=r.getBoundingClientRect(),l=Math.round(i.height);if(e.body.removeChild(t),l===A)return true}}return false},mp=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var r=e.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var t=A.firstChild,i=Q(t.data).map(function(u){return b(u)}),l=0,d={},h=i.every(function(u,B){r.setStart(t,l),r.setEnd(t,l+u.length);var w=r.getBoundingClientRect();l+=u.length;var v=w.x>d.x||w.y>d.y;return d=w,B===0?true:v});return e.body.removeChild(A),h},bp=function(){return typeof new Image().crossOrigin<"u"},Cp=function(){return typeof new XMLHttpRequest().responseType=="string"},vp=function(e){var A=new Image,r=e.createElement("canvas"),t=r.getContext("2d");if(!t)return false;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(A,0,0),r.toDataURL();}catch{return false}return true},Ii=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},Qp=function(e){var A=e.createElement("canvas"),r=100;A.width=r,A.height=r;var t=A.getContext("2d");if(!t)return Promise.reject(false);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,r,r);var i=new Image,l=A.toDataURL();i.src=l;var d=Hs(r,r,0,0,i);return t.fillStyle="red",t.fillRect(0,0,r,r),ki(d).then(function(h){t.drawImage(h,0,0);var u=t.getImageData(0,0,r,r).data;t.fillStyle="red",t.fillRect(0,0,r,r);var B=e.createElement("div");return B.style.backgroundImage="url("+l+")",B.style.height=r+"px",Ii(u)?ki(Hs(r,r,0,0,B)):Promise.reject(false)}).then(function(h){return t.drawImage(h,0,0),Ii(t.getImageData(0,0,r,r).data)}).catch(function(){return false})},Hs=function(e,A,r,t,i){var l="http://www.w3.org/2000/svg",d=document.createElementNS(l,"svg"),h=document.createElementNS(l,"foreignObject");return d.setAttributeNS(null,"width",e.toString()),d.setAttributeNS(null,"height",A.toString()),h.setAttributeNS(null,"width","100%"),h.setAttributeNS(null,"height","100%"),h.setAttributeNS(null,"x",r.toString()),h.setAttributeNS(null,"y",t.toString()),h.setAttributeNS(null,"externalResourcesRequired","true"),d.appendChild(h),h.appendChild(i),d},ki=function(e){return new Promise(function(A,r){var t=new Image;t.onload=function(){return A(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e));})},mA={get SUPPORT_RANGE_BOUNDS(){var e=wp(document);return Object.defineProperty(mA,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=mA.SUPPORT_RANGE_BOUNDS&&mp(document);return Object.defineProperty(mA,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=vp(document);return Object.defineProperty(mA,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?Qp(document):Promise.resolve(false);return Object.defineProperty(mA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=bp();return Object.defineProperty(mA,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Cp();return Object.defineProperty(mA,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(mA,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(mA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},nt=(function(){function e(A,r){this.text=A,this.bounds=r;}return e})(),yp=function(e,A,r,t){var i=xp(A,r),l=[],d=0;return i.forEach(function(h){if(r.textDecorationLine.length||h.trim().length>0)if(mA.SUPPORT_RANGE_BOUNDS){var u=Li(t,d,h.length).getClientRects();if(u.length>1){var B=Is(h),w=0;B.forEach(function(y){l.push(new nt(y,g.fromDOMRectList(e,Li(t,w+d,y.length).getClientRects()))),w+=y.length;});}else l.push(new nt(h,g.fromDOMRectList(e,u)));}else {var v=t.splitText(h.length);l.push(new nt(h,Fp(e,t))),t=v;}else mA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(h.length));d+=h.length;}),l},Fp=function(e,A){var r=A.ownerDocument;if(r){var t=r.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(true));var i=A.parentNode;if(i){i.replaceChild(t,A);var l=f(e,t);return t.firstChild&&i.replaceChild(t.firstChild,t),l}}return g.EMPTY},Li=function(e,A,r){var t=e.ownerDocument;if(!t)throw new Error("Node has no owner document");var i=t.createRange();return i.setStart(e,A),i.setEnd(e,A+r),i},Is=function(e){if(mA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(r){return r.segment})}return fp(e)},Up=function(e,A){if(mA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(t){return t.segment})}return Hp(e,A)},xp=function(e,A){return A.letterSpacing!==0?Is(e):Up(e,A)},Ep=[32,160,4961,65792,65793,4153,4241],Hp=function(e,A){for(var r=tl(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],i,l=function(){if(i.value){var d=i.value.slice(),h=Q(d),u="";h.forEach(function(B){Ep.indexOf(B)===-1?u+=b(B):(u.length&&t.push(u),t.push(b(B)),u="");}),u.length&&t.push(u);}};!(i=r.next()).done;)l();return t},Ip=(function(){function e(A,r,t){this.text=kp(r.data,t.textTransform),this.textBounds=yp(A,this.text,t,r);}return e})(),kp=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(Lp,Sp);case 2:return e.toUpperCase();default:return e}},Lp=/(^|\s|:|-|\(|\))([a-z])/g,Sp=function(e,A,r){return e.length>0?A+r.toUpperCase():e},Si=(function(e){s(A,e);function A(r,t){var i=e.call(this,r,t)||this;return i.src=t.currentSrc||t.src,i.intrinsicWidth=t.naturalWidth,i.intrinsicHeight=t.naturalHeight,i.context.cache.addImage(i.src),i}return A})(OA),Ti=(function(e){s(A,e);function A(r,t){var i=e.call(this,r,t)||this;return i.canvas=t,i.intrinsicWidth=t.width,i.intrinsicHeight=t.height,i}return A})(OA),Ki=(function(e){s(A,e);function A(r,t){var i=e.call(this,r,t)||this,l=new XMLSerializer,d=f(r,t);return t.setAttribute("width",d.width+"px"),t.setAttribute("height",d.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(l.serializeToString(t)),i.intrinsicWidth=t.width.baseVal.value,i.intrinsicHeight=t.height.baseVal.value,i.context.cache.addImage(i.svg),i}return A})(OA),Di=(function(e){s(A,e);function A(r,t){var i=e.call(this,r,t)||this;return i.value=t.value,i}return A})(OA),ks=(function(e){s(A,e);function A(r,t){var i=e.call(this,r,t)||this;return i.start=t.start,i.reversed=typeof t.reversed=="boolean"&&t.reversed===true,i}return A})(OA),Tp=[{type:15,flags:0,unit:"px",number:3}],Kp=[{type:16,flags:0,number:50}],Dp=function(e){return e.width>e.height?new g(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new g(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},Mp=function(e){var A=e.type===Rp?new Array(e.value.length+1).join("\u2022"):e.value;return A.length===0?e.placeholder||"":A},Ar="checkbox",er="radio",Rp="password",Mi=707406591,Ls=(function(e){s(A,e);function A(r,t){var i=e.call(this,r,t)||this;switch(i.type=t.type.toLowerCase(),i.checked=t.checked,i.value=Mp(t),(i.type===Ar||i.type===er)&&(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=Dp(i.bounds)),i.type){case Ar:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=Tp;break;case er:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=Kp;break}return i}return A})(OA),Ri=(function(e){s(A,e);function A(r,t){var i=e.call(this,r,t)||this,l=t.options[t.selectedIndex||0];return i.value=l&&l.text||"",i}return A})(OA),Oi=(function(e){s(A,e);function A(r,t){var i=e.call(this,r,t)||this;return i.value=t.value,i}return A})(OA),Ni=(function(e){s(A,e);function A(r,t){var i=e.call(this,r,t)||this;i.src=t.src,i.width=parseInt(t.width,10)||0,i.height=parseInt(t.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){i.tree=Gi(r,t.contentWindow.document.documentElement);var l=t.contentWindow.document.documentElement?tt(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):_A.TRANSPARENT,d=t.contentWindow.document.body?tt(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):_A.TRANSPARENT;i.backgroundColor=ee(l)?ee(d)?i.styles.backgroundColor:d:l;}}catch{}return i}return A})(OA),Op=["OL","UL","MENU"],tr=function(e,A,r,t){for(var i=A.firstChild,l=void 0;i;i=l)if(l=i.nextSibling,_i(i)&&i.data.trim().length>0)r.textNodes.push(new Ip(e,i,r.styles));else if(He(i))if(ji(i)&&i.assignedNodes)i.assignedNodes().forEach(function(h){return tr(e,h,r,t)});else {var d=Pi(e,i);d.styles.isVisible()&&(Np(i,d,t)?d.flags|=4:Pp(d.styles)&&(d.flags|=2),Op.indexOf(i.tagName)!==-1&&(d.flags|=8),r.elements.push(d),i.slot,i.shadowRoot?tr(e,i.shadowRoot,d,t):!sr(i)&&!Vi(i)&&!nr(i)&&tr(e,i,d,t));}},Pi=function(e,A){return Ks(A)?new Si(e,A):Xi(A)?new Ti(e,A):Vi(A)?new Ki(e,A):Gp(A)?new Di(e,A):_p(A)?new ks(e,A):Vp(A)?new Ls(e,A):nr(A)?new Ri(e,A):sr(A)?new Oi(e,A):Ji(A)?new Ni(e,A):new OA(e,A)},Gi=function(e,A){var r=Pi(e,A);return r.flags|=4,tr(e,A,r,r),r},Np=function(e,A,r){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Ts(e)&&r.styles.isTransparent()},Pp=function(e){return e.isPositioned()||e.isFloating()},_i=function(e){return e.nodeType===Node.TEXT_NODE},He=function(e){return e.nodeType===Node.ELEMENT_NODE},Ss=function(e){return He(e)&&typeof e.style<"u"&&!rr(e)},rr=function(e){return typeof e.className=="object"},Gp=function(e){return e.tagName==="LI"},_p=function(e){return e.tagName==="OL"},Vp=function(e){return e.tagName==="INPUT"},Xp=function(e){return e.tagName==="HTML"},Vi=function(e){return e.tagName==="svg"},Ts=function(e){return e.tagName==="BODY"},Xi=function(e){return e.tagName==="CANVAS"},Yi=function(e){return e.tagName==="VIDEO"},Ks=function(e){return e.tagName==="IMG"},Ji=function(e){return e.tagName==="IFRAME"},Wi=function(e){return e.tagName==="STYLE"},Yp=function(e){return e.tagName==="SCRIPT"},sr=function(e){return e.tagName==="TEXTAREA"},nr=function(e){return e.tagName==="SELECT"},ji=function(e){return e.tagName==="SLOT"},$i=function(e){return e.tagName.indexOf("-")>0},Jp=(function(){function e(){this.counters={};}return e.prototype.getCounterValue=function(A){var r=this.counters[A];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(A){var r=this.counters[A];return r||[]},e.prototype.pop=function(A){var r=this;A.forEach(function(t){return r.counters[t].pop()});},e.prototype.parse=function(A){var r=this,t=A.counterIncrement,i=A.counterReset,l=true;t!==null&&t.forEach(function(h){var u=r.counters[h.counter];u&&h.increment!==0&&(l=false,u.length||u.push(1),u[Math.max(0,u.length-1)]+=h.increment);});var d=[];return l&&i.forEach(function(h){var u=r.counters[h.counter];d.push(h.counter),u||(u=r.counters[h.counter]=[]),u.push(h.reset);}),d},e})(),zi={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Zi={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Wp={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},jp={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Ie=function(e,A,r,t,i,l){return e<A||e>r?ot(e,i,l.length>0):t.integers.reduce(function(d,h,u){for(;e>=h;)e-=h,d+=t.values[u];return d},"")+l},qi=function(e,A,r,t){var i="";do r||e--,i=t(e)+i,e/=A;while(e*A>=A);return i},cA=function(e,A,r,t,i){var l=r-A+1;return (e<0?"-":"")+(qi(Math.abs(e),l,t,function(d){return b(Math.floor(d%l)+A)})+i)},ue=function(e,A,r){r===void 0&&(r=". ");var t=A.length;return qi(Math.abs(e),t,false,function(i){return A[Math.floor(i%t)]})+r},ke=1,re=2,se=4,it=8,VA=function(e,A,r,t,i,l){if(e<-9999||e>9999)return ot(e,4,i.length>0);var d=Math.abs(e),h=i;if(d===0)return A[0]+h;for(var u=0;d>0&&u<=4;u++){var B=d%10;B===0&&hA(l,ke)&&h!==""?h=A[B]+h:B>1||B===1&&u===0||B===1&&u===1&&hA(l,re)||B===1&&u===1&&hA(l,se)&&e>100||B===1&&u>1&&hA(l,it)?h=A[B]+(u>0?r[u-1]:"")+h:B===1&&u>0&&(h=r[u-1]+h),d=Math.floor(d/10);}return (e<0?t:"")+h},Ao="\u5341\u767E\u5343\u842C",eo="\u62FE\u4F70\u4EDF\u842C",to="\u30DE\u30A4\u30CA\u30B9",Ds="\uB9C8\uC774\uB108\uC2A4",ot=function(e,A,r){var t=r?". ":"",i=r?"\u3001":"",l=r?", ":"",d=r?" ":"";switch(A){case 0:return "\u2022"+d;case 1:return "\u25E6"+d;case 2:return "\u25FE"+d;case 5:var h=cA(e,48,57,true,t);return h.length<4?"0"+h:h;case 4:return ue(e,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",i);case 6:return Ie(e,1,3999,zi,3,t).toLowerCase();case 7:return Ie(e,1,3999,zi,3,t);case 8:return cA(e,945,969,false,t);case 9:return cA(e,97,122,false,t);case 10:return cA(e,65,90,false,t);case 11:return cA(e,1632,1641,true,t);case 12:case 49:return Ie(e,1,9999,Zi,3,t);case 35:return Ie(e,1,9999,Zi,3,t).toLowerCase();case 13:return cA(e,2534,2543,true,t);case 14:case 30:return cA(e,6112,6121,true,t);case 15:return ue(e,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",i);case 16:return ue(e,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",i);case 17:case 48:return VA(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ao,"\u8CA0",i,re|se|it);case 47:return VA(e,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",eo,"\u8CA0",i,ke|re|se|it);case 42:return VA(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ao,"\u8D1F",i,re|se|it);case 41:return VA(e,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",eo,"\u8D1F",i,ke|re|se|it);case 26:return VA(e,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",to,i,0);case 25:return VA(e,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",to,i,ke|re|se);case 31:return VA(e,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Ds,l,ke|re|se);case 33:return VA(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Ds,l,0);case 32:return VA(e,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Ds,l,ke|re|se);case 18:return cA(e,2406,2415,true,t);case 20:return Ie(e,1,19999,jp,3,t);case 21:return cA(e,2790,2799,true,t);case 22:return cA(e,2662,2671,true,t);case 22:return Ie(e,1,10999,Wp,3,t);case 23:return ue(e,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return ue(e,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return cA(e,3302,3311,true,t);case 28:return ue(e,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",i);case 29:return ue(e,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",i);case 34:return cA(e,3792,3801,true,t);case 37:return cA(e,6160,6169,true,t);case 38:return cA(e,4160,4169,true,t);case 39:return cA(e,2918,2927,true,t);case 40:return cA(e,1776,1785,true,t);case 43:return cA(e,3046,3055,true,t);case 44:return cA(e,3174,3183,true,t);case 45:return cA(e,3664,3673,true,t);case 46:return cA(e,3872,3881,true,t);default:return cA(e,48,57,true,t)}},ro="data-html2canvas-ignore",so=(function(){function e(A,r,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new Jp,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,false);}return e.prototype.toIFrame=function(A,r){var t=this,i=$p(A,r);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var l=A.defaultView.pageXOffset,d=A.defaultView.pageYOffset,h=i.contentWindow,u=h.document,B=qp(i).then(function(){return a(t,void 0,void 0,function(){var w,v;return c(this,function(y){switch(y.label){case 0:return this.scrolledElements.forEach(ru),h&&(h.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(h.scrollY!==r.top||h.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(h.scrollX-r.left,h.scrollY-r.top,0,0))),w=this.options.onclone,v=this.clonedReferenceElement,typeof v>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:u.fonts&&u.fonts.ready?[4,u.fonts.ready]:[3,2];case 1:y.sent(),y.label=2;case 2:return /(AppleWebKit)/g.test(navigator.userAgent)?[4,Zp(u)]:[3,4];case 3:y.sent(),y.label=4;case 4:return typeof w=="function"?[2,Promise.resolve().then(function(){return w(u,v)}).then(function(){return i})]:[2,i]}})})});return u.open(),u.write(eu(document.doctype)+"<html></html>"),tu(this.referenceElement.ownerDocument,l,d),u.replaceChild(u.adoptNode(this.documentElement),u.documentElement),u.close(),B},e.prototype.createElementClone=function(A){if(ms(A,2))debugger;if(Xi(A))return this.createCanvasClone(A);if(Yi(A))return this.createVideoClone(A);if(Wi(A))return this.createStyleClone(A);var r=A.cloneNode(false);return Ks(r)&&(Ks(A)&&A.currentSrc&&A.currentSrc!==A.src&&(r.src=A.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),$i(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(A){var r=document.createElement("html2canvascustomelement");return Ms(A.style,r),r},e.prototype.createStyleClone=function(A){try{var r=A.sheet;if(r&&r.cssRules){var t=[].slice.call(r.cssRules,0).reduce(function(l,d){return d&&typeof d.cssText=="string"?l+d.cssText:l},""),i=A.cloneNode(!1);return i.textContent=t,i}}catch(l){if(this.context.logger.error("Unable to access cssRules property",l),l.name!=="SecurityError")throw l}return A.cloneNode(false)},e.prototype.createCanvasClone=function(A){var r;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A);}}var i=A.cloneNode(false);try{i.width=A.width,i.height=A.height;var l=A.getContext("2d"),d=i.getContext("2d");if(d)if(!this.options.allowTaint&&l)d.putImageData(l.getImageData(0,0,A.width,A.height),0,0);else {var h=(r=A.getContext("webgl2"))!==null&&r!==void 0?r:A.getContext("webgl");if(h){var u=h.getContextAttributes();u?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A);}d.drawImage(A,0,0);}return i}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A);}return i},e.prototype.createVideoClone=function(A){var r=A.ownerDocument.createElement("canvas");r.width=A.offsetWidth,r.height=A.offsetHeight;var t=r.getContext("2d");try{return t&&(t.drawImage(A,0,0,r.width,r.height),this.options.allowTaint||t.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",A);}var i=A.ownerDocument.createElement("canvas");return i.width=A.offsetWidth,i.height=A.offsetHeight,i},e.prototype.appendChildNode=function(A,r,t){(!He(r)||!Yp(r)&&!r.hasAttribute(ro)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!He(r)||!Wi(r))&&A.appendChild(this.cloneNode(r,t));},e.prototype.cloneChildNodes=function(A,r,t){for(var i=this,l=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;l;l=l.nextSibling)if(He(l)&&ji(l)&&typeof l.assignedNodes=="function"){var d=l.assignedNodes();d.length&&d.forEach(function(h){return i.appendChildNode(r,h,t)});}else this.appendChildNode(r,l,t);},e.prototype.cloneNode=function(A,r){if(_i(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(false);var t=A.ownerDocument.defaultView;if(t&&He(A)&&(Ss(A)||rr(A))){var i=this.createElementClone(A);i.style.transitionProperty="none";var l=t.getComputedStyle(A),d=t.getComputedStyle(A,":before"),h=t.getComputedStyle(A,":after");this.referenceElement===A&&Ss(i)&&(this.clonedReferenceElement=i),Ts(i)&&iu(i);var u=this.counters.parse(new wi(this.context,l)),B=this.resolvePseudoContent(A,i,d,at.BEFORE);$i(A)&&(r=true),Yi(A)||this.cloneChildNodes(A,i,r),B&&i.insertBefore(B,i.firstChild);var w=this.resolvePseudoContent(A,i,h,at.AFTER);return w&&i.appendChild(w),this.counters.pop(u),(l&&(this.options.copyStyles||rr(A))&&!Ji(A)||r)&&Ms(l,i),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([i,A.scrollLeft,A.scrollTop]),(sr(A)||nr(A))&&(sr(i)||nr(i))&&(i.value=A.value),i}return A.cloneNode(false)},e.prototype.resolvePseudoContent=function(A,r,t,i){var l=this;if(t){var d=t.content,h=r.ownerDocument;if(!(!h||!d||d==="none"||d==="-moz-alt-content"||t.display==="none")){this.counters.parse(new wi(this.context,t));var u=new Gd(this.context,t),B=h.createElement("html2canvaspseudoelement");Ms(t,B),u.content.forEach(function(v){if(v.type===0)B.appendChild(h.createTextNode(v.value));else if(v.type===22){var y=h.createElement("img");y.src=v.value,y.style.opacity="1",B.appendChild(y);}else if(v.type===18){if(v.name==="attr"){var S=v.values.filter(sA);S.length&&B.appendChild(h.createTextNode(A.getAttribute(S[0].value)||""));}else if(v.name==="counter"){var x=v.values.filter(xe),H=x[0],J=x[1];if(H&&sA(H)){var D=l.counters.getCounterValue(H.value),K=J&&sA(J)?ws.parse(l.context,J.value):3;B.appendChild(h.createTextNode(ot(D,K,false)));}}else if(v.name==="counters"){var eA=v.values.filter(xe),H=eA[0],W=eA[1],J=eA[2];if(H&&sA(H)){var X=l.counters.getCounterValues(H.value),L=J&&sA(J)?ws.parse(l.context,J.value):3,Z=W&&W.type===0?W.value:"",q=X.map(function(QA){return ot(QA,L,false)}).join(Z);B.appendChild(h.createTextNode(q));}}}else if(v.type===20)switch(v.value){case "open-quote":B.appendChild(h.createTextNode(fi(u.quotes,l.quoteDepth++,true)));break;case "close-quote":B.appendChild(h.createTextNode(fi(u.quotes,--l.quoteDepth,false)));break;default:B.appendChild(h.createTextNode(v.value));}}),B.className=Rs+" "+Os;var w=i===at.BEFORE?" "+Rs:" "+Os;return rr(r)?r.className.baseValue+=w:r.className+=w,B}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),true):false},e})(),at;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER";})(at||(at={}));var $p=function(e,A){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=A.width.toString(),r.height=A.height.toString(),r.scrolling="no",r.setAttribute(ro,"true"),e.body.appendChild(r),r},zp=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A;})},Zp=function(e){return Promise.all([].slice.call(e.images,0).map(zp))},qp=function(e){return new Promise(function(A,r){var t=e.contentWindow;if(!t)return r("No window assigned for iframe");var i=t.document;t.onload=e.onload=function(){t.onload=e.onload=null;var l=setInterval(function(){i.body.childNodes.length>0&&i.readyState==="complete"&&(clearInterval(l),A(e));},50);};})},Au=["all","d","content"],Ms=function(e,A){for(var r=e.length-1;r>=0;r--){var t=e.item(r);Au.indexOf(t)===-1&&A.style.setProperty(t,e.getPropertyValue(t));}return A},eu=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'+e.publicId+'"'),e.systemId&&(A+='"'+e.systemId+'"'),A+=">"),A},tu=function(e,A,r){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,r);},ru=function(e){var A=e[0],r=e[1],t=e[2];A.scrollLeft=r,A.scrollTop=t;},su=":before",nu=":after",Rs="___html2canvas___pseudoelement_before",Os="___html2canvas___pseudoelement_after",no=`{
39
+ content: "" !important;
40
+ display: none !important;
41
+ }`,iu=function(e){ou(e,"."+Rs+su+no+`
42
+ .`+Os+nu+no);},ou=function(e,A){var r=e.ownerDocument;if(r){var t=r.createElement("style");t.textContent=A,e.appendChild(t);}},io=(function(){function e(){}return e.getOrigin=function(A){var r=e._link;return r?(r.href=A,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href);},e._origin="about:blank",e})(),au=(function(){function e(A,r){this.context=A,this._options=r,this._cache={};}return e.prototype.addImage=function(A){var r=Promise.resolve();return this.has(A)||(Ps(A)||pu(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),r},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return a(this,void 0,void 0,function(){var r,t,i,l,d=this;return c(this,function(h){switch(h.label){case 0:return r=io.isSameOrigin(A),t=!Ns(A)&&this._options.useCORS===true&&mA.SUPPORT_CORS_IMAGES&&!r,i=!Ns(A)&&!r&&!Ps(A)&&typeof this._options.proxy=="string"&&mA.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===false&&!Ns(A)&&!Ps(A)&&!i&&!t?[2]:(l=A,i?[4,this.proxy(l)]:[3,2]);case 1:l=h.sent(),h.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(u,B){var w=new Image;w.onload=function(){return u(w)},w.onerror=B,(uu(l)||t)&&(w.crossOrigin="anonymous"),w.src=l,w.complete===true&&setTimeout(function(){return u(w)},500),d._options.imageTimeout>0&&setTimeout(function(){return B("Timed out ("+d._options.imageTimeout+"ms) loading image")},d._options.imageTimeout);})];case 3:return [2,h.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var r=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var i=A.substring(0,256);return new Promise(function(l,d){var h=mA.SUPPORT_RESPONSE_TYPE?"blob":"text",u=new XMLHttpRequest;u.onload=function(){if(u.status===200)if(h==="text")l(u.response);else {var v=new FileReader;v.addEventListener("load",function(){return l(v.result)},false),v.addEventListener("error",function(y){return d(y)},false),v.readAsDataURL(u.response);}else d("Failed to proxy resource "+i+" with status code "+u.status);},u.onerror=d;var B=t.indexOf("?")>-1?"&":"?";if(u.open("GET",""+t+B+"url="+encodeURIComponent(A)+"&responseType="+h),h!=="text"&&u instanceof XMLHttpRequest&&(u.responseType=h),r._options.imageTimeout){var w=r._options.imageTimeout;u.timeout=w,u.ontimeout=function(){return d("Timed out ("+w+"ms) proxying "+i)};}u.send();})},e})(),lu=/^data:image\/svg\+xml/i,cu=/^data:image\/.*;base64,/i,du=/^data:image\/.*/i,pu=function(e){return mA.SUPPORT_SVG_DRAWING||!hu(e)},Ns=function(e){return du.test(e)},uu=function(e){return cu.test(e)},Ps=function(e){return e.substr(0,4)==="blob"},hu=function(e){return e.substr(-3).toLowerCase()==="svg"||lu.test(e)},k=(function(){function e(A,r){this.type=0,this.x=A,this.y=r;}return e.prototype.add=function(A,r){return new e(this.x+A,this.y+r)},e})(),Le=function(e,A,r){return new k(e.x+(A.x-e.x)*r,e.y+(A.y-e.y)*r)},ir=(function(){function e(A,r,t,i){this.type=1,this.start=A,this.startControl=r,this.endControl=t,this.end=i;}return e.prototype.subdivide=function(A,r){var t=Le(this.start,this.startControl,A),i=Le(this.startControl,this.endControl,A),l=Le(this.endControl,this.end,A),d=Le(t,i,A),h=Le(i,l,A),u=Le(d,h,A);return r?new e(this.start,t,d,u):new e(u,h,l,this.end)},e.prototype.add=function(A,r){return new e(this.start.add(A,r),this.startControl.add(A,r),this.endControl.add(A,r),this.end.add(A,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),LA=function(e){return e.type===1},gu=(function(){function e(A){var r=A.styles,t=A.bounds,i=et(r.borderTopLeftRadius,t.width,t.height),l=i[0],d=i[1],h=et(r.borderTopRightRadius,t.width,t.height),u=h[0],B=h[1],w=et(r.borderBottomRightRadius,t.width,t.height),v=w[0],y=w[1],S=et(r.borderBottomLeftRadius,t.width,t.height),x=S[0],H=S[1],J=[];J.push((l+u)/t.width),J.push((x+v)/t.width),J.push((d+H)/t.height),J.push((B+y)/t.height);var D=Math.max.apply(Math,J);D>1&&(l/=D,d/=D,u/=D,B/=D,v/=D,y/=D,x/=D,H/=D);var K=t.width-u,eA=t.height-y,W=t.width-v,X=t.height-H,L=r.borderTopWidth,Z=r.borderRightWidth,q=r.borderBottomWidth,Y=r.borderLeftWidth,pA=iA(r.paddingTop,A.bounds.width),QA=iA(r.paddingRight,A.bounds.width),EA=iA(r.paddingBottom,A.bounds.width),nA=iA(r.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=l>0||d>0?aA(t.left+Y/3,t.top+L/3,l-Y/3,d-L/3,tA.TOP_LEFT):new k(t.left+Y/3,t.top+L/3),this.topRightBorderDoubleOuterBox=l>0||d>0?aA(t.left+K,t.top+L/3,u-Z/3,B-L/3,tA.TOP_RIGHT):new k(t.left+t.width-Z/3,t.top+L/3),this.bottomRightBorderDoubleOuterBox=v>0||y>0?aA(t.left+W,t.top+eA,v-Z/3,y-q/3,tA.BOTTOM_RIGHT):new k(t.left+t.width-Z/3,t.top+t.height-q/3),this.bottomLeftBorderDoubleOuterBox=x>0||H>0?aA(t.left+Y/3,t.top+X,x-Y/3,H-q/3,tA.BOTTOM_LEFT):new k(t.left+Y/3,t.top+t.height-q/3),this.topLeftBorderDoubleInnerBox=l>0||d>0?aA(t.left+Y*2/3,t.top+L*2/3,l-Y*2/3,d-L*2/3,tA.TOP_LEFT):new k(t.left+Y*2/3,t.top+L*2/3),this.topRightBorderDoubleInnerBox=l>0||d>0?aA(t.left+K,t.top+L*2/3,u-Z*2/3,B-L*2/3,tA.TOP_RIGHT):new k(t.left+t.width-Z*2/3,t.top+L*2/3),this.bottomRightBorderDoubleInnerBox=v>0||y>0?aA(t.left+W,t.top+eA,v-Z*2/3,y-q*2/3,tA.BOTTOM_RIGHT):new k(t.left+t.width-Z*2/3,t.top+t.height-q*2/3),this.bottomLeftBorderDoubleInnerBox=x>0||H>0?aA(t.left+Y*2/3,t.top+X,x-Y*2/3,H-q*2/3,tA.BOTTOM_LEFT):new k(t.left+Y*2/3,t.top+t.height-q*2/3),this.topLeftBorderStroke=l>0||d>0?aA(t.left+Y/2,t.top+L/2,l-Y/2,d-L/2,tA.TOP_LEFT):new k(t.left+Y/2,t.top+L/2),this.topRightBorderStroke=l>0||d>0?aA(t.left+K,t.top+L/2,u-Z/2,B-L/2,tA.TOP_RIGHT):new k(t.left+t.width-Z/2,t.top+L/2),this.bottomRightBorderStroke=v>0||y>0?aA(t.left+W,t.top+eA,v-Z/2,y-q/2,tA.BOTTOM_RIGHT):new k(t.left+t.width-Z/2,t.top+t.height-q/2),this.bottomLeftBorderStroke=x>0||H>0?aA(t.left+Y/2,t.top+X,x-Y/2,H-q/2,tA.BOTTOM_LEFT):new k(t.left+Y/2,t.top+t.height-q/2),this.topLeftBorderBox=l>0||d>0?aA(t.left,t.top,l,d,tA.TOP_LEFT):new k(t.left,t.top),this.topRightBorderBox=u>0||B>0?aA(t.left+K,t.top,u,B,tA.TOP_RIGHT):new k(t.left+t.width,t.top),this.bottomRightBorderBox=v>0||y>0?aA(t.left+W,t.top+eA,v,y,tA.BOTTOM_RIGHT):new k(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=x>0||H>0?aA(t.left,t.top+X,x,H,tA.BOTTOM_LEFT):new k(t.left,t.top+t.height),this.topLeftPaddingBox=l>0||d>0?aA(t.left+Y,t.top+L,Math.max(0,l-Y),Math.max(0,d-L),tA.TOP_LEFT):new k(t.left+Y,t.top+L),this.topRightPaddingBox=u>0||B>0?aA(t.left+Math.min(K,t.width-Z),t.top+L,K>t.width+Z?0:Math.max(0,u-Z),Math.max(0,B-L),tA.TOP_RIGHT):new k(t.left+t.width-Z,t.top+L),this.bottomRightPaddingBox=v>0||y>0?aA(t.left+Math.min(W,t.width-Y),t.top+Math.min(eA,t.height-q),Math.max(0,v-Z),Math.max(0,y-q),tA.BOTTOM_RIGHT):new k(t.left+t.width-Z,t.top+t.height-q),this.bottomLeftPaddingBox=x>0||H>0?aA(t.left+Y,t.top+Math.min(X,t.height-q),Math.max(0,x-Y),Math.max(0,H-q),tA.BOTTOM_LEFT):new k(t.left+Y,t.top+t.height-q),this.topLeftContentBox=l>0||d>0?aA(t.left+Y+nA,t.top+L+pA,Math.max(0,l-(Y+nA)),Math.max(0,d-(L+pA)),tA.TOP_LEFT):new k(t.left+Y+nA,t.top+L+pA),this.topRightContentBox=u>0||B>0?aA(t.left+Math.min(K,t.width+Y+nA),t.top+L+pA,K>t.width+Y+nA?0:u-Y+nA,B-(L+pA),tA.TOP_RIGHT):new k(t.left+t.width-(Z+QA),t.top+L+pA),this.bottomRightContentBox=v>0||y>0?aA(t.left+Math.min(W,t.width-(Y+nA)),t.top+Math.min(eA,t.height+L+pA),Math.max(0,v-(Z+QA)),y-(q+EA),tA.BOTTOM_RIGHT):new k(t.left+t.width-(Z+QA),t.top+t.height-(q+EA)),this.bottomLeftContentBox=x>0||H>0?aA(t.left+Y+nA,t.top+X,Math.max(0,x-(Y+nA)),H-(q+EA),tA.BOTTOM_LEFT):new k(t.left+Y+nA,t.top+t.height-(q+EA));}return e})(),tA;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT";})(tA||(tA={}));var aA=function(e,A,r,t,i){var l=4*((Math.sqrt(2)-1)/3),d=r*l,h=t*l,u=e+r,B=A+t;switch(i){case tA.TOP_LEFT:return new ir(new k(e,B),new k(e,B-h),new k(u-d,A),new k(u,A));case tA.TOP_RIGHT:return new ir(new k(e,A),new k(e+d,A),new k(u,B-h),new k(u,B));case tA.BOTTOM_RIGHT:return new ir(new k(u,A),new k(u,A+h),new k(e+d,B),new k(e,B));case tA.BOTTOM_LEFT:default:return new ir(new k(u,B),new k(u-d,B),new k(e,A+h),new k(e,A))}},or=function(e){return [e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Bu=function(e){return [e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},ar=function(e){return [e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},fu=(function(){function e(A,r,t){this.offsetX=A,this.offsetY=r,this.matrix=t,this.type=0,this.target=6;}return e})(),lr=(function(){function e(A,r){this.path=A,this.target=r,this.type=1;}return e})(),wu=(function(){function e(A){this.opacity=A,this.type=2,this.target=6;}return e})(),mu=function(e){return e.type===0},oo=function(e){return e.type===1},bu=function(e){return e.type===2},ao=function(e,A){return e.length===A.length?e.some(function(r,t){return r===A[t]}):false},Cu=function(e,A,r,t,i){return e.map(function(l,d){switch(d){case 0:return l.add(A,r);case 1:return l.add(A+t,r);case 2:return l.add(A+t,r+i);case 3:return l.add(A,r+i)}return l})},lo=(function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[];}return e})(),co=(function(){function e(A,r){if(this.container=A,this.parent=r,this.effects=[],this.curves=new gu(this.container),this.container.styles.opacity<1&&this.effects.push(new wu(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,l=this.container.styles.transform;this.effects.push(new fu(t,i,l));}if(this.container.styles.overflowX!==0){var d=or(this.curves),h=ar(this.curves);ao(d,h)?this.effects.push(new lr(d,6)):(this.effects.push(new lr(d,2)),this.effects.push(new lr(h,4)));}}return e.prototype.getEffects=function(A){for(var r=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,i=this.effects.slice(0);t;){var l=t.effects.filter(function(u){return !oo(u)});if(r||t.container.styles.position!==0||!t.parent){if(i.unshift.apply(i,l),r=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var d=or(t.curves),h=ar(t.curves);ao(d,h)||i.unshift(new lr(h,6));}}else i.unshift.apply(i,l);t=t.parent;}return i.filter(function(u){return hA(u.target,A)})},e})(),Gs=function(e,A,r,t){e.container.elements.forEach(function(i){var l=hA(i.flags,4),d=hA(i.flags,2),h=new co(i,e);hA(i.styles.display,2048)&&t.push(h);var u=hA(i.flags,8)?[]:t;if(l||d){var B=l||i.styles.isPositioned()?r:A,w=new lo(h);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var v=i.styles.zIndex.order;if(v<0){var y=0;B.negativeZIndex.some(function(x,H){return v>x.element.container.styles.zIndex.order?(y=H,false):y>0}),B.negativeZIndex.splice(y,0,w);}else if(v>0){var S=0;B.positiveZIndex.some(function(x,H){return v>=x.element.container.styles.zIndex.order?(S=H+1,false):S>0}),B.positiveZIndex.splice(S,0,w);}else B.zeroOrAutoZIndexOrTransformedOrOpacity.push(w);}else i.styles.isFloating()?B.nonPositionedFloats.push(w):B.nonPositionedInlineLevel.push(w);Gs(h,w,l?w:r,u);}else i.styles.isInlineLevel()?A.inlineLevel.push(h):A.nonInlineLevel.push(h),Gs(h,A,r,u);hA(i.flags,8)&&po(i,u);});},po=function(e,A){for(var r=e instanceof ks?e.start:1,t=e instanceof ks?e.reversed:false,i=0;i<A.length;i++){var l=A[i];l.container instanceof Di&&typeof l.container.value=="number"&&l.container.value!==0&&(r=l.container.value),l.listValue=ot(r,l.container.styles.listStyleType,true),r+=t?-1:1;}},vu=function(e){var A=new co(e,null),r=new lo(A),t=[];return Gs(A,r,r,t),po(A.container,t),r},uo=function(e,A){switch(A){case 0:return SA(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return SA(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return SA(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return SA(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Qu=function(e,A){switch(A){case 0:return SA(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return SA(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return SA(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return SA(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},yu=function(e,A){switch(A){case 0:return SA(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return SA(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return SA(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return SA(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},Fu=function(e,A){switch(A){case 0:return cr(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return cr(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return cr(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return cr(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},cr=function(e,A){var r=[];return LA(e)?r.push(e.subdivide(.5,false)):r.push(e),LA(A)?r.push(A.subdivide(.5,true)):r.push(A),r},SA=function(e,A,r,t){var i=[];return LA(e)?i.push(e.subdivide(.5,false)):i.push(e),LA(r)?i.push(r.subdivide(.5,true)):i.push(r),LA(t)?i.push(t.subdivide(.5,true).reverse()):i.push(t),LA(A)?i.push(A.subdivide(.5,false).reverse()):i.push(A),i},ho=function(e){var A=e.bounds,r=e.styles;return A.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},dr=function(e){var A=e.styles,r=e.bounds,t=iA(A.paddingLeft,r.width),i=iA(A.paddingRight,r.width),l=iA(A.paddingTop,r.width),d=iA(A.paddingBottom,r.width);return r.add(t+A.borderLeftWidth,l+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+t+i),-(A.borderTopWidth+A.borderBottomWidth+l+d))},Uu=function(e,A){return e===0?A.bounds:e===2?dr(A):ho(A)},xu=function(e,A){return e===0?A.bounds:e===2?dr(A):ho(A)},_s=function(e,A,r){var t=Uu(Te(e.styles.backgroundOrigin,A),e),i=xu(Te(e.styles.backgroundClip,A),e),l=Eu(Te(e.styles.backgroundSize,A),r,t),d=l[0],h=l[1],u=et(Te(e.styles.backgroundPosition,A),t.width-d,t.height-h),B=Hu(Te(e.styles.backgroundRepeat,A),u,l,t,i),w=Math.round(t.left+u[0]),v=Math.round(t.top+u[1]);return [B,w,v,d,h]},Se=function(e){return sA(e)&&e.value===Ee.AUTO},pr=function(e){return typeof e=="number"},Eu=function(e,A,r){var t=A[0],i=A[1],l=A[2],d=e[0],h=e[1];if(!d)return [0,0];if(dA(d)&&h&&dA(h))return [iA(d,r.width),iA(h,r.height)];var u=pr(l);if(sA(d)&&(d.value===Ee.CONTAIN||d.value===Ee.COVER)){if(pr(l)){var B=r.width/r.height;return B<l!=(d.value===Ee.COVER)?[r.width,r.width/l]:[r.height*l,r.height]}return [r.width,r.height]}var w=pr(t),v=pr(i),y=w||v;if(Se(d)&&(!h||Se(h))){if(w&&v)return [t,i];if(!u&&!y)return [r.width,r.height];if(y&&u){var S=w?t:i*l,x=v?i:t/l;return [S,x]}var H=w?t:r.width,J=v?i:r.height;return [H,J]}if(u){var D=0,K=0;return dA(d)?D=iA(d,r.width):dA(h)&&(K=iA(h,r.height)),Se(d)?D=K*l:(!h||Se(h))&&(K=D/l),[D,K]}var eA=null,W=null;if(dA(d)?eA=iA(d,r.width):h&&dA(h)&&(W=iA(h,r.height)),eA!==null&&(!h||Se(h))&&(W=w&&v?eA/t*i:r.height),W!==null&&Se(d)&&(eA=w&&v?W/i*t:r.width),eA!==null&&W!==null)return [eA,W];throw new Error("Unable to calculate background-size for element")},Te=function(e,A){var r=e[A];return typeof r>"u"?e[0]:r},Hu=function(e,A,r,t,i){var l=A[0],d=A[1],h=r[0],u=r[1];switch(e){case 2:return [new k(Math.round(t.left),Math.round(t.top+d)),new k(Math.round(t.left+t.width),Math.round(t.top+d)),new k(Math.round(t.left+t.width),Math.round(u+t.top+d)),new k(Math.round(t.left),Math.round(u+t.top+d))];case 3:return [new k(Math.round(t.left+l),Math.round(t.top)),new k(Math.round(t.left+l+h),Math.round(t.top)),new k(Math.round(t.left+l+h),Math.round(t.height+t.top)),new k(Math.round(t.left+l),Math.round(t.height+t.top))];case 1:return [new k(Math.round(t.left+l),Math.round(t.top+d)),new k(Math.round(t.left+l+h),Math.round(t.top+d)),new k(Math.round(t.left+l+h),Math.round(t.top+d+u)),new k(Math.round(t.left+l),Math.round(t.top+d+u))];default:return [new k(Math.round(i.left),Math.round(i.top)),new k(Math.round(i.left+i.width),Math.round(i.top)),new k(Math.round(i.left+i.width),Math.round(i.height+i.top)),new k(Math.round(i.left),Math.round(i.height+i.top))]}},Iu="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",go="Hidden Text",ku=(function(){function e(A){this._data={},this._document=A;}return e.prototype.parseMetrics=function(A,r){var t=this._document.createElement("div"),i=this._document.createElement("img"),l=this._document.createElement("span"),d=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=r,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",d.appendChild(t),i.src=Iu,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",l.style.fontFamily=A,l.style.fontSize=r,l.style.margin="0",l.style.padding="0",l.appendChild(this._document.createTextNode(go)),t.appendChild(l),t.appendChild(i);var h=i.offsetTop-l.offsetTop+2;t.removeChild(l),t.appendChild(this._document.createTextNode(go)),t.style.lineHeight="normal",i.style.verticalAlign="super";var u=i.offsetTop-t.offsetTop+2;return d.removeChild(t),{baseline:h,middle:u}},e.prototype.getMetrics=function(A,r){var t=A+" "+r;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(A,r)),this._data[t]},e})(),Bo=(function(){function e(A,r){this.context=A,this.options=r;}return e})(),Lu=1e4,Su=(function(e){s(A,e);function A(r,t){var i=e.call(this,r,t)||this;return i._activeEffects=[],i.canvas=t.canvas?t.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),t.canvas||(i.canvas.width=Math.floor(t.width*t.scale),i.canvas.height=Math.floor(t.height*t.scale),i.canvas.style.width=t.width+"px",i.canvas.style.height=t.height+"px"),i.fontMetrics=new ku(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-t.x,-t.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),i}return A.prototype.applyEffects=function(r){for(var t=this;this._activeEffects.length;)this.popEffect();r.forEach(function(i){return t.applyEffect(i)});},A.prototype.applyEffect=function(r){this.ctx.save(),bu(r)&&(this.ctx.globalAlpha=r.opacity),mu(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),oo(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r);},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore();},A.prototype.renderStack=function(r){return a(this,void 0,void 0,function(){var t;return c(this,function(i){switch(i.label){case 0:return t=r.element.container.styles,t.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:i.sent(),i.label=2;case 2:return [2]}})})},A.prototype.renderNode=function(r){return a(this,void 0,void 0,function(){return c(this,function(t){switch(t.label){case 0:if(hA(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(r)];case 2:t.sent(),t.label=3;case 3:return [2]}})})},A.prototype.renderTextWithLetterSpacing=function(r,t,i){var l=this;if(t===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+i);else {var d=Is(r.text);d.reduce(function(h,u){return l.ctx.fillText(u,h,r.bounds.top+i),h+l.ctx.measureText(u).width},r.bounds.left);}},A.prototype.createFontStyle=function(r){var t=r.fontVariant.filter(function(d){return d==="normal"||d==="small-caps"}).join(""),i=Ru(r.fontFamily).join(", "),l=At(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return [[r.fontStyle,t,r.fontWeight,l,i].join(" "),i,l]},A.prototype.renderTextNode=function(r,t){return a(this,void 0,void 0,function(){var i,l,d,h,u,B,w,v,y=this;return c(this,function(S){return i=this.createFontStyle(t),l=i[0],d=i[1],h=i[2],this.ctx.font=l,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",u=this.fontMetrics.getMetrics(d,h),B=u.baseline,w=u.middle,v=t.paintOrder,r.textBounds.forEach(function(x){v.forEach(function(H){switch(H){case 0:y.ctx.fillStyle=fA(t.color),y.renderTextWithLetterSpacing(x,t.letterSpacing,B);var J=t.textShadow;J.length&&x.text.trim().length&&(J.slice(0).reverse().forEach(function(D){y.ctx.shadowColor=fA(D.color),y.ctx.shadowOffsetX=D.offsetX.number*y.options.scale,y.ctx.shadowOffsetY=D.offsetY.number*y.options.scale,y.ctx.shadowBlur=D.blur.number,y.renderTextWithLetterSpacing(x,t.letterSpacing,B);}),y.ctx.shadowColor="",y.ctx.shadowOffsetX=0,y.ctx.shadowOffsetY=0,y.ctx.shadowBlur=0),t.textDecorationLine.length&&(y.ctx.fillStyle=fA(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(D){switch(D){case 1:y.ctx.fillRect(x.bounds.left,Math.round(x.bounds.top+B),x.bounds.width,1);break;case 2:y.ctx.fillRect(x.bounds.left,Math.round(x.bounds.top),x.bounds.width,1);break;case 3:y.ctx.fillRect(x.bounds.left,Math.ceil(x.bounds.top+w),x.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&x.text.trim().length&&(y.ctx.strokeStyle=fA(t.webkitTextStrokeColor),y.ctx.lineWidth=t.webkitTextStrokeWidth,y.ctx.lineJoin=window.chrome?"miter":"round",y.ctx.strokeText(x.text,x.bounds.left,x.bounds.top+B)),y.ctx.strokeStyle="",y.ctx.lineWidth=0,y.ctx.lineJoin="miter";break}});}),[2]})})},A.prototype.renderReplacedElement=function(r,t,i){if(i&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var l=dr(r),d=ar(t);this.path(d),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(i,0,0,r.intrinsicWidth,r.intrinsicHeight,l.left,l.top,l.width,l.height),this.ctx.restore();}},A.prototype.renderNodeContent=function(r){return a(this,void 0,void 0,function(){var t,i,l,d,h,u,K,K,B,w,v,y,W,S,x,X,H,J,D,K,eA,W,X;return c(this,function(L){switch(L.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,i=r.curves,l=t.styles,d=0,h=t.textNodes,L.label=1;case 1:return d<h.length?(u=h[d],[4,this.renderTextNode(u,l)]):[3,4];case 2:L.sent(),L.label=3;case 3:return d++,[3,1];case 4:if(!(t instanceof Si))return [3,8];L.label=5;case 5:return L.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return K=L.sent(),this.renderReplacedElement(t,i,K),[3,8];case 7:return L.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Ti&&this.renderReplacedElement(t,i,t.canvas),!(t instanceof Ki))return [3,12];L.label=9;case 9:return L.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return K=L.sent(),this.renderReplacedElement(t,i,K),[3,12];case 11:return L.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof Ni&&t.tree?(B=new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,B.render(t.tree)]):[3,14];case 13:w=L.sent(),t.width&&t.height&&this.ctx.drawImage(w,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),L.label=14;case 14:if(t instanceof Ls&&(v=Math.min(t.bounds.width,t.bounds.height),t.type===Ar?t.checked&&(this.ctx.save(),this.path([new k(t.bounds.left+v*.39363,t.bounds.top+v*.79),new k(t.bounds.left+v*.16,t.bounds.top+v*.5549),new k(t.bounds.left+v*.27347,t.bounds.top+v*.44071),new k(t.bounds.left+v*.39694,t.bounds.top+v*.5649),new k(t.bounds.left+v*.72983,t.bounds.top+v*.23),new k(t.bounds.left+v*.84,t.bounds.top+v*.34085),new k(t.bounds.left+v*.39363,t.bounds.top+v*.79)]),this.ctx.fillStyle=fA(Mi),this.ctx.fill(),this.ctx.restore()):t.type===er&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+v/2,t.bounds.top+v/2,v/4,0,Math.PI*2,true),this.ctx.fillStyle=fA(Mi),this.ctx.fill(),this.ctx.restore())),Tu(t)&&t.value.length){switch(y=this.createFontStyle(l),W=y[0],S=y[1],x=this.fontMetrics.getMetrics(W,S).baseline,this.ctx.font=W,this.ctx.fillStyle=fA(l.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Du(t.styles.textAlign),X=dr(t),H=0,t.styles.textAlign){case 1:H+=X.width/2;break;case 2:H+=X.width;break}J=X.add(H,0,0,-X.height/2+1),this.ctx.save(),this.path([new k(X.left,X.top),new k(X.left+X.width,X.top),new k(X.left+X.width,X.top+X.height),new k(X.left,X.top+X.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new nt(t.value,J),l.letterSpacing,x),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left";}if(!hA(t.styles.display,2048))return [3,20];if(t.styles.listStyleImage===null)return [3,19];if(D=t.styles.listStyleImage,D.type!==0)return [3,18];K=void 0,eA=D.url,L.label=15;case 15:return L.trys.push([15,17,,18]),[4,this.context.cache.match(eA)];case 16:return K=L.sent(),this.ctx.drawImage(K,t.bounds.left-(K.width+10),t.bounds.top),[3,18];case 17:return L.sent(),this.context.logger.error("Error loading list-style-image "+eA),[3,18];case 18:return [3,20];case 19:r.listValue&&t.styles.listStyleType!==-1&&(W=this.createFontStyle(l)[0],this.ctx.font=W,this.ctx.fillStyle=fA(l.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",X=new g(t.bounds.left,t.bounds.top+iA(t.styles.paddingTop,t.bounds.width),t.bounds.width,hi(l.lineHeight,l.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new nt(r.listValue,X),l.letterSpacing,hi(l.lineHeight,l.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),L.label=20;case 20:return [2]}})})},A.prototype.renderStackContent=function(r){return a(this,void 0,void 0,function(){var t,i,D,l,d,D,h,u,D,B,w,D,v,y,D,S,x,D,H,J,D;return c(this,function(K){switch(K.label){case 0:if(hA(r.element.container.flags,16))debugger;return [4,this.renderNodeBackgroundAndBorders(r.element)];case 1:K.sent(),t=0,i=r.negativeZIndex,K.label=2;case 2:return t<i.length?(D=i[t],[4,this.renderStack(D)]):[3,5];case 3:K.sent(),K.label=4;case 4:return t++,[3,2];case 5:return [4,this.renderNodeContent(r.element)];case 6:K.sent(),l=0,d=r.nonInlineLevel,K.label=7;case 7:return l<d.length?(D=d[l],[4,this.renderNode(D)]):[3,10];case 8:K.sent(),K.label=9;case 9:return l++,[3,7];case 10:h=0,u=r.nonPositionedFloats,K.label=11;case 11:return h<u.length?(D=u[h],[4,this.renderStack(D)]):[3,14];case 12:K.sent(),K.label=13;case 13:return h++,[3,11];case 14:B=0,w=r.nonPositionedInlineLevel,K.label=15;case 15:return B<w.length?(D=w[B],[4,this.renderStack(D)]):[3,18];case 16:K.sent(),K.label=17;case 17:return B++,[3,15];case 18:v=0,y=r.inlineLevel,K.label=19;case 19:return v<y.length?(D=y[v],[4,this.renderNode(D)]):[3,22];case 20:K.sent(),K.label=21;case 21:return v++,[3,19];case 22:S=0,x=r.zeroOrAutoZIndexOrTransformedOrOpacity,K.label=23;case 23:return S<x.length?(D=x[S],[4,this.renderStack(D)]):[3,26];case 24:K.sent(),K.label=25;case 25:return S++,[3,23];case 26:H=0,J=r.positiveZIndex,K.label=27;case 27:return H<J.length?(D=J[H],[4,this.renderStack(D)]):[3,30];case 28:K.sent(),K.label=29;case 29:return H++,[3,27];case 30:return [2]}})})},A.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath();},A.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath();},A.prototype.formatPath=function(r){var t=this;r.forEach(function(i,l){var d=LA(i)?i.start:i;l===0?t.ctx.moveTo(d.x,d.y):t.ctx.lineTo(d.x,d.y),LA(i)&&t.ctx.bezierCurveTo(i.startControl.x,i.startControl.y,i.endControl.x,i.endControl.y,i.end.x,i.end.y);});},A.prototype.renderRepeat=function(r,t,i,l){this.path(r),this.ctx.fillStyle=t,this.ctx.translate(i,l),this.ctx.fill(),this.ctx.translate(-i,-l);},A.prototype.resizeImage=function(r,t,i){var l;if(r.width===t&&r.height===i)return r;var d=(l=this.canvas.ownerDocument)!==null&&l!==void 0?l:document,h=d.createElement("canvas");h.width=Math.max(1,t),h.height=Math.max(1,i);var u=h.getContext("2d");return u.drawImage(r,0,0,r.width,r.height,0,0,t,i),h},A.prototype.renderBackgroundImage=function(r){return a(this,void 0,void 0,function(){var t,i,l,d,h,u;return c(this,function(B){switch(B.label){case 0:t=r.styles.backgroundImage.length-1,i=function(w){var v,y,S,pA,yA,FA,nA,bA,q,x,pA,yA,FA,nA,bA,H,J,D,K,eA,W,X,L,Z,q,Y,pA,QA,EA,nA,bA,ne,yA,FA,he,NA,ie,ge,Be,XA,fe,YA;return c(this,function(Ke){switch(Ke.label){case 0:if(w.type!==0)return [3,5];v=void 0,y=w.url,Ke.label=1;case 1:return Ke.trys.push([1,3,,4]),[4,l.context.cache.match(y)];case 2:return v=Ke.sent(),[3,4];case 3:return Ke.sent(),l.context.logger.error("Error loading background-image "+y),[3,4];case 4:return v&&(S=_s(r,t,[v.width,v.height,v.width/v.height]),pA=S[0],yA=S[1],FA=S[2],nA=S[3],bA=S[4],q=l.ctx.createPattern(l.resizeImage(v,nA,bA),"repeat"),l.renderRepeat(pA,q,yA,FA)),[3,6];case 5:mc(w)?(x=_s(r,t,[null,null,null]),pA=x[0],yA=x[1],FA=x[2],nA=x[3],bA=x[4],H=hc(w.angle,nA,bA),J=H[0],D=H[1],K=H[2],eA=H[3],W=H[4],X=document.createElement("canvas"),X.width=nA,X.height=bA,L=X.getContext("2d"),Z=L.createLinearGradient(D,eA,K,W),ri(w.stops,J).forEach(function(lt){return Z.addColorStop(lt.stop,fA(lt.color))}),L.fillStyle=Z,L.fillRect(0,0,nA,bA),nA>0&&bA>0&&(q=l.ctx.createPattern(X,"repeat"),l.renderRepeat(pA,q,yA,FA))):bc(w)&&(Y=_s(r,t,[null,null,null]),pA=Y[0],QA=Y[1],EA=Y[2],nA=Y[3],bA=Y[4],ne=w.position.length===0?[gs]:w.position,yA=iA(ne[0],nA),FA=iA(ne[ne.length-1],bA),he=gc(w,yA,FA,nA,bA),NA=he[0],ie=he[1],NA>0&&ie>0&&(ge=l.ctx.createRadialGradient(QA+yA,EA+FA,0,QA+yA,EA+FA,NA),ri(w.stops,NA*2).forEach(function(lt){return ge.addColorStop(lt.stop,fA(lt.color))}),l.path(pA),l.ctx.fillStyle=ge,NA!==ie?(Be=r.bounds.left+.5*r.bounds.width,XA=r.bounds.top+.5*r.bounds.height,fe=ie/NA,YA=1/fe,l.ctx.save(),l.ctx.translate(Be,XA),l.ctx.transform(1,0,0,fe,0,0),l.ctx.translate(-Be,-XA),l.ctx.fillRect(QA,YA*(EA-XA)+XA,nA,bA*YA),l.ctx.restore()):l.ctx.fill())),Ke.label=6;case 6:return t--,[2]}})},l=this,d=0,h=r.styles.backgroundImage.slice(0).reverse(),B.label=1;case 1:return d<h.length?(u=h[d],[5,i(u)]):[3,4];case 2:B.sent(),B.label=3;case 3:return d++,[3,1];case 4:return [2]}})})},A.prototype.renderSolidBorder=function(r,t,i){return a(this,void 0,void 0,function(){return c(this,function(l){return this.path(uo(i,t)),this.ctx.fillStyle=fA(r),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(r,t,i,l){return a(this,void 0,void 0,function(){var d,h;return c(this,function(u){switch(u.label){case 0:return t<3?[4,this.renderSolidBorder(r,i,l)]:[3,2];case 1:return u.sent(),[2];case 2:return d=Qu(l,i),this.path(d),this.ctx.fillStyle=fA(r),this.ctx.fill(),h=yu(l,i),this.path(h),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(r){return a(this,void 0,void 0,function(){var t,i,l,d,h,u,B,w,v=this;return c(this,function(y){switch(y.label){case 0:return this.applyEffects(r.getEffects(2)),t=r.container.styles,i=!ee(t.backgroundColor)||t.backgroundImage.length,l=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],d=Ku(Te(t.backgroundClip,0),r.curves),i||t.boxShadow.length?(this.ctx.save(),this.path(d),this.ctx.clip(),ee(t.backgroundColor)||(this.ctx.fillStyle=fA(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:y.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(S){v.ctx.save();var x=or(r.curves),H=S.inset?0:Lu,J=Cu(x,-H+(S.inset?1:-1)*S.spread.number,(S.inset?1:-1)*S.spread.number,S.spread.number*(S.inset?-2:2),S.spread.number*(S.inset?-2:2));S.inset?(v.path(x),v.ctx.clip(),v.mask(J)):(v.mask(x),v.ctx.clip(),v.path(J)),v.ctx.shadowOffsetX=S.offsetX.number+H,v.ctx.shadowOffsetY=S.offsetY.number,v.ctx.shadowColor=fA(S.color),v.ctx.shadowBlur=S.blur.number,v.ctx.fillStyle=S.inset?fA(S.color):"rgba(0,0,0,1)",v.ctx.fill(),v.ctx.restore();}),y.label=2;case 2:h=0,u=0,B=l,y.label=3;case 3:return u<B.length?(w=B[u],w.style!==0&&!ee(w.color)&&w.width>0?w.style!==2?[3,5]:[4,this.renderDashedDottedBorder(w.color,w.width,h,r.curves,2)]:[3,11]):[3,13];case 4:return y.sent(),[3,11];case 5:return w.style!==3?[3,7]:[4,this.renderDashedDottedBorder(w.color,w.width,h,r.curves,3)];case 6:return y.sent(),[3,11];case 7:return w.style!==4?[3,9]:[4,this.renderDoubleBorder(w.color,w.width,h,r.curves)];case 8:return y.sent(),[3,11];case 9:return [4,this.renderSolidBorder(w.color,h,r.curves)];case 10:y.sent(),y.label=11;case 11:h++,y.label=12;case 12:return u++,[3,3];case 13:return [2]}})})},A.prototype.renderDashedDottedBorder=function(r,t,i,l,d){return a(this,void 0,void 0,function(){var h,u,B,w,v,y,S,x,H,J,D,K,eA,W,X,L,X,L;return c(this,function(Z){return this.ctx.save(),h=Fu(l,i),u=uo(l,i),d===2&&(this.path(u),this.ctx.clip()),LA(u[0])?(B=u[0].start.x,w=u[0].start.y):(B=u[0].x,w=u[0].y),LA(u[1])?(v=u[1].end.x,y=u[1].end.y):(v=u[1].x,y=u[1].y),i===0||i===2?S=Math.abs(B-v):S=Math.abs(w-y),this.ctx.beginPath(),d===3?this.formatPath(h):this.formatPath(u.slice(0,2)),x=t<3?t*3:t*2,H=t<3?t*2:t,d===3&&(x=t,H=t),J=true,S<=x*2?J=false:S<=x*2+H?(D=S/(2*x+H),x*=D,H*=D):(K=Math.floor((S+H)/(x+H)),eA=(S-K*x)/(K-1),W=(S-(K+1)*x)/K,H=W<=0||Math.abs(H-eA)<Math.abs(H-W)?eA:W),J&&(d===3?this.ctx.setLineDash([0,x+H]):this.ctx.setLineDash([x,H])),d===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=fA(r),this.ctx.stroke(),this.ctx.setLineDash([]),d===2&&(LA(u[0])&&(X=u[3],L=u[0],this.ctx.beginPath(),this.formatPath([new k(X.end.x,X.end.y),new k(L.start.x,L.start.y)]),this.ctx.stroke()),LA(u[1])&&(X=u[1],L=u[2],this.ctx.beginPath(),this.formatPath([new k(X.end.x,X.end.y),new k(L.start.x,L.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(r){return a(this,void 0,void 0,function(){var t;return c(this,function(i){switch(i.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=fA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=vu(r),[4,this.renderStack(t)];case 1:return i.sent(),this.applyEffects([]),[2,this.canvas]}})})},A})(Bo),Tu=function(e){return e instanceof Oi||e instanceof Ri?true:e instanceof Ls&&e.type!==er&&e.type!==Ar},Ku=function(e,A){switch(e){case 0:return or(A);case 2:return Bu(A);default:return ar(A)}},Du=function(e){switch(e){case 1:return "center";case 2:return "right";default:return "left"}},Mu=["-apple-system","system-ui"],Ru=function(e){return /iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return Mu.indexOf(A)===-1}):e},Ou=(function(e){s(A,e);function A(r,t){var i=e.call(this,r,t)||this;return i.canvas=t.canvas?t.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=t,i.canvas.width=Math.floor(t.width*t.scale),i.canvas.height=Math.floor(t.height*t.scale),i.canvas.style.width=t.width+"px",i.canvas.style.height=t.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-t.x,-t.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),i}return A.prototype.render=function(r){return a(this,void 0,void 0,function(){var t,i;return c(this,function(l){switch(l.label){case 0:return t=Hs(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,Nu(t)];case 1:return i=l.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=fA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(i,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A})(Bo),Nu=function(e){return new Promise(function(A,r){var t=new Image;t.onload=function(){A(t);},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e));})},Pu=(function(){function e(A){var r=A.id,t=A.enabled;this.id=r,this.enabled=t,this.start=Date.now();}return e.prototype.debug=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,p([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A));},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,p([this.id,this.getTime()+"ms"],A));},e.prototype.warn=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,p([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A));},e.prototype.error=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,p([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A));},e.instances={},e})(),Gu=(function(){function e(A,r){var t;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new Pu({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new au(this,A);}return e.instanceCount=1,e})(),_u=function(e,A){return A===void 0&&(A={}),Vu(e,A)};typeof window<"u"&&io.setContext(window);var Vu=function(e,A){return a(void 0,void 0,void 0,function(){var r,t,i,l,d,h,u,B,w,v,y,S,x,H,J,D,K,eA,W,X,Z,L,Z,q,Y,pA,QA,EA,nA,bA,ne,yA,FA,he,NA,ie,ge,Be,XA,fe;return c(this,function(YA){switch(YA.label){case 0:if(!e||typeof e!="object")return [2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(t=r.defaultView,!t)throw new Error("Document is not attached to a Window");return i={allowTaint:(q=A.allowTaint)!==null&&q!==void 0?q:false,imageTimeout:(Y=A.imageTimeout)!==null&&Y!==void 0?Y:15e3,proxy:A.proxy,useCORS:(pA=A.useCORS)!==null&&pA!==void 0?pA:false},l=n({logging:(QA=A.logging)!==null&&QA!==void 0?QA:true,cache:A.cache},i),d={windowWidth:(EA=A.windowWidth)!==null&&EA!==void 0?EA:t.innerWidth,windowHeight:(nA=A.windowHeight)!==null&&nA!==void 0?nA:t.innerHeight,scrollX:(bA=A.scrollX)!==null&&bA!==void 0?bA:t.pageXOffset,scrollY:(ne=A.scrollY)!==null&&ne!==void 0?ne:t.pageYOffset},h=new g(d.scrollX,d.scrollY,d.windowWidth,d.windowHeight),u=new Gu(l,h),B=(yA=A.foreignObjectRendering)!==null&&yA!==void 0?yA:false,w={allowTaint:(FA=A.allowTaint)!==null&&FA!==void 0?FA:false,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:B,copyStyles:B},u.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),v=new so(u,e,w),y=v.clonedReferenceElement,y?[4,v.toIFrame(r,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return S=YA.sent(),x=Ts(y)||Xp(y)?m(y.ownerDocument):f(u,y),H=x.width,J=x.height,D=x.left,K=x.top,eA=Xu(u,y,A.backgroundColor),W={canvas:A.canvas,backgroundColor:eA,scale:(NA=(he=A.scale)!==null&&he!==void 0?he:t.devicePixelRatio)!==null&&NA!==void 0?NA:1,x:((ie=A.x)!==null&&ie!==void 0?ie:0)+D,y:((ge=A.y)!==null&&ge!==void 0?ge:0)+K,width:(Be=A.width)!==null&&Be!==void 0?Be:Math.ceil(H),height:(XA=A.height)!==null&&XA!==void 0?XA:Math.ceil(J)},B?(u.logger.debug("Document cloned, using foreign object rendering"),Z=new Ou(u,W),[4,Z.render(y)]):[3,3];case 2:return X=YA.sent(),[3,5];case 3:return u.logger.debug("Document cloned, element located at "+D+","+K+" with size "+H+"x"+J+" using computed rendering"),u.logger.debug("Starting DOM parsing"),L=Gi(u,y),eA===L.styles.backgroundColor&&(L.styles.backgroundColor=_A.TRANSPARENT),u.logger.debug("Starting renderer for element at "+W.x+","+W.y+" with size "+W.width+"x"+W.height),Z=new Su(u,W),[4,Z.render(L)];case 4:X=YA.sent(),YA.label=5;case 5:return (!((fe=A.removeContainer)!==null&&fe!==void 0)||fe)&&(so.destroy(S)||u.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.logger.debug("Finished rendering"),[2,X]}})})},Xu=function(e,A,r){var t=A.ownerDocument,i=t.documentElement?tt(e,getComputedStyle(t.documentElement).backgroundColor):_A.TRANSPARENT,l=t.body?tt(e,getComputedStyle(t.body).backgroundColor):_A.TRANSPARENT,d=typeof r=="string"?tt(e,r):r===null?_A.TRANSPARENT:4294967295;return A===t.documentElement?ee(i)?ee(l)?d:l:i:d};return _u}));});var Wo,jo=gA(()=>{Wo={"panel.title":"Feedbacks","panel.ariaLabel":"Siteping feedback panel","panel.feedbackList":"Feedback list","panel.loading":"Loading feedbacks","panel.close":"Close panel","panel.deleteAll":"Delete all","panel.deleteAllConfirmTitle":"Delete all","panel.deleteAllConfirmMessage":"Delete all feedbacks for this project? This action cannot be undone.","panel.search":"Search...","panel.searchAria":"Search feedbacks","panel.filterAll":"All","panel.loadError":"Failed to load","panel.retry":"Retry","panel.empty":"No feedback yet","panel.showMore":"Show more","panel.showLess":"Show less","panel.resolve":"Resolve","panel.reopen":"Reopen","panel.delete":"Delete","panel.cancel":"Cancel","panel.confirmDelete":"Delete","panel.loadMore":"Load more ({remaining} remaining)","panel.statusAll":"All","panel.statusOpen":"Open","panel.statusResolved":"Resolved","type.label":"Type","type.question":"Question","type.change":"Change","type.bug":"Bug","type.other":"Other","status.label":"Status","scope.label":"Scope","scope.thisPage":"This page","scope.thisType":"This type","scope.all":"All pages","fab.aria":"Siteping \u2014 Feedback menu","fab.messages":"Messages","fab.annotate":"Annotate","fab.annotations":"Annotations","annotator.instruction":"Draw a rectangle on the area to comment","annotator.cancel":"Cancel","popup.ariaLabel":"Feedback form","popup.placeholder":"Describe your feedback...","popup.textareaAria":"Feedback message","popup.submitHintMac":"\u2318+Enter to send","popup.submitHintOther":"Ctrl+Enter to send","popup.cancel":"Cancel","popup.submit":"Send","identity.title":"Identify yourself","identity.nameLabel":"Name","identity.namePlaceholder":"Your name","identity.emailLabel":"Email","identity.emailPlaceholder":"your@email.com","identity.cancel":"Cancel","identity.submit":"Continue","marker.approximate":"Approximate position (confidence: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","marker.count":"{count} feedback markers displayed","fab.badge":"{count} unresolved feedbacks","feedback.sent.confirmation":"Feedback sent successfully","feedback.error.message":"Failed to send feedback","feedback.deleted.confirmation":"Feedback deleted","badge.count":"{count} unresolved feedbacks","bulk.selectAll":"Select all","bulk.selected":"{count} selected","bulk.resolve":"Resolve","bulk.delete":"Delete","bulk.deselect":"Deselect","sort.newest":"Newest first","sort.oldest":"Oldest first","sort.byType":"By type","sort.openFirst":"Open first","sort.label":"Sort","group.byPage":"By page","group.feedbacks":"{count} feedbacks","stats.open":"Open","stats.resolved":"Resolved","stats.bugs":"Bugs","stats.progress":"{percent}% resolved","detail.back":"Back","detail.title":"Feedback #{number}","detail.status":"Status","detail.message":"Message","detail.screenshot":"Screenshot","detail.screenshotAlt":"Screenshot of the annotated area","detail.metadata":"Details","detail.annotation":"Annotation","detail.page":"Page","detail.author":"Author","detail.date":"Created","detail.viewport":"Viewport","detail.browser":"Browser","detail.resolvedAt":"Resolved at","detail.goToAnnotation":"Go to annotation","detail.element":"Element","detail.selector":"Selector","detail.position":"Position","detail.resolve":"Resolve","detail.reopen":"Reopen","detail.delete":"Delete","detail.diagnostics":"Diagnostics","detail.diagnostics.console":"Console","detail.diagnostics.network":"Failed network","detail.diagnostics.expand":"Show diagnostics","detail.diagnostics.collapse":"Hide diagnostics","detail.diagnostics.noEntries":"No entries","shortcuts.title":"Keyboard shortcuts","shortcuts.navigate":"Navigate feedbacks","shortcuts.resolve":"Resolve / Reopen","shortcuts.delete":"Delete","shortcuts.search":"Focus search","shortcuts.select":"Toggle selection","shortcuts.help":"Show shortcuts","shortcuts.close":"Close","shortcuts.hint":"Keyboard shortcuts","export.label":"Export","export.csv":"Export CSV","export.json":"Export JSON"};});var $o={};we($o,{de:()=>Uh});var Uh,zo=gA(()=>{Uh={"panel.title":"Feedbacks","panel.ariaLabel":"Siteping-Feedback-Panel","panel.feedbackList":"Feedbackliste","panel.loading":"Feedbacks werden geladen","panel.close":"Panel schlie\xDFen","panel.deleteAll":"Alle l\xF6schen","panel.deleteAllConfirmTitle":"Alle l\xF6schen","panel.deleteAllConfirmMessage":"Alle Feedbacks f\xFCr dieses Projekt l\xF6schen? Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden.","panel.search":"Suchen...","panel.searchAria":"Feedbacks suchen","panel.filterAll":"Alle","panel.loadError":"Laden fehlgeschlagen","panel.retry":"Erneut versuchen","panel.empty":"Noch kein Feedback","panel.showMore":"Mehr anzeigen","panel.showLess":"Weniger anzeigen","panel.resolve":"Erledigen","panel.reopen":"Wieder \xF6ffnen","panel.delete":"L\xF6schen","panel.cancel":"Abbrechen","panel.confirmDelete":"L\xF6schen","panel.loadMore":"Mehr laden ({remaining} verbleibend)","panel.statusAll":"Alle","panel.statusOpen":"Offen","panel.statusResolved":"Erledigt","type.label":"Typ","type.question":"Frage","type.change":"\xC4nderung","type.bug":"Fehler","type.other":"Sonstiges","status.label":"Status","scope.label":"Bereich","scope.thisPage":"Diese Seite","scope.thisType":"Dieser Typ","scope.all":"Alle Seiten","fab.aria":"Siteping \u2014 Feedback-Men\xFC","fab.messages":"Nachrichten","fab.annotate":"Kommentieren","fab.annotations":"Anmerkungen","annotator.instruction":"Zeichne ein Rechteck um den Bereich, den du kommentieren m\xF6chtest","annotator.cancel":"Abbrechen","popup.ariaLabel":"Feedbackformular","popup.placeholder":"Beschreibe dein Feedback...","popup.textareaAria":"Feedbacknachricht","popup.submitHintMac":"\u2318+Enter zum Senden","popup.submitHintOther":"Strg+Enter zum Senden","popup.cancel":"Abbrechen","popup.submit":"Senden","identity.title":"Identifiziere dich","identity.nameLabel":"Name","identity.namePlaceholder":"Dein Name","identity.emailLabel":"E-Mail","identity.emailPlaceholder":"deine@email.de","identity.cancel":"Abbrechen","identity.submit":"Fortfahren","marker.approximate":"Ungef\xE4hre Position (Konfidenz: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","marker.count":"{count} Feedback-Markierungen angezeigt","fab.badge":"{count} unerledigte Feedbacks","feedback.sent.confirmation":"Feedback erfolgreich gesendet","feedback.error.message":"Feedback konnte nicht gesendet werden","feedback.deleted.confirmation":"Feedback gel\xF6scht","badge.count":"{count} unerledigte Feedbacks","bulk.selectAll":"Alle ausw\xE4hlen","bulk.selected":"{count} ausgew\xE4hlt","bulk.resolve":"Erledigen","bulk.delete":"L\xF6schen","bulk.deselect":"Abw\xE4hlen","sort.newest":"Neueste zuerst","sort.oldest":"\xC4lteste zuerst","sort.byType":"Nach Typ","sort.openFirst":"Offene zuerst","sort.label":"Sortieren","group.byPage":"Nach Seite","group.feedbacks":"{count} Feedbacks","stats.open":"Offen","stats.resolved":"Erledigt","stats.bugs":"Fehler","stats.progress":"{percent}% erledigt","detail.back":"Zur\xFCck","detail.title":"Feedback #{number}","detail.status":"Status","detail.message":"Nachricht","detail.screenshot":"Screenshot","detail.screenshotAlt":"Screenshot des markierten Bereichs","detail.metadata":"Details","detail.annotation":"Anmerkung","detail.page":"Seite","detail.author":"Autor","detail.date":"Erstellt","detail.viewport":"Viewport","detail.browser":"Browser","detail.resolvedAt":"Erledigt am","detail.goToAnnotation":"Zur Anmerkung","detail.element":"Element","detail.selector":"Selektor","detail.position":"Position","detail.resolve":"Erledigen","detail.reopen":"Wieder \xF6ffnen","detail.delete":"L\xF6schen","detail.diagnostics":"Diagnose","detail.diagnostics.console":"Konsole","detail.diagnostics.network":"Fehlgeschlagenes Netzwerk","detail.diagnostics.expand":"Diagnose anzeigen","detail.diagnostics.collapse":"Diagnose ausblenden","detail.diagnostics.noEntries":"Keine Eintr\xE4ge","shortcuts.title":"Tastenk\xFCrzel","shortcuts.navigate":"Feedbacks navigieren","shortcuts.resolve":"Erledigen / Wieder \xF6ffnen","shortcuts.delete":"L\xF6schen","shortcuts.search":"Suche fokussieren","shortcuts.select":"Auswahl umschalten","shortcuts.help":"K\xFCrzel anzeigen","shortcuts.close":"Schlie\xDFen","shortcuts.hint":"Tastenk\xFCrzel","export.label":"Exportieren","export.csv":"CSV exportieren","export.json":"JSON exportieren"};});var Zo={};we(Zo,{es:()=>xh});var xh,qo=gA(()=>{xh={"panel.title":"Comentarios","panel.ariaLabel":"Panel de comentarios de Siteping","panel.feedbackList":"Lista de comentarios","panel.loading":"Cargando comentarios","panel.close":"Cerrar panel","panel.deleteAll":"Eliminar todo","panel.deleteAllConfirmTitle":"Eliminar todo","panel.deleteAllConfirmMessage":"\xBFEliminar todos los comentarios de este proyecto? Esta acci\xF3n no se puede deshacer.","panel.search":"Buscar...","panel.searchAria":"Buscar comentarios","panel.filterAll":"Todos","panel.loadError":"No se pudo cargar","panel.retry":"Reintentar","panel.empty":"A\xFAn no hay comentarios","panel.showMore":"Mostrar m\xE1s","panel.showLess":"Mostrar menos","panel.resolve":"Resolver","panel.reopen":"Reabrir","panel.delete":"Eliminar","panel.cancel":"Cancelar","panel.confirmDelete":"Eliminar","panel.loadMore":"Cargar m\xE1s ({remaining} restantes)","panel.statusAll":"Todos","panel.statusOpen":"Abiertos","panel.statusResolved":"Resueltos","type.label":"Tipo","type.question":"Pregunta","type.change":"Cambio","type.bug":"Error","type.other":"Otro","status.label":"Estado","scope.label":"\xC1mbito","scope.thisPage":"Esta p\xE1gina","scope.thisType":"Este tipo","scope.all":"Todas las p\xE1ginas","fab.aria":"Siteping \u2014 Men\xFA de comentarios","fab.messages":"Mensajes","fab.annotate":"Anotar","fab.annotations":"Anotaciones","annotator.instruction":"Dibuja un rect\xE1ngulo sobre el \xE1rea que quieres comentar","annotator.cancel":"Cancelar","popup.ariaLabel":"Formulario de comentarios","popup.placeholder":"Describe tu comentario...","popup.textareaAria":"Mensaje de comentario","popup.submitHintMac":"\u2318+Enter para enviar","popup.submitHintOther":"Ctrl+Enter para enviar","popup.cancel":"Cancelar","popup.submit":"Enviar","identity.title":"Identif\xEDcate","identity.nameLabel":"Nombre","identity.namePlaceholder":"Tu nombre","identity.emailLabel":"Correo electr\xF3nico","identity.emailPlaceholder":"tu@email.com","identity.cancel":"Cancelar","identity.submit":"Continuar","marker.approximate":"Posici\xF3n aproximada (confianza: {confidence}%)","marker.aria":"Comentario #{number}: {type} \u2014 {message}","marker.count":"{count} marcadores de feedback mostrados","fab.badge":"{count} comentarios sin resolver","feedback.sent.confirmation":"Comentario enviado correctamente","feedback.error.message":"No se pudo enviar el comentario","feedback.deleted.confirmation":"Comentario eliminado","badge.count":"{count} comentarios sin resolver","bulk.selectAll":"Seleccionar todo","bulk.selected":"{count} seleccionados","bulk.resolve":"Resolver","bulk.delete":"Eliminar","bulk.deselect":"Deseleccionar","sort.newest":"M\xE1s recientes","sort.oldest":"M\xE1s antiguos","sort.byType":"Por tipo","sort.openFirst":"Abiertos primero","sort.label":"Ordenar","group.byPage":"Por p\xE1gina","group.feedbacks":"{count} comentarios","stats.open":"Abiertos","stats.resolved":"Resueltos","stats.bugs":"Errores","stats.progress":"{percent}% resueltos","detail.back":"Atr\xE1s","detail.title":"Comentario #{number}","detail.status":"Estado","detail.message":"Mensaje","detail.screenshot":"Captura","detail.screenshotAlt":"Captura del \xE1rea anotada","detail.metadata":"Detalles","detail.annotation":"Anotaci\xF3n","detail.page":"P\xE1gina","detail.author":"Autor","detail.date":"Creado","detail.viewport":"Viewport","detail.browser":"Navegador","detail.resolvedAt":"Resuelto el","detail.goToAnnotation":"Ir a la anotaci\xF3n","detail.element":"Elemento","detail.selector":"Selector","detail.position":"Posici\xF3n","detail.resolve":"Resolver","detail.reopen":"Reabrir","detail.delete":"Eliminar","detail.diagnostics":"Diagn\xF3stico","detail.diagnostics.console":"Consola","detail.diagnostics.network":"Red fallida","detail.diagnostics.expand":"Mostrar diagn\xF3stico","detail.diagnostics.collapse":"Ocultar diagn\xF3stico","detail.diagnostics.noEntries":"Sin entradas","shortcuts.title":"Atajos de teclado","shortcuts.navigate":"Navegar comentarios","shortcuts.resolve":"Resolver / Reabrir","shortcuts.delete":"Eliminar","shortcuts.search":"Buscar","shortcuts.select":"Alternar selecci\xF3n","shortcuts.help":"Mostrar atajos","shortcuts.close":"Cerrar","shortcuts.hint":"Atajos de teclado","export.label":"Exportar","export.csv":"Exportar CSV","export.json":"Exportar JSON"};});var Aa={};we(Aa,{fr:()=>Eh});var Eh,ea=gA(()=>{Eh={"panel.title":"Feedbacks","panel.ariaLabel":"Panneau de feedback Siteping","panel.feedbackList":"Liste des feedbacks","panel.loading":"Chargement des feedbacks","panel.close":"Fermer le panneau","panel.deleteAll":"Tout supprimer","panel.deleteAllConfirmTitle":"Tout supprimer","panel.deleteAllConfirmMessage":"Supprimer tous les feedbacks de ce projet ? Cette action est irr\xE9versible.","panel.search":"Rechercher...","panel.searchAria":"Rechercher dans les feedbacks","panel.filterAll":"Tous","panel.loadError":"Erreur de chargement","panel.retry":"R\xE9essayer","panel.empty":"Aucun feedback pour le moment","panel.showMore":"Voir plus","panel.showLess":"Voir moins","panel.resolve":"R\xE9soudre","panel.reopen":"Rouvrir","panel.delete":"Supprimer","panel.cancel":"Annuler","panel.confirmDelete":"Supprimer","panel.loadMore":"Voir plus ({remaining} restants)","panel.statusAll":"Tous","panel.statusOpen":"Ouvert","panel.statusResolved":"R\xE9solu","type.label":"Type","type.question":"Question","type.change":"Changement","type.bug":"Bug","type.other":"Autre","status.label":"Statut","scope.label":"Port\xE9e","scope.thisPage":"Cette page","scope.thisType":"Ce type","scope.all":"Toutes les pages","fab.aria":"Siteping \u2014 Menu feedback","fab.messages":"Messages","fab.annotate":"Annoter","fab.annotations":"Annotations","annotator.instruction":"Tracez un rectangle sur la zone \xE0 commenter","annotator.cancel":"Annuler","popup.ariaLabel":"Formulaire de feedback","popup.placeholder":"D\xE9crivez votre retour...","popup.textareaAria":"Message de feedback","popup.submitHintMac":"\u2318+Entr\xE9e pour envoyer","popup.submitHintOther":"Ctrl+Entr\xE9e pour envoyer","popup.cancel":"Annuler","popup.submit":"Envoyer","identity.title":"Identifiez-vous","identity.nameLabel":"Nom","identity.namePlaceholder":"Votre nom","identity.emailLabel":"Email","identity.emailPlaceholder":"votre@email.com","identity.cancel":"Annuler","identity.submit":"Continuer","marker.approximate":"Position approximative (confiance : {confidence}%)","marker.aria":"Feedback n\xB0{number} : {type} \u2014 {message}","marker.count":"{count} marqueurs de feedback affich\xE9s","fab.badge":"{count} feedbacks non r\xE9solus","feedback.sent.confirmation":"Feedback envoy\xE9 avec succ\xE8s","feedback.error.message":"\xC9chec de l'envoi du feedback","feedback.deleted.confirmation":"Feedback supprim\xE9","badge.count":"{count} feedbacks non r\xE9solus","bulk.selectAll":"Tout s\xE9lectionner","bulk.selected":"{count} s\xE9lectionn\xE9(s)","bulk.resolve":"R\xE9soudre","bulk.delete":"Supprimer","bulk.deselect":"D\xE9s\xE9lectionner","sort.newest":"Plus r\xE9cents","sort.oldest":"Plus anciens","sort.byType":"Par type","sort.openFirst":"Ouverts d'abord","sort.label":"Trier","group.byPage":"Par page","group.feedbacks":"{count} feedbacks","stats.open":"Ouverts","stats.resolved":"R\xE9solus","stats.bugs":"Bugs","stats.progress":"{percent}% r\xE9solus","detail.back":"Retour","detail.title":"Feedback n\xB0{number}","detail.status":"Statut","detail.message":"Message","detail.screenshot":"Capture d'\xE9cran","detail.screenshotAlt":"Capture d'\xE9cran de la zone annot\xE9e","detail.metadata":"D\xE9tails","detail.annotation":"Annotation","detail.page":"Page","detail.author":"Auteur","detail.date":"Cr\xE9\xE9 le","detail.viewport":"Viewport","detail.browser":"Navigateur","detail.resolvedAt":"R\xE9solu le","detail.goToAnnotation":"Aller \xE0 l'annotation","detail.element":"\xC9l\xE9ment","detail.selector":"S\xE9lecteur","detail.position":"Position","detail.resolve":"R\xE9soudre","detail.reopen":"Rouvrir","detail.delete":"Supprimer","detail.diagnostics":"Diagnostics","detail.diagnostics.console":"Console","detail.diagnostics.network":"R\xE9seau en \xE9chec","detail.diagnostics.expand":"Afficher les diagnostics","detail.diagnostics.collapse":"Masquer les diagnostics","detail.diagnostics.noEntries":"Aucune entr\xE9e","shortcuts.title":"Raccourcis clavier","shortcuts.navigate":"Naviguer les feedbacks","shortcuts.resolve":"R\xE9soudre / Rouvrir","shortcuts.delete":"Supprimer","shortcuts.search":"Rechercher","shortcuts.select":"S\xE9lectionner","shortcuts.help":"Raccourcis","shortcuts.close":"Fermer","shortcuts.hint":"Raccourcis clavier","export.label":"Exporter","export.csv":"Exporter CSV","export.json":"Exporter JSON"};});var ta={};we(ta,{it:()=>Hh});var Hh,ra=gA(()=>{Hh={"panel.title":"Feedback","panel.ariaLabel":"Pannello feedback di Siteping","panel.feedbackList":"Elenco feedback","panel.loading":"Caricamento feedback","panel.close":"Chiudi pannello","panel.deleteAll":"Elimina tutto","panel.deleteAllConfirmTitle":"Elimina tutto","panel.deleteAllConfirmMessage":"Eliminare tutti i feedback per questo progetto? Questa azione non pu\xF2 essere annullata.","panel.search":"Cerca...","panel.searchAria":"Cerca feedback","panel.filterAll":"Tutti","panel.loadError":"Caricamento non riuscito","panel.retry":"Riprova","panel.empty":"Nessun feedback ancora","panel.showMore":"Mostra di pi\xF9","panel.showLess":"Mostra meno","panel.resolve":"Risolvi","panel.reopen":"Riapri","panel.delete":"Elimina","panel.cancel":"Annulla","panel.confirmDelete":"Elimina","panel.loadMore":"Carica altro ({remaining} rimanenti)","panel.statusAll":"Tutti","panel.statusOpen":"Aperti","panel.statusResolved":"Risolti","type.label":"Tipo","type.question":"Domanda","type.change":"Modifica","type.bug":"Bug","type.other":"Altro","status.label":"Stato","scope.label":"Ambito","scope.thisPage":"Questa pagina","scope.thisType":"Questo tipo","scope.all":"Tutte le pagine","fab.aria":"Siteping \u2014 Menu feedback","fab.messages":"Messaggi","fab.annotate":"Annota","fab.annotations":"Annotazioni","annotator.instruction":"Disegna un rettangolo sull'area da commentare","annotator.cancel":"Annulla","popup.ariaLabel":"Modulo feedback","popup.placeholder":"Descrivi il tuo feedback...","popup.textareaAria":"Messaggio di feedback","popup.submitHintMac":"\u2318+Invio per inviare","popup.submitHintOther":"Ctrl+Invio per inviare","popup.cancel":"Annulla","popup.submit":"Invia","identity.title":"Identificati","identity.nameLabel":"Nome","identity.namePlaceholder":"Il tuo nome","identity.emailLabel":"Email","identity.emailPlaceholder":"tua@email.com","identity.cancel":"Annulla","identity.submit":"Continua","marker.approximate":"Posizione approssimativa (confidenza: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","marker.count":"{count} marcatori di feedback visualizzati","fab.badge":"{count} feedback non risolti","feedback.sent.confirmation":"Feedback inviato con successo","feedback.error.message":"Invio del feedback non riuscito","feedback.deleted.confirmation":"Feedback eliminato","badge.count":"{count} feedback non risolti","bulk.selectAll":"Seleziona tutto","bulk.selected":"{count} selezionati","bulk.resolve":"Risolvi","bulk.delete":"Elimina","bulk.deselect":"Deseleziona","sort.newest":"Pi\xF9 recenti","sort.oldest":"Pi\xF9 vecchi","sort.byType":"Per tipo","sort.openFirst":"Aperti prima","sort.label":"Ordina","group.byPage":"Per pagina","group.feedbacks":"{count} feedback","stats.open":"Aperti","stats.resolved":"Risolti","stats.bugs":"Bug","stats.progress":"{percent}% risolti","detail.back":"Indietro","detail.title":"Feedback #{number}","detail.status":"Stato","detail.message":"Messaggio","detail.screenshot":"Schermata","detail.screenshotAlt":"Schermata dell'area annotata","detail.metadata":"Dettagli","detail.annotation":"Annotazione","detail.page":"Pagina","detail.author":"Autore","detail.date":"Creato","detail.viewport":"Viewport","detail.browser":"Browser","detail.resolvedAt":"Risolto il","detail.goToAnnotation":"Vai all'annotazione","detail.element":"Elemento","detail.selector":"Selettore","detail.position":"Posizione","detail.resolve":"Risolvi","detail.reopen":"Riapri","detail.delete":"Elimina","detail.diagnostics":"Diagnostica","detail.diagnostics.console":"Console","detail.diagnostics.network":"Rete fallita","detail.diagnostics.expand":"Mostra diagnostica","detail.diagnostics.collapse":"Nascondi diagnostica","detail.diagnostics.noEntries":"Nessuna voce","shortcuts.title":"Scorciatoie da tastiera","shortcuts.navigate":"Naviga i feedback","shortcuts.resolve":"Risolvi / Riapri","shortcuts.delete":"Elimina","shortcuts.search":"Cerca","shortcuts.select":"Attiva selezione","shortcuts.help":"Mostra scorciatoie","shortcuts.close":"Chiudi","shortcuts.hint":"Scorciatoie da tastiera","export.label":"Esporta","export.csv":"Esporta CSV","export.json":"Esporta JSON"};});var sa={};we(sa,{pt:()=>Ih});var Ih,na=gA(()=>{Ih={"panel.title":"Feedbacks","panel.ariaLabel":"Painel de feedback do Siteping","panel.feedbackList":"Lista de feedbacks","panel.loading":"Carregando feedbacks","panel.close":"Fechar painel","panel.deleteAll":"Excluir tudo","panel.deleteAllConfirmTitle":"Excluir tudo","panel.deleteAllConfirmMessage":"Excluir todos os feedbacks deste projeto? Esta a\xE7\xE3o n\xE3o pode ser desfeita.","panel.search":"Pesquisar...","panel.searchAria":"Pesquisar feedbacks","panel.filterAll":"Todos","panel.loadError":"Falha ao carregar","panel.retry":"Tentar novamente","panel.empty":"Nenhum feedback ainda","panel.showMore":"Mostrar mais","panel.showLess":"Mostrar menos","panel.resolve":"Resolver","panel.reopen":"Reabrir","panel.delete":"Excluir","panel.cancel":"Cancelar","panel.confirmDelete":"Excluir","panel.loadMore":"Carregar mais ({remaining} restantes)","panel.statusAll":"Todos","panel.statusOpen":"Abertos","panel.statusResolved":"Resolvidos","type.label":"Tipo","type.question":"Pergunta","type.change":"Altera\xE7\xE3o","type.bug":"Bug","type.other":"Outro","status.label":"Status","scope.label":"Escopo","scope.thisPage":"Esta p\xE1gina","scope.thisType":"Este tipo","scope.all":"Todas as p\xE1ginas","fab.aria":"Siteping \u2014 Menu de feedback","fab.messages":"Mensagens","fab.annotate":"Anotar","fab.annotations":"Anota\xE7\xF5es","annotator.instruction":"Desenhe um ret\xE2ngulo na \xE1rea que deseja comentar","annotator.cancel":"Cancelar","popup.ariaLabel":"Formul\xE1rio de feedback","popup.placeholder":"Descreva seu feedback...","popup.textareaAria":"Mensagem de feedback","popup.submitHintMac":"\u2318+Enter para enviar","popup.submitHintOther":"Ctrl+Enter para enviar","popup.cancel":"Cancelar","popup.submit":"Enviar","identity.title":"Identifique-se","identity.nameLabel":"Nome","identity.namePlaceholder":"Seu nome","identity.emailLabel":"E-mail","identity.emailPlaceholder":"seu@email.com","identity.cancel":"Cancelar","identity.submit":"Continuar","marker.approximate":"Posi\xE7\xE3o aproximada (confian\xE7a: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","marker.count":"{count} marcadores de feedback exibidos","fab.badge":"{count} feedbacks n\xE3o resolvidos","feedback.sent.confirmation":"Feedback enviado com sucesso","feedback.error.message":"Falha ao enviar feedback","feedback.deleted.confirmation":"Feedback exclu\xEDdo","badge.count":"{count} feedbacks n\xE3o resolvidos","bulk.selectAll":"Selecionar tudo","bulk.selected":"{count} selecionados","bulk.resolve":"Resolver","bulk.delete":"Excluir","bulk.deselect":"Desmarcar","sort.newest":"Mais recentes","sort.oldest":"Mais antigos","sort.byType":"Por tipo","sort.openFirst":"Abertos primeiro","sort.label":"Ordenar","group.byPage":"Por p\xE1gina","group.feedbacks":"{count} feedbacks","stats.open":"Abertos","stats.resolved":"Resolvidos","stats.bugs":"Bugs","stats.progress":"{percent}% resolvidos","detail.back":"Voltar","detail.title":"Feedback #{number}","detail.status":"Status","detail.message":"Mensagem","detail.screenshot":"Captura","detail.screenshotAlt":"Captura da \xE1rea anotada","detail.metadata":"Detalhes","detail.annotation":"Anota\xE7\xE3o","detail.page":"P\xE1gina","detail.author":"Autor","detail.date":"Criado","detail.viewport":"Viewport","detail.browser":"Navegador","detail.resolvedAt":"Resolvido em","detail.goToAnnotation":"Ir para anota\xE7\xE3o","detail.element":"Elemento","detail.selector":"Seletor","detail.position":"Posi\xE7\xE3o","detail.resolve":"Resolver","detail.reopen":"Reabrir","detail.delete":"Excluir","detail.diagnostics":"Diagn\xF3stico","detail.diagnostics.console":"Console","detail.diagnostics.network":"Rede com falha","detail.diagnostics.expand":"Mostrar diagn\xF3stico","detail.diagnostics.collapse":"Ocultar diagn\xF3stico","detail.diagnostics.noEntries":"Sem entradas","shortcuts.title":"Atalhos de teclado","shortcuts.navigate":"Navegar feedbacks","shortcuts.resolve":"Resolver / Reabrir","shortcuts.delete":"Excluir","shortcuts.search":"Buscar","shortcuts.select":"Alternar sele\xE7\xE3o","shortcuts.help":"Mostrar atalhos","shortcuts.close":"Fechar","shortcuts.hint":"Atalhos de teclado","export.label":"Exportar","export.csv":"Exportar CSV","export.json":"Exportar JSON"};});var ia={};we(ia,{ru:()=>kh});var kh,oa=gA(()=>{kh={"panel.title":"\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C","panel.ariaLabel":"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0439 \u0441\u0432\u044F\u0437\u0438 Siteping","panel.feedbackList":"\u0421\u043F\u0438\u0441\u043E\u043A \u043E\u0442\u0437\u044B\u0432\u043E\u0432","panel.loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043E\u0442\u0437\u044B\u0432\u043E\u0432","panel.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C","panel.deleteAll":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0451","panel.deleteAllConfirmTitle":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0451","panel.deleteAllConfirmMessage":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435 \u043E\u0442\u0437\u044B\u0432\u044B \u044D\u0442\u043E\u0433\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430? \u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0442\u0438\u043C\u043E.","panel.search":"\u041F\u043E\u0438\u0441\u043A...","panel.searchAria":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u043E\u0442\u0437\u044B\u0432\u0430\u043C","panel.filterAll":"\u0412\u0441\u0435","panel.loadError":"\u041E\u0448\u0438\u0431\u043A\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438","panel.retry":"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C","panel.empty":"\u041F\u043E\u043A\u0430 \u043D\u0435\u0442 \u043E\u0442\u0437\u044B\u0432\u043E\u0432","panel.showMore":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435","panel.showLess":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043C\u0435\u043D\u044C\u0448\u0435","panel.resolve":"\u0420\u0435\u0448\u0435\u043D\u043E","panel.reopen":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E","panel.delete":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","panel.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","panel.confirmDelete":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","panel.loadMore":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451 ({remaining} \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C)","panel.statusAll":"\u0412\u0441\u0435","panel.statusOpen":"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0435","panel.statusResolved":"\u0420\u0435\u0448\u0451\u043D\u043D\u044B\u0435","type.label":"\u0422\u0438\u043F","type.question":"\u0412\u043E\u043F\u0440\u043E\u0441","type.change":"\u0423\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u0435","type.bug":"\u0411\u0430\u0433","type.other":"\u0414\u0440\u0443\u0433\u043E\u0435","status.label":"\u0421\u0442\u0430\u0442\u0443\u0441","scope.label":"\u041E\u0431\u043B\u0430\u0441\u0442\u044C","scope.thisPage":"\u042D\u0442\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430","scope.thisType":"\u042D\u0442\u043E\u0442 \u0442\u0438\u043F","scope.all":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B","fab.aria":"Siteping \u2014 \u041C\u0435\u043D\u044E \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0439 \u0441\u0432\u044F\u0437\u0438","fab.messages":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F","fab.annotate":"\u0410\u043D\u043D\u043E\u0442\u0430\u0446\u0438\u044F","fab.annotations":"\u0410\u043D\u043D\u043E\u0442\u0430\u0446\u0438\u0438","annotator.instruction":"\u0412\u044B\u0434\u0435\u043B\u0438\u0442\u0435 \u043E\u0431\u043B\u0430\u0441\u0442\u044C \u0434\u043B\u044F \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F","annotator.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","popup.ariaLabel":"\u0424\u043E\u0440\u043C\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0439 \u0441\u0432\u044F\u0437\u0438","popup.placeholder":"\u041E\u043F\u0438\u0448\u0438\u0442\u0435 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0443 \u0438\u043B\u0438 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435...","popup.textareaAria":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","popup.submitHintMac":"\u2318+Enter \u2014 \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","popup.submitHintOther":"Ctrl+Enter \u2014 \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","popup.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","popup.submit":"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","identity.title":"\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044C\u0442\u0435\u0441\u044C","identity.nameLabel":"\u0418\u043C\u044F","identity.namePlaceholder":"\u0412\u0430\u0448\u0435 \u0438\u043C\u044F","identity.emailLabel":"Email","identity.emailPlaceholder":"\u0432\u0430\u0448@email.com","identity.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","identity.submit":"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C","marker.approximate":"\u041F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u0430\u044F \u043F\u043E\u0437\u0438\u0446\u0438\u044F (\u0442\u043E\u0447\u043D\u043E\u0441\u0442\u044C: {confidence}%)","marker.aria":"\u041E\u0442\u0437\u044B\u0432 #{number}: {type} \u2014 {message}","marker.count":"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043E \u043C\u0430\u0440\u043A\u0435\u0440\u043E\u0432 \u043E\u0442\u0437\u044B\u0432\u043E\u0432: {count}","fab.badge":"\u041D\u0435\u0440\u0435\u0448\u0451\u043D\u043D\u044B\u0445 \u043E\u0442\u0437\u044B\u0432\u043E\u0432: {count}","feedback.sent.confirmation":"\u041E\u0442\u0437\u044B\u0432 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D","feedback.error.message":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u0437\u044B\u0432","feedback.deleted.confirmation":"\u041E\u0442\u0437\u044B\u0432 \u0443\u0434\u0430\u043B\u0451\u043D","badge.count":"\u041D\u0435\u0440\u0435\u0448\u0451\u043D\u043D\u044B\u0445 \u043E\u0442\u0437\u044B\u0432\u043E\u0432: {count}","bulk.selectAll":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435","bulk.selected":"\u0412\u044B\u0431\u0440\u0430\u043D\u043E: {count}","bulk.resolve":"\u0420\u0435\u0448\u0438\u0442\u044C","bulk.delete":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","bulk.deselect":"\u0421\u043D\u044F\u0442\u044C \u0432\u044B\u0431\u043E\u0440","sort.newest":"\u0421\u043D\u0430\u0447\u0430\u043B\u0430 \u043D\u043E\u0432\u044B\u0435","sort.oldest":"\u0421\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u0442\u0430\u0440\u044B\u0435","sort.byType":"\u041F\u043E \u0442\u0438\u043F\u0443","sort.openFirst":"\u0421\u043D\u0430\u0447\u0430\u043B\u0430 \u043E\u0442\u043A\u0440\u044B\u0442\u044B\u0435","sort.label":"\u0421\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0430","group.byPage":"\u041F\u043E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435","group.feedbacks":"\u041E\u0442\u0437\u044B\u0432\u043E\u0432: {count}","stats.open":"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0435","stats.resolved":"\u0420\u0435\u0448\u0451\u043D\u043D\u044B\u0435","stats.bugs":"\u0411\u0430\u0433\u0438","stats.progress":"\u0420\u0435\u0448\u0435\u043D\u043E: {percent}%","detail.back":"\u041D\u0430\u0437\u0430\u0434","detail.title":"\u041E\u0442\u0437\u044B\u0432 #{number}","detail.status":"\u0421\u0442\u0430\u0442\u0443\u0441","detail.message":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","detail.screenshot":"\u0421\u043A\u0440\u0438\u043D\u0448\u043E\u0442","detail.screenshotAlt":"\u0421\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438","detail.metadata":"\u0414\u0435\u0442\u0430\u043B\u0438","detail.annotation":"\u0410\u043D\u043D\u043E\u0442\u0430\u0446\u0438\u044F","detail.page":"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430","detail.author":"\u0410\u0432\u0442\u043E\u0440","detail.date":"\u0421\u043E\u0437\u0434\u0430\u043D","detail.viewport":"Viewport","detail.browser":"\u0411\u0440\u0430\u0443\u0437\u0435\u0440","detail.resolvedAt":"\u0420\u0435\u0448\u0451\u043D","detail.goToAnnotation":"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0430\u043D\u043D\u043E\u0442\u0430\u0446\u0438\u0438","detail.element":"\u042D\u043B\u0435\u043C\u0435\u043D\u0442","detail.selector":"\u0421\u0435\u043B\u0435\u043A\u0442\u043E\u0440","detail.position":"\u041F\u043E\u0437\u0438\u0446\u0438\u044F","detail.resolve":"\u0420\u0435\u0448\u0438\u0442\u044C","detail.reopen":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E","detail.delete":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","detail.diagnostics":"\u0414\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0430","detail.diagnostics.console":"\u041A\u043E\u043D\u0441\u043E\u043B\u044C","detail.diagnostics.network":"\u0421\u0435\u0442\u0435\u0432\u044B\u0435 \u043E\u0448\u0438\u0431\u043A\u0438","detail.diagnostics.expand":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0443","detail.diagnostics.collapse":"\u0421\u043A\u0440\u044B\u0442\u044C \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0443","detail.diagnostics.noEntries":"\u041D\u0435\u0442 \u0437\u0430\u043F\u0438\u0441\u0435\u0439","shortcuts.title":"\u0413\u043E\u0440\u044F\u0447\u0438\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438","shortcuts.navigate":"\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F \u043F\u043E \u043E\u0442\u0437\u044B\u0432\u0430\u043C","shortcuts.resolve":"\u0420\u0435\u0448\u0438\u0442\u044C / \u041F\u0435\u0440\u0435\u043E\u0442\u043A\u0440\u044B\u0442\u044C","shortcuts.delete":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","shortcuts.search":"\u041F\u043E\u0438\u0441\u043A","shortcuts.select":"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440","shortcuts.help":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043B\u0430\u0432\u0438\u0448\u0438","shortcuts.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C","shortcuts.hint":"\u0413\u043E\u0440\u044F\u0447\u0438\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438","export.label":"\u042D\u043A\u0441\u043F\u043E\u0440\u0442","export.csv":"\u042D\u043A\u0441\u043F\u043E\u0440\u0442 \u0432 CSV","export.json":"\u042D\u043A\u0441\u043F\u043E\u0440\u0442 \u0432 JSON"};});async function la(o){let s=(o.split("-")[0]??o).toLowerCase();if(be[s])return be[s];if(!aa.has(s))return null;let n;switch(s){case "de":n=await Promise.resolve().then(()=>(zo(),$o));break;case "es":n=await Promise.resolve().then(()=>(qo(),Zo));break;case "fr":n=await Promise.resolve().then(()=>(ea(),Aa));break;case "it":n=await Promise.resolve().then(()=>(ra(),ta));break;case "pt":n=await Promise.resolve().then(()=>(na(),sa));break;case "ru":n=await Promise.resolve().then(()=>(oa(),ia));break;default:return null}let a=n[s];return a?(be[s]=a,a):null}function Lr(o){let s=(o.split("-")[0]??o).toLowerCase();return s!=="en"&&!be[s]&&!aa.has(s)&&console.warn(`[siteping] Unknown locale "${o}", falling back to "en"`),n=>(be[s]??be.en??{})[n]??be.en?.[n]??n}function Ce(o,s){switch(o){case "question":return s("type.question");case "change":return s("type.change");case "bug":return s("type.bug");case "other":return s("type.other");default:return o}}var be,aa,mt=gA(()=>{jo();be={en:Wo},aa=new Set(["de","es","fr","it","pt","ru"]);});function Vh(o){return o.includes('"')||o.includes(",")||o.includes(`
43
+ `)||o.includes("\r")?`"${o.replace(/"/g,'""')}"`:o}function Xh(o){let s=wa.join(","),n=o.map(a=>wa.map(c=>{let p=a[c];return Vh(p==null?"":String(p))}).join(","));return [s,...n].join(`
44
+ `)}function Yh(o){return JSON.stringify(o,null,2)}function ma(o,s,n){let a=new Blob([o],{type:n}),c=URL.createObjectURL(a),p=document.createElement("a");p.href=c,p.download=s,p.style.display="none",document.body.appendChild(p),p.click(),requestAnimationFrame(()=>{URL.revokeObjectURL(c),p.remove();});}var Ph,Gh,_h,ba,wa,Rr,on=gA(()=>{UA();Ph='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>',Gh='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><line x1="3" y1="9" x2="21" y2="9"/><line x1="3" y1="15" x2="21" y2="15"/><line x1="9" y1="3" x2="9" y2="21"/><line x1="15" y1="3" x2="15" y2="21"/></svg>',_h='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 3H6a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2 2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h2"/><path d="M16 3h2a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2 2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-2"/></svg>',ba=`
172
45
  /* ============================
173
46
  Export Button & Menu
174
47
  ============================ */
@@ -286,9 +159,7 @@
286
159
  outline: 3px solid Highlight !important;
287
160
  }
288
161
  }
289
- `,It=["id","type","status","message","url","authorName","authorEmail","createdAt","resolvedAt","viewport"];function zs(n){return n.includes('"')||n.includes(",")||n.includes(`
290
- `)||n.includes("\r")?`"${n.replace(/"/g,'""')}"`:n}function Ks(n){let e=It.join(","),t=n.map(s=>It.map(o=>{let i=s[o];return zs(i==null?"":String(i))}).join(","));return[e,...t].join(`
291
- `)}function Ys(n){return JSON.stringify(n,null,2)}function Nt(n,e,t){let s=new Blob([n],{type:t}),o=URL.createObjectURL(s),i=document.createElement("a");i.href=o,i.download=e,i.style.display="none",document.body.appendChild(i),i.click(),requestAnimationFrame(()=>{URL.revokeObjectURL(o),i.remove()})}var de=class{constructor(e,t){this.getFeedbacks=t;this.element=l("div",{style:"position: relative; display: inline-flex;"});let s=document.createElement("button");s.className="sp-export-btn",s.setAttribute("aria-haspopup","true"),s.setAttribute("aria-expanded","false"),s.appendChild(v(Hs));let o=document.createElement("span");c(o,Ne["export.label"]),s.appendChild(o),s.addEventListener("click",a=>{a.stopPropagation(),this.toggle()}),this.menu=l("div",{class:"sp-export-menu"}),this.menu.setAttribute("role","menu");let i=this.createOption($s,Ne["export.csv"],()=>{this.exportAs("csv")}),r=this.createOption(js,Ne["export.json"],()=>{this.exportAs("json")});this.menu.appendChild(i),this.menu.appendChild(r),this.element.appendChild(s),this.element.appendChild(this.menu),this.onDocumentClick=a=>{this.isOpen&&!this.element.contains(a.target)&&this.close()},document.addEventListener("click",this.onDocumentClick,!0)}getFeedbacks;element;menu;isOpen=!1;onDocumentClick;setLabels(e){let t=this.element.querySelector(".sp-export-btn");if(t){let o=t.querySelector("span");o&&c(o,e["export.label"])}let s=this.menu.querySelectorAll(".sp-export-option-label");s[0]&&c(s[0],e["export.csv"]),s[1]&&c(s[1],e["export.json"])}createOption(e,t,s){let o=document.createElement("button");o.className="sp-export-option",o.setAttribute("role","menuitem");let i=l("span",{class:"sp-export-option-icon"});i.appendChild(v(e));let r=l("span",{class:"sp-export-option-label"});return c(r,t),o.appendChild(i),o.appendChild(r),o.addEventListener("click",a=>{a.stopPropagation(),s(),this.close()}),o}toggle(){this.isOpen?this.close():this.open()}open(){this.isOpen=!0,this.menu.classList.add("sp-export-menu--open"),this.element.querySelector(".sp-export-btn")?.setAttribute("aria-expanded","true")}close(){this.isOpen=!1,this.menu.classList.remove("sp-export-menu--open"),this.element.querySelector(".sp-export-btn")?.setAttribute("aria-expanded","false")}exportAs(e){let t=this.getFeedbacks();if(t.length===0)return;let s=t[0]?.projectName??"feedbacks",o=new Date().toISOString().slice(0,10),i=s.replace(/[^a-zA-Z0-9_-]/g,"_");if(e==="csv"){let r=Ks(t);Nt(r,`feedbacks-${i}-${o}.csv`,"text/csv;charset=utf-8")}else{let r=Ys(t);Nt(r,`feedbacks-${i}-${o}.json`,"application/json;charset=utf-8")}}destroy(){document.removeEventListener("click",this.onDocumentClick,!0),this.element.remove()}};var ce='<svg viewBox="0 0 18 18" fill="none" aria-hidden="true"><rect x="1" y="1" width="16" height="16" rx="4" stroke="currentColor" stroke-width="2"/></svg>',Ot='<svg viewBox="0 0 18 18" fill="none" aria-hidden="true"><rect x="1" y="1" width="16" height="16" rx="4" fill="url(#sp-cb-grad)" stroke="none"/><polyline points="5 9 8 12 13 6" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><defs><linearGradient id="sp-cb-grad" x1="0" y1="0" x2="18" y2="18" gradientUnits="userSpaceOnUse"><stop offset="0%" stop-color="var(--sp-accent)"/><stop offset="100%" stop-color="var(--sp-accent-dark)"/></linearGradient></defs></svg>',De={"bulk.selectAll":"Select all","bulk.selected":"{count} selected","bulk.resolve":"Resolve","bulk.delete":"Delete","bulk.deselect":"Deselect"},_e={"bulk.selectAll":"Tout s\xE9lectionner","bulk.selected":"{count} s\xE9lectionn\xE9(s)","bulk.resolve":"R\xE9soudre","bulk.delete":"Supprimer","bulk.deselect":"D\xE9s\xE9lectionner"},Ht=`
162
+ `,wa=["id","type","status","message","url","authorName","authorEmail","createdAt","resolvedAt","viewport"];Rr=class{constructor(s,n,a){this.getFeedbacks=n;this.element=C("div",{style:"position: relative; display: inline-flex;"});let c=document.createElement("button");c.className="sp-export-btn",c.setAttribute("aria-haspopup","true"),c.setAttribute("aria-expanded","false"),c.appendChild(_(Ph));let p=document.createElement("span");U(p,a("export.label")),c.appendChild(p),c.addEventListener("click",m=>{m.stopPropagation(),this.toggle();}),this.menu=C("div",{class:"sp-export-menu"}),this.menu.setAttribute("role","menu");let g=this.createOption(Gh,a("export.csv"),()=>{this.exportAs("csv");}),f=this.createOption(_h,a("export.json"),()=>{this.exportAs("json");});this.menu.appendChild(g),this.menu.appendChild(f),this.element.appendChild(c),this.element.appendChild(this.menu),this.onDocumentClick=m=>{this.isOpen&&!this.element.contains(m.target)&&this.close();},document.addEventListener("click",this.onDocumentClick,true);}getFeedbacks;element;menu;isOpen=false;onDocumentClick;createOption(s,n,a){let c=document.createElement("button");c.className="sp-export-option",c.setAttribute("role","menuitem");let p=C("span",{class:"sp-export-option-icon"});p.appendChild(_(s));let g=C("span",{class:"sp-export-option-label"});return U(g,n),c.appendChild(p),c.appendChild(g),c.addEventListener("click",f=>{f.stopPropagation(),a(),this.close();}),c}toggle(){this.isOpen?this.close():this.open();}open(){this.isOpen=true,this.menu.classList.add("sp-export-menu--open"),this.element.querySelector(".sp-export-btn")?.setAttribute("aria-expanded","true");}close(){this.isOpen=false,this.menu.classList.remove("sp-export-menu--open"),this.element.querySelector(".sp-export-btn")?.setAttribute("aria-expanded","false");}exportAs(s){let n=this.getFeedbacks();if(n.length===0)return;let a=n[0]?.projectName??"feedbacks",c=new Date().toISOString().slice(0,10),p=a.replace(/[^a-zA-Z0-9_-]/g,"_");if(s==="csv"){let g=Xh(n);ma(g,`feedbacks-${p}-${c}.csv`,"text/csv;charset=utf-8");}else {let g=Yh(n);ma(g,`feedbacks-${p}-${c}.json`,"application/json;charset=utf-8");}}destroy(){document.removeEventListener("click",this.onDocumentClick,true),this.element.remove();}};});var Or,Ca,va,Nr,an=gA(()=>{UA();Or='<svg viewBox="0 0 18 18" fill="none" aria-hidden="true"><rect x="1" y="1" width="16" height="16" rx="4" stroke="currentColor" stroke-width="2"/></svg>',Ca='<svg viewBox="0 0 18 18" fill="none" aria-hidden="true"><rect x="1" y="1" width="16" height="16" rx="4" fill="url(#sp-cb-grad)" stroke="none"/><polyline points="5 9 8 12 13 6" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><defs><linearGradient id="sp-cb-grad" x1="0" y1="0" x2="18" y2="18" gradientUnits="userSpaceOnUse"><stop offset="0%" stop-color="var(--sp-accent)"/><stop offset="100%" stop-color="var(--sp-accent-dark)"/></linearGradient></defs></svg>',va=`
292
163
  /* ============================
293
164
  Bulk Checkbox
294
165
  ============================ */
@@ -586,7 +457,7 @@
586
457
  transition-duration: 0.01ms !important;
587
458
  }
588
459
  }
589
- `,ue=class{constructor(e,t,s){this.callbacks=t;this.i18n=s==="fr"?_e:De,this.barElement=l("div",{class:"sp-bulk-bar"}),this.barElement.setAttribute("role","toolbar"),this.barElement.setAttribute("aria-label","Bulk actions"),this.countLabel=l("span",{class:"sp-bulk-bar-count"}),c(this.countLabel,this.i18n["bulk.selected"].replace("{count}","0"));let o=l("div",{class:"sp-bulk-bar-actions"});this.resolveBtn=document.createElement("button"),this.resolveBtn.className="sp-bulk-btn-resolve",this.resolveBtn.type="button",this.resolveBtn.addEventListener("click",()=>this.handleResolve()),this.deleteBtn=document.createElement("button"),this.deleteBtn.className="sp-bulk-btn-delete",this.deleteBtn.type="button",this.deleteBtn.addEventListener("click",()=>this.handleDelete());let i=document.createElement("button");i.className="sp-bulk-btn-deselect",i.type="button",i.setAttribute("aria-label",this.i18n["bulk.deselect"]),i.appendChild(v('<svg 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>')),i.addEventListener("click",()=>this.deselectAll()),o.appendChild(this.resolveBtn),o.appendChild(this.deleteBtn),o.appendChild(i),this.barElement.appendChild(this.countLabel),this.barElement.appendChild(o),this.updateButtonLabels()}callbacks;barElement;selected=new Set;checkboxMap=new Map;countLabel;resolveBtn;deleteBtn;selectAllCheckbox=null;listContainer=null;isProcessing=!1;i18n;createCheckbox(e){let t=l("div",{class:"sp-bulk-checkbox"});return t.setAttribute("role","checkbox"),t.setAttribute("aria-checked","false"),t.setAttribute("tabindex","0"),t.setAttribute("aria-label",`Select feedback ${e}`),t.appendChild(v(ce)),t.addEventListener("click",s=>{s.stopPropagation(),this.toggle(e)}),t.addEventListener("keydown",s=>{(s.key===" "||s.key==="Enter")&&(s.preventDefault(),s.stopPropagation(),this.toggle(e))}),this.checkboxMap.set(e,t),t}createSelectAllBar(e,t){let s=l("div",{class:"sp-bulk-select-all"}),o=l("div",{class:"sp-bulk-checkbox"});o.appendChild(v(ce)),this.selectAllCheckbox=o;let i=l("span");return c(i,t),s.appendChild(o),s.appendChild(i),s.addEventListener("click",()=>{this.selected.size===e.length&&e.length>0?this.deselectAll():this.selectAll(e)}),s}setListContainer(e){this.listContainer=e}toggle(e){this.isProcessing||(this.selected.has(e)?this.selected.delete(e):this.selected.add(e),this.updateCheckbox(e),this.updateBar(),this.updateSelectAllCheckbox(),this.updateListSelectionClass(),this.updateCardSelectedState(e))}selectAll(e){if(!this.isProcessing){for(let t of e)this.selected.add(t),this.updateCheckbox(t),this.updateCardSelectedState(t);this.updateBar(),this.updateSelectAllCheckbox(),this.updateListSelectionClass()}}deselectAll(){let e=[...this.selected];this.selected.clear();for(let t of e)this.updateCheckbox(t),this.updateCardSelectedState(t);this.updateBar(),this.updateSelectAllCheckbox(),this.updateListSelectionClass()}get selectedIds(){return[...this.selected]}get count(){return this.selected.size}get hasSelection(){return this.selected.size>0}reset(){this.selected.clear(),this.checkboxMap.clear(),this.selectAllCheckbox=null,this.isProcessing=!1,this.updateBar(),this.updateListSelectionClass()}destroy(){this.selected.clear(),this.checkboxMap.clear(),this.selectAllCheckbox=null,this.listContainer=null,this.barElement.remove()}updateBar(){let e=this.selected.size,t=e>0;this.barElement.classList.toggle("sp-bulk-bar--visible",t),c(this.countLabel,this.i18n["bulk.selected"].replace("{count}",String(e))),this.updateButtonLabels()}updateButtonLabels(){let e=this.selected.size;this.resolveBtn.replaceChildren();let t=document.createElement("span");c(t,e>0?`${this.i18n["bulk.resolve"]} ${e}`:this.i18n["bulk.resolve"]),this.resolveBtn.appendChild(t),this.deleteBtn.replaceChildren();let s=document.createElement("span");c(s,e>0?`${this.i18n["bulk.delete"]} ${e}`:this.i18n["bulk.delete"]),this.deleteBtn.appendChild(s)}updateCheckbox(e){let t=this.checkboxMap.get(e);if(!t)return;let s=this.selected.has(e);t.classList.toggle("sp-bulk-checkbox--checked",s),t.setAttribute("aria-checked",String(s)),t.replaceChildren(),t.appendChild(v(s?Ot:ce))}updateSelectAllCheckbox(){if(!this.selectAllCheckbox)return;let e=this.selected.size>0&&this.selected.size===this.checkboxMap.size;this.selectAllCheckbox.classList.toggle("sp-bulk-checkbox--checked",e),this.selectAllCheckbox.setAttribute("aria-checked",String(e)),this.selectAllCheckbox.replaceChildren(),this.selectAllCheckbox.appendChild(v(e?Ot:ce))}updateListSelectionClass(){this.listContainer&&this.listContainer.classList.toggle("sp-list--has-selection",this.selected.size>0)}updateCardSelectedState(e){if(!this.listContainer)return;let t=CSS.escape(e),s=this.listContainer.querySelector(`[data-feedback-id="${t}"]`);s&&s.classList.toggle("sp-card--selected",this.selected.has(e))}setButtonLoading(e){let t=Array.from(e.childNodes).map(s=>s.cloneNode(!0));return e.disabled=!0,e.replaceChildren(l("div",{class:"sp-spinner sp-spinner--sm"})),()=>{e.replaceChildren(...t),e.disabled=!1}}async handleResolve(){if(this.isProcessing||this.selected.size===0)return;this.isProcessing=!0;let e=[...this.selected],t=this.setButtonLoading(this.resolveBtn);this.deleteBtn.disabled=!0;try{await this.callbacks.onResolve(e),this.reset()}catch{t(),this.deleteBtn.disabled=!1}finally{this.isProcessing=!1}}async handleDelete(){if(this.isProcessing||this.selected.size===0)return;this.isProcessing=!0;let e=[...this.selected],t=this.setButtonLoading(this.deleteBtn);this.resolveBtn.disabled=!0;try{await this.callbacks.onDelete(e),this.reset()}catch{t(),this.resolveBtn.disabled=!1}finally{this.isProcessing=!1}}};var qs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg>',Oe='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg>',Us='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>',Ws='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>',Xs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>',Vs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>',He='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>',$t='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg>',jt='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/></svg>',Gs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>',Qs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="22" y1="12" x2="18" y2="12"/><line x1="6" y1="12" x2="2" y2="12"/><line x1="12" y1="6" x2="12" y2="2"/><line x1="12" y1="22" x2="12" y2="18"/></svg>',Js={"detail.back":"Back","detail.title":"Feedback #{number}","detail.status":"Status","detail.message":"Message","detail.metadata":"Details","detail.annotation":"Annotation","detail.page":"Page","detail.author":"Author","detail.date":"Created","detail.viewport":"Viewport","detail.browser":"Browser","detail.resolvedAt":"Resolved at","detail.goToAnnotation":"Go to annotation","detail.element":"Element","detail.selector":"Selector","detail.position":"Position","detail.resolve":"Resolve","detail.reopen":"Reopen","detail.delete":"Delete"},$e={"detail.back":"Retour","detail.title":"Feedback n\xB0{number}","detail.status":"Statut","detail.message":"Message","detail.metadata":"D\xE9tails","detail.annotation":"Annotation","detail.page":"Page","detail.author":"Auteur","detail.date":"Cr\xE9\xE9 le","detail.viewport":"Viewport","detail.browser":"Navigateur","detail.resolvedAt":"R\xE9solu le","detail.goToAnnotation":"Aller \xE0 l'annotation","detail.element":"\xC9l\xE9ment","detail.selector":"S\xE9lecteur","detail.position":"Position","detail.resolve":"R\xE9soudre","detail.reopen":"Rouvrir","detail.delete":"Supprimer"},Yt=`
460
+ `,Nr=class{constructor(s,n,a){this.callbacks=n;this.t=a,this.barElement=C("div",{class:"sp-bulk-bar"}),this.barElement.setAttribute("role","toolbar"),this.barElement.setAttribute("aria-label","Bulk actions"),this.countLabel=C("span",{class:"sp-bulk-bar-count"}),U(this.countLabel,this.t("bulk.selected").replace("{count}","0"));let c=C("div",{class:"sp-bulk-bar-actions"});this.resolveBtn=document.createElement("button"),this.resolveBtn.className="sp-bulk-btn-resolve",this.resolveBtn.type="button",this.resolveBtn.addEventListener("click",()=>this.handleResolve()),this.deleteBtn=document.createElement("button"),this.deleteBtn.className="sp-bulk-btn-delete",this.deleteBtn.type="button",this.deleteBtn.addEventListener("click",()=>this.handleDelete());let p=document.createElement("button");p.className="sp-bulk-btn-deselect",p.type="button",p.setAttribute("aria-label",this.t("bulk.deselect")),p.appendChild(_('<svg 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>')),p.addEventListener("click",()=>this.deselectAll()),c.appendChild(this.resolveBtn),c.appendChild(this.deleteBtn),c.appendChild(p),this.barElement.appendChild(this.countLabel),this.barElement.appendChild(c),this.updateButtonLabels();}callbacks;barElement;selected=new Set;checkboxMap=new Map;countLabel;resolveBtn;deleteBtn;selectAllCheckbox=null;listContainer=null;isProcessing=false;t;createCheckbox(s){let n=C("div",{class:"sp-bulk-checkbox"});return n.setAttribute("role","checkbox"),n.setAttribute("aria-checked","false"),n.setAttribute("tabindex","0"),n.setAttribute("aria-label",`Select feedback ${s}`),n.appendChild(_(Or)),n.addEventListener("click",a=>{a.stopPropagation(),this.toggle(s);}),n.addEventListener("keydown",a=>{(a.key===" "||a.key==="Enter")&&(a.preventDefault(),a.stopPropagation(),this.toggle(s));}),this.checkboxMap.set(s,n),n}createSelectAllBar(s,n){let a=C("div",{class:"sp-bulk-select-all"}),c=C("div",{class:"sp-bulk-checkbox"});c.appendChild(_(Or)),this.selectAllCheckbox=c;let p=C("span");return U(p,n),a.appendChild(c),a.appendChild(p),a.addEventListener("click",()=>{this.selected.size===s.length&&s.length>0?this.deselectAll():this.selectAll(s);}),a}setListContainer(s){this.listContainer=s;}toggle(s){this.isProcessing||(this.selected.has(s)?this.selected.delete(s):this.selected.add(s),this.updateCheckbox(s),this.updateBar(),this.updateSelectAllCheckbox(),this.updateListSelectionClass(),this.updateCardSelectedState(s));}selectAll(s){if(!this.isProcessing){for(let n of s)this.selected.add(n),this.updateCheckbox(n),this.updateCardSelectedState(n);this.updateBar(),this.updateSelectAllCheckbox(),this.updateListSelectionClass();}}deselectAll(){let s=[...this.selected];this.selected.clear();for(let n of s)this.updateCheckbox(n),this.updateCardSelectedState(n);this.updateBar(),this.updateSelectAllCheckbox(),this.updateListSelectionClass();}get selectedIds(){return [...this.selected]}get count(){return this.selected.size}get hasSelection(){return this.selected.size>0}reset(){this.selected.clear(),this.checkboxMap.clear(),this.selectAllCheckbox=null,this.isProcessing=false,this.updateBar(),this.updateListSelectionClass();}destroy(){this.selected.clear(),this.checkboxMap.clear(),this.selectAllCheckbox=null,this.listContainer=null,this.barElement.remove();}updateBar(){let s=this.selected.size,n=s>0;this.barElement.classList.toggle("sp-bulk-bar--visible",n),U(this.countLabel,this.t("bulk.selected").replace("{count}",String(s))),this.updateButtonLabels();}updateButtonLabels(){let s=this.selected.size,n=this.t("bulk.resolve"),a=this.t("bulk.delete");this.resolveBtn.replaceChildren();let c=document.createElement("span");U(c,s>0?`${n} ${s}`:n),this.resolveBtn.appendChild(c),this.deleteBtn.replaceChildren();let p=document.createElement("span");U(p,s>0?`${a} ${s}`:a),this.deleteBtn.appendChild(p);}updateCheckbox(s){let n=this.checkboxMap.get(s);if(!n)return;let a=this.selected.has(s);n.classList.toggle("sp-bulk-checkbox--checked",a),n.setAttribute("aria-checked",String(a)),n.replaceChildren(),n.appendChild(_(a?Ca:Or));}updateSelectAllCheckbox(){if(!this.selectAllCheckbox)return;let s=this.selected.size>0&&this.selected.size===this.checkboxMap.size;this.selectAllCheckbox.classList.toggle("sp-bulk-checkbox--checked",s),this.selectAllCheckbox.setAttribute("aria-checked",String(s)),this.selectAllCheckbox.replaceChildren(),this.selectAllCheckbox.appendChild(_(s?Ca:Or));}updateListSelectionClass(){this.listContainer&&this.listContainer.classList.toggle("sp-list--has-selection",this.selected.size>0);}updateCardSelectedState(s){if(!this.listContainer)return;let n=CSS.escape(s),a=this.listContainer.querySelector(`[data-feedback-id="${n}"]`);a&&a.classList.toggle("sp-card--selected",this.selected.has(s));}async handleResolve(){if(this.isProcessing||this.selected.size===0)return;this.isProcessing=true;let s=[...this.selected],n=me(this.resolveBtn);this.deleteBtn.disabled=true;try{await this.callbacks.onResolve(s),this.reset();}catch{n(),this.deleteBtn.disabled=false;}finally{this.isProcessing=false;}}async handleDelete(){if(this.isProcessing||this.selected.size===0)return;this.isProcessing=true;let s=[...this.selected],n=me(this.deleteBtn);this.resolveBtn.disabled=true;try{await this.callbacks.onDelete(s),this.reset();}catch{n(),this.resolveBtn.disabled=false;}finally{this.isProcessing=false;}}};});function tg(o){if(/Edg\//i.test(o)){let s=o.match(/Edg\/([\d.]+)/);return s?`Edge ${s[1]}`:"Edge"}if(/OPR\//i.test(o)||/Opera/i.test(o)){let s=o.match(/OPR\/([\d.]+)/);return s?`Opera ${s[1]}`:"Opera"}if(/Firefox\//i.test(o)){let s=o.match(/Firefox\/([\d.]+)/);return s?`Firefox ${s[1]}`:"Firefox"}if(/Chrome\//i.test(o)&&!/Chromium/i.test(o)){let s=o.match(/Chrome\/([\d.]+)/);return s?`Chrome ${s[1]}`:"Chrome"}if(/Safari\//i.test(o)&&!/Chrome/i.test(o)){let s=o.match(/Version\/([\d.]+)/);return s?`Safari ${s[1]}`:"Safari"}return "Unknown"}function Fa(o,s){try{return new Date(o).toLocaleString(s,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return o}}function rg(o){try{return new URL(o).pathname}catch{return o}}function sg(o){return !!(/^data:image\/(jpeg|png|webp);/i.test(o)||/^https:\/\//i.test(o))}function Pr(o,s){return o.length<=s?o:o.slice(0,s-1)+"\u2026"}function ng(o){if(!o)return false;let s=Array.isArray(o.console)?o.console.length:0,n=Array.isArray(o.network)?o.network.length:0;return s>0||n>0}function ig(o){return !Number.isFinite(o)||o<0?"\u2014":o<1e3?`${Math.round(o)} ms`:`${(o/1e3).toFixed(1)} s`}var Jh,ln,Wh,jh,$h,zh,cn,Qa,ya,Zh,qh,Ag,eg,Ua,Gr,dn=gA(()=>{UA();oe();Jh='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg>',ln='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg>',Wh='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>',jh='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>',$h='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>',zh='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>',cn='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>',Qa='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg>',ya='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/></svg>',Zh='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>',qh='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="22" y1="12" x2="18" y2="12"/><line x1="6" y1="12" x2="2" y2="12"/><line x1="12" y1="6" x2="12" y2="2"/><line x1="12" y1="22" x2="12" y2="18"/></svg>',Ag='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"/></svg>',eg='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg>',Ua=`
590
461
  /* ============================
591
462
  Detail View \u2014 Panel-in-Panel
592
463
  ============================ */
@@ -875,6 +746,19 @@
875
746
  word-break: break-word;
876
747
  }
877
748
 
749
+ /* ---- Screenshot Section ---- */
750
+
751
+ .sp-detail-screenshot {
752
+ display: block;
753
+ width: 100%;
754
+ height: auto;
755
+ max-height: 400px;
756
+ object-fit: contain;
757
+ border-radius: var(--sp-radius);
758
+ border: 1px solid var(--sp-glass-border);
759
+ background: var(--sp-glass-bg-heavy);
760
+ }
761
+
878
762
  /* ---- Metadata Section ---- */
879
763
 
880
764
  .sp-detail-meta {
@@ -1067,6 +951,180 @@
1067
951
  }
1068
952
  }
1069
953
 
954
+ /* ---- Diagnostics Section ---- */
955
+
956
+ .sp-detail-diag {
957
+ display: flex;
958
+ flex-direction: column;
959
+ gap: 12px;
960
+ }
961
+
962
+ .sp-detail-diag-toggle {
963
+ width: 100%;
964
+ display: flex;
965
+ align-items: center;
966
+ justify-content: space-between;
967
+ gap: 8px;
968
+ padding: 10px 12px;
969
+ border-radius: var(--sp-radius);
970
+ border: 1px solid var(--sp-glass-border-subtle);
971
+ background: var(--sp-glass-bg-heavy);
972
+ color: var(--sp-text);
973
+ font-family: var(--sp-font);
974
+ font-size: 12px;
975
+ font-weight: 600;
976
+ cursor: pointer;
977
+ transition: background 0.15s ease;
978
+ }
979
+
980
+ .sp-detail-diag-toggle:hover {
981
+ background: var(--sp-bg-hover);
982
+ }
983
+
984
+ .sp-detail-diag-toggle svg {
985
+ width: 12px;
986
+ height: 12px;
987
+ transition: transform 0.2s ease;
988
+ }
989
+
990
+ .sp-detail-diag-toggle[aria-expanded="true"] svg {
991
+ transform: rotate(90deg);
992
+ }
993
+
994
+ .sp-detail-diag-counts {
995
+ display: inline-flex;
996
+ gap: 6px;
997
+ font-weight: 500;
998
+ color: var(--sp-text-tertiary);
999
+ }
1000
+
1001
+ .sp-detail-diag-count {
1002
+ padding: 1px 7px;
1003
+ border-radius: var(--sp-radius-full);
1004
+ background: var(--sp-bg-hover);
1005
+ font-variant-numeric: tabular-nums;
1006
+ }
1007
+
1008
+ .sp-detail-diag-count--errors {
1009
+ background: rgba(239, 68, 68, 0.14);
1010
+ color: #ef4444;
1011
+ }
1012
+
1013
+ .sp-detail-diag-body {
1014
+ display: none;
1015
+ flex-direction: column;
1016
+ gap: 14px;
1017
+ }
1018
+
1019
+ .sp-detail-diag-body--open {
1020
+ display: flex;
1021
+ }
1022
+
1023
+ .sp-detail-diag-group-title {
1024
+ font-size: 10px;
1025
+ font-weight: 700;
1026
+ color: var(--sp-text-tertiary);
1027
+ text-transform: uppercase;
1028
+ letter-spacing: 0.06em;
1029
+ margin-bottom: 6px;
1030
+ }
1031
+
1032
+ .sp-detail-diag-list {
1033
+ list-style: none;
1034
+ padding: 0;
1035
+ margin: 0;
1036
+ border-radius: var(--sp-radius);
1037
+ border: 1px solid var(--sp-glass-border-subtle);
1038
+ background: var(--sp-glass-bg-heavy);
1039
+ max-height: 240px;
1040
+ overflow-y: auto;
1041
+ }
1042
+
1043
+ .sp-detail-diag-list li {
1044
+ display: flex;
1045
+ align-items: flex-start;
1046
+ gap: 8px;
1047
+ padding: 8px 10px;
1048
+ border-bottom: 1px solid var(--sp-glass-border-subtle);
1049
+ font-family: "SF Mono", "Cascadia Code", "Fira Code", "Consolas", monospace;
1050
+ font-size: 11px;
1051
+ line-height: 1.45;
1052
+ color: var(--sp-text);
1053
+ }
1054
+
1055
+ .sp-detail-diag-list li:last-child {
1056
+ border-bottom: none;
1057
+ }
1058
+
1059
+ .sp-detail-diag-level {
1060
+ flex-shrink: 0;
1061
+ font-weight: 700;
1062
+ width: 44px;
1063
+ text-transform: uppercase;
1064
+ letter-spacing: 0.04em;
1065
+ font-size: 10px;
1066
+ }
1067
+
1068
+ .sp-detail-diag-level--log {
1069
+ color: var(--sp-text-tertiary);
1070
+ }
1071
+ .sp-detail-diag-level--info {
1072
+ color: #3b82f6;
1073
+ }
1074
+ .sp-detail-diag-level--warn {
1075
+ color: #f59e0b;
1076
+ }
1077
+ .sp-detail-diag-level--error {
1078
+ color: #ef4444;
1079
+ }
1080
+
1081
+ .sp-detail-diag-message {
1082
+ flex: 1;
1083
+ min-width: 0;
1084
+ word-break: break-word;
1085
+ white-space: pre-wrap;
1086
+ }
1087
+
1088
+ .sp-detail-diag-net {
1089
+ display: grid;
1090
+ grid-template-columns: auto 1fr auto;
1091
+ gap: 8px;
1092
+ align-items: center;
1093
+ }
1094
+
1095
+ .sp-detail-diag-net-status {
1096
+ flex-shrink: 0;
1097
+ font-weight: 700;
1098
+ color: #ef4444;
1099
+ min-width: 32px;
1100
+ text-align: right;
1101
+ font-variant-numeric: tabular-nums;
1102
+ }
1103
+
1104
+ .sp-detail-diag-net-method {
1105
+ flex-shrink: 0;
1106
+ font-weight: 600;
1107
+ color: var(--sp-text-tertiary);
1108
+ min-width: 44px;
1109
+ }
1110
+
1111
+ .sp-detail-diag-net-url {
1112
+ flex: 1;
1113
+ min-width: 0;
1114
+ overflow: hidden;
1115
+ text-overflow: ellipsis;
1116
+ white-space: nowrap;
1117
+ color: var(--sp-text);
1118
+ }
1119
+
1120
+ .sp-detail-diag-empty {
1121
+ padding: 12px;
1122
+ font-style: italic;
1123
+ font-size: 11px;
1124
+ color: var(--sp-text-tertiary);
1125
+ text-align: center;
1126
+ }
1127
+
1070
1128
  /* ---- Reduced Motion ---- */
1071
1129
 
1072
1130
  @media (prefers-reduced-motion: reduce) {
@@ -1078,7 +1136,7 @@
1078
1136
  animation-duration: 0.01ms !important;
1079
1137
  }
1080
1138
  }
1081
- `;function Zs(n){if(/Edg\//i.test(n)){let e=n.match(/Edg\/([\d.]+)/);return e?`Edge ${e[1]}`:"Edge"}if(/OPR\//i.test(n)||/Opera/i.test(n)){let e=n.match(/OPR\/([\d.]+)/);return e?`Opera ${e[1]}`:"Opera"}if(/Firefox\//i.test(n)){let e=n.match(/Firefox\/([\d.]+)/);return e?`Firefox ${e[1]}`:"Firefox"}if(/Chrome\//i.test(n)&&!/Chromium/i.test(n)){let e=n.match(/Chrome\/([\d.]+)/);return e?`Chrome ${e[1]}`:"Chrome"}if(/Safari\//i.test(n)&&!/Chrome/i.test(n)){let e=n.match(/Version\/([\d.]+)/);return e?`Safari ${e[1]}`:"Safari"}return"Unknown"}function zt(n,e){try{return new Date(n).toLocaleString(e,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return n}}function en(n){try{return new URL(n).pathname}catch{return n}}function Kt(n,e){return n.length<=e?n:n.slice(0,e-1)+"\u2026"}var he=class{constructor(e,t,s){this.colors=e;this.callbacks=t;this.i18n=s.startsWith("fr")?$e:Js,this.element=l("div",{class:"sp-detail"}),this.element.setAttribute("role","dialog"),this.element.setAttribute("aria-label","Feedback detail"),this.element.setAttribute("aria-hidden","true");let o=l("div",{class:"sp-detail-header"}),i=document.createElement("button");i.type="button",i.className="sp-detail-back",i.setAttribute("aria-label",this.i18n["detail.back"]),i.appendChild(v(qs)),i.addEventListener("click",()=>{this.hide(),this.callbacks.onBack()}),this.element.appendChild(o),o.appendChild(i),this.content=l("div",{class:"sp-detail-content"}),this.element.appendChild(this.content)}colors;callbacks;element;_isVisible=!1;currentFeedback=null;content;i18n;resolveBtn=null;deleteBtn=null;isProcessing=!1;show(e,t){this.currentFeedback=e,this.isProcessing=!1;let s=this.element.querySelector(".sp-detail-header");if(!s)return;let o=s.querySelector(".sp-detail-back");if(!o)return;s.replaceChildren(o);let i=l("span",{class:"sp-detail-title"});c(i,this.i18n["detail.title"].replace("{number}",String(t))),s.appendChild(i);let r=l("span",{class:"sp-badge"});r.style.background=P(e.type,this.colors),r.style.color=M(e.type,this.colors),c(r,e.type),s.appendChild(r),this.content.replaceChildren();let a=0,p=this.buildSection(a++);this.buildStatusActions(p,e),this.content.appendChild(p);let d=this.buildSection(a++),u=l("div",{class:"sp-detail-section-title"});c(u,this.i18n["detail.message"]),d.appendChild(u);let h=l("div",{class:"sp-detail-message"});h.style.borderLeftColor=M(e.type,this.colors),c(h,e.message),d.appendChild(h),this.content.appendChild(d);let b=this.buildSection(a++),f=l("div",{class:"sp-detail-section-title"});if(c(f,this.i18n["detail.metadata"]),b.appendChild(f),this.buildMetadata(b,e),this.content.appendChild(b),e.annotations.length>0){let k=this.buildSection(a++),w=l("div",{class:"sp-detail-section-title"});w.appendChild(v(Oe));let E=l("span");c(E,this.i18n["detail.annotation"]),w.appendChild(E),k.appendChild(w),this.buildAnnotation(k,e),this.content.appendChild(k)}this._isVisible=!0,this.element.setAttribute("aria-hidden","false"),this.element.offsetHeight,this.element.classList.add("sp-detail--visible"),requestAnimationFrame(()=>{o.focus()})}hide(){this._isVisible&&(this._isVisible=!1,this.element.classList.remove("sp-detail--visible"),this.element.setAttribute("aria-hidden","true"),this.currentFeedback=null,this.resolveBtn=null,this.deleteBtn=null)}get isVisible(){return this._isVisible}destroy(){this.hide(),this.element.remove()}buildSection(e){let t=l("div",{class:"sp-detail-section"});return t.style.animationDelay=`${e*40}ms`,t}buildStatusActions(e,t){let s=t.status==="resolved",o=l("div",{class:"sp-detail-section-title"});c(o,this.i18n["detail.status"]),e.appendChild(o);let i=l("div",{class:"sp-detail-status"}),r=l("span",{class:`sp-detail-status-pill ${s?"sp-detail-status-pill--resolved":"sp-detail-status-pill--open"}`}),a=l("span",{class:"sp-detail-status-dot"});a.style.background=s?"#9ca3af":"#22c55e",r.appendChild(a);let p=l("span");c(p,s?this.i18n["detail.reopen"]:this.i18n["detail.resolve"]),c(p,s?"Resolved":"Open"),r.appendChild(p),i.appendChild(r),e.appendChild(i);let d=l("div",{class:"sp-detail-actions"});if(this.resolveBtn=document.createElement("button"),this.resolveBtn.type="button",s){this.resolveBtn.className="sp-detail-btn-reopen",this.resolveBtn.appendChild(v($t));let h=document.createElement("span");c(h,this.i18n["detail.reopen"]),this.resolveBtn.appendChild(h)}else{this.resolveBtn.className="sp-detail-btn-resolve",this.resolveBtn.appendChild(v(He));let h=document.createElement("span");c(h,this.i18n["detail.resolve"]),this.resolveBtn.appendChild(h)}this.resolveBtn.addEventListener("click",()=>this.handleResolve()),this.deleteBtn=document.createElement("button"),this.deleteBtn.type="button",this.deleteBtn.className="sp-detail-btn-delete",this.deleteBtn.appendChild(v(jt));let u=document.createElement("span");c(u,this.i18n["detail.delete"]),this.deleteBtn.appendChild(u),this.deleteBtn.addEventListener("click",()=>this.handleDelete()),d.appendChild(this.resolveBtn),d.appendChild(this.deleteBtn),e.appendChild(d)}buildMetadata(e,t){let s=l("div",{class:"sp-detail-meta"});if(this.addMetaRow(s,Us,this.i18n["detail.page"],()=>{let o=l("div",{class:"sp-detail-meta-value"}),i=en(t.url);return c(o,Kt(i,60)),o.title=t.url,o}),this.addMetaRow(s,Ws,this.i18n["detail.author"],()=>{let o=l("div",{class:"sp-detail-meta-value"}),i=t.authorName||"Anonymous",r=t.authorEmail;return c(o,r?`${i} (${r})`:i),o}),this.addMetaRow(s,Xs,this.i18n["detail.date"],()=>{let o=l("div",{class:"sp-detail-meta-value"});return c(o,zt(t.createdAt,this.i18n===$e?"fr":"en")),o}),this.addMetaRow(s,Vs,this.i18n["detail.viewport"],()=>{let o=l("div",{class:"sp-detail-meta-value sp-detail-meta-value--mono"});return c(o,t.viewport||"Unknown"),o}),this.addMetaRow(s,'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>',this.i18n["detail.browser"],()=>{let o=l("div",{class:"sp-detail-meta-value"});return c(o,Zs(t.userAgent)),o}),t.resolvedAt){let o=t.resolvedAt;this.addMetaRow(s,He,this.i18n["detail.resolvedAt"],()=>{let i=l("div",{class:"sp-detail-meta-value sp-detail-meta-value--secondary"});return c(i,zt(o,this.i18n===$e?"fr":"en")),i})}e.appendChild(s)}addMetaRow(e,t,s,o){let i=l("div",{class:"sp-detail-meta-row"});i.appendChild(v(t));let r=l("div",{class:"sp-detail-meta-content"}),a=l("div",{class:"sp-detail-meta-label"});c(a,s),r.appendChild(a),r.appendChild(o()),i.appendChild(r),e.appendChild(i)}buildAnnotation(e,t){let s=t.annotations[0];if(!s)return;let o=l("div",{class:"sp-detail-annotation"}),i=l("div",{class:"sp-detail-annotation-info"});this.addAnnotationRow(i,Gs,this.i18n["detail.element"],()=>{let p=l("span",{class:"sp-detail-annotation-value sp-detail-annotation-value--mono"}),d=s.elementId?`<${s.elementTag}#${s.elementId}>`:`<${s.elementTag}>`;return c(p,d),p}),this.addAnnotationRow(i,Qs,this.i18n["detail.selector"],()=>{let p=l("span",{class:"sp-detail-annotation-value sp-detail-annotation-value--mono"});return c(p,Kt(s.cssSelector,60)),p.title=s.cssSelector,p}),this.addAnnotationRow(i,Oe,this.i18n["detail.position"],()=>{let p=l("span",{class:"sp-detail-annotation-value"});return c(p,`${s.xPct.toFixed(1)}%, ${s.yPct.toFixed(1)}%`+(s.wPct>0||s.hPct>0?` (${s.wPct.toFixed(1)}% \xD7 ${s.hPct.toFixed(1)}%)`:"")),p}),o.appendChild(i);let r=document.createElement("button");r.type="button",r.className="sp-detail-btn-goto",r.appendChild(v(Oe));let a=document.createElement("span");c(a,this.i18n["detail.goToAnnotation"]),r.appendChild(a),r.addEventListener("click",()=>{this.currentFeedback&&this.callbacks.onGoToAnnotation(this.currentFeedback)}),o.appendChild(r),e.appendChild(o)}addAnnotationRow(e,t,s,o){let i=l("div",{class:"sp-detail-annotation-row"});i.appendChild(v(t));let r=l("div",{class:"sp-detail-meta-content"}),a=l("div",{class:"sp-detail-annotation-label"});c(a,s),r.appendChild(a),r.appendChild(o()),i.appendChild(r),e.appendChild(i)}async handleResolve(){if(!(this.isProcessing||!this.currentFeedback)){this.isProcessing=!0,this.resolveBtn&&this.setButtonLoading(this.resolveBtn),this.deleteBtn&&(this.deleteBtn.disabled=!0);try{await this.callbacks.onResolve(this.currentFeedback)}catch{this.isProcessing=!1,this.resolveBtn&&this.restoreResolveBtn(this.currentFeedback),this.deleteBtn&&(this.deleteBtn.disabled=!1)}}}async handleDelete(){if(!(this.isProcessing||!this.currentFeedback)){this.isProcessing=!0,this.deleteBtn&&this.setButtonLoading(this.deleteBtn),this.resolveBtn&&(this.resolveBtn.disabled=!0);try{await this.callbacks.onDelete(this.currentFeedback)}catch{this.isProcessing=!1,this.deleteBtn&&this.restoreDeleteBtn(),this.resolveBtn&&(this.resolveBtn.disabled=!1)}}}setButtonLoading(e){e.disabled=!0,e.replaceChildren(l("div",{class:"sp-spinner sp-spinner--sm"}))}restoreResolveBtn(e){if(!this.resolveBtn)return;this.resolveBtn.disabled=!1,this.resolveBtn.replaceChildren();let t=e.status==="resolved";this.resolveBtn.appendChild(v(t?$t:He));let s=document.createElement("span");c(s,t?this.i18n["detail.reopen"]:this.i18n["detail.resolve"]),this.resolveBtn.appendChild(s)}restoreDeleteBtn(){if(!this.deleteBtn)return;this.deleteBtn.disabled=!1,this.deleteBtn.replaceChildren(),this.deleteBtn.appendChild(v(jt));let e=document.createElement("span");c(e,this.i18n["detail.delete"]),this.deleteBtn.appendChild(e)}};var tn='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M11 5h10"/><path d="M11 9h7"/><path d="M11 13h4"/><path d="M3 17l3 3 3-3"/><path d="M6 18V4"/></svg>',Ut='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/><polyline points="10 9 9 9 8 9"/></svg>',sn='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"/></svg>',nn={"sort.newest":"Newest first","sort.oldest":"Oldest first","sort.byType":"By type","sort.openFirst":"Open first","sort.label":"Sort","group.byPage":"By page","group.feedbacks":"{count} feedbacks"},on={"sort.newest":"Plus r\xE9cents","sort.oldest":"Plus anciens","sort.byType":"Par type","sort.openFirst":"Ouverts d'abord","sort.label":"Trier","group.byPage":"Par page","group.feedbacks":"{count} feedbacks"},qt={question:0,change:1,bug:2,other:3};function Wt(n,e){let t=[...n];switch(e){case"newest":t.sort((s,o)=>new Date(o.createdAt).getTime()-new Date(s.createdAt).getTime());break;case"oldest":t.sort((s,o)=>new Date(s.createdAt).getTime()-new Date(o.createdAt).getTime());break;case"by-type":t.sort((s,o)=>{let i=qt[s.type]??99,r=qt[o.type]??99;return i!==r?i-r:new Date(o.createdAt).getTime()-new Date(s.createdAt).getTime()});break;case"open-first":t.sort((s,o)=>{let i=s.status==="open"?0:1,r=o.status==="open"?0:1;return i!==r?i-r:new Date(o.createdAt).getTime()-new Date(s.createdAt).getTime()});break}return t}function rn(n){try{return new URL(n).pathname}catch{return n}}function an(n,e){if(n.length<=e)return n;let t="\u2026",s=Math.floor((e-1)/2);return n.slice(0,s)+t+n.slice(-s)}function Xt(n){let e=new Map;for(let s of n){let o=rn(s.url),i=e.get(o);i?i.push(s):e.set(o,[s])}return new Map([...e.entries()].sort((s,o)=>o[1].length-s[1].length))}function Vt(n,e,t){let s=l("div",{class:"sp-group-header"});s.setAttribute("role","button"),s.setAttribute("tabindex","0"),s.setAttribute("aria-expanded","true"),s.style.borderBottomColor=t.border;let o=l("span",{class:"sp-group-header-chevron"});o.appendChild(v(sn)),s.appendChild(o);let i=l("span",{class:"sp-group-header-icon"});i.appendChild(v(Ut)),s.appendChild(i);let r=l("span",{class:"sp-group-header-path"}),a=an(n,40);c(r,a),n.length>40&&(r.title=n),s.appendChild(r);let p=l("span",{class:"sp-group-header-count"});p.style.background=t.accentLight,p.style.color=t.accent,c(p,String(e)),s.appendChild(p);let d=()=>{let u=s.getAttribute("aria-expanded")==="true";s.setAttribute("aria-expanded",String(!u)),s.classList.toggle("sp-group-header--collapsed",u);let h=s.nextElementSibling;h?.classList.contains("sp-group-content")&&h.classList.toggle("sp-group-content--collapsed",u)};return s.addEventListener("click",d),s.addEventListener("keydown",u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d())}),s}var be=class{element;_sortMode="newest";_groupByPage=!1;menuEl=null;sortBtn;groupToggle;i18n;colors;onChange;outsideClickHandler=null;constructor(e,t,s){this.colors=e,this.onChange=t,this.i18n=s==="fr"?on:nn,this.element=l("div",{class:"sp-sort-controls"}),this.sortBtn=document.createElement("button"),this.sortBtn.className="sp-sort-btn",this.sortBtn.setAttribute("aria-haspopup","listbox"),this.sortBtn.setAttribute("aria-expanded","false"),this.sortBtn.setAttribute("aria-label",this.i18n["sort.label"]);let o=v(tn);this.sortBtn.appendChild(o);let i=l("span",{class:"sp-sort-btn-label"});c(i,this.i18n["sort.newest"]),this.sortBtn.appendChild(i),this.sortBtn.addEventListener("click",p=>{p.stopPropagation(),this.toggleMenu()}),this.groupToggle=document.createElement("button"),this.groupToggle.className="sp-group-toggle",this.groupToggle.setAttribute("aria-pressed","false");let r=v(Ut);this.groupToggle.appendChild(r);let a=l("span",{class:"sp-group-toggle-label"});c(a,this.i18n["group.byPage"]),this.groupToggle.appendChild(a),this.groupToggle.addEventListener("click",()=>{this._groupByPage=!this._groupByPage,this.groupToggle.classList.toggle("sp-group-toggle--active",this._groupByPage),this.groupToggle.setAttribute("aria-pressed",String(this._groupByPage)),this.onChange()}),this.element.appendChild(this.sortBtn),this.element.appendChild(this.groupToggle)}get sortMode(){return this._sortMode}get groupByPage(){return this._groupByPage}toggleMenu(){if(this.menuEl){this.closeMenu();return}this.openMenu()}openMenu(){this.menuEl=l("div",{class:"sp-sort-menu"}),this.menuEl.setAttribute("role","listbox"),this.menuEl.setAttribute("aria-label",this.i18n["sort.label"]),this.sortBtn.setAttribute("aria-expanded","true");let e=[{mode:"newest",label:this.i18n["sort.newest"]},{mode:"oldest",label:this.i18n["sort.oldest"]},{mode:"by-type",label:this.i18n["sort.byType"]},{mode:"open-first",label:this.i18n["sort.openFirst"]}];for(let t of e){let s=document.createElement("button");s.className=`sp-sort-option${t.mode===this._sortMode?" sp-sort-option--active":""}`,s.setAttribute("role","option"),s.setAttribute("aria-selected",String(t.mode===this._sortMode)),t.mode===this._sortMode&&(s.style.background=this.colors.accentLight,s.style.color=this.colors.accent),c(s,t.label),s.addEventListener("click",o=>{o.stopPropagation(),this._sortMode=t.mode,this.updateSortLabel(),this.closeMenu(),this.onChange()}),this.menuEl.appendChild(s)}this.element.appendChild(this.menuEl),requestAnimationFrame(()=>{this.outsideClickHandler=t=>{this.menuEl&&!this.element.contains(t.target)&&this.closeMenu()},document.addEventListener("click",this.outsideClickHandler,!0)}),this.menuEl.addEventListener("keydown",t=>{t.key==="Escape"&&(this.closeMenu(),this.sortBtn.focus())})}closeMenu(){this.menuEl&&(this.menuEl.remove(),this.menuEl=null),this.sortBtn.setAttribute("aria-expanded","false"),this.outsideClickHandler&&(document.removeEventListener("click",this.outsideClickHandler,!0),this.outsideClickHandler=null)}updateSortLabel(){let e={newest:this.i18n["sort.newest"],oldest:this.i18n["sort.oldest"],"by-type":this.i18n["sort.byType"],"open-first":this.i18n["sort.openFirst"]},t=this.sortBtn.querySelector(".sp-sort-btn-label");t&&c(t,e[this._sortMode])}destroy(){this.closeMenu()}},Gt=`
1139
+ `;Gr=class{constructor(s,n,a,c){this.colors=s;this.callbacks=n;this.t=a,this.locale=c,this.element=C("div",{class:"sp-detail"}),this.element.setAttribute("role","dialog"),this.element.setAttribute("aria-label","Feedback detail"),this.element.setAttribute("aria-hidden","true");let p=C("div",{class:"sp-detail-header"}),g=document.createElement("button");g.type="button",g.className="sp-detail-back",g.setAttribute("aria-label",this.t("detail.back")),g.appendChild(_(Jh)),g.addEventListener("click",()=>{this.hide(),this.callbacks.onBack();}),this.element.appendChild(p),p.appendChild(g),this.content=C("div",{class:"sp-detail-content"}),this.element.appendChild(this.content);}colors;callbacks;element;_isVisible=false;currentFeedback=null;content;t;locale;resolveBtn=null;deleteBtn=null;isProcessing=false;show(s,n){this.currentFeedback=s,this.isProcessing=false;let a=this.element.querySelector(".sp-detail-header");if(!a)return;let c=a.querySelector(".sp-detail-back");if(!c)return;a.replaceChildren(c);let p=C("span",{class:"sp-detail-title"});U(p,this.t("detail.title").replace("{number}",String(n))),a.appendChild(p);let g=C("span",{class:"sp-badge"});g.style.background=JA(s.type,this.colors),g.style.color=HA(s.type,this.colors),U(g,s.type),a.appendChild(g),this.content.replaceChildren();let f=0,m=this.buildSection(f++);this.buildStatusActions(m,s),this.content.appendChild(m);let Q=this.buildSection(f++),b=C("div",{class:"sp-detail-section-title"});U(b,this.t("detail.message")),Q.appendChild(b);let F=C("div",{class:"sp-detail-message"});if(F.style.borderLeftColor=HA(s.type,this.colors),U(F,s.message),Q.appendChild(F),this.content.appendChild(Q),s.screenshotUrl&&sg(s.screenshotUrl)){let O=this.buildSection(f++),N=C("div",{class:"sp-detail-section-title"});U(N,this.t("detail.screenshot")),O.appendChild(N);let P=document.createElement("img");P.className="sp-detail-screenshot",P.src=s.screenshotUrl,P.alt=this.t("detail.screenshotAlt"),P.loading="lazy",P.referrerPolicy="no-referrer",O.appendChild(P),this.content.appendChild(O);}let I=this.buildSection(f++),M=C("div",{class:"sp-detail-section-title"});if(U(M,this.t("detail.metadata")),I.appendChild(M),this.buildMetadata(I,s),this.content.appendChild(I),s.annotations.length>0){let O=this.buildSection(f++),N=C("div",{class:"sp-detail-section-title"});N.appendChild(_(ln));let P=C("span");U(P,this.t("detail.annotation")),N.appendChild(P),O.appendChild(N),this.buildAnnotation(O,s),this.content.appendChild(O);}if(ng(s.diagnostics)){let O=this.buildSection(f++),N=C("div",{class:"sp-detail-section-title"});N.appendChild(_(eg));let P=C("span");U(P,this.t("detail.diagnostics")),N.appendChild(P),O.appendChild(N),this.buildDiagnostics(O,s),this.content.appendChild(O);}this._isVisible=true,this.element.setAttribute("aria-hidden","false"),this.element.offsetHeight,this.element.classList.add("sp-detail--visible"),requestAnimationFrame(()=>{c.focus();});}hide(){this._isVisible&&(this._isVisible=false,this.element.classList.remove("sp-detail--visible"),this.element.setAttribute("aria-hidden","true"),this.currentFeedback=null,this.resolveBtn=null,this.deleteBtn=null);}get isVisible(){return this._isVisible}destroy(){this.hide(),this.element.remove();}buildSection(s){let n=C("div",{class:"sp-detail-section"});return n.style.animationDelay=`${s*40}ms`,n}buildStatusActions(s,n){let a=n.status==="resolved",c=C("div",{class:"sp-detail-section-title"});U(c,this.t("detail.status")),s.appendChild(c);let p=C("div",{class:"sp-detail-status"}),g=C("span",{class:`sp-detail-status-pill ${a?"sp-detail-status-pill--resolved":"sp-detail-status-pill--open"}`}),f=C("span",{class:"sp-detail-status-dot"});f.style.background=a?"#9ca3af":"#22c55e",g.appendChild(f);let m=C("span");U(m,a?this.t("detail.reopen"):this.t("detail.resolve")),U(m,a?"Resolved":"Open"),g.appendChild(m),p.appendChild(g),s.appendChild(p);let Q=C("div",{class:"sp-detail-actions"});if(this.resolveBtn=document.createElement("button"),this.resolveBtn.type="button",a){this.resolveBtn.className="sp-detail-btn-reopen",this.resolveBtn.appendChild(_(Qa));let F=document.createElement("span");U(F,this.t("detail.reopen")),this.resolveBtn.appendChild(F);}else {this.resolveBtn.className="sp-detail-btn-resolve",this.resolveBtn.appendChild(_(cn));let F=document.createElement("span");U(F,this.t("detail.resolve")),this.resolveBtn.appendChild(F);}this.resolveBtn.addEventListener("click",()=>this.handleResolve()),this.deleteBtn=document.createElement("button"),this.deleteBtn.type="button",this.deleteBtn.className="sp-detail-btn-delete",this.deleteBtn.appendChild(_(ya));let b=document.createElement("span");U(b,this.t("detail.delete")),this.deleteBtn.appendChild(b),this.deleteBtn.addEventListener("click",()=>this.handleDelete()),Q.appendChild(this.resolveBtn),Q.appendChild(this.deleteBtn),s.appendChild(Q);}buildMetadata(s,n){let a=C("div",{class:"sp-detail-meta"});if(this.addMetaRow(a,Wh,this.t("detail.page"),()=>{let c=C("div",{class:"sp-detail-meta-value"}),p=rg(n.url);return U(c,Pr(p,60)),c.title=n.url,c}),this.addMetaRow(a,jh,this.t("detail.author"),()=>{let c=C("div",{class:"sp-detail-meta-value"}),p=n.authorName||"Anonymous",g=n.authorEmail;return U(c,g?`${p} (${g})`:p),c}),this.addMetaRow(a,$h,this.t("detail.date"),()=>{let c=C("div",{class:"sp-detail-meta-value"});return U(c,Fa(n.createdAt,this.locale.startsWith("fr")?"fr":"en")),c}),this.addMetaRow(a,zh,this.t("detail.viewport"),()=>{let c=C("div",{class:"sp-detail-meta-value sp-detail-meta-value--mono"});return U(c,n.viewport||"Unknown"),c}),this.addMetaRow(a,'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>',this.t("detail.browser"),()=>{let c=C("div",{class:"sp-detail-meta-value"});return U(c,tg(n.userAgent)),c}),n.resolvedAt){let c=n.resolvedAt;this.addMetaRow(a,cn,this.t("detail.resolvedAt"),()=>{let p=C("div",{class:"sp-detail-meta-value sp-detail-meta-value--secondary"});return U(p,Fa(c,this.locale.startsWith("fr")?"fr":"en")),p});}s.appendChild(a);}addMetaRow(s,n,a,c){let p=C("div",{class:"sp-detail-meta-row"});p.appendChild(_(n));let g=C("div",{class:"sp-detail-meta-content"}),f=C("div",{class:"sp-detail-meta-label"});U(f,a),g.appendChild(f),g.appendChild(c()),p.appendChild(g),s.appendChild(p);}buildAnnotation(s,n){let a=n.annotations[0];if(!a)return;let c=C("div",{class:"sp-detail-annotation"}),p=C("div",{class:"sp-detail-annotation-info"});this.addAnnotationRow(p,Zh,this.t("detail.element"),()=>{let m=C("span",{class:"sp-detail-annotation-value sp-detail-annotation-value--mono"}),Q=a.elementId?`<${a.elementTag}#${a.elementId}>`:`<${a.elementTag}>`;return U(m,Q),m}),this.addAnnotationRow(p,qh,this.t("detail.selector"),()=>{let m=C("span",{class:"sp-detail-annotation-value sp-detail-annotation-value--mono"});return U(m,Pr(a.cssSelector,60)),m.title=a.cssSelector,m}),this.addAnnotationRow(p,ln,this.t("detail.position"),()=>{let m=C("span",{class:"sp-detail-annotation-value"});return U(m,`${a.xPct.toFixed(1)}%, ${a.yPct.toFixed(1)}%`+(a.wPct>0||a.hPct>0?` (${a.wPct.toFixed(1)}% \xD7 ${a.hPct.toFixed(1)}%)`:"")),m}),c.appendChild(p);let g=document.createElement("button");g.type="button",g.className="sp-detail-btn-goto",g.appendChild(_(ln));let f=document.createElement("span");U(f,this.t("detail.goToAnnotation")),g.appendChild(f),g.addEventListener("click",()=>{this.currentFeedback&&this.callbacks.onGoToAnnotation(this.currentFeedback);}),c.appendChild(g),s.appendChild(c);}buildDiagnostics(s,n){let a=n.diagnostics;if(!a)return;let c=Array.isArray(a.console)?a.console:[],p=Array.isArray(a.network)?a.network:[],g=c.filter(N=>N.level==="error").length,f=C("div",{class:"sp-detail-diag"}),m=document.createElement("button");m.type="button",m.className="sp-detail-diag-toggle",m.setAttribute("aria-expanded","false"),m.setAttribute("aria-label",this.t("detail.diagnostics.expand"));let Q=document.createElement("span"),b=document.createElement("span");b.style.display="inline-flex",b.style.alignItems="center",b.style.gap="8px",b.appendChild(_(Ag)),U(Q,this.t("detail.diagnostics")),b.appendChild(Q),m.appendChild(b);let F=C("span",{class:"sp-detail-diag-counts"}),I=C("span",{class:`sp-detail-diag-count${g>0?" sp-detail-diag-count--errors":""}`});U(I,`${c.length} console`);let M=C("span",{class:`sp-detail-diag-count${p.length>0?" sp-detail-diag-count--errors":""}`});U(M,`${p.length} net`),F.appendChild(I),F.appendChild(M),m.appendChild(F);let O=C("div",{class:"sp-detail-diag-body"});if(c.length>0){let N=document.createElement("div"),P=C("div",{class:"sp-detail-diag-group-title"});U(P,this.t("detail.diagnostics.console")),N.appendChild(P);let AA=document.createElement("ul");AA.className="sp-detail-diag-list";for(let E of c){let G=document.createElement("li"),R=C("span",{class:`sp-detail-diag-level sp-detail-diag-level--${E.level}`});U(R,E.level);let $=C("span",{class:"sp-detail-diag-message"});U($,Pr(E.message,240)),$.title=E.message,G.appendChild(R),G.appendChild($),AA.appendChild(G);}N.appendChild(AA),O.appendChild(N);}if(p.length>0){let N=document.createElement("div"),P=C("div",{class:"sp-detail-diag-group-title"});U(P,this.t("detail.diagnostics.network")),N.appendChild(P);let AA=document.createElement("ul");AA.className="sp-detail-diag-list";for(let E of p){let G=document.createElement("li");G.classList.add("sp-detail-diag-net");let R=C("span",{class:"sp-detail-diag-net-status"});U(R,E.status===0?"ERR":String(E.status));let $=C("span",{class:"sp-detail-diag-net-method"});U($,E.method);let j=C("span",{class:"sp-detail-diag-net-url"});U(j,Pr(E.url,120)),j.title=`${E.url} \u2014 ${ig(E.durationMs)}`,G.appendChild(R),G.appendChild($),G.appendChild(j),AA.appendChild(G);}N.appendChild(AA),O.appendChild(N);}m.addEventListener("click",()=>{let P=!(m.getAttribute("aria-expanded")==="true");m.setAttribute("aria-expanded",String(P)),m.setAttribute("aria-label",P?this.t("detail.diagnostics.collapse"):this.t("detail.diagnostics.expand")),O.classList.toggle("sp-detail-diag-body--open",P);}),f.appendChild(m),f.appendChild(O),s.appendChild(f);}addAnnotationRow(s,n,a,c){let p=C("div",{class:"sp-detail-annotation-row"});p.appendChild(_(n));let g=C("div",{class:"sp-detail-meta-content"}),f=C("div",{class:"sp-detail-annotation-label"});U(f,a),g.appendChild(f),g.appendChild(c()),p.appendChild(g),s.appendChild(p);}async handleResolve(){if(!(this.isProcessing||!this.currentFeedback)){this.isProcessing=true,this.resolveBtn&&this.setButtonLoading(this.resolveBtn),this.deleteBtn&&(this.deleteBtn.disabled=true);try{await this.callbacks.onResolve(this.currentFeedback);}catch{this.isProcessing=false,this.resolveBtn&&this.restoreResolveBtn(this.currentFeedback),this.deleteBtn&&(this.deleteBtn.disabled=false);}}}async handleDelete(){if(!(this.isProcessing||!this.currentFeedback)){this.isProcessing=true,this.deleteBtn&&this.setButtonLoading(this.deleteBtn),this.resolveBtn&&(this.resolveBtn.disabled=true);try{await this.callbacks.onDelete(this.currentFeedback);}catch{this.isProcessing=false,this.deleteBtn&&this.restoreDeleteBtn(),this.resolveBtn&&(this.resolveBtn.disabled=false);}}}setButtonLoading(s){s.disabled=true,s.replaceChildren(C("div",{class:"sp-spinner sp-spinner--sm"}));}restoreResolveBtn(s){if(!this.resolveBtn)return;this.resolveBtn.disabled=false,this.resolveBtn.replaceChildren();let n=s.status==="resolved";this.resolveBtn.appendChild(_(n?Qa:cn));let a=document.createElement("span");U(a,n?this.t("detail.reopen"):this.t("detail.resolve")),this.resolveBtn.appendChild(a);}restoreDeleteBtn(){if(!this.deleteBtn)return;this.deleteBtn.disabled=false,this.deleteBtn.replaceChildren(),this.deleteBtn.appendChild(_(ya));let s=document.createElement("span");U(s,this.t("detail.delete")),this.deleteBtn.appendChild(s);}};});function Ha(o,s){let n=[...o];switch(s){case "newest":n.sort((a,c)=>new Date(c.createdAt).getTime()-new Date(a.createdAt).getTime());break;case "oldest":n.sort((a,c)=>new Date(a.createdAt).getTime()-new Date(c.createdAt).getTime());break;case "by-type":n.sort((a,c)=>{let p=xa[a.type]??99,g=xa[c.type]??99;return p!==g?p-g:new Date(c.createdAt).getTime()-new Date(a.createdAt).getTime()});break;case "open-first":n.sort((a,c)=>{let p=a.status==="open"?0:1,g=c.status==="open"?0:1;return p!==g?p-g:new Date(c.createdAt).getTime()-new Date(a.createdAt).getTime()});break}return n}function lg(o){try{return new URL(o).pathname}catch{return o}}function cg(o,s){if(o.length<=s)return o;let n="\u2026",a=Math.floor((s-1)/2);return o.slice(0,a)+n+o.slice(-a)}function Ia(o){let s=new Map;for(let a of o){let c=lg(a.url),p=s.get(c);p?p.push(a):s.set(c,[a]);}return new Map([...s.entries()].sort((a,c)=>c[1].length-a[1].length))}function ka(o,s,n){let a=C("div",{class:"sp-group-header"});a.setAttribute("role","button"),a.setAttribute("tabindex","0"),a.setAttribute("aria-expanded","true"),a.style.borderBottomColor=n.border;let c=C("span",{class:"sp-group-header-chevron"});c.appendChild(_(ag)),a.appendChild(c);let p=C("span",{class:"sp-group-header-icon"});p.appendChild(_(Ea)),a.appendChild(p);let g=C("span",{class:"sp-group-header-path"}),f=cg(o,40);U(g,f),o.length>40&&(g.title=o),a.appendChild(g);let m=C("span",{class:"sp-group-header-count"});m.style.background=n.accentLight,m.style.color=n.accent,U(m,String(s)),a.appendChild(m);let Q=()=>{let b=a.getAttribute("aria-expanded")==="true";a.setAttribute("aria-expanded",String(!b)),a.classList.toggle("sp-group-header--collapsed",b);let F=a.nextElementSibling;F?.classList.contains("sp-group-content")&&F.classList.toggle("sp-group-content--collapsed",b);};return a.addEventListener("click",Q),a.addEventListener("keydown",b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),Q());}),a}var og,Ea,ag,xa,_r,La,pn=gA(()=>{UA();og='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M11 5h10"/><path d="M11 9h7"/><path d="M11 13h4"/><path d="M3 17l3 3 3-3"/><path d="M6 18V4"/></svg>',Ea='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/><polyline points="10 9 9 9 8 9"/></svg>',ag='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"/></svg>',xa={question:0,change:1,bug:2,other:3};_r=class{element;_sortMode="newest";_groupByPage=false;menuEl=null;sortBtn;groupToggle;t;colors;onChange;outsideClickHandler=null;constructor(s,n,a){this.colors=s,this.onChange=n,this.t=a,this.element=C("div",{class:"sp-sort-controls"}),this.sortBtn=document.createElement("button"),this.sortBtn.className="sp-sort-btn",this.sortBtn.setAttribute("aria-haspopup","listbox"),this.sortBtn.setAttribute("aria-expanded","false"),this.sortBtn.setAttribute("aria-label",this.t("sort.label"));let c=_(og);this.sortBtn.appendChild(c);let p=C("span",{class:"sp-sort-btn-label"});U(p,this.t("sort.newest")),this.sortBtn.appendChild(p),this.sortBtn.addEventListener("click",m=>{m.stopPropagation(),this.toggleMenu();}),this.groupToggle=document.createElement("button"),this.groupToggle.className="sp-group-toggle",this.groupToggle.setAttribute("aria-pressed","false");let g=_(Ea);this.groupToggle.appendChild(g);let f=C("span",{class:"sp-group-toggle-label"});U(f,this.t("group.byPage")),this.groupToggle.appendChild(f),this.groupToggle.addEventListener("click",()=>{this._groupByPage=!this._groupByPage,this.groupToggle.classList.toggle("sp-group-toggle--active",this._groupByPage),this.groupToggle.setAttribute("aria-pressed",String(this._groupByPage)),this.onChange();}),this.element.appendChild(this.sortBtn),this.element.appendChild(this.groupToggle);}get sortMode(){return this._sortMode}get groupByPage(){return this._groupByPage}toggleMenu(){if(this.menuEl){this.closeMenu();return}this.openMenu();}openMenu(){this.menuEl=C("div",{class:"sp-sort-menu"}),this.menuEl.setAttribute("role","listbox"),this.menuEl.setAttribute("aria-label",this.t("sort.label")),this.sortBtn.setAttribute("aria-expanded","true");let s=[{mode:"newest",label:this.t("sort.newest")},{mode:"oldest",label:this.t("sort.oldest")},{mode:"by-type",label:this.t("sort.byType")},{mode:"open-first",label:this.t("sort.openFirst")}];for(let n of s){let a=document.createElement("button");a.className=`sp-sort-option${n.mode===this._sortMode?" sp-sort-option--active":""}`,a.setAttribute("role","option"),a.setAttribute("aria-selected",String(n.mode===this._sortMode)),n.mode===this._sortMode&&(a.style.background=this.colors.accentLight,a.style.color=this.colors.accent),U(a,n.label),a.addEventListener("click",c=>{c.stopPropagation(),this._sortMode=n.mode,this.updateSortLabel(),this.closeMenu(),this.onChange();}),this.menuEl.appendChild(a);}this.element.appendChild(this.menuEl),requestAnimationFrame(()=>{this.outsideClickHandler=n=>{this.menuEl&&!this.element.contains(n.target)&&this.closeMenu();},document.addEventListener("click",this.outsideClickHandler,true);}),this.menuEl.addEventListener("keydown",n=>{n.key==="Escape"&&(this.closeMenu(),this.sortBtn.focus());});}closeMenu(){this.menuEl&&(this.menuEl.remove(),this.menuEl=null),this.sortBtn.setAttribute("aria-expanded","false"),this.outsideClickHandler&&(document.removeEventListener("click",this.outsideClickHandler,true),this.outsideClickHandler=null);}updateSortLabel(){let s={newest:this.t("sort.newest"),oldest:this.t("sort.oldest"),"by-type":this.t("sort.byType"),"open-first":this.t("sort.openFirst")},n=this.sortBtn.querySelector(".sp-sort-btn-label");n&&U(n,s[this._sortMode]);}destroy(){this.closeMenu();}},La=`
1082
1140
  /* ============================
1083
1141
  Sort Controls Container
1084
1142
  ============================ */
@@ -1383,7 +1441,7 @@
1383
1441
  transition: none;
1384
1442
  }
1385
1443
  }
1386
- `;var ln={"stats.open":"Open","stats.resolved":"Resolved","stats.bugs":"Bugs","stats.progress":"{percent}% resolved"},pn={"stats.open":"Ouverts","stats.resolved":"R\xE9solus","stats.bugs":"Bugs","stats.progress":"{percent}% r\xE9solus"},Qt=`
1444
+ `;});var Sa,Vr,un=gA(()=>{UA();Sa=`
1387
1445
  .sp-stats-bar {
1388
1446
  display: flex;
1389
1447
  flex-direction: column;
@@ -1466,7 +1524,7 @@
1466
1524
  min-width: 64px;
1467
1525
  text-align: right;
1468
1526
  }
1469
- `,ge=class{constructor(e,t){this.colors=e;this.i18n=t==="fr"?pn:ln,this.element=l("div",{class:"sp-stats-bar"}),this.element.setAttribute("aria-label","Feedback statistics"),this.element.hidden=!0;let s=l("div",{class:"sp-stats-row"}),o=l("div",{class:"sp-stats-item"}),i=l("span",{class:"sp-stats-dot"});i.style.background="#22c55e",this.valueOpen=l("span",{class:"sp-stats-value"}),c(this.valueOpen,"0");let r=l("span",{class:"sp-stats-label"});c(r,this.i18n["stats.open"]),o.appendChild(i),o.appendChild(this.valueOpen),o.appendChild(r);let a=l("div",{class:"sp-stats-item"}),p=l("span",{class:"sp-stats-dot"});p.style.background="#9ca3af",this.valueResolved=l("span",{class:"sp-stats-value"}),c(this.valueResolved,"0");let d=l("span",{class:"sp-stats-label"});c(d,this.i18n["stats.resolved"]),a.appendChild(p),a.appendChild(this.valueResolved),a.appendChild(d);let u=l("div",{class:"sp-stats-item"}),h=l("span",{class:"sp-stats-dot"});h.style.background=this.colors.typeBug,this.valueBugs=l("span",{class:"sp-stats-value"}),c(this.valueBugs,"0");let b=l("span",{class:"sp-stats-label"});c(b,this.i18n["stats.bugs"]),u.appendChild(h),u.appendChild(this.valueBugs),u.appendChild(b),s.appendChild(o),s.appendChild(a),s.appendChild(u);let f=l("div",{class:"sp-stats-progress"}),k=l("div",{class:"sp-stats-progress-track"});this.progressFill=l("div",{class:"sp-stats-progress-fill"}),k.appendChild(this.progressFill),this.progressLabel=l("span",{class:"sp-stats-progress-label"}),c(this.progressLabel,""),f.appendChild(k),f.appendChild(this.progressLabel),this.element.appendChild(s),this.element.appendChild(f)}colors;element;valueOpen;valueResolved;valueBugs;progressFill;progressLabel;i18n;update(e,t){if(t===0){this.element.hidden=!0;return}this.element.hidden=!1;let s=0,o=0,i=0;for(let d of e)d.status==="open"&&s++,d.status==="resolved"&&o++,d.type==="bug"&&i++;c(this.valueOpen,String(s)),c(this.valueResolved,String(o)),c(this.valueBugs,String(i));let r=e.length,a=r>0?Math.round(o/r*100):0;requestAnimationFrame(()=>{this.progressFill.style.width=`${a}%`});let p=this.i18n["stats.progress"].replace("{percent}",String(a));c(this.progressLabel,p)}};var dn='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="M6 8h.01"/><path d="M10 8h.01"/><path d="M14 8h.01"/><path d="M18 8h.01"/><path d="M6 12h.01"/><path d="M18 12h.01"/><path d="M8 16h8"/></svg>',je={"shortcuts.title":"Keyboard shortcuts","shortcuts.navigate":"Navigate feedbacks","shortcuts.resolve":"Resolve / Reopen","shortcuts.delete":"Delete","shortcuts.search":"Focus search","shortcuts.select":"Toggle selection","shortcuts.help":"Show shortcuts","shortcuts.close":"Close","shortcuts.hint":"Keyboard shortcuts"},Jt={"shortcuts.title":"Raccourcis clavier","shortcuts.navigate":"Naviguer les feedbacks","shortcuts.resolve":"R\xE9soudre / Rouvrir","shortcuts.delete":"Supprimer","shortcuts.search":"Rechercher","shortcuts.select":"S\xE9lectionner","shortcuts.help":"Raccourcis","shortcuts.close":"Fermer","shortcuts.hint":"Raccourcis clavier"};function ze(n){let e=n.querySelectorAll(".sp-card");for(let t=0;t<e.length;t++)if(e[t]?.classList.contains("sp-card--focused"))return t;return-1}function Zt(n,e){let t=n.querySelectorAll(".sp-card");if(t.length===0)return;for(let i of t)i.classList.remove("sp-card--focused");let s=Math.max(0,Math.min(e,t.length-1)),o=t[s];o&&(o.classList.add("sp-card--focused"),o.scrollIntoView({block:"nearest",behavior:"smooth"}),o.focus({preventScroll:!0}))}var cn=[{keys:["J","K"],label:"shortcuts.navigate"},{keys:["R"],label:"shortcuts.resolve"},{keys:["D"],label:"shortcuts.delete"},{keys:["F","/"],label:"shortcuts.search"},{keys:["X"],label:"shortcuts.select"},{keys:["?"],label:"shortcuts.help"},{keys:["Esc"],label:"shortcuts.close"}],es=`
1527
+ `,Vr=class{constructor(s,n){this.colors=s;this.t=n,this.element=C("div",{class:"sp-stats-bar"}),this.element.setAttribute("aria-label","Feedback statistics"),this.element.hidden=true;let a=C("div",{class:"sp-stats-row"}),c=C("div",{class:"sp-stats-item"}),p=C("span",{class:"sp-stats-dot"});p.style.background="#22c55e",this.valueOpen=C("span",{class:"sp-stats-value"}),U(this.valueOpen,"0");let g=C("span",{class:"sp-stats-label"});U(g,this.t("stats.open")),c.appendChild(p),c.appendChild(this.valueOpen),c.appendChild(g);let f=C("div",{class:"sp-stats-item"}),m=C("span",{class:"sp-stats-dot"});m.style.background="#9ca3af",this.valueResolved=C("span",{class:"sp-stats-value"}),U(this.valueResolved,"0");let Q=C("span",{class:"sp-stats-label"});U(Q,this.t("stats.resolved")),f.appendChild(m),f.appendChild(this.valueResolved),f.appendChild(Q);let b=C("div",{class:"sp-stats-item"}),F=C("span",{class:"sp-stats-dot"});F.style.background=this.colors.typeBug,this.valueBugs=C("span",{class:"sp-stats-value"}),U(this.valueBugs,"0");let I=C("span",{class:"sp-stats-label"});U(I,this.t("stats.bugs")),b.appendChild(F),b.appendChild(this.valueBugs),b.appendChild(I),a.appendChild(c),a.appendChild(f),a.appendChild(b);let M=C("div",{class:"sp-stats-progress"}),O=C("div",{class:"sp-stats-progress-track"});this.progressFill=C("div",{class:"sp-stats-progress-fill"}),O.appendChild(this.progressFill),this.progressLabel=C("span",{class:"sp-stats-progress-label"}),U(this.progressLabel,""),M.appendChild(O),M.appendChild(this.progressLabel),this.element.appendChild(a),this.element.appendChild(M);}colors;element;valueOpen;valueResolved;valueBugs;progressFill;progressLabel;t;update(s,n){if(n===0){this.element.hidden=true;return}this.element.hidden=false;let a=0,c=0,p=0;for(let Q of s)Q.status==="open"&&a++,Q.status==="resolved"&&c++,Q.type==="bug"&&p++;U(this.valueOpen,String(a)),U(this.valueResolved,String(c)),U(this.valueBugs,String(p));let g=s.length,f=g>0?Math.round(c/g*100):0;requestAnimationFrame(()=>{this.progressFill.style.width=`${f}%`;});let m=this.t("stats.progress").replace("{percent}",String(f));U(this.progressLabel,m);}};});function hn(o){let s=o.querySelectorAll(".sp-card");for(let n=0;n<s.length;n++)if(s[n]?.classList.contains("sp-card--focused"))return n;return -1}function Ta(o,s){let n=o.querySelectorAll(".sp-card");if(n.length===0)return;for(let p of n)p.classList.remove("sp-card--focused");let a=Math.max(0,Math.min(s,n.length-1)),c=n[a];c&&(c.classList.add("sp-card--focused"),c.scrollIntoView({block:"nearest",behavior:"smooth"}),c.focus({preventScroll:true}));}var dg,pg,Ka,ug,Xr,gn=gA(()=>{UA();dg='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="M6 8h.01"/><path d="M10 8h.01"/><path d="M14 8h.01"/><path d="M18 8h.01"/><path d="M6 12h.01"/><path d="M18 12h.01"/><path d="M8 16h8"/></svg>';pg=[{keys:["J","K"],label:"shortcuts.navigate"},{keys:["R"],label:"shortcuts.resolve"},{keys:["D"],label:"shortcuts.delete"},{keys:["F","/"],label:"shortcuts.search"},{keys:["X"],label:"shortcuts.select"},{keys:["?"],label:"shortcuts.help"},{keys:["Esc"],label:"shortcuts.close"}],Ka=`
1470
1528
  /* ---- Help overlay backdrop ---- */
1471
1529
 
1472
1530
  .sp-shortcuts-overlay {
@@ -1693,7 +1751,141 @@
1693
1751
  transition-duration: 0.01ms !important;
1694
1752
  }
1695
1753
  }
1696
- `,un='<svg 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>',me=class{constructor(e,t,s=je){this.i18n=s;this.keyMap=new Map([["j",()=>t.onNavigate("down")],["k",()=>t.onNavigate("up")],["r",()=>t.onResolve()],["d",()=>t.onDelete()],["f",()=>t.onFocusSearch()],["/",()=>t.onFocusSearch()],["x",()=>t.onToggleSelect()],["?",()=>this.toggleHelp()]]),this.helpOverlay=this.buildOverlay(),this.hintButton=this.buildHintButton(),this.boundHandler=o=>this.handleKeydown(o)}i18n;helpOverlay;hintButton;keyMap;boundHandler;shadowRoot=null;enabled=!1;helpVisible=!1;destroyed=!1;enable(e){if(this.destroyed||this.enabled)return;e&&(this.shadowRoot=e),(this.shadowRoot??document).addEventListener("keydown",this.boundHandler),this.enabled=!0}disable(){if(!this.enabled)return;(this.shadowRoot??document).removeEventListener("keydown",this.boundHandler),this.enabled=!1,this.helpVisible&&this.hideHelp()}toggleHelp(){this.helpVisible?this.hideHelp():this.showHelp()}destroy(){this.destroyed||(this.disable(),this.helpOverlay.remove(),this.hintButton.remove(),this.destroyed=!0)}handleKeydown(e){if(e.key==="Escape"){this.helpVisible&&(e.preventDefault(),e.stopPropagation(),this.hideHelp());return}if(this.helpVisible)return;let t=e.composedPath()[0];if(t){let o=t.tagName?.toLowerCase();if(o==="input"||o==="textarea"||o==="select"||t.isContentEditable)return}if(e.ctrlKey||e.altKey||e.metaKey)return;let s=this.keyMap.get(e.key);s&&(e.preventDefault(),e.stopPropagation(),s())}showHelp(){this.helpVisible=!0,this.helpOverlay.classList.add("sp-shortcuts-overlay--visible"),this.helpOverlay.querySelector(".sp-shortcuts-close")?.focus()}hideHelp(){this.helpVisible=!1,this.helpOverlay.classList.remove("sp-shortcuts-overlay--visible")}buildOverlay(){let e=l("div",{class:"sp-shortcuts-overlay"});e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),e.setAttribute("aria-label",this.i18n["shortcuts.title"]),e.addEventListener("click",a=>{a.target===e&&this.hideHelp()});let t=l("div",{class:"sp-shortcuts-card"}),s=l("div",{class:"sp-shortcuts-title"});s.appendChild(v(dn));let o=l("span");c(o,this.i18n["shortcuts.title"]),s.appendChild(o),t.appendChild(s);let i=document.createElement("button");i.className="sp-shortcuts-close",i.setAttribute("aria-label",this.i18n["shortcuts.close"]),i.appendChild(v(un)),i.addEventListener("click",()=>this.hideHelp()),t.appendChild(i);let r=l("div",{class:"sp-shortcuts-grid"});for(let a of cn){let p=l("div",{class:"sp-shortcuts-row"}),d=l("div",{class:"sp-shortcuts-keys"});a.keys.forEach((h,b)=>{if(b>0){let k=l("span",{class:"sp-shortcuts-separator"});c(k,"/"),d.appendChild(k)}let f=l("span",{class:"sp-kbd"});c(f,h),d.appendChild(f)});let u=l("span",{class:"sp-shortcuts-desc"});c(u,this.i18n[a.label]),p.appendChild(d),p.appendChild(u),r.appendChild(p)}return t.appendChild(r),e.appendChild(t),e}buildHintButton(){let e=document.createElement("button");return e.className="sp-shortcuts-hint",e.setAttribute("aria-label",this.i18n["shortcuts.hint"]),c(e,"?"),e.addEventListener("click",t=>{t.stopPropagation(),this.toggleHelp()}),e}};var fe=class{constructor(e,t,s,o,i,r,a,p){this.colors=t;this.bus=s;this.client=o;this.projectName=i;this.markers=r;this.t=a;this.locale=p;this.shadowRoot=e,this.bulkI18n=p==="fr"?_e:De,this.root=l("div",{class:"sp-panel"}),this.root.setAttribute("role","complementary"),this.root.setAttribute("aria-label",this.t("panel.ariaLabel")),this.root.setAttribute("aria-hidden","true");let d=l("div",{class:"sp-panel-header"}),u=l("span",{class:"sp-panel-title"});c(u,this.t("panel.title")),this.closeBtn=document.createElement("button"),this.closeBtn.className="sp-panel-close",this.closeBtn.setAttribute("aria-label",this.t("panel.close")),this.closeBtn.appendChild(v(G)),this.closeBtn.addEventListener("click",()=>this.close()),this.deleteAllBtn=document.createElement("button"),this.deleteAllBtn.className="sp-btn-delete-all",this.deleteAllBtn.setAttribute("aria-label",this.t("panel.deleteAll")),this.deleteAllBtn.appendChild(v(Be));let h=document.createElement("span");c(h,` ${this.t("panel.deleteAll")}`),this.deleteAllBtn.appendChild(h),this.deleteAllBtn.addEventListener("click",()=>this.confirmDeleteAll()),this.exportBtn=new de(t,()=>this.feedbacks),p==="fr"&&this.exportBtn.setLabels(Dt);let b=l("div",{class:"sp-panel-header-right"});b.appendChild(this.exportBtn.element),b.appendChild(this.deleteAllBtn),b.appendChild(this.closeBtn),d.appendChild(u),d.appendChild(b),this.stats=new ge(t,p);let f=l("div",{class:"sp-filters"}),k=l("div",{class:"sp-search-wrap"}),w=v(pt);w.setAttribute("class","sp-search-icon"),this.searchInput=document.createElement("input"),this.searchInput.type="text",this.searchInput.className="sp-search",this.searchInput.placeholder=this.t("panel.search"),this.searchInput.setAttribute("aria-label",this.t("panel.searchAria")),this.searchInput.addEventListener("input",()=>{this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>this.loadFeedbacks().catch(()=>{}),200)}),k.appendChild(w),k.appendChild(this.searchInput);let E=l("div",{class:"sp-filter-bar"});E.appendChild(this.buildTypeDropdown()),E.appendChild(this.buildStatusSegmented()),this.sortControls=new be(t,()=>this.renderList(),p),f.appendChild(k),f.appendChild(E),f.appendChild(this.sortControls.element),this.listContainer=l("div",{class:"sp-list"}),this.listContainer.setAttribute("role","list"),this.listContainer.setAttribute("aria-label",this.t("panel.feedbackList")),this.bulk=new ue(t,{onResolve:g=>this.bulkResolve(g),onDelete:g=>this.bulkDelete(g)},p),this.bulk.setListContainer(this.listContainer),this.detail=new he(t,{onBack:()=>this.detail.hide(),onResolve:async g=>{let x=g.status!=="resolved";await this.client.resolveFeedback(g.id,x),await this.loadFeedbacks(),this.detail.hide()},onDelete:async g=>{await this.client.deleteFeedback(g.id),this.bus.emit("feedback:deleted",g.id),await this.loadFeedbacks(),this.detail.hide()},onGoToAnnotation:g=>{if(g.annotations.length>0){let x=g.annotations[0];if(!x)return;window.scrollTo({left:x.scrollX,top:x.scrollY,behavior:"smooth"}),this.markers.pinHighlight(g)}}},p);let C=p==="fr"?Jt:je;this.shortcuts=new me(t,{onNavigate:g=>{let x=ze(this.listContainer);Zt(this.listContainer,g==="down"?x+1:x-1)},onResolve:()=>{let g=this.getFocusedFeedback();if(g&&!this.pendingMutations.has(g.id)){let y=this.listContainer.querySelector(`[data-feedback-id="${CSS.escape(g.id)}"]`)?.querySelector('[data-action="resolve"]');y&&this.toggleResolve(g,y).catch(()=>{})}},onDelete:()=>{let g=this.getFocusedFeedback();if(g&&!this.pendingMutations.has(g.id)){let y=this.listContainer.querySelector(`[data-feedback-id="${CSS.escape(g.id)}"]`)?.querySelector('[data-action="delete"]');y&&this.deleteFeedback(g,y).catch(()=>{})}},onFocusSearch:()=>this.searchInput.focus(),onToggleSelect:()=>{let g=this.getFocusedFeedback();g&&this.bulk.toggle(g.id)}},C),this.root.appendChild(d),this.root.appendChild(this.stats.element),this.root.appendChild(f),this.root.appendChild(this.listContainer),this.root.appendChild(this.bulk.barElement),this.root.appendChild(this.detail.element),this.root.appendChild(this.shortcuts.helpOverlay),this.root.appendChild(this.shortcuts.hintButton),e.appendChild(this.root),this.onListClick=g=>{let x=g.target;if(x.closest(".sp-bulk-checkbox"))return;let y=x.closest("[data-action]");if(y){g.stopPropagation();let T=y.closest(".sp-card");if(!T)return;let A=T.dataset.feedbackId,S=this.feedbacks.find(B=>B.id===A);if(!S)return;let L=y.dataset.action;if(L==="expand"){let B=T.querySelector(".sp-card-message");if(!B)return;let K=B.classList.toggle("sp-card-message--expanded");c(y,K?this.t("panel.showLess"):this.t("panel.showMore")),y.setAttribute("aria-expanded",String(K))}else if(L==="resolve"){if(this.pendingMutations.has(S.id))return;let B=y;this.toggleResolve(S,B).catch(()=>{})}else if(L==="delete"){if(this.pendingMutations.has(S.id))return;let B=y;this.deleteFeedback(S,B).catch(()=>{})}return}let m=x.closest(".sp-card");if(m){let T=m.dataset.feedbackId,A=this.feedbacks.find(S=>S.id===T);if(A){let S=this.feedbacks.indexOf(A)+1;this.detail.show(A,S)}}},this.listContainer.addEventListener("click",this.onListClick),this.onListKeydown=g=>{let x=g;if(x.key!=="Enter"&&x.key!==" ")return;let y=x.target,m=y.closest(".sp-card");if(!m||y!==m)return;x.preventDefault();let T=m.dataset.feedbackId,A=this.feedbacks.find(S=>S.id===T);if(A){let S=this.feedbacks.indexOf(A)+1;this.detail.show(A,S)}},this.listContainer.addEventListener("keydown",this.onListKeydown),this.onListMouseover=g=>{let y=g.target.closest(".sp-card");if(!y)return;let m=y.dataset.feedbackId;m&&this.markers.highlight(m)},this.listContainer.addEventListener("mouseover",this.onListMouseover),this.onListMouseout=g=>{let x=g.relatedTarget;x&&this.listContainer.contains(x)||this.markers.highlight("")},this.listContainer.addEventListener("mouseout",this.onListMouseout),this.bus.on("panel:toggle",g=>{g?this.open():this.close()}),e.addEventListener("keydown",g=>{let x=g;if(x.key==="Escape"&&this.isOpen){if(this.detail.isVisible){this.detail.hide();return}this.close();return}if(x.key==="Tab"&&this.isOpen){let y=this.root.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(y.length===0)return;let m=y[0],T=y[y.length-1];if(!m||!T)return;let A=e.activeElement;x.shiftKey&&A===m?(x.preventDefault(),T.focus()):!x.shiftKey&&A===T&&(x.preventDefault(),m.focus())}}),this.onMarkerClick=(g=>{this.scrollToFeedback(g.detail.feedbackId)}),document.addEventListener("sp-marker-click",this.onMarkerClick)}colors;bus;client;projectName;markers;t;locale;root;listContainer;searchInput;closeBtn;deleteAllBtn;activeFilters=new Set(["all"]);activeStatusFilter="all";typeDropdownBtn;typeDropdownContainer;typeDropdownMenu=null;typeDropdownOutsideHandler=null;statusSegmented;typeOptions;statusOptions;feedbacks=[];currentPage=1;totalFeedbacks=0;isLoadingMore=!1;isOpen=!1;searchTimeout=null;loadController=null;pendingMutations=new Set;stats;sortControls;bulk;exportBtn;shortcuts;detail;shadowRoot;bulkI18n;onMarkerClick;onListClick;onListKeydown;onListMouseover;onListMouseout;async open(){this.isOpen||(this.isOpen=!0,this.root.classList.add("sp-panel--open"),this.root.setAttribute("aria-hidden","false"),this.bus.emit("open"),this.shortcuts.enable(this.shadowRoot),await this.loadFeedbacks(),requestAnimationFrame(()=>{this.searchInput?this.searchInput.focus():this.closeBtn.focus()}))}close(){if(!this.isOpen)return;this.isOpen=!1,this.root.classList.remove("sp-panel--open"),this.root.setAttribute("aria-hidden","true"),this.bus.emit("close"),this.shortcuts.disable(),this.detail.hide(),this.root.getRootNode().querySelector(".sp-fab")?.focus()}showLoading(){this.listContainer.replaceChildren();let e=l("div",{class:"sp-loading"});e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-label",this.t("panel.loading"));let t=l("div",{class:"sp-spinner"});e.appendChild(t),this.listContainer.appendChild(e)}showError(){this.listContainer.replaceChildren();let e=l("div",{class:"sp-empty"});e.setAttribute("role","status"),e.setAttribute("aria-live","polite");let t=l("div",{class:"sp-empty-text"});c(t,this.t("panel.loadError"));let s=document.createElement("button");s.className="sp-btn-ghost",s.style.marginTop="8px",c(s,this.t("panel.retry")),s.addEventListener("click",()=>this.loadFeedbacks().catch(()=>{})),e.appendChild(t),e.appendChild(s),this.listContainer.appendChild(e)}async loadFeedbacks(){this.loadController?.abort(),this.loadController=new AbortController;let{signal:e}=this.loadController;this.currentPage=1;let t=this.searchInput.value.trim()||void 0,s=this.activeFilters.has("all")?void 0:Array.from(this.activeFilters)[0],o=this.activeStatusFilter==="all"?void 0:this.activeStatusFilter,i={page:1,limit:20};s&&(i.type=s),o&&(i.status=o),t&&(i.search=t);let r=this.feedbacks.length>0;r||this.showLoading();try{let{feedbacks:a,total:p}=await this.client.getFeedbacks(this.projectName,i);if(e.aborted)return;this.feedbacks=a,this.totalFeedbacks=p,this.stats.update(a,p),this.bulk.reset(),this.renderList(),this.markers.render(a)}catch(a){if(e.aborted)return;r||this.showError(),this.bus.emit("feedback:error",a instanceof Error?a:new Error(String(a)))}}async loadMoreFeedbacks(){if(this.isLoadingMore)return;this.isLoadingMore=!0;let e=this.loadController,t=this.currentPage+1,s=this.searchInput.value.trim()||void 0,o=this.activeFilters.has("all")?void 0:Array.from(this.activeFilters)[0],i=this.activeStatusFilter==="all"?void 0:this.activeStatusFilter,r={page:t,limit:20};o&&(r.type=o),i&&(r.status=i),s&&(r.search=s);let a=this.listContainer.querySelector(".sp-btn-load-more"),p;a&&(p=this.setButtonLoading(a));try{let{feedbacks:d,total:u}=await this.client.getFeedbacks(this.projectName,r);if(e!==this.loadController)return;this.currentPage=t,this.totalFeedbacks=u,this.feedbacks=[...this.feedbacks,...d],this.stats.update(this.feedbacks,u),this.renderList(),this.markers.render(this.feedbacks)}catch(d){p&&p(),this.bus.emit("feedback:error",d instanceof Error?d:new Error(String(d)))}finally{this.isLoadingMore=!1}}renderList(){if(this.listContainer.replaceChildren(),this.feedbacks.length===0){let i=l("div",{class:"sp-empty"});i.setAttribute("role","status"),i.setAttribute("aria-live","polite");let r=l("div",{class:"sp-empty-text"});c(r,this.t("panel.empty")),i.appendChild(r),this.listContainer.appendChild(i);return}let e=Wt(this.feedbacks,this.sortControls.sortMode),t=e.map(i=>i.id),s=this.bulk.createSelectAllBar(t,this.bulkI18n["bulk.selectAll"]);if(this.listContainer.appendChild(s),this.sortControls.groupByPage){let i=Xt(e),r=0;for(let[a,p]of i){let d=Vt(a,p.length,this.colors);this.listContainer.appendChild(d);let u=l("div",{class:"sp-group-content"});for(let h of p){let b=this.createCard(h,r+1);b.style.setProperty("--sp-card-i",String(r)),u.appendChild(b),r++}this.listContainer.appendChild(u)}}else e.forEach((i,r)=>{let a=this.createCard(i,r+1);a.style.setProperty("--sp-card-i",String(r)),this.listContainer.appendChild(a)});let o=this.totalFeedbacks-this.feedbacks.length;if(o>0){let i=l("div",{class:"sp-load-more-wrap"}),r=document.createElement("button");r.className="sp-btn-ghost sp-btn-load-more",c(r,this.t("panel.loadMore").replace("{remaining}",String(o))),r.addEventListener("click",()=>this.loadMoreFeedbacks().catch(()=>{})),i.appendChild(r),this.listContainer.appendChild(i)}}createCard(e,t){let s=e.status==="resolved",o=M(e.type,this.colors),i=l("div",{class:`sp-card ${s?"sp-card--resolved":""}`});i.setAttribute("role","listitem"),i.setAttribute("tabindex","0"),i.setAttribute("aria-label",`Feedback #${t}: ${N(e.type,this.t)} \u2014 ${e.message.slice(0,80)}`),i.dataset.feedbackId=e.id;let r=l("div",{class:"sp-card-bar"});r.style.background=s?"#9ca3af":o;let a=l("div",{class:"sp-card-body"}),p=l("div",{class:"sp-card-header"}),d=this.bulk.createCheckbox(e.id);p.appendChild(d);let u=l("span",{class:"sp-card-number"});c(u,`#${t}`);let h=l("span",{class:"sp-badge"}),b=P(e.type,this.colors);h.style.background=b,h.style.color=o,c(h,N(e.type,this.t));let f=l("span",{class:"sp-card-date"});c(f,V(e.createdAt,this.locale)),p.appendChild(u),p.appendChild(h),p.appendChild(f);let k=l("div",{class:"sp-card-message"});c(k,e.message);let w=document.createElement("button");w.className="sp-card-expand",w.dataset.action="expand",c(w,this.t("panel.showMore")),w.style.display="none",w.setAttribute("aria-expanded","false"),requestAnimationFrame(()=>{k.scrollHeight>k.clientHeight&&(w.style.display="block")});let E=l("div",{class:"sp-card-footer"}),C=document.createElement("button");if(C.className="sp-btn-resolve",C.dataset.action="resolve",s){C.appendChild(v(ut));let y=document.createElement("span");c(y,` ${this.t("panel.reopen")}`),C.appendChild(y)}else{C.appendChild(v(Q));let y=document.createElement("span");c(y,` ${this.t("panel.resolve")}`),C.appendChild(y)}let g=document.createElement("button");g.className="sp-btn-delete",g.dataset.action="delete",g.appendChild(v(Be));let x=document.createElement("span");return c(x,` ${this.t("panel.delete")}`),g.appendChild(x),E.appendChild(C),E.appendChild(g),a.appendChild(p),a.appendChild(k),a.appendChild(w),a.appendChild(E),i.appendChild(r),i.appendChild(a),i}async bulkResolve(e){try{await Promise.all(e.map(t=>this.client.resolveFeedback(t,!0))),await this.loadFeedbacks()}catch(t){throw this.bus.emit("feedback:error",t instanceof Error?t:new Error(String(t))),t}}async bulkDelete(e){try{await Promise.all(e.map(t=>this.client.deleteFeedback(t)));for(let t of e)this.bus.emit("feedback:deleted",t);await this.loadFeedbacks()}catch(t){throw this.bus.emit("feedback:error",t instanceof Error?t:new Error(String(t))),t}}async confirmDeleteAll(){if(await this.showConfirmDialog(this.t("panel.deleteAllConfirmTitle"),this.t("panel.deleteAllConfirmMessage"))){this.deleteAllBtn.disabled=!0;try{await this.client.deleteAllFeedbacks(this.projectName),this.bus.emit("feedback:all-deleted"),await this.loadFeedbacks()}catch(t){this.bus.emit("feedback:error",t instanceof Error?t:new Error(String(t)))}finally{this.deleteAllBtn.disabled=!1}}}showConfirmDialog(e,t){return new Promise(s=>{let o=l("div",{class:"sp-confirm-backdrop"}),i=`sp-confirm-title-${Date.now()}`,r=`sp-confirm-msg-${Date.now()}`,a=l("div",{class:"sp-confirm-dialog"});a.setAttribute("role","alertdialog"),a.setAttribute("aria-modal","true"),a.setAttribute("aria-labelledby",i),a.setAttribute("aria-describedby",r);let p=l("div",{class:"sp-confirm-title"});p.id=i,c(p,e);let d=l("div",{class:"sp-confirm-message"});d.id=r,c(d,t);let u=l("div",{class:"sp-confirm-actions"}),h=document.createElement("button");h.type="button",h.className="sp-btn-ghost",c(h,this.t("panel.cancel"));let b=document.createElement("button");b.type="button",b.className="sp-btn-danger",c(b,this.t("panel.confirmDelete"));let f=!1,k=E=>{f||(f=!0,o.removeEventListener("keydown",w),o.style.opacity="0",a.style.transform="translateY(8px) scale(0.97)",setTimeout(()=>{o.remove(),s(E)},200))},w=E=>{let C=E;if(C.key==="Escape"){k(!1);return}C.key==="Tab"&&(C.preventDefault(),o.getRootNode().activeElement===h?b.focus():h.focus())};o.addEventListener("keydown",w),h.addEventListener("click",()=>k(!1)),b.addEventListener("click",()=>k(!0)),o.addEventListener("click",E=>{E.target===o&&k(!1)}),u.appendChild(h),u.appendChild(b),a.appendChild(p),a.appendChild(d),a.appendChild(u),o.appendChild(a),this.root.getRootNode()instanceof ShadowRoot?this.root.getRootNode().appendChild(o):this.root.appendChild(o),requestAnimationFrame(()=>{o.style.opacity="1",a.style.transform="translateY(0) scale(1)",h.focus()})})}setButtonLoading(e){let t=Array.from(e.childNodes).map(s=>s.cloneNode(!0));return e.disabled=!0,e.replaceChildren(l("div",{class:"sp-spinner sp-spinner--sm"})),()=>{e.replaceChildren(...t),e.disabled=!1}}async deleteFeedback(e,t){this.pendingMutations.add(e.id);let s=this.setButtonLoading(t);try{await this.client.deleteFeedback(e.id),this.bus.emit("feedback:deleted",e.id),await this.loadFeedbacks()}catch(o){s(),this.bus.emit("feedback:error",o instanceof Error?o:new Error(String(o)))}finally{this.pendingMutations.delete(e.id)}}async toggleResolve(e,t){this.pendingMutations.add(e.id);let s=this.setButtonLoading(t);try{let o=e.status!=="resolved";await this.client.resolveFeedback(e.id,o),await this.loadFeedbacks()}catch(o){s(),this.bus.emit("feedback:error",o instanceof Error?o:new Error(String(o)))}finally{this.pendingMutations.delete(e.id)}}buildTypeDropdown(){return this.typeOptions=[{value:"all",label:this.t("panel.filterAll"),icon:Me,color:this.colors.accent,bg:this.colors.accentLight},{value:"question",label:this.t("type.question"),icon:J,color:this.colors.typeQuestion,bg:this.colors.typeQuestionBg},{value:"change",label:this.t("type.change"),icon:Z,color:this.colors.typeChange,bg:this.colors.typeChangeBg},{value:"bug",label:this.t("type.bug"),icon:ee,color:this.colors.typeBug,bg:this.colors.typeBugBg},{value:"other",label:this.t("type.other"),icon:te,color:this.colors.typeOther,bg:this.colors.typeOtherBg}],this.typeDropdownContainer=l("div",{class:"sp-filter-dropdown"}),this.typeDropdownBtn=document.createElement("button"),this.typeDropdownBtn.type="button",this.typeDropdownBtn.className="sp-filter-dropdown-btn",this.typeDropdownBtn.setAttribute("aria-haspopup","listbox"),this.typeDropdownBtn.setAttribute("aria-expanded","false"),this.renderTypeDropdownTrigger(),this.typeDropdownBtn.addEventListener("click",e=>{e.stopPropagation(),this.typeDropdownMenu?this.closeTypeDropdown():this.openTypeDropdown()}),this.typeDropdownContainer.appendChild(this.typeDropdownBtn),this.typeDropdownContainer}renderTypeDropdownTrigger(){let e=this.typeOptions.find(a=>this.activeFilters.has(a.value))??this.typeOptions[0];if(!e)return;this.typeDropdownBtn.replaceChildren(),this.typeDropdownBtn.style.setProperty("--sp-chip-color",e.color),this.typeDropdownBtn.style.setProperty("--sp-chip-bg",e.bg),this.typeDropdownBtn.dataset.filter=e.value,this.typeDropdownBtn.classList.toggle("sp-filter-dropdown-btn--filtered",e.value!=="all"),this.typeDropdownBtn.setAttribute("aria-label",`${this.t("type.label")}: ${e.label}`);let t=l("span",{class:"sp-filter-dropdown-btn__icon"});t.appendChild(v(e.icon)),this.typeDropdownBtn.appendChild(t);let s=l("span",{class:"sp-filter-dropdown-btn__label"}),o=l("span",{class:"sp-filter-dropdown-btn__prefix"});c(o,this.t("type.label"));let i=l("span",{class:"sp-filter-dropdown-btn__value"});c(i,e.label),s.appendChild(o),s.appendChild(i),this.typeDropdownBtn.appendChild(s);let r=l("span",{class:"sp-filter-dropdown-btn__chevron"});r.appendChild(v(ct)),this.typeDropdownBtn.appendChild(r)}openTypeDropdown(){this.typeDropdownMenu=l("div",{class:"sp-filter-dropdown-menu"}),this.typeDropdownMenu.setAttribute("role","listbox"),this.typeDropdownMenu.setAttribute("aria-label",this.t("type.label")),this.typeDropdownBtn.setAttribute("aria-expanded","true");for(let e of this.typeOptions){let t=document.createElement("button");t.type="button";let s=this.activeFilters.has(e.value);t.className=`sp-filter-dropdown-option${s?" sp-filter-dropdown-option--active":""}`,t.style.setProperty("--sp-chip-color",e.color),t.style.setProperty("--sp-chip-bg",e.bg),t.dataset.filter=e.value,t.setAttribute("role","option"),t.setAttribute("aria-selected",String(s));let o=l("span",{class:"sp-filter-dropdown-option__icon"});o.appendChild(v(e.icon)),t.appendChild(o);let i=l("span",{class:"sp-filter-dropdown-option__label"});if(c(i,e.label),t.appendChild(i),s){let r=l("span",{class:"sp-filter-dropdown-option__check"});r.appendChild(v(Q)),t.appendChild(r)}t.addEventListener("click",r=>{r.stopPropagation(),this.selectTypeFilter(e.value)}),this.typeDropdownMenu.appendChild(t)}this.typeDropdownContainer.appendChild(this.typeDropdownMenu),requestAnimationFrame(()=>{this.typeDropdownOutsideHandler=e=>{this.typeDropdownMenu&&!this.typeDropdownContainer.contains(e.target)&&this.closeTypeDropdown()},document.addEventListener("click",this.typeDropdownOutsideHandler,!0)}),this.typeDropdownMenu.addEventListener("keydown",e=>{e.key==="Escape"&&(this.closeTypeDropdown(),this.typeDropdownBtn.focus())})}closeTypeDropdown(){this.typeDropdownMenu&&(this.typeDropdownMenu.remove(),this.typeDropdownMenu=null),this.typeDropdownBtn.setAttribute("aria-expanded","false"),this.typeDropdownOutsideHandler&&(document.removeEventListener("click",this.typeDropdownOutsideHandler,!0),this.typeDropdownOutsideHandler=null)}selectTypeFilter(e){this.activeFilters.clear(),this.activeFilters.add(e),this.renderTypeDropdownTrigger(),this.closeTypeDropdown(),this.loadFeedbacks().catch(()=>{})}buildStatusSegmented(){this.statusOptions=[{value:"all",label:this.t("panel.statusAll"),icon:Me,color:this.colors.accent,bg:this.colors.accentLight},{value:"open",label:this.t("panel.statusOpen"),icon:dt,color:this.colors.statusOpen,bg:this.colors.statusOpenBg},{value:"resolved",label:this.t("panel.statusResolved"),icon:Q,color:this.colors.statusResolved,bg:this.colors.statusResolvedBg}],this.statusSegmented=l("div",{class:"sp-segmented",role:"radiogroup"}),this.statusSegmented.setAttribute("aria-label",this.t("status.label"));for(let e of this.statusOptions){let t=document.createElement("button");t.type="button",t.className=`sp-segmented__btn sp-segmented__btn--${e.value}`,t.dataset.statusFilter=e.value,t.setAttribute("role","radio");let s=this.activeStatusFilter===e.value;t.setAttribute("aria-checked",String(s)),t.tabIndex=s?0:-1,s&&t.classList.add("sp-segmented__btn--active"),t.style.setProperty("--sp-chip-color",e.color),t.style.setProperty("--sp-chip-bg",e.bg);let o=l("span",{class:"sp-segmented__icon"});o.appendChild(v(e.icon)),t.appendChild(o);let i=l("span",{class:"sp-segmented__label"});c(i,e.label),t.appendChild(i),t.addEventListener("click",()=>this.selectStatusFilter(e.value)),t.addEventListener("keydown",r=>this.handleSegmentedKey(r,e.value)),this.statusSegmented.appendChild(t)}return this.statusSegmented}handleSegmentedKey(e,t){let s=this.statusOptions.map(p=>p.value),o=s.indexOf(t),i;switch(e.key){case"ArrowLeft":i=(o-1+s.length)%s.length;break;case"ArrowRight":i=(o+1)%s.length;break;case"Home":i=0;break;case"End":i=s.length-1;break;default:return}e.preventDefault();let r=s[i];if(!r)return;this.selectStatusFilter(r),this.statusSegmented.querySelector(`[data-status-filter="${r}"]`)?.focus()}selectStatusFilter(e){this.activeStatusFilter=e;let t=this.statusSegmented.querySelectorAll(".sp-segmented__btn");for(let s of t){let o=s.dataset.statusFilter===e;s.classList.toggle("sp-segmented__btn--active",o),s.setAttribute("aria-checked",String(o)),s.tabIndex=o?0:-1}this.loadFeedbacks().catch(()=>{})}getFocusedFeedback(){let e=ze(this.listContainer);if(e<0)return;let t=this.listContainer.querySelectorAll(".sp-card")[e];if(t)return this.feedbacks.find(s=>s.id===t.dataset.feedbackId)}scrollToFeedback(e){let t=CSS.escape(e),s=this.listContainer.querySelector(`[data-feedback-id="${t}"]`);s&&(s.scrollIntoView({behavior:"smooth",block:"center"}),s.classList.add("sp-anim-flash"),s.addEventListener("animationend",()=>{s.classList.remove("sp-anim-flash")},{once:!0}))}async refresh(){this.isOpen&&await this.loadFeedbacks()}destroy(){this.loadController?.abort(),this.searchTimeout&&clearTimeout(this.searchTimeout),this.listContainer.removeEventListener("click",this.onListClick),this.listContainer.removeEventListener("keydown",this.onListKeydown),this.listContainer.removeEventListener("mouseover",this.onListMouseover),this.listContainer.removeEventListener("mouseout",this.onListMouseout),document.removeEventListener("sp-marker-click",this.onMarkerClick),this.closeTypeDropdown(),this.sortControls.destroy(),this.bulk.destroy(),this.exportBtn.destroy(),this.shortcuts.destroy(),this.detail.destroy(),this.root.remove()}};function Ke(n){return{cssSelector:n.anchor.cssSelector,xpath:n.anchor.xpath,textSnippet:n.anchor.textSnippet,elementTag:n.anchor.elementTag,elementId:n.anchor.elementId,textPrefix:n.anchor.textPrefix,textSuffix:n.anchor.textSuffix,fingerprint:n.anchor.fingerprint,neighborText:n.anchor.neighborText,xPct:n.rect.xPct,yPct:n.rect.yPct,wPct:n.rect.wPct,hPct:n.rect.hPct,scrollX:n.scrollX,scrollY:n.scrollY,viewportW:n.viewportW,viewportH:n.viewportH,devicePixelRatio:n.devicePixelRatio}}var ve=class{constructor(e,t){this.store=e;this.projectName=t}store;projectName;async sendFeedback(e){let t=await this.store.createFeedback({projectName:e.projectName,type:e.type,message:e.message,status:"open",url:e.url,viewport:e.viewport,userAgent:e.userAgent,authorName:e.authorName,authorEmail:e.authorEmail,clientId:e.clientId,annotations:e.annotations.map(Ke)});return Ye(t)}async getFeedbacks(e,t){let{feedbacks:s,total:o}=await this.store.getFeedbacks({projectName:e,page:t?.page,limit:t?.limit,type:t?.type,status:t?.status,search:t?.search});return{feedbacks:s.map(Ye),total:o}}async resolveFeedback(e,t){let s=await this.store.updateFeedback(e,{status:t?"resolved":"open",resolvedAt:t?new Date:null});return Ye(s)}async deleteFeedback(e){await this.store.deleteFeedback(e)}async deleteAllFeedbacks(e){await this.store.deleteAllFeedbacks(e)}};function Ye(n){return{id:n.id,projectName:n.projectName,type:n.type,message:n.message,status:n.status,url:n.url,viewport:n.viewport,userAgent:n.userAgent,authorName:n.authorName,authorEmail:n.authorEmail,resolvedAt:n.resolvedAt?.toISOString()??null,createdAt:n.createdAt.toISOString(),updatedAt:n.updatedAt.toISOString(),annotations:n.annotations.map(hn)}}function hn(n){return{id:n.id,feedbackId:n.feedbackId,cssSelector:n.cssSelector,xpath:n.xpath,textSnippet:n.textSnippet,elementTag:n.elementTag,elementId:n.elementId,textPrefix:n.textPrefix,textSuffix:n.textSuffix,fingerprint:n.fingerprint,neighborText:n.neighborText,xPct:n.xPct,yPct:n.yPct,wPct:n.wPct,hPct:n.hPct,scrollX:n.scrollX,scrollY:n.scrollY,viewportW:n.viewportW,viewportH:n.viewportH,devicePixelRatio:n.devicePixelRatio,createdAt:n.createdAt.toISOString()}}var bn="linear(0, 0.006, 0.025, 0.06, 0.11, 0.17, 0.25, 0.34, 0.45, 0.56, 0.67, 0.78, 0.88, 0.95, 1.01, 1.04, 1.05, 1.04, 1.02, 1, 0.99, 1)",qe="cubic-bezier(0.16, 1, 0.3, 1)",Ue="cubic-bezier(0.34, 1.56, 0.64, 1)",gn="cubic-bezier(0.25, 1, 0.5, 1)",ss=`
1754
+ `,ug='<svg 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>',Xr=class{constructor(s,n,a){this.t=a;this.keyMap=new Map([["j",()=>n.onNavigate("down")],["k",()=>n.onNavigate("up")],["r",()=>n.onResolve()],["d",()=>n.onDelete()],["f",()=>n.onFocusSearch()],["/",()=>n.onFocusSearch()],["x",()=>n.onToggleSelect()],["?",()=>this.toggleHelp()]]),this.helpOverlay=this.buildOverlay(),this.hintButton=this.buildHintButton(),this.boundHandler=c=>this.handleKeydown(c);}t;helpOverlay;hintButton;keyMap;boundHandler;shadowRoot=null;enabled=false;helpVisible=false;destroyed=false;enable(s){if(this.destroyed||this.enabled)return;s&&(this.shadowRoot=s),(this.shadowRoot??document).addEventListener("keydown",this.boundHandler),this.enabled=true;}disable(){if(!this.enabled)return;(this.shadowRoot??document).removeEventListener("keydown",this.boundHandler),this.enabled=false,this.helpVisible&&this.hideHelp();}toggleHelp(){this.helpVisible?this.hideHelp():this.showHelp();}destroy(){this.destroyed||(this.disable(),this.helpOverlay.remove(),this.hintButton.remove(),this.destroyed=true);}handleKeydown(s){if(s.key==="Escape"){this.helpVisible&&(s.preventDefault(),s.stopPropagation(),this.hideHelp());return}if(this.helpVisible)return;let n=s.composedPath()[0];if(n){let c=n.tagName?.toLowerCase();if(c==="input"||c==="textarea"||c==="select"||n.isContentEditable)return}if(s.ctrlKey||s.altKey||s.metaKey)return;let a=this.keyMap.get(s.key);a&&(s.preventDefault(),s.stopPropagation(),a());}showHelp(){this.helpVisible=true,this.helpOverlay.classList.add("sp-shortcuts-overlay--visible"),this.helpOverlay.querySelector(".sp-shortcuts-close")?.focus();}hideHelp(){this.helpVisible=false,this.helpOverlay.classList.remove("sp-shortcuts-overlay--visible");}buildOverlay(){let s=C("div",{class:"sp-shortcuts-overlay"});s.setAttribute("role","dialog"),s.setAttribute("aria-modal","true"),s.setAttribute("aria-label",this.t("shortcuts.title")),s.addEventListener("click",f=>{f.target===s&&this.hideHelp();});let n=C("div",{class:"sp-shortcuts-card"}),a=C("div",{class:"sp-shortcuts-title"});a.appendChild(_(dg));let c=C("span");U(c,this.t("shortcuts.title")),a.appendChild(c),n.appendChild(a);let p=document.createElement("button");p.className="sp-shortcuts-close",p.setAttribute("aria-label",this.t("shortcuts.close")),p.appendChild(_(ug)),p.addEventListener("click",()=>this.hideHelp()),n.appendChild(p);let g=C("div",{class:"sp-shortcuts-grid"});for(let f of pg){let m=C("div",{class:"sp-shortcuts-row"}),Q=C("div",{class:"sp-shortcuts-keys"});f.keys.forEach((F,I)=>{if(I>0){let O=C("span",{class:"sp-shortcuts-separator"});U(O,"/"),Q.appendChild(O);}let M=C("span",{class:"sp-kbd"});U(M,F),Q.appendChild(M);});let b=C("span",{class:"sp-shortcuts-desc"});U(b,this.t(f.label)),m.appendChild(Q),m.appendChild(b),g.appendChild(m);}return n.appendChild(g),s.appendChild(n),s}buildHintButton(){let s=document.createElement("button");return s.className="sp-shortcuts-hint",s.setAttribute("aria-label",this.t("shortcuts.hint")),U(s,"?"),s.addEventListener("click",n=>{n.stopPropagation(),this.toggleHelp();}),s}};});var Ct,Ma=gA(()=>{UA();Ct=class{element;current;opts;onChange;datasetKey;constructor(s){this.opts=s.options,this.current=s.value,this.onChange=s.onChange,this.datasetKey=s.datasetKey,this.element=C("div",{class:`sp-segmented${s.extraClass?` ${s.extraClass}`:""}`,role:"radiogroup"}),this.element.setAttribute("aria-label",s.ariaLabel);for(let n of this.opts){let a=document.createElement("button");a.type="button",a.className=s.modifierPrefix!==void 0?`sp-segmented__btn ${s.modifierPrefix}${n.value}`:"sp-segmented__btn",a.dataset[this.datasetKey]=n.value,a.setAttribute("role","radio");let c=this.current===n.value;if(a.setAttribute("aria-checked",String(c)),a.tabIndex=c?0:-1,c&&a.classList.add("sp-segmented__btn--active"),n.color&&a.style.setProperty("--sp-chip-color",n.color),n.bg&&a.style.setProperty("--sp-chip-bg",n.bg),n.icon){let g=C("span",{class:"sp-segmented__icon"});g.appendChild(_(n.icon)),a.appendChild(g);}let p=C("span",{class:"sp-segmented__label"});U(p,n.label),a.appendChild(p),a.addEventListener("click",()=>this.select(n.value)),a.addEventListener("keydown",g=>this.handleKey(g,n.value)),this.element.appendChild(a);}}select(s){this.current=s,this.syncSelection(),this.onChange(s);}syncSelection(){let s=this.element.querySelectorAll(".sp-segmented__btn");for(let n of s){let a=n.dataset[this.datasetKey]===this.current;n.classList.toggle("sp-segmented__btn--active",a),n.setAttribute("aria-checked",String(a)),n.tabIndex=a?0:-1;}}setOptionVisible(s,n){let a=this.element.querySelector(`[data-${this.kebabKey()}="${s}"]`);return a?(a.style.display=n?"":"none",true):false}get value(){return this.current}focusOption(s){this.element.querySelector(`[data-${this.kebabKey()}="${s}"]`)?.focus();}handleKey(s,n){let a=this.opts.map(f=>f.value).filter(f=>{let m=this.element.querySelector(`[data-${this.kebabKey()}="${f}"]`);return m!==null&&m.style.display!=="none"}),c=a.indexOf(n);if(c<0)return;let p;switch(s.key){case "ArrowLeft":p=(c-1+a.length)%a.length;break;case "ArrowRight":p=(c+1)%a.length;break;case "Home":p=0;break;case "End":p=a.length-1;break;default:return}s.preventDefault();let g=a[p];g!==void 0&&(this.select(g),this.focusOption(g));}kebabKey(){return this.datasetKey.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`)}};});var Ra={};we(Ra,{Panel:()=>mn});var mn,Oa=gA(()=>{Ma();UA();on();mt();Fr();an();dn();pn();un();gn();oe();mn=class{constructor(s,n,a,c,p,g,f,m,Q){this.colors=n;this.bus=a;this.client=c;this.projectName=p;this.markers=g;this.t=f;this.locale=m;this.shadowRoot=s,this.getScope=Q?.getScope??(()=>({url:window.location.pathname,urlPattern:null})),this.scopeAnnotationsByUrl=Q?.scopeAnnotationsByUrl??true,this.root=C("div",{class:"sp-panel"}),this.root.setAttribute("role","complementary"),this.root.setAttribute("aria-label",this.t("panel.ariaLabel")),this.root.setAttribute("aria-hidden","true");let b=C("div",{class:"sp-panel-header"}),F=C("span",{class:"sp-panel-title"});U(F,this.t("panel.title")),this.closeBtn=document.createElement("button"),this.closeBtn.className="sp-panel-close",this.closeBtn.setAttribute("aria-label",this.t("panel.close")),this.closeBtn.appendChild(_(mr)),this.closeBtn.addEventListener("click",()=>this.close()),this.deleteAllBtn=document.createElement("button"),this.deleteAllBtn.className="sp-btn-delete-all",this.deleteAllBtn.setAttribute("aria-label",this.t("panel.deleteAll")),this.deleteAllBtn.appendChild(_(qs));let I=document.createElement("span");U(I,` ${this.t("panel.deleteAll")}`),this.deleteAllBtn.appendChild(I),this.deleteAllBtn.addEventListener("click",()=>this.confirmDeleteAll()),this.exportBtn=new Rr(n,()=>this.feedbacks,this.t);let M=C("div",{class:"sp-panel-header-right"});M.appendChild(this.exportBtn.element),M.appendChild(this.deleteAllBtn),M.appendChild(this.closeBtn),b.appendChild(F),b.appendChild(M),this.stats=new Vr(n,this.t);let O=C("div",{class:"sp-filters"}),N=C("div",{class:"sp-search-wrap"}),P=_(So);P.setAttribute("class","sp-search-icon"),this.searchInput=document.createElement("input"),this.searchInput.type="text",this.searchInput.className="sp-search",this.searchInput.placeholder=this.t("panel.search"),this.searchInput.setAttribute("aria-label",this.t("panel.searchAria")),this.searchInput.addEventListener("input",()=>{this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>this.loadFeedbacks().catch(()=>{}),200);}),N.appendChild(P),N.appendChild(this.searchInput);let AA=C("div",{class:"sp-filter-bar"});AA.appendChild(this.buildTypeDropdown()),AA.appendChild(this.buildStatusSegmented()),AA.appendChild(this.buildScopeSegmented()),this.sortControls=new _r(n,()=>this.renderList(),this.t),O.appendChild(N),O.appendChild(AA),O.appendChild(this.sortControls.element),this.listContainer=C("div",{class:"sp-list"}),this.listContainer.setAttribute("role","list"),this.listContainer.setAttribute("aria-label",this.t("panel.feedbackList")),this.bulk=new Nr(n,{onResolve:E=>this.bulkResolve(E),onDelete:E=>this.bulkDelete(E)},this.t),this.bulk.setListContainer(this.listContainer),this.detail=new Gr(n,{onBack:()=>this.detail.hide(),onResolve:async E=>{let G=E.status!=="resolved";await this.client.resolveFeedback(E.id,G),await this.loadFeedbacks(),this.detail.hide();},onDelete:async E=>{await this.client.deleteFeedback(E.id),this.bus.emit("feedback:deleted",E.id),await this.loadFeedbacks(),this.detail.hide();},onGoToAnnotation:E=>{if(E.annotations.length>0){let G=E.annotations[0];if(!G)return;window.scrollTo({left:G.scrollX,top:G.scrollY,behavior:"smooth"}),this.markers.pinHighlight(E);}}},this.t,m),this.shortcuts=new Xr(n,{onNavigate:E=>{let G=hn(this.listContainer);Ta(this.listContainer,E==="down"?G+1:G-1);},onResolve:()=>{let E=this.getFocusedFeedback();if(E&&!this.pendingMutations.has(E.id)){let R=this.listContainer.querySelector(`[data-feedback-id="${CSS.escape(E.id)}"]`)?.querySelector('[data-action="resolve"]');R&&this.toggleResolve(E,R).catch(()=>{});}},onDelete:()=>{let E=this.getFocusedFeedback();if(E&&!this.pendingMutations.has(E.id)){let R=this.listContainer.querySelector(`[data-feedback-id="${CSS.escape(E.id)}"]`)?.querySelector('[data-action="delete"]');R&&this.deleteFeedback(E,R).catch(()=>{});}},onFocusSearch:()=>this.searchInput.focus(),onToggleSelect:()=>{let E=this.getFocusedFeedback();E&&this.bulk.toggle(E.id);}},this.t),this.root.appendChild(b),this.root.appendChild(this.stats.element),this.root.appendChild(O),this.root.appendChild(this.listContainer),this.root.appendChild(this.bulk.barElement),this.root.appendChild(this.detail.element),this.root.appendChild(this.shortcuts.helpOverlay),this.root.appendChild(this.shortcuts.hintButton),s.appendChild(this.root),this.onListClick=E=>{let G=E.target;if(G.closest(".sp-bulk-checkbox"))return;let R=G.closest("[data-action]");if(R){E.stopPropagation();let j=R.closest(".sp-card");if(!j)return;let lA=j.dataset.feedbackId,rA=this.feedbacks.find(oA=>oA.id===lA);if(!rA)return;let BA=R.dataset.action;if(BA==="expand"){let oA=j.querySelector(".sp-card-message");if(!oA)return;let ve=oA.classList.toggle("sp-card-message--expanded");U(R,ve?this.t("panel.showLess"):this.t("panel.showMore")),R.setAttribute("aria-expanded",String(ve));}else if(BA==="resolve"){if(this.pendingMutations.has(rA.id))return;let oA=R;this.toggleResolve(rA,oA).catch(()=>{});}else if(BA==="delete"){if(this.pendingMutations.has(rA.id))return;let oA=R;this.deleteFeedback(rA,oA).catch(()=>{});}return}let $=G.closest(".sp-card");if($){let j=$.dataset.feedbackId,lA=this.feedbacks.find(rA=>rA.id===j);if(lA){let rA=this.feedbacks.indexOf(lA)+1;this.detail.show(lA,rA);}}},this.listContainer.addEventListener("click",this.onListClick),this.onListKeydown=E=>{let G=E;if(G.key!=="Enter"&&G.key!==" ")return;let R=G.target,$=R.closest(".sp-card");if(!$||R!==$)return;G.preventDefault();let j=$.dataset.feedbackId,lA=this.feedbacks.find(rA=>rA.id===j);if(lA){let rA=this.feedbacks.indexOf(lA)+1;this.detail.show(lA,rA);}},this.listContainer.addEventListener("keydown",this.onListKeydown),this.onListMouseover=E=>{let R=E.target.closest(".sp-card");if(!R)return;let $=R.dataset.feedbackId;$&&this.markers.highlight($);},this.listContainer.addEventListener("mouseover",this.onListMouseover),this.onListMouseout=E=>{let G=E.relatedTarget;G&&this.listContainer.contains(G)||this.markers.highlight("");},this.listContainer.addEventListener("mouseout",this.onListMouseout),this.bus.on("panel:toggle",E=>{E?this.open():this.close();}),s.addEventListener("keydown",E=>{let G=E;if(G.key==="Escape"&&this.isOpen){if(this.detail.isVisible){this.detail.hide();return}this.close();return}if(G.key==="Tab"&&this.isOpen){let R=BA=>{let oA=BA;for(;oA&&oA!==this.root;){if(oA.style.display==="none")return false;oA=oA.parentElement;}return true},$=Array.from(this.root.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(BA=>R(BA)&&!BA.hasAttribute("disabled"));if($.length===0)return;let j=$[0],lA=$[$.length-1];if(!j||!lA)return;let rA=s.activeElement;G.shiftKey&&rA===j?(G.preventDefault(),lA.focus()):!G.shiftKey&&rA===lA&&(G.preventDefault(),j.focus());}}),this.onMarkerClick=(E=>{this.scrollToFeedback(E.detail.feedbackId);}),document.addEventListener("sp-marker-click",this.onMarkerClick);}colors;bus;client;projectName;markers;t;locale;root;listContainer;searchInput;closeBtn;deleteAllBtn;activeFilters=new Set(["all"]);typeDropdownBtn;typeDropdownContainer;typeDropdownMenu=null;typeDropdownOutsideHandler=null;statusSegmented;typeOptions;feedbacks=[];currentPage=1;totalFeedbacks=0;isLoadingMore=false;isOpen=false;searchTimeout=null;loadController=null;pendingMutations=new Set;stats;sortControls;bulk;exportBtn;shortcuts;detail;shadowRoot;getScope;scopeAnnotationsByUrl;scopeSegmented;initialScopeFilter="this";onMarkerClick;onListClick;onListKeydown;onListMouseover;onListMouseout;async open(){this.isOpen||(this.isOpen=true,this.root.classList.add("sp-panel--open"),this.root.setAttribute("aria-hidden","false"),this.bus.emit("open"),this.shortcuts.enable(this.shadowRoot),await this.loadFeedbacks(),requestAnimationFrame(()=>{this.searchInput?this.searchInput.focus():this.closeBtn.focus();}));}close(){if(!this.isOpen)return;this.isOpen=false,this.root.classList.remove("sp-panel--open"),this.root.setAttribute("aria-hidden","true"),this.bus.emit("close"),this.shortcuts.disable(),this.detail.hide(),this.root.getRootNode().querySelector(".sp-fab")?.focus();}showLoading(){this.listContainer.replaceChildren();let s=C("div",{class:"sp-loading"});s.setAttribute("role","status"),s.setAttribute("aria-live","polite"),s.setAttribute("aria-label",this.t("panel.loading"));let n=C("div",{class:"sp-spinner"});s.appendChild(n),this.listContainer.appendChild(s);}showError(){this.listContainer.replaceChildren();let s=C("div",{class:"sp-empty"});s.setAttribute("role","status"),s.setAttribute("aria-live","polite");let n=C("div",{class:"sp-empty-text"});U(n,this.t("panel.loadError"));let a=document.createElement("button");a.className="sp-btn-ghost",a.style.marginTop="8px",U(a,this.t("panel.retry")),a.addEventListener("click",()=>this.loadFeedbacks().catch(()=>{})),s.appendChild(n),s.appendChild(a),this.listContainer.appendChild(s);}async loadFeedbacks(){this.loadController?.abort(),this.loadController=new AbortController;let{signal:s}=this.loadController;this.currentPage=1;let n=this.searchInput.value.trim()||void 0,a=this.activeFilters.has("all")?void 0:Array.from(this.activeFilters)[0],c=this.statusSegmented.value,p=c==="all"?void 0:c,g=this.getScope();this.syncScopeAvailability();let f=this.scopeSegmented.value,m={page:1,limit:20};a&&(m.type=a),p&&(m.status=p),n&&(m.search=n),f==="this"?m.url=g.url:f==="template"&&g.urlPattern&&(m.urlPattern=g.urlPattern);let Q=this.feedbacks.length>0;Q||this.showLoading();try{let{feedbacks:b,total:F}=await this.client.getFeedbacks(this.projectName,m);if(s.aborted)return;this.feedbacks=b,this.totalFeedbacks=F,this.stats.update(b,F),this.bulk.reset(),this.renderList();let I=this.scopeAnnotationsByUrl?b.filter(M=>M.url===g.url):b;this.markers.render(I);}catch(b){if(s.aborted)return;Q||this.showError(),this.bus.emit("feedback:error",b instanceof Error?b:new Error(String(b)));}}async loadMoreFeedbacks(){if(this.isLoadingMore)return;this.isLoadingMore=true;let s=this.loadController,n=this.currentPage+1,a=this.searchInput.value.trim()||void 0,c=this.activeFilters.has("all")?void 0:Array.from(this.activeFilters)[0],p=this.statusSegmented.value,g=p==="all"?void 0:p,f=this.getScope(),m=this.scopeSegmented.value,Q={page:n,limit:20};c&&(Q.type=c),g&&(Q.status=g),a&&(Q.search=a),m==="this"?Q.url=f.url:m==="template"&&f.urlPattern&&(Q.urlPattern=f.urlPattern);let b=this.listContainer.querySelector(".sp-btn-load-more"),F;b&&(F=me(b));try{let{feedbacks:I,total:M}=await this.client.getFeedbacks(this.projectName,Q);if(s!==this.loadController)return;this.currentPage=n,this.totalFeedbacks=M,this.feedbacks=[...this.feedbacks,...I],this.stats.update(this.feedbacks,M),this.renderList();let O=this.scopeAnnotationsByUrl?this.feedbacks.filter(N=>N.url===f.url):this.feedbacks;this.markers.render(O);}catch(I){F&&F(),this.bus.emit("feedback:error",I instanceof Error?I:new Error(String(I)));}finally{this.isLoadingMore=false;}}renderList(){if(this.listContainer.replaceChildren(),this.feedbacks.length===0){let p=C("div",{class:"sp-empty"});p.setAttribute("role","status"),p.setAttribute("aria-live","polite");let g=C("div",{class:"sp-empty-text"});U(g,this.t("panel.empty")),p.appendChild(g),this.listContainer.appendChild(p);return}let s=Ha(this.feedbacks,this.sortControls.sortMode),n=s.map(p=>p.id),a=this.bulk.createSelectAllBar(n,this.t("bulk.selectAll"));if(this.listContainer.appendChild(a),this.sortControls.groupByPage){let p=Ia(s),g=0;for(let[f,m]of p){let Q=ka(f,m.length,this.colors);this.listContainer.appendChild(Q);let b=C("div",{class:"sp-group-content"});for(let F of m){let I=this.createCard(F,g+1);I.style.setProperty("--sp-card-i",String(g)),b.appendChild(I),g++;}this.listContainer.appendChild(b);}}else s.forEach((p,g)=>{let f=this.createCard(p,g+1);f.style.setProperty("--sp-card-i",String(g)),this.listContainer.appendChild(f);});let c=this.totalFeedbacks-this.feedbacks.length;if(c>0){let p=C("div",{class:"sp-load-more-wrap"}),g=document.createElement("button");g.className="sp-btn-ghost sp-btn-load-more",U(g,this.t("panel.loadMore").replace("{remaining}",String(c))),g.addEventListener("click",()=>this.loadMoreFeedbacks().catch(()=>{})),p.appendChild(g),this.listContainer.appendChild(p);}}createCard(s,n){let a=s.status==="resolved",c=HA(s.type,this.colors),p=C("div",{class:`sp-card ${a?"sp-card--resolved":""}`});p.setAttribute("role","listitem"),p.setAttribute("tabindex","0"),p.setAttribute("aria-label",`Feedback #${n}: ${Ce(s.type,this.t)} \u2014 ${s.message.slice(0,80)}`),p.dataset.feedbackId=s.id;let g=C("div",{class:"sp-card-bar"});g.style.background=a?"#9ca3af":c;let f=C("div",{class:"sp-card-body"}),m=C("div",{class:"sp-card-header"}),Q=this.bulk.createCheckbox(s.id);m.appendChild(Q);let b=C("span",{class:"sp-card-number"});U(b,`#${n}`);let F=C("span",{class:"sp-badge"}),I=JA(s.type,this.colors);F.style.background=I,F.style.color=c,U(F,Ce(s.type,this.t));let M=C("span",{class:"sp-card-date"});U(M,wr(s.createdAt,this.locale)),m.appendChild(b),m.appendChild(F),m.appendChild(M);let O=C("div",{class:"sp-card-message"});U(O,s.message);let N=document.createElement("button");N.className="sp-card-expand",N.dataset.action="expand",U(N,this.t("panel.showMore")),N.style.display="none",N.setAttribute("aria-expanded","false"),requestAnimationFrame(()=>{O.scrollHeight>O.clientHeight&&(N.style.display="block");});let P=C("div",{class:"sp-card-footer"}),AA=document.createElement("button");if(AA.className="sp-btn-resolve",AA.dataset.action="resolve",a){AA.appendChild(_(Do));let R=document.createElement("span");U(R,` ${this.t("panel.reopen")}`),AA.appendChild(R);}else {AA.appendChild(_(br));let R=document.createElement("span");U(R,` ${this.t("panel.resolve")}`),AA.appendChild(R);}let E=document.createElement("button");E.className="sp-btn-delete",E.dataset.action="delete",E.appendChild(_(qs));let G=document.createElement("span");return U(G,` ${this.t("panel.delete")}`),E.appendChild(G),P.appendChild(AA),P.appendChild(E),f.appendChild(m),f.appendChild(O),f.appendChild(N),f.appendChild(P),p.appendChild(g),p.appendChild(f),p}async bulkResolve(s){try{await Promise.all(s.map(n=>this.client.resolveFeedback(n,!0))),await this.loadFeedbacks();}catch(n){throw this.bus.emit("feedback:error",n instanceof Error?n:new Error(String(n))),n}}async bulkDelete(s){try{await Promise.all(s.map(n=>this.client.deleteFeedback(n)));for(let n of s)this.bus.emit("feedback:deleted",n);await this.loadFeedbacks();}catch(n){throw this.bus.emit("feedback:error",n instanceof Error?n:new Error(String(n))),n}}async confirmDeleteAll(){if(await this.showConfirmDialog(this.t("panel.deleteAllConfirmTitle"),this.t("panel.deleteAllConfirmMessage"))){this.deleteAllBtn.disabled=true;try{await this.client.deleteAllFeedbacks(this.projectName),this.bus.emit("feedback:all-deleted"),await this.loadFeedbacks();}catch(n){this.bus.emit("feedback:error",n instanceof Error?n:new Error(String(n)));}finally{this.deleteAllBtn.disabled=false;}}}showConfirmDialog(s,n){return new Promise(a=>{let c=C("div",{class:"sp-confirm-backdrop"}),p=`sp-confirm-title-${Date.now()}`,g=`sp-confirm-msg-${Date.now()}`,f=C("div",{class:"sp-confirm-dialog"});f.setAttribute("role","alertdialog"),f.setAttribute("aria-modal","true"),f.setAttribute("aria-labelledby",p),f.setAttribute("aria-describedby",g);let m=C("div",{class:"sp-confirm-title"});m.id=p,U(m,s);let Q=C("div",{class:"sp-confirm-message"});Q.id=g,U(Q,n);let b=C("div",{class:"sp-confirm-actions"}),F=document.createElement("button");F.type="button",F.className="sp-btn-ghost",U(F,this.t("panel.cancel"));let I=document.createElement("button");I.type="button",I.className="sp-btn-danger",U(I,this.t("panel.confirmDelete"));let M=false,O=P=>{M||(M=true,c.removeEventListener("keydown",N),c.style.opacity="0",f.style.transform="translateY(8px) scale(0.97)",setTimeout(()=>{c.remove(),a(P);},200));},N=P=>{let AA=P;if(AA.key==="Escape"){O(false);return}AA.key==="Tab"&&(AA.preventDefault(),c.getRootNode().activeElement===F?I.focus():F.focus());};c.addEventListener("keydown",N),F.addEventListener("click",()=>O(false)),I.addEventListener("click",()=>O(true)),c.addEventListener("click",P=>{P.target===c&&O(false);}),b.appendChild(F),b.appendChild(I),f.appendChild(m),f.appendChild(Q),f.appendChild(b),c.appendChild(f),this.root.getRootNode()instanceof ShadowRoot?this.root.getRootNode().appendChild(c):this.root.appendChild(c),requestAnimationFrame(()=>{c.style.opacity="1",f.style.transform="translateY(0) scale(1)",F.focus();});})}async deleteFeedback(s,n){this.pendingMutations.add(s.id);let a=me(n);try{await this.client.deleteFeedback(s.id),this.bus.emit("feedback:deleted",s.id),await this.loadFeedbacks();}catch(c){a(),this.bus.emit("feedback:error",c instanceof Error?c:new Error(String(c)));}finally{this.pendingMutations.delete(s.id);}}async toggleResolve(s,n){this.pendingMutations.add(s.id);let a=me(n);try{let c=s.status!=="resolved";await this.client.resolveFeedback(s.id,c),await this.loadFeedbacks();}catch(c){a(),this.bus.emit("feedback:error",c instanceof Error?c:new Error(String(c)));}finally{this.pendingMutations.delete(s.id);}}buildTypeDropdown(){return this.typeOptions=[{value:"all",label:this.t("panel.filterAll"),icon:Zs,color:this.colors.accent,bg:this.colors.accentLight},{value:"question",label:this.t("type.question"),icon:Cr,color:this.colors.typeQuestion,bg:this.colors.typeQuestionBg},{value:"change",label:this.t("type.change"),icon:vr,color:this.colors.typeChange,bg:this.colors.typeChangeBg},{value:"bug",label:this.t("type.bug"),icon:Qr,color:this.colors.typeBug,bg:this.colors.typeBugBg},{value:"other",label:this.t("type.other"),icon:yr,color:this.colors.typeOther,bg:this.colors.typeOtherBg}],this.typeDropdownContainer=C("div",{class:"sp-filter-dropdown"}),this.typeDropdownBtn=document.createElement("button"),this.typeDropdownBtn.type="button",this.typeDropdownBtn.className="sp-filter-dropdown-btn",this.typeDropdownBtn.setAttribute("aria-haspopup","listbox"),this.typeDropdownBtn.setAttribute("aria-expanded","false"),this.renderTypeDropdownTrigger(),this.typeDropdownBtn.addEventListener("click",s=>{s.stopPropagation(),this.typeDropdownMenu?this.closeTypeDropdown():this.openTypeDropdown();}),this.typeDropdownContainer.appendChild(this.typeDropdownBtn),this.typeDropdownContainer}renderTypeDropdownTrigger(){let s=this.typeOptions.find(f=>this.activeFilters.has(f.value))??this.typeOptions[0];if(!s)return;this.typeDropdownBtn.replaceChildren(),this.typeDropdownBtn.style.setProperty("--sp-chip-color",s.color),this.typeDropdownBtn.style.setProperty("--sp-chip-bg",s.bg),this.typeDropdownBtn.dataset.filter=s.value,this.typeDropdownBtn.classList.toggle("sp-filter-dropdown-btn--filtered",s.value!=="all"),this.typeDropdownBtn.setAttribute("aria-label",`${this.t("type.label")}: ${s.label}`);let n=C("span",{class:"sp-filter-dropdown-btn__icon"});n.appendChild(_(s.icon)),this.typeDropdownBtn.appendChild(n);let a=C("span",{class:"sp-filter-dropdown-btn__label"}),c=C("span",{class:"sp-filter-dropdown-btn__prefix"});U(c,this.t("type.label"));let p=C("span",{class:"sp-filter-dropdown-btn__value"});U(p,s.label),a.appendChild(c),a.appendChild(p),this.typeDropdownBtn.appendChild(a);let g=C("span",{class:"sp-filter-dropdown-btn__chevron"});g.appendChild(_(Ko)),this.typeDropdownBtn.appendChild(g);}openTypeDropdown(){this.typeDropdownMenu=C("div",{class:"sp-filter-dropdown-menu"}),this.typeDropdownMenu.setAttribute("role","listbox"),this.typeDropdownMenu.setAttribute("aria-label",this.t("type.label")),this.typeDropdownBtn.setAttribute("aria-expanded","true");for(let s of this.typeOptions){let n=document.createElement("button");n.type="button";let a=this.activeFilters.has(s.value);n.className=`sp-filter-dropdown-option${a?" sp-filter-dropdown-option--active":""}`,n.style.setProperty("--sp-chip-color",s.color),n.style.setProperty("--sp-chip-bg",s.bg),n.dataset.filter=s.value,n.setAttribute("role","option"),n.setAttribute("aria-selected",String(a));let c=C("span",{class:"sp-filter-dropdown-option__icon"});c.appendChild(_(s.icon)),n.appendChild(c);let p=C("span",{class:"sp-filter-dropdown-option__label"});if(U(p,s.label),n.appendChild(p),a){let g=C("span",{class:"sp-filter-dropdown-option__check"});g.appendChild(_(br)),n.appendChild(g);}n.addEventListener("click",g=>{g.stopPropagation(),this.selectTypeFilter(s.value);}),this.typeDropdownMenu.appendChild(n);}this.typeDropdownContainer.appendChild(this.typeDropdownMenu),requestAnimationFrame(()=>{this.typeDropdownOutsideHandler=s=>{this.typeDropdownMenu&&!this.typeDropdownContainer.contains(s.target)&&this.closeTypeDropdown();},document.addEventListener("click",this.typeDropdownOutsideHandler,true);}),this.typeDropdownMenu.addEventListener("keydown",s=>{s.key==="Escape"&&(this.closeTypeDropdown(),this.typeDropdownBtn.focus());});}closeTypeDropdown(){this.typeDropdownMenu&&(this.typeDropdownMenu.remove(),this.typeDropdownMenu=null),this.typeDropdownBtn.setAttribute("aria-expanded","false"),this.typeDropdownOutsideHandler&&(document.removeEventListener("click",this.typeDropdownOutsideHandler,true),this.typeDropdownOutsideHandler=null);}selectTypeFilter(s){this.activeFilters.clear(),this.activeFilters.add(s),this.renderTypeDropdownTrigger(),this.closeTypeDropdown(),this.loadFeedbacks().catch(()=>{});}buildStatusSegmented(){return this.statusSegmented=new Ct({options:[{value:"all",label:this.t("panel.statusAll"),icon:Zs,color:this.colors.accent,bg:this.colors.accentLight},{value:"open",label:this.t("panel.statusOpen"),icon:To,color:this.colors.statusOpen,bg:this.colors.statusOpenBg},{value:"resolved",label:this.t("panel.statusResolved"),icon:br,color:this.colors.statusResolved,bg:this.colors.statusResolvedBg}],value:"all",onChange:()=>{this.loadFeedbacks().catch(()=>{});},ariaLabel:this.t("status.label"),datasetKey:"statusFilter",modifierPrefix:"sp-segmented__btn--"}),this.statusSegmented.element}buildScopeSegmented(){return this.scopeSegmented=new Ct({options:[{value:"this",label:this.t("scope.thisPage")},{value:"template",label:this.t("scope.thisType")},{value:"all",label:this.t("scope.all")}],value:this.initialScopeFilter,onChange:()=>{this.loadFeedbacks().catch(()=>{});},ariaLabel:this.t("scope.label"),datasetKey:"scopeFilter",modifierPrefix:"sp-segmented__btn--scope-",extraClass:"sp-segmented--scope"}),this.syncScopeAvailability(),this.scopeSegmented.element}syncScopeAvailability(){if(!this.scopeSegmented)return;let n=!!this.getScope().urlPattern;this.scopeSegmented.setOptionVisible("template",n),!n&&this.scopeSegmented.value==="template"&&this.scopeSegmented.select("this");}getFocusedFeedback(){let s=hn(this.listContainer);if(s<0)return;let n=this.listContainer.querySelectorAll(".sp-card")[s];if(n)return this.feedbacks.find(a=>a.id===n.dataset.feedbackId)}scrollToFeedback(s){let n=CSS.escape(s),a=this.listContainer.querySelector(`[data-feedback-id="${n}"]`);a&&(a.scrollIntoView({behavior:"smooth",block:"center"}),a.classList.add("sp-anim-flash"),a.addEventListener("animationend",()=>{a.classList.remove("sp-anim-flash");},{once:true}));}async refresh(){this.isOpen&&await this.loadFeedbacks();}get isCurrentlyOpen(){return this.isOpen}destroy(){this.loadController?.abort(),this.searchTimeout&&clearTimeout(this.searchTimeout),this.listContainer.removeEventListener("click",this.onListClick),this.listContainer.removeEventListener("keydown",this.onListKeydown),this.listContainer.removeEventListener("mouseover",this.onListMouseover),this.listContainer.removeEventListener("mouseout",this.onListMouseout),document.removeEventListener("sp-marker-click",this.onMarkerClick),this.closeTypeDropdown(),this.sortControls.destroy(),this.bulk.destroy(),this.exportBtn.destroy(),this.shortcuts.destroy(),this.detail.destroy(),this.root.remove();}};});var TA,Ys,bo;function Co(o,s){if(bo=new Date,o.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(o.tagName.toLowerCase()==="html")return "html";let n={root:document.body,idName:c=>true,className:c=>true,tagName:c=>true,attr:(c,p)=>false,seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};TA={...n,...s},Ys=Ah(TA.root,n);let a=ur(o,"all",()=>ur(o,"two",()=>ur(o,"one",()=>ur(o,"none"))));if(a){let c=yo(Fo(a,o));return c.length>0&&(a=c[0]),Br(a)}else throw new Error("Selector was not found.")}function Ah(o,s){return o.nodeType===Node.DOCUMENT_NODE?o:o===s.root?o.ownerDocument:o}function ur(o,s,n){let a=null,c=[],p=o,g=0;for(;p;){let f=new Date().getTime()-bo.getTime();if(TA.timeoutMs!==void 0&&f>TA.timeoutMs)throw new Error(`Timeout: Can't find a unique selector after ${f}ms`);let m=gr(eh(p))||gr(...th(p))||gr(...rh(p))||gr(sh(p))||[mo()],Q=nh(p);if(s=="all")Q&&(m=m.concat(m.filter(Xs).map(b=>hr(b,Q))));else if(s=="two")m=m.slice(0,1),Q&&(m=m.concat(m.filter(Xs).map(b=>hr(b,Q))));else if(s=="one"){let[b]=m=m.slice(0,1);Q&&Xs(b)&&(m=[hr(b,Q)]);}else s=="none"&&(m=[mo()],Q&&(m=[hr(m[0],Q)]));for(let b of m)b.level=g;if(c.push(m),c.length>=TA.seedMinLength&&(a=fo(c,n),a))break;p=p.parentElement,g++;}return a||(a=fo(c,n)),!a&&n?n():a}function fo(o,s){let n=yo(Qo(o));if(n.length>TA.threshold)return s?s():null;for(let a of n)if(vo(a))return a;return null}function Br(o){let s=o[0],n=s.name;for(let a=1;a<o.length;a++){let c=o[a].level||0;s.level===c-1?n=`${o[a].name} > ${n}`:n=`${o[a].name} ${n}`,s=o[a];}return n}function wo(o){return o.map(s=>s.penalty).reduce((s,n)=>s+n,0)}function vo(o){let s=Br(o);switch(Ys.querySelectorAll(s).length){case 0:throw new Error(`Can't select any node with this selector: ${s}`);case 1:return true;default:return false}}function eh(o){let s=o.getAttribute("id");return s&&TA.idName(s)?{name:"#"+CSS.escape(s),penalty:0}:null}function th(o){return Array.from(o.attributes).filter(n=>TA.attr(n.name,n.value)).map(n=>({name:`[${CSS.escape(n.name)}="${CSS.escape(n.value)}"]`,penalty:.5}))}function rh(o){return Array.from(o.classList).filter(TA.className).map(n=>({name:"."+CSS.escape(n),penalty:1}))}function sh(o){let s=o.tagName.toLowerCase();return TA.tagName(s)?{name:s,penalty:2}:null}function mo(){return {name:"*",penalty:3}}function nh(o){let s=o.parentNode;if(!s)return null;let n=s.firstChild;if(!n)return null;let a=0;for(;n&&(n.nodeType===Node.ELEMENT_NODE&&a++,n!==o);)n=n.nextSibling;return a}function hr(o,s){return {name:o.name+`:nth-child(${s})`,penalty:o.penalty+1}}function Xs(o){return o.name!=="html"&&!o.name.startsWith("#")}function gr(...o){let s=o.filter(ih);return s.length>0?s:null}function ih(o){return o!=null}function*Qo(o,s=[]){if(o.length>0)for(let n of o[0])yield*Qo(o.slice(1,o.length),s.concat(n));else yield s;}function yo(o){return [...o].sort((s,n)=>wo(s)-wo(n))}function*Fo(o,s,n={counter:0,visited:new Map}){if(o.length>2&&o.length>TA.optimizedMinLength)for(let a=1;a<o.length-1;a++){if(n.counter>TA.maxNumberOfTries)return;n.counter+=1;let c=[...o];c.splice(a,1);let p=Br(c);if(n.visited.has(p))return;vo(c)&&oh(c,s)&&(yield c,n.visited.set(p,true),yield*Fo(c,s,n));}}function oh(o,s){return Ys.querySelector(Br(o))===s}var ah=["role","aria-label","type","name","href","src","data-testid","data-id"];function lh(o){let s=5381;for(let n=0;n<o.length;n++)s=(s<<5)+s+o.charCodeAt(n)|0;return (s>>>0).toString(36)}function Js(o){let s=o.children.length,n=0,a=o.parentElement;if(a)for(let g of a.children){if(g===o)break;g.tagName===o.tagName&&n++;}let c=[];for(let g of ah){let f=o.getAttribute(g);f&&c.push(`${g}=${f}`);}let p=c.length>0?lh(c.join(",")):"0";return `${s}:${n}:${p}`}function Uo(o,s){let n=s.split(":");if(n.length!==3)return 0;let[a,c,p]=n,g=Number(a),f=Number(c);if(Number.isNaN(g)||Number.isNaN(f))return 0;let m=Js(o),[Q,b,F]=m.split(":"),I=0,M=Math.abs(Number(Q)-g);M===0?I+=.2:M<=2?I+=.1:M<=5&&(I+=.03);let O=Math.abs(Number(b)-f);return O===0?I+=.4:O===1?I+=.2:O<=3&&(I+=.08),F===p&&(I+=.4),I}function De(o,s){let n=s==="before"?"previousElementSibling":"nextElementSibling",a=o[n],c=3;for(;a&&c>0;){let p=a.textContent?.trim();if(p)return s==="before"?p.slice(-32):p.slice(0,32);a=a[n],c--;}return ""}function fr(o){let s=o.previousElementSibling?.textContent?.trim().slice(0,40)??"",n=o.nextElementSibling?.textContent?.trim().slice(0,40)??"";return [s,n].filter(Boolean).join(" | ")}function xo(o){if(o.id){let a=o.id.includes("'")?`concat('${o.id.replace(/'/g,`',"'",'`)}')`:`'${o.id}'`;return `//${o.localName}[@id=${a}]`}let s=[],n=o;for(;n&&n!==document.body&&s.length<6;){let a=n.localName,c=n.parentElement;if(n.id){let g=n.id.includes("'")?`concat('${n.id.replace(/'/g,`',"'",'`)}')`:`'${n.id}'`;return s.unshift(`/${a}[@id=${g}]`),"/"+s.join("")}let p=1;if(c)for(let g of c.children){if(g===n)break;g.localName===a&&p++;}s.unshift(`/${a}[${p}]`),n=c;}return "/html/body"+s.join("")}var ct="data-feedback-anchor";function Ws(o){let s=Co(o,{className:F=>!/^(css|sc|emotion|styled)-/.test(F)&&!/^[a-z]{1,3}[A-Za-z0-9]{4,8}$/.test(F),attr:F=>["data-testid","data-id","role","aria-label"].includes(F),idName:F=>!F.startsWith("radix-")&&!/^:r[0-9]+:$/.test(F),seedMinLength:3,optimizedMinLength:2}),n=xo(o),c=(o.textContent?.trim()??"").slice(0,120),p=De(o,"before"),g=De(o,"after"),f=Js(o),m=fr(o),b=o.closest(`[${ct}]`)?.getAttribute(ct)??null;return {cssSelector:s,xpath:n,textSnippet:c,textPrefix:p,textSuffix:g,fingerprint:f,neighborText:m,elementTag:o.tagName,elementId:o.id||void 0,anchorKey:b}}function Eo(o,s){let n=o.getBoundingClientRect();return n.left<=s.x&&n.top<=s.y&&n.right>=s.x+s.width&&n.bottom>=s.y+s.height}function Ho(o,s=document.documentElement){let n=o.x+o.width/2,a=o.y+o.height/2,c=document.elementFromPoint(n,a);if(!c||c===s)return document.body;let p=c;for(;p&&p!==document.body;){if(p.hasAttribute(ct)&&Eo(p,o))return p;p=p.parentElement;}for(p=c;p&&p!==document.body;){if(Eo(p,o))return p;p=p.parentElement;}return document.body}function Io(o,s){return s.width<=0||s.height<=0?{xPct:0,yPct:0,wPct:1,hPct:1}:{xPct:(o.x-s.x)/s.width,yPct:(o.y-s.y)/s.height,wPct:o.width/s.width,hPct:o.height/s.height}}UA();UA();Fr();oe();var Ur=class{constructor(s,n){this.colors=s;this.t=n;this.root=C("div",{style:`
1755
+ position:fixed;
1756
+ z-index:${2147483647};
1757
+ width:300px;
1758
+ padding:16px;
1759
+ border-radius:16px;
1760
+ background:${this.colors.glassBg};
1761
+ backdrop-filter:blur(24px);
1762
+ -webkit-backdrop-filter:blur(24px);
1763
+ border:1px solid ${this.colors.glassBorder};
1764
+ box-shadow:0 8px 32px ${this.colors.shadow}, 0 2px 8px ${this.colors.shadow};
1765
+ font-family:"Inter",system-ui,-apple-system,sans-serif;
1766
+ opacity:0;
1767
+ transform:translateY(8px) scale(0.98);
1768
+ transition:opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
1769
+ display:none;
1770
+ -webkit-font-smoothing:antialiased;
1771
+ `}),this.root.setAttribute("role","dialog"),this.root.setAttribute("aria-modal","true"),this.root.setAttribute("aria-label",this.t("popup.ariaLabel"));let a=[{type:"question",label:this.t("type.question"),icon:Cr},{type:"change",label:this.t("type.change"),icon:vr},{type:"bug",label:this.t("type.bug"),icon:Qr},{type:"other",label:this.t("type.other"),icon:yr}],c=C("div",{style:"display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px;"});for(let b of a){let F=document.createElement("button");F.style.cssText=`
1772
+ height:44px;
1773
+ border-radius:9999px;border:1px solid ${this.colors.border};
1774
+ background:${this.colors.glassBg};cursor:pointer;
1775
+ display:flex;align-items:center;justify-content:center;gap:5px;
1776
+ font-family:"Inter",system-ui,-apple-system,sans-serif;
1777
+ font-size:13px;font-weight:500;color:${this.colors.textTertiary};
1778
+ transition:all 0.2s ease;
1779
+ padding:0 12px;
1780
+ `;let I=_(b.icon);I.setAttribute("style","width:13px;height:13px;flex-shrink:0;"),F.appendChild(I);let M=document.createElement("span");U(M,b.label),F.appendChild(M),F.dataset.type=b.type,F.setAttribute("aria-pressed","false"),F.addEventListener("click",()=>{this.selectType(b.type,c);}),F.addEventListener("mouseenter",()=>{if(F.dataset.type!==this.selectedType){let O=JA(F.dataset.type??"",this.colors);F.style.background=O,F.style.borderColor=HA(F.dataset.type??"",this.colors)+"40";}}),F.addEventListener("mouseleave",()=>{F.dataset.type!==this.selectedType&&(F.style.background=this.colors.glassBg,F.style.borderColor=this.colors.border);}),c.appendChild(F);}this.textarea=document.createElement("textarea"),this.textarea.style.cssText=`
1781
+ width:100%;min-height:72px;max-height:152px;
1782
+ padding:10px 12px;border-radius:12px;
1783
+ border:1px solid ${this.colors.border};
1784
+ background:${this.colors.glassBgHeavy};
1785
+ color:${this.colors.text};font-family:"Inter",system-ui,-apple-system,sans-serif;
1786
+ font-size:13px;line-height:1.5;resize:vertical;
1787
+ outline:none;transition:all 0.2s ease;
1788
+ box-sizing:border-box;
1789
+ `,this.textarea.placeholder=this.t("popup.placeholder"),this.textarea.maxLength=5e3,this.textarea.setAttribute("aria-label",this.t("popup.textareaAria"));let p=C("div",{style:`
1790
+ font-size:11px;color:${this.colors.textTertiary};
1791
+ text-align:right;margin-top:4px;
1792
+ font-family:"Inter",system-ui,-apple-system,sans-serif;
1793
+ letter-spacing:0.01em;
1794
+ `}),g=navigator.userAgentData,f=g?g.platform==="macOS":navigator.platform?.includes("Mac")??/Macintosh|Mac OS X/i.test(navigator.userAgent);U(p,f?this.t("popup.submitHintMac"):this.t("popup.submitHintOther")),this.textarea.addEventListener("focus",()=>{this.textarea.style.borderColor=this.colors.accent,this.textarea.style.boxShadow=`0 0 0 3px ${this.colors.accent}14`,this.textarea.style.background=this.colors.bg;}),this.textarea.addEventListener("blur",()=>{this.textarea.style.borderColor=this.colors.border,this.textarea.style.boxShadow="none",this.textarea.style.background=this.colors.glassBgHeavy;}),this.textarea.addEventListener("input",()=>{this.updateSubmitState();}),this.textarea.addEventListener("keydown",b=>{b.key==="Enter"&&(b.ctrlKey||b.metaKey)&&(b.preventDefault(),this.submit()),b.key==="Escape"&&this.cancel();});let m=C("div",{style:"display:flex;justify-content:flex-end;gap:8px;margin-top:12px;"}),Q=document.createElement("button");Q.style.cssText=`
1795
+ height:34px;padding:0 16px;border-radius:9999px;
1796
+ border:1px solid ${this.colors.border};
1797
+ background:${this.colors.glassBg};
1798
+ color:${this.colors.textTertiary};font-family:"Inter",system-ui,-apple-system,sans-serif;
1799
+ font-size:13px;font-weight:500;cursor:pointer;
1800
+ transition:all 0.2s ease;
1801
+ `,U(Q,this.t("popup.cancel")),Q.addEventListener("click",()=>this.cancel()),Q.addEventListener("mouseenter",()=>{Q.style.borderColor=this.colors.accent,Q.style.color=this.colors.accent;}),Q.addEventListener("mouseleave",()=>{Q.style.borderColor=this.colors.border,Q.style.color=this.colors.textTertiary;}),this.submitBtn=document.createElement("button"),this.submitBtn.style.cssText=`
1802
+ height:34px;padding:0 18px;border-radius:9999px;
1803
+ border:none;background:${this.colors.accentGradient};
1804
+ color:#fff;font-family:"Inter",system-ui,-apple-system,sans-serif;
1805
+ font-size:13px;font-weight:600;cursor:pointer;
1806
+ opacity:0.35;pointer-events:none;
1807
+ transition:all 0.2s ease;
1808
+ box-shadow:0 2px 8px ${this.colors.accentGlow};
1809
+ `,U(this.submitBtn,this.t("popup.submit")),this.submitBtn.addEventListener("click",()=>this.submit()),m.appendChild(Q),m.appendChild(this.submitBtn),this.root.appendChild(c),this.root.appendChild(this.textarea),this.root.appendChild(p),this.root.appendChild(m),document.body.appendChild(this.root);}colors;t;root;selectedType=null;textarea;submitBtn;resolve=null;previouslyFocused=null;onKeydownTrap=null;show(s){return new Promise(n=>{this.resolve=n,this.selectedType=null,this.textarea.value="",this.updateSubmitState(),this.resetTypeButtons(),this.previouslyFocused=document.activeElement;let a=220,c=300,p=s.bottom+8,g=s.left;if(p+a>window.innerHeight){let m=s.top-a-8;m>=8?p=m:p=window.innerHeight-a-8;}g+c>window.innerWidth&&(g=s.right-c),g=Math.max(8,g),p=Math.max(8,p),this.root.style.top=`${p}px`,this.root.style.left=`${g}px`,this.root.style.display="block",this.onKeydownTrap=m=>{if(m.key==="Tab"){let Q=Array.from(this.root.querySelectorAll('button:not([disabled]), textarea, input, [tabindex]:not([tabindex="-1"])'));if(Q.length===0)return;let b=Q[0],F=Q[Q.length-1];if(!b||!F)return;m.shiftKey?(document.activeElement===b||!this.root.contains(document.activeElement))&&(m.preventDefault(),F.focus()):(document.activeElement===F||!this.root.contains(document.activeElement))&&(m.preventDefault(),b.focus());}},this.root.addEventListener("keydown",this.onKeydownTrap);let f=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;this.root.style.transition=f?"none":"",requestAnimationFrame(()=>{this.root.style.opacity="1",this.root.style.transform="translateY(0) scale(1)",this.textarea.focus();});})}selectType(s,n){this.selectedType=s;let a=n.querySelectorAll("button");for(let c of a){let p=c.dataset.type===s,g=HA(c.dataset.type??"",this.colors),f=JA(c.dataset.type??"",this.colors);c.style.background=p?f:this.colors.glassBg,c.style.borderColor=p?g+"60":this.colors.border,c.style.color=p?g:this.colors.textTertiary,c.style.fontWeight=p?"600":"500",c.setAttribute("aria-pressed",String(p));}this.updateSubmitState();}resetTypeButtons(){let s=this.root.querySelectorAll("button[data-type]");for(let n of s)n.setAttribute("aria-pressed","false"),n.style.background=this.colors.glassBg,n.style.borderColor=this.colors.border,n.style.color=this.colors.textTertiary,n.style.fontWeight="500";}updateSubmitState(){let s=this.selectedType!==null&&this.textarea.value.trim().length>0;this.submitBtn.disabled=!s,this.submitBtn.style.opacity=s?"1":"0.35",this.submitBtn.style.pointerEvents=s?"auto":"none";}submit(){!this.selectedType||!this.textarea.value.trim()||(this.resolve?.({type:this.selectedType,message:this.textarea.value.trim()}),this.resolve=null,this.hideElement());}cancel(){this.resolve?.(null),this.resolve=null,this.hideElement();}hideElement(){this.onKeydownTrap&&(this.root.removeEventListener("keydown",this.onKeydownTrap),this.onKeydownTrap=null),this.root.style.opacity="0",this.root.style.transform="translateY(8px) scale(0.98)",this.previouslyFocused?.focus(),this.previouslyFocused=null,setTimeout(()=>{this.root.style.display="none";},250);}destroy(){this.root.remove();}};var dt,Go=false;async function Bh(){if(dt!==void 0)return dt;try{let o=await Promise.resolve().then(()=>qu(Po(),1));return dt=o.default??o,dt}catch(o){return dt=null,Go||(Go=true,console.warn("[siteping] html2canvas import failed unexpectedly. Capture is disabled for this session \u2014 feedbacks are still submitted, just without screenshots. Underlying error:",o)),null}}async function _o(o,s){let n=await Bh();if(!n)return null;let a=.85,c=1200;try{let p=await n(document.body,{x:window.scrollX+o.x,y:window.scrollY+o.y,width:o.width,height:o.height,scale:window.devicePixelRatio,useCORS:!0,allowTaint:!0,logging:!1,ignoreElements:F=>F.tagName==="SITEPING-WIDGET"||F.closest?.("siteping-widget")!==null||F.getAttribute?.("data-siteping-ignore")==="true"});if(p.width<=c)return p.toDataURL("image/jpeg",a);let g=c/p.width,f=c,m=Math.round(p.height*g),Q=document.createElement("canvas");Q.width=f,Q.height=m;let b=Q.getContext("2d");return b?(b.drawImage(p,0,0,f,m),Q.toDataURL("image/jpeg",a)):null}catch(p){return console.warn("[siteping] Screenshot capture failed:",p),null}}var xr=class{constructor(s,n,a,c=false){this.colors=s;this.bus=n;this.t=a;this.enableScreenshot=c;this.popup=new Ur(s,a),this.bus.on("annotation:start",()=>this.activate());}colors;bus;t;enableScreenshot;overlay=null;toolbar=null;drawingRect=null;startX=0;startY=0;isDrawing=false;isActive=false;popup;savedOverflow="";preActiveFocusElement=null;rafId=null;pendingMoveEvent=null;async maybeCapture(s){return this.enableScreenshot?_o(s):null}activate(){if(this.isActive)return;this.isActive=true,this.preActiveFocusElement=document.activeElement,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden",this.overlay=C("div",{style:`
1810
+ position:fixed;inset:0;
1811
+ z-index:${2147483646};
1812
+ background:rgba(15, 23, 42, 0.04);
1813
+ cursor:crosshair;
1814
+ `}),this.overlay.setAttribute("aria-hidden","true"),this.toolbar=C("div",{style:`
1815
+ position:fixed;top:0;left:0;right:0;
1816
+ z-index:${2147483647};
1817
+ height:52px;
1818
+ background:${this.colors.glassBg};
1819
+ backdrop-filter:blur(24px);
1820
+ -webkit-backdrop-filter:blur(24px);
1821
+ border-bottom:1px solid ${this.colors.glassBorder};
1822
+ display:flex;align-items:center;justify-content:center;gap:16px;
1823
+ font-family:"Inter",system-ui,-apple-system,sans-serif;
1824
+ font-size:14px;color:${this.colors.text};
1825
+ box-shadow:0 4px 16px ${this.colors.shadow};
1826
+ -webkit-font-smoothing:antialiased;
1827
+ `});let s=C("span",{style:`
1828
+ width:8px;height:8px;border-radius:50%;
1829
+ background:${this.colors.accent};
1830
+ box-shadow:0 0 8px ${this.colors.accentGlow};
1831
+ animation:pulse 1.5s ease-in-out infinite;
1832
+ `}),n=document.createElement("style");n.textContent=["@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.4}}","@media(prefers-reduced-motion:reduce){@keyframes pulse{from,to{opacity:1}}}"].join(""),this.toolbar.appendChild(n);let a=C("span",{style:"font-weight:500;letter-spacing:-0.01em;"});U(a,this.t("annotator.instruction"));let c=document.createElement("button");c.style.cssText=`
1833
+ height:34px;padding:0 18px;border-radius:9999px;
1834
+ border:1px solid ${this.colors.border};
1835
+ background:${this.colors.glassBg};
1836
+ color:${this.colors.textTertiary};font-family:"Inter",system-ui,-apple-system,sans-serif;
1837
+ font-size:13px;font-weight:500;cursor:pointer;
1838
+ transition:all 0.2s ease;
1839
+ `,U(c,this.t("annotator.cancel")),c.addEventListener("click",()=>this.deactivate()),c.addEventListener("mouseenter",()=>{c.style.borderColor=this.colors.typeBug,c.style.color=this.colors.typeBug,c.style.background=this.colors.typeBugBg;}),c.addEventListener("mouseleave",()=>{c.style.borderColor=this.colors.border,c.style.color=this.colors.textTertiary,c.style.background=this.colors.glassBg;}),this.toolbar.appendChild(s),this.toolbar.appendChild(a),this.toolbar.appendChild(c),this.overlay.addEventListener("mousedown",this.onMouseDown),this.overlay.addEventListener("mousemove",this.onMouseMove),this.overlay.addEventListener("mouseup",this.onMouseUp),this.overlay.addEventListener("touchstart",this.onTouchStart,{passive:false}),this.overlay.addEventListener("touchmove",this.onTouchMove,{passive:false}),this.overlay.addEventListener("touchend",this.onTouchEnd),this.overlay.addEventListener("keydown",this.onOverlayKeyDown),this.overlay.setAttribute("tabindex","0"),document.addEventListener("keydown",this.onKeyDown),document.body.appendChild(this.overlay),document.body.appendChild(this.toolbar);}deactivate(){this.isActive&&(this.isActive=false,this.isDrawing=false,this.preActiveFocusElement=null,this.rafId!==null&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.pendingMoveEvent=null,document.body.style.overflow=this.savedOverflow,document.removeEventListener("keydown",this.onKeyDown),this.overlay?.remove(),this.toolbar?.remove(),this.drawingRect?.remove(),this.overlay=null,this.toolbar=null,this.drawingRect=null,this.bus.emit("annotation:end"));}onKeyDown=s=>{s.key==="Escape"&&this.deactivate();};onOverlayKeyDown=async s=>{if(s.key!=="Enter")return;s.preventDefault();let n=this.preActiveFocusElement;if(!n||!(n instanceof HTMLElement))return;let a=n.getBoundingClientRect();if(a.width<=0||a.height<=0)return;let c=new DOMRect(a.x,a.y,a.width,a.height),p=await this.popup.show(c);if(!p)return;let f={anchor:Ws(n),rect:{xPct:0,yPct:0,wPct:1,hPct:1},scrollX:window.scrollX,scrollY:window.scrollY,viewportW:window.innerWidth,viewportH:window.innerHeight,devicePixelRatio:window.devicePixelRatio},m=await this.maybeCapture(c);this.deactivate(),this.bus.emit("annotation:complete",{annotation:f,type:p.type,message:p.message,screenshotDataUrl:m});};onMouseDown=s=>{this.startDrawing(s.clientX,s.clientY);};onTouchStart=s=>{s.preventDefault();let n=s.touches[0];n&&this.startDrawing(n.clientX,n.clientY);};startDrawing(s,n){this.isDrawing=true,this.startX=s,this.startY=n,this.drawingRect?.remove(),this.drawingRect=C("div",{style:`
1840
+ position:fixed;
1841
+ border:2px solid ${this.colors.accent};
1842
+ background:${this.colors.accent}12;
1843
+ pointer-events:none;
1844
+ border-radius:8px;
1845
+ box-shadow:0 0 16px ${this.colors.accentGlow};
1846
+ transition:box-shadow 0.15s ease;
1847
+ `}),this.overlay?.appendChild(this.drawingRect);}onMouseMove=s=>{this.scheduleRectUpdate(s);};onTouchMove=s=>{s.preventDefault(),s.touches[0]&&this.scheduleRectUpdate(s.touches[0]);};scheduleRectUpdate(s){!this.isDrawing||!this.drawingRect||(this.pendingMoveEvent=s,this.rafId===null&&(this.rafId=requestAnimationFrame(()=>{this.rafId=null;let n=this.pendingMoveEvent;if(!n||!this.drawingRect)return;let a=Math.min(n.clientX,this.startX),c=Math.min(n.clientY,this.startY),p=Math.abs(n.clientX-this.startX),g=Math.abs(n.clientY-this.startY);this.drawingRect.style.left=`${a}px`,this.drawingRect.style.top=`${c}px`,this.drawingRect.style.width=`${p}px`,this.drawingRect.style.height=`${g}px`;})));}onTouchEnd=async s=>{let n=s.changedTouches[0];n&&await this.finishDrawing(n.clientX,n.clientY);};onMouseUp=async s=>{await this.finishDrawing(s.clientX,s.clientY);};finishDrawing=async(s,n)=>{if(!this.isDrawing||!this.drawingRect)return;this.isDrawing=false;let a=Math.min(s,this.startX),c=Math.min(n,this.startY),p=Math.abs(s-this.startX),g=Math.abs(n-this.startY);if(p<10||g<10){this.drawingRect.remove(),this.drawingRect=null;return}let f=new DOMRect(a,c,p,g),m=await this.popup.show(f);if(!m){this.drawingRect?.remove(),this.drawingRect=null;return}let Q=this.buildAnnotation(f);this.drawingRect?.remove(),this.drawingRect=null;let b=await this.maybeCapture(f);this.deactivate(),this.bus.emit("annotation:complete",{annotation:Q,type:m.type,message:m.message,screenshotDataUrl:b});};buildAnnotation(s){this.overlay&&(this.overlay.style.pointerEvents="none");let n=Ho(s);this.overlay&&(this.overlay.style.pointerEvents="auto");let a=Ws(n),c=n.getBoundingClientRect(),p=Io(s,c);return {anchor:a,rect:p,scrollX:window.scrollX,scrollY:window.scrollY,viewportW:window.innerWidth,viewportH:window.innerHeight,devicePixelRatio:window.devicePixelRatio}}destroy(){this.deactivate(),this.popup.destroy();}};var WA=class extends Error{code;retryable;constructor(s,n,a){super(s),this.code=n,this.retryable=a,this.name="SitepingError";}},Me=class extends WA{constructor(s){super(s,"NETWORK",true),this.name="SitepingNetworkError";}},pt=class extends WA{constructor(s){super(s,"VALIDATION",false),this.name="SitepingValidationError";}},ut=class extends WA{constructor(s){super(s,"AUTH",false),this.name="SitepingAuthError";}};function tn(o){return {cssSelector:o.anchor.cssSelector,xpath:o.anchor.xpath,textSnippet:o.anchor.textSnippet,elementTag:o.anchor.elementTag,elementId:o.anchor.elementId,textPrefix:o.anchor.textPrefix,textSuffix:o.anchor.textSuffix,fingerprint:o.anchor.fingerprint,neighborText:o.anchor.neighborText,anchorKey:o.anchor.anchorKey??null,xPct:o.rect.xPct,yPct:o.rect.yPct,wPct:o.rect.wPct,hPct:o.rect.hPct,scrollX:o.scrollX,scrollY:o.scrollY,viewportW:o.viewportW,viewportH:o.viewportH,devicePixelRatio:o.devicePixelRatio}}async function ht(o,s){let n=await o.text().catch(()=>"Unknown error"),a=n?`${o.status} ${n}`:`${o.status}`,c=`${s}: ${a}`;return o.status===401||o.status===403?new ut(c):o.status>=400&&o.status<500?new pt(c):new WA(c,"SERVER",false)}function gt(o,s){if(o instanceof WA&&o instanceof Me)return o;let n=o instanceof Error?o.message:String(o);return new Me(`${s}: ${n}`)}var fh=3,wh=1e4,ft="siteping_retry_queue",mh=20;async function Bt(o,s,n=fh){for(let a=0;a<=n;a++){let c=new AbortController,p=setTimeout(()=>c.abort(),wh);try{let m=await fetch(o,{...s,signal:c.signal});if(clearTimeout(p),m.ok||m.status>=400&&m.status<500||a===n)return m}catch(m){if(clearTimeout(p),a===n)throw m}let g=1e3*2**a,f=Math.random()*1e3-500;await new Promise(m=>setTimeout(m,g+f));}throw new Error("Max retries exceeded")}var bh="siteping_retry_queue";async function Vo(o){return typeof navigator<"u"&&navigator.locks?navigator.locks.request(bh,()=>o()):o()}function Ch(o,s){Vo(()=>{try{let n=localStorage.getItem(ft),a=n?JSON.parse(n):[],c=Array.isArray(a)?a:[];c.length>=mh&&c.shift(),c.push({endpoint:o,payload:s}),localStorage.setItem(ft,JSON.stringify(c));}catch{}});}async function Xo(o){await Vo(async()=>{try{let s=localStorage.getItem(ft);if(!s)return;let n=JSON.parse(s),a=Array.isArray(n)?n:[],c=a.filter(f=>f.endpoint===o);if(c.length===0)return;let p=[];for(let f of c)try{(await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f.payload)})).ok||p.push(f);}catch{p.push(f);}let g=a.filter(f=>f.endpoint!==o).concat(p);g.length>0?localStorage.setItem(ft,JSON.stringify(g)):localStorage.removeItem(ft);}catch{}});}var Er=class{constructor(s,n){this.endpoint=s;this.projectName=n;}endpoint;projectName;async sendFeedback(s){try{let n;try{n=await Bt(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});}catch(a){throw gt(a,"Failed to send feedback")}if(!n.ok)throw await ht(n,"Failed to send feedback");return await n.json()}catch(n){throw Ch(this.endpoint,s),n}}async getFeedbacks(s,n){let a=new URLSearchParams({projectName:s});n?.page&&a.set("page",String(n.page)),n?.limit&&a.set("limit",String(n.limit)),n?.type&&a.set("type",n.type),n?.status&&a.set("status",n.status),n?.search&&a.set("search",n.search),n?.url&&a.set("url",n.url),n?.urlPattern&&a.set("urlPattern",n.urlPattern);let c;try{c=await Bt(`${this.endpoint}?${a.toString()}`,{method:"GET",cache:"no-store"});}catch(p){throw gt(p,"Failed to fetch feedbacks")}if(!c.ok)throw await ht(c,"Failed to fetch feedbacks");return await c.json()}async resolveFeedback(s,n){let a;try{a=await Bt(this.endpoint,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:s,projectName:this.projectName,status:n?"resolved":"open"})});}catch(c){throw gt(c,"Failed to update feedback")}if(!a.ok)throw await ht(a,"Failed to update feedback");return await a.json()}async deleteFeedback(s){let n;try{n=await Bt(this.endpoint,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:s,projectName:this.projectName})});}catch(a){throw gt(a,"Failed to delete feedback")}if(!n.ok)throw await ht(n,"Failed to delete feedback")}async deleteAllFeedbacks(s){let n;try{n=await Bt(this.endpoint,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectName:s,deleteAll:!0})});}catch(a){throw gt(a,"Failed to delete all feedbacks")}if(!n.ok)throw await ht(n,"Failed to delete all feedbacks")}};var vh=["log","info","warn","error"];function Qh(o){if(o===null)return "null";if(o===void 0)return "undefined";if(typeof o=="string")return o;if(typeof o=="number"||typeof o=="boolean"||typeof o=="bigint")return String(o);if(o instanceof Error)return `${o.name}: ${o.message}${o.stack?`
1848
+ ${o.stack}`:""}`;try{let s=new WeakSet;return JSON.stringify(o,(n,a)=>{if(typeof a=="function")return "[Function]";if(typeof a=="symbol")return a.toString();if(typeof a=="object"&&a!==null){if(s.has(a))return "[Circular]";s.add(a);}return a})}catch{try{return String(o)}catch{return "[Unserializable]"}}}function yh(o){let s="";for(let n=0;n<o.length&&(n>0&&(s+=" "),s+=Qh(o[n]),!(s.length>=500));n++);return s.length>500&&(s=`${s.slice(0,499)}\u2026`),s}var Hr=class{maxEntries;entries=[];originals=new Map;disposed=false;constructor(s=50){if(this.maxEntries=Math.min(Math.max(Math.floor(s),0),1e3),!(typeof console>"u"))for(let n of vh){let a=console[n];if(typeof a!="function")continue;this.originals.set(n,a);let c=this,p=function(...g){try{c.push(n,g);}catch{}a.apply(this??console,g);};try{Object.defineProperty(p,"name",{value:n});}catch{}console[n]=p;}}push(s,n){this.maxEntries!==0&&(this.entries.length>=this.maxEntries&&this.entries.shift(),this.entries.push({level:s,timestamp:new Date().toISOString(),message:yh(n)}));}getEntries(){return this.entries.slice()}dispose(){if(!this.disposed&&(this.disposed=true,!(typeof console>"u"))){for(let[s,n]of this.originals)try{console[s]=n;}catch{}this.originals.clear();}}};function Yo(o){return o.length<=2e3?o:`${o.slice(0,1999)}\u2026`}function Jo(o){if(typeof o=="string")return o;if(o instanceof URL)return o.href;if(typeof o=="object"&&o!==null&&"url"in o){let s=o.url;if(typeof s=="string")return s}try{return String(o)}catch{return "(unknown)"}}var Ir=class{maxEntries;entries=[];originalFetch=null;originalXhrOpen=null;originalXhrSend=null;disposed=false;constructor(s=20){this.maxEntries=Math.min(Math.max(Math.floor(s),0),500),this.installFetch(),this.installXhr();}push(s){this.maxEntries!==0&&(this.entries.length>=this.maxEntries&&this.entries.shift(),this.entries.push(s));}installFetch(){if(typeof globalThis.fetch!="function")return;let s=globalThis.fetch;this.originalFetch=s;let n=async(a,c)=>{let p=new Date,g=typeof performance<"u"?performance.now():Date.now(),f=Yo(Jo(a)),m=(c?.method??(a instanceof Request?a.method:"GET")).toUpperCase();try{let Q=await s(a,c);if(!Q.ok){let b=typeof performance<"u"?performance.now():Date.now();this.push({url:f,method:m,status:Q.status,durationMs:Math.round(b-g),timestamp:p.toISOString()});}return Q}catch(Q){let b=typeof performance<"u"?performance.now():Date.now();throw this.push({url:f,method:m,status:0,durationMs:Math.round(b-g),timestamp:p.toISOString()}),Q}};globalThis.fetch=n;}installXhr(){if(typeof XMLHttpRequest>"u")return;let s=XMLHttpRequest.prototype,n=s.open,a=s.send;this.originalXhrOpen=n,this.originalXhrSend=a;let c=this,p=new WeakMap;s.open=function(g,f,...m){try{p.set(this,{method:g.toUpperCase(),url:Yo(Jo(f)),startedAt:new Date,t0:typeof performance<"u"?performance.now():Date.now()});}catch{}return n.call(this,g,f,...m)},s.send=function(g){let f=p.get(this);if(f){let m=()=>{try{let Q=typeof performance<"u"?performance.now():Date.now(),b=this.status;(b===0||b>=400)&&c.push({url:f.url,method:f.method,status:b,durationMs:Math.round(Q-f.t0),timestamp:f.startedAt.toISOString()});}catch{}};try{this.addEventListener("loadend",m,{once:!0});}catch{try{this.addEventListener("loadend",m);}catch{}}}return a.call(this,g??null)};}getEntries(){return this.entries.slice()}dispose(){if(!this.disposed){if(this.disposed=true,this.originalFetch&&typeof globalThis.fetch=="function")try{globalThis.fetch=this.originalFetch;}catch{}if(typeof XMLHttpRequest<"u")try{this.originalXhrOpen&&(XMLHttpRequest.prototype.open=this.originalXhrOpen),this.originalXhrSend&&(XMLHttpRequest.prototype.send=this.originalXhrSend);}catch{}}}};var wt=class{listeners=new Map;on(s,n){this.listeners.has(s)||this.listeners.set(s,new Set);let a=this.listeners.get(s);return a.add(n),()=>{a.delete(n);}}off(s,n){let a=this.listeners.get(s);a&&a.delete(n);}emit(s,...n){let a=this.listeners.get(s);if(a)for(let c of a)try{c(...n);}catch(p){console.error(`[siteping] Error in event listener for "${String(s)}":`,p);}}removeAll(){this.listeners.clear();}};UA();Fr();var Fh=54,kr=class{constructor(s,n,a,c){this.bus=a;this.t=c;let p=n.position??"bottom-right",g=p==="bottom-right";this.items=[{id:"chat",icon:ko,label:c("fab.messages")},{id:"annotate",icon:Lo,label:c("fab.annotate")},{id:"toggle-annotations",icon:$s,iconAlt:zs,label:c("fab.annotations")}],this.fab=document.createElement("button"),this.fab.className=`sp-fab sp-fab--${p} sp-anim-fab-in`,this.fab.style.position="fixed",this.fab.appendChild(_(js)),this.fab.setAttribute("aria-label",c("fab.aria")),this.fab.setAttribute("aria-expanded","false"),this.fab.addEventListener("click",()=>this.toggle()),this.radialContainer=document.createElement("div"),this.radialContainer.className=`sp-radial sp-radial--${p}`,this.radialContainer.setAttribute("role","menu");for(let Q=0;Q<this.items.length;Q++){let b=this.items[Q];if(!b)continue;let F=document.createElement("button");F.className="sp-radial-item",F.style.setProperty("--sp-i",String(Q)),F.appendChild(_(b.icon)),F.setAttribute("role","menuitem"),F.setAttribute("aria-label",b.label),F.dataset.itemId=b.id,F.addEventListener("click",M=>{M.stopPropagation(),this.handleItemClick(b.id);});let I=document.createElement("span");I.className="sp-radial-label",I.textContent=b.label,I.style.cssText=g?"position:absolute; right:54px; top:50%; transform:translateY(-50%); white-space:nowrap;":"position:absolute; left:54px; top:50%; transform:translateY(-50%); white-space:nowrap;",F.appendChild(I),this.radialContainer.appendChild(F);}this.root=document.createElement("div"),this.root.appendChild(this.radialContainer),this.root.appendChild(this.fab),s.appendChild(this.root);let f=s.host;this.onDocumentClick=Q=>{this.isOpen&&!Q.composedPath().includes(f)&&this.close();},document.addEventListener("click",this.onDocumentClick);let m=Q=>{Q.key==="Escape"&&this.isOpen&&(Q.stopPropagation(),this.close());};this.fab.addEventListener("keydown",m),this.radialContainer.addEventListener("keydown",m),this.radialContainer.addEventListener("keydown",Q=>{let b=Array.from(this.radialContainer.querySelectorAll(".sp-radial-item"));if(b.length===0||!this.isOpen)return;let F=s.activeElement??document.activeElement,I=b.indexOf(F);switch(Q.key){case "ArrowUp":{Q.preventDefault();let M=I<=0?b.length-1:I-1;b[M]?.focus();break}case "ArrowDown":{Q.preventDefault();let M=I>=b.length-1?0:I+1;b[M]?.focus();break}case "Home":{Q.preventDefault(),b[0]?.focus();break}case "End":{Q.preventDefault(),b[b.length-1]?.focus();break}}});}bus;t;root;fab;radialContainer;badgeEl=null;isOpen=false;annotationsVisible=true;items;onDocumentClick;updateBadge(s){if(s<=0){this.badgeEl?.remove(),this.badgeEl=null;return}this.badgeEl||(this.badgeEl=document.createElement("span"),this.badgeEl.className="sp-fab-badge",this.badgeEl.setAttribute("role","status"),this.badgeEl.setAttribute("aria-live","polite"),this.fab.appendChild(this.badgeEl));let n=s>99?"99+":String(s);U(this.badgeEl,n),this.badgeEl.setAttribute("aria-label",this.t("fab.badge").replace("{count}",String(s)));}toggle(){this.isOpen?this.close():this.open();}open(){this.isOpen=true,this.setFabIcon(mr),this.fab.setAttribute("aria-expanded","true"),this.radialContainer.querySelectorAll(".sp-radial-item").forEach((n,a)=>{let c=-(16+Fh*(a+1));n.style.transform=`translate(0px, ${c}px) scale(1)`,n.classList.add("sp-radial-item--open");}),requestAnimationFrame(()=>{this.radialContainer.querySelector(".sp-radial-item")?.focus();});}close(){this.isOpen=false,this.setFabIcon(js),this.fab.setAttribute("aria-expanded","false"),this.radialContainer.querySelectorAll(".sp-radial-item").forEach(n=>{n.style.transform="translate(0, 0) scale(0.8)",n.classList.remove("sp-radial-item--open");}),this.fab.focus();}setFabIcon(s){let n=this.badgeEl;this.fab.replaceChildren(_(s)),n&&this.fab.appendChild(n);}handleItemClick(s){switch(this.close(),s){case "chat":this.bus.emit("panel:toggle",true);break;case "annotate":this.bus.emit("annotation:start");break;case "toggle-annotations":{this.annotationsVisible=!this.annotationsVisible,this.bus.emit("annotations:toggle",this.annotationsVisible);let n=this.radialContainer.querySelector('[data-item-id="toggle-annotations"]');n&&n.replaceChildren(_(this.annotationsVisible?$s:zs));break}}}destroy(){document.removeEventListener("click",this.onDocumentClick),this.root.remove();}};mt();var ca="siteping_identity";function da(){try{let o=localStorage.getItem(ca);if(!o)return null;let s=JSON.parse(o);if(typeof s=="object"&&s!==null&&"name"in s&&typeof s.name=="string"&&"email"in s&&typeof s.email=="string"){let n=s;if(n.name&&n.email)return n}return null}catch{return null}}function pa(o){try{localStorage.setItem(ca,JSON.stringify(o));}catch{}}function Lh(o,s){if(o===s)return 0;if(o.length===0)return s.length;if(s.length===0)return o.length;if(o.length>s.length){let g=o;o=s,s=g;}let n=o.length,a=s.length,c=new Array(n+1);for(let g=0;g<=n;g++)c[g]=g;let p=new Array(n+1);for(let g=1;g<=a;g++){p[0]=g;for(let m=1;m<=n;m++){let Q=c[m-1]??0;p[m]=o[m-1]===s[g-1]?Q:1+Math.min(Q,c[m]??0,p[m-1]??0);}let f=c;c=p,p=f;}return c[n]??0}function Re(o,s){if(o===s)return 1;let n=Math.max(o.length,s.length);return n===0?1:1-Lh(o,s)/n}function rn(o,s,n=.6){if(!s||!o)return 0;if(o.includes(s))return 1;let a=s.length;if(a>o.length){let f=Re(o,s);return f>=n?f:0}let c=0,p=o.length>500?o.slice(0,500):o,g=p.length-a;for(let f=0;f<=g;f++){let m=p.slice(f,f+a),Q=Re(m,s);if(Q>c&&(c=Q),c>=.95)break}return c>=n?c:0}var Sh=300,Th=.3;function Sr(o,s){if(!s.textSnippet)return true;let n=(o.textContent?.trim()??"").slice(0,500);return rn(n,s.textSnippet,.5)>Th}function Kh(o){if(o.anchorKey){let s=o.anchorKey.replace(/\\/g,"\\\\").replace(/"/g,'\\"');try{let n=document.querySelector(`[${ct}="${s}"]`);if(n&&Sr(n,o))return {element:n,confidence:1,strategy:"anchorKey"}}catch{}}if(o.elementId){let s=document.getElementById(o.elementId);if(s&&s.tagName===o.elementTag&&Sr(s,o))return {element:s,confidence:1,strategy:"id"}}try{let s=document.querySelector(o.cssSelector);if(s&&s.tagName===o.elementTag&&Sr(s,o))return {element:s,confidence:.95,strategy:"css"}}catch{}try{let n=document.evaluate(o.xpath,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(n instanceof Element&&n.tagName===o.elementTag&&Sr(n,o))return {element:n,confidence:.9,strategy:"xpath"}}catch{}return Dh(o)}function Dh(o){let s=o.elementTag.toLowerCase(),n=document.querySelectorAll(s);if(n.length===0)return null;let a=null,c=0,p=Math.min(n.length,Sh);for(let g=0;g<p;g++){let f=n[g];if(!f)continue;let m=Mh(f,o);if(m>c&&(c=m,a=f,c>=.85))break}return !a||c<.4?null:{element:a,confidence:Math.min(c,.85),strategy:"scan"}}function Mh(o,s){let n=0,a=0,c=(o.textContent?.trim()??"").slice(0,500);if(s.textSnippet&&(a+=40,n+=rn(c,s.textSnippet,.5)*40),s.fingerprint&&(a+=20,n+=Uo(o,s.fingerprint)*20),s.textPrefix||s.textSuffix){a+=20;let p=0,g=0;if(s.textPrefix){let f=De(o,"before");p+=f?Re(f,s.textPrefix):0,g++;}if(s.textSuffix){let f=De(o,"after");p+=f?Re(f,s.textSuffix):0,g++;}g>0&&(n+=p/g*20);}if(s.neighborText){a+=20;let p=fr(o);n+=p?Re(p,s.neighborText)*20:0;}return a>0?n/a:0}function Tr(o,s){let n=Kh(o);if(!n)return null;let a=n.element.getBoundingClientRect(),c=new DOMRect(a.x+s.xPct*a.width,a.y+s.yPct*a.height,s.wPct*a.width,s.hPct*a.height);return {element:n.element,rect:c,confidence:n.confidence,strategy:n.strategy}}UA();mt();oe();function sn(o){return {cssSelector:o.cssSelector,xpath:o.xpath,textSnippet:o.textSnippet,elementTag:o.elementTag,elementId:o.elementId??void 0,textPrefix:o.textPrefix,textSuffix:o.textSuffix,fingerprint:o.fingerprint,neighborText:o.neighborText,anchorKey:o.anchorKey??null}}function Kr(o){return {xPct:o.xPct,yPct:o.yPct,wPct:o.wPct,hPct:o.hPct}}var ua=13;function ha(o){return {top:o.top+window.scrollY-ua,left:o.right+window.scrollX-ua}}function bt(o,s){let n=o.entries[s],a=o.elementIndices[s];if(!(!n||a===void 0))return n.elements[a]}var ga=300,Ba=200,Rh=.7,Oh=28,fa=32,Dr=class{constructor(s,n,a,c,p=null){this.colors=s;this.tooltip=n;this.bus=a;this.t=c;this.liveRegion=p;this.container=C("div",{style:`position:absolute;top:0;left:0;pointer-events:none;z-index:${2147483646};`}),this.container.id="siteping-markers",document.body.appendChild(this.container),this.bus.on("annotations:toggle",g=>{this.container.style.display=g?"block":"none";}),this.resizeHandler=()=>this.scheduleReposition(),window.addEventListener("resize",this.resizeHandler,{passive:true}),this.scrollHandler=()=>this.scheduleReposition(),window.addEventListener("scroll",this.scrollHandler,{passive:true,capture:true}),this.mutationObserver=new MutationObserver(g=>{let f=false;for(let m of g)if(!(this.container.contains(m.target)||this.tooltip.contains(m.target))){f=true;break}f&&this.scheduleReposition();}),this.mutationObserver.observe(document.body,{childList:true,subtree:true,attributes:false,characterData:false}),this.onDocumentClickForClusters=g=>{this.container.contains(g.target)||this.collapseAllClusters();},document.addEventListener("click",this.onDocumentClickForClusters);}colors;tooltip;bus;t;liveRegion;container;entries=[];highlightElements=[];pinnedFeedback=null;onDocumentClick=null;repositionTimer=null;mutationObserver=null;scrollHandler=null;resizeHandler=null;anchorCache=new Map;clusters=[];onDocumentClickForClusters=null;get count(){return this.entries.length}scheduleReposition(){this.repositionTimer||("requestIdleCallback"in window?this.repositionTimer=window.requestIdleCallback(()=>{this.repositionTimer=null,this.repositionAll();},{timeout:Ba+100}):this.repositionTimer=+setTimeout(()=>{this.repositionTimer=null,this.repositionAll();},Ba));}repositionAll(){let s=new Set;for(let n of this.entries)for(let a=0;a<n.feedback.annotations.length;a++){let c=n.elements[a];if(!c)continue;let p=n.feedback.annotations[a];if(!p)continue;let g=`${n.feedback.id}:${a}`;s.add(g);let m=this.anchorCache.get(g)?.deref(),Q;if(m?.isConnected){let F=m.getBoundingClientRect(),I=Kr(p);Q={element:m,rect:new DOMRect(F.left+I.xPct*F.width,F.top+I.yPct*F.height,I.wPct*F.width,I.hPct*F.height),confidence:1,strategy:"css"};}else Q=Tr(sn(p),Kr(p)),Q?.element&&this.anchorCache.set(g,new WeakRef(Q.element));if(!Q){c.style.display="none";continue}let b=ha(Q.rect);n.baseTop=b.top,n.baseLeft=b.left,c.style.display="flex",this.applyConfidenceStyle(c,Q.confidence,n.feedback);}for(let n of this.anchorCache.keys())s.has(n)||this.anchorCache.delete(n);this.applyClusterPositions(),this.pinnedFeedback&&this.showHighlight(this.pinnedFeedback);}applyClusterPositions(){for(let s of this.clusters)s.expanded?this.applyFanPositions(s):this.applyStackPositions(s);}render(s){this.clear(),s.forEach((n,a)=>{let c=this.buildEntry(n,a+1);this.entries.push(c);}),this.buildClusters(),this.liveRegion&&this.entries.length>0&&(this.liveRegion.textContent=this.t("marker.count").replace("{count}",String(this.entries.length)));}addFeedback(s,n){let a=this.buildEntry(s,n);for(let c of a.elements)c.style.animation="sp-marker-in 0.35s cubic-bezier(0.34,1.56,0.64,1) both";this.entries.push(a),this.buildClusters();}buildEntry(s,n){let a={feedback:s,elements:[],baseTop:0,baseLeft:0};for(let c of s.annotations){let p=Tr(sn(c),Kr(c));if(!p)continue;let g=ha(p.rect);a.baseTop=g.top,a.baseLeft=g.left;let f=this.createMarker(n,s,g);this.applyConfidenceStyle(f,p.confidence,s),this.container.appendChild(f),a.elements.push(f);}return a}buildClusters(){for(let a of this.container.querySelectorAll(".sp-cluster-badge"))a.remove();let s=[];for(let a of this.entries)for(let c=0;c<a.elements.length;c++)s.push({entry:a,elIdx:c});let n=new Set;this.clusters=[];for(let a=0;a<s.length;a++){if(n.has(a))continue;let c=s[a];if(!c)continue;let p={entries:[c.entry],elementIndices:[c.elIdx],expanded:false};n.add(a);for(let g=a+1;g<s.length;g++){if(n.has(g))continue;let f=c.entry,m=s[g];if(!m)continue;let Q=m.entry;Math.sqrt((f.baseLeft-Q.baseLeft)**2+(f.baseTop-Q.baseTop)**2)<Oh&&(p.entries.push(Q),p.elementIndices.push(m.elIdx),n.add(g));}this.clusters.push(p);}for(let a of this.clusters)a.entries.length<=1||(this.applyStackPositions(a),this.addClusterBadge(a));}applyStackPositions(s){let n=s.entries[0];if(!n)return;let{baseTop:a,baseLeft:c}=n,p=s.entries.length<=1;for(let g=0;g<s.entries.length;g++){let f=bt(s,g);f&&(f.style.top=`${a+(p?0:g*3)}px`,f.style.left=`${c+(p?0:g*3)}px`,f.style.zIndex=String(g+1));}}applyFanPositions(s){let n=s.entries[0];if(!n)return;let{baseTop:a,baseLeft:c}=n,p=s.entries.length,g=(p-1)*fa,f=c-g/2;for(let m=0;m<p;m++){let Q=bt(s,m);Q&&(Q.style.top=`${a}px`,Q.style.left=`${f+m*fa}px`,Q.style.zIndex=String(10+m));}}addClusterBadge(s){let n=bt(s,s.entries.length-1);if(!n)return;let a=C("div",{class:"sp-cluster-badge",style:`
1849
+ position:absolute;top:-6px;right:-6px;
1850
+ min-width:16px;height:16px;padding:0 4px;
1851
+ border-radius:9999px;
1852
+ background:${this.colors.accent};color:#fff;
1853
+ font-size:10px;font-weight:700;
1854
+ display:flex;align-items:center;justify-content:center;
1855
+ border:1.5px solid #fff;
1856
+ pointer-events:none;
1857
+ font-family:"Inter",system-ui,-apple-system,sans-serif;
1858
+ line-height:1;
1859
+ `});U(a,String(s.entries.length)),n.appendChild(a);}setBadgesVisible(s,n){for(let a=0;a<s.entries.length;a++){let c=bt(s,a)?.querySelector(".sp-cluster-badge");c&&(c.style.display=n?"flex":"none");}}findCluster(s){for(let n of this.clusters)if(!(n.entries.length<=1)){for(let a=0;a<n.entries.length;a++)if(bt(n,a)===s)return n}return null}handleClusterClick(s,n){let a=this.findCluster(s);return a?a.expanded?false:(n.stopPropagation(),this.collapseAllClusters(),a.expanded=true,this.applyFanPositions(a),this.setBadgesVisible(a,false),true):false}collapseCluster(s){s.expanded&&(s.expanded=false,this.applyStackPositions(s),this.setBadgesVisible(s,true));}collapseAllClusters(){for(let s of this.clusters)this.collapseCluster(s);}applyConfidenceStyle(s,n,a){let c=a.status==="resolved";n<Rh&&!c?(s.style.borderStyle="dashed",s.style.opacity="0.7",s.title=this.t("marker.approximate").replace("{confidence}",String(Math.round(n*100)))):(s.style.borderStyle="solid",s.style.opacity="1",s.title="");}createMarker(s,n,a){let c=HA(n.type,this.colors),p=n.status==="resolved",g=C("div",{style:`
1860
+ position:absolute;
1861
+ top:${a.top}px;
1862
+ left:${a.left}px;
1863
+ width:26px;height:26px;
1864
+ border-radius:50%;
1865
+ background:${p?"rgba(241,245,249,0.9)":"rgba(255,255,255,0.92)"};
1866
+ border:2px solid ${p?"#cbd5e1":c};
1867
+ display:flex;align-items:center;justify-content:center;
1868
+ font-family:"Inter",system-ui,-apple-system,sans-serif;
1869
+ font-size:11px;font-weight:700;
1870
+ color:${p?"#94a3b8":c};
1871
+ cursor:pointer;pointer-events:auto;
1872
+ box-shadow:${p?"0 2px 8px rgba(0,0,0,0.06)":`0 2px 12px ${c}25, 0 2px 6px rgba(0,0,0,0.06)`};
1873
+ transition:top 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.15s ease, box-shadow 0.15s ease;
1874
+ user-select:none;
1875
+ -webkit-font-smoothing:antialiased;
1876
+ `});g.dataset.feedbackId=n.id,g.setAttribute("tabindex","0"),g.setAttribute("role","button");let f=n.message.length>60?`${n.message.slice(0,60)}...`:n.message,m=this.t("marker.aria").replace("{number}",String(s)).replace("{type}",Ce(n.type,this.t)).replace("{message}",f);g.setAttribute("aria-label",m),g.setAttribute("aria-describedby",this.tooltip.tooltipId),U(g,p?"\u2713":String(s)),g.addEventListener("mouseenter",()=>{g.style.transform="scale(1.2)",g.style.boxShadow=p?"0 4px 16px rgba(0,0,0,0.1)":`0 4px 20px ${c}35, 0 4px 12px rgba(0,0,0,0.08)`,this.tooltip.show(n,g.getBoundingClientRect()),this.pinnedFeedback||this.showHighlight(n);}),g.addEventListener("mouseleave",()=>{g.style.transform="scale(1)",g.style.boxShadow=p?"0 2px 8px rgba(0,0,0,0.06)":`0 2px 12px ${c}25, 0 2px 6px rgba(0,0,0,0.06)`,this.tooltip.scheduleHide(),this.pinnedFeedback||this.clearHighlight();}),g.addEventListener("focus",()=>{this.tooltip.show(n,g.getBoundingClientRect()),this.pinnedFeedback||this.showHighlight(n);}),g.addEventListener("blur",()=>{this.tooltip.scheduleHide(),this.pinnedFeedback||this.clearHighlight();});let Q=b=>{b instanceof MouseEvent&&this.handleClusterClick(g,b)||(this.pinHighlight(n),this.bus.emit("panel:toggle",true),g.dispatchEvent(new CustomEvent("sp-marker-click",{detail:{feedbackId:n.id},bubbles:true})));};return g.addEventListener("click",b=>Q(b)),g.addEventListener("keydown",b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),Q(b));}),g}highlight(s){for(let n of this.entries)if(n.feedback.id===s)for(let a of n.elements)a.style.animation="sp-pulse-ring 0.7s ease-out",a.addEventListener("animationend",()=>{a.style.animation="";},{once:true});}showHighlight(s){this.removeHighlightElements();for(let n of s.annotations){let a=Tr(sn(n),Kr(n));if(!a)continue;let c=HA(s.type,this.colors),p=a.rect,g=C("div",{style:`
1877
+ position:absolute;
1878
+ top:${p.top+window.scrollY}px;
1879
+ left:${p.left+window.scrollX}px;
1880
+ width:${p.width}px;height:${p.height}px;
1881
+ border:2px solid ${c};
1882
+ background:${c}0c;
1883
+ border-radius:8px;
1884
+ pointer-events:none;z-index:-1;
1885
+ opacity:0;
1886
+ box-shadow:0 0 16px ${c}20;
1887
+ transition:opacity ${ga}ms ease;
1888
+ `});this.container.appendChild(g),this.highlightElements.push(g),g.offsetHeight,g.style.opacity="1";}}pinHighlight(s){this.unpinHighlight(),this.showHighlight(s),this.pinnedFeedback=s,this.onDocumentClick=n=>{this.container.contains(n.target)||this.unpinHighlight();},document.addEventListener("click",this.onDocumentClick,{capture:true});}unpinHighlight(){this.onDocumentClick&&(document.removeEventListener("click",this.onDocumentClick,{capture:true}),this.onDocumentClick=null),this.pinnedFeedback=null,this.clearHighlight();}clearHighlight(){for(let s of this.highlightElements)s.style.opacity="0",setTimeout(()=>s.remove(),ga);this.highlightElements=[];}removeHighlightElements(){for(let s of this.highlightElements)s.remove();this.highlightElements=[];}clear(){this.unpinHighlight(),this.container.replaceChildren(),this.entries=[],this.clusters=[],this.anchorCache.clear();}destroy(){this.unpinHighlight(),this.repositionTimer&&("cancelIdleCallback"in window&&window.cancelIdleCallback(this.repositionTimer),clearTimeout(this.repositionTimer)),this.resizeHandler&&window.removeEventListener("resize",this.resizeHandler),this.scrollHandler&&window.removeEventListener("scroll",this.scrollHandler,{capture:true}),this.onDocumentClickForClusters&&document.removeEventListener("click",this.onDocumentClickForClusters),this.mutationObserver?.disconnect(),this.container.remove();}};var Mr=class{constructor(s,n){this.store=s;this.projectName=n;}store;projectName;async sendFeedback(s){let n=await this.store.createFeedback({projectName:s.projectName,type:s.type,message:s.message,status:"open",url:s.url,urlPattern:s.urlPattern??null,viewport:s.viewport,userAgent:s.userAgent,authorName:s.authorName,authorEmail:s.authorEmail,clientId:s.clientId,annotations:s.annotations.map(tn),screenshotDataUrl:s.screenshotDataUrl??null});return nn(n)}async getFeedbacks(s,n){let{feedbacks:a,total:c}=await this.store.getFeedbacks({projectName:s,page:n?.page,limit:n?.limit,type:n?.type,status:n?.status,search:n?.search,url:n?.url,urlPattern:n?.urlPattern});return {feedbacks:a.map(nn),total:c}}async resolveFeedback(s,n){let a=await this.store.updateFeedback(s,{status:n?"resolved":"open",resolvedAt:n?new Date:null});return nn(a)}async deleteFeedback(s){await this.store.deleteFeedback(s);}async deleteAllFeedbacks(s){await this.store.deleteAllFeedbacks(s);}};function nn(o){return {id:o.id,projectName:o.projectName,type:o.type,message:o.message,status:o.status,url:o.url,urlPattern:o.urlPattern??null,viewport:o.viewport,userAgent:o.userAgent,authorName:o.authorName,authorEmail:o.authorEmail,resolvedAt:o.resolvedAt?.toISOString()??null,createdAt:o.createdAt.toISOString(),updatedAt:o.updatedAt.toISOString(),annotations:o.annotations.map(Nh),screenshotUrl:o.screenshotUrl??null,diagnostics:o.diagnostics??null}}function Nh(o){return {id:o.id,feedbackId:o.feedbackId,cssSelector:o.cssSelector,xpath:o.xpath,textSnippet:o.textSnippet,elementTag:o.elementTag,elementId:o.elementId,textPrefix:o.textPrefix,textSuffix:o.textSuffix,fingerprint:o.fingerprint,neighborText:o.neighborText,anchorKey:o.anchorKey??null,xPct:o.xPct,yPct:o.yPct,wPct:o.wPct,hPct:o.hPct,scrollX:o.scrollX,scrollY:o.scrollY,viewportW:o.viewportW,viewportH:o.viewportH,devicePixelRatio:o.devicePixelRatio,createdAt:o.createdAt.toISOString()}}on();an();dn();pn();un();gn();var hg="linear(0, 0.006, 0.025, 0.06, 0.11, 0.17, 0.25, 0.34, 0.45, 0.56, 0.67, 0.78, 0.88, 0.95, 1.01, 1.04, 1.05, 1.04, 1.02, 1, 0.99, 1)",Bn="cubic-bezier(0.16, 1, 0.3, 1)",fn="cubic-bezier(0.34, 1.56, 0.64, 1)",gg="cubic-bezier(0.25, 1, 0.5, 1)",Da=`
1697
1889
  /* ---- Keyframes ---- */
1698
1890
 
1699
1891
  @keyframes sp-fab-in {
@@ -1767,11 +1959,11 @@
1767
1959
  /* ---- Animation classes ---- */
1768
1960
 
1769
1961
  .sp-anim-fab-in {
1770
- animation: sp-fab-in 0.5s ${bn} both;
1962
+ animation: sp-fab-in 0.5s ${hg} both;
1771
1963
  }
1772
1964
 
1773
1965
  .sp-anim-marker-in {
1774
- animation: sp-marker-in 0.35s ${Ue} both;
1966
+ animation: sp-marker-in 0.35s ${fn} both;
1775
1967
  }
1776
1968
 
1777
1969
  .sp-anim-pulse {
@@ -1779,11 +1971,11 @@
1779
1971
  }
1780
1972
 
1781
1973
  .sp-anim-flash {
1782
- animation: sp-flash-bg 0.5s ${gn};
1974
+ animation: sp-flash-bg 0.5s ${gg};
1783
1975
  }
1784
1976
 
1785
1977
  .sp-anim-slide-up {
1786
- animation: sp-slide-up 0.3s ${qe} both;
1978
+ animation: sp-slide-up 0.3s ${Bn} both;
1787
1979
  }
1788
1980
 
1789
1981
  .sp-anim-fade-in {
@@ -1794,7 +1986,7 @@
1794
1986
 
1795
1987
  .sp-panel {
1796
1988
  transform: translateX(110%);
1797
- transition: transform 0.4s ${qe};
1989
+ transition: transform 0.4s ${Bn};
1798
1990
  }
1799
1991
 
1800
1992
  .sp-panel.sp-panel--open {
@@ -1806,7 +1998,7 @@
1806
1998
  pointer-events: none;
1807
1999
  transform: translate(0, 0) scale(0.8);
1808
2000
  transition:
1809
- transform 0.35s ${Ue},
2001
+ transform 0.35s ${fn},
1810
2002
  opacity 0.2s ease,
1811
2003
  background 0.2s ease,
1812
2004
  border-color 0.2s ease,
@@ -1837,7 +2029,7 @@
1837
2029
  }
1838
2030
 
1839
2031
  .sp-card {
1840
- animation: sp-card-in 0.35s ${qe} both;
2032
+ animation: sp-card-in 0.35s ${Bn} both;
1841
2033
  animation-delay: calc(var(--sp-card-i, 0) * 40ms);
1842
2034
  }
1843
2035
 
@@ -1865,7 +2057,7 @@
1865
2057
  }
1866
2058
 
1867
2059
  .sp-fab-badge {
1868
- animation: sp-badge-in 0.4s ${Ue} both;
2060
+ animation: sp-badge-in 0.4s ${fn} both;
1869
2061
  }
1870
2062
 
1871
2063
  /* ---- Reduced motion ---- */
@@ -1878,7 +2070,7 @@
1878
2070
  }
1879
2071
  }
1880
2072
 
1881
- `;function We(n){return`
2073
+ `;oe();function wn(o){return `
1882
2074
  :host {
1883
2075
  all: initial;
1884
2076
  position: fixed;
@@ -1889,11 +2081,11 @@
1889
2081
  color: var(--sp-text);
1890
2082
  -webkit-font-smoothing: antialiased;
1891
2083
  -moz-osx-font-smoothing: grayscale;
1892
- ${mt(n)}
2084
+ ${No(o)}
1893
2085
 
1894
2086
  /* Identity modal \u2014 theme-aware backdrop + panel */
1895
- --sp-identity-bg: ${n.glassBgHeavy};
1896
- --sp-identity-overlay: ${n.bg==="#ffffff"?"rgba(15, 23, 42, 0.2)":"rgba(0, 0, 0, 0.4)"};
2087
+ --sp-identity-bg: ${o.glassBgHeavy};
2088
+ --sp-identity-overlay: ${o.bg==="#ffffff"?"rgba(15, 23, 42, 0.2)":"rgba(0, 0, 0, 0.4)"};
1897
2089
  }
1898
2090
 
1899
2091
  *, *::before, *::after {
@@ -1909,6 +2101,9 @@
1909
2101
  :focus-visible {
1910
2102
  outline: 2px solid var(--sp-accent);
1911
2103
  outline-offset: 2px;
2104
+ /* Double-ring against any background colour: the bg-coloured halo
2105
+ separates the accent ring from busy host-page surfaces. */
2106
+ box-shadow: 0 0 0 4px var(--sp-bg);
1912
2107
  }
1913
2108
 
1914
2109
  /* ============================
@@ -3044,14 +3239,14 @@
3044
3239
  }
3045
3240
  }
3046
3241
 
3047
- ${ss}
3048
- ${Qt}
3049
- ${Gt}
3050
- ${Ht}
3051
- ${_t}
3052
- ${es}
3053
- ${Yt}
3054
- `}var mn=120,fn=80,ye=class{constructor(e,t="en"){this.colors=e;this.locale=t;this.root=l("div",{style:`
3242
+ ${Da}
3243
+ ${Sa}
3244
+ ${La}
3245
+ ${va}
3246
+ ${ba}
3247
+ ${Ka}
3248
+ ${Ua}
3249
+ `}oe();UA();mt();oe();var Bg=120,fg=80,Yr=class{constructor(s,n="en"){this.colors=s;this.locale=n;this.root=C("div",{style:`
3055
3250
  position: fixed;
3056
3251
  z-index: ${2147483647};
3057
3252
  max-width: 280px;
@@ -3069,7 +3264,7 @@
3069
3264
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
3070
3265
  visibility: hidden;
3071
3266
  -webkit-font-smoothing: antialiased;
3072
- `}),this.root.setAttribute("role","tooltip"),this.root.id=this.tooltipId,this.arrow=l("div",{style:`
3267
+ `}),this.root.setAttribute("role","tooltip"),this.root.id=this.tooltipId,this.arrow=C("div",{style:`
3073
3268
  position: absolute;
3074
3269
  width: 12px;
3075
3270
  height: 12px;
@@ -3077,12 +3272,12 @@
3077
3272
  border: 1px solid ${this.colors.glassBorder};
3078
3273
  transform: rotate(45deg);
3079
3274
  pointer-events: none;
3080
- `}),this.root.appendChild(this.arrow),this.root.addEventListener("mouseenter",()=>this.cancelHide()),this.root.addEventListener("mouseleave",()=>this.scheduleHide()),document.body.appendChild(this.root)}colors;locale;root;arrow;showTimer=null;hideTimer=null;currentFeedbackId=null;tooltipId="sp-tooltip";show(e,t){this.currentFeedbackId!==e.id&&(this.cancelHide(),this.cancelShow(),this.showTimer=setTimeout(()=>{this.currentFeedbackId=e.id,this.render(e),this.position(t);let s=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;this.root.style.transition=s?"none":"",this.root.style.visibility="visible",this.root.style.opacity="1",this.root.style.transform="translateY(0) scale(1)"},mn))}scheduleHide(){this.cancelHide(),this.hideTimer=setTimeout(()=>this.hide(),fn)}hide(){this.cancelShow(),this.currentFeedbackId=null,this.root.style.opacity="0",this.root.style.transform="translateY(6px) scale(0.97)",setTimeout(()=>{this.currentFeedbackId||(this.root.style.visibility="hidden")},200)}cancelShow(){this.showTimer&&(clearTimeout(this.showTimer),this.showTimer=null)}cancelHide(){this.hideTimer&&(clearTimeout(this.hideTimer),this.hideTimer=null)}render(e){let t=Array.from(this.root.children);for(let h of t)h!==this.arrow&&h.remove();let s=M(e.type,this.colors),o=P(e.type,this.colors),i=re(this.locale),r=N(e.type,i),a=l("div",{style:"display:flex;align-items:center;gap:8px;margin-bottom:8px;"}),p=l("span",{style:`
3275
+ `}),this.root.appendChild(this.arrow),this.root.addEventListener("mouseenter",()=>this.cancelHide()),this.root.addEventListener("mouseleave",()=>this.scheduleHide()),document.body.appendChild(this.root);}colors;locale;root;arrow;showTimer=null;hideTimer=null;currentFeedbackId=null;tooltipId="sp-tooltip";show(s,n){this.currentFeedbackId!==s.id&&(this.cancelHide(),this.cancelShow(),this.showTimer=setTimeout(()=>{this.currentFeedbackId=s.id,this.render(s),this.position(n);let a=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;this.root.style.transition=a?"none":"",this.root.style.visibility="visible",this.root.style.opacity="1",this.root.style.transform="translateY(0) scale(1)";},Bg));}scheduleHide(){this.cancelHide(),this.hideTimer=setTimeout(()=>this.hide(),fg);}hide(){this.cancelShow(),this.currentFeedbackId=null,this.root.style.opacity="0",this.root.style.transform="translateY(6px) scale(0.97)",setTimeout(()=>{this.currentFeedbackId||(this.root.style.visibility="hidden");},200);}cancelShow(){this.showTimer&&(clearTimeout(this.showTimer),this.showTimer=null);}cancelHide(){this.hideTimer&&(clearTimeout(this.hideTimer),this.hideTimer=null);}render(s){let n=Array.from(this.root.children);for(let F of n)F!==this.arrow&&F.remove();let a=HA(s.type,this.colors),c=JA(s.type,this.colors),p=Lr(this.locale),g=Ce(s.type,p),f=C("div",{style:"display:flex;align-items:center;gap:8px;margin-bottom:8px;"}),m=C("span",{style:`
3081
3276
  padding:3px 10px;border-radius:9999px;
3082
3277
  font-size:11px;font-weight:600;
3083
- color:${s};background:${o};
3278
+ color:${a};background:${c};
3084
3279
  letter-spacing:0.02em;
3085
- `});c(p,r);let d=l("span",{style:`font-size:11px;color:${this.colors.textSecondary};margin-left:auto;`});c(d,V(e.createdAt,this.locale)),a.appendChild(p),a.appendChild(d);let u=l("div",{style:`font-size:13px;line-height:1.55;color:${this.colors.text};display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;`});c(u,e.message),this.root.insertBefore(a,this.arrow),this.root.insertBefore(u,this.arrow)}position(e){let t=this.root.getBoundingClientRect(),s=10,o=e.top-t.height-s,i=e.left+e.width/2-t.width/2,r=!0;o<8&&(o=e.bottom+s,r=!1),i=Math.max(8,Math.min(i,window.innerWidth-t.width-8)),this.root.style.top=`${o}px`,this.root.style.left=`${i}px`;let a=Math.max(16,Math.min(e.left+e.width/2-i-6,t.width-22));r?this.arrow.style.cssText=`
3280
+ `});U(m,g);let Q=C("span",{style:`font-size:11px;color:${this.colors.textSecondary};margin-left:auto;`});U(Q,wr(s.createdAt,this.locale)),f.appendChild(m),f.appendChild(Q);let b=C("div",{style:`font-size:13px;line-height:1.55;color:${this.colors.text};display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;`});U(b,s.message),this.root.insertBefore(f,this.arrow),this.root.insertBefore(b,this.arrow);}position(s){let n=this.root.getBoundingClientRect(),a=10,c=s.top-n.height-a,p=s.left+s.width/2-n.width/2,g=true;c<8&&(c=s.bottom+a,g=false),p=Math.max(8,Math.min(p,window.innerWidth-n.width-8)),this.root.style.top=`${c}px`,this.root.style.left=`${p}px`;let f=Math.max(16,Math.min(s.left+s.width/2-p-6,n.width-22));g?this.arrow.style.cssText=`
3086
3281
  position:absolute;
3087
3282
  width:12px;height:12px;
3088
3283
  background:${this.colors.glassBgHeavy};
@@ -3091,7 +3286,7 @@
3091
3286
  transform:rotate(45deg);
3092
3287
  pointer-events:none;
3093
3288
  bottom:-6px;
3094
- left:${a}px;
3289
+ left:${f}px;
3095
3290
  `:this.arrow.style.cssText=`
3096
3291
  position:absolute;
3097
3292
  width:12px;height:12px;
@@ -3101,8 +3296,8 @@
3101
3296
  transform:rotate(45deg);
3102
3297
  pointer-events:none;
3103
3298
  top:-6px;
3104
- left:${a}px;
3105
- `}contains(e){return this.root.contains(e)}destroy(){this.cancelShow(),this.cancelHide(),this.root.remove()}};var z=null;function xe(){let n=()=>{};return{destroy:n,open:n,close:n,refresh:n,on:()=>n,off:n}}function ns(n){let e=n.debug?(...m)=>console.debug("[siteping]",...m):()=>{};if(z)return e("initSiteping() called more than once \u2014 returning existing instance"),z;if(!n.forceShow)try{if(typeof process<"u"){let m="production";return console.info("[siteping] Widget not loaded: production mode detected. Use forceShow: true to override."),n.onSkip?.(m),xe()}}catch{}if(window.innerWidth<768){let m="mobile";return console.info(`[siteping] Widget not loaded: viewport width < ${768}px (mobile not supported).`),n.onSkip?.(m),xe()}if(!n.store&&(!n.endpoint||typeof n.endpoint!="string"))return console.error("[siteping] Missing 'endpoint' or 'store' in config. Provide an endpoint like '/api/siteping' or a SitepingStore instance."),xe();if(!n.projectName||typeof n.projectName!="string")return console.error("[siteping] Missing or invalid 'projectName' in config. Expected a non-empty string."),xe();let t=n.locale??"en",s=re(t);e("Initializing widget",{projectName:n.projectName,theme:n.theme??"light",locale:t});let o=gt(n.accentColor,n.theme),i=new $,r=new $,a=n.store?new ve(n.store,n.projectName):new oe(n.endpoint,n.projectName);n.onOpen&&i.on("open",n.onOpen),n.onClose&&i.on("close",n.onClose),n.onFeedbackSent&&i.on("feedback:sent",n.onFeedbackSent),n.onError&&i.on("feedback:error",n.onError),n.onAnnotationStart&&i.on("annotation:start",n.onAnnotationStart),n.onAnnotationEnd&&i.on("annotation:end",n.onAnnotationEnd),i.on("feedback:sent",m=>r.emit("feedback:sent",m)),i.on("feedback:deleted",m=>r.emit("feedback:deleted",m)),i.on("open",()=>r.emit("panel:open")),i.on("close",()=>r.emit("panel:close")),i.on("open",()=>e("Panel opened")),i.on("close",()=>e("Panel closed")),i.on("feedback:sent",m=>e("Feedback sent",m.id)),i.on("feedback:error",m=>e("Feedback failed",m.message)),i.on("annotation:start",()=>e("Annotation started")),i.on("annotation:end",()=>e("Annotation ended"));let p=document.createElement("siteping-widget");p.style.cssText=`position:fixed;z-index:${2147483647};`;let d=!1;try{typeof process<"u"&&process.env?.["NODE_ENV"]==="test"&&(d=!0)}catch{}let u=d?"open":"closed",h=p.attachShadow({mode:u});if("adoptedStyleSheets"in ShadowRoot.prototype){let m=new CSSStyleSheet;m.replaceSync(We(o)),h.adoptedStyleSheets=[m]}else{let m=document.createElement("style");m.textContent=We(o),h.appendChild(m)}document.body.appendChild(p);let f=document.createElement("div");f.setAttribute("role","status"),f.setAttribute("aria-live","polite"),f.setAttribute("aria-atomic","true"),f.style.cssText="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;",document.body.appendChild(f);let k=new ye(o,t),w=new pe(o,k,i,s),E=new ie(h,n,i,s),C=new fe(h,o,i,a,n.projectName,w,s,t),g=new ne(o,i,s),x=!1,y=i.on("annotation:complete",async m=>{if(!x){x=!0;try{let{annotation:T,type:A,message:S}=m,L=At();if(!L){if(L=await yn(h,s),!L)return;Lt(L)}let B=new URL(window.location.href);for(let R of[...B.searchParams.keys()])/token|key|secret|auth|session|password|code/i.test(R)&&B.searchParams.delete(R);let K=B.toString(),os=(()=>{try{return crypto.randomUUID()}catch{return`${Date.now()}-${Math.random().toString(36).slice(2)}`}})(),is={projectName:n.projectName,type:A,message:S,url:K,viewport:`${window.innerWidth}x${window.innerHeight}`,userAgent:navigator.userAgent,authorName:L.name,authorEmail:L.email,annotations:[T],clientId:os};try{let R=await a.sendFeedback(is);i.emit("feedback:sent",R),w.addFeedback(R,w.count+1),f.textContent=s("feedback.sent.confirmation"),await C.refresh()}catch(R){i.emit("feedback:error",R instanceof Error?R:new Error(String(R))),f.textContent=s("feedback.error.message")}}finally{x=!1}}});return a.getFeedbacks(n.projectName,{limit:20}).then(({feedbacks:m})=>{w.render(m)}).catch(m=>{e("Failed to load initial markers:",m)}),n.endpoint&&vt(n.endpoint).then(()=>e("Retry queue flushed")).catch(()=>{}),z={destroy:()=>{e("Destroying widget"),y(),E.destroy(),C.destroy(),g.destroy(),w.destroy(),k.destroy(),i.removeAll(),r.removeAll(),f.remove(),p.remove(),z=null},open:()=>{C.open()},close:()=>{C.close()},refresh:()=>{C.refresh()},on:(m,T)=>r.on(m,T),off:(m,T)=>{r.off(m,T)}},z}function yn(n,e){return new Promise(t=>{let s=n.activeElement??document.activeElement,o=document.createElement("div");o.style.cssText=`
3299
+ left:${f}px;
3300
+ `;}contains(s){return this.root.contains(s)}destroy(){this.cancelShow(),this.cancelHide(),this.root.remove();}};var Qt=null;function mg(o){return o===void 0||o===false?{console:false,network:false,maxConsoleEntries:50,maxNetworkEntries:20}:o===true?{console:true,network:true,maxConsoleEntries:50,maxNetworkEntries:20}:{console:o.console!==false,network:o.network!==false,maxConsoleEntries:typeof o.maxConsoleEntries=="number"?o.maxConsoleEntries:50,maxNetworkEntries:typeof o.maxNetworkEntries=="number"?o.maxNetworkEntries:20}}function Jr(){let o=()=>{};return {destroy:o,open:o,close:o,refresh:o,on:()=>o,off:o}}function Na(o){let s=o.debug?(...V)=>console.debug("[siteping]",...V):()=>{};if(Qt)return s("initSiteping() called more than once \u2014 returning existing instance"),Qt;if(!o.forceShow)try{if(typeof process<"u")return o.onSkip?.("production"),Jr()}catch{}if(window.innerWidth<768){let V="mobile";return o.onSkip?.(V),Jr()}if(!o.store&&(!o.endpoint||typeof o.endpoint!="string"))return console.error("[siteping] Missing 'endpoint' or 'store' in config. Provide an endpoint like '/api/siteping' or a SitepingStore instance."),Jr();if(!o.projectName||typeof o.projectName!="string")return console.error("[siteping] Missing or invalid 'projectName' in config. Expected a non-empty string."),Jr();let n=o.locale??"en";n!=="en"&&la(n).catch(()=>{});let a=Lr(n),c=o.scopeAnnotationsByUrl??true,p=()=>{try{let V=o.getPageScope?.();if(V)return V}catch(V){s("getPageScope() threw, falling back to pathname:",V);}return {url:window.location.pathname,urlPattern:null}};s("Initializing widget",{projectName:o.projectName,theme:o.theme??"light",locale:n,scopeAnnotationsByUrl:c});let g=mg(o.captureDiagnostics),f=g.console?new Hr(g.maxConsoleEntries):null,m=g.network?new Ir(g.maxNetworkEntries):null,Q=Oo(o.accentColor,o.theme),b=new wt,F=new wt,I=o.store?new Mr(o.store,o.projectName):new Er(o.endpoint,o.projectName);o.onOpen&&b.on("open",o.onOpen),o.onClose&&b.on("close",o.onClose),o.onFeedbackSent&&b.on("feedback:sent",o.onFeedbackSent),o.onError&&b.on("feedback:error",o.onError),o.onAnnotationStart&&b.on("annotation:start",o.onAnnotationStart),o.onAnnotationEnd&&b.on("annotation:end",o.onAnnotationEnd),b.on("feedback:sent",V=>F.emit("feedback:sent",V)),b.on("feedback:deleted",V=>F.emit("feedback:deleted",V)),b.on("open",()=>F.emit("panel:open")),b.on("close",()=>F.emit("panel:close")),b.on("open",()=>s("Panel opened")),b.on("close",()=>s("Panel closed")),b.on("feedback:sent",V=>s("Feedback sent",V.id)),b.on("feedback:error",V=>s("Feedback failed",V.message)),b.on("annotation:start",()=>s("Annotation started")),b.on("annotation:end",()=>s("Annotation ended"));let M=document.createElement("siteping-widget");M.style.cssText=`position:fixed;z-index:${2147483647};`;let O=false;try{typeof process<"u"&&process.env?.["NODE_ENV"]==="test"&&(O=!0);}catch{}let N=O?"open":"closed",P=M.attachShadow({mode:N});if("adoptedStyleSheets"in ShadowRoot.prototype){let V=new CSSStyleSheet;V.replaceSync(wn(Q)),P.adoptedStyleSheets=[V];}else {let V=document.createElement("style");V.textContent=wn(Q),P.appendChild(V);}document.body.appendChild(M);let E=document.createElement("div");E.setAttribute("role","status"),E.setAttribute("aria-live","polite"),E.setAttribute("aria-atomic","true"),E.style.cssText="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;",document.body.appendChild(E);let G=new Yr(Q,n),R=new Dr(Q,G,b,a,E),$=new kr(P,o,b,a),j=null,lA=null,rA=false;async function BA(){return rA?null:j||(lA||(lA=Promise.resolve().then(()=>(Oa(),Ra)).then(V=>rA?null:(j=new V.Panel(P,Q,b,I,o.projectName,R,a,n,{getScope:p,scopeAnnotationsByUrl:c}),j))),lA)}if(typeof window<"u"){let V=()=>{rA||BA();},uA=window.requestIdleCallback;typeof uA=="function"?uA(V):setTimeout(V,200);}let oA=false,ve=b.on("panel:toggle",V=>{j||(V?(oA=true,BA().then(uA=>{uA&&oA&&uA.open(),oA=false;}).catch(uA=>s("Failed to lazy-load panel:",uA))):oA=false);}),Wr=new xr(Q,b,a,o.enableScreenshot??false),Oe=false,jr=b.on("annotation:complete",async V=>{if(!Oe){Oe=true;try{let{annotation:uA,type:PA,message:Ne,screenshotDataUrl:Pe}=V,jA=da();if(!jA){if(jA=await bg(P,a),!jA)return;pa(jA);}let Ft=(()=>{try{return crypto.randomUUID()}catch{return `${Date.now()}-${Math.random().toString(36).slice(2)}`}})(),Ge=p(),le=null;(f||m)&&(le={console:f?.getEntries()??[],network:m?.getEntries()??[]});let zr={projectName:o.projectName,type:PA,message:Ne,url:Ge.url,urlPattern:Ge.urlPattern,viewport:`${window.innerWidth}x${window.innerHeight}`,userAgent:navigator.userAgent,authorName:jA.name,authorEmail:jA.email,annotations:[uA],clientId:Ft,screenshotDataUrl:Pe??null,diagnostics:le};try{let DA=await I.sendFeedback(zr);b.emit("feedback:sent",DA),(!c||DA.url===Ge.url)&&R.addFeedback(DA,R.count+1),E.textContent=a("feedback.sent.confirmation"),j&&await j.refresh();}catch(DA){b.emit("feedback:error",DA instanceof Error?DA:new Error(String(DA))),E.textContent=a("feedback.error.message");}}finally{Oe=false;}}}),yt=p(),$r=c?{limit:20,url:yt.url}:{limit:20};return I.getFeedbacks(o.projectName,$r).then(({feedbacks:V})=>{let uA=c?V.filter(PA=>PA.url===yt.url):V;R.render(uA);}).catch(V=>{s("Failed to load initial markers:",V);}),o.endpoint&&Xo(o.endpoint).then(()=>s("Retry queue flushed")).catch(()=>{}),Qt={destroy:()=>{s("Destroying widget"),rA=true,oA=false,jr(),ve(),$.destroy(),j?.destroy(),Wr.destroy(),R.destroy(),G.destroy(),f?.dispose(),m?.dispose(),b.removeAll(),F.removeAll(),E.remove(),M.remove(),Qt=null;},open:()=>{b.emit("panel:toggle",true);},close:()=>{j?j.close():oA=false;},refresh:()=>{if(j?.isCurrentlyOpen){j.refresh();return}let V=p(),uA=c?{limit:20,url:V.url}:{limit:20};I.getFeedbacks(o.projectName,uA).then(({feedbacks:PA})=>{let Ne=c?PA.filter(Pe=>Pe.url===V.url):PA;R.render(Ne);}).catch(()=>{});},on:(V,uA)=>F.on(V,uA),off:(V,uA)=>{F.off(V,uA);}},Qt}function bg(o,s){return new Promise(n=>{let a=o.activeElement??document.activeElement,c=document.createElement("div");c.style.cssText=`
3106
3301
  position:fixed;inset:0;
3107
3302
  background:var(--sp-identity-overlay);
3108
3303
  backdrop-filter:blur(8px);
@@ -3110,7 +3305,7 @@
3110
3305
  display:flex;align-items:center;justify-content:center;
3111
3306
  z-index:${2147483647};
3112
3307
  opacity:0;transition:opacity 0.25s ease;
3113
- `;let i=document.createElement("div");i.style.cssText=`
3308
+ `;let p=document.createElement("div");p.style.cssText=`
3114
3309
  width:340px;padding:28px;border-radius:var(--sp-radius-xl);
3115
3310
  background:var(--sp-identity-bg);
3116
3311
  backdrop-filter:blur(var(--sp-blur-heavy));
@@ -3122,5 +3317,27 @@
3122
3317
  transform:translateY(12px) scale(0.97);
3123
3318
  transition:transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
3124
3319
  -webkit-font-smoothing:antialiased;
3125
- `;let r=`sp-identity-title-${Date.now()}`;i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.setAttribute("aria-labelledby",r);let a=document.createElement("div");a.className="sp-identity-title",a.id=r,a.textContent=e("identity.title"),a.style.marginBottom="20px";let p=`sp-identity-name-${Date.now()}`,d=`sp-identity-email-${Date.now()}`,u=document.createElement("label");u.className="sp-input-label",u.textContent=e("identity.nameLabel"),u.setAttribute("for",p);let h=document.createElement("input");h.className="sp-input",h.id=p,h.type="text",h.placeholder=e("identity.namePlaceholder"),h.style.marginBottom="14px";let b=document.createElement("label");b.className="sp-input-label",b.textContent=e("identity.emailLabel"),b.setAttribute("for",d);let f=document.createElement("input");f.className="sp-input",f.id=d,f.type="email",f.placeholder=e("identity.emailPlaceholder");let k=document.createElement("div");k.style.cssText="display:flex;gap:8px;justify-content:flex-end;margin-top:20px;";let w=y=>{o.removeEventListener("keydown",x),o.style.opacity="0",i.style.transform="translateY(12px) scale(0.97)",setTimeout(()=>{o.remove(),s?.focus(),t(y)},250)},E=document.createElement("button");E.className="sp-btn-ghost",E.textContent=e("identity.cancel"),E.addEventListener("click",()=>w(null));let C=document.createElement("button");C.className="sp-btn-primary",C.textContent=e("identity.submit"),C.addEventListener("click",()=>{let y=h.value.trim(),m=f.value.trim();if(!y||!m)return;if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(m)){f.style.borderColor="var(--sp-type-bug, #ef4444)";return}w({name:y,email:m})});let g='input, button, [tabindex]:not([tabindex="-1"])',x=y=>{let m=y;if(m.key==="Escape"){w(null);return}if(m.key==="Tab"){let T=Array.from(i.querySelectorAll(g));if(T.length===0)return;let A=T[0],S=T[T.length-1];if(!A||!S)return;let L=n.activeElement;m.shiftKey?(L===A||!i.contains(L))&&(m.preventDefault(),S.focus()):(L===S||!i.contains(L))&&(m.preventDefault(),A.focus())}};o.addEventListener("keydown",x),o.addEventListener("click",y=>{y.target===o&&w(null)}),k.appendChild(E),k.appendChild(C),i.appendChild(a),i.appendChild(u),i.appendChild(h),i.appendChild(b),i.appendChild(f),i.appendChild(k),o.appendChild(i),n.appendChild(o),requestAnimationFrame(()=>{o.style.opacity="1",i.style.transform="translateY(0) scale(1)",h.focus()})})}function xn(n){return ns(n)}return cs(kn);})();
3320
+ `;let g=`sp-identity-title-${Date.now()}`;p.setAttribute("role","dialog"),p.setAttribute("aria-modal","true"),p.setAttribute("aria-labelledby",g);let f=document.createElement("div");f.className="sp-identity-title",f.id=g,f.textContent=s("identity.title"),f.style.marginBottom="20px";let m=`sp-identity-name-${Date.now()}`,Q=`sp-identity-email-${Date.now()}`,b=document.createElement("label");b.className="sp-input-label",b.textContent=s("identity.nameLabel"),b.setAttribute("for",m);let F=document.createElement("input");F.className="sp-input",F.id=m,F.type="text",F.placeholder=s("identity.namePlaceholder"),F.style.marginBottom="14px";let I=document.createElement("label");I.className="sp-input-label",I.textContent=s("identity.emailLabel"),I.setAttribute("for",Q);let M=document.createElement("input");M.className="sp-input",M.id=Q,M.type="email",M.placeholder=s("identity.emailPlaceholder");let O=document.createElement("div");O.style.cssText="display:flex;gap:8px;justify-content:flex-end;margin-top:20px;";let N=R=>{c.removeEventListener("keydown",G),c.style.opacity="0",p.style.transform="translateY(12px) scale(0.97)",setTimeout(()=>{c.remove(),a?.focus(),n(R);},250);},P=document.createElement("button");P.className="sp-btn-ghost",P.textContent=s("identity.cancel"),P.addEventListener("click",()=>N(null));let AA=document.createElement("button");AA.className="sp-btn-primary",AA.textContent=s("identity.submit"),AA.addEventListener("click",()=>{let R=F.value.trim(),$=M.value.trim();if(!R||!$)return;if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test($)){M.style.borderColor="var(--sp-type-bug, #ef4444)";return}N({name:R,email:$});});let E='input, button, [tabindex]:not([tabindex="-1"])',G=R=>{let $=R;if($.key==="Escape"){N(null);return}if($.key==="Tab"){let j=Array.from(p.querySelectorAll(E));if(j.length===0)return;let lA=j[0],rA=j[j.length-1];if(!lA||!rA)return;let BA=o.activeElement;$.shiftKey?(BA===lA||!p.contains(BA))&&($.preventDefault(),rA.focus()):(BA===rA||!p.contains(BA))&&($.preventDefault(),lA.focus());}};c.addEventListener("keydown",G),c.addEventListener("click",R=>{R.target===c&&N(null);}),O.appendChild(P),O.appendChild(AA),p.appendChild(f),p.appendChild(b),p.appendChild(F),p.appendChild(I),p.appendChild(M),p.appendChild(O),c.appendChild(p),o.appendChild(c),requestAnimationFrame(()=>{c.style.opacity="1",p.style.transform="translateY(0) scale(1)",F.focus();});})}function Ef(o){return Na(o)}/*! Bundled license information:
3321
+
3322
+ html2canvas/dist/html2canvas.js:
3323
+ (*!
3324
+ * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
3325
+ * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
3326
+ * Released under MIT License
3327
+ *)
3328
+ (*! *****************************************************************************
3329
+ Copyright (c) Microsoft Corporation.
3330
+
3331
+ Permission to use, copy, modify, and/or distribute this software for any
3332
+ purpose with or without fee is hereby granted.
3333
+
3334
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3335
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3336
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3337
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3338
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3339
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3340
+ PERFORMANCE OF THIS SOFTWARE.
3341
+ ***************************************************************************** *)
3342
+ */exports.initSiteping=Ef;return exports;})({});//# sourceMappingURL=index.global.js.map
3126
3343
  //# sourceMappingURL=index.global.js.map