@tung-engineering/agent-platform-web-sdk 0.0.90 → 0.0.92

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,4 +1,4 @@
1
- var FS=Object.defineProperty,kS=Object.defineProperties;var vS=Object.getOwnPropertyDescriptors;var Zf=Object.getOwnPropertySymbols;var _S=Object.prototype.hasOwnProperty,xS=Object.prototype.propertyIsEnumerable;var ye=Math.pow,Al=(uA,NA,WA)=>NA in uA?FS(uA,NA,{enumerable:!0,configurable:!0,writable:!0,value:WA}):uA[NA]=WA,k=(uA,NA)=>{for(var WA in NA||(NA={}))_S.call(NA,WA)&&Al(uA,WA,NA[WA]);if(Zf)for(var WA of Zf(NA))xS.call(NA,WA)&&Al(uA,WA,NA[WA]);return uA},$=(uA,NA)=>kS(uA,vS(NA));var hA=(uA,NA,WA)=>Al(uA,typeof NA!="symbol"?NA+"":NA,WA);var T=(uA,NA,WA)=>new Promise((rl,Ti)=>{var sl=xt=>{try{_s(WA.next(xt))}catch(xs){Ti(xs)}},ol=xt=>{try{_s(WA.throw(xt))}catch(xs){Ti(xs)}},_s=xt=>xt.done?rl(xt.value):Promise.resolve(xt.value).then(sl,ol);_s((WA=WA.apply(uA,NA)).next())});var AgentPlatformWebSdk=(function(uA){"use strict";var xf,We,Le,yn,dr,Un,fi;const Jf=[`
1
+ var DS=Object.defineProperty,OS=Object.defineProperties;var PS=Object.getOwnPropertyDescriptors;var tg=Object.getOwnPropertySymbols;var MS=Object.prototype.hasOwnProperty,NS=Object.prototype.propertyIsEnumerable;var Ue=Math.pow,ol=(dA,NA,WA)=>NA in dA?DS(dA,NA,{enumerable:!0,configurable:!0,writable:!0,value:WA}):dA[NA]=WA,F=(dA,NA)=>{for(var WA in NA||(NA={}))MS.call(NA,WA)&&ol(dA,WA,NA[WA]);if(tg)for(var WA of tg(NA))NS.call(NA,WA)&&ol(dA,WA,NA[WA]);return dA},z=(dA,NA)=>OS(dA,PS(NA));var gA=(dA,NA,WA)=>ol(dA,typeof NA!="symbol"?NA+"":NA,WA);var I=(dA,NA,WA)=>new Promise((ll,Oi)=>{var ul=Rt=>{try{Ts(WA.next(Rt))}catch(Hs){Oi(Hs)}},dl=Rt=>{try{Ts(WA.throw(Rt))}catch(Hs){Oi(Hs)}},Ts=Rt=>Rt.done?ll(Rt.value):Promise.resolve(Rt.value).then(ul,dl);Ts((WA=WA.apply(dA,NA)).next())});var AgentPlatformWebSdk=(function(dA){"use strict";var Pf,je,Re,vn,gr,_n,bi;const sg=[`
2
2
  :where([data-ap-sdk][popover]) {
3
3
  position: fixed;
4
4
  margin: 0;
@@ -540,7 +540,7 @@ var FS=Object.defineProperty,kS=Object.defineProperties;var vS=Object.getOwnProp
540
540
  white-space: nowrap;
541
541
  }
542
542
 
543
- /* ── Screenshot preview (see screenshot.ts / panel.ts's captureScreenshotFor) ──────── */
543
+ /* ── Screenshot preview (see screenshot.ts / panel-screenshot.ts) ──────── */
544
544
 
545
545
  .ap-sdk-panel__screenshot {
546
546
  padding: 10px 16px;
@@ -1582,11 +1582,11 @@ button.ap-sdk-list-item__link {
1582
1582
  gap: 8px;
1583
1583
  }
1584
1584
  `].join(`
1585
- `);let il=!1;function Cr(){if(il)return;const A=document.createElement("style");A.setAttribute("data-ap-sdk","1"),A.textContent=Jf,document.head.appendChild(A),il=!0}function Ss(A){if(A===document.body)return"body";const e=[];let t=A;for(;t&&t!==document.body;){if(t.id){e.unshift(`#${CSS.escape(t.id)}`);break}let n=t.tagName.toLowerCase();const r=t.parentElement;if(r){const s=Array.from(r.children).filter(o=>o.tagName===t.tagName);if(s.length>1){const o=s.indexOf(t)+1;n+=`:nth-of-type(${o})`}}e.unshift(n),t=t.parentElement}return e.join(" > ")||A.tagName.toLowerCase()}function Is(A,e=200){var n;const t=((n=A.textContent)!=null?n:"").replace(/\s+/g," ").trim();return t.length>e?t.slice(0,e)+"…":t}const jf=["role","type","name","href","src","alt","title","for","placeholder","data-testid"];function Ts(A){const e=A.tagName.toLowerCase(),t=A.id?`#${A.id}`:"",n=A.classList.length?"."+Array.from(A.classList).join("."):"",r=[],s=new Set,o=a=>{if(s.has(a)||r.length>=8)return;const i=A.getAttribute(a);if(!i)return;s.add(a);const l=i.length>80?i.slice(0,80)+"…":i;r.push(`[${a}="${l}"]`)};for(const a of Array.from(A.attributes))a.name.startsWith("aria-")&&o(a.name);for(const a of jf)o(a);return`${e}${t}${n}${r.join("")}`}function Yf(A,e=80){const t=Array.from(A.childNodes).filter(n=>n.nodeType===Node.TEXT_NODE).map(n=>{var r;return((r=n.textContent)!=null?r:"").trim()}).filter(Boolean).join(" ");return t.length>e?t.slice(0,e)+"…":t}function qf(A,e=5,t=10){function n(r,s){const o=Ts(r),a=" ".repeat(s),i=Array.from(r.children).slice(0,t);if(s>=e||i.length===0){const l=Yf(r);return l?`${a}${o} "${l}"`:`${a}${o}`}return[`${a}${o}`,...i.map(l=>n(l,s+1))].join(`
1586
- `)}return n(A,0)}const Ag='section, article, aside, nav, main, header, footer, form, fieldset, dialog, [role="region"], [role="navigation"], [role="main"], [role="complementary"], [role="banner"], [role="contentinfo"], [role="form"], [role="search"], [role="dialog"]',eg={fieldset:"legend",table:"caption",figure:"figcaption",details:"summary"};function Hs(A,e){const t=A.replace(/\s+/g," ").trim();return t.length>e?t.slice(0,e)+"…":t}function tg(A){var t;const e=A.querySelectorAll('h1, h2, h3, h4, h5, h6, [role="heading"]');for(const n of Array.from(e)){let r=n.parentElement;for(;r&&r!==A&&!r.matches(Ag);)r=r.parentElement;if(r===A){const s=((t=n.textContent)!=null?t:"").trim();if(s)return s}}return""}function ng(A,e=80){var o,a,i;const t=eg[A.tagName.toLowerCase()];if(t){const l=(a=(o=A.querySelector(t))==null?void 0:o.textContent)==null?void 0:a.trim();if(l)return Hs(l,e)}const n=tg(A);if(n)return Hs(n,e);const r=(i=A.getAttribute("aria-label"))==null?void 0:i.trim();if(r)return Hs(r,e);const s=A.getAttribute("aria-labelledby");if(s){const l=s.split(/\s+/).map(u=>{var h,f,g;return(g=(f=(h=document.getElementById(u))==null?void 0:h.textContent)==null?void 0:f.trim())!=null?g:""}).filter(Boolean).join(" ");if(l)return Hs(l,e)}return""}function rg(A,e=6){const t=[],n=new Set;let r=A;for(;r&&r!==document.body&&t.length<e;){const s=r===A?"":ng(r),o=s&&!n.has(s)?`${Ts(r)} ["${s}"]`:Ts(r);s&&n.add(s),t.unshift(o),r=r.parentElement}return t.join(" > ")||Ts(A)}function al(A,e){return A.length>e?A.slice(0,e)+"… (truncated)":A}function br(A){var n;const e=document.querySelector(A);return((n=e==null?void 0:e.content)==null?void 0:n.trim())||void 0}function cl(){const A=e=>{try{return e()}catch(t){return}};return{description:A(()=>br('meta[name="description"]')),canonicalUrl:A(()=>{var e;return((e=document.querySelector('link[rel="canonical"]'))==null?void 0:e.href)||void 0}),lang:A(()=>document.documentElement.lang||void 0),ogTitle:A(()=>br('meta[property="og:title"]')),ogDescription:A(()=>br('meta[property="og:description"]')),ogType:A(()=>br('meta[property="og:type"]')),ogSiteName:A(()=>br('meta[property="og:site_name"]')),viewportWidth:A(()=>window.innerWidth),viewportHeight:A(()=>window.innerHeight),scrollX:A(()=>Math.round(window.scrollX)),scrollY:A(()=>Math.round(window.scrollY)),selectionText:A(()=>{var t;const e=(t=window.getSelection())==null?void 0:t.toString().trim();return e?al(e,1e3):void 0}),capturedAt:new Date().toISOString()}}function sg(A){const e=[];let t=A;for(;t&&e.length<6;){let n=t.tagName.toLowerCase();t.id?n+=`#${t.id}`:t.classList.length&&(n+=`.${Array.from(t.classList).slice(0,2).join(".")}`),e.unshift(n),t=t.parentElement}return e.join(" > ")}function og(A){const e=A.getAttribute("role")||void 0,t=A.getAttribute("aria-label")||void 0;let n;const r=A.closest("section, article, main, nav, aside, header, footer, [role]");if(r){const s=r.querySelector("h1, h2, h3, h4, h5, h6"),o=r.getAttribute("aria-label")||((s==null?void 0:s.textContent)||"").trim(),a=r.tagName.toLowerCase();n=o?`${a}: ${al(o,120)}`:a}return{elementRole:e,elementAriaLabel:t,enclosingSection:n}}function ig(A,e){const t=[A.trim(),"",`Page: ${e.pageTitle} (${e.pageUrl})`];return e.description&&t.push(`Description: ${e.description}`),e.selectionText&&t.push(`Selection: ${e.selectionText}`),e.elementText&&t.push(`Selected element: ${e.elementText}`),e.elementRole&&t.push(` Role: ${e.elementRole}`),e.elementAriaLabel&&t.push(` ARIA label: ${e.elementAriaLabel}`),e.enclosingSection&&t.push(`Section: ${e.enclosingSection}`),e.ancestry&&t.push(`Ancestry: ${e.ancestry}`),e.cssSelector&&t.push(`Selector: ${e.cssSelector}`),t.join(`
1587
- `)}const Hn=new Set;let Ln=null,Ls=!1,Hi=!1;function ag(A){if(A.getAttribute("aria-modal")==="false")return!1;const e=getComputedStyle(A);return e.display!=="none"&&e.visibility!=="hidden"}function cg(){const A=document.querySelectorAll("dialog[open]");for(let t=0;t<A.length;t++)try{if(A[t].matches(":modal"))return!0}catch(n){}const e=document.querySelectorAll('[role="dialog"], [role="alertdialog"]');for(let t=0;t<e.length;t++){const n=e[t];if(!(Hn.has(n)||n.hasAttribute("data-ap-sdk"))&&n.isConnected&&ag(n))return!0}return!1}function ll(){const A=cg(),e=A&&!Hi;Hi=A;for(const t of Hn){t.hasAttribute("inert")&&t.removeAttribute("inert"),t.getAttribute("aria-hidden")==="true"&&t.removeAttribute("aria-hidden");const n=t.contains(document.activeElement);if(t.matches(":popover-open")){if(e&&!n){try{t.hidePopover()}catch(r){}try{t.showPopover()}catch(r){}}}else try{t.showPopover()}catch(r){}}}function ul(A){if(!(A instanceof Node))return!1;for(const e of Hn)if(e===A||e.contains(A))return!0;return!1}function Dn(A){(ul(A.target)||"relatedTarget"in A&&ul(A.relatedTarget))&&A.stopPropagation()}function lg(){Ls||(window.addEventListener("focusin",Dn,!0),window.addEventListener("focusout",Dn,!0),window.addEventListener("pointerdown",Dn,!0),Ls=!0),!Ln&&(Ln=new MutationObserver(A=>{A.some(t=>t.type==="childList"||t.attributeName==="open"&&t.target.tagName==="DIALOG"||t.attributeName==="inert"||t.attributeName==="aria-hidden"||t.attributeName==="role")&&ll()}),Ln.observe(document.documentElement,{attributes:!0,attributeFilter:["open","inert","aria-hidden","role"],childList:!0,subtree:!0}))}function tt(A){"showPopover"in A&&(A.setAttribute("popover","manual"),Hn.add(A),lg(),ll())}function nt(A){if(Hn.delete(A),Hn.size===0&&(Ln&&(Ln.disconnect(),Ln=null),Ls&&(window.removeEventListener("focusin",Dn,!0),window.removeEventListener("focusout",Dn,!0),window.removeEventListener("pointerdown",Dn,!0),Ls=!1),Hi=!1),"hidePopover"in A)try{A.hidePopover()}catch(e){}}function Li(A="ap-sdk-highlight"){const e=document.createElement("div");return e.className=A,e.setAttribute("data-ap-sdk","1"),e.style.display="none",document.body.appendChild(e),tt(e),{el:e,update:s=>{const o=s.getBoundingClientRect();e.style.top=`${o.top}px`,e.style.left=`${o.left}px`,e.style.width=`${o.width}px`,e.style.height=`${o.height}px`,e.style.display="block"},hide:()=>{e.style.display="none"},destroy:()=>{nt(e),e.remove()}}}const dl=/^cc-|current-password|new-password/i,ug=/token|secret|password|apikey|auth/i,Di="[redacted]",Ds="[data-ap-sdk-exclude]";let Ri=null;function dg(A){Ri=(A==null?void 0:A.trim())||null}function pl(){return Ri?`${Ds}, ${Ri}`:Ds}function Oi(A){let e;try{if(e=pl(),A.matches(e)){A.textContent="";return}for(const t of Array.from(A.querySelectorAll(e)))t.remove()}catch(t){for(const n of Array.from(A.querySelectorAll(Ds)))n.remove()}}function hl(A){if(A instanceof HTMLInputElement&&A.type==="password")return!0;const e=A.getAttribute("autocomplete");return!!e&&dl.test(e)}function fl(A){if(hl(A))return!0;try{return A.closest(pl())!==null}catch(e){return A.closest(Ds)!==null}}function gl(A){const e=[A,...Array.from(A.querySelectorAll("*"))];for(const t of e){t instanceof HTMLInputElement&&t.type==="password"&&t.setAttribute("value",Di);const n=t.getAttribute("autocomplete");n&&dl.test(n)&&t.setAttribute("value",Di);for(const r of Array.from(t.attributes))ug.test(r.name)&&t.setAttribute(r.name,Di)}}const pg="🎯 Click any element to capture";let St=null,zA=null,jA=null;function Qr(A){return A instanceof Element?A.closest("[data-ap-sdk]")!==null||A.closest(".ap-sdk-panel")!==null||A.closest(".ap-sdk-highlight")!==null||A.closest(".ap-sdk-picker-cursor")!==null:!1}function hg(){var A,e;return((e=(A=window.matchMedia)==null?void 0:A.call(window,"(pointer: coarse)").matches)!=null?e:!1)||"ontouchstart"in window}function Bl(A){St==null||St.update(A)}function wl(A){const e=cl(),t=sg(A),n=og(A);let r=A,s;try{const o=A.cloneNode(!0);gl(o),Oi(o),r=o,s=o.outerHTML.slice(0,4e3)}catch(o){}return k(k({pageUrl:window.location.href,pageTitle:document.title,elementText:Is(r),cssSelector:Ss(A),innerTree:qf(r),outerTree:rg(A),elementOuterHtml:s,ancestry:t},n),e)}function Mi(A,e){jA&&jA();const t=hg();St=Li(),zA=document.createElement("div"),zA.className="ap-sdk-picker-cursor",zA.setAttribute("data-ap-sdk","1"),zA.textContent=t?"Tap any element to preview":pg,document.body.appendChild(zA),tt(zA);let n=null,r=null;const s=u=>{jA==null||jA(),A(wl(u),u)},o=u=>{if(r=u,Bl(u),!zA)return;zA.classList.add("ap-sdk-picker-cursor--confirm"),zA.innerHTML="";const h=document.createElement("span");h.className="ap-sdk-picker-cursor__label",h.textContent=`<${u.tagName.toLowerCase()}>`;const f=document.createElement("button");f.type="button",f.className="ap-sdk-picker-cursor__btn ap-sdk-picker-cursor__btn--cancel",f.textContent="✕ Cancel",f.setAttribute("data-ap-sdk","1"),f.setAttribute("aria-label","Cancel picking"),f.addEventListener("click",Q=>{Q.preventDefault(),Q.stopPropagation(),jA==null||jA(),e()});const g=document.createElement("button");g.type="button",g.className="ap-sdk-picker-cursor__btn",g.textContent="⬆ Parent",g.setAttribute("data-ap-sdk","1"),g.addEventListener("click",Q=>{Q.preventDefault(),Q.stopPropagation(),r!=null&&r.parentElement&&o(r.parentElement)});const m=document.createElement("button");m.type="button",m.className="ap-sdk-picker-cursor__btn ap-sdk-picker-cursor__btn--primary",m.textContent="✓ Select",m.setAttribute("data-ap-sdk","1"),m.addEventListener("click",Q=>{Q.preventDefault(),Q.stopPropagation(),r&&s(r)}),zA.appendChild(h),zA.appendChild(f),zA.appendChild(g),zA.appendChild(m)},a=u=>{Qr(u.target)||(n=u.target,Bl(n))},i=u=>{var f;if(Qr(u.target))return;u.preventDefault(),u.stopImmediatePropagation();const h=(f=u.target)!=null?f:n;if(h){if(t){o(h);return}s(h)}},l=u=>{u.key==="Escape"&&(jA==null||jA(),e())};t||document.addEventListener("mouseover",a,{capture:!0}),document.addEventListener("click",i,{capture:!0}),document.addEventListener("keydown",l,{capture:!0}),jA=()=>{t||document.removeEventListener("mouseover",a,{capture:!0}),document.removeEventListener("click",i,{capture:!0}),document.removeEventListener("keydown",l,{capture:!0}),zA&&nt(zA),zA==null||zA.remove(),St==null||St.destroy(),St=null,zA=null,r=null,jA=null}}function Pi(){jA==null||jA()}function Rn(){return jA!==null}const Rs={TASK_STATUS_UPDATED:"task:status:updated",TASK_INTERACTION_CREATED:"task:interaction:created",TASK_INTERACTION_ANSWERED:"task:interaction:answered",TASK_BROWSER_COMMAND_CREATED:"task:browser-command:created"};function _(A,e,t){var a;function n(i,l){if(i._zod||Object.defineProperty(i,"_zod",{value:{def:l,constr:o,traits:new Set},enumerable:!1}),i._zod.traits.has(A))return;i._zod.traits.add(A),e(i,l);const u=o.prototype,h=Object.keys(u);for(let f=0;f<h.length;f++){const g=h[f];g in i||(i[g]=u[g].bind(i))}}const r=(a=t==null?void 0:t.Parent)!=null?a:Object;class s extends r{}Object.defineProperty(s,"name",{value:A});function o(i){var h;var l;const u=t!=null&&t.Parent?new s:this;n(u,i),(h=(l=u._zod).deferred)!=null||(l.deferred=[]);for(const f of u._zod.deferred)f();return u}return Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:i=>{var l,u;return t!=null&&t.Parent&&i instanceof t.Parent?!0:(u=(l=i==null?void 0:i._zod)==null?void 0:l.traits)==null?void 0:u.has(A)}}),Object.defineProperty(o,"name",{value:A}),o}class On extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ml extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const Cl={};function It(A){return Cl}function bl(A){const e=Object.values(A).filter(n=>typeof n=="number");return Object.entries(A).filter(([n,r])=>e.indexOf(+n)===-1).map(([n,r])=>r)}function Ki(A,e){return typeof e=="bigint"?e.toString():e}function Os(A){return{get value(){{const e=A();return Object.defineProperty(this,"value",{value:e}),e}}}}function Ni(A){return A==null}function zi(A){const e=A.startsWith("^")?1:0,t=A.endsWith("$")?A.length-1:A.length;return A.slice(e,t)}function fg(A,e){const t=(A.toString().split(".")[1]||"").length,n=e.toString();let r=(n.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(n)){const i=n.match(/\d?e-(\d?)/);i!=null&&i[1]&&(r=Number.parseInt(i[1]))}const s=t>r?t:r,o=Number.parseInt(A.toFixed(s).replace(".","")),a=Number.parseInt(e.toFixed(s).replace(".",""));return o%a/ye(10,s)}const Ql=Symbol("evaluating");function oA(A,e,t){let n;Object.defineProperty(A,e,{get(){if(n!==Ql)return n===void 0&&(n=Ql,n=t()),n},set(r){Object.defineProperty(A,e,{value:r})},configurable:!0})}function qt(A,e,t){Object.defineProperty(A,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Tt(...A){const e={};for(const t of A){const n=Object.getOwnPropertyDescriptors(t);Object.assign(e,n)}return Object.defineProperties({},e)}function yl(A){return JSON.stringify(A)}function gg(A){return A.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Ul="captureStackTrace"in Error?Error.captureStackTrace:(...A)=>{};function yr(A){return typeof A=="object"&&A!==null&&!Array.isArray(A)}const Bg=Os(()=>{var A;if(typeof navigator!="undefined"&&((A=navigator==null?void 0:navigator.userAgent)!=null&&A.includes("Cloudflare")))return!1;try{const e=Function;return new e(""),!0}catch(e){return!1}});function Mn(A){if(yr(A)===!1)return!1;const e=A.constructor;if(e===void 0||typeof e!="function")return!0;const t=e.prototype;return!(yr(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function El(A){return Mn(A)?k({},A):Array.isArray(A)?[...A]:A}const wg=new Set(["string","number","symbol"]);function Pn(A){return A.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ht(A,e,t){const n=new A._zod.constr(e!=null?e:A._zod.def);return(!e||t!=null&&t.parent)&&(n._zod.parent=A),n}function G(A){const e=A;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?$(k({},e),{error:()=>e.error}):e}function mg(A){return Object.keys(A).filter(e=>A[e]._zod.optin==="optional"&&A[e]._zod.optout==="optional")}const Cg={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function bg(A,e){const t=A._zod.def,n=t.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=Tt(A._zod.def,{get shape(){const o={};for(const a in e){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&(o[a]=t.shape[a])}return qt(this,"shape",o),o},checks:[]});return Ht(A,s)}function Qg(A,e){const t=A._zod.def,n=t.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=Tt(A._zod.def,{get shape(){const o=k({},A._zod.def.shape);for(const a in e){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&delete o[a]}return qt(this,"shape",o),o},checks:[]});return Ht(A,s)}function yg(A,e){if(!Mn(e))throw new Error("Invalid input to extend: expected a plain object");const t=A._zod.def.checks;if(t&&t.length>0){const s=A._zod.def.shape;for(const o in e)if(Object.getOwnPropertyDescriptor(s,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=Tt(A._zod.def,{get shape(){const s=k(k({},A._zod.def.shape),e);return qt(this,"shape",s),s}});return Ht(A,r)}function Ug(A,e){if(!Mn(e))throw new Error("Invalid input to safeExtend: expected a plain object");const t=Tt(A._zod.def,{get shape(){const n=k(k({},A._zod.def.shape),e);return qt(this,"shape",n),n}});return Ht(A,t)}function Eg(A,e){const t=Tt(A._zod.def,{get shape(){const n=k(k({},A._zod.def.shape),e._zod.def.shape);return qt(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:[]});return Ht(A,t)}function Fg(A,e,t){const r=e._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=Tt(e._zod.def,{get shape(){const a=e._zod.def.shape,i=k({},a);if(t)for(const l in t){if(!(l in a))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(i[l]=A?new A({type:"optional",innerType:a[l]}):a[l])}else for(const l in a)i[l]=A?new A({type:"optional",innerType:a[l]}):a[l];return qt(this,"shape",i),i},checks:[]});return Ht(e,o)}function kg(A,e,t){const n=Tt(e._zod.def,{get shape(){const r=e._zod.def.shape,s=k({},r);if(t)for(const o in t){if(!(o in s))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(s[o]=new A({type:"nonoptional",innerType:r[o]}))}else for(const o in r)s[o]=new A({type:"nonoptional",innerType:r[o]});return qt(this,"shape",s),s}});return Ht(e,n)}function Kn(A,e=0){var t;if(A.aborted===!0)return!0;for(let n=e;n<A.issues.length;n++)if(((t=A.issues[n])==null?void 0:t.continue)!==!0)return!0;return!1}function Nn(A,e){return e.map(t=>{var r;var n;return(r=(n=t).path)!=null||(n.path=[]),t.path.unshift(A),t})}function Ms(A){return typeof A=="string"?A:A==null?void 0:A.message}function Lt(A,e,t){var r,s,o,a,i,l,u,h,f,g,m;const n=$(k({},A),{path:(r=A.path)!=null?r:[]});if(!A.message){const Q=(m=(g=(h=(l=Ms((a=(o=(s=A.inst)==null?void 0:s._zod.def)==null?void 0:o.error)==null?void 0:a.call(o,A)))!=null?l:Ms((i=e==null?void 0:e.error)==null?void 0:i.call(e,A)))!=null?h:Ms((u=t.customError)==null?void 0:u.call(t,A)))!=null?g:Ms((f=t.localeError)==null?void 0:f.call(t,A)))!=null?m:"Invalid input";n.message=Q}return delete n.inst,delete n.continue,e!=null&&e.reportInput||delete n.input,n}function $i(A){return Array.isArray(A)?"array":typeof A=="string"?"string":"unknown"}function Ur(...A){const[e,t,n]=A;return typeof e=="string"?{message:e,code:"custom",input:t,inst:n}:k({},e)}const Fl=(A,e)=>{A.name="$ZodError",Object.defineProperty(A,"_zod",{value:A._zod,enumerable:!1}),Object.defineProperty(A,"issues",{value:e,enumerable:!1}),A.message=JSON.stringify(e,Ki,2),Object.defineProperty(A,"toString",{value:()=>A.message,enumerable:!1})},kl=_("$ZodError",Fl),vl=_("$ZodError",Fl,{Parent:Error});function vg(A,e=t=>t.message){const t={},n=[];for(const r of A.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}function _g(A,e=t=>t.message){const t={_errors:[]},n=r=>{for(const s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>n({issues:o}));else if(s.code==="invalid_key")n({issues:s.issues});else if(s.code==="invalid_element")n({issues:s.issues});else if(s.path.length===0)t._errors.push(e(s));else{let o=t,a=0;for(;a<s.path.length;){const i=s.path[a];a===s.path.length-1?(o[i]=o[i]||{_errors:[]},o[i]._errors.push(e(s))):o[i]=o[i]||{_errors:[]},o=o[i],a++}}};return n(A),t}const Gi=A=>(e,t,n,r)=>{var a;const s=n?Object.assign(n,{async:!1}):{async:!1},o=e._zod.run({value:t,issues:[]},s);if(o instanceof Promise)throw new On;if(o.issues.length){const i=new((a=r==null?void 0:r.Err)!=null?a:A)(o.issues.map(l=>Lt(l,s,It())));throw Ul(i,r==null?void 0:r.callee),i}return o.value},Vi=A=>(e,t,n,r)=>T(null,null,function*(){var a;const s=n?Object.assign(n,{async:!0}):{async:!0};let o=e._zod.run({value:t,issues:[]},s);if(o instanceof Promise&&(o=yield o),o.issues.length){const i=new((a=r==null?void 0:r.Err)!=null?a:A)(o.issues.map(l=>Lt(l,s,It())));throw Ul(i,r==null?void 0:r.callee),i}return o.value}),Ps=A=>(e,t,n)=>{const r=n?$(k({},n),{async:!1}):{async:!1},s=e._zod.run({value:t,issues:[]},r);if(s instanceof Promise)throw new On;return s.issues.length?{success:!1,error:new(A!=null?A:kl)(s.issues.map(o=>Lt(o,r,It())))}:{success:!0,data:s.value}},xg=Ps(vl),Ks=A=>(e,t,n)=>T(null,null,function*(){const r=n?Object.assign(n,{async:!0}):{async:!0};let s=e._zod.run({value:t,issues:[]},r);return s instanceof Promise&&(s=yield s),s.issues.length?{success:!1,error:new A(s.issues.map(o=>Lt(o,r,It())))}:{success:!0,data:s.value}}),Sg=Ks(vl),Ig=A=>(e,t,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Gi(A)(e,t,r)},Tg=A=>(e,t,n)=>Gi(A)(e,t,n),Hg=A=>(e,t,n)=>T(null,null,function*(){const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Vi(A)(e,t,r)}),Lg=A=>(e,t,n)=>T(null,null,function*(){return Vi(A)(e,t,n)}),Dg=A=>(e,t,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ps(A)(e,t,r)},Rg=A=>(e,t,n)=>Ps(A)(e,t,n),Og=A=>(e,t,n)=>T(null,null,function*(){const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ks(A)(e,t,r)}),Mg=A=>(e,t,n)=>T(null,null,function*(){return Ks(A)(e,t,n)}),Pg=/^[cC][^\s-]{8,}$/,Kg=/^[0-9a-z]+$/,Ng=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,zg=/^[0-9a-vA-V]{20}$/,$g=/^[A-Za-z0-9]{27}$/,Gg=/^[a-zA-Z0-9_-]{21}$/,Vg=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Zg=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,_l=A=>A?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${A}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Xg=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Wg="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Jg(){return new RegExp(Wg,"u")}const jg=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Yg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,qg=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,AB=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,eB=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,xl=/^[A-Za-z0-9_-]*$/,tB=/^\+[1-9]\d{6,14}$/,Sl="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",nB=new RegExp(`^${Sl}$`);function Il(A){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof A.precision=="number"?A.precision===-1?`${e}`:A.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${A.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function rB(A){return new RegExp(`^${Il(A)}$`)}function sB(A){const e=Il({precision:A.precision}),t=["Z"];A.local&&t.push(""),A.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${e}(?:${t.join("|")})`;return new RegExp(`^${Sl}T(?:${n})$`)}const oB=A=>{var t,n;const e=A?`[\\s\\S]{${(t=A==null?void 0:A.minimum)!=null?t:0},${(n=A==null?void 0:A.maximum)!=null?n:""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},iB=/^-?\d+$/,Tl=/^-?\d+(?:\.\d+)?$/,aB=/^(?:true|false)$/i,cB=/^[^A-Z]*$/,lB=/^[^a-z]*$/,fe=_("$ZodCheck",(A,e)=>{var n,r;var t;(n=A._zod)!=null||(A._zod={}),A._zod.def=e,(r=(t=A._zod).onattach)!=null||(t.onattach=[])}),Hl={number:"number",bigint:"bigint",object:"date"},Ll=_("$ZodCheckLessThan",(A,e)=>{fe.init(A,e);const t=Hl[typeof e.value];A._zod.onattach.push(n=>{var o;const r=n._zod.bag,s=(o=e.inclusive?r.maximum:r.exclusiveMaximum)!=null?o:Number.POSITIVE_INFINITY;e.value<s&&(e.inclusive?r.maximum=e.value:r.exclusiveMaximum=e.value)}),A._zod.check=n=>{(e.inclusive?n.value<=e.value:n.value<e.value)||n.issues.push({origin:t,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:A,continue:!e.abort})}}),Dl=_("$ZodCheckGreaterThan",(A,e)=>{fe.init(A,e);const t=Hl[typeof e.value];A._zod.onattach.push(n=>{var o;const r=n._zod.bag,s=(o=e.inclusive?r.minimum:r.exclusiveMinimum)!=null?o:Number.NEGATIVE_INFINITY;e.value>s&&(e.inclusive?r.minimum=e.value:r.exclusiveMinimum=e.value)}),A._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:t,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:A,continue:!e.abort})}}),uB=_("$ZodCheckMultipleOf",(A,e)=>{fe.init(A,e),A._zod.onattach.push(t=>{var r;var n;(r=(n=t._zod.bag).multipleOf)!=null||(n.multipleOf=e.value)}),A._zod.check=t=>{if(typeof t.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%e.value===BigInt(0):fg(t.value,e.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:e.value,input:t.value,inst:A,continue:!e.abort})}}),dB=_("$ZodCheckNumberFormat",(A,e)=>{var o;fe.init(A,e),e.format=e.format||"float64";const t=(o=e.format)==null?void 0:o.includes("int"),n=t?"int":"number",[r,s]=Cg[e.format];A._zod.onattach.push(a=>{const i=a._zod.bag;i.format=e.format,i.minimum=r,i.maximum=s,t&&(i.pattern=iB)}),A._zod.check=a=>{const i=a.value;if(t){if(!Number.isInteger(i)){a.issues.push({expected:n,format:e.format,code:"invalid_type",continue:!1,input:i,inst:A});return}if(!Number.isSafeInteger(i)){i>0?a.issues.push({input:i,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:A,origin:n,inclusive:!0,continue:!e.abort}):a.issues.push({input:i,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:A,origin:n,inclusive:!0,continue:!e.abort});return}}i<r&&a.issues.push({origin:"number",input:i,code:"too_small",minimum:r,inclusive:!0,inst:A,continue:!e.abort}),i>s&&a.issues.push({origin:"number",input:i,code:"too_big",maximum:s,inclusive:!0,inst:A,continue:!e.abort})}}),pB=_("$ZodCheckMaxLength",(A,e)=>{var n;var t;fe.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Ni(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{var o;const s=(o=r._zod.bag.maximum)!=null?o:Number.POSITIVE_INFINITY;e.maximum<s&&(r._zod.bag.maximum=e.maximum)}),A._zod.check=r=>{const s=r.value;if(s.length<=e.maximum)return;const a=$i(s);r.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:s,inst:A,continue:!e.abort})}}),hB=_("$ZodCheckMinLength",(A,e)=>{var n;var t;fe.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Ni(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{var o;const s=(o=r._zod.bag.minimum)!=null?o:Number.NEGATIVE_INFINITY;e.minimum>s&&(r._zod.bag.minimum=e.minimum)}),A._zod.check=r=>{const s=r.value;if(s.length>=e.minimum)return;const a=$i(s);r.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:s,inst:A,continue:!e.abort})}}),fB=_("$ZodCheckLengthEquals",(A,e)=>{var n;var t;fe.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Ni(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{const s=r._zod.bag;s.minimum=e.length,s.maximum=e.length,s.length=e.length}),A._zod.check=r=>{const s=r.value,o=s.length;if(o===e.length)return;const a=$i(s),i=o>e.length;r.issues.push($(k({origin:a},i?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length}),{inclusive:!0,exact:!0,input:r.value,inst:A,continue:!e.abort}))}}),Ns=_("$ZodCheckStringFormat",(A,e)=>{var r,s;var t,n;fe.init(A,e),A._zod.onattach.push(o=>{var i;const a=o._zod.bag;a.format=e.format,e.pattern&&((i=a.patterns)!=null||(a.patterns=new Set),a.patterns.add(e.pattern))}),e.pattern?(r=(t=A._zod).check)!=null||(t.check=o=>{e.pattern.lastIndex=0,!e.pattern.test(o.value)&&o.issues.push($(k({origin:"string",code:"invalid_format",format:e.format,input:o.value},e.pattern?{pattern:e.pattern.toString()}:{}),{inst:A,continue:!e.abort}))}):(s=(n=A._zod).check)!=null||(n.check=()=>{})}),gB=_("$ZodCheckRegex",(A,e)=>{Ns.init(A,e),A._zod.check=t=>{e.pattern.lastIndex=0,!e.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:e.pattern.toString(),inst:A,continue:!e.abort})}}),BB=_("$ZodCheckLowerCase",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=cB),Ns.init(A,e)}),wB=_("$ZodCheckUpperCase",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=lB),Ns.init(A,e)}),mB=_("$ZodCheckIncludes",(A,e)=>{fe.init(A,e);const t=Pn(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${t}`:t);e.pattern=n,A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(n)}),A._zod.check=r=>{r.value.includes(e.includes,e.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:r.value,inst:A,continue:!e.abort})}}),CB=_("$ZodCheckStartsWith",(A,e)=>{var n;fe.init(A,e);const t=new RegExp(`^${Pn(e.prefix)}.*`);(n=e.pattern)!=null||(e.pattern=t),A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(t)}),A._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:A,continue:!e.abort})}}),bB=_("$ZodCheckEndsWith",(A,e)=>{var n;fe.init(A,e);const t=new RegExp(`.*${Pn(e.suffix)}$`);(n=e.pattern)!=null||(e.pattern=t),A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(t)}),A._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:A,continue:!e.abort})}}),QB=_("$ZodCheckOverwrite",(A,e)=>{fe.init(A,e),A._zod.check=t=>{t.value=e.tx(t.value)}});class yB{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const n=e.split(`
1585
+ `);let pl=!1;function kr(){if(pl)return;const A=document.createElement("style");A.setAttribute("data-ap-sdk","1"),A.textContent=sg,document.head.appendChild(A),pl=!0}function Ls(A){if(A===document.body)return"body";const e=[];let t=A;for(;t&&t!==document.body;){if(t.id){e.unshift(`#${CSS.escape(t.id)}`);break}let n=t.tagName.toLowerCase();const r=t.parentElement;if(r){const s=Array.from(r.children).filter(o=>o.tagName===t.tagName);if(s.length>1){const o=s.indexOf(t)+1;n+=`:nth-of-type(${o})`}}e.unshift(n),t=t.parentElement}return e.join(" > ")||A.tagName.toLowerCase()}function Rs(A,e=200){var n;const t=((n=A.textContent)!=null?n:"").replace(/\s+/g," ").trim();return t.length>e?t.slice(0,e)+"…":t}const og=["role","type","name","href","src","alt","title","for","placeholder","data-testid"];function Ds(A){const e=A.tagName.toLowerCase(),t=A.id?`#${A.id}`:"",n=A.classList.length?"."+Array.from(A.classList).join("."):"",r=[],s=new Set,o=a=>{if(s.has(a)||r.length>=8)return;const i=A.getAttribute(a);if(!i)return;s.add(a);const c=i.length>80?i.slice(0,80)+"…":i;r.push(`[${a}="${c}"]`)};for(const a of Array.from(A.attributes))a.name.startsWith("aria-")&&o(a.name);for(const a of og)o(a);return`${e}${t}${n}${r.join("")}`}function ig(A,e=80){const t=Array.from(A.childNodes).filter(n=>n.nodeType===Node.TEXT_NODE).map(n=>{var r;return((r=n.textContent)!=null?r:"").trim()}).filter(Boolean).join(" ");return t.length>e?t.slice(0,e)+"…":t}function ag(A,e=5,t=10){function n(r,s){const o=Ds(r),a=" ".repeat(s),i=Array.from(r.children).slice(0,t);if(s>=e||i.length===0){const c=ig(r);return c?`${a}${o} "${c}"`:`${a}${o}`}return[`${a}${o}`,...i.map(c=>n(c,s+1))].join(`
1586
+ `)}return n(A,0)}const cg='section, article, aside, nav, main, header, footer, form, fieldset, dialog, [role="region"], [role="navigation"], [role="main"], [role="complementary"], [role="banner"], [role="contentinfo"], [role="form"], [role="search"], [role="dialog"]',lg={fieldset:"legend",table:"caption",figure:"figcaption",details:"summary"};function Os(A,e){const t=A.replace(/\s+/g," ").trim();return t.length>e?t.slice(0,e)+"…":t}function ug(A){var t;const e=A.querySelectorAll('h1, h2, h3, h4, h5, h6, [role="heading"]');for(const n of Array.from(e)){let r=n.parentElement;for(;r&&r!==A&&!r.matches(cg);)r=r.parentElement;if(r===A){const s=((t=n.textContent)!=null?t:"").trim();if(s)return s}}return""}function dg(A,e=80){var o,a,i;const t=lg[A.tagName.toLowerCase()];if(t){const c=(a=(o=A.querySelector(t))==null?void 0:o.textContent)==null?void 0:a.trim();if(c)return Os(c,e)}const n=ug(A);if(n)return Os(n,e);const r=(i=A.getAttribute("aria-label"))==null?void 0:i.trim();if(r)return Os(r,e);const s=A.getAttribute("aria-labelledby");if(s){const c=s.split(/\s+/).map(u=>{var h,f,g;return(g=(f=(h=document.getElementById(u))==null?void 0:h.textContent)==null?void 0:f.trim())!=null?g:""}).filter(Boolean).join(" ");if(c)return Os(c,e)}return""}function pg(A,e=6){const t=[],n=new Set;let r=A;for(;r&&r!==document.body&&t.length<e;){const s=r===A?"":dg(r),o=s&&!n.has(s)?`${Ds(r)} ["${s}"]`:Ds(r);s&&n.add(s),t.unshift(o),r=r.parentElement}return t.join(" > ")||Ds(A)}function hl(A,e){return A.length>e?A.slice(0,e)+"… (truncated)":A}function Fr(A){var n;const e=document.querySelector(A);return((n=e==null?void 0:e.content)==null?void 0:n.trim())||void 0}function fl(){const A=e=>{try{return e()}catch(t){return}};return{description:A(()=>Fr('meta[name="description"]')),canonicalUrl:A(()=>{var e;return((e=document.querySelector('link[rel="canonical"]'))==null?void 0:e.href)||void 0}),lang:A(()=>document.documentElement.lang||void 0),ogTitle:A(()=>Fr('meta[property="og:title"]')),ogDescription:A(()=>Fr('meta[property="og:description"]')),ogType:A(()=>Fr('meta[property="og:type"]')),ogSiteName:A(()=>Fr('meta[property="og:site_name"]')),viewportWidth:A(()=>window.innerWidth),viewportHeight:A(()=>window.innerHeight),scrollX:A(()=>Math.round(window.scrollX)),scrollY:A(()=>Math.round(window.scrollY)),selectionText:A(()=>{var t;const e=(t=window.getSelection())==null?void 0:t.toString().trim();return e?hl(e,1e3):void 0}),capturedAt:new Date().toISOString()}}function hg(A){const e=[];let t=A;for(;t&&e.length<6;){let n=t.tagName.toLowerCase();t.id?n+=`#${t.id}`:t.classList.length&&(n+=`.${Array.from(t.classList).slice(0,2).join(".")}`),e.unshift(n),t=t.parentElement}return e.join(" > ")}function fg(A){const e=A.getAttribute("role")||void 0,t=A.getAttribute("aria-label")||void 0;let n;const r=A.closest("section, article, main, nav, aside, header, footer, [role]");if(r){const s=r.querySelector("h1, h2, h3, h4, h5, h6"),o=r.getAttribute("aria-label")||((s==null?void 0:s.textContent)||"").trim(),a=r.tagName.toLowerCase();n=o?`${a}: ${hl(o,120)}`:a}return{elementRole:e,elementAriaLabel:t,enclosingSection:n}}function gg(A,e){const t=[A.trim(),"",`Page: ${e.pageTitle} (${e.pageUrl})`];return e.description&&t.push(`Description: ${e.description}`),e.selectionText&&t.push(`Selection: ${e.selectionText}`),e.elementText&&t.push(`Selected element: ${e.elementText}`),e.elementRole&&t.push(` Role: ${e.elementRole}`),e.elementAriaLabel&&t.push(` ARIA label: ${e.elementAriaLabel}`),e.enclosingSection&&t.push(`Section: ${e.enclosingSection}`),e.ancestry&&t.push(`Ancestry: ${e.ancestry}`),e.cssSelector&&t.push(`Selector: ${e.cssSelector}`),t.join(`
1587
+ `)}const On=new Set;let Pn=null,Ps=!1,Pi=!1;function Bg(A){if(A.getAttribute("aria-modal")==="false")return!1;const e=getComputedStyle(A);return e.display!=="none"&&e.visibility!=="hidden"}function wg(){const A=document.querySelectorAll("dialog[open]");for(let t=0;t<A.length;t++)try{if(A[t].matches(":modal"))return!0}catch(n){}const e=document.querySelectorAll('[role="dialog"], [role="alertdialog"]');for(let t=0;t<e.length;t++){const n=e[t];if(!(On.has(n)||n.hasAttribute("data-ap-sdk"))&&n.isConnected&&Bg(n))return!0}return!1}function gl(){const A=wg(),e=A&&!Pi;Pi=A;for(const t of On){t.hasAttribute("inert")&&t.removeAttribute("inert"),t.getAttribute("aria-hidden")==="true"&&t.removeAttribute("aria-hidden");const n=t.contains(document.activeElement);if(t.matches(":popover-open")){if(e&&!n){try{t.hidePopover()}catch(r){}try{t.showPopover()}catch(r){}}}else try{t.showPopover()}catch(r){}}}function Bl(A){if(!(A instanceof Node))return!1;for(const e of On)if(e===A||e.contains(A))return!0;return!1}function Mn(A){(Bl(A.target)||"relatedTarget"in A&&Bl(A.relatedTarget))&&A.stopPropagation()}function mg(){Ps||(window.addEventListener("focusin",Mn,!0),window.addEventListener("focusout",Mn,!0),window.addEventListener("pointerdown",Mn,!0),Ps=!0),!Pn&&(Pn=new MutationObserver(A=>{A.some(t=>t.type==="childList"||t.attributeName==="open"&&t.target.tagName==="DIALOG"||t.attributeName==="inert"||t.attributeName==="aria-hidden"||t.attributeName==="role")&&gl()}),Pn.observe(document.documentElement,{attributes:!0,attributeFilter:["open","inert","aria-hidden","role"],childList:!0,subtree:!0}))}function ot(A){"showPopover"in A&&(A.setAttribute("popover","manual"),On.add(A),mg(),gl())}function it(A){if(On.delete(A),On.size===0&&(Pn&&(Pn.disconnect(),Pn=null),Ps&&(window.removeEventListener("focusin",Mn,!0),window.removeEventListener("focusout",Mn,!0),window.removeEventListener("pointerdown",Mn,!0),Ps=!1),Pi=!1),"hidePopover"in A)try{A.hidePopover()}catch(e){}}function Mi(A="ap-sdk-highlight"){const e=document.createElement("div");return e.className=A,e.setAttribute("data-ap-sdk","1"),e.style.display="none",document.body.appendChild(e),ot(e),{el:e,update:s=>{const o=s.getBoundingClientRect();e.style.top=`${o.top}px`,e.style.left=`${o.left}px`,e.style.width=`${o.width}px`,e.style.height=`${o.height}px`,e.style.display="block"},hide:()=>{e.style.display="none"},destroy:()=>{it(e),e.remove()}}}const wl=/^cc-|current-password|new-password/i,Cg=/token|secret|password|apikey|auth/i,Ni="[redacted]",Ms="[data-ap-sdk-exclude]";let Ki=null;function bg(A){Ki=(A==null?void 0:A.trim())||null}function ml(){return Ki?`${Ms}, ${Ki}`:Ms}function $i(A){let e;try{if(e=ml(),A.matches(e)){A.textContent="";return}for(const t of Array.from(A.querySelectorAll(e)))t.remove()}catch(t){for(const n of Array.from(A.querySelectorAll(Ms)))n.remove()}}function Cl(A){if(A instanceof HTMLInputElement&&A.type==="password")return!0;const e=A.getAttribute("autocomplete");return!!e&&wl.test(e)}function bl(A){if(Cl(A))return!0;try{return A.closest(ml())!==null}catch(e){return A.closest(Ms)!==null}}function Ql(A){const e=[A,...Array.from(A.querySelectorAll("*"))];for(const t of e){t instanceof HTMLInputElement&&t.type==="password"&&t.setAttribute("value",Ni);const n=t.getAttribute("autocomplete");n&&wl.test(n)&&t.setAttribute("value",Ni);for(const r of Array.from(t.attributes))Cg.test(r.name)&&t.setAttribute(r.name,Ni)}}const Qg="🎯 Click any element to capture";let Dt=null,KA=null,Ae=null;function vr(A){return A instanceof Element?A.closest("[data-ap-sdk]")!==null||A.closest(".ap-sdk-panel")!==null||A.closest(".ap-sdk-highlight")!==null||A.closest(".ap-sdk-picker-cursor")!==null:!1}function yg(){var A,e;return((e=(A=window.matchMedia)==null?void 0:A.call(window,"(pointer: coarse)").matches)!=null?e:!1)||"ontouchstart"in window}function yl(A){Dt==null||Dt.update(A)}function Ul(A){const e=fl(),t=hg(A),n=fg(A);let r=A,s;try{const o=A.cloneNode(!0);Ql(o),$i(o),r=o,s=o.outerHTML.slice(0,4e3)}catch(o){}return F(F({pageUrl:window.location.href,pageTitle:document.title,elementText:Rs(r),cssSelector:Ls(A),innerTree:ag(r),outerTree:pg(A),elementOuterHtml:s,ancestry:t},n),e)}function zi(A,e){Ae&&Ae();const t=yg();Dt=Mi(),KA=document.createElement("div"),KA.className="ap-sdk-picker-cursor",KA.setAttribute("data-ap-sdk","1"),KA.textContent=t?"Tap any element to preview":Qg,document.body.appendChild(KA),ot(KA);let n=null,r=null;const s=u=>{Ae==null||Ae(),A(Ul(u),u)},o=u=>{if(r=u,yl(u),!KA)return;KA.classList.add("ap-sdk-picker-cursor--confirm"),KA.innerHTML="";const h=document.createElement("span");h.className="ap-sdk-picker-cursor__label",h.textContent=`<${u.tagName.toLowerCase()}>`;const f=document.createElement("button");f.type="button",f.className="ap-sdk-picker-cursor__btn ap-sdk-picker-cursor__btn--cancel",f.textContent="✕ Cancel",f.setAttribute("data-ap-sdk","1"),f.setAttribute("aria-label","Cancel picking"),f.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),Ae==null||Ae(),e()});const g=document.createElement("button");g.type="button",g.className="ap-sdk-picker-cursor__btn",g.textContent="⬆ Parent",g.setAttribute("data-ap-sdk","1"),g.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),r!=null&&r.parentElement&&o(r.parentElement)});const m=document.createElement("button");m.type="button",m.className="ap-sdk-picker-cursor__btn ap-sdk-picker-cursor__btn--primary",m.textContent="✓ Select",m.setAttribute("data-ap-sdk","1"),m.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),r&&s(r)}),KA.appendChild(h),KA.appendChild(f),KA.appendChild(g),KA.appendChild(m)},a=u=>{vr(u.target)||(n=u.target,yl(n))},i=u=>{var f;if(vr(u.target))return;u.preventDefault(),u.stopImmediatePropagation();const h=(f=u.target)!=null?f:n;if(h){if(t){o(h);return}s(h)}},c=u=>{u.key==="Escape"&&(Ae==null||Ae(),e())};t||document.addEventListener("mouseover",a,{capture:!0}),document.addEventListener("click",i,{capture:!0}),document.addEventListener("keydown",c,{capture:!0}),Ae=()=>{t||document.removeEventListener("mouseover",a,{capture:!0}),document.removeEventListener("click",i,{capture:!0}),document.removeEventListener("keydown",c,{capture:!0}),KA&&it(KA),KA==null||KA.remove(),Dt==null||Dt.destroy(),Dt=null,KA=null,r=null,Ae=null}}function Vi(){Ae==null||Ae()}function Nn(){return Ae!==null}const Gi="browser_capture",El="browser_automate";var Ns=(A=>(A.TASK="task",A.PLANNING_SESSION="planning_session",A))(Ns||{}),Ks=(A=>(A.CREATE="create",A.RETRY="retry",A.LIVE_INSTRUCTION="live_instruction",A.REJECT_RESULT="reject_result",A))(Ks||{});const $s={TASK_STATUS_UPDATED:"task:status:updated",TASK_INTERACTION_CREATED:"task:interaction:created",TASK_INTERACTION_ANSWERED:"task:interaction:answered",TASK_BROWSER_COMMAND_CREATED:"task:browser-command:created"};function _(A,e,t){var a;function n(i,c){if(i._zod||Object.defineProperty(i,"_zod",{value:{def:c,constr:o,traits:new Set},enumerable:!1}),i._zod.traits.has(A))return;i._zod.traits.add(A),e(i,c);const u=o.prototype,h=Object.keys(u);for(let f=0;f<h.length;f++){const g=h[f];g in i||(i[g]=u[g].bind(i))}}const r=(a=t==null?void 0:t.Parent)!=null?a:Object;class s extends r{}Object.defineProperty(s,"name",{value:A});function o(i){var h;var c;const u=t!=null&&t.Parent?new s:this;n(u,i),(h=(c=u._zod).deferred)!=null||(c.deferred=[]);for(const f of u._zod.deferred)f();return u}return Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:i=>{var c,u;return t!=null&&t.Parent&&i instanceof t.Parent?!0:(u=(c=i==null?void 0:i._zod)==null?void 0:c.traits)==null?void 0:u.has(A)}}),Object.defineProperty(o,"name",{value:A}),o}class Kn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class kl extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const Fl={};function Ot(A){return Fl}function vl(A){const e=Object.values(A).filter(n=>typeof n=="number");return Object.entries(A).filter(([n,r])=>e.indexOf(+n)===-1).map(([n,r])=>r)}function Zi(A,e){return typeof e=="bigint"?e.toString():e}function zs(A){return{get value(){{const e=A();return Object.defineProperty(this,"value",{value:e}),e}}}}function Xi(A){return A==null}function Wi(A){const e=A.startsWith("^")?1:0,t=A.endsWith("$")?A.length-1:A.length;return A.slice(e,t)}function Ug(A,e){const t=(A.toString().split(".")[1]||"").length,n=e.toString();let r=(n.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(n)){const i=n.match(/\d?e-(\d?)/);i!=null&&i[1]&&(r=Number.parseInt(i[1]))}const s=t>r?t:r,o=Number.parseInt(A.toFixed(s).replace(".","")),a=Number.parseInt(e.toFixed(s).replace(".",""));return o%a/Ue(10,s)}const _l=Symbol("evaluating");function iA(A,e,t){let n;Object.defineProperty(A,e,{get(){if(n!==_l)return n===void 0&&(n=_l,n=t()),n},set(r){Object.defineProperty(A,e,{value:r})},configurable:!0})}function rn(A,e,t){Object.defineProperty(A,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Pt(...A){const e={};for(const t of A){const n=Object.getOwnPropertyDescriptors(t);Object.assign(e,n)}return Object.defineProperties({},e)}function xl(A){return JSON.stringify(A)}function Eg(A){return A.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Sl="captureStackTrace"in Error?Error.captureStackTrace:(...A)=>{};function _r(A){return typeof A=="object"&&A!==null&&!Array.isArray(A)}const kg=zs(()=>{var A;if(typeof navigator!="undefined"&&((A=navigator==null?void 0:navigator.userAgent)!=null&&A.includes("Cloudflare")))return!1;try{const e=Function;return new e(""),!0}catch(e){return!1}});function $n(A){if(_r(A)===!1)return!1;const e=A.constructor;if(e===void 0||typeof e!="function")return!0;const t=e.prototype;return!(_r(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function Il(A){return $n(A)?F({},A):Array.isArray(A)?[...A]:A}const Fg=new Set(["string","number","symbol"]);function zn(A){return A.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Mt(A,e,t){const n=new A._zod.constr(e!=null?e:A._zod.def);return(!e||t!=null&&t.parent)&&(n._zod.parent=A),n}function V(A){const e=A;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?z(F({},e),{error:()=>e.error}):e}function vg(A){return Object.keys(A).filter(e=>A[e]._zod.optin==="optional"&&A[e]._zod.optout==="optional")}const _g={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function xg(A,e){const t=A._zod.def,n=t.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=Pt(A._zod.def,{get shape(){const o={};for(const a in e){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&(o[a]=t.shape[a])}return rn(this,"shape",o),o},checks:[]});return Mt(A,s)}function Sg(A,e){const t=A._zod.def,n=t.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=Pt(A._zod.def,{get shape(){const o=F({},A._zod.def.shape);for(const a in e){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&delete o[a]}return rn(this,"shape",o),o},checks:[]});return Mt(A,s)}function Ig(A,e){if(!$n(e))throw new Error("Invalid input to extend: expected a plain object");const t=A._zod.def.checks;if(t&&t.length>0){const s=A._zod.def.shape;for(const o in e)if(Object.getOwnPropertyDescriptor(s,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=Pt(A._zod.def,{get shape(){const s=F(F({},A._zod.def.shape),e);return rn(this,"shape",s),s}});return Mt(A,r)}function Tg(A,e){if(!$n(e))throw new Error("Invalid input to safeExtend: expected a plain object");const t=Pt(A._zod.def,{get shape(){const n=F(F({},A._zod.def.shape),e);return rn(this,"shape",n),n}});return Mt(A,t)}function Hg(A,e){const t=Pt(A._zod.def,{get shape(){const n=F(F({},A._zod.def.shape),e._zod.def.shape);return rn(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:[]});return Mt(A,t)}function Lg(A,e,t){const r=e._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=Pt(e._zod.def,{get shape(){const a=e._zod.def.shape,i=F({},a);if(t)for(const c in t){if(!(c in a))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(i[c]=A?new A({type:"optional",innerType:a[c]}):a[c])}else for(const c in a)i[c]=A?new A({type:"optional",innerType:a[c]}):a[c];return rn(this,"shape",i),i},checks:[]});return Mt(e,o)}function Rg(A,e,t){const n=Pt(e._zod.def,{get shape(){const r=e._zod.def.shape,s=F({},r);if(t)for(const o in t){if(!(o in s))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(s[o]=new A({type:"nonoptional",innerType:r[o]}))}else for(const o in r)s[o]=new A({type:"nonoptional",innerType:r[o]});return rn(this,"shape",s),s}});return Mt(e,n)}function Vn(A,e=0){var t;if(A.aborted===!0)return!0;for(let n=e;n<A.issues.length;n++)if(((t=A.issues[n])==null?void 0:t.continue)!==!0)return!0;return!1}function Gn(A,e){return e.map(t=>{var r;var n;return(r=(n=t).path)!=null||(n.path=[]),t.path.unshift(A),t})}function Vs(A){return typeof A=="string"?A:A==null?void 0:A.message}function Nt(A,e,t){var r,s,o,a,i,c,u,h,f,g,m;const n=z(F({},A),{path:(r=A.path)!=null?r:[]});if(!A.message){const b=(m=(g=(h=(c=Vs((a=(o=(s=A.inst)==null?void 0:s._zod.def)==null?void 0:o.error)==null?void 0:a.call(o,A)))!=null?c:Vs((i=e==null?void 0:e.error)==null?void 0:i.call(e,A)))!=null?h:Vs((u=t.customError)==null?void 0:u.call(t,A)))!=null?g:Vs((f=t.localeError)==null?void 0:f.call(t,A)))!=null?m:"Invalid input";n.message=b}return delete n.inst,delete n.continue,e!=null&&e.reportInput||delete n.input,n}function Ji(A){return Array.isArray(A)?"array":typeof A=="string"?"string":"unknown"}function xr(...A){const[e,t,n]=A;return typeof e=="string"?{message:e,code:"custom",input:t,inst:n}:F({},e)}const Tl=(A,e)=>{A.name="$ZodError",Object.defineProperty(A,"_zod",{value:A._zod,enumerable:!1}),Object.defineProperty(A,"issues",{value:e,enumerable:!1}),A.message=JSON.stringify(e,Zi,2),Object.defineProperty(A,"toString",{value:()=>A.message,enumerable:!1})},Hl=_("$ZodError",Tl),Ll=_("$ZodError",Tl,{Parent:Error});function Dg(A,e=t=>t.message){const t={},n=[];for(const r of A.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}function Og(A,e=t=>t.message){const t={_errors:[]},n=r=>{for(const s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>n({issues:o}));else if(s.code==="invalid_key")n({issues:s.issues});else if(s.code==="invalid_element")n({issues:s.issues});else if(s.path.length===0)t._errors.push(e(s));else{let o=t,a=0;for(;a<s.path.length;){const i=s.path[a];a===s.path.length-1?(o[i]=o[i]||{_errors:[]},o[i]._errors.push(e(s))):o[i]=o[i]||{_errors:[]},o=o[i],a++}}};return n(A),t}const ji=A=>(e,t,n,r)=>{var a;const s=n?Object.assign(n,{async:!1}):{async:!1},o=e._zod.run({value:t,issues:[]},s);if(o instanceof Promise)throw new Kn;if(o.issues.length){const i=new((a=r==null?void 0:r.Err)!=null?a:A)(o.issues.map(c=>Nt(c,s,Ot())));throw Sl(i,r==null?void 0:r.callee),i}return o.value},Yi=A=>(e,t,n,r)=>I(null,null,function*(){var a;const s=n?Object.assign(n,{async:!0}):{async:!0};let o=e._zod.run({value:t,issues:[]},s);if(o instanceof Promise&&(o=yield o),o.issues.length){const i=new((a=r==null?void 0:r.Err)!=null?a:A)(o.issues.map(c=>Nt(c,s,Ot())));throw Sl(i,r==null?void 0:r.callee),i}return o.value}),Gs=A=>(e,t,n)=>{const r=n?z(F({},n),{async:!1}):{async:!1},s=e._zod.run({value:t,issues:[]},r);if(s instanceof Promise)throw new Kn;return s.issues.length?{success:!1,error:new(A!=null?A:Hl)(s.issues.map(o=>Nt(o,r,Ot())))}:{success:!0,data:s.value}},Pg=Gs(Ll),Zs=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{async:!0}):{async:!0};let s=e._zod.run({value:t,issues:[]},r);return s instanceof Promise&&(s=yield s),s.issues.length?{success:!1,error:new A(s.issues.map(o=>Nt(o,r,Ot())))}:{success:!0,data:s.value}}),Mg=Zs(Ll),Ng=A=>(e,t,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ji(A)(e,t,r)},Kg=A=>(e,t,n)=>ji(A)(e,t,n),$g=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Yi(A)(e,t,r)}),zg=A=>(e,t,n)=>I(null,null,function*(){return Yi(A)(e,t,n)}),Vg=A=>(e,t,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Gs(A)(e,t,r)},Gg=A=>(e,t,n)=>Gs(A)(e,t,n),Zg=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Zs(A)(e,t,r)}),Xg=A=>(e,t,n)=>I(null,null,function*(){return Zs(A)(e,t,n)}),Wg=/^[cC][^\s-]{8,}$/,Jg=/^[0-9a-z]+$/,jg=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Yg=/^[0-9a-vA-V]{20}$/,qg=/^[A-Za-z0-9]{27}$/,AB=/^[a-zA-Z0-9_-]{21}$/,eB=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,tB=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Rl=A=>A?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${A}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,nB=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,rB="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function sB(){return new RegExp(rB,"u")}const oB=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,iB=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,aB=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,cB=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,lB=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Dl=/^[A-Za-z0-9_-]*$/,uB=/^\+[1-9]\d{6,14}$/,Ol="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",dB=new RegExp(`^${Ol}$`);function Pl(A){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof A.precision=="number"?A.precision===-1?`${e}`:A.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${A.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function pB(A){return new RegExp(`^${Pl(A)}$`)}function hB(A){const e=Pl({precision:A.precision}),t=["Z"];A.local&&t.push(""),A.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${e}(?:${t.join("|")})`;return new RegExp(`^${Ol}T(?:${n})$`)}const fB=A=>{var t,n;const e=A?`[\\s\\S]{${(t=A==null?void 0:A.minimum)!=null?t:0},${(n=A==null?void 0:A.maximum)!=null?n:""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},gB=/^-?\d+$/,Ml=/^-?\d+(?:\.\d+)?$/,BB=/^(?:true|false)$/i,wB=/^[^A-Z]*$/,mB=/^[^a-z]*$/,ge=_("$ZodCheck",(A,e)=>{var n,r;var t;(n=A._zod)!=null||(A._zod={}),A._zod.def=e,(r=(t=A._zod).onattach)!=null||(t.onattach=[])}),Nl={number:"number",bigint:"bigint",object:"date"},Kl=_("$ZodCheckLessThan",(A,e)=>{ge.init(A,e);const t=Nl[typeof e.value];A._zod.onattach.push(n=>{var o;const r=n._zod.bag,s=(o=e.inclusive?r.maximum:r.exclusiveMaximum)!=null?o:Number.POSITIVE_INFINITY;e.value<s&&(e.inclusive?r.maximum=e.value:r.exclusiveMaximum=e.value)}),A._zod.check=n=>{(e.inclusive?n.value<=e.value:n.value<e.value)||n.issues.push({origin:t,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:A,continue:!e.abort})}}),$l=_("$ZodCheckGreaterThan",(A,e)=>{ge.init(A,e);const t=Nl[typeof e.value];A._zod.onattach.push(n=>{var o;const r=n._zod.bag,s=(o=e.inclusive?r.minimum:r.exclusiveMinimum)!=null?o:Number.NEGATIVE_INFINITY;e.value>s&&(e.inclusive?r.minimum=e.value:r.exclusiveMinimum=e.value)}),A._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:t,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:A,continue:!e.abort})}}),CB=_("$ZodCheckMultipleOf",(A,e)=>{ge.init(A,e),A._zod.onattach.push(t=>{var r;var n;(r=(n=t._zod.bag).multipleOf)!=null||(n.multipleOf=e.value)}),A._zod.check=t=>{if(typeof t.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%e.value===BigInt(0):Ug(t.value,e.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:e.value,input:t.value,inst:A,continue:!e.abort})}}),bB=_("$ZodCheckNumberFormat",(A,e)=>{var o;ge.init(A,e),e.format=e.format||"float64";const t=(o=e.format)==null?void 0:o.includes("int"),n=t?"int":"number",[r,s]=_g[e.format];A._zod.onattach.push(a=>{const i=a._zod.bag;i.format=e.format,i.minimum=r,i.maximum=s,t&&(i.pattern=gB)}),A._zod.check=a=>{const i=a.value;if(t){if(!Number.isInteger(i)){a.issues.push({expected:n,format:e.format,code:"invalid_type",continue:!1,input:i,inst:A});return}if(!Number.isSafeInteger(i)){i>0?a.issues.push({input:i,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:A,origin:n,inclusive:!0,continue:!e.abort}):a.issues.push({input:i,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:A,origin:n,inclusive:!0,continue:!e.abort});return}}i<r&&a.issues.push({origin:"number",input:i,code:"too_small",minimum:r,inclusive:!0,inst:A,continue:!e.abort}),i>s&&a.issues.push({origin:"number",input:i,code:"too_big",maximum:s,inclusive:!0,inst:A,continue:!e.abort})}}),QB=_("$ZodCheckMaxLength",(A,e)=>{var n;var t;ge.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Xi(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{var o;const s=(o=r._zod.bag.maximum)!=null?o:Number.POSITIVE_INFINITY;e.maximum<s&&(r._zod.bag.maximum=e.maximum)}),A._zod.check=r=>{const s=r.value;if(s.length<=e.maximum)return;const a=Ji(s);r.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:s,inst:A,continue:!e.abort})}}),yB=_("$ZodCheckMinLength",(A,e)=>{var n;var t;ge.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Xi(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{var o;const s=(o=r._zod.bag.minimum)!=null?o:Number.NEGATIVE_INFINITY;e.minimum>s&&(r._zod.bag.minimum=e.minimum)}),A._zod.check=r=>{const s=r.value;if(s.length>=e.minimum)return;const a=Ji(s);r.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:s,inst:A,continue:!e.abort})}}),UB=_("$ZodCheckLengthEquals",(A,e)=>{var n;var t;ge.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Xi(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{const s=r._zod.bag;s.minimum=e.length,s.maximum=e.length,s.length=e.length}),A._zod.check=r=>{const s=r.value,o=s.length;if(o===e.length)return;const a=Ji(s),i=o>e.length;r.issues.push(z(F({origin:a},i?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length}),{inclusive:!0,exact:!0,input:r.value,inst:A,continue:!e.abort}))}}),Xs=_("$ZodCheckStringFormat",(A,e)=>{var r,s;var t,n;ge.init(A,e),A._zod.onattach.push(o=>{var i;const a=o._zod.bag;a.format=e.format,e.pattern&&((i=a.patterns)!=null||(a.patterns=new Set),a.patterns.add(e.pattern))}),e.pattern?(r=(t=A._zod).check)!=null||(t.check=o=>{e.pattern.lastIndex=0,!e.pattern.test(o.value)&&o.issues.push(z(F({origin:"string",code:"invalid_format",format:e.format,input:o.value},e.pattern?{pattern:e.pattern.toString()}:{}),{inst:A,continue:!e.abort}))}):(s=(n=A._zod).check)!=null||(n.check=()=>{})}),EB=_("$ZodCheckRegex",(A,e)=>{Xs.init(A,e),A._zod.check=t=>{e.pattern.lastIndex=0,!e.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:e.pattern.toString(),inst:A,continue:!e.abort})}}),kB=_("$ZodCheckLowerCase",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=wB),Xs.init(A,e)}),FB=_("$ZodCheckUpperCase",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=mB),Xs.init(A,e)}),vB=_("$ZodCheckIncludes",(A,e)=>{ge.init(A,e);const t=zn(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${t}`:t);e.pattern=n,A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(n)}),A._zod.check=r=>{r.value.includes(e.includes,e.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:r.value,inst:A,continue:!e.abort})}}),_B=_("$ZodCheckStartsWith",(A,e)=>{var n;ge.init(A,e);const t=new RegExp(`^${zn(e.prefix)}.*`);(n=e.pattern)!=null||(e.pattern=t),A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(t)}),A._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:A,continue:!e.abort})}}),xB=_("$ZodCheckEndsWith",(A,e)=>{var n;ge.init(A,e);const t=new RegExp(`.*${zn(e.suffix)}$`);(n=e.pattern)!=null||(e.pattern=t),A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(t)}),A._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:A,continue:!e.abort})}}),SB=_("$ZodCheckOverwrite",(A,e)=>{ge.init(A,e),A._zod.check=t=>{t.value=e.tx(t.value)}});class IB{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const n=e.split(`
1588
1588
  `).filter(o=>o),r=Math.min(...n.map(o=>o.length-o.trimStart().length)),s=n.map(o=>o.slice(r)).map(o=>" ".repeat(this.indent*2)+o);for(const o of s)this.content.push(o)}compile(){var s;const e=Function,t=this==null?void 0:this.args,r=[...((s=this==null?void 0:this.content)!=null?s:[""]).map(o=>` ${o}`)];return new e(...t,r.join(`
1589
- `))}}const UB={major:4,minor:3,patch:5},QA=_("$ZodType",(A,e)=>{var r,s,o;var t;A!=null||(A={}),A._zod.def=e,A._zod.bag=A._zod.bag||{},A._zod.version=UB;const n=[...(r=A._zod.def.checks)!=null?r:[]];A._zod.traits.has("$ZodCheck")&&n.unshift(A);for(const a of n)for(const i of a._zod.onattach)i(A);if(n.length===0)(s=(t=A._zod).deferred)!=null||(t.deferred=[]),(o=A._zod.deferred)==null||o.push(()=>{A._zod.run=A._zod.parse});else{const a=(l,u,h)=>{let f=Kn(l),g;for(const m of u){if(m._zod.def.when){if(!m._zod.def.when(l))continue}else if(f)continue;const Q=l.issues.length,U=m._zod.check(l);if(U instanceof Promise&&(h==null?void 0:h.async)===!1)throw new On;if(g||U instanceof Promise)g=(g!=null?g:Promise.resolve()).then(()=>T(null,null,function*(){yield U,l.issues.length!==Q&&(f||(f=Kn(l,Q)))}));else{if(l.issues.length===Q)continue;f||(f=Kn(l,Q))}}return g?g.then(()=>l):l},i=(l,u,h)=>{if(Kn(l))return l.aborted=!0,l;const f=a(u,n,h);if(f instanceof Promise){if(h.async===!1)throw new On;return f.then(g=>A._zod.parse(g,h))}return A._zod.parse(f,h)};A._zod.run=(l,u)=>{if(u.skipChecks)return A._zod.parse(l,u);if(u.direction==="backward"){const f=A._zod.parse({value:l.value,issues:[]},$(k({},u),{skipChecks:!0}));return f instanceof Promise?f.then(g=>i(g,l,u)):i(f,l,u)}const h=A._zod.parse(l,u);if(h instanceof Promise){if(u.async===!1)throw new On;return h.then(f=>a(f,n,u))}return a(h,n,u)}}oA(A,"~standard",()=>({validate:a=>{var i;try{const l=xg(A,a);return l.success?{value:l.data}:{issues:(i=l.error)==null?void 0:i.issues}}catch(l){return Sg(A,a).then(u=>{var h;return u.success?{value:u.data}:{issues:(h=u.error)==null?void 0:h.issues}})}},vendor:"zod",version:1}))}),Zi=_("$ZodString",(A,e)=>{var t,n,r;QA.init(A,e),A._zod.pattern=(r=[...(n=(t=A==null?void 0:A._zod.bag)==null?void 0:t.patterns)!=null?n:[]].pop())!=null?r:oB(A._zod.bag),A._zod.parse=(s,o)=>{if(e.coerce)try{s.value=String(s.value)}catch(a){}return typeof s.value=="string"||s.issues.push({expected:"string",code:"invalid_type",input:s.value,inst:A}),s}}),yA=_("$ZodStringFormat",(A,e)=>{Ns.init(A,e),Zi.init(A,e)}),EB=_("$ZodGUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Zg),yA.init(A,e)}),FB=_("$ZodUUID",(A,e)=>{var t,n;if(e.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(s===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);(t=e.pattern)!=null||(e.pattern=_l(s))}else(n=e.pattern)!=null||(e.pattern=_l());yA.init(A,e)}),kB=_("$ZodEmail",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Xg),yA.init(A,e)}),vB=_("$ZodURL",(A,e)=>{yA.init(A,e),A._zod.check=t=>{try{const n=t.value.trim(),r=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(r.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:t.value,inst:A,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:t.value,inst:A,continue:!e.abort})),e.normalize?t.value=r.href:t.value=n;return}catch(n){t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:A,continue:!e.abort})}}}),_B=_("$ZodEmoji",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Jg()),yA.init(A,e)}),xB=_("$ZodNanoID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Gg),yA.init(A,e)}),SB=_("$ZodCUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Pg),yA.init(A,e)}),IB=_("$ZodCUID2",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Kg),yA.init(A,e)}),TB=_("$ZodULID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Ng),yA.init(A,e)}),HB=_("$ZodXID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=zg),yA.init(A,e)}),LB=_("$ZodKSUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=$g),yA.init(A,e)}),DB=_("$ZodISODateTime",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=sB(e)),yA.init(A,e)}),RB=_("$ZodISODate",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=nB),yA.init(A,e)}),OB=_("$ZodISOTime",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=rB(e)),yA.init(A,e)}),MB=_("$ZodISODuration",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Vg),yA.init(A,e)}),PB=_("$ZodIPv4",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=jg),yA.init(A,e),A._zod.bag.format="ipv4"}),KB=_("$ZodIPv6",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Yg),yA.init(A,e),A._zod.bag.format="ipv6",A._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch(r){n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:A,continue:!e.abort})}}}),NB=_("$ZodCIDRv4",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=qg),yA.init(A,e)}),zB=_("$ZodCIDRv6",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=AB),yA.init(A,e),A._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[s,o]=r;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${s}]`)}catch(s){n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:A,continue:!e.abort})}}});function Rl(A){if(A==="")return!0;if(A.length%4!==0)return!1;try{return atob(A),!0}catch(e){return!1}}const $B=_("$ZodBase64",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=eB),yA.init(A,e),A._zod.bag.contentEncoding="base64",A._zod.check=n=>{Rl(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:A,continue:!e.abort})}});function GB(A){if(!xl.test(A))return!1;const e=A.replace(/[-_]/g,n=>n==="-"?"+":"/"),t=e.padEnd(Math.ceil(e.length/4)*4,"=");return Rl(t)}const VB=_("$ZodBase64URL",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=xl),yA.init(A,e),A._zod.bag.contentEncoding="base64url",A._zod.check=n=>{GB(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:A,continue:!e.abort})}}),ZB=_("$ZodE164",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=tB),yA.init(A,e)});function XB(A,e=null){try{const t=A.split(".");if(t.length!==3)return!1;const[n]=t;if(!n)return!1;const r=JSON.parse(atob(n));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||e&&(!("alg"in r)||r.alg!==e))}catch(t){return!1}}const WB=_("$ZodJWT",(A,e)=>{yA.init(A,e),A._zod.check=t=>{XB(t.value,e.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:A,continue:!e.abort})}}),Ol=_("$ZodNumber",(A,e)=>{var t;QA.init(A,e),A._zod.pattern=(t=A._zod.bag.pattern)!=null?t:Tl,A._zod.parse=(n,r)=>{if(e.coerce)try{n.value=Number(n.value)}catch(a){}const s=n.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return n;const o=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push(k({expected:"number",code:"invalid_type",input:s,inst:A},o?{received:o}:{})),n}}),JB=_("$ZodNumberFormat",(A,e)=>{dB.init(A,e),Ol.init(A,e)}),jB=_("$ZodBoolean",(A,e)=>{QA.init(A,e),A._zod.pattern=aB,A._zod.parse=(t,n)=>{if(e.coerce)try{t.value=!!t.value}catch(s){}const r=t.value;return typeof r=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:A}),t}}),YB=_("$ZodAny",(A,e)=>{QA.init(A,e),A._zod.parse=t=>t}),qB=_("$ZodUnknown",(A,e)=>{QA.init(A,e),A._zod.parse=t=>t}),Aw=_("$ZodNever",(A,e)=>{QA.init(A,e),A._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:A}),t)});function Ml(A,e,t){A.issues.length&&e.issues.push(...Nn(t,A.issues)),e.value[t]=A.value}const ew=_("$ZodArray",(A,e)=>{QA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value;if(!Array.isArray(r))return t.issues.push({expected:"array",code:"invalid_type",input:r,inst:A}),t;t.value=Array(r.length);const s=[];for(let o=0;o<r.length;o++){const a=r[o],i=e.element._zod.run({value:a,issues:[]},n);i instanceof Promise?s.push(i.then(l=>Ml(l,t,o))):Ml(i,t,o)}return s.length?Promise.all(s).then(()=>t):t}});function zs(A,e,t,n,r){if(A.issues.length){if(r&&!(t in n))return;e.issues.push(...Nn(t,A.issues))}A.value===void 0?t in n&&(e.value[t]=void 0):e.value[t]=A.value}function Pl(A){var n,r,s,o;const e=Object.keys(A.shape);for(const a of e)if(!((o=(s=(r=(n=A.shape)==null?void 0:n[a])==null?void 0:r._zod)==null?void 0:s.traits)!=null&&o.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const t=mg(A.shape);return $(k({},A),{keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(t)})}function Kl(A,e,t,n,r,s){const o=[],a=r.keySet,i=r.catchall._zod,l=i.def.type,u=i.optout==="optional";for(const h in e){if(a.has(h))continue;if(l==="never"){o.push(h);continue}const f=i.run({value:e[h],issues:[]},n);f instanceof Promise?A.push(f.then(g=>zs(g,t,h,e,u))):zs(f,t,h,e,u)}return o.length&&t.issues.push({code:"unrecognized_keys",keys:o,input:e,inst:s}),A.length?Promise.all(A).then(()=>t):t}const tw=_("$ZodObject",(A,e)=>{QA.init(A,e);const t=Object.getOwnPropertyDescriptor(e,"shape");if(!(t!=null&&t.get)){const a=e.shape;Object.defineProperty(e,"shape",{get:()=>{const i=k({},a);return Object.defineProperty(e,"shape",{value:i}),i}})}const n=Os(()=>Pl(e));oA(A._zod,"propValues",()=>{var l;const a=e.shape,i={};for(const u in a){const h=a[u]._zod;if(h.values){(l=i[u])!=null||(i[u]=new Set);for(const f of h.values)i[u].add(f)}}return i});const r=yr,s=e.catchall;let o;A._zod.parse=(a,i)=>{o!=null||(o=n.value);const l=a.value;if(!r(l))return a.issues.push({expected:"object",code:"invalid_type",input:l,inst:A}),a;a.value={};const u=[],h=o.shape;for(const f of o.keys){const g=h[f],m=g._zod.optout==="optional",Q=g._zod.run({value:l[f],issues:[]},i);Q instanceof Promise?u.push(Q.then(U=>zs(U,a,f,l,m))):zs(Q,a,f,l,m)}return s?Kl(u,l,a,i,n.value,A):u.length?Promise.all(u).then(()=>a):a}}),nw=_("$ZodObjectJIT",(A,e)=>{tw.init(A,e);const t=A._zod.parse,n=Os(()=>Pl(e)),r=f=>{var F;const g=new yB(["shape","payload","ctx"]),m=n.value,Q=y=>{const x=yl(y);return`shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`};g.write("const input = payload.value;");const U=Object.create(null);let E=0;for(const y of m.keys)U[y]=`key_${E++}`;g.write("const newResult = {};");for(const y of m.keys){const x=U[y],R=yl(y),I=f[y],K=((F=I==null?void 0:I._zod)==null?void 0:F.optout)==="optional";g.write(`const ${x} = ${Q(y)};`),K?g.write(`
1589
+ `))}}const TB={major:4,minor:3,patch:5},CA=_("$ZodType",(A,e)=>{var r,s,o;var t;A!=null||(A={}),A._zod.def=e,A._zod.bag=A._zod.bag||{},A._zod.version=TB;const n=[...(r=A._zod.def.checks)!=null?r:[]];A._zod.traits.has("$ZodCheck")&&n.unshift(A);for(const a of n)for(const i of a._zod.onattach)i(A);if(n.length===0)(s=(t=A._zod).deferred)!=null||(t.deferred=[]),(o=A._zod.deferred)==null||o.push(()=>{A._zod.run=A._zod.parse});else{const a=(c,u,h)=>{let f=Vn(c),g;for(const m of u){if(m._zod.def.when){if(!m._zod.def.when(c))continue}else if(f)continue;const b=c.issues.length,E=m._zod.check(c);if(E instanceof Promise&&(h==null?void 0:h.async)===!1)throw new Kn;if(g||E instanceof Promise)g=(g!=null?g:Promise.resolve()).then(()=>I(null,null,function*(){yield E,c.issues.length!==b&&(f||(f=Vn(c,b)))}));else{if(c.issues.length===b)continue;f||(f=Vn(c,b))}}return g?g.then(()=>c):c},i=(c,u,h)=>{if(Vn(c))return c.aborted=!0,c;const f=a(u,n,h);if(f instanceof Promise){if(h.async===!1)throw new Kn;return f.then(g=>A._zod.parse(g,h))}return A._zod.parse(f,h)};A._zod.run=(c,u)=>{if(u.skipChecks)return A._zod.parse(c,u);if(u.direction==="backward"){const f=A._zod.parse({value:c.value,issues:[]},z(F({},u),{skipChecks:!0}));return f instanceof Promise?f.then(g=>i(g,c,u)):i(f,c,u)}const h=A._zod.parse(c,u);if(h instanceof Promise){if(u.async===!1)throw new Kn;return h.then(f=>a(f,n,u))}return a(h,n,u)}}iA(A,"~standard",()=>({validate:a=>{var i;try{const c=Pg(A,a);return c.success?{value:c.data}:{issues:(i=c.error)==null?void 0:i.issues}}catch(c){return Mg(A,a).then(u=>{var h;return u.success?{value:u.data}:{issues:(h=u.error)==null?void 0:h.issues}})}},vendor:"zod",version:1}))}),qi=_("$ZodString",(A,e)=>{var t,n,r;CA.init(A,e),A._zod.pattern=(r=[...(n=(t=A==null?void 0:A._zod.bag)==null?void 0:t.patterns)!=null?n:[]].pop())!=null?r:fB(A._zod.bag),A._zod.parse=(s,o)=>{if(e.coerce)try{s.value=String(s.value)}catch(a){}return typeof s.value=="string"||s.issues.push({expected:"string",code:"invalid_type",input:s.value,inst:A}),s}}),bA=_("$ZodStringFormat",(A,e)=>{Xs.init(A,e),qi.init(A,e)}),HB=_("$ZodGUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=tB),bA.init(A,e)}),LB=_("$ZodUUID",(A,e)=>{var t,n;if(e.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(s===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);(t=e.pattern)!=null||(e.pattern=Rl(s))}else(n=e.pattern)!=null||(e.pattern=Rl());bA.init(A,e)}),RB=_("$ZodEmail",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=nB),bA.init(A,e)}),DB=_("$ZodURL",(A,e)=>{bA.init(A,e),A._zod.check=t=>{try{const n=t.value.trim(),r=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(r.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:t.value,inst:A,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:t.value,inst:A,continue:!e.abort})),e.normalize?t.value=r.href:t.value=n;return}catch(n){t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:A,continue:!e.abort})}}}),OB=_("$ZodEmoji",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=sB()),bA.init(A,e)}),PB=_("$ZodNanoID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=AB),bA.init(A,e)}),MB=_("$ZodCUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Wg),bA.init(A,e)}),NB=_("$ZodCUID2",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Jg),bA.init(A,e)}),KB=_("$ZodULID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=jg),bA.init(A,e)}),$B=_("$ZodXID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Yg),bA.init(A,e)}),zB=_("$ZodKSUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=qg),bA.init(A,e)}),VB=_("$ZodISODateTime",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=hB(e)),bA.init(A,e)}),GB=_("$ZodISODate",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=dB),bA.init(A,e)}),ZB=_("$ZodISOTime",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=pB(e)),bA.init(A,e)}),XB=_("$ZodISODuration",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=eB),bA.init(A,e)}),WB=_("$ZodIPv4",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=oB),bA.init(A,e),A._zod.bag.format="ipv4"}),JB=_("$ZodIPv6",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=iB),bA.init(A,e),A._zod.bag.format="ipv6",A._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch(r){n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:A,continue:!e.abort})}}}),jB=_("$ZodCIDRv4",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=aB),bA.init(A,e)}),YB=_("$ZodCIDRv6",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=cB),bA.init(A,e),A._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[s,o]=r;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${s}]`)}catch(s){n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:A,continue:!e.abort})}}});function zl(A){if(A==="")return!0;if(A.length%4!==0)return!1;try{return atob(A),!0}catch(e){return!1}}const qB=_("$ZodBase64",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=lB),bA.init(A,e),A._zod.bag.contentEncoding="base64",A._zod.check=n=>{zl(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:A,continue:!e.abort})}});function Aw(A){if(!Dl.test(A))return!1;const e=A.replace(/[-_]/g,n=>n==="-"?"+":"/"),t=e.padEnd(Math.ceil(e.length/4)*4,"=");return zl(t)}const ew=_("$ZodBase64URL",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Dl),bA.init(A,e),A._zod.bag.contentEncoding="base64url",A._zod.check=n=>{Aw(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:A,continue:!e.abort})}}),tw=_("$ZodE164",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=uB),bA.init(A,e)});function nw(A,e=null){try{const t=A.split(".");if(t.length!==3)return!1;const[n]=t;if(!n)return!1;const r=JSON.parse(atob(n));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||e&&(!("alg"in r)||r.alg!==e))}catch(t){return!1}}const rw=_("$ZodJWT",(A,e)=>{bA.init(A,e),A._zod.check=t=>{nw(t.value,e.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:A,continue:!e.abort})}}),Vl=_("$ZodNumber",(A,e)=>{var t;CA.init(A,e),A._zod.pattern=(t=A._zod.bag.pattern)!=null?t:Ml,A._zod.parse=(n,r)=>{if(e.coerce)try{n.value=Number(n.value)}catch(a){}const s=n.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return n;const o=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push(F({expected:"number",code:"invalid_type",input:s,inst:A},o?{received:o}:{})),n}}),sw=_("$ZodNumberFormat",(A,e)=>{bB.init(A,e),Vl.init(A,e)}),ow=_("$ZodBoolean",(A,e)=>{CA.init(A,e),A._zod.pattern=BB,A._zod.parse=(t,n)=>{if(e.coerce)try{t.value=!!t.value}catch(s){}const r=t.value;return typeof r=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:A}),t}}),iw=_("$ZodAny",(A,e)=>{CA.init(A,e),A._zod.parse=t=>t}),aw=_("$ZodUnknown",(A,e)=>{CA.init(A,e),A._zod.parse=t=>t}),cw=_("$ZodNever",(A,e)=>{CA.init(A,e),A._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:A}),t)});function Gl(A,e,t){A.issues.length&&e.issues.push(...Gn(t,A.issues)),e.value[t]=A.value}const lw=_("$ZodArray",(A,e)=>{CA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value;if(!Array.isArray(r))return t.issues.push({expected:"array",code:"invalid_type",input:r,inst:A}),t;t.value=Array(r.length);const s=[];for(let o=0;o<r.length;o++){const a=r[o],i=e.element._zod.run({value:a,issues:[]},n);i instanceof Promise?s.push(i.then(c=>Gl(c,t,o))):Gl(i,t,o)}return s.length?Promise.all(s).then(()=>t):t}});function Ws(A,e,t,n,r){if(A.issues.length){if(r&&!(t in n))return;e.issues.push(...Gn(t,A.issues))}A.value===void 0?t in n&&(e.value[t]=void 0):e.value[t]=A.value}function Zl(A){var n,r,s,o;const e=Object.keys(A.shape);for(const a of e)if(!((o=(s=(r=(n=A.shape)==null?void 0:n[a])==null?void 0:r._zod)==null?void 0:s.traits)!=null&&o.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const t=vg(A.shape);return z(F({},A),{keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(t)})}function Xl(A,e,t,n,r,s){const o=[],a=r.keySet,i=r.catchall._zod,c=i.def.type,u=i.optout==="optional";for(const h in e){if(a.has(h))continue;if(c==="never"){o.push(h);continue}const f=i.run({value:e[h],issues:[]},n);f instanceof Promise?A.push(f.then(g=>Ws(g,t,h,e,u))):Ws(f,t,h,e,u)}return o.length&&t.issues.push({code:"unrecognized_keys",keys:o,input:e,inst:s}),A.length?Promise.all(A).then(()=>t):t}const uw=_("$ZodObject",(A,e)=>{CA.init(A,e);const t=Object.getOwnPropertyDescriptor(e,"shape");if(!(t!=null&&t.get)){const a=e.shape;Object.defineProperty(e,"shape",{get:()=>{const i=F({},a);return Object.defineProperty(e,"shape",{value:i}),i}})}const n=zs(()=>Zl(e));iA(A._zod,"propValues",()=>{var c;const a=e.shape,i={};for(const u in a){const h=a[u]._zod;if(h.values){(c=i[u])!=null||(i[u]=new Set);for(const f of h.values)i[u].add(f)}}return i});const r=_r,s=e.catchall;let o;A._zod.parse=(a,i)=>{o!=null||(o=n.value);const c=a.value;if(!r(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:A}),a;a.value={};const u=[],h=o.shape;for(const f of o.keys){const g=h[f],m=g._zod.optout==="optional",b=g._zod.run({value:c[f],issues:[]},i);b instanceof Promise?u.push(b.then(E=>Ws(E,a,f,c,m))):Ws(b,a,f,c,m)}return s?Xl(u,c,a,i,n.value,A):u.length?Promise.all(u).then(()=>a):a}}),dw=_("$ZodObjectJIT",(A,e)=>{uw.init(A,e);const t=A._zod.parse,n=zs(()=>Zl(e)),r=f=>{var y;const g=new IB(["shape","payload","ctx"]),m=n.value,b=U=>{const x=xl(U);return`shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`};g.write("const input = payload.value;");const E=Object.create(null);let k=0;for(const U of m.keys)E[U]=`key_${k++}`;g.write("const newResult = {};");for(const U of m.keys){const x=E[U],R=xl(U),H=f[U],X=((y=H==null?void 0:H._zod)==null?void 0:y.optout)==="optional";g.write(`const ${x} = ${b(U)};`),X?g.write(`
1590
1590
  if (${x}.issues.length) {
1591
1591
  if (${R} in input) {
1592
1592
  payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
@@ -1620,9 +1620,9 @@ button.ap-sdk-list-item__link {
1620
1620
  newResult[${R}] = ${x}.value;
1621
1621
  }
1622
1622
 
1623
- `)}g.write("payload.value = newResult;"),g.write("return payload;");const v=g.compile();return(y,x)=>v(f,y,x)};let s;const o=yr,a=!Cl.jitless,l=a&&Bg.value,u=e.catchall;let h;A._zod.parse=(f,g)=>{h!=null||(h=n.value);const m=f.value;return o(m)?a&&l&&(g==null?void 0:g.async)===!1&&g.jitless!==!0?(s||(s=r(e.shape)),f=s(f,g),u?Kl([],m,f,g,h,A):f):t(f,g):(f.issues.push({expected:"object",code:"invalid_type",input:m,inst:A}),f)}});function Nl(A,e,t,n){for(const s of A)if(s.issues.length===0)return e.value=s.value,e;const r=A.filter(s=>!Kn(s));return r.length===1?(e.value=r[0].value,r[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:t,errors:A.map(s=>s.issues.map(o=>Lt(o,n,It())))}),e)}const zl=_("$ZodUnion",(A,e)=>{QA.init(A,e),oA(A._zod,"optin",()=>e.options.some(r=>r._zod.optin==="optional")?"optional":void 0),oA(A._zod,"optout",()=>e.options.some(r=>r._zod.optout==="optional")?"optional":void 0),oA(A._zod,"values",()=>{if(e.options.every(r=>r._zod.values))return new Set(e.options.flatMap(r=>Array.from(r._zod.values)))}),oA(A._zod,"pattern",()=>{if(e.options.every(r=>r._zod.pattern)){const r=e.options.map(s=>s._zod.pattern);return new RegExp(`^(${r.map(s=>zi(s.source)).join("|")})$`)}});const t=e.options.length===1,n=e.options[0]._zod.run;A._zod.parse=(r,s)=>{if(t)return n(r,s);let o=!1;const a=[];for(const i of e.options){const l=i._zod.run({value:r.value,issues:[]},s);if(l instanceof Promise)a.push(l),o=!0;else{if(l.issues.length===0)return l;a.push(l)}}return o?Promise.all(a).then(i=>Nl(i,r,A,s)):Nl(a,r,A,s)}}),rw=_("$ZodDiscriminatedUnion",(A,e)=>{e.inclusive=!1,zl.init(A,e);const t=A._zod.parse;oA(A._zod,"propValues",()=>{const r={};for(const s of e.options){const o=s._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(const[a,i]of Object.entries(o)){r[a]||(r[a]=new Set);for(const l of i)r[a].add(l)}}return r});const n=Os(()=>{var o;const r=e.options,s=new Map;for(const a of r){const i=(o=a._zod.propValues)==null?void 0:o[e.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const l of i){if(s.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);s.set(l,a)}}return s});A._zod.parse=(r,s)=>{const o=r.value;if(!yr(o))return r.issues.push({code:"invalid_type",expected:"object",input:o,inst:A}),r;const a=n.value.get(o==null?void 0:o[e.discriminator]);return a?a._zod.run(r,s):e.unionFallback?t(r,s):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:o,path:[e.discriminator],inst:A}),r)}}),sw=_("$ZodIntersection",(A,e)=>{QA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value,s=e.left._zod.run({value:r,issues:[]},n),o=e.right._zod.run({value:r,issues:[]},n);return s instanceof Promise||o instanceof Promise?Promise.all([s,o]).then(([i,l])=>$l(t,i,l)):$l(t,s,o)}});function Xi(A,e){if(A===e)return{valid:!0,data:A};if(A instanceof Date&&e instanceof Date&&+A==+e)return{valid:!0,data:A};if(Mn(A)&&Mn(e)){const t=Object.keys(e),n=Object.keys(A).filter(s=>t.indexOf(s)!==-1),r=k(k({},A),e);for(const s of n){const o=Xi(A[s],e[s]);if(!o.valid)return{valid:!1,mergeErrorPath:[s,...o.mergeErrorPath]};r[s]=o.data}return{valid:!0,data:r}}if(Array.isArray(A)&&Array.isArray(e)){if(A.length!==e.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let n=0;n<A.length;n++){const r=A[n],s=e[n],o=Xi(r,s);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};t.push(o.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function $l(A,e,t){const n=new Map;let r;for(const a of e.issues)if(a.code==="unrecognized_keys"){r!=null||(r=a);for(const i of a.keys)n.has(i)||n.set(i,{}),n.get(i).l=!0}else A.issues.push(a);for(const a of t.issues)if(a.code==="unrecognized_keys")for(const i of a.keys)n.has(i)||n.set(i,{}),n.get(i).r=!0;else A.issues.push(a);const s=[...n].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(s.length&&r&&A.issues.push($(k({},r),{keys:s})),Kn(A))return A;const o=Xi(e.value,t.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return A.value=o.data,A}const ow=_("$ZodRecord",(A,e)=>{QA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value;if(!Mn(r))return t.issues.push({expected:"record",code:"invalid_type",input:r,inst:A}),t;const s=[],o=e.keyType._zod.values;if(o){t.value={};const a=new Set;for(const l of o)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){a.add(typeof l=="number"?l.toString():l);const u=e.valueType._zod.run({value:r[l],issues:[]},n);u instanceof Promise?s.push(u.then(h=>{h.issues.length&&t.issues.push(...Nn(l,h.issues)),t.value[l]=h.value})):(u.issues.length&&t.issues.push(...Nn(l,u.issues)),t.value[l]=u.value)}let i;for(const l in r)a.has(l)||(i=i!=null?i:[],i.push(l));i&&i.length>0&&t.issues.push({code:"unrecognized_keys",input:r,inst:A,keys:i})}else{t.value={};for(const a of Reflect.ownKeys(r)){if(a==="__proto__")continue;let i=e.keyType._zod.run({value:a,issues:[]},n);if(i instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&Tl.test(a)&&i.issues.length&&i.issues.some(h=>h.code==="invalid_type"&&h.expected==="number")){const h=e.keyType._zod.run({value:Number(a),issues:[]},n);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(i=h)}if(i.issues.length){e.mode==="loose"?t.value[a]=r[a]:t.issues.push({code:"invalid_key",origin:"record",issues:i.issues.map(h=>Lt(h,n,It())),input:a,path:[a],inst:A});continue}const u=e.valueType._zod.run({value:r[a],issues:[]},n);u instanceof Promise?s.push(u.then(h=>{h.issues.length&&t.issues.push(...Nn(a,h.issues)),t.value[i.value]=h.value})):(u.issues.length&&t.issues.push(...Nn(a,u.issues)),t.value[i.value]=u.value)}}return s.length?Promise.all(s).then(()=>t):t}}),iw=_("$ZodEnum",(A,e)=>{QA.init(A,e);const t=bl(e.entries),n=new Set(t);A._zod.values=n,A._zod.pattern=new RegExp(`^(${t.filter(r=>wg.has(typeof r)).map(r=>typeof r=="string"?Pn(r):r.toString()).join("|")})$`),A._zod.parse=(r,s)=>{const o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:t,input:o,inst:A}),r}}),aw=_("$ZodLiteral",(A,e)=>{if(QA.init(A,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");const t=new Set(e.values);A._zod.values=t,A._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?Pn(n):n?Pn(n.toString()):String(n)).join("|")})$`),A._zod.parse=(n,r)=>{const s=n.value;return t.has(s)||n.issues.push({code:"invalid_value",values:e.values,input:s,inst:A}),n}}),cw=_("$ZodTransform",(A,e)=>{QA.init(A,e),A._zod.parse=(t,n)=>{if(n.direction==="backward")throw new ml(A.constructor.name);const r=e.transform(t.value,t);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(o=>(t.value=o,t));if(r instanceof Promise)throw new On;return t.value=r,t}});function Gl(A,e){return A.issues.length&&e===void 0?{issues:[],value:void 0}:A}const Vl=_("$ZodOptional",(A,e)=>{QA.init(A,e),A._zod.optin="optional",A._zod.optout="optional",oA(A._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),oA(A._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${zi(t.source)})?$`):void 0}),A._zod.parse=(t,n)=>{if(e.innerType._zod.optin==="optional"){const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>Gl(s,t.value)):Gl(r,t.value)}return t.value===void 0?t:e.innerType._zod.run(t,n)}}),lw=_("$ZodExactOptional",(A,e)=>{Vl.init(A,e),oA(A._zod,"values",()=>e.innerType._zod.values),oA(A._zod,"pattern",()=>e.innerType._zod.pattern),A._zod.parse=(t,n)=>e.innerType._zod.run(t,n)}),uw=_("$ZodNullable",(A,e)=>{QA.init(A,e),oA(A._zod,"optin",()=>e.innerType._zod.optin),oA(A._zod,"optout",()=>e.innerType._zod.optout),oA(A._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${zi(t.source)}|null)$`):void 0}),oA(A._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),A._zod.parse=(t,n)=>t.value===null?t:e.innerType._zod.run(t,n)}),dw=_("$ZodDefault",(A,e)=>{QA.init(A,e),A._zod.optin="optional",oA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);if(t.value===void 0)return t.value=e.defaultValue,t;const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>Zl(s,e)):Zl(r,e)}});function Zl(A,e){return A.value===void 0&&(A.value=e.defaultValue),A}const pw=_("$ZodPrefault",(A,e)=>{QA.init(A,e),A._zod.optin="optional",oA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>(n.direction==="backward"||t.value===void 0&&(t.value=e.defaultValue),e.innerType._zod.run(t,n))}),hw=_("$ZodNonOptional",(A,e)=>{QA.init(A,e),oA(A._zod,"values",()=>{const t=e.innerType._zod.values;return t?new Set([...t].filter(n=>n!==void 0)):void 0}),A._zod.parse=(t,n)=>{const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>Xl(s,A)):Xl(r,A)}});function Xl(A,e){return!A.issues.length&&A.value===void 0&&A.issues.push({code:"invalid_type",expected:"nonoptional",input:A.value,inst:e}),A}const fw=_("$ZodCatch",(A,e)=>{QA.init(A,e),oA(A._zod,"optin",()=>e.innerType._zod.optin),oA(A._zod,"optout",()=>e.innerType._zod.optout),oA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>(t.value=s.value,s.issues.length&&(t.value=e.catchValue($(k({},t),{error:{issues:s.issues.map(o=>Lt(o,n,It()))},input:t.value})),t.issues=[]),t)):(t.value=r.value,r.issues.length&&(t.value=e.catchValue($(k({},t),{error:{issues:r.issues.map(s=>Lt(s,n,It()))},input:t.value})),t.issues=[]),t)}}),gw=_("$ZodPipe",(A,e)=>{QA.init(A,e),oA(A._zod,"values",()=>e.in._zod.values),oA(A._zod,"optin",()=>e.in._zod.optin),oA(A._zod,"optout",()=>e.out._zod.optout),oA(A._zod,"propValues",()=>e.in._zod.propValues),A._zod.parse=(t,n)=>{if(n.direction==="backward"){const s=e.out._zod.run(t,n);return s instanceof Promise?s.then(o=>$s(o,e.in,n)):$s(s,e.in,n)}const r=e.in._zod.run(t,n);return r instanceof Promise?r.then(s=>$s(s,e.out,n)):$s(r,e.out,n)}});function $s(A,e,t){return A.issues.length?(A.aborted=!0,A):e._zod.run({value:A.value,issues:A.issues},t)}const Bw=_("$ZodReadonly",(A,e)=>{QA.init(A,e),oA(A._zod,"propValues",()=>e.innerType._zod.propValues),oA(A._zod,"values",()=>e.innerType._zod.values),oA(A._zod,"optin",()=>{var t,n;return(n=(t=e.innerType)==null?void 0:t._zod)==null?void 0:n.optin}),oA(A._zod,"optout",()=>{var t,n;return(n=(t=e.innerType)==null?void 0:t._zod)==null?void 0:n.optout}),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(Wl):Wl(r)}});function Wl(A){return A.value=Object.freeze(A.value),A}const ww=_("$ZodCustom",(A,e)=>{fe.init(A,e),QA.init(A,e),A._zod.parse=(t,n)=>t,A._zod.check=t=>{const n=t.value,r=e.fn(n);if(r instanceof Promise)return r.then(s=>Jl(s,t,n,A));Jl(r,t,n,A)}});function Jl(A,e,t,n){var r;if(!A){const s={code:"custom",input:t,inst:n,path:[...(r=n._zod.def.path)!=null?r:[]],continue:!n._zod.def.abort};n._zod.def.params&&(s.params=n._zod.def.params),e.issues.push(Ur(s))}}var jl;class mw{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){var n;const t=e._zod.parent;if(t){const r=k({},(n=this.get(t))!=null?n:{});delete r.id;const s=k(k({},r),this._map.get(e));return Object.keys(s).length?s:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function Cw(){return new mw}(xf=(jl=globalThis).__zod_globalRegistry)!=null||(jl.__zod_globalRegistry=Cw());const Er=globalThis.__zod_globalRegistry;function bw(A,e){return new A(k({type:"string"},G(e)))}function Qw(A,e){return new A(k({type:"string",format:"email",check:"string_format",abort:!1},G(e)))}function Yl(A,e){return new A(k({type:"string",format:"guid",check:"string_format",abort:!1},G(e)))}function yw(A,e){return new A(k({type:"string",format:"uuid",check:"string_format",abort:!1},G(e)))}function Uw(A,e){return new A(k({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4"},G(e)))}function Ew(A,e){return new A(k({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6"},G(e)))}function Fw(A,e){return new A(k({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7"},G(e)))}function kw(A,e){return new A(k({type:"string",format:"url",check:"string_format",abort:!1},G(e)))}function vw(A,e){return new A(k({type:"string",format:"emoji",check:"string_format",abort:!1},G(e)))}function _w(A,e){return new A(k({type:"string",format:"nanoid",check:"string_format",abort:!1},G(e)))}function xw(A,e){return new A(k({type:"string",format:"cuid",check:"string_format",abort:!1},G(e)))}function Sw(A,e){return new A(k({type:"string",format:"cuid2",check:"string_format",abort:!1},G(e)))}function Iw(A,e){return new A(k({type:"string",format:"ulid",check:"string_format",abort:!1},G(e)))}function Tw(A,e){return new A(k({type:"string",format:"xid",check:"string_format",abort:!1},G(e)))}function Hw(A,e){return new A(k({type:"string",format:"ksuid",check:"string_format",abort:!1},G(e)))}function Lw(A,e){return new A(k({type:"string",format:"ipv4",check:"string_format",abort:!1},G(e)))}function Dw(A,e){return new A(k({type:"string",format:"ipv6",check:"string_format",abort:!1},G(e)))}function Rw(A,e){return new A(k({type:"string",format:"cidrv4",check:"string_format",abort:!1},G(e)))}function Ow(A,e){return new A(k({type:"string",format:"cidrv6",check:"string_format",abort:!1},G(e)))}function Mw(A,e){return new A(k({type:"string",format:"base64",check:"string_format",abort:!1},G(e)))}function Pw(A,e){return new A(k({type:"string",format:"base64url",check:"string_format",abort:!1},G(e)))}function Kw(A,e){return new A(k({type:"string",format:"e164",check:"string_format",abort:!1},G(e)))}function Nw(A,e){return new A(k({type:"string",format:"jwt",check:"string_format",abort:!1},G(e)))}function zw(A,e){return new A(k({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null},G(e)))}function $w(A,e){return new A(k({type:"string",format:"date",check:"string_format"},G(e)))}function Gw(A,e){return new A(k({type:"string",format:"time",check:"string_format",precision:null},G(e)))}function Vw(A,e){return new A(k({type:"string",format:"duration",check:"string_format"},G(e)))}function Zw(A,e){return new A(k({type:"number",checks:[]},G(e)))}function Xw(A,e){return new A(k({type:"number",check:"number_format",abort:!1,format:"safeint"},G(e)))}function Ww(A,e){return new A(k({type:"boolean"},G(e)))}function Jw(A){return new A({type:"any"})}function jw(A){return new A({type:"unknown"})}function Yw(A,e){return new A(k({type:"never"},G(e)))}function ql(A,e){return new Ll($(k({check:"less_than"},G(e)),{value:A,inclusive:!1}))}function Wi(A,e){return new Ll($(k({check:"less_than"},G(e)),{value:A,inclusive:!0}))}function Au(A,e){return new Dl($(k({check:"greater_than"},G(e)),{value:A,inclusive:!1}))}function Ji(A,e){return new Dl($(k({check:"greater_than"},G(e)),{value:A,inclusive:!0}))}function eu(A,e){return new uB($(k({check:"multiple_of"},G(e)),{value:A}))}function tu(A,e){return new pB($(k({check:"max_length"},G(e)),{maximum:A}))}function Gs(A,e){return new hB($(k({check:"min_length"},G(e)),{minimum:A}))}function nu(A,e){return new fB($(k({check:"length_equals"},G(e)),{length:A}))}function qw(A,e){return new gB($(k({check:"string_format",format:"regex"},G(e)),{pattern:A}))}function Am(A){return new BB(k({check:"string_format",format:"lowercase"},G(A)))}function em(A){return new wB(k({check:"string_format",format:"uppercase"},G(A)))}function tm(A,e){return new mB($(k({check:"string_format",format:"includes"},G(e)),{includes:A}))}function nm(A,e){return new CB($(k({check:"string_format",format:"starts_with"},G(e)),{prefix:A}))}function rm(A,e){return new bB($(k({check:"string_format",format:"ends_with"},G(e)),{suffix:A}))}function zn(A){return new QB({check:"overwrite",tx:A})}function sm(A){return zn(e=>e.normalize(A))}function om(){return zn(A=>A.trim())}function im(){return zn(A=>A.toLowerCase())}function am(){return zn(A=>A.toUpperCase())}function cm(){return zn(A=>gg(A))}function lm(A,e,t){return new A(k({type:"array",element:e},G(t)))}function um(A,e,t){return new A(k({type:"custom",check:"custom",fn:e},G(t)))}function dm(A){const e=pm(t=>(t.addIssue=n=>{var r,s,o,a;if(typeof n=="string")t.issues.push(Ur(n,t.value,e._zod.def));else{const i=n;i.fatal&&(i.continue=!1),(r=i.code)!=null||(i.code="custom"),(s=i.input)!=null||(i.input=t.value),(o=i.inst)!=null||(i.inst=e),(a=i.continue)!=null||(i.continue=!e._zod.def.abort),t.issues.push(Ur(i))}},A(t.value,t)));return e}function pm(A,e){const t=new fe(k({check:"custom"},G(e)));return t._zod.check=A,t}function ru(A){var t,n,r,s,o,a,i,l,u;let e=(t=A==null?void 0:A.target)!=null?t:"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:(n=A.processors)!=null?n:{},metadataRegistry:(r=A==null?void 0:A.metadata)!=null?r:Er,target:e,unrepresentable:(s=A==null?void 0:A.unrepresentable)!=null?s:"throw",override:(o=A==null?void 0:A.override)!=null?o:(()=>{}),io:(a=A==null?void 0:A.io)!=null?a:"output",counter:0,seen:new Map,cycles:(i=A==null?void 0:A.cycles)!=null?i:"ref",reused:(l=A==null?void 0:A.reused)!=null?l:"inline",external:(u=A==null?void 0:A.external)!=null?u:void 0}}function MA(A,e,t={path:[],schemaPath:[]}){var u,h,f;var n;const r=A._zod.def,s=e.seen.get(A);if(s)return s.count++,t.schemaPath.includes(A)&&(s.cycle=t.path),s.schema;const o={schema:{},count:1,cycle:void 0,path:t.path};e.seen.set(A,o);const a=(h=(u=A._zod).toJSONSchema)==null?void 0:h.call(u);if(a)o.schema=a;else{const g=$(k({},t),{schemaPath:[...t.schemaPath,A],path:t.path});if(A._zod.processJSONSchema)A._zod.processJSONSchema(e,o.schema,g);else{const Q=o.schema,U=e.processors[r.type];if(!U)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);U(A,e,Q,g)}const m=A._zod.parent;m&&(o.ref||(o.ref=m),MA(m,e,g),e.seen.get(m).isParent=!0)}const i=e.metadataRegistry.get(A);return i&&Object.assign(o.schema,i),e.io==="input"&&ie(A)&&(delete o.schema.examples,delete o.schema.default),e.io==="input"&&o.schema._prefault&&((f=(n=o.schema).default)!=null||(n.default=o.schema._prefault)),delete o.schema._prefault,e.seen.get(A).schema}function su(A,e){var o,a,i,l;const t=A.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=new Map;for(const u of A.seen.entries()){const h=(o=A.metadataRegistry.get(u[0]))==null?void 0:o.id;if(h){const f=n.get(h);if(f&&f!==u[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(h,u[0])}}const r=u=>{var Q,U,E,v,F;const h=A.target==="draft-2020-12"?"$defs":"definitions";if(A.external){const y=(Q=A.external.registry.get(u[0]))==null?void 0:Q.id,x=(U=A.external.uri)!=null?U:(I=>I);if(y)return{ref:x(y)};const R=(v=(E=u[1].defId)!=null?E:u[1].schema.id)!=null?v:`schema${A.counter++}`;return u[1].defId=R,{defId:R,ref:`${x("__shared")}#/${h}/${R}`}}if(u[1]===t)return{ref:"#"};const g=`#/${h}/`,m=(F=u[1].schema.id)!=null?F:`__schema${A.counter++}`;return{defId:m,ref:g+m}},s=u=>{if(u[1].schema.$ref)return;const h=u[1],{ref:f,defId:g}=r(u);h.def=k({},h.schema),g&&(h.defId=g);const m=h.schema;for(const Q in m)delete m[Q];m.$ref=f};if(A.cycles==="throw")for(const u of A.seen.entries()){const h=u[1];if(h.cycle)throw new Error(`Cycle detected: #/${(a=h.cycle)==null?void 0:a.join("/")}/<root>
1623
+ `)}g.write("payload.value = newResult;"),g.write("return payload;");const v=g.compile();return(U,x)=>v(f,U,x)};let s;const o=_r,a=!Fl.jitless,c=a&&kg.value,u=e.catchall;let h;A._zod.parse=(f,g)=>{h!=null||(h=n.value);const m=f.value;return o(m)?a&&c&&(g==null?void 0:g.async)===!1&&g.jitless!==!0?(s||(s=r(e.shape)),f=s(f,g),u?Xl([],m,f,g,h,A):f):t(f,g):(f.issues.push({expected:"object",code:"invalid_type",input:m,inst:A}),f)}});function Wl(A,e,t,n){for(const s of A)if(s.issues.length===0)return e.value=s.value,e;const r=A.filter(s=>!Vn(s));return r.length===1?(e.value=r[0].value,r[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:t,errors:A.map(s=>s.issues.map(o=>Nt(o,n,Ot())))}),e)}const Jl=_("$ZodUnion",(A,e)=>{CA.init(A,e),iA(A._zod,"optin",()=>e.options.some(r=>r._zod.optin==="optional")?"optional":void 0),iA(A._zod,"optout",()=>e.options.some(r=>r._zod.optout==="optional")?"optional":void 0),iA(A._zod,"values",()=>{if(e.options.every(r=>r._zod.values))return new Set(e.options.flatMap(r=>Array.from(r._zod.values)))}),iA(A._zod,"pattern",()=>{if(e.options.every(r=>r._zod.pattern)){const r=e.options.map(s=>s._zod.pattern);return new RegExp(`^(${r.map(s=>Wi(s.source)).join("|")})$`)}});const t=e.options.length===1,n=e.options[0]._zod.run;A._zod.parse=(r,s)=>{if(t)return n(r,s);let o=!1;const a=[];for(const i of e.options){const c=i._zod.run({value:r.value,issues:[]},s);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(i=>Wl(i,r,A,s)):Wl(a,r,A,s)}}),pw=_("$ZodDiscriminatedUnion",(A,e)=>{e.inclusive=!1,Jl.init(A,e);const t=A._zod.parse;iA(A._zod,"propValues",()=>{const r={};for(const s of e.options){const o=s._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(const[a,i]of Object.entries(o)){r[a]||(r[a]=new Set);for(const c of i)r[a].add(c)}}return r});const n=zs(()=>{var o;const r=e.options,s=new Map;for(const a of r){const i=(o=a._zod.propValues)==null?void 0:o[e.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const c of i){if(s.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);s.set(c,a)}}return s});A._zod.parse=(r,s)=>{const o=r.value;if(!_r(o))return r.issues.push({code:"invalid_type",expected:"object",input:o,inst:A}),r;const a=n.value.get(o==null?void 0:o[e.discriminator]);return a?a._zod.run(r,s):e.unionFallback?t(r,s):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:o,path:[e.discriminator],inst:A}),r)}}),hw=_("$ZodIntersection",(A,e)=>{CA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value,s=e.left._zod.run({value:r,issues:[]},n),o=e.right._zod.run({value:r,issues:[]},n);return s instanceof Promise||o instanceof Promise?Promise.all([s,o]).then(([i,c])=>jl(t,i,c)):jl(t,s,o)}});function Aa(A,e){if(A===e)return{valid:!0,data:A};if(A instanceof Date&&e instanceof Date&&+A==+e)return{valid:!0,data:A};if($n(A)&&$n(e)){const t=Object.keys(e),n=Object.keys(A).filter(s=>t.indexOf(s)!==-1),r=F(F({},A),e);for(const s of n){const o=Aa(A[s],e[s]);if(!o.valid)return{valid:!1,mergeErrorPath:[s,...o.mergeErrorPath]};r[s]=o.data}return{valid:!0,data:r}}if(Array.isArray(A)&&Array.isArray(e)){if(A.length!==e.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let n=0;n<A.length;n++){const r=A[n],s=e[n],o=Aa(r,s);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};t.push(o.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function jl(A,e,t){const n=new Map;let r;for(const a of e.issues)if(a.code==="unrecognized_keys"){r!=null||(r=a);for(const i of a.keys)n.has(i)||n.set(i,{}),n.get(i).l=!0}else A.issues.push(a);for(const a of t.issues)if(a.code==="unrecognized_keys")for(const i of a.keys)n.has(i)||n.set(i,{}),n.get(i).r=!0;else A.issues.push(a);const s=[...n].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(s.length&&r&&A.issues.push(z(F({},r),{keys:s})),Vn(A))return A;const o=Aa(e.value,t.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return A.value=o.data,A}const fw=_("$ZodRecord",(A,e)=>{CA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value;if(!$n(r))return t.issues.push({expected:"record",code:"invalid_type",input:r,inst:A}),t;const s=[],o=e.keyType._zod.values;if(o){t.value={};const a=new Set;for(const c of o)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){a.add(typeof c=="number"?c.toString():c);const u=e.valueType._zod.run({value:r[c],issues:[]},n);u instanceof Promise?s.push(u.then(h=>{h.issues.length&&t.issues.push(...Gn(c,h.issues)),t.value[c]=h.value})):(u.issues.length&&t.issues.push(...Gn(c,u.issues)),t.value[c]=u.value)}let i;for(const c in r)a.has(c)||(i=i!=null?i:[],i.push(c));i&&i.length>0&&t.issues.push({code:"unrecognized_keys",input:r,inst:A,keys:i})}else{t.value={};for(const a of Reflect.ownKeys(r)){if(a==="__proto__")continue;let i=e.keyType._zod.run({value:a,issues:[]},n);if(i instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&Ml.test(a)&&i.issues.length&&i.issues.some(h=>h.code==="invalid_type"&&h.expected==="number")){const h=e.keyType._zod.run({value:Number(a),issues:[]},n);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(i=h)}if(i.issues.length){e.mode==="loose"?t.value[a]=r[a]:t.issues.push({code:"invalid_key",origin:"record",issues:i.issues.map(h=>Nt(h,n,Ot())),input:a,path:[a],inst:A});continue}const u=e.valueType._zod.run({value:r[a],issues:[]},n);u instanceof Promise?s.push(u.then(h=>{h.issues.length&&t.issues.push(...Gn(a,h.issues)),t.value[i.value]=h.value})):(u.issues.length&&t.issues.push(...Gn(a,u.issues)),t.value[i.value]=u.value)}}return s.length?Promise.all(s).then(()=>t):t}}),gw=_("$ZodEnum",(A,e)=>{CA.init(A,e);const t=vl(e.entries),n=new Set(t);A._zod.values=n,A._zod.pattern=new RegExp(`^(${t.filter(r=>Fg.has(typeof r)).map(r=>typeof r=="string"?zn(r):r.toString()).join("|")})$`),A._zod.parse=(r,s)=>{const o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:t,input:o,inst:A}),r}}),Bw=_("$ZodLiteral",(A,e)=>{if(CA.init(A,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");const t=new Set(e.values);A._zod.values=t,A._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?zn(n):n?zn(n.toString()):String(n)).join("|")})$`),A._zod.parse=(n,r)=>{const s=n.value;return t.has(s)||n.issues.push({code:"invalid_value",values:e.values,input:s,inst:A}),n}}),ww=_("$ZodTransform",(A,e)=>{CA.init(A,e),A._zod.parse=(t,n)=>{if(n.direction==="backward")throw new kl(A.constructor.name);const r=e.transform(t.value,t);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(o=>(t.value=o,t));if(r instanceof Promise)throw new Kn;return t.value=r,t}});function Yl(A,e){return A.issues.length&&e===void 0?{issues:[],value:void 0}:A}const ql=_("$ZodOptional",(A,e)=>{CA.init(A,e),A._zod.optin="optional",A._zod.optout="optional",iA(A._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),iA(A._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${Wi(t.source)})?$`):void 0}),A._zod.parse=(t,n)=>{if(e.innerType._zod.optin==="optional"){const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>Yl(s,t.value)):Yl(r,t.value)}return t.value===void 0?t:e.innerType._zod.run(t,n)}}),mw=_("$ZodExactOptional",(A,e)=>{ql.init(A,e),iA(A._zod,"values",()=>e.innerType._zod.values),iA(A._zod,"pattern",()=>e.innerType._zod.pattern),A._zod.parse=(t,n)=>e.innerType._zod.run(t,n)}),Cw=_("$ZodNullable",(A,e)=>{CA.init(A,e),iA(A._zod,"optin",()=>e.innerType._zod.optin),iA(A._zod,"optout",()=>e.innerType._zod.optout),iA(A._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${Wi(t.source)}|null)$`):void 0}),iA(A._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),A._zod.parse=(t,n)=>t.value===null?t:e.innerType._zod.run(t,n)}),bw=_("$ZodDefault",(A,e)=>{CA.init(A,e),A._zod.optin="optional",iA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);if(t.value===void 0)return t.value=e.defaultValue,t;const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>Au(s,e)):Au(r,e)}});function Au(A,e){return A.value===void 0&&(A.value=e.defaultValue),A}const Qw=_("$ZodPrefault",(A,e)=>{CA.init(A,e),A._zod.optin="optional",iA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>(n.direction==="backward"||t.value===void 0&&(t.value=e.defaultValue),e.innerType._zod.run(t,n))}),yw=_("$ZodNonOptional",(A,e)=>{CA.init(A,e),iA(A._zod,"values",()=>{const t=e.innerType._zod.values;return t?new Set([...t].filter(n=>n!==void 0)):void 0}),A._zod.parse=(t,n)=>{const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>eu(s,A)):eu(r,A)}});function eu(A,e){return!A.issues.length&&A.value===void 0&&A.issues.push({code:"invalid_type",expected:"nonoptional",input:A.value,inst:e}),A}const Uw=_("$ZodCatch",(A,e)=>{CA.init(A,e),iA(A._zod,"optin",()=>e.innerType._zod.optin),iA(A._zod,"optout",()=>e.innerType._zod.optout),iA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>(t.value=s.value,s.issues.length&&(t.value=e.catchValue(z(F({},t),{error:{issues:s.issues.map(o=>Nt(o,n,Ot()))},input:t.value})),t.issues=[]),t)):(t.value=r.value,r.issues.length&&(t.value=e.catchValue(z(F({},t),{error:{issues:r.issues.map(s=>Nt(s,n,Ot()))},input:t.value})),t.issues=[]),t)}}),Ew=_("$ZodPipe",(A,e)=>{CA.init(A,e),iA(A._zod,"values",()=>e.in._zod.values),iA(A._zod,"optin",()=>e.in._zod.optin),iA(A._zod,"optout",()=>e.out._zod.optout),iA(A._zod,"propValues",()=>e.in._zod.propValues),A._zod.parse=(t,n)=>{if(n.direction==="backward"){const s=e.out._zod.run(t,n);return s instanceof Promise?s.then(o=>Js(o,e.in,n)):Js(s,e.in,n)}const r=e.in._zod.run(t,n);return r instanceof Promise?r.then(s=>Js(s,e.out,n)):Js(r,e.out,n)}});function Js(A,e,t){return A.issues.length?(A.aborted=!0,A):e._zod.run({value:A.value,issues:A.issues},t)}const kw=_("$ZodReadonly",(A,e)=>{CA.init(A,e),iA(A._zod,"propValues",()=>e.innerType._zod.propValues),iA(A._zod,"values",()=>e.innerType._zod.values),iA(A._zod,"optin",()=>{var t,n;return(n=(t=e.innerType)==null?void 0:t._zod)==null?void 0:n.optin}),iA(A._zod,"optout",()=>{var t,n;return(n=(t=e.innerType)==null?void 0:t._zod)==null?void 0:n.optout}),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(tu):tu(r)}});function tu(A){return A.value=Object.freeze(A.value),A}const Fw=_("$ZodCustom",(A,e)=>{ge.init(A,e),CA.init(A,e),A._zod.parse=(t,n)=>t,A._zod.check=t=>{const n=t.value,r=e.fn(n);if(r instanceof Promise)return r.then(s=>nu(s,t,n,A));nu(r,t,n,A)}});function nu(A,e,t,n){var r;if(!A){const s={code:"custom",input:t,inst:n,path:[...(r=n._zod.def.path)!=null?r:[]],continue:!n._zod.def.abort};n._zod.def.params&&(s.params=n._zod.def.params),e.issues.push(xr(s))}}var ru;class vw{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){var n;const t=e._zod.parent;if(t){const r=F({},(n=this.get(t))!=null?n:{});delete r.id;const s=F(F({},r),this._map.get(e));return Object.keys(s).length?s:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function _w(){return new vw}(Pf=(ru=globalThis).__zod_globalRegistry)!=null||(ru.__zod_globalRegistry=_w());const Sr=globalThis.__zod_globalRegistry;function xw(A,e){return new A(F({type:"string"},V(e)))}function Sw(A,e){return new A(F({type:"string",format:"email",check:"string_format",abort:!1},V(e)))}function su(A,e){return new A(F({type:"string",format:"guid",check:"string_format",abort:!1},V(e)))}function Iw(A,e){return new A(F({type:"string",format:"uuid",check:"string_format",abort:!1},V(e)))}function Tw(A,e){return new A(F({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4"},V(e)))}function Hw(A,e){return new A(F({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6"},V(e)))}function Lw(A,e){return new A(F({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7"},V(e)))}function Rw(A,e){return new A(F({type:"string",format:"url",check:"string_format",abort:!1},V(e)))}function Dw(A,e){return new A(F({type:"string",format:"emoji",check:"string_format",abort:!1},V(e)))}function Ow(A,e){return new A(F({type:"string",format:"nanoid",check:"string_format",abort:!1},V(e)))}function Pw(A,e){return new A(F({type:"string",format:"cuid",check:"string_format",abort:!1},V(e)))}function Mw(A,e){return new A(F({type:"string",format:"cuid2",check:"string_format",abort:!1},V(e)))}function Nw(A,e){return new A(F({type:"string",format:"ulid",check:"string_format",abort:!1},V(e)))}function Kw(A,e){return new A(F({type:"string",format:"xid",check:"string_format",abort:!1},V(e)))}function $w(A,e){return new A(F({type:"string",format:"ksuid",check:"string_format",abort:!1},V(e)))}function zw(A,e){return new A(F({type:"string",format:"ipv4",check:"string_format",abort:!1},V(e)))}function Vw(A,e){return new A(F({type:"string",format:"ipv6",check:"string_format",abort:!1},V(e)))}function Gw(A,e){return new A(F({type:"string",format:"cidrv4",check:"string_format",abort:!1},V(e)))}function Zw(A,e){return new A(F({type:"string",format:"cidrv6",check:"string_format",abort:!1},V(e)))}function Xw(A,e){return new A(F({type:"string",format:"base64",check:"string_format",abort:!1},V(e)))}function Ww(A,e){return new A(F({type:"string",format:"base64url",check:"string_format",abort:!1},V(e)))}function Jw(A,e){return new A(F({type:"string",format:"e164",check:"string_format",abort:!1},V(e)))}function jw(A,e){return new A(F({type:"string",format:"jwt",check:"string_format",abort:!1},V(e)))}function Yw(A,e){return new A(F({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null},V(e)))}function qw(A,e){return new A(F({type:"string",format:"date",check:"string_format"},V(e)))}function Am(A,e){return new A(F({type:"string",format:"time",check:"string_format",precision:null},V(e)))}function em(A,e){return new A(F({type:"string",format:"duration",check:"string_format"},V(e)))}function tm(A,e){return new A(F({type:"number",checks:[]},V(e)))}function nm(A,e){return new A(F({type:"number",check:"number_format",abort:!1,format:"safeint"},V(e)))}function rm(A,e){return new A(F({type:"boolean"},V(e)))}function sm(A){return new A({type:"any"})}function om(A){return new A({type:"unknown"})}function im(A,e){return new A(F({type:"never"},V(e)))}function ou(A,e){return new Kl(z(F({check:"less_than"},V(e)),{value:A,inclusive:!1}))}function ea(A,e){return new Kl(z(F({check:"less_than"},V(e)),{value:A,inclusive:!0}))}function iu(A,e){return new $l(z(F({check:"greater_than"},V(e)),{value:A,inclusive:!1}))}function ta(A,e){return new $l(z(F({check:"greater_than"},V(e)),{value:A,inclusive:!0}))}function au(A,e){return new CB(z(F({check:"multiple_of"},V(e)),{value:A}))}function cu(A,e){return new QB(z(F({check:"max_length"},V(e)),{maximum:A}))}function js(A,e){return new yB(z(F({check:"min_length"},V(e)),{minimum:A}))}function lu(A,e){return new UB(z(F({check:"length_equals"},V(e)),{length:A}))}function am(A,e){return new EB(z(F({check:"string_format",format:"regex"},V(e)),{pattern:A}))}function cm(A){return new kB(F({check:"string_format",format:"lowercase"},V(A)))}function lm(A){return new FB(F({check:"string_format",format:"uppercase"},V(A)))}function um(A,e){return new vB(z(F({check:"string_format",format:"includes"},V(e)),{includes:A}))}function dm(A,e){return new _B(z(F({check:"string_format",format:"starts_with"},V(e)),{prefix:A}))}function pm(A,e){return new xB(z(F({check:"string_format",format:"ends_with"},V(e)),{suffix:A}))}function Zn(A){return new SB({check:"overwrite",tx:A})}function hm(A){return Zn(e=>e.normalize(A))}function fm(){return Zn(A=>A.trim())}function gm(){return Zn(A=>A.toLowerCase())}function Bm(){return Zn(A=>A.toUpperCase())}function wm(){return Zn(A=>Eg(A))}function mm(A,e,t){return new A(F({type:"array",element:e},V(t)))}function Cm(A,e,t){return new A(F({type:"custom",check:"custom",fn:e},V(t)))}function bm(A){const e=Qm(t=>(t.addIssue=n=>{var r,s,o,a;if(typeof n=="string")t.issues.push(xr(n,t.value,e._zod.def));else{const i=n;i.fatal&&(i.continue=!1),(r=i.code)!=null||(i.code="custom"),(s=i.input)!=null||(i.input=t.value),(o=i.inst)!=null||(i.inst=e),(a=i.continue)!=null||(i.continue=!e._zod.def.abort),t.issues.push(xr(i))}},A(t.value,t)));return e}function Qm(A,e){const t=new ge(F({check:"custom"},V(e)));return t._zod.check=A,t}function uu(A){var t,n,r,s,o,a,i,c,u;let e=(t=A==null?void 0:A.target)!=null?t:"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:(n=A.processors)!=null?n:{},metadataRegistry:(r=A==null?void 0:A.metadata)!=null?r:Sr,target:e,unrepresentable:(s=A==null?void 0:A.unrepresentable)!=null?s:"throw",override:(o=A==null?void 0:A.override)!=null?o:(()=>{}),io:(a=A==null?void 0:A.io)!=null?a:"output",counter:0,seen:new Map,cycles:(i=A==null?void 0:A.cycles)!=null?i:"ref",reused:(c=A==null?void 0:A.reused)!=null?c:"inline",external:(u=A==null?void 0:A.external)!=null?u:void 0}}function PA(A,e,t={path:[],schemaPath:[]}){var u,h,f;var n;const r=A._zod.def,s=e.seen.get(A);if(s)return s.count++,t.schemaPath.includes(A)&&(s.cycle=t.path),s.schema;const o={schema:{},count:1,cycle:void 0,path:t.path};e.seen.set(A,o);const a=(h=(u=A._zod).toJSONSchema)==null?void 0:h.call(u);if(a)o.schema=a;else{const g=z(F({},t),{schemaPath:[...t.schemaPath,A],path:t.path});if(A._zod.processJSONSchema)A._zod.processJSONSchema(e,o.schema,g);else{const b=o.schema,E=e.processors[r.type];if(!E)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);E(A,e,b,g)}const m=A._zod.parent;m&&(o.ref||(o.ref=m),PA(m,e,g),e.seen.get(m).isParent=!0)}const i=e.metadataRegistry.get(A);return i&&Object.assign(o.schema,i),e.io==="input"&&ae(A)&&(delete o.schema.examples,delete o.schema.default),e.io==="input"&&o.schema._prefault&&((f=(n=o.schema).default)!=null||(n.default=o.schema._prefault)),delete o.schema._prefault,e.seen.get(A).schema}function du(A,e){var o,a,i,c;const t=A.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=new Map;for(const u of A.seen.entries()){const h=(o=A.metadataRegistry.get(u[0]))==null?void 0:o.id;if(h){const f=n.get(h);if(f&&f!==u[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(h,u[0])}}const r=u=>{var b,E,k,v,y;const h=A.target==="draft-2020-12"?"$defs":"definitions";if(A.external){const U=(b=A.external.registry.get(u[0]))==null?void 0:b.id,x=(E=A.external.uri)!=null?E:(H=>H);if(U)return{ref:x(U)};const R=(v=(k=u[1].defId)!=null?k:u[1].schema.id)!=null?v:`schema${A.counter++}`;return u[1].defId=R,{defId:R,ref:`${x("__shared")}#/${h}/${R}`}}if(u[1]===t)return{ref:"#"};const g=`#/${h}/`,m=(y=u[1].schema.id)!=null?y:`__schema${A.counter++}`;return{defId:m,ref:g+m}},s=u=>{if(u[1].schema.$ref)return;const h=u[1],{ref:f,defId:g}=r(u);h.def=F({},h.schema),g&&(h.defId=g);const m=h.schema;for(const b in m)delete m[b];m.$ref=f};if(A.cycles==="throw")for(const u of A.seen.entries()){const h=u[1];if(h.cycle)throw new Error(`Cycle detected: #/${(a=h.cycle)==null?void 0:a.join("/")}/<root>
1624
1624
 
1625
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of A.seen.entries()){const h=u[1];if(e===u[0]){s(u);continue}if(A.external){const g=(i=A.external.registry.get(u[0]))==null?void 0:i.id;if(e!==u[0]&&g){s(u);continue}}if((l=A.metadataRegistry.get(u[0]))==null?void 0:l.id){s(u);continue}if(h.cycle){s(u);continue}if(h.count>1&&A.reused==="ref"){s(u);continue}}}function ou(A,e){var o,a,i,l,u;const t=A.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=h=>{var E,v,F;const f=A.seen.get(h);if(f.ref===null)return;const g=(E=f.def)!=null?E:f.schema,m=k({},g),Q=f.ref;if(f.ref=null,Q){n(Q);const y=A.seen.get(Q),x=y.schema;if(x.$ref&&(A.target==="draft-07"||A.target==="draft-04"||A.target==="openapi-3.0")?(g.allOf=(v=g.allOf)!=null?v:[],g.allOf.push(x)):Object.assign(g,x),Object.assign(g,m),h._zod.parent===Q)for(const I in g)I==="$ref"||I==="allOf"||I in m||delete g[I];if(x.$ref)for(const I in g)I==="$ref"||I==="allOf"||I in y.def&&JSON.stringify(g[I])===JSON.stringify(y.def[I])&&delete g[I]}const U=h._zod.parent;if(U&&U!==Q){n(U);const y=A.seen.get(U);if(y!=null&&y.schema.$ref&&(g.$ref=y.schema.$ref,y.def))for(const x in g)x==="$ref"||x==="allOf"||x in y.def&&JSON.stringify(g[x])===JSON.stringify(y.def[x])&&delete g[x]}A.override({zodSchema:h,jsonSchema:g,path:(F=f.path)!=null?F:[]})};for(const h of[...A.seen.entries()].reverse())n(h[0]);const r={};if(A.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":A.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":A.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":A.target,(o=A.external)!=null&&o.uri){const h=(a=A.external.registry.get(e))==null?void 0:a.id;if(!h)throw new Error("Schema is missing an `id` property");r.$id=A.external.uri(h)}Object.assign(r,(i=t.def)!=null?i:t.schema);const s=(u=(l=A.external)==null?void 0:l.defs)!=null?u:{};for(const h of A.seen.entries()){const f=h[1];f.def&&f.defId&&(s[f.defId]=f.def)}A.external||Object.keys(s).length>0&&(A.target==="draft-2020-12"?r.$defs=s:r.definitions=s);try{const h=JSON.parse(JSON.stringify(r));return Object.defineProperty(h,"~standard",{value:$(k({},e["~standard"]),{jsonSchema:{input:Vs(e,"input",A.processors),output:Vs(e,"output",A.processors)}}),enumerable:!1,writable:!1}),h}catch(h){throw new Error("Error converting schema to JSON.")}}function ie(A,e){const t=e!=null?e:{seen:new Set};if(t.seen.has(A))return!1;t.seen.add(A);const n=A._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return ie(n.element,t);if(n.type==="set")return ie(n.valueType,t);if(n.type==="lazy")return ie(n.getter(),t);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return ie(n.innerType,t);if(n.type==="intersection")return ie(n.left,t)||ie(n.right,t);if(n.type==="record"||n.type==="map")return ie(n.keyType,t)||ie(n.valueType,t);if(n.type==="pipe")return ie(n.in,t)||ie(n.out,t);if(n.type==="object"){for(const r in n.shape)if(ie(n.shape[r],t))return!0;return!1}if(n.type==="union"){for(const r of n.options)if(ie(r,t))return!0;return!1}if(n.type==="tuple"){for(const r of n.items)if(ie(r,t))return!0;return!!(n.rest&&ie(n.rest,t))}return!1}const hm=(A,e={})=>t=>{const n=ru($(k({},t),{processors:e}));return MA(A,n),su(n,A),ou(n,A)},Vs=(A,e,t={})=>n=>{const{libraryOptions:r,target:s}=n!=null?n:{},o=ru($(k({},r!=null?r:{}),{target:s,io:e,processors:t}));return MA(A,o),su(o,A),ou(o,A)},fm={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},gm=(A,e,t,n)=>{var u;const r=t;r.type="string";const{minimum:s,maximum:o,format:a,patterns:i,contentEncoding:l}=A._zod.bag;if(typeof s=="number"&&(r.minLength=s),typeof o=="number"&&(r.maxLength=o),a&&(r.format=(u=fm[a])!=null?u:a,r.format===""&&delete r.format,a==="time"&&delete r.format),l&&(r.contentEncoding=l),i&&i.size>0){const h=[...i];h.length===1?r.pattern=h[0].source:h.length>1&&(r.allOf=[...h.map(f=>$(k({},e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{}),{pattern:f.source}))])}},Bm=(A,e,t,n)=>{const r=t,{minimum:s,maximum:o,format:a,multipleOf:i,exclusiveMaximum:l,exclusiveMinimum:u}=A._zod.bag;typeof a=="string"&&a.includes("int")?r.type="integer":r.type="number",typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u),typeof s=="number"&&(r.minimum=s,typeof u=="number"&&e.target!=="draft-04"&&(u>=s?delete r.minimum:delete r.exclusiveMinimum)),typeof l=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l),typeof o=="number"&&(r.maximum=o,typeof l=="number"&&e.target!=="draft-04"&&(l<=o?delete r.maximum:delete r.exclusiveMaximum)),typeof i=="number"&&(r.multipleOf=i)},wm=(A,e,t,n)=>{t.type="boolean"},mm=(A,e,t,n)=>{t.not={}},Cm=(A,e,t,n)=>{},bm=(A,e,t,n)=>{},Qm=(A,e,t,n)=>{const r=A._zod.def,s=bl(r.entries);s.every(o=>typeof o=="number")&&(t.type="number"),s.every(o=>typeof o=="string")&&(t.type="string"),t.enum=s},ym=(A,e,t,n)=>{const r=A._zod.def,s=[];for(const o of r.values)if(o===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(o))}else s.push(o);if(s.length!==0)if(s.length===1){const o=s[0];t.type=o===null?"null":typeof o,e.target==="draft-04"||e.target==="openapi-3.0"?t.enum=[o]:t.const=o}else s.every(o=>typeof o=="number")&&(t.type="number"),s.every(o=>typeof o=="string")&&(t.type="string"),s.every(o=>typeof o=="boolean")&&(t.type="boolean"),s.every(o=>o===null)&&(t.type="null"),t.enum=s},Um=(A,e,t,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Em=(A,e,t,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Fm=(A,e,t,n)=>{const r=t,s=A._zod.def,{minimum:o,maximum:a}=A._zod.bag;typeof o=="number"&&(r.minItems=o),typeof a=="number"&&(r.maxItems=a),r.type="array",r.items=MA(s.element,e,$(k({},n),{path:[...n.path,"items"]}))},km=(A,e,t,n)=>{var l;const r=t,s=A._zod.def;r.type="object",r.properties={};const o=s.shape;for(const u in o)r.properties[u]=MA(o[u],e,$(k({},n),{path:[...n.path,"properties",u]}));const a=new Set(Object.keys(o)),i=new Set([...a].filter(u=>{const h=s.shape[u]._zod;return e.io==="input"?h.optin===void 0:h.optout===void 0}));i.size>0&&(r.required=Array.from(i)),((l=s.catchall)==null?void 0:l._zod.def.type)==="never"?r.additionalProperties=!1:s.catchall?s.catchall&&(r.additionalProperties=MA(s.catchall,e,$(k({},n),{path:[...n.path,"additionalProperties"]}))):e.io==="output"&&(r.additionalProperties=!1)},vm=(A,e,t,n)=>{const r=A._zod.def,s=r.inclusive===!1,o=r.options.map((a,i)=>MA(a,e,$(k({},n),{path:[...n.path,s?"oneOf":"anyOf",i]})));s?t.oneOf=o:t.anyOf=o},_m=(A,e,t,n)=>{const r=A._zod.def,s=MA(r.left,e,$(k({},n),{path:[...n.path,"allOf",0]})),o=MA(r.right,e,$(k({},n),{path:[...n.path,"allOf",1]})),a=l=>"allOf"in l&&Object.keys(l).length===1,i=[...a(s)?s.allOf:[s],...a(o)?o.allOf:[o]];t.allOf=i},xm=(A,e,t,n)=>{const r=t,s=A._zod.def;r.type="object";const o=s.keyType,a=o._zod.bag,i=a==null?void 0:a.patterns;if(s.mode==="loose"&&i&&i.size>0){const u=MA(s.valueType,e,$(k({},n),{path:[...n.path,"patternProperties","*"]}));r.patternProperties={};for(const h of i)r.patternProperties[h.source]=u}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(r.propertyNames=MA(s.keyType,e,$(k({},n),{path:[...n.path,"propertyNames"]}))),r.additionalProperties=MA(s.valueType,e,$(k({},n),{path:[...n.path,"additionalProperties"]}));const l=o._zod.values;if(l){const u=[...l].filter(h=>typeof h=="string"||typeof h=="number");u.length>0&&(r.required=u)}},Sm=(A,e,t,n)=>{const r=A._zod.def,s=MA(r.innerType,e,n),o=e.seen.get(A);e.target==="openapi-3.0"?(o.ref=r.innerType,t.nullable=!0):t.anyOf=[s,{type:"null"}]},Im=(A,e,t,n)=>{const r=A._zod.def;MA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType},Tm=(A,e,t,n)=>{const r=A._zod.def;MA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,t.default=JSON.parse(JSON.stringify(r.defaultValue))},Hm=(A,e,t,n)=>{const r=A._zod.def;MA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,e.io==="input"&&(t._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},Lm=(A,e,t,n)=>{const r=A._zod.def;MA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType;let o;try{o=r.catchValue(void 0)}catch(a){throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=o},Dm=(A,e,t,n)=>{const r=A._zod.def,s=e.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;MA(s,e,n);const o=e.seen.get(A);o.ref=s},Rm=(A,e,t,n)=>{const r=A._zod.def;MA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,t.readOnly=!0},iu=(A,e,t,n)=>{const r=A._zod.def;MA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType},Om=_("ZodISODateTime",(A,e)=>{DB.init(A,e),vA.init(A,e)});function Mm(A){return zw(Om,A)}const Pm=_("ZodISODate",(A,e)=>{RB.init(A,e),vA.init(A,e)});function Km(A){return $w(Pm,A)}const Nm=_("ZodISOTime",(A,e)=>{OB.init(A,e),vA.init(A,e)});function zm(A){return Gw(Nm,A)}const $m=_("ZodISODuration",(A,e)=>{MB.init(A,e),vA.init(A,e)});function Gm(A){return Vw($m,A)}const Ue=_("ZodError",(A,e)=>{kl.init(A,e),A.name="ZodError",Object.defineProperties(A,{format:{value:t=>_g(A,t)},flatten:{value:t=>vg(A,t)},addIssue:{value:t=>{A.issues.push(t),A.message=JSON.stringify(A.issues,Ki,2)}},addIssues:{value:t=>{A.issues.push(...t),A.message=JSON.stringify(A.issues,Ki,2)}},isEmpty:{get(){return A.issues.length===0}}})},{Parent:Error}),Vm=Gi(Ue),Zm=Vi(Ue),Xm=Ps(Ue),Wm=Ks(Ue),Jm=Ig(Ue),jm=Tg(Ue),Ym=Hg(Ue),qm=Lg(Ue),AC=Dg(Ue),eC=Rg(Ue),tC=Og(Ue),nC=Mg(Ue),UA=_("ZodType",(A,e)=>(QA.init(A,e),Object.assign(A["~standard"],{jsonSchema:{input:Vs(A,"input"),output:Vs(A,"output")}}),A.toJSONSchema=hm(A,{}),A.def=e,A.type=e.type,Object.defineProperty(A,"_def",{value:e}),A.check=(...t)=>{var n;return A.clone(Tt(e,{checks:[...(n=e.checks)!=null?n:[],...t.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},A.with=A.check,A.clone=(t,n)=>Ht(A,t,n),A.brand=()=>A,A.register=((t,n)=>(t.add(A,n),A)),A.parse=(t,n)=>Vm(A,t,n,{callee:A.parse}),A.safeParse=(t,n)=>Xm(A,t,n),A.parseAsync=(t,n)=>T(null,null,function*(){return Zm(A,t,n,{callee:A.parseAsync})}),A.safeParseAsync=(t,n)=>T(null,null,function*(){return Wm(A,t,n)}),A.spa=A.safeParseAsync,A.encode=(t,n)=>Jm(A,t,n),A.decode=(t,n)=>jm(A,t,n),A.encodeAsync=(t,n)=>T(null,null,function*(){return Ym(A,t,n)}),A.decodeAsync=(t,n)=>T(null,null,function*(){return qm(A,t,n)}),A.safeEncode=(t,n)=>AC(A,t,n),A.safeDecode=(t,n)=>eC(A,t,n),A.safeEncodeAsync=(t,n)=>T(null,null,function*(){return tC(A,t,n)}),A.safeDecodeAsync=(t,n)=>T(null,null,function*(){return nC(A,t,n)}),A.refine=(t,n)=>A.check(YC(t,n)),A.superRefine=t=>A.check(qC(t)),A.overwrite=t=>A.check(zn(t)),A.optional=()=>Bu(A),A.exactOptional=()=>MC(A),A.nullable=()=>wu(A),A.nullish=()=>Bu(wu(A)),A.nonoptional=t=>GC(A,t),A.array=()=>be(A),A.or=t=>xC([A,t]),A.and=t=>TC(A,t),A.transform=t=>Cu(A,RC(t)),A.default=t=>NC(A,t),A.prefault=t=>$C(A,t),A.catch=t=>ZC(A,t),A.pipe=t=>Cu(A,t),A.readonly=()=>JC(A),A.describe=t=>{const n=A.clone();return Er.add(n,{description:t}),n},Object.defineProperty(A,"description",{get(){var t;return(t=Er.get(A))==null?void 0:t.description},configurable:!0}),A.meta=(...t)=>{if(t.length===0)return Er.get(A);const n=A.clone();return Er.add(n,t[0]),n},A.isOptional=()=>A.safeParse(void 0).success,A.isNullable=()=>A.safeParse(null).success,A.apply=t=>t(A),A)),au=_("_ZodString",(A,e)=>{var n,r,s;Zi.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(o,a,i)=>gm(A,o,a);const t=A._zod.bag;A.format=(n=t.format)!=null?n:null,A.minLength=(r=t.minimum)!=null?r:null,A.maxLength=(s=t.maximum)!=null?s:null,A.regex=(...o)=>A.check(qw(...o)),A.includes=(...o)=>A.check(tm(...o)),A.startsWith=(...o)=>A.check(nm(...o)),A.endsWith=(...o)=>A.check(rm(...o)),A.min=(...o)=>A.check(Gs(...o)),A.max=(...o)=>A.check(tu(...o)),A.length=(...o)=>A.check(nu(...o)),A.nonempty=(...o)=>A.check(Gs(1,...o)),A.lowercase=o=>A.check(Am(o)),A.uppercase=o=>A.check(em(o)),A.trim=()=>A.check(om()),A.normalize=(...o)=>A.check(sm(...o)),A.toLowerCase=()=>A.check(im()),A.toUpperCase=()=>A.check(am()),A.slugify=()=>A.check(cm())}),rC=_("ZodString",(A,e)=>{Zi.init(A,e),au.init(A,e),A.email=t=>A.check(Qw(sC,t)),A.url=t=>A.check(kw(oC,t)),A.jwt=t=>A.check(Nw(bC,t)),A.emoji=t=>A.check(vw(iC,t)),A.guid=t=>A.check(Yl(cu,t)),A.uuid=t=>A.check(yw(Zs,t)),A.uuidv4=t=>A.check(Uw(Zs,t)),A.uuidv6=t=>A.check(Ew(Zs,t)),A.uuidv7=t=>A.check(Fw(Zs,t)),A.nanoid=t=>A.check(_w(aC,t)),A.guid=t=>A.check(Yl(cu,t)),A.cuid=t=>A.check(xw(cC,t)),A.cuid2=t=>A.check(Sw(lC,t)),A.ulid=t=>A.check(Iw(uC,t)),A.base64=t=>A.check(Mw(wC,t)),A.base64url=t=>A.check(Pw(mC,t)),A.xid=t=>A.check(Tw(dC,t)),A.ksuid=t=>A.check(Hw(pC,t)),A.ipv4=t=>A.check(Lw(hC,t)),A.ipv6=t=>A.check(Dw(fC,t)),A.cidrv4=t=>A.check(Rw(gC,t)),A.cidrv6=t=>A.check(Ow(BC,t)),A.e164=t=>A.check(Kw(CC,t)),A.datetime=t=>A.check(Mm(t)),A.date=t=>A.check(Km(t)),A.time=t=>A.check(zm(t)),A.duration=t=>A.check(Gm(t))});function L(A){return bw(rC,A)}const vA=_("ZodStringFormat",(A,e)=>{yA.init(A,e),au.init(A,e)}),sC=_("ZodEmail",(A,e)=>{kB.init(A,e),vA.init(A,e)}),cu=_("ZodGUID",(A,e)=>{EB.init(A,e),vA.init(A,e)}),Zs=_("ZodUUID",(A,e)=>{FB.init(A,e),vA.init(A,e)}),oC=_("ZodURL",(A,e)=>{vB.init(A,e),vA.init(A,e)}),iC=_("ZodEmoji",(A,e)=>{_B.init(A,e),vA.init(A,e)}),aC=_("ZodNanoID",(A,e)=>{xB.init(A,e),vA.init(A,e)}),cC=_("ZodCUID",(A,e)=>{SB.init(A,e),vA.init(A,e)}),lC=_("ZodCUID2",(A,e)=>{IB.init(A,e),vA.init(A,e)}),uC=_("ZodULID",(A,e)=>{TB.init(A,e),vA.init(A,e)}),dC=_("ZodXID",(A,e)=>{HB.init(A,e),vA.init(A,e)}),pC=_("ZodKSUID",(A,e)=>{LB.init(A,e),vA.init(A,e)}),hC=_("ZodIPv4",(A,e)=>{PB.init(A,e),vA.init(A,e)}),fC=_("ZodIPv6",(A,e)=>{KB.init(A,e),vA.init(A,e)}),gC=_("ZodCIDRv4",(A,e)=>{NB.init(A,e),vA.init(A,e)}),BC=_("ZodCIDRv6",(A,e)=>{zB.init(A,e),vA.init(A,e)}),wC=_("ZodBase64",(A,e)=>{$B.init(A,e),vA.init(A,e)}),mC=_("ZodBase64URL",(A,e)=>{VB.init(A,e),vA.init(A,e)}),CC=_("ZodE164",(A,e)=>{ZB.init(A,e),vA.init(A,e)}),bC=_("ZodJWT",(A,e)=>{WB.init(A,e),vA.init(A,e)}),lu=_("ZodNumber",(A,e)=>{var n,r,s,o,a,i,l,u,h;Ol.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(f,g,m)=>Bm(A,f,g),A.gt=(f,g)=>A.check(Au(f,g)),A.gte=(f,g)=>A.check(Ji(f,g)),A.min=(f,g)=>A.check(Ji(f,g)),A.lt=(f,g)=>A.check(ql(f,g)),A.lte=(f,g)=>A.check(Wi(f,g)),A.max=(f,g)=>A.check(Wi(f,g)),A.int=f=>A.check(uu(f)),A.safe=f=>A.check(uu(f)),A.positive=f=>A.check(Au(0,f)),A.nonnegative=f=>A.check(Ji(0,f)),A.negative=f=>A.check(ql(0,f)),A.nonpositive=f=>A.check(Wi(0,f)),A.multipleOf=(f,g)=>A.check(eu(f,g)),A.step=(f,g)=>A.check(eu(f,g)),A.finite=()=>A;const t=A._zod.bag;A.minValue=(s=Math.max((n=t.minimum)!=null?n:Number.NEGATIVE_INFINITY,(r=t.exclusiveMinimum)!=null?r:Number.NEGATIVE_INFINITY))!=null?s:null,A.maxValue=(i=Math.min((o=t.maximum)!=null?o:Number.POSITIVE_INFINITY,(a=t.exclusiveMaximum)!=null?a:Number.POSITIVE_INFINITY))!=null?i:null,A.isInt=((l=t.format)!=null?l:"").includes("int")||Number.isSafeInteger((u=t.multipleOf)!=null?u:.5),A.isFinite=!0,A.format=(h=t.format)!=null?h:null});function rt(A){return Zw(lu,A)}const QC=_("ZodNumberFormat",(A,e)=>{JB.init(A,e),lu.init(A,e)});function uu(A){return Xw(QC,A)}const yC=_("ZodBoolean",(A,e)=>{jB.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>wm(A,t,n)});function EA(A){return Ww(yC,A)}const UC=_("ZodAny",(A,e)=>{YB.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Cm()});function du(){return Jw(UC)}const EC=_("ZodUnknown",(A,e)=>{qB.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>bm()});function pu(){return jw(EC)}const FC=_("ZodNever",(A,e)=>{Aw.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>mm(A,t,n)});function kC(A){return Yw(FC,A)}const vC=_("ZodArray",(A,e)=>{ew.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Fm(A,t,n,r),A.element=e.element,A.min=(t,n)=>A.check(Gs(t,n)),A.nonempty=t=>A.check(Gs(1,t)),A.max=(t,n)=>A.check(tu(t,n)),A.length=(t,n)=>A.check(nu(t,n)),A.unwrap=()=>A.element});function be(A,e){return lm(vC,A,e)}const _C=_("ZodObject",(A,e)=>{nw.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>km(A,t,n,r),oA(A,"shape",()=>e.shape),A.keyof=()=>Ee(Object.keys(A._zod.def.shape)),A.catchall=t=>A.clone($(k({},A._zod.def),{catchall:t})),A.passthrough=()=>A.clone($(k({},A._zod.def),{catchall:pu()})),A.loose=()=>A.clone($(k({},A._zod.def),{catchall:pu()})),A.strict=()=>A.clone($(k({},A._zod.def),{catchall:kC()})),A.strip=()=>A.clone($(k({},A._zod.def),{catchall:void 0})),A.extend=t=>yg(A,t),A.safeExtend=t=>Ug(A,t),A.merge=t=>Eg(A,t),A.pick=t=>bg(A,t),A.omit=t=>Qg(A,t),A.partial=(...t)=>Fg(gu,A,t[0]),A.required=(...t)=>kg(mu,A,t[0])});function CA(A,e){const t=k({type:"object",shape:A!=null?A:{}},G(e));return new _C(t)}const hu=_("ZodUnion",(A,e)=>{zl.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>vm(A,t,n,r),A.options=e.options});function xC(A,e){return new hu(k({type:"union",options:A},G(e)))}const SC=_("ZodDiscriminatedUnion",(A,e)=>{hu.init(A,e),rw.init(A,e)});function fu(A,e,t){return new SC(k({type:"union",options:e,discriminator:A},G(t)))}const IC=_("ZodIntersection",(A,e)=>{sw.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>_m(A,t,n,r)});function TC(A,e){return new IC({type:"intersection",left:A,right:e})}const HC=_("ZodRecord",(A,e)=>{ow.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>xm(A,t,n,r),A.keyType=e.keyType,A.valueType=e.valueType});function st(A,e,t){return new HC(k({type:"record",keyType:A,valueType:e},G(t)))}const ji=_("ZodEnum",(A,e)=>{iw.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(n,r,s)=>Qm(A,n,r),A.enum=e.entries,A.options=Object.values(e.entries);const t=new Set(Object.keys(e.entries));A.extract=(n,r)=>{const s={};for(const o of n)if(t.has(o))s[o]=e.entries[o];else throw new Error(`Key ${o} not found in enum`);return new ji($(k($(k({},e),{checks:[]}),G(r)),{entries:s}))},A.exclude=(n,r)=>{const s=k({},e.entries);for(const o of n)if(t.has(o))delete s[o];else throw new Error(`Key ${o} not found in enum`);return new ji($(k($(k({},e),{checks:[]}),G(r)),{entries:s}))}});function Ee(A,e){const t=Array.isArray(A)?Object.fromEntries(A.map(n=>[n,n])):A;return new ji(k({type:"enum",entries:t},G(e)))}const LC=_("ZodLiteral",(A,e)=>{aw.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>ym(A,t,n),A.values=new Set(e.values),Object.defineProperty(A,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function Fe(A,e){return new LC(k({type:"literal",values:Array.isArray(A)?A:[A]},G(e)))}const DC=_("ZodTransform",(A,e)=>{cw.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Em(A,t),A._zod.parse=(t,n)=>{if(n.direction==="backward")throw new ml(A.constructor.name);t.addIssue=s=>{var o,a,i;if(typeof s=="string")t.issues.push(Ur(s,t.value,e));else{const l=s;l.fatal&&(l.continue=!1),(o=l.code)!=null||(l.code="custom"),(a=l.input)!=null||(l.input=t.value),(i=l.inst)!=null||(l.inst=A),t.issues.push(Ur(l))}};const r=e.transform(t.value,t);return r instanceof Promise?r.then(s=>(t.value=s,t)):(t.value=r,t)}});function RC(A){return new DC({type:"transform",transform:A})}const gu=_("ZodOptional",(A,e)=>{Vl.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>iu(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function Bu(A){return new gu({type:"optional",innerType:A})}const OC=_("ZodExactOptional",(A,e)=>{lw.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>iu(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function MC(A){return new OC({type:"optional",innerType:A})}const PC=_("ZodNullable",(A,e)=>{uw.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Sm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function wu(A){return new PC({type:"nullable",innerType:A})}const KC=_("ZodDefault",(A,e)=>{dw.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Tm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType,A.removeDefault=A.unwrap});function NC(A,e){return new KC({type:"default",innerType:A,get defaultValue(){return typeof e=="function"?e():El(e)}})}const zC=_("ZodPrefault",(A,e)=>{pw.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Hm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function $C(A,e){return new zC({type:"prefault",innerType:A,get defaultValue(){return typeof e=="function"?e():El(e)}})}const mu=_("ZodNonOptional",(A,e)=>{hw.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Im(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function GC(A,e){return new mu(k({type:"nonoptional",innerType:A},G(e)))}const VC=_("ZodCatch",(A,e)=>{fw.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Lm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType,A.removeCatch=A.unwrap});function ZC(A,e){return new VC({type:"catch",innerType:A,catchValue:typeof e=="function"?e:()=>e})}const XC=_("ZodPipe",(A,e)=>{gw.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Dm(A,t,n,r),A.in=e.in,A.out=e.out});function Cu(A,e){return new XC({type:"pipe",in:A,out:e})}const WC=_("ZodReadonly",(A,e)=>{Bw.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Rm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function JC(A){return new WC({type:"readonly",innerType:A})}const jC=_("ZodCustom",(A,e)=>{ww.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Um(A,t)});function YC(A,e={}){return um(jC,A,e)}function qC(A){return dm(A)}const Ab=CA({name:L().min(1).max(100).optional(),command:L().min(1).max(500),args:be(L()).optional(),failOnError:EA().default(!0).optional(),timeout:rt().int().min(1e3).max(3e5).default(3e4).optional(),workingDirectory:L().optional(),env:st(L(),L()).optional(),runOnBackground:EA().optional(),agentTags:be(L()).optional()});CA({name:L(),command:L(),success:EA(),exitCode:rt().optional(),stdout:L().optional(),stderr:L().optional(),error:L().optional(),duration:rt(),failOnError:EA()});const An=CA({path:L(),extraCommands:be(Ab).optional(),id:L().uuid().optional(),rotationKey:L().optional(),usageStatus:Ee(["free","in_use"]).optional(),agentTags:be(L()).optional()}),eb=fu("operation",[An.extend({operation:Fe("create"),content:L().optional(),contentPath:L().optional(),encoding:Ee(["utf-8","base64"]).optional()}),An.extend({operation:Fe("merge"),data:st(L(),du()),mergeStrategy:Ee(["deep","shallow"]).optional(),arrayMergeStrategy:Ee(["concat","replace"]).optional()}),An.extend({operation:Fe("modify"),content:L().optional(),contentPath:L().optional(),createIfMissing:EA().optional()}),An.extend({operation:Fe("delete"),ignoreIfMissing:EA().optional()}),An.extend({operation:Fe("createDirectory"),contentPath:L().optional(),mode:rt().optional(),ignoreIfExists:EA().optional()}),An.extend({operation:Fe("download"),url:L().url(),headers:st(L(),L()).optional(),timeout:rt().min(1e3).max(3e5).optional()}),An.extend({operation:Fe("gitClone"),gitUrl:L(),gitSecretKey:L().optional(),sourceBranch:L().optional(),targetBranch:L().optional(),originalBranch:L().optional(),defaultBranch:L().optional()})]);var _A=(A=>(A.DRAFT="draft",A.PENDING="pending",A.ASSIGNED="assigned",A.IN_PROGRESS="in_progress",A.WAITING_FOR_INPUT="waiting_for_input",A.WAITING_FOR_PLAN_APPROVAL="waiting_for_plan_approval",A.PLAN_APPROVED="plan_approved",A.PLAN_REJECTED="plan_rejected",A.COMPLETED="completed",A.FAILED="failed",A.CANCELLED="cancelled",A.RESULT_REJECTED="result_rejected",A))(_A||{});const tb=CA({type:Ee(["json","file","regex"]).describe("Extraction method"),source:L().describe("Source to extract from (file path or stdout/stderr)"),schema:CA({}).passthrough().optional().describe("JSON schema for validation"),pattern:L().optional().describe("Regex pattern for extraction")}),nb=CA({type:Ee(["issue_update","bulk_issue_update","notification","webhook"]).describe("Hook type"),config:du().describe("Hook-specific configuration")});CA({command:L().optional().describe("Legacy — unused in SDK mode"),args:be(L()).optional().describe("Legacy — unused in SDK mode"),env:st(L(),L()).optional().describe("Environment variables"),workingDirectory:L().optional().describe("Working directory for command execution"),fileOperations:be(eb).optional().describe("File operations to perform during setup"),gitUrl:L().optional().describe("Git repository URL (populated from project)"),gitPrivateKey:L().optional().describe("Git SSH private key (populated from project)"),gitCommitMessage:L().optional().describe("Commit message for git operations"),resultExtraction:tb.optional().describe("Schema for extracting result data"),postExecutionHooks:be(nb).optional().describe("Hooks to run after task completion"),executionMode:Ee(["claudeAgentSdk","openaiAgentSdk","opencodeSdk","cursorSdk","codexSdk"]).optional().default("claudeAgentSdk").describe("Execution mode (default: claudeAgentSdk)"),executionPlan:fu("executionMode",[CA({executionMode:Fe("claudeAgentSdk"),promptText:L(),sdkOptions:CA({model:L(),permissionMode:Ee(["plan","acceptEdits","bypassPermissions","ask"]),settingSources:be(L()),allowDangerouslySkipPermissions:EA(),persistSession:EA(),streamSdkEvents:EA().optional(),allowedTools:be(L()).optional(),settings:CA({enabledPlugins:st(L(),EA())}),env:st(L(),L()).optional()}),resume:CA({sessionId:L().optional(),continue:EA()}).optional()}),CA({executionMode:Fe("opencodeSdk"),promptText:L(),sdkOptions:CA({provider:L(),model:L(),allowedTools:be(L()).optional(),env:st(L(),L()).optional()}),resume:CA({sessionId:L().optional(),continue:EA()}).optional()}),CA({executionMode:Fe("openaiAgentSdk"),promptText:L(),sdkOptions:CA({model:L(),env:st(L(),L()).optional()}),resume:CA({sessionId:L().optional(),continue:EA()}).optional()}),CA({executionMode:Fe("codexSdk"),promptText:L(),sdkOptions:CA({model:L().optional(),sandboxMode:Ee(["read-only","workspace-write","danger-full-access"]).optional(),approvalPolicy:Ee(["never","on-request","on-failure","untrusted"]).optional(),env:st(L(),L()).optional()}),resume:CA({sessionId:L().optional(),continue:EA()}).optional()}),CA({executionMode:Fe("cursorSdk"),promptText:L(),sdkOptions:CA({model:L(),env:st(L(),L()).optional()}),resume:CA({sessionId:L().optional(),continue:EA()}).optional()})]).optional().describe("Backend-built prompt + resolved SDK options for this phase"),planEnabled:EA().optional().default(!1).describe("Enable planning phase (computed at runtime for agent)"),planContent:L().optional().describe("Final approved plan content"),planApproved:EA().optional().describe("Plan approval status"),planApprovedAt:L().optional().describe("ISO timestamp of approval"),planRejected:EA().optional().describe("Plan rejection flag"),planRejectionFeedback:L().optional().describe("User rejection feedback"),rejectedPlanContent:L().optional().describe("Previously rejected plan content"),planCompletedAt:L().optional().describe("ISO timestamp when plan was generated"),planRejectedAt:L().optional().describe("ISO timestamp when plan was rejected"),resultRejectionFeedback:L().optional().describe("User feedback when rejecting the result (most recent)"),resultRejectedAt:L().optional().describe("ISO timestamp when result was rejected (most recent)"),resultRejectionHistory:be(CA({feedback:L(),rejectedAt:L()})).optional().describe("All rejection messages in chronological order"),notificationChannelPlanMessageId:rt().optional(),notificationChannelPlanMessageSentAt:L().optional(),notificationChannelCompletedMessageId:rt().optional(),notificationChannelFailedMessageId:rt().optional(),streamSdkEvents:EA().optional().describe("Stream SDK messages (thinking, tool calls, etc.) as sdk_event chunks"),originalTaskSummary:L().optional().describe("Summary from the original task run (passed to retry for historical context)"),planWasApproved:EA().optional().describe("True when planApproved was cleared for rePlan=true retry — indicates the plan had been approved before"),planComments:be(CA({id:L(),selectedText:L(),startOffset:rt(),endOffset:rt(),commentText:L(),createdAt:L()})).optional().describe("Inline review comments attached to the plan"),hasAiConfigSecrets:EA().optional().describe("True when AI Config has secret-backed env vars; agent must fetch resolved values via /tasks/:id/resolve-secrets"),hasCredentials:EA().optional().describe("True when the task has credentials attached; agent must fetch resolved values via /tasks/:id/resolve-credentials"),mcpServersMode:Ee(["all","ignoreExistingMcpServers"]).optional().describe("MCP server strategy for this run; 'ignoreExistingMcpServers' overrides the existing .mcp.json with only the template's configured servers plus the agent-platform server"),enableBrowserTools:EA().optional().describe("When true, the MCP server registers browser_interact and browser_get_context (browser_automate tasks only)")}),_A.DRAFT+"",_A.CANCELLED,_A.PENDING+"",_A.CANCELLED,_A.ASSIGNED+"",_A.CANCELLED,_A.IN_PROGRESS+"",_A.CANCELLED,_A.FAILED,_A.WAITING_FOR_INPUT+"",_A.CANCELLED,_A.WAITING_FOR_PLAN_APPROVAL+"",_A.CANCELLED,_A.PLAN_APPROVED+"",_A.CANCELLED,_A.PLAN_REJECTED+"",_A.CANCELLED,_A.COMPLETED+"",_A.RESULT_REJECTED+"",_A.CANCELLED,_A.FAILED+"",_A.CANCELLED+"";const bu="browser_capture",rb="browser_automate";function Qu(A){let e=(A||"").trim().toLowerCase();const t=e.indexOf("@");return t>=0&&(e=e.slice(t+1)),e=e.split("/")[0].split(":")[0],e.startsWith("www.")&&(e=e.slice(4)),e}function sb(A,e){const t=Qu(A),n=(e||"").trim().toLowerCase();if(!t||!n)return!1;if(n.startsWith("*.")){const r=n.slice(2);return t===r||t.endsWith("."+r)}return t===Qu(n)}function yu(A,e){var s;let t;try{const o=new URL(A);if(o.protocol!=="http:"&&o.protocol!=="https:")return null;t=o.hostname}catch(o){return null}let n=null,r=-1;for(const o of e)for(const a of(s=o.domains)!=null?s:[])sb(t,a)&&a.length>r&&(r=a.length,n=o.id);return n}class Uu extends Error{}function Yi(A){return T(this,null,function*(){if(!A.ok){const e=yield A.json().catch(()=>({message:`HTTP ${A.status}`})),t=e.message||e.error||`HTTP ${A.status}`;throw A.status===401?new Uu(t):new Error(t)}return A.json()})}let Eu=3e4;function ob(A){Number.isFinite(A)&&A>0&&(Eu=A)}function Fr(n){return T(this,arguments,function*(A,e={},t=Eu){const r=new AbortController,s=setTimeout(()=>r.abort(),t);try{return yield fetch(A,$(k({},e),{credentials:"omit",signal:r.signal}))}catch(o){throw o instanceof DOMException&&o.name==="AbortError"?new Error(`Request timed out after ${Math.round(t/1e3)}s. Please check your connection and try again.`):o}finally{clearTimeout(s)}})}function YA(A,e,t,n){return T(this,null,function*(){const s=`${A.backendUrl.replace(/\/+$/,"")}/api${t}`,o=yield Fr(s,{method:e,headers:{"Content-Type":"application/json",Authorization:`Bearer ${A.token}`},body:n!==void 0?JSON.stringify(n):void 0});return Yi(o)})}function ib(A,e,t){return T(this,null,function*(){const n=A.backendUrl.replace(/\/+$/,""),r=new FormData;r.append("file",e,t);const s=yield Fr(`${n}/api/files/upload`,{method:"POST",headers:{Authorization:`Bearer ${A.token}`},body:r});return Yi(s)})}function ab(A,e){return T(this,null,function*(){return YA(A,"GET",`/projects/by-key/${encodeURIComponent(e)}`)})}const cb=["project","note","ctx"];function lb(A){var t,n;const e=cb.filter(r=>A[r]===void 0||A[r]===null);if(e.length>0)throw new Error(`createTask: missing required field(s): ${e.join(", ")}`);if(!((t=A.project)!=null&&t.id)&&!((n=A.project)!=null&&n.key))throw new Error("createTask: project must have an id or key")}function qi(A,e){return T(this,null,function*(){var h,f,g,m,Q,U;lb(e);const{project:t,note:n,ctx:r,advancedOpts:s,titleOverride:o,titleInstruction:a,allowSubmit:i,extraFileIds:l,type:u=bu}=e;return YA(A,"POST","/tasks",$(k(k(k(k(k(k(k(k(k(k(k(k($(k({type:u,title:o||n.slice(0,120)||r.pageTitle||"Browser capture",titleInstruction:a!=null?a:n},t.id?{projectId:t.id}:{projectKey:t.key}),{autoAssign:!0}),s!=null&&s.claudeTemplateId?{claudeTemplateId:s.claudeTemplateId}:{}),(s==null?void 0:s.quickMode)!==void 0?{quickMode:s.quickMode}:{}),(s==null?void 0:s.modelOverride)!=null?{modelOverride:s.modelOverride}:{}),(s==null?void 0:s.claudeProfileId)!=null?{claudeProfileId:s.claudeProfileId}:{}),(s==null?void 0:s.effort)!=null?{effort:s.effort}:{}),(s==null?void 0:s.executionMode)!=null?{executionMode:s.executionMode}:{}),(h=s==null?void 0:s.selectedPluginIds)!=null&&h.length?{selectedPluginIds:s.selectedPluginIds}:{}),(f=s==null?void 0:s.selectedSkillIds)!=null&&f.length?{selectedSkillIds:s.selectedSkillIds}:{}),(g=s==null?void 0:s.selectedPluginSkillIds)!=null&&g.length?{selectedPluginSkillIds:s.selectedPluginSkillIds}:{}),(m=s==null?void 0:s.selectedMcpServerIds)!=null&&m.length?{selectedMcpServerIds:s.selectedMcpServerIds}:{}),(Q=s==null?void 0:s.selectedSlashCommandIds)!=null&&Q.length?{selectedSlashCommandIds:s.selectedSlashCommandIds}:{}),(U=s==null?void 0:s.selectedRemoteContextProviderIds)!=null&&U.length?{selectedRemoteContextProviderIds:s.selectedRemoteContextProviderIds}:{}),{metadata:k(k({type:u,note:n,source:"web-sdk",pageUrl:r.pageUrl,pageTitle:r.pageTitle,elementText:r.elementText,cssSelector:r.cssSelector,elementOuterHtml:r.elementOuterHtml,ancestry:r.ancestry,elementRole:r.elementRole,elementAriaLabel:r.elementAriaLabel,enclosingSection:r.enclosingSection,description:r.description,canonicalUrl:r.canonicalUrl,lang:r.lang,ogTitle:r.ogTitle,ogDescription:r.ogDescription,ogType:r.ogType,ogSiteName:r.ogSiteName,viewportWidth:r.viewportWidth,viewportHeight:r.viewportHeight,scrollX:r.scrollX,scrollY:r.scrollY,selectionText:r.selectionText,capturedAt:r.capturedAt,interactionSteps:r.interactionSteps},i!==void 0?{allowSubmit:i}:{}),l!=null&&l.length?{extraFileIds:l}:{})}))})}function Fu(A,e){return T(this,null,function*(){return qi(A,$(k({},e),{type:rb}))})}function ku(A,e,t,n,r){return T(this,null,function*(){var s;return YA(A,"POST","/planning-sessions",k(k($(k({},e.id?{projectId:e.id}:{projectKey:e.key}),{instruction:t,quickMode:(s=n==null?void 0:n.quickMode)!=null?s:!1}),n!=null&&n.claudeTemplateId?{claudeTemplateId:n.claudeTemplateId}:{}),r!=null&&r.length?{fileIds:r}:{}))})}function ub(A,e){return T(this,null,function*(){const t=e?`?projectId=${encodeURIComponent(e)}`:"";return YA(A,"GET",`/claude-templates${t}`)})}function vu(A,e){return T(this,null,function*(){return YA(A,"GET",`/tasks/${e}`)})}function db(A,e){return T(this,null,function*(){return YA(A,"GET",`/planning-sessions/${e}`)})}function _u(A){return T(this,null,function*(){return YA(A,"GET","/projects")})}function pb(A){return T(this,null,function*(){return(yield YA(A,"GET","/tenants/current")).membership})}function xu(A,e){if(!A||A.includes("tenant:*")||A.includes(e))return!0;const t=e.split(":")[0];return A.includes(`${t}:*`)}function Aa(A,e,t){return T(this,null,function*(){const r=`${A.backendUrl.replace(/\/+$/,"")}/api/auth/tokens/exchange-code`,s=yield Fr(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,origin:t})});return Yi(s)})}function hb(A,e){return T(this,null,function*(){return YA(A,"GET",`/tasks/${e}/browser-commands/pending`)})}function fb(A,e,t,n,r){return T(this,null,function*(){return YA(A,"POST",`/tasks/${e}/browser-commands/${t}/result`,{status:n,message:r})})}function gb(A,e){return T(this,null,function*(){return YA(A,"GET",`/tasks/${e}/chunks`)})}function Bb(A,e,t){return T(this,null,function*(){return YA(A,"POST",`/tasks/${e}/instructions`,{content:t})})}function wb(A,e){return T(this,null,function*(){return YA(A,"POST",`/tasks/${e}/cancel`)})}function mb(A,e){return T(this,null,function*(){return YA(A,"POST",`/tasks/${e}/approve-result`)})}function Cb(A,e,t){return T(this,null,function*(){return YA(A,"POST",`/tasks/${e}/reject-result`,{feedback:t})})}function Xs(A,e){return T(this,null,function*(){return YA(A,"GET",`/tasks/${e}/interactions?filter=unanswered`)})}function Su(A,e,t,n){return T(this,null,function*(){return YA(A,"POST",`/tasks/${e}/interactions/${t}/answer`,{answer:n})})}function bb(A,e,t){const n=!!(e.backendUrl&&e.token),r=document.createElement("div");r.className="ap-sdk-advanced",r.innerHTML=`
1625
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of A.seen.entries()){const h=u[1];if(e===u[0]){s(u);continue}if(A.external){const g=(i=A.external.registry.get(u[0]))==null?void 0:i.id;if(e!==u[0]&&g){s(u);continue}}if((c=A.metadataRegistry.get(u[0]))==null?void 0:c.id){s(u);continue}if(h.cycle){s(u);continue}if(h.count>1&&A.reused==="ref"){s(u);continue}}}function pu(A,e){var o,a,i,c,u;const t=A.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=h=>{var k,v,y;const f=A.seen.get(h);if(f.ref===null)return;const g=(k=f.def)!=null?k:f.schema,m=F({},g),b=f.ref;if(f.ref=null,b){n(b);const U=A.seen.get(b),x=U.schema;if(x.$ref&&(A.target==="draft-07"||A.target==="draft-04"||A.target==="openapi-3.0")?(g.allOf=(v=g.allOf)!=null?v:[],g.allOf.push(x)):Object.assign(g,x),Object.assign(g,m),h._zod.parent===b)for(const H in g)H==="$ref"||H==="allOf"||H in m||delete g[H];if(x.$ref)for(const H in g)H==="$ref"||H==="allOf"||H in U.def&&JSON.stringify(g[H])===JSON.stringify(U.def[H])&&delete g[H]}const E=h._zod.parent;if(E&&E!==b){n(E);const U=A.seen.get(E);if(U!=null&&U.schema.$ref&&(g.$ref=U.schema.$ref,U.def))for(const x in g)x==="$ref"||x==="allOf"||x in U.def&&JSON.stringify(g[x])===JSON.stringify(U.def[x])&&delete g[x]}A.override({zodSchema:h,jsonSchema:g,path:(y=f.path)!=null?y:[]})};for(const h of[...A.seen.entries()].reverse())n(h[0]);const r={};if(A.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":A.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":A.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":A.target,(o=A.external)!=null&&o.uri){const h=(a=A.external.registry.get(e))==null?void 0:a.id;if(!h)throw new Error("Schema is missing an `id` property");r.$id=A.external.uri(h)}Object.assign(r,(i=t.def)!=null?i:t.schema);const s=(u=(c=A.external)==null?void 0:c.defs)!=null?u:{};for(const h of A.seen.entries()){const f=h[1];f.def&&f.defId&&(s[f.defId]=f.def)}A.external||Object.keys(s).length>0&&(A.target==="draft-2020-12"?r.$defs=s:r.definitions=s);try{const h=JSON.parse(JSON.stringify(r));return Object.defineProperty(h,"~standard",{value:z(F({},e["~standard"]),{jsonSchema:{input:Ys(e,"input",A.processors),output:Ys(e,"output",A.processors)}}),enumerable:!1,writable:!1}),h}catch(h){throw new Error("Error converting schema to JSON.")}}function ae(A,e){const t=e!=null?e:{seen:new Set};if(t.seen.has(A))return!1;t.seen.add(A);const n=A._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return ae(n.element,t);if(n.type==="set")return ae(n.valueType,t);if(n.type==="lazy")return ae(n.getter(),t);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return ae(n.innerType,t);if(n.type==="intersection")return ae(n.left,t)||ae(n.right,t);if(n.type==="record"||n.type==="map")return ae(n.keyType,t)||ae(n.valueType,t);if(n.type==="pipe")return ae(n.in,t)||ae(n.out,t);if(n.type==="object"){for(const r in n.shape)if(ae(n.shape[r],t))return!0;return!1}if(n.type==="union"){for(const r of n.options)if(ae(r,t))return!0;return!1}if(n.type==="tuple"){for(const r of n.items)if(ae(r,t))return!0;return!!(n.rest&&ae(n.rest,t))}return!1}const ym=(A,e={})=>t=>{const n=uu(z(F({},t),{processors:e}));return PA(A,n),du(n,A),pu(n,A)},Ys=(A,e,t={})=>n=>{const{libraryOptions:r,target:s}=n!=null?n:{},o=uu(z(F({},r!=null?r:{}),{target:s,io:e,processors:t}));return PA(A,o),du(o,A),pu(o,A)},Um={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Em=(A,e,t,n)=>{var u;const r=t;r.type="string";const{minimum:s,maximum:o,format:a,patterns:i,contentEncoding:c}=A._zod.bag;if(typeof s=="number"&&(r.minLength=s),typeof o=="number"&&(r.maxLength=o),a&&(r.format=(u=Um[a])!=null?u:a,r.format===""&&delete r.format,a==="time"&&delete r.format),c&&(r.contentEncoding=c),i&&i.size>0){const h=[...i];h.length===1?r.pattern=h[0].source:h.length>1&&(r.allOf=[...h.map(f=>z(F({},e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{}),{pattern:f.source}))])}},km=(A,e,t,n)=>{const r=t,{minimum:s,maximum:o,format:a,multipleOf:i,exclusiveMaximum:c,exclusiveMinimum:u}=A._zod.bag;typeof a=="string"&&a.includes("int")?r.type="integer":r.type="number",typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u),typeof s=="number"&&(r.minimum=s,typeof u=="number"&&e.target!=="draft-04"&&(u>=s?delete r.minimum:delete r.exclusiveMinimum)),typeof c=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c),typeof o=="number"&&(r.maximum=o,typeof c=="number"&&e.target!=="draft-04"&&(c<=o?delete r.maximum:delete r.exclusiveMaximum)),typeof i=="number"&&(r.multipleOf=i)},Fm=(A,e,t,n)=>{t.type="boolean"},vm=(A,e,t,n)=>{t.not={}},_m=(A,e,t,n)=>{},xm=(A,e,t,n)=>{},Sm=(A,e,t,n)=>{const r=A._zod.def,s=vl(r.entries);s.every(o=>typeof o=="number")&&(t.type="number"),s.every(o=>typeof o=="string")&&(t.type="string"),t.enum=s},Im=(A,e,t,n)=>{const r=A._zod.def,s=[];for(const o of r.values)if(o===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(o))}else s.push(o);if(s.length!==0)if(s.length===1){const o=s[0];t.type=o===null?"null":typeof o,e.target==="draft-04"||e.target==="openapi-3.0"?t.enum=[o]:t.const=o}else s.every(o=>typeof o=="number")&&(t.type="number"),s.every(o=>typeof o=="string")&&(t.type="string"),s.every(o=>typeof o=="boolean")&&(t.type="boolean"),s.every(o=>o===null)&&(t.type="null"),t.enum=s},Tm=(A,e,t,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Hm=(A,e,t,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Lm=(A,e,t,n)=>{const r=t,s=A._zod.def,{minimum:o,maximum:a}=A._zod.bag;typeof o=="number"&&(r.minItems=o),typeof a=="number"&&(r.maxItems=a),r.type="array",r.items=PA(s.element,e,z(F({},n),{path:[...n.path,"items"]}))},Rm=(A,e,t,n)=>{var c;const r=t,s=A._zod.def;r.type="object",r.properties={};const o=s.shape;for(const u in o)r.properties[u]=PA(o[u],e,z(F({},n),{path:[...n.path,"properties",u]}));const a=new Set(Object.keys(o)),i=new Set([...a].filter(u=>{const h=s.shape[u]._zod;return e.io==="input"?h.optin===void 0:h.optout===void 0}));i.size>0&&(r.required=Array.from(i)),((c=s.catchall)==null?void 0:c._zod.def.type)==="never"?r.additionalProperties=!1:s.catchall?s.catchall&&(r.additionalProperties=PA(s.catchall,e,z(F({},n),{path:[...n.path,"additionalProperties"]}))):e.io==="output"&&(r.additionalProperties=!1)},Dm=(A,e,t,n)=>{const r=A._zod.def,s=r.inclusive===!1,o=r.options.map((a,i)=>PA(a,e,z(F({},n),{path:[...n.path,s?"oneOf":"anyOf",i]})));s?t.oneOf=o:t.anyOf=o},Om=(A,e,t,n)=>{const r=A._zod.def,s=PA(r.left,e,z(F({},n),{path:[...n.path,"allOf",0]})),o=PA(r.right,e,z(F({},n),{path:[...n.path,"allOf",1]})),a=c=>"allOf"in c&&Object.keys(c).length===1,i=[...a(s)?s.allOf:[s],...a(o)?o.allOf:[o]];t.allOf=i},Pm=(A,e,t,n)=>{const r=t,s=A._zod.def;r.type="object";const o=s.keyType,a=o._zod.bag,i=a==null?void 0:a.patterns;if(s.mode==="loose"&&i&&i.size>0){const u=PA(s.valueType,e,z(F({},n),{path:[...n.path,"patternProperties","*"]}));r.patternProperties={};for(const h of i)r.patternProperties[h.source]=u}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(r.propertyNames=PA(s.keyType,e,z(F({},n),{path:[...n.path,"propertyNames"]}))),r.additionalProperties=PA(s.valueType,e,z(F({},n),{path:[...n.path,"additionalProperties"]}));const c=o._zod.values;if(c){const u=[...c].filter(h=>typeof h=="string"||typeof h=="number");u.length>0&&(r.required=u)}},Mm=(A,e,t,n)=>{const r=A._zod.def,s=PA(r.innerType,e,n),o=e.seen.get(A);e.target==="openapi-3.0"?(o.ref=r.innerType,t.nullable=!0):t.anyOf=[s,{type:"null"}]},Nm=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType},Km=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,t.default=JSON.parse(JSON.stringify(r.defaultValue))},$m=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,e.io==="input"&&(t._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},zm=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType;let o;try{o=r.catchValue(void 0)}catch(a){throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=o},Vm=(A,e,t,n)=>{const r=A._zod.def,s=e.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;PA(s,e,n);const o=e.seen.get(A);o.ref=s},Gm=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,t.readOnly=!0},hu=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType},Zm=_("ZodISODateTime",(A,e)=>{VB.init(A,e),kA.init(A,e)});function Xm(A){return Yw(Zm,A)}const Wm=_("ZodISODate",(A,e)=>{GB.init(A,e),kA.init(A,e)});function Jm(A){return qw(Wm,A)}const jm=_("ZodISOTime",(A,e)=>{ZB.init(A,e),kA.init(A,e)});function Ym(A){return Am(jm,A)}const qm=_("ZodISODuration",(A,e)=>{XB.init(A,e),kA.init(A,e)});function AC(A){return em(qm,A)}const Ee=_("ZodError",(A,e)=>{Hl.init(A,e),A.name="ZodError",Object.defineProperties(A,{format:{value:t=>Og(A,t)},flatten:{value:t=>Dg(A,t)},addIssue:{value:t=>{A.issues.push(t),A.message=JSON.stringify(A.issues,Zi,2)}},addIssues:{value:t=>{A.issues.push(...t),A.message=JSON.stringify(A.issues,Zi,2)}},isEmpty:{get(){return A.issues.length===0}}})},{Parent:Error}),eC=ji(Ee),tC=Yi(Ee),nC=Gs(Ee),rC=Zs(Ee),sC=Ng(Ee),oC=Kg(Ee),iC=$g(Ee),aC=zg(Ee),cC=Vg(Ee),lC=Gg(Ee),uC=Zg(Ee),dC=Xg(Ee),QA=_("ZodType",(A,e)=>(CA.init(A,e),Object.assign(A["~standard"],{jsonSchema:{input:Ys(A,"input"),output:Ys(A,"output")}}),A.toJSONSchema=ym(A,{}),A.def=e,A.type=e.type,Object.defineProperty(A,"_def",{value:e}),A.check=(...t)=>{var n;return A.clone(Pt(e,{checks:[...(n=e.checks)!=null?n:[],...t.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},A.with=A.check,A.clone=(t,n)=>Mt(A,t,n),A.brand=()=>A,A.register=((t,n)=>(t.add(A,n),A)),A.parse=(t,n)=>eC(A,t,n,{callee:A.parse}),A.safeParse=(t,n)=>nC(A,t,n),A.parseAsync=(t,n)=>I(null,null,function*(){return tC(A,t,n,{callee:A.parseAsync})}),A.safeParseAsync=(t,n)=>I(null,null,function*(){return rC(A,t,n)}),A.spa=A.safeParseAsync,A.encode=(t,n)=>sC(A,t,n),A.decode=(t,n)=>oC(A,t,n),A.encodeAsync=(t,n)=>I(null,null,function*(){return iC(A,t,n)}),A.decodeAsync=(t,n)=>I(null,null,function*(){return aC(A,t,n)}),A.safeEncode=(t,n)=>cC(A,t,n),A.safeDecode=(t,n)=>lC(A,t,n),A.safeEncodeAsync=(t,n)=>I(null,null,function*(){return uC(A,t,n)}),A.safeDecodeAsync=(t,n)=>I(null,null,function*(){return dC(A,t,n)}),A.refine=(t,n)=>A.check(ib(t,n)),A.superRefine=t=>A.check(ab(t)),A.overwrite=t=>A.check(Zn(t)),A.optional=()=>Uu(A),A.exactOptional=()=>XC(A),A.nullable=()=>Eu(A),A.nullish=()=>Uu(Eu(A)),A.nonoptional=t=>Ab(A,t),A.array=()=>Qe(A),A.or=t=>PC([A,t]),A.and=t=>KC(A,t),A.transform=t=>Fu(A,GC(t)),A.default=t=>jC(A,t),A.prefault=t=>qC(A,t),A.catch=t=>tb(A,t),A.pipe=t=>Fu(A,t),A.readonly=()=>sb(A),A.describe=t=>{const n=A.clone();return Sr.add(n,{description:t}),n},Object.defineProperty(A,"description",{get(){var t;return(t=Sr.get(A))==null?void 0:t.description},configurable:!0}),A.meta=(...t)=>{if(t.length===0)return Sr.get(A);const n=A.clone();return Sr.add(n,t[0]),n},A.isOptional=()=>A.safeParse(void 0).success,A.isNullable=()=>A.safeParse(null).success,A.apply=t=>t(A),A)),fu=_("_ZodString",(A,e)=>{var n,r,s;qi.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(o,a,i)=>Em(A,o,a);const t=A._zod.bag;A.format=(n=t.format)!=null?n:null,A.minLength=(r=t.minimum)!=null?r:null,A.maxLength=(s=t.maximum)!=null?s:null,A.regex=(...o)=>A.check(am(...o)),A.includes=(...o)=>A.check(um(...o)),A.startsWith=(...o)=>A.check(dm(...o)),A.endsWith=(...o)=>A.check(pm(...o)),A.min=(...o)=>A.check(js(...o)),A.max=(...o)=>A.check(cu(...o)),A.length=(...o)=>A.check(lu(...o)),A.nonempty=(...o)=>A.check(js(1,...o)),A.lowercase=o=>A.check(cm(o)),A.uppercase=o=>A.check(lm(o)),A.trim=()=>A.check(fm()),A.normalize=(...o)=>A.check(hm(...o)),A.toLowerCase=()=>A.check(gm()),A.toUpperCase=()=>A.check(Bm()),A.slugify=()=>A.check(wm())}),pC=_("ZodString",(A,e)=>{qi.init(A,e),fu.init(A,e),A.email=t=>A.check(Sw(hC,t)),A.url=t=>A.check(Rw(fC,t)),A.jwt=t=>A.check(jw(xC,t)),A.emoji=t=>A.check(Dw(gC,t)),A.guid=t=>A.check(su(gu,t)),A.uuid=t=>A.check(Iw(qs,t)),A.uuidv4=t=>A.check(Tw(qs,t)),A.uuidv6=t=>A.check(Hw(qs,t)),A.uuidv7=t=>A.check(Lw(qs,t)),A.nanoid=t=>A.check(Ow(BC,t)),A.guid=t=>A.check(su(gu,t)),A.cuid=t=>A.check(Pw(wC,t)),A.cuid2=t=>A.check(Mw(mC,t)),A.ulid=t=>A.check(Nw(CC,t)),A.base64=t=>A.check(Xw(FC,t)),A.base64url=t=>A.check(Ww(vC,t)),A.xid=t=>A.check(Kw(bC,t)),A.ksuid=t=>A.check($w(QC,t)),A.ipv4=t=>A.check(zw(yC,t)),A.ipv6=t=>A.check(Vw(UC,t)),A.cidrv4=t=>A.check(Gw(EC,t)),A.cidrv6=t=>A.check(Zw(kC,t)),A.e164=t=>A.check(Jw(_C,t)),A.datetime=t=>A.check(Xm(t)),A.date=t=>A.check(Jm(t)),A.time=t=>A.check(Ym(t)),A.duration=t=>A.check(AC(t))});function L(A){return xw(pC,A)}const kA=_("ZodStringFormat",(A,e)=>{bA.init(A,e),fu.init(A,e)}),hC=_("ZodEmail",(A,e)=>{RB.init(A,e),kA.init(A,e)}),gu=_("ZodGUID",(A,e)=>{HB.init(A,e),kA.init(A,e)}),qs=_("ZodUUID",(A,e)=>{LB.init(A,e),kA.init(A,e)}),fC=_("ZodURL",(A,e)=>{DB.init(A,e),kA.init(A,e)}),gC=_("ZodEmoji",(A,e)=>{OB.init(A,e),kA.init(A,e)}),BC=_("ZodNanoID",(A,e)=>{PB.init(A,e),kA.init(A,e)}),wC=_("ZodCUID",(A,e)=>{MB.init(A,e),kA.init(A,e)}),mC=_("ZodCUID2",(A,e)=>{NB.init(A,e),kA.init(A,e)}),CC=_("ZodULID",(A,e)=>{KB.init(A,e),kA.init(A,e)}),bC=_("ZodXID",(A,e)=>{$B.init(A,e),kA.init(A,e)}),QC=_("ZodKSUID",(A,e)=>{zB.init(A,e),kA.init(A,e)}),yC=_("ZodIPv4",(A,e)=>{WB.init(A,e),kA.init(A,e)}),UC=_("ZodIPv6",(A,e)=>{JB.init(A,e),kA.init(A,e)}),EC=_("ZodCIDRv4",(A,e)=>{jB.init(A,e),kA.init(A,e)}),kC=_("ZodCIDRv6",(A,e)=>{YB.init(A,e),kA.init(A,e)}),FC=_("ZodBase64",(A,e)=>{qB.init(A,e),kA.init(A,e)}),vC=_("ZodBase64URL",(A,e)=>{ew.init(A,e),kA.init(A,e)}),_C=_("ZodE164",(A,e)=>{tw.init(A,e),kA.init(A,e)}),xC=_("ZodJWT",(A,e)=>{rw.init(A,e),kA.init(A,e)}),Bu=_("ZodNumber",(A,e)=>{var n,r,s,o,a,i,c,u,h;Vl.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(f,g,m)=>km(A,f,g),A.gt=(f,g)=>A.check(iu(f,g)),A.gte=(f,g)=>A.check(ta(f,g)),A.min=(f,g)=>A.check(ta(f,g)),A.lt=(f,g)=>A.check(ou(f,g)),A.lte=(f,g)=>A.check(ea(f,g)),A.max=(f,g)=>A.check(ea(f,g)),A.int=f=>A.check(wu(f)),A.safe=f=>A.check(wu(f)),A.positive=f=>A.check(iu(0,f)),A.nonnegative=f=>A.check(ta(0,f)),A.negative=f=>A.check(ou(0,f)),A.nonpositive=f=>A.check(ea(0,f)),A.multipleOf=(f,g)=>A.check(au(f,g)),A.step=(f,g)=>A.check(au(f,g)),A.finite=()=>A;const t=A._zod.bag;A.minValue=(s=Math.max((n=t.minimum)!=null?n:Number.NEGATIVE_INFINITY,(r=t.exclusiveMinimum)!=null?r:Number.NEGATIVE_INFINITY))!=null?s:null,A.maxValue=(i=Math.min((o=t.maximum)!=null?o:Number.POSITIVE_INFINITY,(a=t.exclusiveMaximum)!=null?a:Number.POSITIVE_INFINITY))!=null?i:null,A.isInt=((c=t.format)!=null?c:"").includes("int")||Number.isSafeInteger((u=t.multipleOf)!=null?u:.5),A.isFinite=!0,A.format=(h=t.format)!=null?h:null});function at(A){return tm(Bu,A)}const SC=_("ZodNumberFormat",(A,e)=>{sw.init(A,e),Bu.init(A,e)});function wu(A){return nm(SC,A)}const IC=_("ZodBoolean",(A,e)=>{ow.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Fm(A,t,n)});function yA(A){return rm(IC,A)}const TC=_("ZodAny",(A,e)=>{iw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>_m()});function mu(){return sm(TC)}const HC=_("ZodUnknown",(A,e)=>{aw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>xm()});function Cu(){return om(HC)}const LC=_("ZodNever",(A,e)=>{cw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>vm(A,t,n)});function RC(A){return im(LC,A)}const DC=_("ZodArray",(A,e)=>{lw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Lm(A,t,n,r),A.element=e.element,A.min=(t,n)=>A.check(js(t,n)),A.nonempty=t=>A.check(js(1,t)),A.max=(t,n)=>A.check(cu(t,n)),A.length=(t,n)=>A.check(lu(t,n)),A.unwrap=()=>A.element});function Qe(A,e){return mm(DC,A,e)}const OC=_("ZodObject",(A,e)=>{dw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Rm(A,t,n,r),iA(A,"shape",()=>e.shape),A.keyof=()=>ke(Object.keys(A._zod.def.shape)),A.catchall=t=>A.clone(z(F({},A._zod.def),{catchall:t})),A.passthrough=()=>A.clone(z(F({},A._zod.def),{catchall:Cu()})),A.loose=()=>A.clone(z(F({},A._zod.def),{catchall:Cu()})),A.strict=()=>A.clone(z(F({},A._zod.def),{catchall:RC()})),A.strip=()=>A.clone(z(F({},A._zod.def),{catchall:void 0})),A.extend=t=>Ig(A,t),A.safeExtend=t=>Tg(A,t),A.merge=t=>Hg(A,t),A.pick=t=>xg(A,t),A.omit=t=>Sg(A,t),A.partial=(...t)=>Lg(yu,A,t[0]),A.required=(...t)=>Rg(ku,A,t[0])});function mA(A,e){const t=F({type:"object",shape:A!=null?A:{}},V(e));return new OC(t)}const bu=_("ZodUnion",(A,e)=>{Jl.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Dm(A,t,n,r),A.options=e.options});function PC(A,e){return new bu(F({type:"union",options:A},V(e)))}const MC=_("ZodDiscriminatedUnion",(A,e)=>{bu.init(A,e),pw.init(A,e)});function Qu(A,e,t){return new MC(F({type:"union",options:e,discriminator:A},V(t)))}const NC=_("ZodIntersection",(A,e)=>{hw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Om(A,t,n,r)});function KC(A,e){return new NC({type:"intersection",left:A,right:e})}const $C=_("ZodRecord",(A,e)=>{fw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Pm(A,t,n,r),A.keyType=e.keyType,A.valueType=e.valueType});function ct(A,e,t){return new $C(F({type:"record",keyType:A,valueType:e},V(t)))}const na=_("ZodEnum",(A,e)=>{gw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(n,r,s)=>Sm(A,n,r),A.enum=e.entries,A.options=Object.values(e.entries);const t=new Set(Object.keys(e.entries));A.extract=(n,r)=>{const s={};for(const o of n)if(t.has(o))s[o]=e.entries[o];else throw new Error(`Key ${o} not found in enum`);return new na(z(F(z(F({},e),{checks:[]}),V(r)),{entries:s}))},A.exclude=(n,r)=>{const s=F({},e.entries);for(const o of n)if(t.has(o))delete s[o];else throw new Error(`Key ${o} not found in enum`);return new na(z(F(z(F({},e),{checks:[]}),V(r)),{entries:s}))}});function ke(A,e){const t=Array.isArray(A)?Object.fromEntries(A.map(n=>[n,n])):A;return new na(F({type:"enum",entries:t},V(e)))}const zC=_("ZodLiteral",(A,e)=>{Bw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Im(A,t,n),A.values=new Set(e.values),Object.defineProperty(A,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function Fe(A,e){return new zC(F({type:"literal",values:Array.isArray(A)?A:[A]},V(e)))}const VC=_("ZodTransform",(A,e)=>{ww.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Hm(A,t),A._zod.parse=(t,n)=>{if(n.direction==="backward")throw new kl(A.constructor.name);t.addIssue=s=>{var o,a,i;if(typeof s=="string")t.issues.push(xr(s,t.value,e));else{const c=s;c.fatal&&(c.continue=!1),(o=c.code)!=null||(c.code="custom"),(a=c.input)!=null||(c.input=t.value),(i=c.inst)!=null||(c.inst=A),t.issues.push(xr(c))}};const r=e.transform(t.value,t);return r instanceof Promise?r.then(s=>(t.value=s,t)):(t.value=r,t)}});function GC(A){return new VC({type:"transform",transform:A})}const yu=_("ZodOptional",(A,e)=>{ql.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>hu(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function Uu(A){return new yu({type:"optional",innerType:A})}const ZC=_("ZodExactOptional",(A,e)=>{mw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>hu(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function XC(A){return new ZC({type:"optional",innerType:A})}const WC=_("ZodNullable",(A,e)=>{Cw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Mm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function Eu(A){return new WC({type:"nullable",innerType:A})}const JC=_("ZodDefault",(A,e)=>{bw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Km(A,t,n,r),A.unwrap=()=>A._zod.def.innerType,A.removeDefault=A.unwrap});function jC(A,e){return new JC({type:"default",innerType:A,get defaultValue(){return typeof e=="function"?e():Il(e)}})}const YC=_("ZodPrefault",(A,e)=>{Qw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>$m(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function qC(A,e){return new YC({type:"prefault",innerType:A,get defaultValue(){return typeof e=="function"?e():Il(e)}})}const ku=_("ZodNonOptional",(A,e)=>{yw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Nm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function Ab(A,e){return new ku(F({type:"nonoptional",innerType:A},V(e)))}const eb=_("ZodCatch",(A,e)=>{Uw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>zm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType,A.removeCatch=A.unwrap});function tb(A,e){return new eb({type:"catch",innerType:A,catchValue:typeof e=="function"?e:()=>e})}const nb=_("ZodPipe",(A,e)=>{Ew.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Vm(A,t,n,r),A.in=e.in,A.out=e.out});function Fu(A,e){return new nb({type:"pipe",in:A,out:e})}const rb=_("ZodReadonly",(A,e)=>{kw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Gm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function sb(A){return new rb({type:"readonly",innerType:A})}const ob=_("ZodCustom",(A,e)=>{Fw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Tm(A,t)});function ib(A,e={}){return Cm(ob,A,e)}function ab(A){return bm(A)}const cb=mA({name:L().min(1).max(100).optional(),command:L().min(1).max(500),args:Qe(L()).optional(),failOnError:yA().default(!0).optional(),timeout:at().int().min(1e3).max(3e5).default(3e4).optional(),workingDirectory:L().optional(),env:ct(L(),L()).optional(),runOnBackground:yA().optional(),agentTags:Qe(L()).optional()});mA({name:L(),command:L(),success:yA(),exitCode:at().optional(),stdout:L().optional(),stderr:L().optional(),error:L().optional(),duration:at(),failOnError:yA()});const sn=mA({path:L(),extraCommands:Qe(cb).optional(),id:L().uuid().optional(),rotationKey:L().optional(),usageStatus:ke(["free","in_use"]).optional(),agentTags:Qe(L()).optional()}),lb=Qu("operation",[sn.extend({operation:Fe("create"),content:L().optional(),contentPath:L().optional(),encoding:ke(["utf-8","base64"]).optional()}),sn.extend({operation:Fe("merge"),data:ct(L(),mu()),mergeStrategy:ke(["deep","shallow"]).optional(),arrayMergeStrategy:ke(["concat","replace"]).optional()}),sn.extend({operation:Fe("modify"),content:L().optional(),contentPath:L().optional(),createIfMissing:yA().optional()}),sn.extend({operation:Fe("delete"),ignoreIfMissing:yA().optional()}),sn.extend({operation:Fe("createDirectory"),contentPath:L().optional(),mode:at().optional(),ignoreIfExists:yA().optional()}),sn.extend({operation:Fe("download"),url:L().url(),headers:ct(L(),L()).optional(),timeout:at().min(1e3).max(3e5).optional()}),sn.extend({operation:Fe("gitClone"),gitUrl:L(),gitSecretKey:L().optional(),sourceBranch:L().optional(),targetBranch:L().optional(),originalBranch:L().optional(),defaultBranch:L().optional()})]);var FA=(A=>(A.DRAFT="draft",A.PENDING="pending",A.ASSIGNED="assigned",A.IN_PROGRESS="in_progress",A.WAITING_FOR_INPUT="waiting_for_input",A.WAITING_FOR_PLAN_APPROVAL="waiting_for_plan_approval",A.PLAN_APPROVED="plan_approved",A.PLAN_REJECTED="plan_rejected",A.COMPLETED="completed",A.FAILED="failed",A.CANCELLED="cancelled",A.RESULT_REJECTED="result_rejected",A))(FA||{});const ub=mA({type:ke(["json","file","regex"]).describe("Extraction method"),source:L().describe("Source to extract from (file path or stdout/stderr)"),schema:mA({}).passthrough().optional().describe("JSON schema for validation"),pattern:L().optional().describe("Regex pattern for extraction")}),db=mA({type:ke(["issue_update","bulk_issue_update","notification","webhook"]).describe("Hook type"),config:mu().describe("Hook-specific configuration")});mA({command:L().optional().describe("Legacy — unused in SDK mode"),args:Qe(L()).optional().describe("Legacy — unused in SDK mode"),env:ct(L(),L()).optional().describe("Environment variables"),workingDirectory:L().optional().describe("Working directory for command execution"),fileOperations:Qe(lb).optional().describe("File operations to perform during setup"),gitUrl:L().optional().describe("Git repository URL (populated from project)"),gitPrivateKey:L().optional().describe("Git SSH private key (populated from project)"),gitCommitMessage:L().optional().describe("Commit message for git operations"),resultExtraction:ub.optional().describe("Schema for extracting result data"),postExecutionHooks:Qe(db).optional().describe("Hooks to run after task completion"),executionMode:ke(["claudeAgentSdk","openaiAgentSdk","opencodeSdk","cursorSdk","codexSdk"]).optional().default("claudeAgentSdk").describe("Execution mode (default: claudeAgentSdk)"),executionPlan:Qu("executionMode",[mA({executionMode:Fe("claudeAgentSdk"),promptText:L(),sdkOptions:mA({model:L(),permissionMode:ke(["plan","acceptEdits","bypassPermissions","ask"]),settingSources:Qe(L()),allowDangerouslySkipPermissions:yA(),persistSession:yA(),streamSdkEvents:yA().optional(),allowedTools:Qe(L()).optional(),settings:mA({enabledPlugins:ct(L(),yA())}),env:ct(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:yA()}).optional()}),mA({executionMode:Fe("opencodeSdk"),promptText:L(),sdkOptions:mA({provider:L(),model:L(),allowedTools:Qe(L()).optional(),env:ct(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:yA()}).optional()}),mA({executionMode:Fe("openaiAgentSdk"),promptText:L(),sdkOptions:mA({model:L(),env:ct(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:yA()}).optional()}),mA({executionMode:Fe("codexSdk"),promptText:L(),sdkOptions:mA({model:L().optional(),sandboxMode:ke(["read-only","workspace-write","danger-full-access"]).optional(),approvalPolicy:ke(["never","on-request","on-failure","untrusted"]).optional(),env:ct(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:yA()}).optional()}),mA({executionMode:Fe("cursorSdk"),promptText:L(),sdkOptions:mA({model:L(),env:ct(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:yA()}).optional()})]).optional().describe("Backend-built prompt + resolved SDK options for this phase"),planEnabled:yA().optional().default(!1).describe("Enable planning phase (computed at runtime for agent)"),planContent:L().optional().describe("Final approved plan content"),planApproved:yA().optional().describe("Plan approval status"),planApprovedAt:L().optional().describe("ISO timestamp of approval"),planRejected:yA().optional().describe("Plan rejection flag"),planRejectionFeedback:L().optional().describe("User rejection feedback"),rejectedPlanContent:L().optional().describe("Previously rejected plan content"),planCompletedAt:L().optional().describe("ISO timestamp when plan was generated"),planRejectedAt:L().optional().describe("ISO timestamp when plan was rejected"),resultRejectionFeedback:L().optional().describe("User feedback when rejecting the result (most recent)"),resultRejectedAt:L().optional().describe("ISO timestamp when result was rejected (most recent)"),resultRejectionHistory:Qe(mA({feedback:L(),rejectedAt:L()})).optional().describe("All rejection messages in chronological order"),notificationChannelPlanMessageId:at().optional(),notificationChannelPlanMessageSentAt:L().optional(),notificationChannelCompletedMessageId:at().optional(),notificationChannelFailedMessageId:at().optional(),streamSdkEvents:yA().optional().describe("Stream SDK messages (thinking, tool calls, etc.) as sdk_event chunks"),originalTaskSummary:L().optional().describe("Summary from the original task run (passed to retry for historical context)"),planWasApproved:yA().optional().describe("True when planApproved was cleared for rePlan=true retry — indicates the plan had been approved before"),planComments:Qe(mA({id:L(),selectedText:L(),startOffset:at(),endOffset:at(),commentText:L(),createdAt:L()})).optional().describe("Inline review comments attached to the plan"),hasAiConfigSecrets:yA().optional().describe("True when AI Config has secret-backed env vars; agent must fetch resolved values via /tasks/:id/resolve-secrets"),hasCredentials:yA().optional().describe("True when the task has credentials attached; agent must fetch resolved values via /tasks/:id/resolve-credentials"),mcpServersMode:ke(["all","ignoreExistingMcpServers"]).optional().describe("MCP server strategy for this run; 'ignoreExistingMcpServers' overrides the existing .mcp.json with only the template's configured servers plus the agent-platform server"),enableBrowserTools:yA().optional().describe("When true, the MCP server registers browser_interact and browser_get_context (browser_automate tasks only)")}),FA.DRAFT+"",FA.CANCELLED,FA.PENDING+"",FA.CANCELLED,FA.ASSIGNED+"",FA.CANCELLED,FA.IN_PROGRESS+"",FA.CANCELLED,FA.FAILED,FA.WAITING_FOR_INPUT+"",FA.CANCELLED,FA.WAITING_FOR_PLAN_APPROVAL+"",FA.CANCELLED,FA.PLAN_APPROVED+"",FA.CANCELLED,FA.PLAN_REJECTED+"",FA.CANCELLED,FA.COMPLETED+"",FA.RESULT_REJECTED+"",FA.CANCELLED,FA.FAILED+"",FA.CANCELLED+"";function vu(A){let e=(A||"").trim().toLowerCase();const t=e.indexOf("@");return t>=0&&(e=e.slice(t+1)),e=e.split("/")[0].split(":")[0],e.startsWith("www.")&&(e=e.slice(4)),e}function pb(A,e){const t=vu(A),n=(e||"").trim().toLowerCase();if(!t||!n)return!1;if(n.startsWith("*.")){const r=n.slice(2);return t===r||t.endsWith("."+r)}return t===vu(n)}function _u(A,e){var s;let t;try{const o=new URL(A);if(o.protocol!=="http:"&&o.protocol!=="https:")return null;t=o.hostname}catch(o){return null}let n=null,r=-1;for(const o of e)for(const a of(s=o.domains)!=null?s:[])pb(t,a)&&a.length>r&&(r=a.length,n=o.id);return n}class xu extends Error{}function ra(A){return I(this,null,function*(){if(!A.ok){const e=yield A.json().catch(()=>({message:`HTTP ${A.status}`})),t=e.message||e.error||`HTTP ${A.status}`;throw A.status===401?new xu(t):new Error(t)}return A.json()})}let Su=3e4;function hb(A){Number.isFinite(A)&&A>0&&(Su=A)}function Ir(n){return I(this,arguments,function*(A,e={},t=Su){const r=new AbortController,s=setTimeout(()=>r.abort(),t);try{return yield fetch(A,z(F({},e),{credentials:"omit",signal:r.signal}))}catch(o){throw o instanceof DOMException&&o.name==="AbortError"?new Error(`Request timed out after ${Math.round(t/1e3)}s. Please check your connection and try again.`):o}finally{clearTimeout(s)}})}function JA(A,e,t,n){return I(this,null,function*(){const s=`${A.backendUrl.replace(/\/+$/,"")}/api${t}`,o=yield Ir(s,{method:e,headers:{"Content-Type":"application/json",Authorization:`Bearer ${A.token}`},body:n!==void 0?JSON.stringify(n):void 0});return ra(o)})}function fb(A,e,t){return I(this,null,function*(){const n=A.backendUrl.replace(/\/+$/,""),r=new FormData;r.append("file",e,t);const s=yield Ir(`${n}/api/files/upload`,{method:"POST",headers:{Authorization:`Bearer ${A.token}`},body:r});return ra(s)})}function gb(A,e){return I(this,null,function*(){return JA(A,"GET",`/projects/by-key/${encodeURIComponent(e)}`)})}const Bb=["project","note","ctx"];function wb(A){var t,n;const e=Bb.filter(r=>A[r]===void 0||A[r]===null);if(e.length>0)throw new Error(`createTask: missing required field(s): ${e.join(", ")}`);if(!((t=A.project)!=null&&t.id)&&!((n=A.project)!=null&&n.key))throw new Error("createTask: project must have an id or key")}function sa(A,e){return I(this,null,function*(){var h,f,g,m,b,E;wb(e);const{project:t,note:n,ctx:r,advancedOpts:s,titleOverride:o,titleInstruction:a,allowSubmit:i,extraFileIds:c,type:u=Gi}=e;return JA(A,"POST","/tasks",z(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(z(F({type:u,title:o||n.slice(0,120)||r.pageTitle||"Browser capture",titleInstruction:a!=null?a:n},t.id?{projectId:t.id}:{projectKey:t.key}),{autoAssign:!0}),s!=null&&s.claudeTemplateId?{claudeTemplateId:s.claudeTemplateId}:{}),(s==null?void 0:s.quickMode)!==void 0?{quickMode:s.quickMode}:{}),(s==null?void 0:s.modelOverride)!=null?{modelOverride:s.modelOverride}:{}),(s==null?void 0:s.claudeProfileId)!=null?{claudeProfileId:s.claudeProfileId}:{}),(s==null?void 0:s.effort)!=null?{effort:s.effort}:{}),(s==null?void 0:s.executionMode)!=null?{executionMode:s.executionMode}:{}),(h=s==null?void 0:s.selectedPluginIds)!=null&&h.length?{selectedPluginIds:s.selectedPluginIds}:{}),(f=s==null?void 0:s.selectedSkillIds)!=null&&f.length?{selectedSkillIds:s.selectedSkillIds}:{}),(g=s==null?void 0:s.selectedPluginSkillIds)!=null&&g.length?{selectedPluginSkillIds:s.selectedPluginSkillIds}:{}),(m=s==null?void 0:s.selectedMcpServerIds)!=null&&m.length?{selectedMcpServerIds:s.selectedMcpServerIds}:{}),(b=s==null?void 0:s.selectedSlashCommandIds)!=null&&b.length?{selectedSlashCommandIds:s.selectedSlashCommandIds}:{}),(E=s==null?void 0:s.selectedRemoteContextProviderIds)!=null&&E.length?{selectedRemoteContextProviderIds:s.selectedRemoteContextProviderIds}:{}),s!=null&&s.instructionTemplateId?{instructionTemplateId:s.instructionTemplateId}:{}),s!=null&&s.templateParamValues?{templateParamValues:s.templateParamValues}:{}),s!=null&&s.defaultParamValues?{defaultParamValues:s.defaultParamValues}:{}),{metadata:F(F({type:u,note:n,source:"web-sdk",pageUrl:r.pageUrl,pageTitle:r.pageTitle,elementText:r.elementText,cssSelector:r.cssSelector,elementOuterHtml:r.elementOuterHtml,ancestry:r.ancestry,elementRole:r.elementRole,elementAriaLabel:r.elementAriaLabel,enclosingSection:r.enclosingSection,description:r.description,canonicalUrl:r.canonicalUrl,lang:r.lang,ogTitle:r.ogTitle,ogDescription:r.ogDescription,ogType:r.ogType,ogSiteName:r.ogSiteName,viewportWidth:r.viewportWidth,viewportHeight:r.viewportHeight,scrollX:r.scrollX,scrollY:r.scrollY,selectionText:r.selectionText,capturedAt:r.capturedAt,interactionSteps:r.interactionSteps},i!==void 0?{allowSubmit:i}:{}),c!=null&&c.length?{extraFileIds:c}:{})}))})}function Iu(A,e){return I(this,null,function*(){return sa(A,z(F({},e),{type:El}))})}function Tu(A,e,t,n,r){return I(this,null,function*(){var s;return JA(A,"POST","/planning-sessions",F(F(F(F(F(z(F({},e.id?{projectId:e.id}:{projectKey:e.key}),{instruction:t,quickMode:(s=n==null?void 0:n.quickMode)!=null?s:!1}),n!=null&&n.claudeTemplateId?{claudeTemplateId:n.claudeTemplateId}:{}),n!=null&&n.instructionTemplateId?{instructionTemplateId:n.instructionTemplateId}:{}),n!=null&&n.templateParamValues?{templateParamValues:n.templateParamValues}:{}),n!=null&&n.defaultParamValues?{defaultParamValues:n.defaultParamValues}:{}),r!=null&&r.length?{fileIds:r}:{}))})}function mb(A,e){return I(this,null,function*(){const t=e?`?projectId=${encodeURIComponent(e)}`:"";return JA(A,"GET",`/claude-templates${t}`)})}function Cb(A,e,t,n,r){return I(this,null,function*(){const s=new URLSearchParams;e&&s.set("projectId",e),t&&s.set("entityType",t),n&&s.set("taskType",n),r&&s.set("scenario",r);const o=s.toString()?`?${s.toString()}`:"";return JA(A,"GET",`/instruction-composer/context${o}`)})}function Hu(A,e){return I(this,null,function*(){return JA(A,"GET",`/tasks/${e}`)})}function bb(A,e){return I(this,null,function*(){return JA(A,"GET",`/planning-sessions/${e}`)})}function Lu(A){return I(this,null,function*(){return JA(A,"GET","/projects")})}function Qb(A){return I(this,null,function*(){return(yield JA(A,"GET","/tenants/current")).membership})}function Ru(A,e){if(!A||A.includes("tenant:*")||A.includes(e))return!0;const t=e.split(":")[0];return A.includes(`${t}:*`)}function oa(A,e,t){return I(this,null,function*(){const r=`${A.backendUrl.replace(/\/+$/,"")}/api/auth/tokens/exchange-code`,s=yield Ir(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,origin:t})});return ra(s)})}function yb(A,e){return I(this,null,function*(){return JA(A,"GET",`/tasks/${e}/browser-commands/pending`)})}function Ub(A,e,t,n,r){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/browser-commands/${t}/result`,{status:n,message:r})})}function Eb(A,e){return I(this,null,function*(){return JA(A,"GET",`/tasks/${e}/chunks`)})}function kb(A,e,t){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/instructions`,{content:t})})}function Fb(A,e){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/cancel`)})}function vb(A,e){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/approve-result`)})}function _b(A,e,t){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/reject-result`,{feedback:t})})}function Ao(A,e){return I(this,null,function*(){return JA(A,"GET",`/tasks/${e}/interactions?filter=unanswered`)})}function Du(A,e,t,n){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/interactions/${t}/answer`,{answer:n})})}function xb(A,e,t){const n=!!(e.backendUrl&&e.token),r=document.createElement("div");r.className="ap-sdk-advanced",r.innerHTML=`
1626
1626
  <details class="ap-sdk-advanced__details">
1627
1627
  <summary class="ap-sdk-advanced__summary">Advanced options</summary>
1628
1628
  <div class="ap-sdk-advanced__body">
@@ -1641,17 +1641,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1641
1641
  </div>
1642
1642
  </div>
1643
1643
  </details>
1644
- `,A.appendChild(r);const s=r.querySelector("[data-ap-adv-template-field]"),o=r.querySelector("[data-ap-template]"),a=r.querySelector("[data-ap-quickmode]");let i=[];if(n){const l={backendUrl:e.backendUrl,token:e.token};ub(l,t!=null?t:void 0).then(u=>{var f,g;if(i=u,u.length===0){s.style.display="none";return}const h=(f=u.find(m=>m.isDefault&&m.scope==="project"))!=null?f:u.find(m=>m.isDefault&&m.scope==="global");o.innerHTML='<option value="">None (use default)</option>'+u.map(m=>`<option value="${Qb(m.id)}">${yb(m.name)}${m.isDefault?" (Default)":""}</option>`).join(""),o.value=(g=h==null?void 0:h.id)!=null?g:""}).catch(()=>{s.style.display="none"})}else{o.innerHTML='<option value="">None</option>',o.disabled=!0;const l=document.createElement("span");l.className="ap-sdk-advanced__hint",l.textContent="Connect credentials to enable template selection",s.appendChild(l)}return{getOptions(){var h,f,g,m,Q,U,E,v;const l=o.value||null,u=l?(f=(h=i.find(F=>F.id===l))==null?void 0:h.templateData)!=null?f:{}:{};return k(k(k(k(k(k(k(k(k(k({claudeTemplateId:l,quickMode:a.checked},u.modelOverride!=null?{modelOverride:u.modelOverride}:{}),u.claudeProfileId!=null?{claudeProfileId:u.claudeProfileId}:{}),u.effort!=null?{effort:u.effort}:{}),u.executionMode!=null?{executionMode:u.executionMode}:{}),(g=u.selectedPluginIds)!=null&&g.length?{selectedPluginIds:u.selectedPluginIds}:{}),(m=u.selectedSkillIds)!=null&&m.length?{selectedSkillIds:u.selectedSkillIds}:{}),(Q=u.selectedPluginSkillIds)!=null&&Q.length?{selectedPluginSkillIds:u.selectedPluginSkillIds}:{}),(U=u.selectedMcpServerIds)!=null&&U.length?{selectedMcpServerIds:u.selectedMcpServerIds}:{}),(E=u.selectedSlashCommandIds)!=null&&E.length?{selectedSlashCommandIds:u.selectedSlashCommandIds}:{}),(v=u.selectedRemoteContextProviderIds)!=null&&v.length?{selectedRemoteContextProviderIds:u.selectedRemoteContextProviderIds}:{})}}}function Qb(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function yb(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const ea="shared",Iu="ap-sdk-panel-size:",Tu=280,Hu=200;function Ub(A){try{const e=sessionStorage.getItem(Iu+A);if(!e)return null;const t=JSON.parse(e);return typeof(t==null?void 0:t.width)=="number"&&typeof(t==null?void 0:t.height)=="number"?t:null}catch(e){return null}}function Eb(A,e){try{sessionStorage.setItem(Iu+A,JSON.stringify(e))}catch(t){}}function Ws(A,e,t){return Math.min(Math.max(A,e),t)}function Lu(){return window.innerWidth-32}function Du(){return window.innerHeight-64}function ta(A,e){const t=Ub(e);t&&(A.style.width=`${Ws(t.width,Tu,Lu())}px`,A.style.height=`${Ws(t.height,Hu,Du())}px`);const n=document.createElement("div");n.className="ap-sdk-resize-handle",n.setAttribute("data-ap-sdk","1"),A.appendChild(n);let r=!1,s=0,o=0,a=0,i=0,l=0,u=0;const h=m=>{r&&(l=Ws(a+(m.clientX-s),Tu,Lu()),u=Ws(i+(m.clientY-o),Hu,Du()),A.style.width=`${l}px`,A.style.height=`${u}px`)},f=()=>{r&&(r=!1,document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f),Eb(e,{width:l,height:u}))},g=m=>{const Q=m.target;if(!(Q===n||n.contains(Q)))return;m.preventDefault(),m.stopPropagation(),r=!0,s=m.clientX,o=m.clientY;const U=A.getBoundingClientRect();a=U.width,i=U.height,l=a,u=i,document.addEventListener("pointermove",h),document.addEventListener("pointerup",f)};return window.addEventListener("pointerdown",g,{capture:!0}),()=>{window.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f)}}const kr="shared",Ru="ap-sdk-panel-pos:";function Fb(A){try{const e=sessionStorage.getItem(Ru+A);if(!e)return null;const t=JSON.parse(e);return typeof(t==null?void 0:t.left)=="number"&&typeof(t==null?void 0:t.top)=="number"?t:null}catch(e){return null}}function kb(A,e){try{sessionStorage.setItem(Ru+A,JSON.stringify(e))}catch(t){}}function Ou(A,e,t){return Math.min(Math.max(A,e),t)}function vr(A,e){const t=(m,Q)=>{const U=Math.max(0,window.innerWidth-A.offsetWidth),E=Math.max(0,window.innerHeight-A.offsetHeight);A.style.left=`${Ou(m,0,U)}px`,A.style.top=`${Ou(Q,0,E)}px`,A.style.right="auto",A.style.transform="none"},n=Fb(e);n&&t(n.left,n.top);let r=!1,s=0,o=0,a=0,i=0,l=0,u=0;const h=m=>{r&&(l=a+(m.clientX-s),u=i+(m.clientY-o),t(l,u))},f=()=>{r&&(r=!1,document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f),kb(e,{left:l,top:u}))},g=m=>{const Q=m.target;if(!(Q===A||A.contains(Q))||!Q.closest(".ap-sdk-panel__header")||Q.closest("button, a, input, select, textarea"))return;m.preventDefault(),r=!0,s=m.clientX,o=m.clientY;const U=A.getBoundingClientRect();a=U.left,i=U.top,l=a,u=i,document.addEventListener("pointermove",h),document.addEventListener("pointerup",f)};return window.addEventListener("pointerdown",g,{capture:!0}),()=>{window.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f)}}const Js="ap-sdk-panel-draft";function Mu(){var A,e;try{const t=localStorage.getItem(Js);if(!t)return null;const n=JSON.parse(t);return!Array.isArray(n.completedPicks)||!n.currentCtx||typeof n.currentCtx!="object"?null:{captureType:(A=n.captureType)!=null?A:"task",note:(e=n.note)!=null?e:"",completedPicks:n.completedPicks,allowSubmit:!!n.allowSubmit,currentCtx:n.currentCtx}}catch(t){return null}}function vb(A){try{if(!A.note&&A.completedPicks.length===0&&!A.allowSubmit){localStorage.removeItem(Js);return}localStorage.setItem(Js,JSON.stringify(A))}catch(e){}}function na(){try{localStorage.removeItem(Js)}catch(A){}}/*!
1644
+ `,A.appendChild(r);const s=r.querySelector("[data-ap-adv-template-field]"),o=r.querySelector("[data-ap-template]"),a=r.querySelector("[data-ap-quickmode]");let i=[];if(n){const c={backendUrl:e.backendUrl,token:e.token};mb(c,t!=null?t:void 0).then(u=>{var f,g;if(i=u,u.length===0){s.style.display="none";return}const h=(f=u.find(m=>m.isDefault&&m.scope==="project"))!=null?f:u.find(m=>m.isDefault&&m.scope==="global");o.innerHTML='<option value="">None (use default)</option>'+u.map(m=>`<option value="${Sb(m.id)}">${Ib(m.name)}${m.isDefault?" (Default)":""}</option>`).join(""),o.value=(g=h==null?void 0:h.id)!=null?g:""}).catch(()=>{s.style.display="none"})}else{o.innerHTML='<option value="">None</option>',o.disabled=!0;const c=document.createElement("span");c.className="ap-sdk-advanced__hint",c.textContent="Connect credentials to enable template selection",s.appendChild(c)}return{getOptions(){var h,f,g,m,b,E,k,v;const c=o.value||null,u=c?(f=(h=i.find(y=>y.id===c))==null?void 0:h.templateData)!=null?f:{}:{};return F(F(F(F(F(F(F(F(F(F({claudeTemplateId:c,quickMode:a.checked},u.modelOverride!=null?{modelOverride:u.modelOverride}:{}),u.claudeProfileId!=null?{claudeProfileId:u.claudeProfileId}:{}),u.effort!=null?{effort:u.effort}:{}),u.executionMode!=null?{executionMode:u.executionMode}:{}),(g=u.selectedPluginIds)!=null&&g.length?{selectedPluginIds:u.selectedPluginIds}:{}),(m=u.selectedSkillIds)!=null&&m.length?{selectedSkillIds:u.selectedSkillIds}:{}),(b=u.selectedPluginSkillIds)!=null&&b.length?{selectedPluginSkillIds:u.selectedPluginSkillIds}:{}),(E=u.selectedMcpServerIds)!=null&&E.length?{selectedMcpServerIds:u.selectedMcpServerIds}:{}),(k=u.selectedSlashCommandIds)!=null&&k.length?{selectedSlashCommandIds:u.selectedSlashCommandIds}:{}),(v=u.selectedRemoteContextProviderIds)!=null&&v.length?{selectedRemoteContextProviderIds:u.selectedRemoteContextProviderIds}:{})}}}function Sb(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ib(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function Tb(A,e){return A.type==="boolean"?!1:A.type==="multiselect"?!Array.isArray(e)||e.length===0:e==null?!0:A.type==="number"?e===""||Number.isNaN(Number(e)):String(e).trim()===""}function Hb(A,e){return A.some(t=>{var n;return t.required&&Tb(t,(n=e[t.key])!=null?n:t.defaultValue)})}function Ou(A,e,t,n,r){var v;if((v=A.parentElement)==null||v.querySelectorAll(".ap-sdk-instruction-composer--before").forEach(y=>y.remove()),A.style.display="",!!!(e.backendUrl&&e.token))return{getSelection:()=>({}),isValid:()=>!0};const o={backendUrl:e.backendUrl,token:e.token},a=document.createElement("div");a.className="ap-sdk-instruction-composer ap-sdk-instruction-composer--before",a.innerHTML=`
1645
+ <div class="ap-sdk-panel__field" data-ap-instruction-template-field>
1646
+ <label class="ap-sdk-panel__label" for="ap-sdk-instruction-template">Instruction Template</label>
1647
+ <select id="ap-sdk-instruction-template" class="ap-sdk-panel__input" data-ap-instruction-template>
1648
+ <option value="">Loading…</option>
1649
+ </select>
1650
+ </div>
1651
+ <div class="ap-sdk-panel__field" data-ap-template-params></div>
1652
+ <div class="ap-sdk-panel__field" data-ap-default-params></div>
1653
+ `,A.parentElement.insertBefore(a,A);const c=a.querySelector("[data-ap-instruction-template-field]"),u=a.querySelector("[data-ap-instruction-template]"),h=a.querySelector("[data-ap-template-params]"),f=a.querySelector("[data-ap-default-params]");let g=[],m=[];const b=y=>y==="GLOBAL"?"Global":y==="PROJECT"?"This project":"My templates",E=()=>g.find(y=>y.id===u.value),k=()=>{const y=E();h.innerHTML="",y?(Pu(h,y.parameterSchema),A.style.display="none"):A.style.display="",r==null||r()};return u.addEventListener("change",k),h.addEventListener("input",()=>r==null?void 0:r()),h.addEventListener("change",()=>r==null?void 0:r()),Cb(o,t!=null?t:void 0,n==null?void 0:n.entityType,n==null?void 0:n.taskType,n==null?void 0:n.scenario).then(y=>{g=y.templates,m=y.defaultFields,u.innerHTML='<option value="">No template (free text)</option>'+g.map(U=>`<option value="${Ne(U.id)}">${Kt(U.name)} (${Kt(b(U.scope))})</option>`).join(""),m.length>0?Pu(f,m):f.style.display="none"}).catch(()=>{c.style.display="none",f.style.display="none"}),{getSelection(){const y=u.value||void 0;return{instructionTemplateId:y,templateParamValues:y?ia(h):void 0,defaultParamValues:m.length>0?ia(f):void 0}},isValid(){const y=E();return y?!Hb(y.parameterSchema,ia(h)):!0}}}function Pu(A,e){A.innerHTML=e.map(t=>{var o,a;const n=`<label class="ap-sdk-panel__label">${Kt(t.label)}${t.required?" *":""}</label>`,r=t.helpText?`<span class="ap-sdk-advanced__hint">${Kt(t.helpText)}</span>`:"";let s;switch(t.type){case"textarea":s=`<textarea class="ap-sdk-panel__textarea" rows="2" data-ap-field-key="${Ne(t.key)}" data-ap-field-type="textarea">${Kt(typeof t.defaultValue=="string"?t.defaultValue:"")}</textarea>`;break;case"number":s=`<input type="number" class="ap-sdk-panel__input" data-ap-field-key="${Ne(t.key)}" data-ap-field-type="number" value="${Ne(t.defaultValue!=null?String(t.defaultValue):"")}" />`;break;case"boolean":s=`<label class="ap-sdk-advanced__checkbox-label"><input type="checkbox" data-ap-field-key="${Ne(t.key)}" data-ap-field-type="boolean" ${t.defaultValue?"checked":""} /> ${Kt(t.label)}</label>`;break;case"select":s=`<select class="ap-sdk-panel__input" data-ap-field-key="${Ne(t.key)}" data-ap-field-type="select">${((o=t.options)!=null?o:[]).map(i=>`<option value="${Ne(i.value)}" ${t.defaultValue===i.value?"selected":""}>${Kt(i.label)}</option>`).join("")}</select>`;break;case"multiselect":{const i=Array.isArray(t.defaultValue)?t.defaultValue:[];s=`<select multiple class="ap-sdk-panel__input" data-ap-field-key="${Ne(t.key)}" data-ap-field-type="multiselect">${((a=t.options)!=null?a:[]).map(c=>`<option value="${Ne(c.value)}" ${i.includes(c.value)?"selected":""}>${Kt(c.label)}</option>`).join("")}</select>`;break}case"text":default:s=`<input type="text" class="ap-sdk-panel__input" data-ap-field-key="${Ne(t.key)}" data-ap-field-type="text" value="${Ne(typeof t.defaultValue=="string"?t.defaultValue:"")}" />`;break}return t.type==="boolean"?`<div class="ap-sdk-panel__field">${s}${r}</div>`:`<div class="ap-sdk-panel__field">${n}${s}${r}</div>`}).join("")}function ia(A){const e={};return A.querySelectorAll("[data-ap-field-key]").forEach(t=>{const n=t.getAttribute("data-ap-field-key"),r=t.getAttribute("data-ap-field-type");r==="boolean"?e[n]=t.checked:r==="multiselect"?e[n]=Array.from(t.selectedOptions).map(s=>s.value):r==="number"?e[n]=Number(t.value):e[n]=t.value}),e}function Ne(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Kt(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const aa="shared",Mu="ap-sdk-panel-size:",Nu=280,Ku=200;function Lb(A){try{const e=sessionStorage.getItem(Mu+A);if(!e)return null;const t=JSON.parse(e);return typeof(t==null?void 0:t.width)=="number"&&typeof(t==null?void 0:t.height)=="number"?t:null}catch(e){return null}}function Rb(A,e){try{sessionStorage.setItem(Mu+A,JSON.stringify(e))}catch(t){}}function eo(A,e,t){return Math.min(Math.max(A,e),t)}function $u(){return window.innerWidth-32}function zu(){return window.innerHeight-64}function ca(A,e){const t=Lb(e);t&&(A.style.width=`${eo(t.width,Nu,$u())}px`,A.style.height=`${eo(t.height,Ku,zu())}px`);const n=document.createElement("div");n.className="ap-sdk-resize-handle",n.setAttribute("data-ap-sdk","1"),A.appendChild(n);let r=!1,s=0,o=0,a=0,i=0,c=0,u=0;const h=m=>{r&&(c=eo(a+(m.clientX-s),Nu,$u()),u=eo(i+(m.clientY-o),Ku,zu()),A.style.width=`${c}px`,A.style.height=`${u}px`)},f=()=>{r&&(r=!1,document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f),Rb(e,{width:c,height:u}))},g=m=>{const b=m.target;if(!(b===n||n.contains(b)))return;m.preventDefault(),m.stopPropagation(),r=!0,s=m.clientX,o=m.clientY;const E=A.getBoundingClientRect();a=E.width,i=E.height,c=a,u=i,document.addEventListener("pointermove",h),document.addEventListener("pointerup",f)};return window.addEventListener("pointerdown",g,{capture:!0}),()=>{window.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f)}}const Tr="shared",Vu="ap-sdk-panel-pos:";function Db(A){try{const e=sessionStorage.getItem(Vu+A);if(!e)return null;const t=JSON.parse(e);return typeof(t==null?void 0:t.left)=="number"&&typeof(t==null?void 0:t.top)=="number"?t:null}catch(e){return null}}function Ob(A,e){try{sessionStorage.setItem(Vu+A,JSON.stringify(e))}catch(t){}}function Gu(A,e,t){return Math.min(Math.max(A,e),t)}function Hr(A,e){const t=(m,b)=>{const E=Math.max(0,window.innerWidth-A.offsetWidth),k=Math.max(0,window.innerHeight-A.offsetHeight);A.style.left=`${Gu(m,0,E)}px`,A.style.top=`${Gu(b,0,k)}px`,A.style.right="auto",A.style.transform="none"},n=Db(e);n&&t(n.left,n.top);let r=!1,s=0,o=0,a=0,i=0,c=0,u=0;const h=m=>{r&&(c=a+(m.clientX-s),u=i+(m.clientY-o),t(c,u))},f=()=>{r&&(r=!1,document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f),Ob(e,{left:c,top:u}))},g=m=>{const b=m.target;if(!(b===A||A.contains(b))||!b.closest(".ap-sdk-panel__header")||b.closest("button, a, input, select, textarea"))return;m.preventDefault(),r=!0,s=m.clientX,o=m.clientY;const E=A.getBoundingClientRect();a=E.left,i=E.top,c=a,u=i,document.addEventListener("pointermove",h),document.addEventListener("pointerup",f)};return window.addEventListener("pointerdown",g,{capture:!0}),()=>{window.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f)}}const to="ap-sdk-panel-draft";function Zu(){var A,e;try{const t=localStorage.getItem(to);if(!t)return null;const n=JSON.parse(t);return!Array.isArray(n.completedPicks)||!n.currentCtx||typeof n.currentCtx!="object"?null:{captureType:(A=n.captureType)!=null?A:"task",note:(e=n.note)!=null?e:"",completedPicks:n.completedPicks,allowSubmit:!!n.allowSubmit,currentCtx:n.currentCtx}}catch(t){return null}}function Pb(A){try{if(!A.note&&A.completedPicks.length===0&&!A.allowSubmit){localStorage.removeItem(to);return}localStorage.setItem(to,JSON.stringify(A))}catch(e){}}function la(){try{localStorage.removeItem(to)}catch(A){}}/*!
1645
1654
  * html2canvas-pro 2.4.3 <https://yorickshan.github.io/html2canvas-pro/>
1646
1655
  * Copyright (c) 2024-present yorickshan and html2canvas-pro contributors
1647
1656
  * Released under MIT License
1648
- */var _b=class el{constructor(e={}){const t=e.window||(typeof window!="undefined"?window:void 0);if(!t)throw new Error("Window object is required but not available");this.window=t,this.cspNonce=e.cspNonce,this.cache=e.cache}static fromElement(e,t={}){const n=e.ownerDocument;if(!n)throw new Error("Element is not attached to a document");const r=n.defaultView;if(!r)throw new Error("Document is not attached to a window");return new el(k({window:r},t))}clone(e={}){var t,n;return new el({window:e.window||this.window,cspNonce:(t=e.cspNonce)!=null?t:this.cspNonce,cache:(n=e.cache)!=null?n:this.cache})}},xb=class{constructor(A={}){this.config=k({maxImageTimeout:3e5,allowDataUrls:!0},A)}validateUrl(A,e="general"){if(!A||typeof A!="string")return{valid:!1,error:"URL must be a non-empty string"};if(A.startsWith("data:"))return this.config.allowDataUrls?{valid:!0,sanitized:A}:{valid:!1,error:"Data URLs are not allowed"};if(A.startsWith("blob:"))return{valid:!0,sanitized:A};try{const t=new URL(A);if(!["http:","https:"].includes(t.protocol))return{valid:!1,error:`Protocol ${t.protocol} is not allowed. Only http and https are permitted.`};if(e==="proxy"&&this.config.allowedProxyDomains&&this.config.allowedProxyDomains.length>0){const n=t.hostname.toLowerCase();if(!this.config.allowedProxyDomains.some(r=>{const s=r.toLowerCase();return n===s||n.endsWith("."+s)}))return{valid:!1,error:`Proxy domain ${t.hostname} is not in the allowed list`}}if(e==="proxy"){if(!this.config.allowLocalhostProxy){const n=t.hostname.toLowerCase();if(n==="localhost"||n==="127.0.0.1"||n==="::1")return{valid:!1,error:"Localhost is not allowed for proxy URLs"};if(this.isPrivateIP(n))return{valid:!1,error:"Private IP addresses are not allowed for proxy URLs"};if(n.startsWith("169.254.")||n.startsWith("fe80:"))return{valid:!1,error:"Link-local addresses are not allowed for proxy URLs"}}return{valid:!0,sanitized:A,requiresRuntimeCheck:!0}}return{valid:!0,sanitized:A}}catch(t){return{valid:!1,error:`Invalid URL format: ${t instanceof Error?t.message:"Unknown error"}`}}}isPrivateIP(A){return[/^0\./,/^10\./,/^100\.(6[4-9]|[7-9][0-9]|1[0-1][0-9]|12[0-7])\./,/^127\./,/^169\.254\./,/^172\.(1[6-9]|2[0-9]|3[0-1])\./,/^192\.0\.0\./,/^192\.0\.2\./,/^192\.168\./,/^198\.(1[8-9])\./,/^198\.51\.100\./,/^203\.0\.113\./,/^2(2[4-9]|3[0-9])\./,/^24[0-9]\./,/^255\.255\.255\.255$/].some(e=>e.test(A))?!0:A.includes(":")?this.isPrivateIPv6(A):!1}isPrivateIPv6(A){const e=A.toLowerCase().trim().replace(/^\[|\]$/g,"").split("%")[0];if(/^(0:){7}1$/.test(e)||e==="::1"||/^(0:){7}0$/.test(e)||e==="::")return!0;const t=this.expandIPv6(e);if(!t)return this.isPrivateIPv6Prefix(e);const n=parseInt(t.substring(0,2),16);if(n>=252&&n<=253)return!0;if(n===254){const r=parseInt(t.substring(2,4),16);if(r>=128&&r<=191)return!0}return n===255}expandIPv6(A){try{if(A.includes("::")){const e=A.split("::");if(e.length>2)return null;const t=e[0]?e[0].split(":"):[],n=e[1]?e[1].split(":"):[],r=8-t.length-n.length;if(r<0)return null;const s=Array(r).fill("0000");return[...t,...s,...n].map(o=>o.padStart(4,"0")).join(":")}else{const e=A.split(":");return e.length!==8?null:e.map(t=>t.padStart(4,"0")).join(":")}}catch(e){return null}}isPrivateIPv6Prefix(A){return!!(/^fc[0-9a-f]{0,2}:?/i.test(A)||/^fd[0-9a-f]{0,2}:?/i.test(A)||/^fe[89ab][0-9a-f]:?/i.test(A)||/^ff[0-9a-f]{0,2}:?/i.test(A))}validateCspNonce(A){return!A||typeof A!="string"?{valid:!1,error:"CSP nonce must be a non-empty string"}:A.length<16?{valid:!1,error:"CSP nonce is too short (minimum 16 characters recommended)"}:/^[A-Za-z0-9+/=_-]+$/.test(A)?{valid:!0,sanitized:A}:{valid:!1,error:"CSP nonce contains invalid characters"}}validateImageTimeout(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Image timeout must be a number"}:A<0?{valid:!1,error:"Image timeout cannot be negative"}:this.config.maxImageTimeout&&A>this.config.maxImageTimeout?{valid:!1,error:`Image timeout ${A}ms exceeds maximum allowed ${this.config.maxImageTimeout}ms`}:{valid:!0,sanitized:A}}validateDimensions(A,e){if(typeof A!="number"||typeof e!="number")return{valid:!1,error:"Dimensions must be numbers"};if(isNaN(A)||isNaN(e))return{valid:!1,error:"Dimensions cannot be NaN"};if(A<=0||e<=0)return{valid:!1,error:"Dimensions must be positive"};const t=32767;return A>t||e>t?{valid:!1,error:`Dimensions exceed maximum allowed (${t}px)`}:{valid:!0,sanitized:{width:A,height:e}}}validateScale(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Scale must be a number"}:A<=0?{valid:!1,error:"Scale must be positive"}:A>10?{valid:!1,error:"Scale factor too large (maximum 10x)"}:{valid:!0,sanitized:A}}validateElement(A){if(!A)return{valid:!1,error:"Element is required"};if(typeof A!="object")return{valid:!1,error:"Element must be an object"};const e=A;return typeof HTMLElement!="undefined"&&A instanceof HTMLElement?A.ownerDocument?{valid:!0}:{valid:!1,error:"Element must be attached to a document"}:e.ownerDocument?e.ownerDocument.defaultView?{valid:!0}:{valid:!1,error:"Document must be attached to a window (ownerDocument.defaultView required)"}:{valid:!1,error:"Element must be attached to a document (ownerDocument required)"}}validateOptions(A){var n,r;const e=[],t=A.proxy;if(t!=null&&typeof t=="string"&&t.length>0){const s=this.validateUrl(t,"proxy");s.valid||e.push(`Proxy: ${s.error}`)}if(A.imageTimeout!==void 0){const s=this.validateImageTimeout(A.imageTimeout);s.valid||e.push(`Image timeout: ${s.error}`)}if(A.width!==void 0||A.height!==void 0){const s=(n=A.width)!=null?n:800,o=(r=A.height)!=null?r:600,a=this.validateDimensions(s,o);a.valid||e.push(`Dimensions: ${a.error}`)}if(A.scale!==void 0){const s=this.validateScale(A.scale);s.valid||e.push(`Scale: ${s.error}`)}if(A.cspNonce!==void 0){const s=this.validateCspNonce(A.cspNonce);s.valid||e.push(`CSP nonce: ${s.error}`)}if(this.config.customValidator){const s=this.config.customValidator(A,"options");s.valid||e.push(`Custom validation: ${s.error}`)}return e.length>0?{valid:!1,error:e.join("; ")}:{valid:!0}}};function Sb(A={}){return new xb(k({allowDataUrls:!0,maxImageTimeout:3e5},A))}var Ib=class{constructor(A,e=!0){this.context=A,this.activeMetrics=new Map,this.completedMetrics=[],this.enabled=e,this.getTime=typeof performance!="undefined"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now()}start(A,e){var t;this.enabled&&(this.activeMetrics.has(A)&&((t=this.context)==null||t.logger.warn(`Performance metric '${A}' already started. Overwriting.`)),this.activeMetrics.set(A,{name:A,startTime:this.getTime(),metadata:e}))}end(A){var t,n;if(!this.enabled)return;const e=this.activeMetrics.get(A);if(!e){(t=this.context)==null||t.logger.warn(`Performance metric '${A}' not found. Was start() called?`);return}return e.endTime=this.getTime(),e.duration=e.endTime-e.startTime,this.completedMetrics.push(e),this.activeMetrics.delete(A),(n=this.context)==null||n.logger.debug(`⏱️ ${A}: ${e.duration.toFixed(2)}ms`,e.metadata),e}measure(A,e,t){this.start(A,t);try{const n=e();return this.end(A),n}catch(n){throw this.end(A),n}}measureAsync(A,e,t){return T(this,null,function*(){this.start(A,t);try{const n=yield e();return this.end(A),n}catch(n){throw this.end(A),n}})}getMetrics(){return[...this.completedMetrics]}getMetric(A){return this.completedMetrics.find(e=>e.name===A)}getSummary(){const A=this.completedMetrics.reduce((t,n)=>t+(n.duration||0),0),e=this.completedMetrics.map(t=>({name:t.name,duration:t.duration||0,percentage:A>0?((t.duration||0)/A*100).toFixed(1)+"%":"0%"}));return{totalDuration:A,metrics:this.getMetrics(),breakdown:e}}logSummary(){if(!this.enabled||this.completedMetrics.length===0||!this.context)return;const A=this.getSummary();this.context.logger.info(`
1649
- 📊 Performance Summary (Total: ${A.totalDuration.toFixed(2)}ms):`),A.breakdown.sort((e,t)=>t.duration-e.duration).forEach(e=>{this.context.logger.info(` ${e.name.padEnd(20)} ${e.duration.toFixed(2).padStart(8)}ms ${e.percentage.padStart(6)}`)})}clear(){this.activeMetrics.clear(),this.completedMetrics.splice(0)}isEnabled(){return this.enabled}getActiveMetrics(){return Array.from(this.activeMetrics.keys())}},ke=(We=class{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}add(e,t,n,r){return new We(this.left+e,this.top+t,this.width+n,this.height+r)}static fromClientRect(e,t){return new We(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)}static fromDOMRectList(e,t){const n=Array.from(t);let r=n.find(s=>s.width!==0);return r||(r=n.find(s=>s.height!==0)),!r&&n.length>0&&(r=n[0]),r?new We(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):We.EMPTY}},We.EMPTY=new We(0,0,0,0),We);const _r=(A,e)=>ke.fromClientRect(A,e.getBoundingClientRect()),Tb=A=>{const e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");return new ke(0,0,Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight)))};for(var js=function(A){for(var e=[],t=0,n=A.length;t<n;){var r=A.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var s=A.charCodeAt(t++);(s&64512)===56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),t--)}else e.push(r)}return e},HA=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var n=[],r=-1,s="";++r<t;){var o=A[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},Pu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hb=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ys=0;Ys<Pu.length;Ys++)Hb[Pu.charCodeAt(Ys)]=Ys;for(var Ku="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),qs=0;qs<Ku.length;qs++)xr[Ku.charCodeAt(qs)]=qs;for(var Lb=function(A){var e=A.length*.75,t=A.length,n,r=0,s,o,a,i;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var l=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<t;n+=4)s=xr[A.charCodeAt(n)],o=xr[A.charCodeAt(n+1)],a=xr[A.charCodeAt(n+2)],i=xr[A.charCodeAt(n+3)],u[r++]=s<<2|o>>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|i&63;return l},Db=function(A){for(var e=A.length,t=[],n=0;n<e;n+=2)t.push(A[n+1]<<8|A[n]);return t},Rb=function(A){for(var e=A.length,t=[],n=0;n<e;n+=4)t.push(A[n+3]<<24|A[n+2]<<16|A[n+1]<<8|A[n]);return t},en=5,ra=11,sa=2,Ob=ra-en,Nu=65536>>en,oa=(1<<en)-1,Mb=Nu+(1024>>en)+32,Pb=65536>>ra,Kb=(1<<Ob)-1,zu=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},Nb=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},zb=function(A,e){var t=Lb(A),n=Array.isArray(t)?Rb(t):new Uint32Array(t),r=Array.isArray(t)?Db(t):new Uint16Array(t),s=24,o=zu(r,s/2,n[4]/2),a=n[5]===2?zu(r,(s+n[4])/2):Nb(n,Math.ceil((s+n[4])/4));return new $b(n[0],n[1],n[2],n[3],o,a)},$b=(function(){function A(e,t,n,r,s,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=s,this.data=o}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>en],t=(t<<sa)+(e&oa),this.data[t];if(e<=65535)return t=this.index[Nu+(e-55296>>en)],t=(t<<sa)+(e&oa),this.data[t];if(e<this.highStart)return t=Mb-Pb+(e>>ra),t=this.index[t],t+=e>>en&Kb,t=this.index[t],t=(t<<sa)+(e&oa),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),$u="ABCDEFGHIJKLMNO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AYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB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joCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABw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UAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAG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AEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgA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ABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFA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cAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBX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AeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAE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ArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4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AQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAA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QAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Gu=50,Zb=1,Vu=2,Zu=3,Xb=4,Wb=5,Xu=7,Wu=8,Ju=9,Dt=10,ia=11,ju=12,aa=13,Jb=14,Sr=15,ca=16,eo=17,Ir=18,jb=19,Yu=20,la=21,Tr=22,ua=23,$n=24,Qe=25,Hr=26,Lr=27,Gn=28,Yb=29,tn=30,qb=31,to=32,no=33,da=34,pa=35,ha=36,Dr=37,fa=38,ro=39,so=40,ga=41,qu=42,AQ=43,eQ=[9001,65288],Ad="!",nA="×",oo="÷",Ba=zb(Vb),mt=[tn,ha],wa=[Zb,Vu,Zu,Wb],ed=[Dt,Wu],td=[Lr,Hr],tQ=wa.concat(ed),nd=[fa,ro,so,da,pa],nQ=[Sr,aa],rQ=function(A,e){e===void 0&&(e="strict");var t=[],n=[],r=[];return A.forEach(function(s,o){var a=Ba.get(s);if(a>Gu?(r.push(!0),a-=Gu):r.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(s)!==-1)return n.push(o),t.push(ca);if(a===Xb||a===ia){if(o===0)return n.push(o),t.push(tn);var i=t[o-1];return tQ.indexOf(i)===-1?(n.push(n[o-1]),t.push(i)):(n.push(o),t.push(tn))}if(n.push(o),a===qb)return t.push(e==="strict"?la:Dr);if(a===qu||a===Yb)return t.push(tn);if(a===AQ)return s>=131072&&s<=196605||s>=196608&&s<=262141?t.push(Dr):t.push(tn);t.push(a)}),[n,t,r]},ma=function(A,e,t,n){var r=n[t];if(Array.isArray(A)?A.indexOf(r)!==-1:A===r)for(var s=t;s<=n.length;){s++;var o=n[s];if(o===e)return!0;if(o!==Dt)break}if(r===Dt)for(var s=t;s>0;){s--;var a=n[s];if(Array.isArray(A)?A.indexOf(a)!==-1:A===a)for(var i=t;i<=n.length;){i++;var o=n[i];if(o===e)return!0;if(o!==Dt)break}if(a!==Dt)break}return!1},rd=function(A,e){for(var t=A;t>=0;){var n=e[t];if(n===Dt)t--;else return n}return 0},sQ=function(A,e,t,n,r){if(t[n]===0)return nA;var s=n-1;if(Array.isArray(r)&&r[s]===!0)return nA;var o=s-1,a=s+1,i=e[s],l=o>=0?e[o]:0,u=e[a];if(i===Vu&&u===Zu)return nA;if(wa.indexOf(i)!==-1)return Ad;if(wa.indexOf(u)!==-1||ed.indexOf(u)!==-1)return nA;if(rd(s,e)===Wu)return oo;if(Ba.get(A[s])===ia||(i===to||i===no)&&Ba.get(A[a])===ia||i===Xu||u===Xu||i===Ju||[Dt,aa,Sr].indexOf(i)===-1&&u===Ju||[eo,Ir,jb,$n,Gn].indexOf(u)!==-1||rd(s,e)===Tr||ma(ua,Tr,s,e)||ma([eo,Ir],la,s,e)||ma(ju,ju,s,e))return nA;if(i===Dt)return oo;if(i===ua||u===ua)return nA;if(u===ca||i===ca)return oo;if([aa,Sr,la].indexOf(u)!==-1||i===Jb||l===ha&&nQ.indexOf(i)!==-1||i===Gn&&u===ha||u===Yu||mt.indexOf(u)!==-1&&i===Qe||mt.indexOf(i)!==-1&&u===Qe||i===Lr&&[Dr,to,no].indexOf(u)!==-1||[Dr,to,no].indexOf(i)!==-1&&u===Hr||mt.indexOf(i)!==-1&&td.indexOf(u)!==-1||td.indexOf(i)!==-1&&mt.indexOf(u)!==-1||[Lr,Hr].indexOf(i)!==-1&&(u===Qe||[Tr,Sr].indexOf(u)!==-1&&e[a+1]===Qe)||[Tr,Sr].indexOf(i)!==-1&&u===Qe||i===Qe&&[Qe,Gn,$n].indexOf(u)!==-1)return nA;if([Qe,Gn,$n,eo,Ir].indexOf(u)!==-1)for(var h=s;h>=0;){var f=e[h];if(f===Qe)return nA;if([Gn,$n].indexOf(f)!==-1)h--;else break}if([Lr,Hr].indexOf(u)!==-1)for(var h=[eo,Ir].indexOf(i)!==-1?o:s;h>=0;){var f=e[h];if(f===Qe)return nA;if([Gn,$n].indexOf(f)!==-1)h--;else break}if(fa===i&&[fa,ro,da,pa].indexOf(u)!==-1||[ro,da].indexOf(i)!==-1&&[ro,so].indexOf(u)!==-1||[so,pa].indexOf(i)!==-1&&u===so||nd.indexOf(i)!==-1&&[Yu,Hr].indexOf(u)!==-1||nd.indexOf(u)!==-1&&i===Lr||mt.indexOf(i)!==-1&&mt.indexOf(u)!==-1||i===$n&&mt.indexOf(u)!==-1||mt.concat(Qe).indexOf(i)!==-1&&u===Tr&&eQ.indexOf(A[a])===-1||mt.concat(Qe).indexOf(u)!==-1&&i===Ir)return nA;if(i===ga&&u===ga){for(var g=t[s],m=1;g>0&&(g--,e[g]===ga);)m++;if(m%2!==0)return nA}return i===to&&u===no?nA:oo},oQ=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=rQ(A,e.lineBreak),n=t[0],r=t[1],s=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(r=r.map(function(a){return[Qe,tn,qu].indexOf(a)!==-1?Dr:a}));var o=e.wordBreak==="keep-all"?s.map(function(a,i){return a&&A[i]>=19968&&A[i]<=40959}):void 0;return[n,r,o]},iQ=(function(){function A(e,t,n,r){this.codePoints=e,this.required=t===Ad,this.start=n,this.end=r}return A.prototype.slice=function(){return HA.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),aQ=function(A,e){var t=js(A),n=oQ(t,e),r=n[0],s=n[1],o=n[2],a=t.length,i=0,l=0;return{next:function(){if(l>=a)return{done:!0,value:null};for(var u=nA;l<a&&(u=sQ(t,s,r,++l,o))===nA;);if(u!==nA||l===a){var h=new iQ(t,u,i,l);return i=l,{value:h,done:!1}}return{done:!0,value:null}}}};const sd=65533,te=A=>A>=48&&A<=57,cQ=A=>A>=55296&&A<=57343,Vn=A=>te(A)||A>=65&&A<=70||A>=97&&A<=102,lQ=A=>A>=97&&A<=122,uQ=A=>A>=65&&A<=90,dQ=A=>lQ(A)||uQ(A),pQ=A=>A>=128,io=A=>A===10||A===9||A===32,ao=A=>dQ(A)||pQ(A)||A===95,od=A=>ao(A)||te(A)||A===45,hQ=A=>A>=0&&A<=8||A===11||A>=14&&A<=31||A===127,Rt=(A,e)=>A!==92?!1:e!==10,co=(A,e,t)=>A===45?ao(e)||Rt(e,t):ao(A)?!0:!!(A===92&&Rt(A,e)),Ca=(A,e,t)=>A===43||A===45?te(e)?!0:e===46&&te(t):te(A===46?e:A),fQ=A=>{let e=0,t=1;(A[e]===43||A[e]===45)&&(A[e]===45&&(t=-1),e++);const n=[];for(;te(A[e]);)n.push(A[e++]);const r=n.length?parseInt(HA(...n),10):0;A[e]===46&&e++;const s=[];for(;te(A[e]);)s.push(A[e++]);const o=s.length,a=o?parseInt(HA(...s),10):0;(A[e]===69||A[e]===101)&&e++;let i=1;(A[e]===43||A[e]===45)&&(A[e]===45&&(i=-1),e++);const l=[];for(;te(A[e]);)l.push(A[e++]);const u=l.length?parseInt(HA(...l),10):0;return t*(r+a*Math.pow(10,-o))*Math.pow(10,i*u)},gQ={type:2},BQ={type:3},wQ={type:4},mQ={type:13},CQ={type:8},bQ={type:21},QQ={type:9},yQ={type:10},UQ={type:11},EQ={type:12},FQ={type:14},lo={type:23},kQ={type:1},vQ={type:25},_Q={type:24},xQ={type:26},SQ={type:27},IQ={type:28},TQ={type:29},HQ={type:31},ba={type:32};var Qa=(Le=class{static get(){return Le._pool.pop()||new Le}static release(e){Le._pool.length<Le.MAX_POOL_SIZE&&(e._reset(),Le._pool.push(e))}constructor(){this._value=[]}_reset(){this._value=[]}write(e){this._value=this._value.concat(js(e))}read(){const e=[];let t=this.consumeToken();for(;t!==ba;)e.push(t),t=this.consumeToken();return e}consumeToken(){const e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:{const t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(od(t)||Rt(n,r)){const s=co(t,n,r)?2:1;return{type:5,value:this.consumeName(),flags:s}}break}case 36:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),mQ;break;case 39:return this.consumeStringToken(39);case 40:return gQ;case 41:return BQ;case 42:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),FQ;break;case 43:if(Ca(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return wQ;case 45:{const t=e,n=this.peekCodePoint(0),r=this.peekCodePoint(1);if(Ca(t,n,r))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(co(t,n,r))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(n===45&&r===62)return this.consumeCodePoint(),this.consumeCodePoint(),_Q;break}case 46:if(Ca(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(this.peekCodePoint(0)===42)for(this.consumeCodePoint();;){let t=this.consumeCodePoint();if(t===42&&(t=this.consumeCodePoint(),t===47))return this.consumeToken();if(t===-1)return this.consumeToken()}break;case 58:return xQ;case 59:return SQ;case 60:if(this.peekCodePoint(0)===33&&this.peekCodePoint(1)===45&&this.peekCodePoint(2)===45)return this.consumeCodePoint(),this.consumeCodePoint(),vQ;break;case 64:if(co(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2)))return{type:7,value:this.consumeName()};break;case 91:return IQ;case 92:if(Rt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return TQ;case 61:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),CQ;break;case 123:return UQ;case 125:return EQ;case 117:case 85:{const t=this.peekCodePoint(0),n=this.peekCodePoint(1);return t===43&&(Vn(n)||n===63)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken()}case 124:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),QQ;if(this.peekCodePoint(0)===124)return this.consumeCodePoint(),bQ;break;case 126:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),yQ;break;case-1:return ba}return io(e)?(this.consumeWhiteSpace(),HQ):te(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):ao(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:HA(e)}}consumeCodePoint(){const e=this._value.shift();return typeof e=="undefined"?-1:e}reconsumeCodePoint(e){this._value.unshift(e)}peekCodePoint(e){return e>=this._value.length?-1:this._value[e]}consumeUnicodeRangeToken(){const e=[];let t=this.consumeCodePoint();for(;Vn(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();let n=!1;for(;t===63&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(HA(...e.map(s=>s===63?48:s)),16),end:parseInt(HA(...e.map(s=>s===63?70:s)),16)};const r=parseInt(HA(...e),16);if(this.peekCodePoint(0)===45&&Vn(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();const s=[];for(;Vn(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(HA(...s),16)}}else return{type:30,start:r,end:r}}consumeIdentLikeToken(){const e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===40?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===40?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}}consumeUrlToken(){const e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===-1)return{type:22,value:""};const t=this.peekCodePoint(0);if(t===39||t===34){const n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===-1||this.peekCodePoint(0)===41)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),lo)}for(;;){const n=this.consumeCodePoint();if(n===-1||n===41)return{type:22,value:HA(...e)};if(io(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===-1||this.peekCodePoint(0)===41?(this.consumeCodePoint(),{type:22,value:HA(...e)}):(this.consumeBadUrlRemnants(),lo);if(n===34||n===39||n===40||hQ(n))return this.consumeBadUrlRemnants(),lo;if(n===92)if(Rt(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),lo;else e.push(n)}}consumeWhiteSpace(){for(;io(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){const e=this.consumeCodePoint();if(e===41||e===-1)return;Rt(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}}consumeStringSlice(e){let n="";for(;e>0;){const r=Math.min(5e4,e);n+=HA(...this._value.splice(0,r)),e-=r}return this._value.shift(),n}consumeStringToken(e){let t="",n=0;do{const r=this._value[n];if(r===-1||r===void 0||r===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(r===10)return this._value.splice(0,n),kQ;if(r===92){const s=this._value[n+1];s!==-1&&s!==void 0&&(s===10?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):Rt(r,s)&&(t+=this.consumeStringSlice(n),t+=HA(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)}consumeNumber(){const e=[];let t=4,n=this.peekCodePoint(0);for((n===43||n===45)&&e.push(this.consumeCodePoint());te(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);let r=this.peekCodePoint(1);if(n===46&&te(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;te(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);const s=this.peekCodePoint(2);if((n===69||n===101)&&((r===43||r===45)&&te(s)||te(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;te(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[fQ(e),t]}consumeNumericToken(){const[e,t]=this.consumeNumber(),n=this.peekCodePoint(0);return co(n,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:e,flags:t,unit:this.consumeName()}:n===37?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}}consumeEscapedCodePoint(){const e=this.consumeCodePoint();if(Vn(e)){let t=HA(e);for(;Vn(this.peekCodePoint(0))&&t.length<6;)t+=HA(this.consumeCodePoint());io(this.peekCodePoint(0))&&this.consumeCodePoint();const n=parseInt(t,16);return n===0||cQ(n)||n>1114111?sd:n}return e===-1?sd:e}consumeName(){let e="";for(;;){const t=this.consumeCodePoint();if(od(t))e+=HA(t);else if(Rt(t,this.peekCodePoint(0)))e+=HA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}}},Le._pool=[],Le.MAX_POOL_SIZE=40,Le),id=class Ii{constructor(e){this._tokens=e}static create(e){const t=new Qa;return t.write(e),new Ii(t.read())}static parseValue(e){return Ii.create(e).parseComponentValue()}static parseValues(e){return Ii.create(e).parseComponentValues()}parseComponentValue(){let e=this.consumeToken();for(;e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);const t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")}parseComponentValues(){const e=[];for(;;){const t=this.consumeComponentValue();if(t.type===32)return e;e.push(t)}}consumeComponentValue(){const e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e}consumeSimpleBlock(e){const t={type:e,values:[]};let n=this.consumeToken();for(;;){if(n.type===32||DQ(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}}consumeFunction(e){const t={name:e.value,values:[],type:18};for(;;){const n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}}consumeToken(){const e=this._tokens.shift();return typeof e=="undefined"?ba:e}reconsumeToken(e){this._tokens.unshift(e)}};const ot=A=>A.type===15,$A=A=>A.type===17,j=A=>A.type===20,LQ=A=>A.type===0,Rr=(A,e)=>j(A)&&A.value===e,Or=A=>A.type!==31,GA=A=>A.type!==31&&A.type!==4,Pe=A=>{const e=[];let t=[];return A.forEach(n=>{if(n.type===4){t.length&&(e.push(t),t=[]);return}n.type!==31&&t.push(n)}),t.length&&e.push(t),e},DQ=(A,e)=>e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3,RQ=/(\d+(?:\.\d+)?|[+\-*/()])/g,ad=A=>{const e=A.match(RQ);if(!e)return NaN;const t=[],n=[],r={"+":1,"-":1,"*":2,"/":2};for(const o of e)if(/^\d+(?:\.\d+)?$/.test(o))t.push(parseFloat(o));else if(o==="(")n.push(o);else if(o===")"){for(;n.length&&n[n.length-1]!=="(";)t.push(n.pop());if(!n.length)return NaN;n.pop()}else{for(;n.length&&r[n[n.length-1]]>=r[o];)t.push(n.pop());n.push(o)}for(;n.length;){const o=n.pop();if(o==="(")return NaN;t.push(o)}const s=[];for(const o of t)if(typeof o=="number")s.push(o);else{const a=s.pop(),i=s.pop();if(i===void 0||a===void 0)return NaN;switch(o){case"+":s.push(i+a);break;case"-":s.push(i-a);break;case"*":s.push(i*a);break;case"/":s.push(a===0?NaN:i/a);break;default:return NaN}}return s.length===1?s[0]:NaN},xA=(A,e,t)=>Math.min(Math.max(A,e),t),ge=(A,e)=>[A[0]*e[0]+A[1]*e[1]+A[2]*e[2],A[3]*e[0]+A[4]*e[1]+A[5]*e[2],A[6]*e[0]+A[7]*e[1]+A[8]*e[2]],Ot=A=>ge([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],A),ya=A=>ge([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],A),nn=A=>A.map(e=>{const t=e<0?-1:1,n=Math.abs(e);return n>.0031308?t*(1.055*ye(n,1/2.4)-.055):12.92*e}),Ua=A=>A.map(e=>{const t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*ye((n+.055)/1.055,2.4)}),OQ=A=>{const[e,t,n]=nn(Ot([A[0],A[1],A[2]]));return[e,t,n,A[3]]},MQ=A=>{const[e,t,n]=Ot([A[0],A[1],A[2]]);return[xA(Math.round(e*255),0,255),xA(Math.round(t*255),0,255),xA(Math.round(n*255),0,255),A[3]]},Mt=A=>A.type===17||A.type===15,iA=A=>A.type===16||Mt(A)||cd(A),cd=A=>A.type===17&&A._calcPercentage!==void 0,PQ=A=>A.type===18&&A.name==="calc",KQ=A=>{const e=ud(A,0);if(!e)return null;const t=ud(A,100);if(!t)return null;const n=e.number,r=t.number-n;return r===0?e:{type:17,number:n,flags:4,_calcPercentage:r,_calcPixelOffset:n}},ld=A=>PQ(A)?KQ(A):iA(A)?A:null,ud=(A,e=0)=>{const t=n=>{let r="";for(const s of n)if(s.type!==31){if(s.type===18)if(s.name==="calc"){const o=t(s.values);if(o===null)return null;r+=`(${o})`}else return null;else if(s.type===17)r+=s.number.toString();else if(s.type===15)s.unit==="px"?r+=s.number.toString():s.unit==="rem"||s.unit==="em"?r+=(s.number*16).toString():r+=s.number.toString();else if(s.type===16)r+=(s.number/100*e).toString();else if(s.type===6){const o=s.value;o==="+"||o==="-"||o==="*"||o==="/"?r+=` ${o} `:o==="("?r+="(":o===")"&&(r+=")")}}return r};try{const n=t(A.values);if(n===null||n.trim()==="")return null;const r=ad(n);if(typeof r=="number"&&!isNaN(r))return{type:17,number:r,flags:4}}catch(n){return null}return null},dd=A=>A.length>1?[A[0],A[1]]:[A[0]],LA={type:17,number:0,flags:4},Ct={type:16,number:50,flags:4},Ke={type:16,number:100,flags:4},Mr=(A,e,t)=>{const[n,r]=A;return[J(n,e),J(typeof r!="undefined"?r:n,t)]},J=(A,e)=>{if(cd(A))return A._calcPercentage/100*e+A._calcPixelOffset;if(A.type===16)return A.number/100*e;if(ot(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},pd="deg",hd="grad",fd="rad",gd="turn",Zn={name:"angle",parse:(A,e)=>{if(e.type===15)switch(e.unit){case pd:return Math.PI*e.number/180;case hd:return Math.PI/200*e.number;case fd:return e.number;case gd:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Bd=A=>A.type===15&&(A.unit===pd||A.unit===hd||A.unit===fd||A.unit===gd),wd=A=>{switch(A.filter(j).map(e=>e.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[LA,LA];case"to top":case"bottom":return ve(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[LA,Ke];case"to right":case"left":return ve(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ke,Ke];case"to bottom":case"top":return ve(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ke,LA];case"to left":case"right":return ve(270)}return 0},ve=A=>Math.PI*A/180,bt=A=>(255&A)===0,FA=A=>{const e=255&A,t=255&A>>8,n=255&A>>16,r=255&A>>24;return e<255?`rgba(${r},${n},${t},${e/255})`:`rgb(${r},${n},${t})`},Ne=(A,e,t,n)=>(A<<24|e<<16|t<<8|Math.round(n*255)<<0)>>>0,Pt=(A,e)=>{if(A.type===17)return A.number;if(A.type===16){const t=e===3?1:255;return e===3?A.number/100*t:Math.round(A.number/100*t)}return 0},rn=A=>(A[0].type===20?A[0].value:"unknown")==="from",NQ=A=>Ne(xA(Math.round(A[0]*255),0,255),xA(Math.round(A[1]*255),0,255),xA(Math.round(A[2]*255),0,255),xA(A[3],0,1)),Ea=([A,e,t,n])=>{const r=nn([A,e,t]);return Ne(xA(Math.round(r[0]*255),0,255),xA(Math.round(r[1]*255),0,255),xA(Math.round(r[2]*255),0,255),n)},Pr=A=>{const e=Ot([A[0],A[1],A[2]]);return Ea([e[0],e[1],e[2],A[3]])},zQ=(A,e)=>{if(rn(e.filter(GA)))throw new Error("Relative color not supported for lab()");const[t,n,r,s]=uo(e),o=nn(Ot(fo([t,n,r])));return Ne(xA(Math.round(o[0]*255),0,255),xA(Math.round(o[1]*255),0,255),xA(Math.round(o[2]*255),0,255),s)},$Q=(A,e)=>{if(rn(e.filter(GA)))throw new Error("Relative color not supported for oklab()");const[t,n,r,s]=uo(e),o=nn(Ot(ho([t,n,r])));return Ne(xA(Math.round(o[0]*255),0,255),xA(Math.round(o[1]*255),0,255),xA(Math.round(o[2]*255),0,255),s)},GQ=(A,e)=>{if(rn(e.filter(GA)))throw new Error("Relative color not supported for oklch()");const[t,n,r,s]=Qd(e),o=nn(Ot(ho(po([t,n,r]))));return Ne(xA(Math.round(o[0]*255),0,255),xA(Math.round(o[1]*255),0,255),xA(Math.round(o[2]*255),0,255),s)},VQ=(A,e)=>{if(rn(e.filter(GA)))throw new Error("Relative color not supported for lch()");const[t,n,r,s]=bd(e),o=nn(Ot(fo(po([t,n,r]))));return Ne(xA(Math.round(o[0]*255),0,255),xA(Math.round(o[1]*255),0,255),xA(Math.round(o[2]*255),0,255),s)},md=(A,e)=>{const[t,n,r,s]=e.filter(GA);return[(t.type===17?ve(t.number):Zn.parse(A,t))/(Math.PI*2),iA(n)?n.number/100:0,iA(r)?r.number/100:0,typeof s!="undefined"&&iA(s)?J(s,1):1]},Cd=(A,e)=>{if(rn(e))throw new Error("Relative color not supported for hsl()");const[t,n,r,s]=md(A,e),o=Ud([t,n,r]);return Ne(o[0]*255,o[1]*255,o[2]*255,n===0?1:s)},bd=A=>{const e=A.filter(GA);return[iA(e[0])?e[0].number:0,iA(e[1])?e[1].number:0,$A(e[2])||ot(e[2])?e[2].number:0,typeof e[4]!="undefined"&&iA(e[4])?J(e[4],1):1]},uo=A=>{const e=A.filter(GA);return[e[0].type===16?e[0].number/100:$A(e[0])?e[0].number:0,e[1].type===16?e[1].number/100:$A(e[1])?e[1].number:0,$A(e[2])||ot(e[2])?e[2].number:0,typeof e[4]!="undefined"&&iA(e[4])?J(e[4],1):1]},Qd=A=>{const e=A.filter(GA);return[e[0].type===16?e[0].number/100:$A(e[0])?e[0].number:0,e[1].type===16?e[1].number/100:$A(e[1])?e[1].number:0,$A(e[2])||ot(e[2])?e[2].number:0,typeof e[4]!="undefined"&&iA(e[4])?J(e[4],1):1]},yd=A=>ge([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],A),Fa=A=>ge([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],A),ka=(A,e,t)=>(t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<1/2?e:t<2/3?(e-A)*6*(2/3-t)+A:A),Ud=([A,e,t])=>{if(e===0)return[t*255,t*255,t*255];const n=t<=.5?t*(e+1):t+e-t*e,r=t*2-n;return[ka(r,n,A+1/3),ka(r,n,A),ka(r,n,A-1/3)]},po=([A,e,t])=>(e<0&&(e=0),isNaN(t)&&(t=0),[A,e*Math.cos(t*Math.PI/180),e*Math.sin(t*Math.PI/180)]),ho=A=>ge([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816],ge([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],A).map(e=>ye(e,3))),fo=A=>{const e=(A[0]+16)/116,t=A[1]/500+e,n=e-A[2]/200,r=24389/27,s=24/116,o=[(t>s?ye(t,3):(116*t-16)/r)*.3457/.3585,A[0]>8?ye(e,3):A[0]/r,(n>s?ye(n,3):(116*n-16)/r)*.2958/.3585];return Fa([o[0],o[1],o[2]])},ZQ=(A,e)=>{const t=e.filter(GA);if(t.length===3){const[n,r,s]=t.map(Pt),o=Ua([n/255,r/255,s/255]),[a,i,l]=ya([o[0],o[1],o[2]]);return[a,i,l,1]}if(t.length===4){const[n,r,s,o]=t.map(Pt),a=Ua([n/255,r/255,s/255]),[i,l,u]=ya([a[0],a[1],a[2]]);return[i,l,u,o]}return[0,0,0,1]},XQ=(A,e)=>{const[t,n,r,s]=md(A,e),o=Ua(Ud([t,n,r])),[a,i,l]=ya([o[0],o[1],o[2]]);return[a,i,l,s]},WQ=(A,e)=>{const[t,n,r,s]=uo(e),[o,a,i]=fo([t,n,r]);return[o,a,i,s]},JQ=(A,e)=>{const[t,n,r,s]=bd(e),[o,a,i]=fo(po([t,n,r]));return[o,a,i,s]},jQ=(A,e)=>{const[t,n,r,s]=Qd(e),[o,a,i]=ho(po([t,n,r]));return[o,a,i,s]},YQ=(A,e)=>{const[t,n,r,s]=uo(e),[o,a,i]=ho([t,n,r]);return[o,a,i,s]},qQ=A=>Fa([A[0],A[1],A[2]]),Ed=A=>A,Ay=A=>{const[e,t,n]=yd([A[0],A[2],A[3]]);return[e,t,n,A[3]]},Fd=A=>Pr([A[0],A[1],A[2],A[3]]),ey=A=>{const e=qQ([A[0],A[1],A[2]]);return Pr([e[0],e[1],e[2],A[3]])},ty=A=>ge([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],A),ny=A=>ge([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],A),ry=A=>A.map(e=>{const t=e<0?-1:1;return e*t<=.04045?e/12.92:t*ye((e+.055)/1.055,2.4)||0}),sy=A=>nn(A),oy=A=>{const e=ry([A[0],A[1],A[2]]);return ty([e[0],e[1],e[2]])},iy=A=>{const[e,t,n]=sy(ny([A[0],A[1],A[2]]));return[e,t,n,A[3]]},ay=A=>{const e=oy([A[0],A[1],A[2]]);return Pr([e[0],e[1],e[2],A[3]])},cy=A=>ge([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],A),ly=A=>ge([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],A),uy=A=>{const e=A.map(t=>(t<0?-1:1)*ye(Math.abs(t),2.19921875));return[e[0],e[1],e[2]]},dy=A=>{const e=A.map(t=>(t<0?-1:1)*ye(Math.abs(t),.4547069271758437));return[e[0],e[1],e[2]]},py=A=>{const[e,t,n]=dy(cy([A[0],A[1],A[2]]));return[e,t,n,A[3]]},hy=A=>{const e=Ot(ly(uy([A[0],A[1],A[2]])));return Ea([e[0],e[1],e[2],A[3]])},fy=A=>ge([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],A),gy=A=>ge([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],A),By=A=>A.map(e=>e<16/512?e/16:ye(e,1.8)),wy=A=>A.map(e=>e>1/512?ye(e,1/1.8):e*16),my=A=>{const e=By([A[0],A[1],A[2]]);return Fa(fy([e[0],e[1],e[2]]))},Cy=A=>{const[e,t,n]=wy(gy(yd([A[0],A[1],A[2]])));return[e,t,n,A[3]]},by=A=>{const e=my([A[0],A[1],A[2]]);return Pr([e[0],e[1],e[2],A[3]])},go=1.09929682680944,kd=.018053968510807,Qy=A=>A.map(function(e){return e<kd*4.5?e/4.5:Math.pow((e+go-1)/go,1/.45)}),yy=A=>A.map(function(e){return e>=kd?go*Math.pow(e,.45)-(go-1):4.5*e}),Uy=A=>ge([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],A),Ey=A=>ge([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],A),Fy=A=>{const e=Qy([A[0],A[1],A[2]]);return Uy([e[0],e[1],e[2]])},ky=A=>{const[e,t,n]=yy(Ey([A[0],A[1],A[2]]));return[e,t,n,A[3]]},vy=A=>{const e=Fy([A[0],A[1],A[2]]);return Pr([e[0],e[1],e[2],A[3]])},Kt={name:"color",parse:(A,e)=>{if(e.type===18){const t=Iy[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported color function "${e.name}"`);return t(A,e.values)}if(e.type===5){const[t,n,r,s]=vd(e);return Ne(t,n,r,s)}if(e.type===20){const t=it[e.value.toUpperCase()];if(typeof t!="undefined")return t}return it.TRANSPARENT}},vd=A=>{if(A.value.length===3){const e=A.value.substring(0,1),t=A.value.substring(1,2),n=A.value.substring(2,3);return[parseInt(e+e,16),parseInt(t+t,16),parseInt(n+n,16),1]}if(A.value.length===4){const e=A.value.substring(0,1),t=A.value.substring(1,2),n=A.value.substring(2,3),r=A.value.substring(3,4);return[parseInt(e+e,16),parseInt(t+t,16),parseInt(n+n,16),parseInt(r+r,16)/255]}if(A.value.length===6){const e=A.value.substring(0,2),t=A.value.substring(2,4),n=A.value.substring(4,6);return[parseInt(e,16),parseInt(t,16),parseInt(n,16),1]}if(A.value.length===8){const e=A.value.substring(0,2),t=A.value.substring(2,4),n=A.value.substring(4,6),r=A.value.substring(6,8);return[parseInt(e,16),parseInt(t,16),parseInt(n,16),parseInt(r,16)/255]}return[0,0,0,1]},_d=(A,e)=>{const t=e.filter(GA);if(rn(t))throw new Error("Relative color not supported for rgb()");if(t.length===3){const[n,r,s]=t.map(Pt);return Ne(n,r,s,1)}if(t.length===4){const[n,r,s,o]=t.map(Pt);return Ne(n,r,s,o)}return t.length===5&&t[3].type===6&&t[3].value==="/"?Ne(Pt(t[0],0),Pt(t[1],1),Pt(t[2],2),Pt(t[4],3)):0},_y=(A,e)=>{const t=e.filter(GA),n=t[0].type===20?t[0].value:"unknown";if(rn(t)){const r=(U,E)=>{if($A(E))return E.number;const v=y=>y==="r"||y==="x"?0:y==="g"||y==="y"?1:2;if(j(E))return U[v(E.value)];const F=y=>{const x=y.filter(GA);let R="(";for(const I of x)R+=I.type===18&&I.name==="calc"?F(I.values):$A(I)?I.number:I.type===6||j(I)?I.value:"";return R+=")",R};if(E.type===18){const y=E.values.filter(GA);if(E.name==="calc")return ad(F(y).replace(/r|x/,U[0].toString()).replace(/g|y/,U[1].toString()).replace(/b|z/,U[2].toString()))}return null},s=t[1].type===18?t[1].name:j(t[1])||t[1].type===5?"rgb":"unknown",o=j(t[2])?t[2].value:"unknown";let a=t[1].type===18?t[1].values:j(t[1])?[t[1]]:[];if(j(t[1])){if(typeof it[t[1].value.toUpperCase()]=="undefined")throw new Error("Attempting to use unknown color in relative color 'from'");{const U=Xn(A,t[1].value),E=255&U,v=255&U>>8,F=255&U>>16;a=[{type:17,number:255&U>>24,flags:1},{type:17,number:F,flags:1},{type:17,number:v,flags:1},{type:17,number:E>1?E/255:E,flags:1}]}}else if(t[1].type===5){const[U,E,v,F]=vd(t[1]);a=[{type:17,number:U,flags:1},{type:17,number:E,flags:1},{type:17,number:v,flags:1},{type:17,number:F>1?F/255:F,flags:1}]}if(a.length===0)throw new Error("Attempting to use unknown color in relative color 'from'");if(o==="unknown")throw new Error("Attempting to use unknown colorspace in relative color 'to'");const i=xy[s],l=Sy[o],u=xd[o];if(typeof i=="undefined")throw new Error(`Attempting to parse an unsupported color space "${s}" for color() function`);if(typeof l=="undefined")throw new Error(`Attempting to parse an unsupported color space "${o}" for color() function`);const h=l(i(A,a)),f=r(h,t[3]),g=r(h,t[4]),m=r(h,t[5]),Q=t.length>6&&t[6].type===6&&t[6].value==="/"&&$A(t[7])?t[7].number:1;if(f===null||g===null||m===null)throw new Error("Invalid relative color in color() function");return u([f,g,m,Q])}else{const r=n,s=xd[r];if(typeof s=="undefined")throw new Error(`Attempting to parse an unsupported color space "${r}" for color() function`);return s([$A(t[1])?t[1].number:0,$A(t[2])?t[2].number:0,$A(t[3])?t[3].number:0,t.length>4&&t[4].type===6&&t[4].value==="/"&&$A(t[5])?t[5].number:1])}},xd={srgb:NQ,"srgb-linear":Ea,"display-p3":ay,"a98-rgb":hy,"prophoto-rgb":by,xyz:Fd,"xyz-d50":ey,"xyz-d65":Fd,rec2020:vy},xy={rgb:ZQ,hsl:XQ,lab:WQ,lch:JQ,oklab:YQ,oklch:jQ},Sy={srgb:OQ,"srgb-linear":MQ,"display-p3":iy,"a98-rgb":py,"prophoto-rgb":Cy,xyz:Ed,"xyz-d50":Ay,"xyz-d65":Ed,rec2020:ky},Iy={hsl:Cd,hsla:Cd,rgb:_d,rgba:_d,lch:VQ,oklch:GQ,oklab:$Q,lab:zQ,color:_y},Xn=(A,e)=>Kt.parse(A,id.create(e).parseComponentValue()),it={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},sn=A=>A.nodeType===Node.ELEMENT_NODE,Sd=A=>A.nodeType===Node.TEXT_NODE,on=A=>typeof A.className=="object",Kr=A=>sn(A)&&typeof A.style!="undefined"&&!on(A),Ty=A=>A.tagName==="INPUT",Hy=A=>A.tagName==="HTML",Id=A=>A.tagName==="svg",va=A=>A.tagName==="BODY",Td=A=>A.tagName==="CANVAS",Hd=A=>A.tagName==="VIDEO",_a=A=>A.tagName==="IMG",Ld=A=>A.tagName==="IFRAME",Dd=A=>A.tagName==="STYLE",Ly=A=>A.tagName==="SCRIPT",Bo=A=>A.tagName==="TEXTAREA",wo=A=>A.tagName==="SELECT",Nr=A=>A.tagName==="SLOT",Dy=A=>A.tagName==="LI",Ry=A=>A.tagName==="OL",Rd=A=>!on(A)&&A.tagName.indexOf("-")>0,Oy=new Set(["IMG","VIDEO","AUDIO","CANVAS","IFRAME","INPUT","TEXTAREA","SELECT","BR","HR","META","LINK","BASE","COL","SOURCE","TRACK","WBR","AREA","PARAM","EMBED","OBJECT"]),My=A=>!on(A)&&!Oy.has(A.tagName),xa={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){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 52;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}}},qA=(A,e)=>(A&e)!==0;var Py=class{constructor(){this.counters={}}getCounterValue(A){const e=this.counters[A];return e&&e.length?e[e.length-1]:1}getCounterValues(A){const e=this.counters[A];return e||[]}pop(A){A.forEach(e=>this.counters[e].pop())}parse(A){const e=A.counterIncrement,t=A.counterReset;let n=!0;e!==null&&e.forEach(s=>{const o=this.counters[s.counter];o&&s.increment!==0&&(n=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=s.increment)});const r=[];return n&&t.forEach(s=>{let o=this.counters[s.counter];r.push(s.counter),o||(o=this.counters[s.counter]=[]),o.push(s.reset)}),r}};const Od={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"]},Md={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ky={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Ny={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Wn=(A,e,t,n,r,s)=>A<e||A>t?zr(A,r,s.length>0):n.integers.reduce((o,a,i)=>{for(;A>=a;)A-=a,o+=n.values[i];return o},"")+s,Pd=(A,e,t,n)=>{let r="";do t||A--,r=n(A)+r,A/=e;while(A*e>=e);return r},DA=(A,e,t,n,r)=>{const s=t-e+1;return(A<0?"-":"")+(Pd(Math.abs(A),s,n,o=>HA(Math.floor(o%s)+e))+r)},an=(A,e,t=". ")=>{const n=e.length;return Pd(Math.abs(A),n,!1,r=>e[Math.floor(r%n)])+t},zy=1,$y=2,Gy=4,Vy=8,Qt=(A,e,t,n,r,s)=>{if(A<-9999||A>9999)return zr(A,4,r.length>0);let o=Math.abs(A),a=r;if(o===0)return e[0]+a;for(let i=0;o>0&&i<=4;i++){const l=o%10;l===0&&qA(s,zy)&&a!==""?a=e[l]+a:l>1||l===1&&i===0||l===1&&i===1&&qA(s,$y)||l===1&&i===1&&qA(s,Gy)&&A>100||l===1&&i>1&&qA(s,Vy)?a=e[l]+(i>0?t[i-1]:"")+a:l===1&&i>0&&(a=t[i-1]+a),o=Math.floor(o/10)}return(A<0?n:"")+a},Kd="十百千萬",Nd="拾佰仟萬",zd="マイナス",Sa="마이너스",zr=(A,e,t)=>{const n=t?". ":"",r=t?"、":"",s=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:const a=DA(A,48,57,!0,n);return a.length<4?`0${a}`:a;case 4:return an(A,"〇一二三四五六七八九",r);case 6:return Wn(A,1,3999,Od,3,n).toLowerCase();case 7:return Wn(A,1,3999,Od,3,n);case 8:return DA(A,945,969,!1,n);case 9:return DA(A,97,122,!1,n);case 10:return DA(A,65,90,!1,n);case 11:return DA(A,1632,1641,!0,n);case 12:case 49:return Wn(A,1,9999,Md,3,n);case 35:return Wn(A,1,9999,Md,3,n).toLowerCase();case 13:return DA(A,2534,2543,!0,n);case 14:case 30:return DA(A,6112,6121,!0,n);case 15:return an(A,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return an(A,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Qt(A,"零一二三四五六七八九",Kd,"負",r,14);case 47:return Qt(A,"零壹貳參肆伍陸柒捌玖",Nd,"負",r,15);case 42:return Qt(A,"零一二三四五六七八九",Kd,"负",r,14);case 41:return Qt(A,"零壹贰叁肆伍陆柒捌玖",Nd,"负",r,15);case 26:return Qt(A,"〇一二三四五六七八九","十百千万",zd,r,0);case 25:return Qt(A,"零壱弐参四伍六七八九","拾百千万",zd,r,7);case 31:return Qt(A,"영일이삼사오육칠팔구","십백천만",Sa,s,7);case 33:return Qt(A,"零一二三四五六七八九","十百千萬",Sa,s,0);case 32:return Qt(A,"零壹貳參四五六七八九","拾百千",Sa,s,7);case 18:return DA(A,2406,2415,!0,n);case 20:return Wn(A,1,19999,Ny,3,n);case 21:return DA(A,2790,2799,!0,n);case 22:return DA(A,2662,2671,!0,n);case 52:return Wn(A,1,10999,Ky,3,n);case 23:return an(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return an(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return DA(A,3302,3311,!0,n);case 28:return an(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return an(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return DA(A,3792,3801,!0,n);case 37:return DA(A,6160,6169,!0,n);case 38:return DA(A,4160,4169,!0,n);case 39:return DA(A,2918,2927,!0,n);case 40:return DA(A,1776,1785,!0,n);case 43:return DA(A,3046,3055,!0,n);case 44:return DA(A,3174,3183,!0,n);case 45:return DA(A,3664,3673,!0,n);case 46:return DA(A,3872,3881,!0,n);default:return DA(A,48,57,!0,n)}},Zy={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(A,e)=>e.map(t=>{if(j(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2;case"text":return 3}return 0})},Xy={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},mo=(A,e)=>{const t=Kt.parse(A,e[0]),n=e[1];return n&&iA(n)?{color:t,stop:n}:{color:t,stop:null}},Ia=(A,e)=>{const t=A[0],n=A[A.length-1];t.stop===null&&(t.stop=LA),n.stop===null&&(n.stop=Ke);const r=[];let s=0;for(let a=0;a<A.length;a++){const i=A[a].stop;if(i!==null){const l=J(i,e);l>s?r.push(l):r.push(s),s=l}else r.push(null)}let o=null;for(let a=0;a<r.length;a++){const i=r[a];if(i===null)o===null&&(o=a);else if(o!==null){const l=a-o,u=(i-r[o-1])/(l+1);for(let h=1;h<=l;h++)r[o+h-1]=u*h;o=null}}return A.map(({color:a},i)=>({color:a,stop:Math.max(Math.min(1,r[i]/e),0)}))},Wy=(A,e,t)=>{const n=e/2,r=t/2,s=J(A[0],e)-n,o=r-J(A[1],t);return(Math.atan2(o,s)+Math.PI*2)%(Math.PI*2)},$d=(A,e,t)=>{const n=typeof A=="number"?A:Wy(A,e,t),r=Math.abs(e*Math.sin(n))+Math.abs(t*Math.cos(n)),s=e/2,o=t/2,a=r/2,i=Math.sin(n-Math.PI/2)*a,l=Math.cos(n-Math.PI/2)*a;return[r,s-l,s+l,o-i,o+i]},ze=(A,e)=>Math.sqrt(A*A+e*e),Gd=(A,e,t,n,r)=>[[0,0],[0,e],[A,0],[A,e]].reduce((s,o)=>{const[a,i]=o,l=ze(t-a,n-i);return(r?l<s.optimumDistance:l>s.optimumDistance)?{optimumCorner:o,optimumDistance:l}:s},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner,Jy=(A,e,t,n,r)=>{let s=0,o=0;switch(A.size){case 0:A.shape===0?s=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===1&&(s=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(t),Math.abs(t-r)));break;case 2:if(A.shape===0)s=o=Math.min(ze(e,t),ze(e,t-r),ze(e-n,t),ze(e-n,t-r));else if(A.shape===1){const a=Math.min(Math.abs(t),Math.abs(t-r))/Math.min(Math.abs(e),Math.abs(e-n)),[i,l]=Gd(n,r,e,t,!0);s=ze(i-e,(l-t)/a),o=a*s}break;case 1:A.shape===0?s=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===1&&(s=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(t),Math.abs(t-r)));break;case 3:if(A.shape===0)s=o=Math.max(ze(e,t),ze(e,t-r),ze(e-n,t),ze(e-n,t-r));else if(A.shape===1){const a=Math.max(Math.abs(t),Math.abs(t-r))/Math.max(Math.abs(e),Math.abs(e-n)),[i,l]=Gd(n,r,e,t,!1);s=ze(i-e,(l-t)/a),o=a*s}break}return Array.isArray(A.size)&&(s=J(A.size[0],n),o=A.size.length===2?J(A.size[1],r):s),[s,o]},Vd=(A,e)=>{let t=ve(180);const n=[];return Pe(e).forEach((r,s)=>{if(s===0){const a=r[0];if(a.type===20&&a.value==="to"){t=wd(r);return}else if(Bd(a)){t=Zn.parse(A,a);return}}const o=mo(A,r);n.push(o)}),{angle:t,stops:n,type:1}},Co=(A,e)=>{let t=ve(180);const n=[];return Pe(e).forEach((r,s)=>{if(s===0){const a=r[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){t=wd(r);return}else if(Bd(a)){t=(Zn.parse(A,a)+ve(270))%ve(360);return}}const o=mo(A,r);n.push(o)}),{angle:t,stops:n,type:1}},jy=(A,e)=>{const t=ve(180),n=[];let r=1;const s=0,o=3,a=[];return Pe(e).forEach((i,l)=>{const u=i[0];if(l===0){if(j(u)&&u.value==="linear"){r=1;return}else if(j(u)&&u.value==="radial"){r=2;return}}if(u.type===18){if(u.name==="from"){const h=Kt.parse(A,u.values[0]);n.push({stop:LA,color:h})}else if(u.name==="to"){const h=Kt.parse(A,u.values[0]);n.push({stop:Ke,color:h})}else if(u.name==="color-stop"){const h=u.values.filter(GA);if(h.length===2){const f=Kt.parse(A,h[1]),g=h[0];$A(g)&&n.push({stop:{type:16,number:g.number*100,flags:g.flags},color:f})}}}}),r===1?{angle:(t+ve(180))%ve(360),stops:n,type:r}:{size:o,shape:s,stops:n,position:a,type:r}},Zd="closest-side",Xd="farthest-side",Wd="closest-corner",Jd="farthest-corner",jd="circle",Yd="ellipse",qd="cover",Ap="contain",Yy=(A,e)=>{let t=0,n=3;const r=[],s=[];return Pe(e).forEach((o,a)=>{let i=!0;if(a===0){let l=!1;i=o.reduce((u,h)=>{if(l)if(j(h))switch(h.value){case"center":return s.push(Ct),u;case"top":case"left":return s.push(LA),u;case"right":case"bottom":return s.push(Ke),u}else(iA(h)||Mt(h))&&s.push(h);else if(j(h))switch(h.value){case jd:return t=0,!1;case Yd:return t=1,!1;case"at":return l=!0,!1;case Zd:return n=0,!1;case qd:case Xd:return n=1,!1;case Ap:case Wd:return n=2,!1;case Jd:return n=3,!1}else if(Mt(h)||iA(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return u},i)}if(i){const l=mo(A,o);r.push(l)}}),{size:n,shape:t,stops:r,position:s,type:2}},bo=(A,e)=>{let t=0,n=3;const r=[],s=[];return Pe(e).forEach((o,a)=>{let i=!0;if(a===0?i=o.reduce((l,u)=>{if(j(u))switch(u.value){case"center":return s.push(Ct),!1;case"top":case"left":return s.push(LA),!1;case"right":case"bottom":return s.push(Ke),!1}else if(iA(u)||Mt(u))return s.push(u),!1;return l},i):a===1&&(i=o.reduce((l,u)=>{if(j(u))switch(u.value){case jd:return t=0,!1;case Yd:return t=1,!1;case Ap:case Zd:return n=0,!1;case Xd:return n=1,!1;case Wd:return n=2,!1;case qd:case Jd:return n=3,!1}else if(Mt(u)||iA(u))return Array.isArray(n)||(n=[]),n.push(u),!1;return l},i)),i){const l=mo(A,o);r.push(l)}}),{size:n,shape:t,stops:r,position:s,type:2}},$r=(A,e)=>$(k({},Vd(A,e)),{type:3}),qy=A=>A.type===1,A0=A=>A.type===2,e0=A=>A.type===3,Qo={name:"image",parse:(A,e)=>{if(e.type===22){const t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(e.type===18){const t=tp[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported image function "${e.name}"`);return t(A,e.values)}throw new Error(`Unsupported image type ${e.type}`)}};function ep(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!tp[A.name])}const tp={"linear-gradient":Vd,"-moz-linear-gradient":Co,"-ms-linear-gradient":Co,"-o-linear-gradient":Co,"-webkit-linear-gradient":Co,"radial-gradient":Yy,"-moz-radial-gradient":bo,"-ms-radial-gradient":bo,"-o-radial-gradient":bo,"-webkit-radial-gradient":bo,"-webkit-gradient":jy,"repeating-linear-gradient":$r,"-webkit-repeating-linear-gradient":$r,"-moz-repeating-linear-gradient":$r,"-ms-repeating-linear-gradient":$r,"-o-repeating-linear-gradient":$r},t0={name:"background-image",initialValue:"none",type:1,prefix:!1,skipCache:!0,parse:(A,e)=>{if(e.length===0)return[];const t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(n=>GA(n)&&ep(n)).map(n=>Qo.parse(A,n))}},n0={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(A,e)=>e.map(t=>{if(j(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})},r0={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(A,e)=>Pe(e).map(t=>t.map(ld).filter(n=>n!==null)).map(dd)},s0={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(A,e)=>Pe(e).map(t=>t.filter(j).map(n=>n.value).join(" ")).map(o0)},o0=A=>{switch(A){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}},i0={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(A,e)=>Pe(e).map(t=>t.map(n=>a0(n)?n:ld(n)).filter(n=>n!==null))},a0=A=>j(A)||iA(A),yo=A=>({name:`border-${A}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),c0=yo("top"),l0=yo("right"),u0=yo("bottom"),d0=yo("left"),Uo=A=>({name:`border-${A}-radius`,initialValue:"0 0",prefix:!1,type:1,parse:(e,t)=>dd(t.filter(iA))}),p0=Uo("top-left"),h0=Uo("top-right"),f0=Uo("bottom-right"),g0=Uo("bottom-left"),Eo=A=>({name:`border-${A}-style`,initialValue:"solid",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}),B0=Eo("top"),w0=Eo("right"),m0=Eo("bottom"),C0=Eo("left"),Fo=A=>({name:`border-${A}-width`,initialValue:"0",type:0,prefix:!1,parse:(e,t)=>ot(t)?t.number:0}),b0=Fo("top"),Q0=Fo("right"),y0=Fo("bottom"),U0=Fo("left"),Ta={type:0},Ha=A=>{const[e]=A;return e?j(e)?e.value==="farthest-side"?"farthest-side":"closest-side":iA(e)?e:"closest-side":"closest-side"},np=A=>{let e=null,t=null;for(const n of A)if(j(n))switch(n.value){case"left":e=LA;break;case"right":e=Ke;break;case"top":t=LA;break;case"bottom":t=Ke;break;case"center":e===null?e=Ct:t===null&&(t=Ct);break}else iA(n)&&(e===null?e=n:t===null&&(t=n));return{cx:e!=null?e:Ct,cy:t!=null?t:Ct}},E0=A=>{var r,s,o,a;const e=[];for(const i of A)if(i.type!==31){if(j(i)&&i.value==="round")break;iA(i)&&e.push(i)}const t=(r=e[0])!=null?r:LA,n=(s=e[1])!=null?s:t;return{type:1,top:t,right:n,bottom:(o=e[2])!=null?o:t,left:(a=e[3])!=null?a:n}},F0=A=>{const e=A.filter(Or),t=e.findIndex(s=>Rr(s,"at")),n=t===-1?e:e.slice(0,t),r=t===-1?[]:e.slice(t+1);return k({type:2,radius:Ha(n)},np(r))},k0=A=>{const e=A.filter(Or),t=e.findIndex(s=>Rr(s,"at")),n=t===-1?e:e.slice(0,t),r=t===-1?[]:e.slice(t+1);return k({type:3,rx:Ha(n.slice(0,1)),ry:Ha(n.slice(1,2))},np(r))},v0=A=>{const e=Pe(A),t=[];for(const n of e){if(n.length===1&&j(n[0]))continue;const r=n.filter(iA);r.length>=2&&t.push([r[0],r[1]])}return{type:4,points:t}},_0=A=>{const e=A.find(t=>t.type===0);return e?{type:5,d:e.value}:Ta},x0={name:"clip-path",initialValue:"none",prefix:!1,type:0,parse:(A,e)=>{if(j(e)&&e.value==="none")return Ta;if(e.type===18)switch(e.name){case"inset":return E0(e.values);case"circle":return F0(e.values);case"ellipse":return k0(e.values);case"polygon":return v0(e.values);case"path":return _0(e.values)}return Ta}},S0={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},I0={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"rtl":return 1;default:return 0}}},T0={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(A,e)=>e.filter(j).reduce((t,n)=>t|H0(n.value),0)},H0=A=>{switch(A){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},rp={name:"float",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},L0={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:(A,e)=>e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0},D0={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"strict":return"strict";default:return"normal"}}},R0={name:"line-height",initialValue:"normal",prefix:!1,type:4},La=(A,e)=>j(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:iA(A)?J(A,e):e,O0={name:"list-style-image",initialValue:"none",type:0,prefix:!1,skipCache:!0,parse:(A,e)=>e.type===20&&e.value==="none"?null:Qo.parse(A,e)},M0={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"inside":return 0;default:return 1}}},ko=A=>({name:`margin-${A}`,initialValue:"0",prefix:!1,type:4}),P0=ko("top"),K0=ko("right"),N0=ko("bottom"),z0=ko("left"),sp={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(A,e)=>e.filter(j).map(t=>{switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},$0={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"break-word":return"break-word";default:return"normal"}}},vo=A=>({name:`padding-${A}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),G0=vo("top"),V0=vo("right"),Z0=vo("bottom"),X0=vo("left"),W0={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},J0={name:"position",initialValue:"static",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},j0={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.length===1&&Rr(e[0],"none")?[]:Pe(e).map(t=>{const n={color:it.TRANSPARENT,offsetX:LA,offsetY:LA,blur:LA};let r=0;for(let s=0;s<t.length;s++){const o=t[s];Mt(o)?(r===0?n.offsetX=o:r===1?n.offsetY=o:n.blur=o,r++):n.color=Kt.parse(A,o)}return n})},Y0={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},q0={name:"transform",initialValue:"none",prefix:!0,type:0,parse:(A,e)=>{if(e.type===20&&e.value==="none")return null;if(e.type===18){const t=AU[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported transform function "${e.name}"`);return t(A,e.values)}return null}},AU={matrix:(A,e)=>{const t=e.filter(n=>n.type===17).map(n=>n.number);return t.length===6?t:null},matrix3d:(A,e)=>{const t=e.filter(l=>l.type===17).map(l=>l.number),[n,r,{},{},s,o,{},{},{},{},{},{},a,i]=t;return t.length===16?[n,r,s,o,a,i]:null},rotate:(A,e)=>{if(e.length!==1)return null;const t=e[0];let n=0;if(t.type===17&&t.number===0)n=0;else if(t.type===15)n=Zn.parse(A,t);else return null;const r=Math.cos(n),s=Math.sin(n);return[r,s,-s,r,0,0]}},op={type:16,number:50,flags:4},eU=[op,op],tU={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(A,e)=>{const t=e.filter(iA);return t.length!==2?eU:[t[0],t[1]]}},nU={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:(A,e)=>e.type===20&&e.value==="none"?null:e.type===17&&e.number===0?0:e.type===15?Zn.parse(A,e)*180/Math.PI:null},rU={name:"visibility",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},sU={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"break-all":return"break-all";case"keep-all":return"keep-all";default:return"normal"}}},oU={name:"white-space",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"pre":return"pre";case"nowrap":return"nowrap";case"pre-wrap":return"pre-wrap";case"pre-line":return"pre-line";default:return"normal"}}},_o=A=>A!==0,Da=A=>A===3||A===4,iU={name:"writing-mode",initialValue:"horizontal-tb",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"vertical-rl":return 1;case"vertical-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4;default:return 0}}},aU={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>{if(e.type===20)return{auto:!0,order:0};if($A(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},ip={name:"time",parse:(A,e)=>{if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},cU={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(A,e)=>$A(e)?e.number:1},ap={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},cp={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(A,e)=>e.filter(j).map(t=>{switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(t=>t!==0)},lU={name:"text-decoration-style",initialValue:"solid",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"double":return 1;case"dotted":return 2;case"dashed":return 3;case"wavy":return 4;default:return 0}}},uU={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>{if(j(e))switch(e.value){case"auto":return"auto";case"from-font":return"from-font"}return ot(e)?e.number:"auto"}},dU={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>j(e)&&e.value==="auto"?"auto":ot(e)?e.number:"auto"},pU={name:"font-family",initialValue:"",prefix:!1,type:1,parse:(A,e)=>{const t=[],n=[],r=[];let s=!1;return e.forEach(o=>{switch(o.type){case 20:t.push(o.value);break;case 0:s=!0,t.push(o.value);break;case 17:t.push(o.number.toString());break;case 4:n.push(t.join(" ")),r.push(s),s=!1,t.length=0;break}}),t.length&&(n.push(t.join(" ")),r.push(s)),n.map((o,a)=>r[a]||o.indexOf(" ")!==-1?`'${o.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\a ").replace(/\r/g,"\\d ").replace(/\f/g,"\\c ")}'`:o)}},hU={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fU={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(A,e)=>{if($A(e))return e.number;if(j(e))switch(e.value){case"bold":return 700;default:return 400}return 400}},gU={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.filter(j).map(t=>t.value)},BU={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},wU={name:"content",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>{if(e.length===0)return[];const t=e[0];return t.type===20&&t.value==="none"?[]:e}},lp=(A,e)=>{const t=[],n=A.filter(Or);for(let r=0;r<n.length;r++){const s=n[r],o=n[r+1];if(s.type===20){const a=o&&$A(o)?o.number:e;t.push([s.value,a])}}return t},mU={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>{if(e.length===0)return null;const t=e[0];return t.type===20&&t.value==="none"?null:lp(e,1).map(([n,r])=>({counter:n,increment:r}))}},CU={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>e.length===0?[]:lp(e,0).filter(([t])=>t!=="none").map(([t,n])=>({counter:t,reset:n}))},bU={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(A,e)=>e.filter(ot).map(t=>ip.parse(A,t))},QU={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>{if(e.length===0)return null;const t=e[0];if(t.type===20&&t.value==="none")return null;const n=[],r=e.filter(LQ);if(r.length%2!==0)return null;for(let s=0;s<r.length;s+=2){const o=r[s].value,a=r[s+1].value;n.push({open:o,close:a})}return n}},up=(A,e,t)=>{if(!A)return"";const n=A[Math.min(e,A.length-1)];return n?t?n.open:n.close:""},yU={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.length===1&&Rr(e[0],"none")?[]:Pe(e).map(t=>{const n={color:255,offsetX:LA,offsetY:LA,blur:LA,spread:LA,inset:!1};let r=0;for(let s=0;s<t.length;s++){const o=t[s];Rr(o,"inset")?n.inset=!0:Mt(o)?(r===0?n.offsetX=o:r===1?n.offsetY=o:r===2?n.blur=o:n.spread=o,r++):n.color=Kt.parse(A,o)}return n})},UU={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(A,e)=>{const t=[0,1,2],n=[];return e.filter(j).forEach(r=>{switch(r.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),t.forEach(r=>{n.indexOf(r)===-1&&n.push(r)}),n}},EU={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},FU={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:(A,e)=>ot(e)?e.number:0},kU={name:"-webkit-line-clamp",initialValue:"none",prefix:!0,type:0,parse:(A,e)=>e.type===20&&e.value==="none"?0:e.type===17?Math.max(0,Math.floor(e.number)):0},vU={name:"object-fit",initialValue:"fill",prefix:!1,type:1,parse:(A,e)=>e.filter(j).reduce((t,n)=>t|_U(n.value),0)},_U=A=>{switch(A){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},xU={name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"ellipsis":return 1;default:return 0}}},SU={name:"image-rendering",initialValue:"auto",prefix:!1,type:2,parse:(A,e)=>{switch(e.toLowerCase()){case"crisp-edges":case"-webkit-crisp-edges":case"-moz-crisp-edges":return 1;case"pixelated":case"-webkit-optimize-contrast":return 2;case"smooth":case"high-quality":return 3;default:return 0}}},VA={NORMAL:"normal",MULTIPLY:"multiply",SCREEN:"screen",OVERLAY:"overlay",DARKEN:"darken",LIGHTEN:"lighten",COLOR_DODGE:"color-dodge",COLOR_BURN:"color-burn",HARD_LIGHT:"hard-light",SOFT_LIGHT:"soft-light",DIFFERENCE:"difference",EXCLUSION:"exclusion",HUE:"hue",SATURATION:"saturation",COLOR:"color",LUMINOSITY:"luminosity"},IU=new Set(Object.values(VA)),TU={name:"mix-blend-mode",initialValue:"normal",type:2,prefix:!1,parse:(A,e)=>IU.has(e)?e:VA.NORMAL},HU={name:"filter",initialValue:"none",prefix:!1,type:1,parse:(A,e)=>{if(e.length===1&&e[0].type===20&&e[0].value==="none")return null;const t=[];for(const n of e)if(n.type===18){const r=n,s=LU(r.values);switch(r.name){case"blur":t.push(`blur(${s}px)`);break;case"brightness":case"contrast":case"invert":case"opacity":case"saturate":case"sepia":t.push(`${r.name}(${s})`);break;case"grayscale":t.push(`grayscale(${s})`);break;case"hue-rotate":t.push(`hue-rotate(${s}deg)`);break;case"drop-shadow":t.push(`drop-shadow(${s})`);break}}return t.length>0?t.join(" "):null}},LU=A=>{const e=[];for(const t of A)t.type!==31&&(t.type===15?e.push(`${t.number}${t.unit}`):t.type===17?e.push(`${t.number}`):t.type===16?e.push(`${t.number}%`):t.type===20?e.push(t.value):t.type===5&&e.push(`#${t.value}`));return e.join(" ")},DU={name:"font-variant-ligatures",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"none":return 1;case"common-ligatures":return 2;case"no-common-ligatures":return 3;case"discretionary-ligatures":return 4;case"no-discretionary-ligatures":return 5;case"historical-ligatures":return 6;case"no-historical-ligatures":return 7;case"contextual":return 8;case"no-contextual":return 9;default:return 0}}},RU={name:"zoom",initialValue:"1",type:0,prefix:!1,parse:(A,e)=>e.type===16?Math.max(0,e.number/100):e.type===17?Math.max(0,e.number):1},OU={name:"object-position",initialValue:"50% 50%",prefix:!1,type:1,parse:(A,e)=>{const t=[];let n=0;for(;n<e.length&&t.length<2;){const r=e[n];if(j(r))switch(r.value){case"left":case"top":t.push(LA);break;case"center":t.push(Ct);break;case"right":case"bottom":t.push(Ke);break}else iA(r)&&t.push(r);n++}for(;t.length<2;)t.push(Ct);return[t[0],t[1]]}},MU=new Set(Object.values({NORMAL:"normal",MULTIPLY:"multiply",SCREEN:"screen",OVERLAY:"overlay",DARKEN:"darken",LIGHTEN:"lighten",COLOR_DODGE:"color-dodge",COLOR_BURN:"color-burn",HARD_LIGHT:"hard-light",SOFT_LIGHT:"soft-light",DIFFERENCE:"difference",EXCLUSION:"exclusion",HUE:"hue",SATURATION:"saturation",COLOR:"color",LUMINOSITY:"luminosity"})),PU={name:"background-blend-mode",initialValue:"normal",prefix:!1,type:1,parse:(A,e)=>{const t=[],n=e.filter(GA);for(const r of n)j(r)&&MU.has(r.value)&&t.push(r.value);return t.length>0?t:["normal"]}},KU={name:"border-image-source",initialValue:"none",prefix:!1,type:1,skipCache:!0,parse:(A,e)=>{if(e.length===0)return null;const t=e.filter(n=>GA(n)&&ep(n));return t.length===0?null:Qo.parse(A,t[0])}},NU=A=>{const e=[...A];return e.length===1?e.push(e[0],e[0],e[0]):e.length===2?e.push(e[0],e[1]):e.length===3&&e.push(e[1]),e.slice(0,4)},zU={name:"border-image-slice",initialValue:"100%",prefix:!1,type:1,parse:(A,e)=>{const t=e.filter(Or),n=[];let r=!1,s="percent";for(const u of t){if(j(u)&&u.value==="fill"){r=!0;continue}u.type===17?(n.push(u.number),s="number"):u.type===16&&(n.push(u.number),s="percent")}const[o,a,i,l]=NU(n.length>0?n:[100]);return{top:o,right:a,bottom:i,left:l,fill:r,unit:s}}},$U=A=>{switch(A){case"repeat":return 1;case"round":return 2;case"space":return 3;default:return 0}},GU={name:"border-image-repeat",initialValue:"stretch",prefix:!1,type:1,parse:(A,e)=>{var s,o;const t=e.filter(Or),n=[];for(const a of t)j(a)&&n.push($U(a.value));const r=(s=n[0])!=null?s:0;return{horizontal:r,vertical:(o=n[1])!=null?o:r}}},VU={name:"box-decoration-break",initialValue:"slice",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"clone":return 1;default:return 0}}},ZU=1e4;var XU=class{constructor(A){this.styles=A}get topColor(){return this.styles.borderTopColor}get rightColor(){return this.styles.borderRightColor}get bottomColor(){return this.styles.borderBottomColor}get leftColor(){return this.styles.borderLeftColor}get topStyle(){return this.styles.borderTopStyle}get rightStyle(){return this.styles.borderRightStyle}get bottomStyle(){return this.styles.borderBottomStyle}get leftStyle(){return this.styles.borderLeftStyle}get topWidth(){return this.styles.borderTopWidth}get rightWidth(){return this.styles.borderRightWidth}get bottomWidth(){return this.styles.borderBottomWidth}get leftWidth(){return this.styles.borderLeftWidth}get topLeftRadius(){return this.styles.borderTopLeftRadius}get topRightRadius(){return this.styles.borderTopRightRadius}get bottomRightRadius(){return this.styles.borderBottomRightRadius}get bottomLeftRadius(){return this.styles.borderBottomLeftRadius}get imageSource(){return this.styles.borderImageSource}get imageSlice(){return this.styles.borderImageSlice}get imageRepeat(){return this.styles.borderImageRepeat}get boxShadow(){return this.styles.boxShadow}},WU=class{constructor(A){this.styles=A}get color(){return this.styles.backgroundColor}get image(){return this.styles.backgroundImage}get clip(){return this.styles.backgroundClip}get origin(){return this.styles.backgroundOrigin}get position(){return this.styles.backgroundPosition}get repeat(){return this.styles.backgroundRepeat}get size(){return this.styles.backgroundSize}get blendMode(){return this.styles.backgroundBlendMode}},JU=class{constructor(A){this.styles=A}get family(){return this.styles.fontFamily}get size(){return this.styles.fontSize}get style(){return this.styles.fontStyle}get variant(){return this.styles.fontVariant}get weight(){return this.styles.fontWeight}get ligatures(){return this.styles.fontVariantLigatures}get color(){return this.styles.color}get letterSpacing(){return this.styles.letterSpacing}get lineHeight(){return this.styles.lineHeight}get textAlign(){return this.styles.textAlign}get textTransform(){return this.styles.textTransform}get textOverflow(){return this.styles.textOverflow}get textShadow(){return this.styles.textShadow}get textDecorationColor(){return this.styles.textDecorationColor}get textDecorationLine(){return this.styles.textDecorationLine}get textDecorationStyle(){return this.styles.textDecorationStyle}get textDecorationThickness(){return this.styles.textDecorationThickness}get textUnderlineOffset(){return this.styles.textUnderlineOffset}get wordBreak(){return this.styles.wordBreak}get lineBreak(){return this.styles.lineBreak}get overflowWrap(){return this.styles.overflowWrap}get writingMode(){return this.styles.writingMode}get direction(){return this.styles.direction}get webkitTextStrokeColor(){return this.styles.webkitTextStrokeColor}get webkitTextStrokeWidth(){return this.styles.webkitTextStrokeWidth}get webkitLineClamp(){return this.styles.webkitLineClamp}get paintOrder(){return this.styles.paintOrder}},jU=class{constructor(A){this.styles=A}get display(){return this.styles.display}get position(){return this.styles.position}get float(){return this.styles.float}get zIndex(){return this.styles.zIndex}get marginTop(){return this.styles.marginTop}get marginRight(){return this.styles.marginRight}get marginBottom(){return this.styles.marginBottom}get marginLeft(){return this.styles.marginLeft}get paddingTop(){return this.styles.paddingTop}get paddingRight(){return this.styles.paddingRight}get paddingBottom(){return this.styles.paddingBottom}get paddingLeft(){return this.styles.paddingLeft}get overflowX(){return this.styles.overflowX}get overflowY(){return this.styles.overflowY}get opacity(){return this.styles.opacity}get visibility(){return this.styles.visibility}get transform(){return this.styles.transform}get transformOrigin(){return this.styles.transformOrigin}get rotate(){return this.styles.rotate}get zoom(){return this.styles.zoom}get clipPath(){return this.styles.clipPath}get mixBlendMode(){return this.styles.mixBlendMode}get filter(){return this.styles.filter}get imageRendering(){return this.styles.imageRendering}get objectFit(){return this.styles.objectFit}get objectPosition(){return this.styles.objectPosition}get boxDecorationBreak(){return this.styles.boxDecorationBreak}get listStyleImage(){return this.styles.listStyleImage}get listStylePosition(){return this.styles.listStylePosition}get listStyleType(){return this.styles.listStyleType}get animationDuration(){return this.styles.animationDuration}isVisible(){return this.styles.isVisible()}isTransparent(){return this.styles.isTransparent()}isTransformed(){return this.styles.isTransformed()}isPositioned(){return this.styles.isPositioned()}isPositionedWithZIndex(){return this.styles.isPositionedWithZIndex()}isFloating(){return this.styles.isFloating()}isInlineLevel(){return this.styles.isInlineLevel()}},YU=(yn=class{get border(){var e;return(e=this._border)!=null?e:this._border=new XU(this)}get background(){var e;return(e=this._background)!=null?e:this._background=new WU(this)}get font(){var e;return(e=this._font)!=null?e:this._font=new JU(this)}get layout(){var e;return(e=this._layout)!=null?e:this._layout=new jU(this)}constructor(e,t){var s,o;const n=yn.standardProps;if(t.display==="none"){this.display=0;for(const[i,l]of n)i!=="display"&&(this[i]=Be(e,l,void 0));this.float=Be(e,rp,void 0),this.textDecorationColor=Be(e,ap,void 0),this.textDecorationLine=Be(e,cp,void 0);const a=Be(e,sp,void 0);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0];return}for(const[a,i,l]of n)this[a]=Be(e,i,t[l]);this.float=Be(e,rp,t.cssFloat),this.textDecorationColor=Be(e,ap,(s=t.textDecorationColor)!=null?s:t.color),this.textDecorationLine=Be(e,cp,(o=t.textDecorationLine)!=null?o:t.textDecoration);const r=Be(e,sp,t.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0]}isVisible(){return this.display>0&&this.opacity>0&&this.visibility===0}isTransparent(){return bt(this.backgroundColor)}isTransformed(){return this.transform!==null||this.rotate!==null}isPositioned(){return this.position!==0}isPositionedWithZIndex(){return this.isPositioned()&&!this.zIndex.auto}isFloating(){return this.float!==0}isInlineLevel(){return qA(this.display,4)||qA(this.display,33554432)||qA(this.display,268435456)||qA(this.display,536870912)||qA(this.display,67108864)||qA(this.display,134217728)}},yn.standardProps=[["animationDuration",bU,"animationDuration"],["backgroundClip",Zy,"backgroundClip"],["backgroundColor",Xy,"backgroundColor"],["backgroundImage",t0,"backgroundImage"],["backgroundOrigin",n0,"backgroundOrigin"],["backgroundPosition",r0,"backgroundPosition"],["backgroundRepeat",s0,"backgroundRepeat"],["backgroundSize",i0,"backgroundSize"],["borderTopColor",c0,"borderTopColor"],["borderRightColor",l0,"borderRightColor"],["borderBottomColor",u0,"borderBottomColor"],["borderLeftColor",d0,"borderLeftColor"],["borderTopLeftRadius",p0,"borderTopLeftRadius"],["borderTopRightRadius",h0,"borderTopRightRadius"],["borderBottomRightRadius",f0,"borderBottomRightRadius"],["borderBottomLeftRadius",g0,"borderBottomLeftRadius"],["borderTopStyle",B0,"borderTopStyle"],["borderRightStyle",w0,"borderRightStyle"],["borderBottomStyle",m0,"borderBottomStyle"],["borderLeftStyle",C0,"borderLeftStyle"],["borderTopWidth",b0,"borderTopWidth"],["borderRightWidth",Q0,"borderRightWidth"],["borderBottomWidth",y0,"borderBottomWidth"],["borderLeftWidth",U0,"borderLeftWidth"],["boxShadow",yU,"boxShadow"],["clipPath",x0,"clipPath"],["color",S0,"color"],["direction",I0,"direction"],["display",T0,"display"],["fontFamily",pU,"fontFamily"],["fontSize",hU,"fontSize"],["fontStyle",BU,"fontStyle"],["fontVariant",gU,"fontVariant"],["fontWeight",fU,"fontWeight"],["letterSpacing",L0,"letterSpacing"],["lineBreak",D0,"lineBreak"],["lineHeight",R0,"lineHeight"],["listStyleImage",O0,"listStyleImage"],["listStylePosition",M0,"listStylePosition"],["listStyleType",xa,"listStyleType"],["marginTop",P0,"marginTop"],["marginRight",K0,"marginRight"],["marginBottom",N0,"marginBottom"],["marginLeft",z0,"marginLeft"],["opacity",cU,"opacity"],["overflowWrap",$0,"overflowWrap"],["paddingTop",G0,"paddingTop"],["paddingRight",V0,"paddingRight"],["paddingBottom",Z0,"paddingBottom"],["paddingLeft",X0,"paddingLeft"],["paintOrder",UU,"paintOrder"],["position",J0,"position"],["textAlign",W0,"textAlign"],["textDecorationStyle",lU,"textDecorationStyle"],["textDecorationThickness",uU,"textDecorationThickness"],["textUnderlineOffset",dU,"textUnderlineOffset"],["textShadow",j0,"textShadow"],["textTransform",Y0,"textTransform"],["textOverflow",xU,"textOverflow"],["transform",q0,"transform"],["transformOrigin",tU,"transformOrigin"],["rotate",nU,"rotate"],["visibility",rU,"visibility"],["webkitTextStrokeColor",EU,"webkitTextStrokeColor"],["webkitTextStrokeWidth",FU,"webkitTextStrokeWidth"],["webkitLineClamp",kU,"webkitLineClamp"],["wordBreak",sU,"wordBreak"],["whiteSpace",oU,"whiteSpace"],["writingMode",iU,"writingMode"],["zIndex",aU,"zIndex"],["objectFit",vU,"objectFit"],["imageRendering",SU,"imageRendering"],["mixBlendMode",TU,"mixBlendMode"],["filter",HU,"filter"],["fontVariantLigatures",DU,"fontVariantLigatures"],["zoom",RU,"zoom"],["objectPosition",OU,"objectPosition"],["backgroundBlendMode",PU,"backgroundBlendMode"],["borderImageSource",KU,"borderImageSource"],["borderImageSlice",zU,"borderImageSlice"],["borderImageRepeat",GU,"borderImageRepeat"],["boxDecorationBreak",VU,"boxDecorationBreak"]],yn),qU=class{constructor(A,e){this.content=Be(A,wU,e.content),this.quotes=Be(A,QU,e.quotes)}},dp=class{constructor(A,e){this.counterIncrement=Be(A,mU,e.counterIncrement),this.counterReset=Be(A,CU,e.counterReset)}};const pp=new Map,Be=(A,e,t)=>{let n=t!==null&&typeof t!="undefined"?t.toString():e.initialValue;n.trim()===""&&(n=e.initialValue);let r=pp.get(e);if(r){const i=r.get(n);if(i!==void 0)return r.delete(n),r.set(n,i),i}const s=Qa.get();s.write(n);const o=new id(s.read());Qa.release(s);const a=(()=>{switch(e.type){case 2:{const i=o.parseComponentValue();return e.parse(A,j(i)?i.value:e.initialValue)}case 0:return e.parse(A,o.parseComponentValue());case 1:return e.parse(A,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(e.format){case"angle":return Zn.parse(A,o.parseComponentValue());case"color":return Kt.parse(A,o.parseComponentValue());case"image":return Qo.parse(A,o.parseComponentValue());case"length":{const i=o.parseComponentValue();return Mt(i)?i:LA}case"length-percentage":{const i=o.parseComponentValue();return iA(i)?i:LA}case"time":return ip.parse(A,o.parseComponentValue())}}})();if(r||(r=new Map,pp.set(e,r)),!(e.skipCache||e.type===3&&e.format==="image")){if(r.size>=200){const i=r.keys().next().value;r.delete(i)}r.set(n,a)}return a},AE="data-html2canvas-debug",eE=A=>{if(typeof A.getAttribute!="function")return 0;switch(A.getAttribute(AE)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ra=(A,e)=>{const t=eE(A);return t===1||e===t},tE="data-html2canvas-ignore";var nE=class{constructor(A,e,t){this.cloneNodeFn=A,this.options=e,this.context=t}appendChildNode(A,e,t){this.safeAppendClonedChild(A,e,t)}cloneChildNodes(A,e,t){A.shadowRoot&&e.shadowRoot?(this.cloneShadowDOMChildren(A.shadowRoot,e.shadowRoot,t),this.cloneLightDOMChildren(A,e,t)):A.shadowRoot&&!e.shadowRoot?this.cloneShadowDOMAsLightDOM(A.shadowRoot,e,t):this.cloneLightDOMChildren(A,e,t)}shouldCloneChild(A){return!sn(A)||!Ly(A)&&!A.hasAttribute("data-html2canvas-ignore")&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A))}shouldCloneStyleElement(A){return!this.options.copyStyles||!sn(A)||!Dd(A)}safeAppendClonedChild(A,e,t){this.shouldCloneChild(e)&&this.shouldCloneStyleElement(e)&&A.appendChild(this.cloneNodeFn(e,t))}cloneAssignedNodes(A,e,t){A.forEach(n=>{this.safeAppendClonedChild(e,n,t)})}cloneSlotFallbackContent(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)this.safeAppendClonedChild(e,n,t)}cloneSlotElement(A,e,t){if(!Nr(A))return;const n=A;if(typeof n.assignedNodes!="function"){this.context.logger.warn("HTMLSlotElement.assignedNodes is not available",A),this.cloneSlotFallbackContent(A,e,t);return}const r=n.assignedNodes();if(!r||!Array.isArray(r)){this.context.logger.warn("assignedNodes() did not return a valid array",A),this.cloneSlotFallbackContent(A,e,t);return}r.length>0?this.cloneAssignedNodes(r,e,t):this.cloneSlotFallbackContent(A,e,t)}cloneShadowDOMChildren(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)sn(n)&&Nr(n)?this.cloneSlotElement(n,e,t):this.safeAppendClonedChild(e,n,t)}cloneLightDOMChildren(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)this.appendChildNode(e,n,t)}cloneSlotElementAsLightDOM(A,e,t){if(!Nr(A))return;const n=A;if(typeof n.assignedNodes!="function"){for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,t);return}const r=n.assignedNodes();if(r&&Array.isArray(r)&&r.length>0)r.forEach(s=>this.appendChildNode(e,s,t));else for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,t)}cloneShadowDOMAsLightDOM(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)sn(n)&&Nr(n)?this.cloneSlotElementAsLightDOM(n,e,t):this.appendChildNode(e,n,t)}};const rE=A=>{let e=A;for(;e;){if(e.parentNode&&e.parentNode.host)return e.parentNode;const t=e.getRootNode();if(t&&t!==e.ownerDocument&&t.host)return t;e=e.parentNode}return null};var Oa=class{constructor(A,e,t){var n;if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Py,this.quoteDepth=0,this.slotCloner=new nE((r,s)=>this.cloneNode(r,s),{ignoreElements:t.ignoreElements,copyStyles:(n=t.copyStyles)!=null?n:!0},A),!e.ownerDocument)throw new Error("Cloned element does not have an owner document");if(!this.options.iframeContainer){const r=rE(e);r&&(this.options.iframeContainer=r)}this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}toIFrame(A,e){var h,f;const t=sE(A,e,this.options.iframeContainer);if(!t.contentWindow)throw new Error("Unable to find iframe window");const n=A.defaultView.pageXOffset,r=A.defaultView.pageYOffset,s=t.contentWindow,o=s.document,a=aE(t).then(()=>T(this,null,function*(){this.scrolledElements.forEach(dE),s&&s.scrollTo(e.left,e.top);const g=this.options.onclone,m=this.clonedReferenceElement;if(typeof m=="undefined")throw new Error(`Error finding the ${this.referenceElement.nodeName} in the cloned document`);return o.fonts&&o.fonts.ready&&(yield o.fonts.ready),/(AppleWebKit)/g.test(navigator.userAgent)&&(yield iE(o)),typeof g=="function"&&(yield Promise.resolve().then(()=>g(o,m))),s.scrollTo(e.left,e.top),/AppleWebKit/g.test(navigator.userAgent)&&(s.scrollY!==e.top||s.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0)),t})),i=A.baseURI;o.open();const l=lE(document.doctype)+"<html></html>";try{const g=(h=this.referenceElement.ownerDocument)==null?void 0:h.defaultView,m=g&&g.trustedTypes;let Q=(f=m==null?void 0:m.getPolicy)==null?void 0:f.call(m,"html2canvas-pro");!Q&&m&&(Q=m.createPolicy("html2canvas-pro",{createHTML:E=>E}));const U=Q?Q.createHTML(l):l;o.write(U)}catch(g){o.write(l)}uE(this.referenceElement.ownerDocument,n,r),o.close();const u=o.adoptNode(this.documentElement);return BE(u,i),o.replaceChild(u,o.documentElement),a}createElementClone(A){if(Ra(A,2))debugger;if(Td(A))return this.createCanvasClone(A);if(Hd(A))return this.createVideoClone(A);if(Dd(A))return this.createStyleClone(A);const e=A.cloneNode(!1);return _a(e)&&(_a(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Rd(e)&&!on(e)?this.createCustomElementClone(A,e):e}createCustomElementClone(A,e){const t=document.createElement("div");t.className=e.className,Ma(e.style,t);const n=e.attributes;for(let r=0;r<n.length;r++){const s=n[r];s.name!=="class"&&s.name!=="style"&&t.setAttribute(s.name,s.value)}if(A.shadowRoot)try{t.attachShadow({mode:"open"})}catch(r){this.context.logger.error("Failed to attach shadow root to custom element clone:",r)}return t}createStyleClone(A){try{const t=A.sheet;if(t&&t.cssRules){const n=[].slice.call(t.cssRules,0).reduce((s,o)=>o&&typeof o.cssText=="string"?s+o.cssText:s,""),r=A.cloneNode(!1);return r.textContent=n,this.options.cspNonce&&(r.nonce=this.options.cspNonce),r}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),t.name!=="SecurityError")throw t}const e=A.cloneNode(!1);return this.options.cspNonce&&(e.nonce=this.options.cspNonce),e}createCanvasClone(A){var t,n;if(this.options.inlineImages&&A.ownerDocument){const r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch(s){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}const e=A.cloneNode(!1);try{e.width=A.width,e.height=A.height;const r=A.getContext("2d"),s=e.getContext("2d",{willReadFrequently:!0});if(s)if(!this.options.allowTaint&&r)s.putImageData(r.getImageData(0,0,A.width,A.height),0,0);else{const o=(t=A.getContext("webgl2"))!=null?t:A.getContext("webgl");o&&((n=o.getContextAttributes())==null?void 0:n.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A),s.drawImage(A,0,0)}return e}catch(r){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return e}createVideoClone(A){const e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;const t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(r){this.context.logger.info("Unable to clone video as it is tainted",A)}const n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n}appendChildNode(A,e,t){this.slotCloner.appendChildNode(A,e,t)}cloneChildNodes(A,e,t){this.slotCloner.cloneChildNodes(A,e,t)}cloneNode(A,e){if(Sd(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);const t=A.ownerDocument.defaultView;if(t&&sn(A)&&(Kr(A)||on(A))){const n=this.createElementClone(A);n.style.transitionProperty="none";const r=t.getComputedStyle(A),s=My(A);this.referenceElement===A&&Kr(n)&&(this.clonedReferenceElement=n),va(n)&&fE(n,this.options.cspNonce);const o=this.counters.parse(new dp(this.context,r));if(s){const a=t.getComputedStyle(A,":before"),i=this.resolvePseudoContent(A,n,a,0);i&&n.insertBefore(i,n.firstChild);const l=t.getComputedStyle(A,":after"),u=this.resolvePseudoContent(A,n,l,1);u&&n.appendChild(u)}return Rd(A)&&(e=!0),Hd(A)||this.cloneChildNodes(A,n,e),this.counters.pop(o),(r&&(this.options.copyStyles||on(A))&&!Ld(A)||e)&&Ma(r,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(Bo(A)||wo(A))&&(Bo(n)||wo(n))&&(n.value=A.value),n}return A.cloneNode(!1)}resolvePseudoContent(A,e,t,n){if(!t)return;const r=t.content,s=e.ownerDocument;if(!s||!r||r==="none"||r==="-moz-alt-content"||t.display==="none")return;this.counters.parse(new dp(this.context,t));const o=new qU(this.context,t),a=s.createElement("html2canvaspseudoelement");Ma(t,a),o.content.forEach(l=>{if(l.type===0)a.appendChild(s.createTextNode(l.value));else if(l.type===22){const u=s.createElement("img");u.src=l.value,u.style.opacity="1",a.appendChild(u)}else if(l.type===18){if(l.name==="attr"){const u=l.values.filter(j);u.length&&a.appendChild(s.createTextNode(A.getAttribute(u[0].value)||""))}else if(l.name==="counter"){const[u,h]=l.values.filter(GA);if(u&&j(u)){const f=this.counters.getCounterValue(u.value),g=h&&j(h)?xa.parse(this.context,h.value):3;a.appendChild(s.createTextNode(zr(f,g,!1)))}}else if(l.name==="counters"){const[u,h,f]=l.values.filter(GA);if(u&&j(u)){const g=this.counters.getCounterValues(u.value),m=f&&j(f)?xa.parse(this.context,f.value):3,Q=h&&h.type===0?h.value:"",U=g.map(E=>zr(E,m,!1)).join(Q);a.appendChild(s.createTextNode(U))}}}else if(l.type===20)switch(l.value){case"open-quote":a.appendChild(s.createTextNode(up(o.quotes,this.quoteDepth++,!0)));break;case"close-quote":a.appendChild(s.createTextNode(up(o.quotes,--this.quoteDepth,!1)));break;default:a.appendChild(s.createTextNode(l.value))}}),a.className=`${Pa} ${Ka}`;const i=n===0?` ${Pa}`:` ${Ka}`;return on(e)?e.className.baseValue+=i:e.className+=i,a}static destroy(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1}};const sE=(A,e,t)=>{const n=A.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(tE,"true"),(t||A.body).appendChild(n),n},oE=A=>new Promise(e=>{if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e}),iE=A=>Promise.all([].slice.call(A.images,0).map(oE)),aE=A=>new Promise((e,t)=>{const n=A.contentWindow;if(!n)return t("No window assigned for iframe");const r=n.document;n.onload=A.onload=()=>{n.onload=A.onload=null;const s=600;let o=0;const a=setInterval(()=>{o++,(r.body.childNodes.length>0&&r.readyState==="complete"||o>=s)&&(clearInterval(a),e(A))},50)}}),cE=["all","d","content"],Ma=(A,e)=>{const t=[];for(let n=A.length-1;n>=0;n--){const r=A.item(n);if(cE.indexOf(r)===-1&&!r.startsWith("--")){const s=A.getPropertyValue(r);if(s){const o=A.getPropertyPriority(r);t.push(o?`${r}:${s} !${o}`:`${r}:${s}`)}}}return t.length>0&&(e.style.cssText=t.join(";")+";"),e},lE=A=>{let e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=" "+A.internalSubset.replace(/"/g,"&quot;").replace(/>/g,"&gt;")),A.publicId?(e+=' PUBLIC "'+A.publicId.replace(/"/g,"&quot;")+'"',A.systemId&&(e+=' "'+A.systemId.replace(/"/g,"&quot;")+'"')):A.systemId&&(e+=' SYSTEM "'+A.systemId.replace(/"/g,"&quot;")+'"'),e+=">"),e},uE=(A,e,t)=>{A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},dE=([A,e,t])=>{A.scrollLeft=e,A.scrollTop=t},pE=":before",hE=":after",Pa="___html2canvas___pseudoelement_before",Ka="___html2canvas___pseudoelement_after",hp=`{
1657
+ */var Mb=class il{constructor(e={}){const t=e.window||(typeof window!="undefined"?window:void 0);if(!t)throw new Error("Window object is required but not available");this.window=t,this.cspNonce=e.cspNonce,this.cache=e.cache}static fromElement(e,t={}){const n=e.ownerDocument;if(!n)throw new Error("Element is not attached to a document");const r=n.defaultView;if(!r)throw new Error("Document is not attached to a window");return new il(F({window:r},t))}clone(e={}){var t,n;return new il({window:e.window||this.window,cspNonce:(t=e.cspNonce)!=null?t:this.cspNonce,cache:(n=e.cache)!=null?n:this.cache})}},Nb=class{constructor(A={}){this.config=F({maxImageTimeout:3e5,allowDataUrls:!0},A)}validateUrl(A,e="general"){if(!A||typeof A!="string")return{valid:!1,error:"URL must be a non-empty string"};if(A.startsWith("data:"))return this.config.allowDataUrls?{valid:!0,sanitized:A}:{valid:!1,error:"Data URLs are not allowed"};if(A.startsWith("blob:"))return{valid:!0,sanitized:A};try{const t=new URL(A);if(!["http:","https:"].includes(t.protocol))return{valid:!1,error:`Protocol ${t.protocol} is not allowed. Only http and https are permitted.`};if(e==="proxy"&&this.config.allowedProxyDomains&&this.config.allowedProxyDomains.length>0){const n=t.hostname.toLowerCase();if(!this.config.allowedProxyDomains.some(r=>{const s=r.toLowerCase();return n===s||n.endsWith("."+s)}))return{valid:!1,error:`Proxy domain ${t.hostname} is not in the allowed list`}}if(e==="proxy"){if(!this.config.allowLocalhostProxy){const n=t.hostname.toLowerCase();if(n==="localhost"||n==="127.0.0.1"||n==="::1")return{valid:!1,error:"Localhost is not allowed for proxy URLs"};if(this.isPrivateIP(n))return{valid:!1,error:"Private IP addresses are not allowed for proxy URLs"};if(n.startsWith("169.254.")||n.startsWith("fe80:"))return{valid:!1,error:"Link-local addresses are not allowed for proxy URLs"}}return{valid:!0,sanitized:A,requiresRuntimeCheck:!0}}return{valid:!0,sanitized:A}}catch(t){return{valid:!1,error:`Invalid URL format: ${t instanceof Error?t.message:"Unknown error"}`}}}isPrivateIP(A){return[/^0\./,/^10\./,/^100\.(6[4-9]|[7-9][0-9]|1[0-1][0-9]|12[0-7])\./,/^127\./,/^169\.254\./,/^172\.(1[6-9]|2[0-9]|3[0-1])\./,/^192\.0\.0\./,/^192\.0\.2\./,/^192\.168\./,/^198\.(1[8-9])\./,/^198\.51\.100\./,/^203\.0\.113\./,/^2(2[4-9]|3[0-9])\./,/^24[0-9]\./,/^255\.255\.255\.255$/].some(e=>e.test(A))?!0:A.includes(":")?this.isPrivateIPv6(A):!1}isPrivateIPv6(A){const e=A.toLowerCase().trim().replace(/^\[|\]$/g,"").split("%")[0];if(/^(0:){7}1$/.test(e)||e==="::1"||/^(0:){7}0$/.test(e)||e==="::")return!0;const t=this.expandIPv6(e);if(!t)return this.isPrivateIPv6Prefix(e);const n=parseInt(t.substring(0,2),16);if(n>=252&&n<=253)return!0;if(n===254){const r=parseInt(t.substring(2,4),16);if(r>=128&&r<=191)return!0}return n===255}expandIPv6(A){try{if(A.includes("::")){const e=A.split("::");if(e.length>2)return null;const t=e[0]?e[0].split(":"):[],n=e[1]?e[1].split(":"):[],r=8-t.length-n.length;if(r<0)return null;const s=Array(r).fill("0000");return[...t,...s,...n].map(o=>o.padStart(4,"0")).join(":")}else{const e=A.split(":");return e.length!==8?null:e.map(t=>t.padStart(4,"0")).join(":")}}catch(e){return null}}isPrivateIPv6Prefix(A){return!!(/^fc[0-9a-f]{0,2}:?/i.test(A)||/^fd[0-9a-f]{0,2}:?/i.test(A)||/^fe[89ab][0-9a-f]:?/i.test(A)||/^ff[0-9a-f]{0,2}:?/i.test(A))}validateCspNonce(A){return!A||typeof A!="string"?{valid:!1,error:"CSP nonce must be a non-empty string"}:A.length<16?{valid:!1,error:"CSP nonce is too short (minimum 16 characters recommended)"}:/^[A-Za-z0-9+/=_-]+$/.test(A)?{valid:!0,sanitized:A}:{valid:!1,error:"CSP nonce contains invalid characters"}}validateImageTimeout(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Image timeout must be a number"}:A<0?{valid:!1,error:"Image timeout cannot be negative"}:this.config.maxImageTimeout&&A>this.config.maxImageTimeout?{valid:!1,error:`Image timeout ${A}ms exceeds maximum allowed ${this.config.maxImageTimeout}ms`}:{valid:!0,sanitized:A}}validateDimensions(A,e){if(typeof A!="number"||typeof e!="number")return{valid:!1,error:"Dimensions must be numbers"};if(isNaN(A)||isNaN(e))return{valid:!1,error:"Dimensions cannot be NaN"};if(A<=0||e<=0)return{valid:!1,error:"Dimensions must be positive"};const t=32767;return A>t||e>t?{valid:!1,error:`Dimensions exceed maximum allowed (${t}px)`}:{valid:!0,sanitized:{width:A,height:e}}}validateScale(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Scale must be a number"}:A<=0?{valid:!1,error:"Scale must be positive"}:A>10?{valid:!1,error:"Scale factor too large (maximum 10x)"}:{valid:!0,sanitized:A}}validateElement(A){if(!A)return{valid:!1,error:"Element is required"};if(typeof A!="object")return{valid:!1,error:"Element must be an object"};const e=A;return typeof HTMLElement!="undefined"&&A instanceof HTMLElement?A.ownerDocument?{valid:!0}:{valid:!1,error:"Element must be attached to a document"}:e.ownerDocument?e.ownerDocument.defaultView?{valid:!0}:{valid:!1,error:"Document must be attached to a window (ownerDocument.defaultView required)"}:{valid:!1,error:"Element must be attached to a document (ownerDocument required)"}}validateOptions(A){var n,r;const e=[],t=A.proxy;if(t!=null&&typeof t=="string"&&t.length>0){const s=this.validateUrl(t,"proxy");s.valid||e.push(`Proxy: ${s.error}`)}if(A.imageTimeout!==void 0){const s=this.validateImageTimeout(A.imageTimeout);s.valid||e.push(`Image timeout: ${s.error}`)}if(A.width!==void 0||A.height!==void 0){const s=(n=A.width)!=null?n:800,o=(r=A.height)!=null?r:600,a=this.validateDimensions(s,o);a.valid||e.push(`Dimensions: ${a.error}`)}if(A.scale!==void 0){const s=this.validateScale(A.scale);s.valid||e.push(`Scale: ${s.error}`)}if(A.cspNonce!==void 0){const s=this.validateCspNonce(A.cspNonce);s.valid||e.push(`CSP nonce: ${s.error}`)}if(this.config.customValidator){const s=this.config.customValidator(A,"options");s.valid||e.push(`Custom validation: ${s.error}`)}return e.length>0?{valid:!1,error:e.join("; ")}:{valid:!0}}};function Kb(A={}){return new Nb(F({allowDataUrls:!0,maxImageTimeout:3e5},A))}var $b=class{constructor(A,e=!0){this.context=A,this.activeMetrics=new Map,this.completedMetrics=[],this.enabled=e,this.getTime=typeof performance!="undefined"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now()}start(A,e){var t;this.enabled&&(this.activeMetrics.has(A)&&((t=this.context)==null||t.logger.warn(`Performance metric '${A}' already started. Overwriting.`)),this.activeMetrics.set(A,{name:A,startTime:this.getTime(),metadata:e}))}end(A){var t,n;if(!this.enabled)return;const e=this.activeMetrics.get(A);if(!e){(t=this.context)==null||t.logger.warn(`Performance metric '${A}' not found. Was start() called?`);return}return e.endTime=this.getTime(),e.duration=e.endTime-e.startTime,this.completedMetrics.push(e),this.activeMetrics.delete(A),(n=this.context)==null||n.logger.debug(`⏱️ ${A}: ${e.duration.toFixed(2)}ms`,e.metadata),e}measure(A,e,t){this.start(A,t);try{const n=e();return this.end(A),n}catch(n){throw this.end(A),n}}measureAsync(A,e,t){return I(this,null,function*(){this.start(A,t);try{const n=yield e();return this.end(A),n}catch(n){throw this.end(A),n}})}getMetrics(){return[...this.completedMetrics]}getMetric(A){return this.completedMetrics.find(e=>e.name===A)}getSummary(){const A=this.completedMetrics.reduce((t,n)=>t+(n.duration||0),0),e=this.completedMetrics.map(t=>({name:t.name,duration:t.duration||0,percentage:A>0?((t.duration||0)/A*100).toFixed(1)+"%":"0%"}));return{totalDuration:A,metrics:this.getMetrics(),breakdown:e}}logSummary(){if(!this.enabled||this.completedMetrics.length===0||!this.context)return;const A=this.getSummary();this.context.logger.info(`
1658
+ 📊 Performance Summary (Total: ${A.totalDuration.toFixed(2)}ms):`),A.breakdown.sort((e,t)=>t.duration-e.duration).forEach(e=>{this.context.logger.info(` ${e.name.padEnd(20)} ${e.duration.toFixed(2).padStart(8)}ms ${e.percentage.padStart(6)}`)})}clear(){this.activeMetrics.clear(),this.completedMetrics.splice(0)}isEnabled(){return this.enabled}getActiveMetrics(){return Array.from(this.activeMetrics.keys())}},ve=(je=class{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}add(e,t,n,r){return new je(this.left+e,this.top+t,this.width+n,this.height+r)}static fromClientRect(e,t){return new je(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)}static fromDOMRectList(e,t){const n=Array.from(t);let r=n.find(s=>s.width!==0);return r||(r=n.find(s=>s.height!==0)),!r&&n.length>0&&(r=n[0]),r?new je(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):je.EMPTY}},je.EMPTY=new je(0,0,0,0),je);const Lr=(A,e)=>ve.fromClientRect(A,e.getBoundingClientRect()),zb=A=>{const e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");return new ve(0,0,Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight)))};for(var no=function(A){for(var e=[],t=0,n=A.length;t<n;){var r=A.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var s=A.charCodeAt(t++);(s&64512)===56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),t--)}else e.push(r)}return e},HA=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var n=[],r=-1,s="";++r<t;){var o=A[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},Xu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vb=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ro=0;ro<Xu.length;ro++)Vb[Xu.charCodeAt(ro)]=ro;for(var Wu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),so=0;so<Wu.length;so++)Rr[Wu.charCodeAt(so)]=so;for(var Gb=function(A){var e=A.length*.75,t=A.length,n,r=0,s,o,a,i;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),u=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<t;n+=4)s=Rr[A.charCodeAt(n)],o=Rr[A.charCodeAt(n+1)],a=Rr[A.charCodeAt(n+2)],i=Rr[A.charCodeAt(n+3)],u[r++]=s<<2|o>>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|i&63;return c},Zb=function(A){for(var e=A.length,t=[],n=0;n<e;n+=2)t.push(A[n+1]<<8|A[n]);return t},Xb=function(A){for(var e=A.length,t=[],n=0;n<e;n+=4)t.push(A[n+3]<<24|A[n+2]<<16|A[n+1]<<8|A[n]);return t},on=5,ua=11,da=2,Wb=ua-on,Ju=65536>>on,pa=(1<<on)-1,Jb=Ju+(1024>>on)+32,jb=65536>>ua,Yb=(1<<Wb)-1,ju=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},qb=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},AQ=function(A,e){var t=Gb(A),n=Array.isArray(t)?Xb(t):new Uint32Array(t),r=Array.isArray(t)?Zb(t):new Uint16Array(t),s=24,o=ju(r,s/2,n[4]/2),a=n[5]===2?ju(r,(s+n[4])/2):qb(n,Math.ceil((s+n[4])/4));return new eQ(n[0],n[1],n[2],n[3],o,a)},eQ=(function(){function A(e,t,n,r,s,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=s,this.data=o}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>on],t=(t<<da)+(e&pa),this.data[t];if(e<=65535)return t=this.index[Ju+(e-55296>>on)],t=(t<<da)+(e&pa),this.data[t];if(e<this.highStart)return t=Jb-jb+(e>>ua),t=this.index[t],t+=e>>on&Yb,t=this.index[t],t=(t<<da)+(e&pa),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Yu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tQ=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),oo=0;oo<Yu.length;oo++)tQ[Yu.charCodeAt(oo)]=oo;var nQ="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAi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sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEED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IIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADA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AcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwN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BWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArA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AeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJ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B4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAK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ArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACU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gACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",qu=50,rQ=1,Ad=2,ed=3,sQ=4,oQ=5,td=7,nd=8,rd=9,$t=10,ha=11,sd=12,fa=13,iQ=14,Dr=15,ga=16,io=17,Or=18,aQ=19,od=20,Ba=21,Pr=22,wa=23,Xn=24,ye=25,Mr=26,Nr=27,Wn=28,cQ=29,an=30,lQ=31,ao=32,co=33,ma=34,Ca=35,ba=36,Kr=37,Qa=38,lo=39,uo=40,ya=41,id=42,uQ=43,dQ=[9001,65288],ad="!",rA="×",po="÷",Ua=AQ(nQ),yt=[an,ba],Ea=[rQ,Ad,ed,oQ],cd=[$t,nd],ld=[Nr,Mr],pQ=Ea.concat(cd),ud=[Qa,lo,uo,ma,Ca],hQ=[Dr,fa],fQ=function(A,e){e===void 0&&(e="strict");var t=[],n=[],r=[];return A.forEach(function(s,o){var a=Ua.get(s);if(a>qu?(r.push(!0),a-=qu):r.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(s)!==-1)return n.push(o),t.push(ga);if(a===sQ||a===ha){if(o===0)return n.push(o),t.push(an);var i=t[o-1];return pQ.indexOf(i)===-1?(n.push(n[o-1]),t.push(i)):(n.push(o),t.push(an))}if(n.push(o),a===lQ)return t.push(e==="strict"?Ba:Kr);if(a===id||a===cQ)return t.push(an);if(a===uQ)return s>=131072&&s<=196605||s>=196608&&s<=262141?t.push(Kr):t.push(an);t.push(a)}),[n,t,r]},ka=function(A,e,t,n){var r=n[t];if(Array.isArray(A)?A.indexOf(r)!==-1:A===r)for(var s=t;s<=n.length;){s++;var o=n[s];if(o===e)return!0;if(o!==$t)break}if(r===$t)for(var s=t;s>0;){s--;var a=n[s];if(Array.isArray(A)?A.indexOf(a)!==-1:A===a)for(var i=t;i<=n.length;){i++;var o=n[i];if(o===e)return!0;if(o!==$t)break}if(a!==$t)break}return!1},dd=function(A,e){for(var t=A;t>=0;){var n=e[t];if(n===$t)t--;else return n}return 0},gQ=function(A,e,t,n,r){if(t[n]===0)return rA;var s=n-1;if(Array.isArray(r)&&r[s]===!0)return rA;var o=s-1,a=s+1,i=e[s],c=o>=0?e[o]:0,u=e[a];if(i===Ad&&u===ed)return rA;if(Ea.indexOf(i)!==-1)return ad;if(Ea.indexOf(u)!==-1||cd.indexOf(u)!==-1)return rA;if(dd(s,e)===nd)return po;if(Ua.get(A[s])===ha||(i===ao||i===co)&&Ua.get(A[a])===ha||i===td||u===td||i===rd||[$t,fa,Dr].indexOf(i)===-1&&u===rd||[io,Or,aQ,Xn,Wn].indexOf(u)!==-1||dd(s,e)===Pr||ka(wa,Pr,s,e)||ka([io,Or],Ba,s,e)||ka(sd,sd,s,e))return rA;if(i===$t)return po;if(i===wa||u===wa)return rA;if(u===ga||i===ga)return po;if([fa,Dr,Ba].indexOf(u)!==-1||i===iQ||c===ba&&hQ.indexOf(i)!==-1||i===Wn&&u===ba||u===od||yt.indexOf(u)!==-1&&i===ye||yt.indexOf(i)!==-1&&u===ye||i===Nr&&[Kr,ao,co].indexOf(u)!==-1||[Kr,ao,co].indexOf(i)!==-1&&u===Mr||yt.indexOf(i)!==-1&&ld.indexOf(u)!==-1||ld.indexOf(i)!==-1&&yt.indexOf(u)!==-1||[Nr,Mr].indexOf(i)!==-1&&(u===ye||[Pr,Dr].indexOf(u)!==-1&&e[a+1]===ye)||[Pr,Dr].indexOf(i)!==-1&&u===ye||i===ye&&[ye,Wn,Xn].indexOf(u)!==-1)return rA;if([ye,Wn,Xn,io,Or].indexOf(u)!==-1)for(var h=s;h>=0;){var f=e[h];if(f===ye)return rA;if([Wn,Xn].indexOf(f)!==-1)h--;else break}if([Nr,Mr].indexOf(u)!==-1)for(var h=[io,Or].indexOf(i)!==-1?o:s;h>=0;){var f=e[h];if(f===ye)return rA;if([Wn,Xn].indexOf(f)!==-1)h--;else break}if(Qa===i&&[Qa,lo,ma,Ca].indexOf(u)!==-1||[lo,ma].indexOf(i)!==-1&&[lo,uo].indexOf(u)!==-1||[uo,Ca].indexOf(i)!==-1&&u===uo||ud.indexOf(i)!==-1&&[od,Mr].indexOf(u)!==-1||ud.indexOf(u)!==-1&&i===Nr||yt.indexOf(i)!==-1&&yt.indexOf(u)!==-1||i===Xn&&yt.indexOf(u)!==-1||yt.concat(ye).indexOf(i)!==-1&&u===Pr&&dQ.indexOf(A[a])===-1||yt.concat(ye).indexOf(u)!==-1&&i===Or)return rA;if(i===ya&&u===ya){for(var g=t[s],m=1;g>0&&(g--,e[g]===ya);)m++;if(m%2!==0)return rA}return i===ao&&u===co?rA:po},BQ=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=fQ(A,e.lineBreak),n=t[0],r=t[1],s=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(r=r.map(function(a){return[ye,an,id].indexOf(a)!==-1?Kr:a}));var o=e.wordBreak==="keep-all"?s.map(function(a,i){return a&&A[i]>=19968&&A[i]<=40959}):void 0;return[n,r,o]},wQ=(function(){function A(e,t,n,r){this.codePoints=e,this.required=t===ad,this.start=n,this.end=r}return A.prototype.slice=function(){return HA.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),mQ=function(A,e){var t=no(A),n=BQ(t,e),r=n[0],s=n[1],o=n[2],a=t.length,i=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};for(var u=rA;c<a&&(u=gQ(t,s,r,++c,o))===rA;);if(u!==rA||c===a){var h=new wQ(t,u,i,c);return i=c,{value:h,done:!1}}return{done:!0,value:null}}}};const pd=65533,re=A=>A>=48&&A<=57,CQ=A=>A>=55296&&A<=57343,Jn=A=>re(A)||A>=65&&A<=70||A>=97&&A<=102,bQ=A=>A>=97&&A<=122,QQ=A=>A>=65&&A<=90,yQ=A=>bQ(A)||QQ(A),UQ=A=>A>=128,ho=A=>A===10||A===9||A===32,fo=A=>yQ(A)||UQ(A)||A===95,hd=A=>fo(A)||re(A)||A===45,EQ=A=>A>=0&&A<=8||A===11||A>=14&&A<=31||A===127,zt=(A,e)=>A!==92?!1:e!==10,go=(A,e,t)=>A===45?fo(e)||zt(e,t):fo(A)?!0:!!(A===92&&zt(A,e)),Fa=(A,e,t)=>A===43||A===45?re(e)?!0:e===46&&re(t):re(A===46?e:A),kQ=A=>{let e=0,t=1;(A[e]===43||A[e]===45)&&(A[e]===45&&(t=-1),e++);const n=[];for(;re(A[e]);)n.push(A[e++]);const r=n.length?parseInt(HA(...n),10):0;A[e]===46&&e++;const s=[];for(;re(A[e]);)s.push(A[e++]);const o=s.length,a=o?parseInt(HA(...s),10):0;(A[e]===69||A[e]===101)&&e++;let i=1;(A[e]===43||A[e]===45)&&(A[e]===45&&(i=-1),e++);const c=[];for(;re(A[e]);)c.push(A[e++]);const u=c.length?parseInt(HA(...c),10):0;return t*(r+a*Math.pow(10,-o))*Math.pow(10,i*u)},FQ={type:2},vQ={type:3},_Q={type:4},xQ={type:13},SQ={type:8},IQ={type:21},TQ={type:9},HQ={type:10},LQ={type:11},RQ={type:12},DQ={type:14},Bo={type:23},OQ={type:1},PQ={type:25},MQ={type:24},NQ={type:26},KQ={type:27},$Q={type:28},zQ={type:29},VQ={type:31},va={type:32};var _a=(Re=class{static get(){return Re._pool.pop()||new Re}static release(e){Re._pool.length<Re.MAX_POOL_SIZE&&(e._reset(),Re._pool.push(e))}constructor(){this._value=[]}_reset(){this._value=[]}write(e){this._value=this._value.concat(no(e))}read(){const e=[];let t=this.consumeToken();for(;t!==va;)e.push(t),t=this.consumeToken();return e}consumeToken(){const e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:{const t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(hd(t)||zt(n,r)){const s=go(t,n,r)?2:1;return{type:5,value:this.consumeName(),flags:s}}break}case 36:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),xQ;break;case 39:return this.consumeStringToken(39);case 40:return FQ;case 41:return vQ;case 42:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),DQ;break;case 43:if(Fa(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return _Q;case 45:{const t=e,n=this.peekCodePoint(0),r=this.peekCodePoint(1);if(Fa(t,n,r))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(go(t,n,r))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(n===45&&r===62)return this.consumeCodePoint(),this.consumeCodePoint(),MQ;break}case 46:if(Fa(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(this.peekCodePoint(0)===42)for(this.consumeCodePoint();;){let t=this.consumeCodePoint();if(t===42&&(t=this.consumeCodePoint(),t===47))return this.consumeToken();if(t===-1)return this.consumeToken()}break;case 58:return NQ;case 59:return KQ;case 60:if(this.peekCodePoint(0)===33&&this.peekCodePoint(1)===45&&this.peekCodePoint(2)===45)return this.consumeCodePoint(),this.consumeCodePoint(),PQ;break;case 64:if(go(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2)))return{type:7,value:this.consumeName()};break;case 91:return $Q;case 92:if(zt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return zQ;case 61:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),SQ;break;case 123:return LQ;case 125:return RQ;case 117:case 85:{const t=this.peekCodePoint(0),n=this.peekCodePoint(1);return t===43&&(Jn(n)||n===63)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken()}case 124:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),TQ;if(this.peekCodePoint(0)===124)return this.consumeCodePoint(),IQ;break;case 126:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),HQ;break;case-1:return va}return ho(e)?(this.consumeWhiteSpace(),VQ):re(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):fo(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:HA(e)}}consumeCodePoint(){const e=this._value.shift();return typeof e=="undefined"?-1:e}reconsumeCodePoint(e){this._value.unshift(e)}peekCodePoint(e){return e>=this._value.length?-1:this._value[e]}consumeUnicodeRangeToken(){const e=[];let t=this.consumeCodePoint();for(;Jn(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();let n=!1;for(;t===63&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(HA(...e.map(s=>s===63?48:s)),16),end:parseInt(HA(...e.map(s=>s===63?70:s)),16)};const r=parseInt(HA(...e),16);if(this.peekCodePoint(0)===45&&Jn(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();const s=[];for(;Jn(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(HA(...s),16)}}else return{type:30,start:r,end:r}}consumeIdentLikeToken(){const e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===40?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===40?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}}consumeUrlToken(){const e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===-1)return{type:22,value:""};const t=this.peekCodePoint(0);if(t===39||t===34){const n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===-1||this.peekCodePoint(0)===41)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Bo)}for(;;){const n=this.consumeCodePoint();if(n===-1||n===41)return{type:22,value:HA(...e)};if(ho(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===-1||this.peekCodePoint(0)===41?(this.consumeCodePoint(),{type:22,value:HA(...e)}):(this.consumeBadUrlRemnants(),Bo);if(n===34||n===39||n===40||EQ(n))return this.consumeBadUrlRemnants(),Bo;if(n===92)if(zt(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Bo;else e.push(n)}}consumeWhiteSpace(){for(;ho(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){const e=this.consumeCodePoint();if(e===41||e===-1)return;zt(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}}consumeStringSlice(e){let n="";for(;e>0;){const r=Math.min(5e4,e);n+=HA(...this._value.splice(0,r)),e-=r}return this._value.shift(),n}consumeStringToken(e){let t="",n=0;do{const r=this._value[n];if(r===-1||r===void 0||r===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(r===10)return this._value.splice(0,n),OQ;if(r===92){const s=this._value[n+1];s!==-1&&s!==void 0&&(s===10?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):zt(r,s)&&(t+=this.consumeStringSlice(n),t+=HA(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)}consumeNumber(){const e=[];let t=4,n=this.peekCodePoint(0);for((n===43||n===45)&&e.push(this.consumeCodePoint());re(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);let r=this.peekCodePoint(1);if(n===46&&re(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;re(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);const s=this.peekCodePoint(2);if((n===69||n===101)&&((r===43||r===45)&&re(s)||re(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;re(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[kQ(e),t]}consumeNumericToken(){const[e,t]=this.consumeNumber(),n=this.peekCodePoint(0);return go(n,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:e,flags:t,unit:this.consumeName()}:n===37?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}}consumeEscapedCodePoint(){const e=this.consumeCodePoint();if(Jn(e)){let t=HA(e);for(;Jn(this.peekCodePoint(0))&&t.length<6;)t+=HA(this.consumeCodePoint());ho(this.peekCodePoint(0))&&this.consumeCodePoint();const n=parseInt(t,16);return n===0||CQ(n)||n>1114111?pd:n}return e===-1?pd:e}consumeName(){let e="";for(;;){const t=this.consumeCodePoint();if(hd(t))e+=HA(t);else if(zt(t,this.peekCodePoint(0)))e+=HA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}}},Re._pool=[],Re.MAX_POOL_SIZE=40,Re),fd=class Di{constructor(e){this._tokens=e}static create(e){const t=new _a;return t.write(e),new Di(t.read())}static parseValue(e){return Di.create(e).parseComponentValue()}static parseValues(e){return Di.create(e).parseComponentValues()}parseComponentValue(){let e=this.consumeToken();for(;e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);const t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")}parseComponentValues(){const e=[];for(;;){const t=this.consumeComponentValue();if(t.type===32)return e;e.push(t)}}consumeComponentValue(){const e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e}consumeSimpleBlock(e){const t={type:e,values:[]};let n=this.consumeToken();for(;;){if(n.type===32||ZQ(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}}consumeFunction(e){const t={name:e.value,values:[],type:18};for(;;){const n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}}consumeToken(){const e=this._tokens.shift();return typeof e=="undefined"?va:e}reconsumeToken(e){this._tokens.unshift(e)}};const lt=A=>A.type===15,$A=A=>A.type===17,j=A=>A.type===20,GQ=A=>A.type===0,$r=(A,e)=>j(A)&&A.value===e,zr=A=>A.type!==31,zA=A=>A.type!==31&&A.type!==4,Ke=A=>{const e=[];let t=[];return A.forEach(n=>{if(n.type===4){t.length&&(e.push(t),t=[]);return}n.type!==31&&t.push(n)}),t.length&&e.push(t),e},ZQ=(A,e)=>e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3,XQ=/(\d+(?:\.\d+)?|[+\-*/()])/g,gd=A=>{const e=A.match(XQ);if(!e)return NaN;const t=[],n=[],r={"+":1,"-":1,"*":2,"/":2};for(const o of e)if(/^\d+(?:\.\d+)?$/.test(o))t.push(parseFloat(o));else if(o==="(")n.push(o);else if(o===")"){for(;n.length&&n[n.length-1]!=="(";)t.push(n.pop());if(!n.length)return NaN;n.pop()}else{for(;n.length&&r[n[n.length-1]]>=r[o];)t.push(n.pop());n.push(o)}for(;n.length;){const o=n.pop();if(o==="(")return NaN;t.push(o)}const s=[];for(const o of t)if(typeof o=="number")s.push(o);else{const a=s.pop(),i=s.pop();if(i===void 0||a===void 0)return NaN;switch(o){case"+":s.push(i+a);break;case"-":s.push(i-a);break;case"*":s.push(i*a);break;case"/":s.push(a===0?NaN:i/a);break;default:return NaN}}return s.length===1?s[0]:NaN},vA=(A,e,t)=>Math.min(Math.max(A,e),t),Be=(A,e)=>[A[0]*e[0]+A[1]*e[1]+A[2]*e[2],A[3]*e[0]+A[4]*e[1]+A[5]*e[2],A[6]*e[0]+A[7]*e[1]+A[8]*e[2]],Vt=A=>Be([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],A),xa=A=>Be([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],A),cn=A=>A.map(e=>{const t=e<0?-1:1,n=Math.abs(e);return n>.0031308?t*(1.055*Ue(n,1/2.4)-.055):12.92*e}),Sa=A=>A.map(e=>{const t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*Ue((n+.055)/1.055,2.4)}),WQ=A=>{const[e,t,n]=cn(Vt([A[0],A[1],A[2]]));return[e,t,n,A[3]]},JQ=A=>{const[e,t,n]=Vt([A[0],A[1],A[2]]);return[vA(Math.round(e*255),0,255),vA(Math.round(t*255),0,255),vA(Math.round(n*255),0,255),A[3]]},Gt=A=>A.type===17||A.type===15,aA=A=>A.type===16||Gt(A)||Bd(A),Bd=A=>A.type===17&&A._calcPercentage!==void 0,jQ=A=>A.type===18&&A.name==="calc",YQ=A=>{const e=md(A,0);if(!e)return null;const t=md(A,100);if(!t)return null;const n=e.number,r=t.number-n;return r===0?e:{type:17,number:n,flags:4,_calcPercentage:r,_calcPixelOffset:n}},wd=A=>jQ(A)?YQ(A):aA(A)?A:null,md=(A,e=0)=>{const t=n=>{let r="";for(const s of n)if(s.type!==31){if(s.type===18)if(s.name==="calc"){const o=t(s.values);if(o===null)return null;r+=`(${o})`}else return null;else if(s.type===17)r+=s.number.toString();else if(s.type===15)s.unit==="px"?r+=s.number.toString():s.unit==="rem"||s.unit==="em"?r+=(s.number*16).toString():r+=s.number.toString();else if(s.type===16)r+=(s.number/100*e).toString();else if(s.type===6){const o=s.value;o==="+"||o==="-"||o==="*"||o==="/"?r+=` ${o} `:o==="("?r+="(":o===")"&&(r+=")")}}return r};try{const n=t(A.values);if(n===null||n.trim()==="")return null;const r=gd(n);if(typeof r=="number"&&!isNaN(r))return{type:17,number:r,flags:4}}catch(n){return null}return null},Cd=A=>A.length>1?[A[0],A[1]]:[A[0]],LA={type:17,number:0,flags:4},Ut={type:16,number:50,flags:4},$e={type:16,number:100,flags:4},Vr=(A,e,t)=>{const[n,r]=A;return[J(n,e),J(typeof r!="undefined"?r:n,t)]},J=(A,e)=>{if(Bd(A))return A._calcPercentage/100*e+A._calcPixelOffset;if(A.type===16)return A.number/100*e;if(lt(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},bd="deg",Qd="grad",yd="rad",Ud="turn",jn={name:"angle",parse:(A,e)=>{if(e.type===15)switch(e.unit){case bd:return Math.PI*e.number/180;case Qd:return Math.PI/200*e.number;case yd:return e.number;case Ud:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Ed=A=>A.type===15&&(A.unit===bd||A.unit===Qd||A.unit===yd||A.unit===Ud),kd=A=>{switch(A.filter(j).map(e=>e.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[LA,LA];case"to top":case"bottom":return _e(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[LA,$e];case"to right":case"left":return _e(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[$e,$e];case"to bottom":case"top":return _e(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[$e,LA];case"to left":case"right":return _e(270)}return 0},_e=A=>Math.PI*A/180,Et=A=>(255&A)===0,UA=A=>{const e=255&A,t=255&A>>8,n=255&A>>16,r=255&A>>24;return e<255?`rgba(${r},${n},${t},${e/255})`:`rgb(${r},${n},${t})`},ze=(A,e,t,n)=>(A<<24|e<<16|t<<8|Math.round(n*255)<<0)>>>0,Zt=(A,e)=>{if(A.type===17)return A.number;if(A.type===16){const t=e===3?1:255;return e===3?A.number/100*t:Math.round(A.number/100*t)}return 0},ln=A=>(A[0].type===20?A[0].value:"unknown")==="from",qQ=A=>ze(vA(Math.round(A[0]*255),0,255),vA(Math.round(A[1]*255),0,255),vA(Math.round(A[2]*255),0,255),vA(A[3],0,1)),Ia=([A,e,t,n])=>{const r=cn([A,e,t]);return ze(vA(Math.round(r[0]*255),0,255),vA(Math.round(r[1]*255),0,255),vA(Math.round(r[2]*255),0,255),n)},Gr=A=>{const e=Vt([A[0],A[1],A[2]]);return Ia([e[0],e[1],e[2],A[3]])},Ay=(A,e)=>{if(ln(e.filter(zA)))throw new Error("Relative color not supported for lab()");const[t,n,r,s]=wo(e),o=cn(Vt(bo([t,n,r])));return ze(vA(Math.round(o[0]*255),0,255),vA(Math.round(o[1]*255),0,255),vA(Math.round(o[2]*255),0,255),s)},ey=(A,e)=>{if(ln(e.filter(zA)))throw new Error("Relative color not supported for oklab()");const[t,n,r,s]=wo(e),o=cn(Vt(Co([t,n,r])));return ze(vA(Math.round(o[0]*255),0,255),vA(Math.round(o[1]*255),0,255),vA(Math.round(o[2]*255),0,255),s)},ty=(A,e)=>{if(ln(e.filter(zA)))throw new Error("Relative color not supported for oklch()");const[t,n,r,s]=xd(e),o=cn(Vt(Co(mo([t,n,r]))));return ze(vA(Math.round(o[0]*255),0,255),vA(Math.round(o[1]*255),0,255),vA(Math.round(o[2]*255),0,255),s)},ny=(A,e)=>{if(ln(e.filter(zA)))throw new Error("Relative color not supported for lch()");const[t,n,r,s]=_d(e),o=cn(Vt(bo(mo([t,n,r]))));return ze(vA(Math.round(o[0]*255),0,255),vA(Math.round(o[1]*255),0,255),vA(Math.round(o[2]*255),0,255),s)},Fd=(A,e)=>{const[t,n,r,s]=e.filter(zA);return[(t.type===17?_e(t.number):jn.parse(A,t))/(Math.PI*2),aA(n)?n.number/100:0,aA(r)?r.number/100:0,typeof s!="undefined"&&aA(s)?J(s,1):1]},vd=(A,e)=>{if(ln(e))throw new Error("Relative color not supported for hsl()");const[t,n,r,s]=Fd(A,e),o=Id([t,n,r]);return ze(o[0]*255,o[1]*255,o[2]*255,n===0?1:s)},_d=A=>{const e=A.filter(zA);return[aA(e[0])?e[0].number:0,aA(e[1])?e[1].number:0,$A(e[2])||lt(e[2])?e[2].number:0,typeof e[4]!="undefined"&&aA(e[4])?J(e[4],1):1]},wo=A=>{const e=A.filter(zA);return[e[0].type===16?e[0].number/100:$A(e[0])?e[0].number:0,e[1].type===16?e[1].number/100:$A(e[1])?e[1].number:0,$A(e[2])||lt(e[2])?e[2].number:0,typeof e[4]!="undefined"&&aA(e[4])?J(e[4],1):1]},xd=A=>{const e=A.filter(zA);return[e[0].type===16?e[0].number/100:$A(e[0])?e[0].number:0,e[1].type===16?e[1].number/100:$A(e[1])?e[1].number:0,$A(e[2])||lt(e[2])?e[2].number:0,typeof e[4]!="undefined"&&aA(e[4])?J(e[4],1):1]},Sd=A=>Be([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],A),Ta=A=>Be([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],A),Ha=(A,e,t)=>(t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<1/2?e:t<2/3?(e-A)*6*(2/3-t)+A:A),Id=([A,e,t])=>{if(e===0)return[t*255,t*255,t*255];const n=t<=.5?t*(e+1):t+e-t*e,r=t*2-n;return[Ha(r,n,A+1/3),Ha(r,n,A),Ha(r,n,A-1/3)]},mo=([A,e,t])=>(e<0&&(e=0),isNaN(t)&&(t=0),[A,e*Math.cos(t*Math.PI/180),e*Math.sin(t*Math.PI/180)]),Co=A=>Be([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816],Be([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],A).map(e=>Ue(e,3))),bo=A=>{const e=(A[0]+16)/116,t=A[1]/500+e,n=e-A[2]/200,r=24389/27,s=24/116,o=[(t>s?Ue(t,3):(116*t-16)/r)*.3457/.3585,A[0]>8?Ue(e,3):A[0]/r,(n>s?Ue(n,3):(116*n-16)/r)*.2958/.3585];return Ta([o[0],o[1],o[2]])},ry=(A,e)=>{const t=e.filter(zA);if(t.length===3){const[n,r,s]=t.map(Zt),o=Sa([n/255,r/255,s/255]),[a,i,c]=xa([o[0],o[1],o[2]]);return[a,i,c,1]}if(t.length===4){const[n,r,s,o]=t.map(Zt),a=Sa([n/255,r/255,s/255]),[i,c,u]=xa([a[0],a[1],a[2]]);return[i,c,u,o]}return[0,0,0,1]},sy=(A,e)=>{const[t,n,r,s]=Fd(A,e),o=Sa(Id([t,n,r])),[a,i,c]=xa([o[0],o[1],o[2]]);return[a,i,c,s]},oy=(A,e)=>{const[t,n,r,s]=wo(e),[o,a,i]=bo([t,n,r]);return[o,a,i,s]},iy=(A,e)=>{const[t,n,r,s]=_d(e),[o,a,i]=bo(mo([t,n,r]));return[o,a,i,s]},ay=(A,e)=>{const[t,n,r,s]=xd(e),[o,a,i]=Co(mo([t,n,r]));return[o,a,i,s]},cy=(A,e)=>{const[t,n,r,s]=wo(e),[o,a,i]=Co([t,n,r]);return[o,a,i,s]},ly=A=>Ta([A[0],A[1],A[2]]),Td=A=>A,uy=A=>{const[e,t,n]=Sd([A[0],A[2],A[3]]);return[e,t,n,A[3]]},Hd=A=>Gr([A[0],A[1],A[2],A[3]]),dy=A=>{const e=ly([A[0],A[1],A[2]]);return Gr([e[0],e[1],e[2],A[3]])},py=A=>Be([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],A),hy=A=>Be([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],A),fy=A=>A.map(e=>{const t=e<0?-1:1;return e*t<=.04045?e/12.92:t*Ue((e+.055)/1.055,2.4)||0}),gy=A=>cn(A),By=A=>{const e=fy([A[0],A[1],A[2]]);return py([e[0],e[1],e[2]])},wy=A=>{const[e,t,n]=gy(hy([A[0],A[1],A[2]]));return[e,t,n,A[3]]},my=A=>{const e=By([A[0],A[1],A[2]]);return Gr([e[0],e[1],e[2],A[3]])},Cy=A=>Be([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],A),by=A=>Be([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],A),Qy=A=>{const e=A.map(t=>(t<0?-1:1)*Ue(Math.abs(t),2.19921875));return[e[0],e[1],e[2]]},yy=A=>{const e=A.map(t=>(t<0?-1:1)*Ue(Math.abs(t),.4547069271758437));return[e[0],e[1],e[2]]},Uy=A=>{const[e,t,n]=yy(Cy([A[0],A[1],A[2]]));return[e,t,n,A[3]]},Ey=A=>{const e=Vt(by(Qy([A[0],A[1],A[2]])));return Ia([e[0],e[1],e[2],A[3]])},ky=A=>Be([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],A),Fy=A=>Be([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],A),vy=A=>A.map(e=>e<16/512?e/16:Ue(e,1.8)),_y=A=>A.map(e=>e>1/512?Ue(e,1/1.8):e*16),xy=A=>{const e=vy([A[0],A[1],A[2]]);return Ta(ky([e[0],e[1],e[2]]))},Sy=A=>{const[e,t,n]=_y(Fy(Sd([A[0],A[1],A[2]])));return[e,t,n,A[3]]},Iy=A=>{const e=xy([A[0],A[1],A[2]]);return Gr([e[0],e[1],e[2],A[3]])},Qo=1.09929682680944,Ld=.018053968510807,Ty=A=>A.map(function(e){return e<Ld*4.5?e/4.5:Math.pow((e+Qo-1)/Qo,1/.45)}),Hy=A=>A.map(function(e){return e>=Ld?Qo*Math.pow(e,.45)-(Qo-1):4.5*e}),Ly=A=>Be([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],A),Ry=A=>Be([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],A),Dy=A=>{const e=Ty([A[0],A[1],A[2]]);return Ly([e[0],e[1],e[2]])},Oy=A=>{const[e,t,n]=Hy(Ry([A[0],A[1],A[2]]));return[e,t,n,A[3]]},Py=A=>{const e=Dy([A[0],A[1],A[2]]);return Gr([e[0],e[1],e[2],A[3]])},Xt={name:"color",parse:(A,e)=>{if(e.type===18){const t=$y[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported color function "${e.name}"`);return t(A,e.values)}if(e.type===5){const[t,n,r,s]=Rd(e);return ze(t,n,r,s)}if(e.type===20){const t=ut[e.value.toUpperCase()];if(typeof t!="undefined")return t}return ut.TRANSPARENT}},Rd=A=>{if(A.value.length===3){const e=A.value.substring(0,1),t=A.value.substring(1,2),n=A.value.substring(2,3);return[parseInt(e+e,16),parseInt(t+t,16),parseInt(n+n,16),1]}if(A.value.length===4){const e=A.value.substring(0,1),t=A.value.substring(1,2),n=A.value.substring(2,3),r=A.value.substring(3,4);return[parseInt(e+e,16),parseInt(t+t,16),parseInt(n+n,16),parseInt(r+r,16)/255]}if(A.value.length===6){const e=A.value.substring(0,2),t=A.value.substring(2,4),n=A.value.substring(4,6);return[parseInt(e,16),parseInt(t,16),parseInt(n,16),1]}if(A.value.length===8){const e=A.value.substring(0,2),t=A.value.substring(2,4),n=A.value.substring(4,6),r=A.value.substring(6,8);return[parseInt(e,16),parseInt(t,16),parseInt(n,16),parseInt(r,16)/255]}return[0,0,0,1]},Dd=(A,e)=>{const t=e.filter(zA);if(ln(t))throw new Error("Relative color not supported for rgb()");if(t.length===3){const[n,r,s]=t.map(Zt);return ze(n,r,s,1)}if(t.length===4){const[n,r,s,o]=t.map(Zt);return ze(n,r,s,o)}return t.length===5&&t[3].type===6&&t[3].value==="/"?ze(Zt(t[0],0),Zt(t[1],1),Zt(t[2],2),Zt(t[4],3)):0},My=(A,e)=>{const t=e.filter(zA),n=t[0].type===20?t[0].value:"unknown";if(ln(t)){const r=(E,k)=>{if($A(k))return k.number;const v=U=>U==="r"||U==="x"?0:U==="g"||U==="y"?1:2;if(j(k))return E[v(k.value)];const y=U=>{const x=U.filter(zA);let R="(";for(const H of x)R+=H.type===18&&H.name==="calc"?y(H.values):$A(H)?H.number:H.type===6||j(H)?H.value:"";return R+=")",R};if(k.type===18){const U=k.values.filter(zA);if(k.name==="calc")return gd(y(U).replace(/r|x/,E[0].toString()).replace(/g|y/,E[1].toString()).replace(/b|z/,E[2].toString()))}return null},s=t[1].type===18?t[1].name:j(t[1])||t[1].type===5?"rgb":"unknown",o=j(t[2])?t[2].value:"unknown";let a=t[1].type===18?t[1].values:j(t[1])?[t[1]]:[];if(j(t[1])){if(typeof ut[t[1].value.toUpperCase()]=="undefined")throw new Error("Attempting to use unknown color in relative color 'from'");{const E=Yn(A,t[1].value),k=255&E,v=255&E>>8,y=255&E>>16;a=[{type:17,number:255&E>>24,flags:1},{type:17,number:y,flags:1},{type:17,number:v,flags:1},{type:17,number:k>1?k/255:k,flags:1}]}}else if(t[1].type===5){const[E,k,v,y]=Rd(t[1]);a=[{type:17,number:E,flags:1},{type:17,number:k,flags:1},{type:17,number:v,flags:1},{type:17,number:y>1?y/255:y,flags:1}]}if(a.length===0)throw new Error("Attempting to use unknown color in relative color 'from'");if(o==="unknown")throw new Error("Attempting to use unknown colorspace in relative color 'to'");const i=Ny[s],c=Ky[o],u=Od[o];if(typeof i=="undefined")throw new Error(`Attempting to parse an unsupported color space "${s}" for color() function`);if(typeof c=="undefined")throw new Error(`Attempting to parse an unsupported color space "${o}" for color() function`);const h=c(i(A,a)),f=r(h,t[3]),g=r(h,t[4]),m=r(h,t[5]),b=t.length>6&&t[6].type===6&&t[6].value==="/"&&$A(t[7])?t[7].number:1;if(f===null||g===null||m===null)throw new Error("Invalid relative color in color() function");return u([f,g,m,b])}else{const r=n,s=Od[r];if(typeof s=="undefined")throw new Error(`Attempting to parse an unsupported color space "${r}" for color() function`);return s([$A(t[1])?t[1].number:0,$A(t[2])?t[2].number:0,$A(t[3])?t[3].number:0,t.length>4&&t[4].type===6&&t[4].value==="/"&&$A(t[5])?t[5].number:1])}},Od={srgb:qQ,"srgb-linear":Ia,"display-p3":my,"a98-rgb":Ey,"prophoto-rgb":Iy,xyz:Hd,"xyz-d50":dy,"xyz-d65":Hd,rec2020:Py},Ny={rgb:ry,hsl:sy,lab:oy,lch:iy,oklab:cy,oklch:ay},Ky={srgb:WQ,"srgb-linear":JQ,"display-p3":wy,"a98-rgb":Uy,"prophoto-rgb":Sy,xyz:Td,"xyz-d50":uy,"xyz-d65":Td,rec2020:Oy},$y={hsl:vd,hsla:vd,rgb:Dd,rgba:Dd,lch:ny,oklch:ty,oklab:ey,lab:Ay,color:My},Yn=(A,e)=>Xt.parse(A,fd.create(e).parseComponentValue()),ut={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},un=A=>A.nodeType===Node.ELEMENT_NODE,Pd=A=>A.nodeType===Node.TEXT_NODE,dn=A=>typeof A.className=="object",Zr=A=>un(A)&&typeof A.style!="undefined"&&!dn(A),zy=A=>A.tagName==="INPUT",Vy=A=>A.tagName==="HTML",Md=A=>A.tagName==="svg",La=A=>A.tagName==="BODY",Nd=A=>A.tagName==="CANVAS",Kd=A=>A.tagName==="VIDEO",Ra=A=>A.tagName==="IMG",$d=A=>A.tagName==="IFRAME",zd=A=>A.tagName==="STYLE",Gy=A=>A.tagName==="SCRIPT",yo=A=>A.tagName==="TEXTAREA",Uo=A=>A.tagName==="SELECT",Xr=A=>A.tagName==="SLOT",Zy=A=>A.tagName==="LI",Xy=A=>A.tagName==="OL",Vd=A=>!dn(A)&&A.tagName.indexOf("-")>0,Wy=new Set(["IMG","VIDEO","AUDIO","CANVAS","IFRAME","INPUT","TEXTAREA","SELECT","BR","HR","META","LINK","BASE","COL","SOURCE","TRACK","WBR","AREA","PARAM","EMBED","OBJECT"]),Jy=A=>!dn(A)&&!Wy.has(A.tagName),Da={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){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 52;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}}},ee=(A,e)=>(A&e)!==0;var jy=class{constructor(){this.counters={}}getCounterValue(A){const e=this.counters[A];return e&&e.length?e[e.length-1]:1}getCounterValues(A){const e=this.counters[A];return e||[]}pop(A){A.forEach(e=>this.counters[e].pop())}parse(A){const e=A.counterIncrement,t=A.counterReset;let n=!0;e!==null&&e.forEach(s=>{const o=this.counters[s.counter];o&&s.increment!==0&&(n=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=s.increment)});const r=[];return n&&t.forEach(s=>{let o=this.counters[s.counter];r.push(s.counter),o||(o=this.counters[s.counter]=[]),o.push(s.reset)}),r}};const Gd={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"]},Zd={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Yy={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},qy={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},qn=(A,e,t,n,r,s)=>A<e||A>t?Wr(A,r,s.length>0):n.integers.reduce((o,a,i)=>{for(;A>=a;)A-=a,o+=n.values[i];return o},"")+s,Xd=(A,e,t,n)=>{let r="";do t||A--,r=n(A)+r,A/=e;while(A*e>=e);return r},RA=(A,e,t,n,r)=>{const s=t-e+1;return(A<0?"-":"")+(Xd(Math.abs(A),s,n,o=>HA(Math.floor(o%s)+e))+r)},pn=(A,e,t=". ")=>{const n=e.length;return Xd(Math.abs(A),n,!1,r=>e[Math.floor(r%n)])+t},A0=1,e0=2,t0=4,n0=8,kt=(A,e,t,n,r,s)=>{if(A<-9999||A>9999)return Wr(A,4,r.length>0);let o=Math.abs(A),a=r;if(o===0)return e[0]+a;for(let i=0;o>0&&i<=4;i++){const c=o%10;c===0&&ee(s,A0)&&a!==""?a=e[c]+a:c>1||c===1&&i===0||c===1&&i===1&&ee(s,e0)||c===1&&i===1&&ee(s,t0)&&A>100||c===1&&i>1&&ee(s,n0)?a=e[c]+(i>0?t[i-1]:"")+a:c===1&&i>0&&(a=t[i-1]+a),o=Math.floor(o/10)}return(A<0?n:"")+a},Wd="十百千萬",Jd="拾佰仟萬",jd="マイナス",Oa="마이너스",Wr=(A,e,t)=>{const n=t?". ":"",r=t?"、":"",s=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:const a=RA(A,48,57,!0,n);return a.length<4?`0${a}`:a;case 4:return pn(A,"〇一二三四五六七八九",r);case 6:return qn(A,1,3999,Gd,3,n).toLowerCase();case 7:return qn(A,1,3999,Gd,3,n);case 8:return RA(A,945,969,!1,n);case 9:return RA(A,97,122,!1,n);case 10:return RA(A,65,90,!1,n);case 11:return RA(A,1632,1641,!0,n);case 12:case 49:return qn(A,1,9999,Zd,3,n);case 35:return qn(A,1,9999,Zd,3,n).toLowerCase();case 13:return RA(A,2534,2543,!0,n);case 14:case 30:return RA(A,6112,6121,!0,n);case 15:return pn(A,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return pn(A,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return kt(A,"零一二三四五六七八九",Wd,"負",r,14);case 47:return kt(A,"零壹貳參肆伍陸柒捌玖",Jd,"負",r,15);case 42:return kt(A,"零一二三四五六七八九",Wd,"负",r,14);case 41:return kt(A,"零壹贰叁肆伍陆柒捌玖",Jd,"负",r,15);case 26:return kt(A,"〇一二三四五六七八九","十百千万",jd,r,0);case 25:return kt(A,"零壱弐参四伍六七八九","拾百千万",jd,r,7);case 31:return kt(A,"영일이삼사오육칠팔구","십백천만",Oa,s,7);case 33:return kt(A,"零一二三四五六七八九","十百千萬",Oa,s,0);case 32:return kt(A,"零壹貳參四五六七八九","拾百千",Oa,s,7);case 18:return RA(A,2406,2415,!0,n);case 20:return qn(A,1,19999,qy,3,n);case 21:return RA(A,2790,2799,!0,n);case 22:return RA(A,2662,2671,!0,n);case 52:return qn(A,1,10999,Yy,3,n);case 23:return pn(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return pn(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return RA(A,3302,3311,!0,n);case 28:return pn(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return pn(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return RA(A,3792,3801,!0,n);case 37:return RA(A,6160,6169,!0,n);case 38:return RA(A,4160,4169,!0,n);case 39:return RA(A,2918,2927,!0,n);case 40:return RA(A,1776,1785,!0,n);case 43:return RA(A,3046,3055,!0,n);case 44:return RA(A,3174,3183,!0,n);case 45:return RA(A,3664,3673,!0,n);case 46:return RA(A,3872,3881,!0,n);default:return RA(A,48,57,!0,n)}},r0={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(A,e)=>e.map(t=>{if(j(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2;case"text":return 3}return 0})},s0={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Eo=(A,e)=>{const t=Xt.parse(A,e[0]),n=e[1];return n&&aA(n)?{color:t,stop:n}:{color:t,stop:null}},Pa=(A,e)=>{const t=A[0],n=A[A.length-1];t.stop===null&&(t.stop=LA),n.stop===null&&(n.stop=$e);const r=[];let s=0;for(let a=0;a<A.length;a++){const i=A[a].stop;if(i!==null){const c=J(i,e);c>s?r.push(c):r.push(s),s=c}else r.push(null)}let o=null;for(let a=0;a<r.length;a++){const i=r[a];if(i===null)o===null&&(o=a);else if(o!==null){const c=a-o,u=(i-r[o-1])/(c+1);for(let h=1;h<=c;h++)r[o+h-1]=u*h;o=null}}return A.map(({color:a},i)=>({color:a,stop:Math.max(Math.min(1,r[i]/e),0)}))},o0=(A,e,t)=>{const n=e/2,r=t/2,s=J(A[0],e)-n,o=r-J(A[1],t);return(Math.atan2(o,s)+Math.PI*2)%(Math.PI*2)},Yd=(A,e,t)=>{const n=typeof A=="number"?A:o0(A,e,t),r=Math.abs(e*Math.sin(n))+Math.abs(t*Math.cos(n)),s=e/2,o=t/2,a=r/2,i=Math.sin(n-Math.PI/2)*a,c=Math.cos(n-Math.PI/2)*a;return[r,s-c,s+c,o-i,o+i]},Ve=(A,e)=>Math.sqrt(A*A+e*e),qd=(A,e,t,n,r)=>[[0,0],[0,e],[A,0],[A,e]].reduce((s,o)=>{const[a,i]=o,c=Ve(t-a,n-i);return(r?c<s.optimumDistance:c>s.optimumDistance)?{optimumCorner:o,optimumDistance:c}:s},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner,i0=(A,e,t,n,r)=>{let s=0,o=0;switch(A.size){case 0:A.shape===0?s=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===1&&(s=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(t),Math.abs(t-r)));break;case 2:if(A.shape===0)s=o=Math.min(Ve(e,t),Ve(e,t-r),Ve(e-n,t),Ve(e-n,t-r));else if(A.shape===1){const a=Math.min(Math.abs(t),Math.abs(t-r))/Math.min(Math.abs(e),Math.abs(e-n)),[i,c]=qd(n,r,e,t,!0);s=Ve(i-e,(c-t)/a),o=a*s}break;case 1:A.shape===0?s=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===1&&(s=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(t),Math.abs(t-r)));break;case 3:if(A.shape===0)s=o=Math.max(Ve(e,t),Ve(e,t-r),Ve(e-n,t),Ve(e-n,t-r));else if(A.shape===1){const a=Math.max(Math.abs(t),Math.abs(t-r))/Math.max(Math.abs(e),Math.abs(e-n)),[i,c]=qd(n,r,e,t,!1);s=Ve(i-e,(c-t)/a),o=a*s}break}return Array.isArray(A.size)&&(s=J(A.size[0],n),o=A.size.length===2?J(A.size[1],r):s),[s,o]},Ap=(A,e)=>{let t=_e(180);const n=[];return Ke(e).forEach((r,s)=>{if(s===0){const a=r[0];if(a.type===20&&a.value==="to"){t=kd(r);return}else if(Ed(a)){t=jn.parse(A,a);return}}const o=Eo(A,r);n.push(o)}),{angle:t,stops:n,type:1}},ko=(A,e)=>{let t=_e(180);const n=[];return Ke(e).forEach((r,s)=>{if(s===0){const a=r[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){t=kd(r);return}else if(Ed(a)){t=(jn.parse(A,a)+_e(270))%_e(360);return}}const o=Eo(A,r);n.push(o)}),{angle:t,stops:n,type:1}},a0=(A,e)=>{const t=_e(180),n=[];let r=1;const s=0,o=3,a=[];return Ke(e).forEach((i,c)=>{const u=i[0];if(c===0){if(j(u)&&u.value==="linear"){r=1;return}else if(j(u)&&u.value==="radial"){r=2;return}}if(u.type===18){if(u.name==="from"){const h=Xt.parse(A,u.values[0]);n.push({stop:LA,color:h})}else if(u.name==="to"){const h=Xt.parse(A,u.values[0]);n.push({stop:$e,color:h})}else if(u.name==="color-stop"){const h=u.values.filter(zA);if(h.length===2){const f=Xt.parse(A,h[1]),g=h[0];$A(g)&&n.push({stop:{type:16,number:g.number*100,flags:g.flags},color:f})}}}}),r===1?{angle:(t+_e(180))%_e(360),stops:n,type:r}:{size:o,shape:s,stops:n,position:a,type:r}},ep="closest-side",tp="farthest-side",np="closest-corner",rp="farthest-corner",sp="circle",op="ellipse",ip="cover",ap="contain",c0=(A,e)=>{let t=0,n=3;const r=[],s=[];return Ke(e).forEach((o,a)=>{let i=!0;if(a===0){let c=!1;i=o.reduce((u,h)=>{if(c)if(j(h))switch(h.value){case"center":return s.push(Ut),u;case"top":case"left":return s.push(LA),u;case"right":case"bottom":return s.push($e),u}else(aA(h)||Gt(h))&&s.push(h);else if(j(h))switch(h.value){case sp:return t=0,!1;case op:return t=1,!1;case"at":return c=!0,!1;case ep:return n=0,!1;case ip:case tp:return n=1,!1;case ap:case np:return n=2,!1;case rp:return n=3,!1}else if(Gt(h)||aA(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return u},i)}if(i){const c=Eo(A,o);r.push(c)}}),{size:n,shape:t,stops:r,position:s,type:2}},Fo=(A,e)=>{let t=0,n=3;const r=[],s=[];return Ke(e).forEach((o,a)=>{let i=!0;if(a===0?i=o.reduce((c,u)=>{if(j(u))switch(u.value){case"center":return s.push(Ut),!1;case"top":case"left":return s.push(LA),!1;case"right":case"bottom":return s.push($e),!1}else if(aA(u)||Gt(u))return s.push(u),!1;return c},i):a===1&&(i=o.reduce((c,u)=>{if(j(u))switch(u.value){case sp:return t=0,!1;case op:return t=1,!1;case ap:case ep:return n=0,!1;case tp:return n=1,!1;case np:return n=2,!1;case ip:case rp:return n=3,!1}else if(Gt(u)||aA(u))return Array.isArray(n)||(n=[]),n.push(u),!1;return c},i)),i){const c=Eo(A,o);r.push(c)}}),{size:n,shape:t,stops:r,position:s,type:2}},Jr=(A,e)=>z(F({},Ap(A,e)),{type:3}),l0=A=>A.type===1,u0=A=>A.type===2,d0=A=>A.type===3,vo={name:"image",parse:(A,e)=>{if(e.type===22){const t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(e.type===18){const t=lp[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported image function "${e.name}"`);return t(A,e.values)}throw new Error(`Unsupported image type ${e.type}`)}};function cp(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!lp[A.name])}const lp={"linear-gradient":Ap,"-moz-linear-gradient":ko,"-ms-linear-gradient":ko,"-o-linear-gradient":ko,"-webkit-linear-gradient":ko,"radial-gradient":c0,"-moz-radial-gradient":Fo,"-ms-radial-gradient":Fo,"-o-radial-gradient":Fo,"-webkit-radial-gradient":Fo,"-webkit-gradient":a0,"repeating-linear-gradient":Jr,"-webkit-repeating-linear-gradient":Jr,"-moz-repeating-linear-gradient":Jr,"-ms-repeating-linear-gradient":Jr,"-o-repeating-linear-gradient":Jr},p0={name:"background-image",initialValue:"none",type:1,prefix:!1,skipCache:!0,parse:(A,e)=>{if(e.length===0)return[];const t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(n=>zA(n)&&cp(n)).map(n=>vo.parse(A,n))}},h0={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(A,e)=>e.map(t=>{if(j(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})},f0={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(A,e)=>Ke(e).map(t=>t.map(wd).filter(n=>n!==null)).map(Cd)},g0={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(A,e)=>Ke(e).map(t=>t.filter(j).map(n=>n.value).join(" ")).map(B0)},B0=A=>{switch(A){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}},w0={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(A,e)=>Ke(e).map(t=>t.map(n=>m0(n)?n:wd(n)).filter(n=>n!==null))},m0=A=>j(A)||aA(A),_o=A=>({name:`border-${A}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),C0=_o("top"),b0=_o("right"),Q0=_o("bottom"),y0=_o("left"),xo=A=>({name:`border-${A}-radius`,initialValue:"0 0",prefix:!1,type:1,parse:(e,t)=>Cd(t.filter(aA))}),U0=xo("top-left"),E0=xo("top-right"),k0=xo("bottom-right"),F0=xo("bottom-left"),So=A=>({name:`border-${A}-style`,initialValue:"solid",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}),v0=So("top"),_0=So("right"),x0=So("bottom"),S0=So("left"),Io=A=>({name:`border-${A}-width`,initialValue:"0",type:0,prefix:!1,parse:(e,t)=>lt(t)?t.number:0}),I0=Io("top"),T0=Io("right"),H0=Io("bottom"),L0=Io("left"),Ma={type:0},Na=A=>{const[e]=A;return e?j(e)?e.value==="farthest-side"?"farthest-side":"closest-side":aA(e)?e:"closest-side":"closest-side"},up=A=>{let e=null,t=null;for(const n of A)if(j(n))switch(n.value){case"left":e=LA;break;case"right":e=$e;break;case"top":t=LA;break;case"bottom":t=$e;break;case"center":e===null?e=Ut:t===null&&(t=Ut);break}else aA(n)&&(e===null?e=n:t===null&&(t=n));return{cx:e!=null?e:Ut,cy:t!=null?t:Ut}},R0=A=>{var r,s,o,a;const e=[];for(const i of A)if(i.type!==31){if(j(i)&&i.value==="round")break;aA(i)&&e.push(i)}const t=(r=e[0])!=null?r:LA,n=(s=e[1])!=null?s:t;return{type:1,top:t,right:n,bottom:(o=e[2])!=null?o:t,left:(a=e[3])!=null?a:n}},D0=A=>{const e=A.filter(zr),t=e.findIndex(s=>$r(s,"at")),n=t===-1?e:e.slice(0,t),r=t===-1?[]:e.slice(t+1);return F({type:2,radius:Na(n)},up(r))},O0=A=>{const e=A.filter(zr),t=e.findIndex(s=>$r(s,"at")),n=t===-1?e:e.slice(0,t),r=t===-1?[]:e.slice(t+1);return F({type:3,rx:Na(n.slice(0,1)),ry:Na(n.slice(1,2))},up(r))},P0=A=>{const e=Ke(A),t=[];for(const n of e){if(n.length===1&&j(n[0]))continue;const r=n.filter(aA);r.length>=2&&t.push([r[0],r[1]])}return{type:4,points:t}},M0=A=>{const e=A.find(t=>t.type===0);return e?{type:5,d:e.value}:Ma},N0={name:"clip-path",initialValue:"none",prefix:!1,type:0,parse:(A,e)=>{if(j(e)&&e.value==="none")return Ma;if(e.type===18)switch(e.name){case"inset":return R0(e.values);case"circle":return D0(e.values);case"ellipse":return O0(e.values);case"polygon":return P0(e.values);case"path":return M0(e.values)}return Ma}},K0={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$0={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"rtl":return 1;default:return 0}}},z0={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(A,e)=>e.filter(j).reduce((t,n)=>t|V0(n.value),0)},V0=A=>{switch(A){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},dp={name:"float",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},G0={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:(A,e)=>e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0},Z0={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"strict":return"strict";default:return"normal"}}},X0={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ka=(A,e)=>j(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:aA(A)?J(A,e):e,W0={name:"list-style-image",initialValue:"none",type:0,prefix:!1,skipCache:!0,parse:(A,e)=>e.type===20&&e.value==="none"?null:vo.parse(A,e)},J0={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"inside":return 0;default:return 1}}},To=A=>({name:`margin-${A}`,initialValue:"0",prefix:!1,type:4}),j0=To("top"),Y0=To("right"),q0=To("bottom"),AU=To("left"),pp={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(A,e)=>e.filter(j).map(t=>{switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},eU={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"break-word":return"break-word";default:return"normal"}}},Ho=A=>({name:`padding-${A}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),tU=Ho("top"),nU=Ho("right"),rU=Ho("bottom"),sU=Ho("left"),oU={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},iU={name:"position",initialValue:"static",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},aU={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.length===1&&$r(e[0],"none")?[]:Ke(e).map(t=>{const n={color:ut.TRANSPARENT,offsetX:LA,offsetY:LA,blur:LA};let r=0;for(let s=0;s<t.length;s++){const o=t[s];Gt(o)?(r===0?n.offsetX=o:r===1?n.offsetY=o:n.blur=o,r++):n.color=Xt.parse(A,o)}return n})},cU={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},lU={name:"transform",initialValue:"none",prefix:!0,type:0,parse:(A,e)=>{if(e.type===20&&e.value==="none")return null;if(e.type===18){const t=uU[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported transform function "${e.name}"`);return t(A,e.values)}return null}},uU={matrix:(A,e)=>{const t=e.filter(n=>n.type===17).map(n=>n.number);return t.length===6?t:null},matrix3d:(A,e)=>{const t=e.filter(c=>c.type===17).map(c=>c.number),[n,r,{},{},s,o,{},{},{},{},{},{},a,i]=t;return t.length===16?[n,r,s,o,a,i]:null},rotate:(A,e)=>{if(e.length!==1)return null;const t=e[0];let n=0;if(t.type===17&&t.number===0)n=0;else if(t.type===15)n=jn.parse(A,t);else return null;const r=Math.cos(n),s=Math.sin(n);return[r,s,-s,r,0,0]}},hp={type:16,number:50,flags:4},dU=[hp,hp],pU={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(A,e)=>{const t=e.filter(aA);return t.length!==2?dU:[t[0],t[1]]}},hU={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:(A,e)=>e.type===20&&e.value==="none"?null:e.type===17&&e.number===0?0:e.type===15?jn.parse(A,e)*180/Math.PI:null},fU={name:"visibility",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},gU={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"break-all":return"break-all";case"keep-all":return"keep-all";default:return"normal"}}},BU={name:"white-space",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"pre":return"pre";case"nowrap":return"nowrap";case"pre-wrap":return"pre-wrap";case"pre-line":return"pre-line";default:return"normal"}}},Lo=A=>A!==0,$a=A=>A===3||A===4,wU={name:"writing-mode",initialValue:"horizontal-tb",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"vertical-rl":return 1;case"vertical-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4;default:return 0}}},mU={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>{if(e.type===20)return{auto:!0,order:0};if($A(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},fp={name:"time",parse:(A,e)=>{if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},CU={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(A,e)=>$A(e)?e.number:1},gp={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Bp={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(A,e)=>e.filter(j).map(t=>{switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(t=>t!==0)},bU={name:"text-decoration-style",initialValue:"solid",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"double":return 1;case"dotted":return 2;case"dashed":return 3;case"wavy":return 4;default:return 0}}},QU={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>{if(j(e))switch(e.value){case"auto":return"auto";case"from-font":return"from-font"}return lt(e)?e.number:"auto"}},yU={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>j(e)&&e.value==="auto"?"auto":lt(e)?e.number:"auto"},UU={name:"font-family",initialValue:"",prefix:!1,type:1,parse:(A,e)=>{const t=[],n=[],r=[];let s=!1;return e.forEach(o=>{switch(o.type){case 20:t.push(o.value);break;case 0:s=!0,t.push(o.value);break;case 17:t.push(o.number.toString());break;case 4:n.push(t.join(" ")),r.push(s),s=!1,t.length=0;break}}),t.length&&(n.push(t.join(" ")),r.push(s)),n.map((o,a)=>r[a]||o.indexOf(" ")!==-1?`'${o.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\a ").replace(/\r/g,"\\d ").replace(/\f/g,"\\c ")}'`:o)}},EU={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},kU={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(A,e)=>{if($A(e))return e.number;if(j(e))switch(e.value){case"bold":return 700;default:return 400}return 400}},FU={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.filter(j).map(t=>t.value)},vU={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},_U={name:"content",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>{if(e.length===0)return[];const t=e[0];return t.type===20&&t.value==="none"?[]:e}},wp=(A,e)=>{const t=[],n=A.filter(zr);for(let r=0;r<n.length;r++){const s=n[r],o=n[r+1];if(s.type===20){const a=o&&$A(o)?o.number:e;t.push([s.value,a])}}return t},xU={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>{if(e.length===0)return null;const t=e[0];return t.type===20&&t.value==="none"?null:wp(e,1).map(([n,r])=>({counter:n,increment:r}))}},SU={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>e.length===0?[]:wp(e,0).filter(([t])=>t!=="none").map(([t,n])=>({counter:t,reset:n}))},IU={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(A,e)=>e.filter(lt).map(t=>fp.parse(A,t))},TU={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>{if(e.length===0)return null;const t=e[0];if(t.type===20&&t.value==="none")return null;const n=[],r=e.filter(GQ);if(r.length%2!==0)return null;for(let s=0;s<r.length;s+=2){const o=r[s].value,a=r[s+1].value;n.push({open:o,close:a})}return n}},mp=(A,e,t)=>{if(!A)return"";const n=A[Math.min(e,A.length-1)];return n?t?n.open:n.close:""},HU={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.length===1&&$r(e[0],"none")?[]:Ke(e).map(t=>{const n={color:255,offsetX:LA,offsetY:LA,blur:LA,spread:LA,inset:!1};let r=0;for(let s=0;s<t.length;s++){const o=t[s];$r(o,"inset")?n.inset=!0:Gt(o)?(r===0?n.offsetX=o:r===1?n.offsetY=o:r===2?n.blur=o:n.spread=o,r++):n.color=Xt.parse(A,o)}return n})},LU={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(A,e)=>{const t=[0,1,2],n=[];return e.filter(j).forEach(r=>{switch(r.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),t.forEach(r=>{n.indexOf(r)===-1&&n.push(r)}),n}},RU={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},DU={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:(A,e)=>lt(e)?e.number:0},OU={name:"-webkit-line-clamp",initialValue:"none",prefix:!0,type:0,parse:(A,e)=>e.type===20&&e.value==="none"?0:e.type===17?Math.max(0,Math.floor(e.number)):0},PU={name:"object-fit",initialValue:"fill",prefix:!1,type:1,parse:(A,e)=>e.filter(j).reduce((t,n)=>t|MU(n.value),0)},MU=A=>{switch(A){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},NU={name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"ellipsis":return 1;default:return 0}}},KU={name:"image-rendering",initialValue:"auto",prefix:!1,type:2,parse:(A,e)=>{switch(e.toLowerCase()){case"crisp-edges":case"-webkit-crisp-edges":case"-moz-crisp-edges":return 1;case"pixelated":case"-webkit-optimize-contrast":return 2;case"smooth":case"high-quality":return 3;default:return 0}}},VA={NORMAL:"normal",MULTIPLY:"multiply",SCREEN:"screen",OVERLAY:"overlay",DARKEN:"darken",LIGHTEN:"lighten",COLOR_DODGE:"color-dodge",COLOR_BURN:"color-burn",HARD_LIGHT:"hard-light",SOFT_LIGHT:"soft-light",DIFFERENCE:"difference",EXCLUSION:"exclusion",HUE:"hue",SATURATION:"saturation",COLOR:"color",LUMINOSITY:"luminosity"},$U=new Set(Object.values(VA)),zU={name:"mix-blend-mode",initialValue:"normal",type:2,prefix:!1,parse:(A,e)=>$U.has(e)?e:VA.NORMAL},VU={name:"filter",initialValue:"none",prefix:!1,type:1,parse:(A,e)=>{if(e.length===1&&e[0].type===20&&e[0].value==="none")return null;const t=[];for(const n of e)if(n.type===18){const r=n,s=GU(r.values);switch(r.name){case"blur":t.push(`blur(${s}px)`);break;case"brightness":case"contrast":case"invert":case"opacity":case"saturate":case"sepia":t.push(`${r.name}(${s})`);break;case"grayscale":t.push(`grayscale(${s})`);break;case"hue-rotate":t.push(`hue-rotate(${s}deg)`);break;case"drop-shadow":t.push(`drop-shadow(${s})`);break}}return t.length>0?t.join(" "):null}},GU=A=>{const e=[];for(const t of A)t.type!==31&&(t.type===15?e.push(`${t.number}${t.unit}`):t.type===17?e.push(`${t.number}`):t.type===16?e.push(`${t.number}%`):t.type===20?e.push(t.value):t.type===5&&e.push(`#${t.value}`));return e.join(" ")},ZU={name:"font-variant-ligatures",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"none":return 1;case"common-ligatures":return 2;case"no-common-ligatures":return 3;case"discretionary-ligatures":return 4;case"no-discretionary-ligatures":return 5;case"historical-ligatures":return 6;case"no-historical-ligatures":return 7;case"contextual":return 8;case"no-contextual":return 9;default:return 0}}},XU={name:"zoom",initialValue:"1",type:0,prefix:!1,parse:(A,e)=>e.type===16?Math.max(0,e.number/100):e.type===17?Math.max(0,e.number):1},WU={name:"object-position",initialValue:"50% 50%",prefix:!1,type:1,parse:(A,e)=>{const t=[];let n=0;for(;n<e.length&&t.length<2;){const r=e[n];if(j(r))switch(r.value){case"left":case"top":t.push(LA);break;case"center":t.push(Ut);break;case"right":case"bottom":t.push($e);break}else aA(r)&&t.push(r);n++}for(;t.length<2;)t.push(Ut);return[t[0],t[1]]}},JU=new Set(Object.values({NORMAL:"normal",MULTIPLY:"multiply",SCREEN:"screen",OVERLAY:"overlay",DARKEN:"darken",LIGHTEN:"lighten",COLOR_DODGE:"color-dodge",COLOR_BURN:"color-burn",HARD_LIGHT:"hard-light",SOFT_LIGHT:"soft-light",DIFFERENCE:"difference",EXCLUSION:"exclusion",HUE:"hue",SATURATION:"saturation",COLOR:"color",LUMINOSITY:"luminosity"})),jU={name:"background-blend-mode",initialValue:"normal",prefix:!1,type:1,parse:(A,e)=>{const t=[],n=e.filter(zA);for(const r of n)j(r)&&JU.has(r.value)&&t.push(r.value);return t.length>0?t:["normal"]}},YU={name:"border-image-source",initialValue:"none",prefix:!1,type:1,skipCache:!0,parse:(A,e)=>{if(e.length===0)return null;const t=e.filter(n=>zA(n)&&cp(n));return t.length===0?null:vo.parse(A,t[0])}},qU=A=>{const e=[...A];return e.length===1?e.push(e[0],e[0],e[0]):e.length===2?e.push(e[0],e[1]):e.length===3&&e.push(e[1]),e.slice(0,4)},AE={name:"border-image-slice",initialValue:"100%",prefix:!1,type:1,parse:(A,e)=>{const t=e.filter(zr),n=[];let r=!1,s="percent";for(const u of t){if(j(u)&&u.value==="fill"){r=!0;continue}u.type===17?(n.push(u.number),s="number"):u.type===16&&(n.push(u.number),s="percent")}const[o,a,i,c]=qU(n.length>0?n:[100]);return{top:o,right:a,bottom:i,left:c,fill:r,unit:s}}},eE=A=>{switch(A){case"repeat":return 1;case"round":return 2;case"space":return 3;default:return 0}},tE={name:"border-image-repeat",initialValue:"stretch",prefix:!1,type:1,parse:(A,e)=>{var s,o;const t=e.filter(zr),n=[];for(const a of t)j(a)&&n.push(eE(a.value));const r=(s=n[0])!=null?s:0;return{horizontal:r,vertical:(o=n[1])!=null?o:r}}},nE={name:"box-decoration-break",initialValue:"slice",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"clone":return 1;default:return 0}}},rE=1e4;var sE=class{constructor(A){this.styles=A}get topColor(){return this.styles.borderTopColor}get rightColor(){return this.styles.borderRightColor}get bottomColor(){return this.styles.borderBottomColor}get leftColor(){return this.styles.borderLeftColor}get topStyle(){return this.styles.borderTopStyle}get rightStyle(){return this.styles.borderRightStyle}get bottomStyle(){return this.styles.borderBottomStyle}get leftStyle(){return this.styles.borderLeftStyle}get topWidth(){return this.styles.borderTopWidth}get rightWidth(){return this.styles.borderRightWidth}get bottomWidth(){return this.styles.borderBottomWidth}get leftWidth(){return this.styles.borderLeftWidth}get topLeftRadius(){return this.styles.borderTopLeftRadius}get topRightRadius(){return this.styles.borderTopRightRadius}get bottomRightRadius(){return this.styles.borderBottomRightRadius}get bottomLeftRadius(){return this.styles.borderBottomLeftRadius}get imageSource(){return this.styles.borderImageSource}get imageSlice(){return this.styles.borderImageSlice}get imageRepeat(){return this.styles.borderImageRepeat}get boxShadow(){return this.styles.boxShadow}},oE=class{constructor(A){this.styles=A}get color(){return this.styles.backgroundColor}get image(){return this.styles.backgroundImage}get clip(){return this.styles.backgroundClip}get origin(){return this.styles.backgroundOrigin}get position(){return this.styles.backgroundPosition}get repeat(){return this.styles.backgroundRepeat}get size(){return this.styles.backgroundSize}get blendMode(){return this.styles.backgroundBlendMode}},iE=class{constructor(A){this.styles=A}get family(){return this.styles.fontFamily}get size(){return this.styles.fontSize}get style(){return this.styles.fontStyle}get variant(){return this.styles.fontVariant}get weight(){return this.styles.fontWeight}get ligatures(){return this.styles.fontVariantLigatures}get color(){return this.styles.color}get letterSpacing(){return this.styles.letterSpacing}get lineHeight(){return this.styles.lineHeight}get textAlign(){return this.styles.textAlign}get textTransform(){return this.styles.textTransform}get textOverflow(){return this.styles.textOverflow}get textShadow(){return this.styles.textShadow}get textDecorationColor(){return this.styles.textDecorationColor}get textDecorationLine(){return this.styles.textDecorationLine}get textDecorationStyle(){return this.styles.textDecorationStyle}get textDecorationThickness(){return this.styles.textDecorationThickness}get textUnderlineOffset(){return this.styles.textUnderlineOffset}get wordBreak(){return this.styles.wordBreak}get lineBreak(){return this.styles.lineBreak}get overflowWrap(){return this.styles.overflowWrap}get writingMode(){return this.styles.writingMode}get direction(){return this.styles.direction}get webkitTextStrokeColor(){return this.styles.webkitTextStrokeColor}get webkitTextStrokeWidth(){return this.styles.webkitTextStrokeWidth}get webkitLineClamp(){return this.styles.webkitLineClamp}get paintOrder(){return this.styles.paintOrder}},aE=class{constructor(A){this.styles=A}get display(){return this.styles.display}get position(){return this.styles.position}get float(){return this.styles.float}get zIndex(){return this.styles.zIndex}get marginTop(){return this.styles.marginTop}get marginRight(){return this.styles.marginRight}get marginBottom(){return this.styles.marginBottom}get marginLeft(){return this.styles.marginLeft}get paddingTop(){return this.styles.paddingTop}get paddingRight(){return this.styles.paddingRight}get paddingBottom(){return this.styles.paddingBottom}get paddingLeft(){return this.styles.paddingLeft}get overflowX(){return this.styles.overflowX}get overflowY(){return this.styles.overflowY}get opacity(){return this.styles.opacity}get visibility(){return this.styles.visibility}get transform(){return this.styles.transform}get transformOrigin(){return this.styles.transformOrigin}get rotate(){return this.styles.rotate}get zoom(){return this.styles.zoom}get clipPath(){return this.styles.clipPath}get mixBlendMode(){return this.styles.mixBlendMode}get filter(){return this.styles.filter}get imageRendering(){return this.styles.imageRendering}get objectFit(){return this.styles.objectFit}get objectPosition(){return this.styles.objectPosition}get boxDecorationBreak(){return this.styles.boxDecorationBreak}get listStyleImage(){return this.styles.listStyleImage}get listStylePosition(){return this.styles.listStylePosition}get listStyleType(){return this.styles.listStyleType}get animationDuration(){return this.styles.animationDuration}isVisible(){return this.styles.isVisible()}isTransparent(){return this.styles.isTransparent()}isTransformed(){return this.styles.isTransformed()}isPositioned(){return this.styles.isPositioned()}isPositionedWithZIndex(){return this.styles.isPositionedWithZIndex()}isFloating(){return this.styles.isFloating()}isInlineLevel(){return this.styles.isInlineLevel()}},cE=(vn=class{get border(){var e;return(e=this._border)!=null?e:this._border=new sE(this)}get background(){var e;return(e=this._background)!=null?e:this._background=new oE(this)}get font(){var e;return(e=this._font)!=null?e:this._font=new iE(this)}get layout(){var e;return(e=this._layout)!=null?e:this._layout=new aE(this)}constructor(e,t){var s,o;const n=vn.standardProps;if(t.display==="none"){this.display=0;for(const[i,c]of n)i!=="display"&&(this[i]=we(e,c,void 0));this.float=we(e,dp,void 0),this.textDecorationColor=we(e,gp,void 0),this.textDecorationLine=we(e,Bp,void 0);const a=we(e,pp,void 0);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0];return}for(const[a,i,c]of n)this[a]=we(e,i,t[c]);this.float=we(e,dp,t.cssFloat),this.textDecorationColor=we(e,gp,(s=t.textDecorationColor)!=null?s:t.color),this.textDecorationLine=we(e,Bp,(o=t.textDecorationLine)!=null?o:t.textDecoration);const r=we(e,pp,t.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0]}isVisible(){return this.display>0&&this.opacity>0&&this.visibility===0}isTransparent(){return Et(this.backgroundColor)}isTransformed(){return this.transform!==null||this.rotate!==null}isPositioned(){return this.position!==0}isPositionedWithZIndex(){return this.isPositioned()&&!this.zIndex.auto}isFloating(){return this.float!==0}isInlineLevel(){return ee(this.display,4)||ee(this.display,33554432)||ee(this.display,268435456)||ee(this.display,536870912)||ee(this.display,67108864)||ee(this.display,134217728)}},vn.standardProps=[["animationDuration",IU,"animationDuration"],["backgroundClip",r0,"backgroundClip"],["backgroundColor",s0,"backgroundColor"],["backgroundImage",p0,"backgroundImage"],["backgroundOrigin",h0,"backgroundOrigin"],["backgroundPosition",f0,"backgroundPosition"],["backgroundRepeat",g0,"backgroundRepeat"],["backgroundSize",w0,"backgroundSize"],["borderTopColor",C0,"borderTopColor"],["borderRightColor",b0,"borderRightColor"],["borderBottomColor",Q0,"borderBottomColor"],["borderLeftColor",y0,"borderLeftColor"],["borderTopLeftRadius",U0,"borderTopLeftRadius"],["borderTopRightRadius",E0,"borderTopRightRadius"],["borderBottomRightRadius",k0,"borderBottomRightRadius"],["borderBottomLeftRadius",F0,"borderBottomLeftRadius"],["borderTopStyle",v0,"borderTopStyle"],["borderRightStyle",_0,"borderRightStyle"],["borderBottomStyle",x0,"borderBottomStyle"],["borderLeftStyle",S0,"borderLeftStyle"],["borderTopWidth",I0,"borderTopWidth"],["borderRightWidth",T0,"borderRightWidth"],["borderBottomWidth",H0,"borderBottomWidth"],["borderLeftWidth",L0,"borderLeftWidth"],["boxShadow",HU,"boxShadow"],["clipPath",N0,"clipPath"],["color",K0,"color"],["direction",$0,"direction"],["display",z0,"display"],["fontFamily",UU,"fontFamily"],["fontSize",EU,"fontSize"],["fontStyle",vU,"fontStyle"],["fontVariant",FU,"fontVariant"],["fontWeight",kU,"fontWeight"],["letterSpacing",G0,"letterSpacing"],["lineBreak",Z0,"lineBreak"],["lineHeight",X0,"lineHeight"],["listStyleImage",W0,"listStyleImage"],["listStylePosition",J0,"listStylePosition"],["listStyleType",Da,"listStyleType"],["marginTop",j0,"marginTop"],["marginRight",Y0,"marginRight"],["marginBottom",q0,"marginBottom"],["marginLeft",AU,"marginLeft"],["opacity",CU,"opacity"],["overflowWrap",eU,"overflowWrap"],["paddingTop",tU,"paddingTop"],["paddingRight",nU,"paddingRight"],["paddingBottom",rU,"paddingBottom"],["paddingLeft",sU,"paddingLeft"],["paintOrder",LU,"paintOrder"],["position",iU,"position"],["textAlign",oU,"textAlign"],["textDecorationStyle",bU,"textDecorationStyle"],["textDecorationThickness",QU,"textDecorationThickness"],["textUnderlineOffset",yU,"textUnderlineOffset"],["textShadow",aU,"textShadow"],["textTransform",cU,"textTransform"],["textOverflow",NU,"textOverflow"],["transform",lU,"transform"],["transformOrigin",pU,"transformOrigin"],["rotate",hU,"rotate"],["visibility",fU,"visibility"],["webkitTextStrokeColor",RU,"webkitTextStrokeColor"],["webkitTextStrokeWidth",DU,"webkitTextStrokeWidth"],["webkitLineClamp",OU,"webkitLineClamp"],["wordBreak",gU,"wordBreak"],["whiteSpace",BU,"whiteSpace"],["writingMode",wU,"writingMode"],["zIndex",mU,"zIndex"],["objectFit",PU,"objectFit"],["imageRendering",KU,"imageRendering"],["mixBlendMode",zU,"mixBlendMode"],["filter",VU,"filter"],["fontVariantLigatures",ZU,"fontVariantLigatures"],["zoom",XU,"zoom"],["objectPosition",WU,"objectPosition"],["backgroundBlendMode",jU,"backgroundBlendMode"],["borderImageSource",YU,"borderImageSource"],["borderImageSlice",AE,"borderImageSlice"],["borderImageRepeat",tE,"borderImageRepeat"],["boxDecorationBreak",nE,"boxDecorationBreak"]],vn),lE=class{constructor(A,e){this.content=we(A,_U,e.content),this.quotes=we(A,TU,e.quotes)}},Cp=class{constructor(A,e){this.counterIncrement=we(A,xU,e.counterIncrement),this.counterReset=we(A,SU,e.counterReset)}};const bp=new Map,we=(A,e,t)=>{let n=t!==null&&typeof t!="undefined"?t.toString():e.initialValue;n.trim()===""&&(n=e.initialValue);let r=bp.get(e);if(r){const i=r.get(n);if(i!==void 0)return r.delete(n),r.set(n,i),i}const s=_a.get();s.write(n);const o=new fd(s.read());_a.release(s);const a=(()=>{switch(e.type){case 2:{const i=o.parseComponentValue();return e.parse(A,j(i)?i.value:e.initialValue)}case 0:return e.parse(A,o.parseComponentValue());case 1:return e.parse(A,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(e.format){case"angle":return jn.parse(A,o.parseComponentValue());case"color":return Xt.parse(A,o.parseComponentValue());case"image":return vo.parse(A,o.parseComponentValue());case"length":{const i=o.parseComponentValue();return Gt(i)?i:LA}case"length-percentage":{const i=o.parseComponentValue();return aA(i)?i:LA}case"time":return fp.parse(A,o.parseComponentValue())}}})();if(r||(r=new Map,bp.set(e,r)),!(e.skipCache||e.type===3&&e.format==="image")){if(r.size>=200){const i=r.keys().next().value;r.delete(i)}r.set(n,a)}return a},uE="data-html2canvas-debug",dE=A=>{if(typeof A.getAttribute!="function")return 0;switch(A.getAttribute(uE)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},za=(A,e)=>{const t=dE(A);return t===1||e===t},pE="data-html2canvas-ignore";var hE=class{constructor(A,e,t){this.cloneNodeFn=A,this.options=e,this.context=t}appendChildNode(A,e,t){this.safeAppendClonedChild(A,e,t)}cloneChildNodes(A,e,t){A.shadowRoot&&e.shadowRoot?(this.cloneShadowDOMChildren(A.shadowRoot,e.shadowRoot,t),this.cloneLightDOMChildren(A,e,t)):A.shadowRoot&&!e.shadowRoot?this.cloneShadowDOMAsLightDOM(A.shadowRoot,e,t):this.cloneLightDOMChildren(A,e,t)}shouldCloneChild(A){return!un(A)||!Gy(A)&&!A.hasAttribute("data-html2canvas-ignore")&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A))}shouldCloneStyleElement(A){return!this.options.copyStyles||!un(A)||!zd(A)}safeAppendClonedChild(A,e,t){this.shouldCloneChild(e)&&this.shouldCloneStyleElement(e)&&A.appendChild(this.cloneNodeFn(e,t))}cloneAssignedNodes(A,e,t){A.forEach(n=>{this.safeAppendClonedChild(e,n,t)})}cloneSlotFallbackContent(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)this.safeAppendClonedChild(e,n,t)}cloneSlotElement(A,e,t){if(!Xr(A))return;const n=A;if(typeof n.assignedNodes!="function"){this.context.logger.warn("HTMLSlotElement.assignedNodes is not available",A),this.cloneSlotFallbackContent(A,e,t);return}const r=n.assignedNodes();if(!r||!Array.isArray(r)){this.context.logger.warn("assignedNodes() did not return a valid array",A),this.cloneSlotFallbackContent(A,e,t);return}r.length>0?this.cloneAssignedNodes(r,e,t):this.cloneSlotFallbackContent(A,e,t)}cloneShadowDOMChildren(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)un(n)&&Xr(n)?this.cloneSlotElement(n,e,t):this.safeAppendClonedChild(e,n,t)}cloneLightDOMChildren(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)this.appendChildNode(e,n,t)}cloneSlotElementAsLightDOM(A,e,t){if(!Xr(A))return;const n=A;if(typeof n.assignedNodes!="function"){for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,t);return}const r=n.assignedNodes();if(r&&Array.isArray(r)&&r.length>0)r.forEach(s=>this.appendChildNode(e,s,t));else for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,t)}cloneShadowDOMAsLightDOM(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)un(n)&&Xr(n)?this.cloneSlotElementAsLightDOM(n,e,t):this.appendChildNode(e,n,t)}};const fE=A=>{let e=A;for(;e;){if(e.parentNode&&e.parentNode.host)return e.parentNode;const t=e.getRootNode();if(t&&t!==e.ownerDocument&&t.host)return t;e=e.parentNode}return null};var Va=class{constructor(A,e,t){var n;if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new jy,this.quoteDepth=0,this.slotCloner=new hE((r,s)=>this.cloneNode(r,s),{ignoreElements:t.ignoreElements,copyStyles:(n=t.copyStyles)!=null?n:!0},A),!e.ownerDocument)throw new Error("Cloned element does not have an owner document");if(!this.options.iframeContainer){const r=fE(e);r&&(this.options.iframeContainer=r)}this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}toIFrame(A,e){var h,f;const t=gE(A,e,this.options.iframeContainer);if(!t.contentWindow)throw new Error("Unable to find iframe window");const n=A.defaultView.pageXOffset,r=A.defaultView.pageYOffset,s=t.contentWindow,o=s.document,a=mE(t).then(()=>I(this,null,function*(){this.scrolledElements.forEach(yE),s&&s.scrollTo(e.left,e.top);const g=this.options.onclone,m=this.clonedReferenceElement;if(typeof m=="undefined")throw new Error(`Error finding the ${this.referenceElement.nodeName} in the cloned document`);return o.fonts&&o.fonts.ready&&(yield o.fonts.ready),/(AppleWebKit)/g.test(navigator.userAgent)&&(yield wE(o)),typeof g=="function"&&(yield Promise.resolve().then(()=>g(o,m))),s.scrollTo(e.left,e.top),/AppleWebKit/g.test(navigator.userAgent)&&(s.scrollY!==e.top||s.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0)),t})),i=A.baseURI;o.open();const c=bE(document.doctype)+"<html></html>";try{const g=(h=this.referenceElement.ownerDocument)==null?void 0:h.defaultView,m=g&&g.trustedTypes;let b=(f=m==null?void 0:m.getPolicy)==null?void 0:f.call(m,"html2canvas-pro");!b&&m&&(b=m.createPolicy("html2canvas-pro",{createHTML:k=>k}));const E=b?b.createHTML(c):c;o.write(E)}catch(g){o.write(c)}QE(this.referenceElement.ownerDocument,n,r),o.close();const u=o.adoptNode(this.documentElement);return vE(u,i),o.replaceChild(u,o.documentElement),a}createElementClone(A){if(za(A,2))debugger;if(Nd(A))return this.createCanvasClone(A);if(Kd(A))return this.createVideoClone(A);if(zd(A))return this.createStyleClone(A);const e=A.cloneNode(!1);return Ra(e)&&(Ra(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Vd(e)&&!dn(e)?this.createCustomElementClone(A,e):e}createCustomElementClone(A,e){const t=document.createElement("div");t.className=e.className,Ga(e.style,t);const n=e.attributes;for(let r=0;r<n.length;r++){const s=n[r];s.name!=="class"&&s.name!=="style"&&t.setAttribute(s.name,s.value)}if(A.shadowRoot)try{t.attachShadow({mode:"open"})}catch(r){this.context.logger.error("Failed to attach shadow root to custom element clone:",r)}return t}createStyleClone(A){try{const t=A.sheet;if(t&&t.cssRules){const n=[].slice.call(t.cssRules,0).reduce((s,o)=>o&&typeof o.cssText=="string"?s+o.cssText:s,""),r=A.cloneNode(!1);return r.textContent=n,this.options.cspNonce&&(r.nonce=this.options.cspNonce),r}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),t.name!=="SecurityError")throw t}const e=A.cloneNode(!1);return this.options.cspNonce&&(e.nonce=this.options.cspNonce),e}createCanvasClone(A){var t,n;if(this.options.inlineImages&&A.ownerDocument){const r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch(s){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}const e=A.cloneNode(!1);try{e.width=A.width,e.height=A.height;const r=A.getContext("2d"),s=e.getContext("2d",{willReadFrequently:!0});if(s)if(!this.options.allowTaint&&r)s.putImageData(r.getImageData(0,0,A.width,A.height),0,0);else{const o=(t=A.getContext("webgl2"))!=null?t:A.getContext("webgl");o&&((n=o.getContextAttributes())==null?void 0:n.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A),s.drawImage(A,0,0)}return e}catch(r){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return e}createVideoClone(A){const e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;const t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(r){this.context.logger.info("Unable to clone video as it is tainted",A)}const n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n}appendChildNode(A,e,t){this.slotCloner.appendChildNode(A,e,t)}cloneChildNodes(A,e,t){this.slotCloner.cloneChildNodes(A,e,t)}cloneNode(A,e){if(Pd(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);const t=A.ownerDocument.defaultView;if(t&&un(A)&&(Zr(A)||dn(A))){const n=this.createElementClone(A);n.style.transitionProperty="none";const r=t.getComputedStyle(A),s=Jy(A);this.referenceElement===A&&Zr(n)&&(this.clonedReferenceElement=n),La(n)&&kE(n,this.options.cspNonce);const o=this.counters.parse(new Cp(this.context,r));if(s){const a=t.getComputedStyle(A,":before"),i=this.resolvePseudoContent(A,n,a,0);i&&n.insertBefore(i,n.firstChild);const c=t.getComputedStyle(A,":after"),u=this.resolvePseudoContent(A,n,c,1);u&&n.appendChild(u)}return Vd(A)&&(e=!0),Kd(A)||this.cloneChildNodes(A,n,e),this.counters.pop(o),(r&&(this.options.copyStyles||dn(A))&&!$d(A)||e)&&Ga(r,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(yo(A)||Uo(A))&&(yo(n)||Uo(n))&&(n.value=A.value),n}return A.cloneNode(!1)}resolvePseudoContent(A,e,t,n){if(!t)return;const r=t.content,s=e.ownerDocument;if(!s||!r||r==="none"||r==="-moz-alt-content"||t.display==="none")return;this.counters.parse(new Cp(this.context,t));const o=new lE(this.context,t),a=s.createElement("html2canvaspseudoelement");Ga(t,a),o.content.forEach(c=>{if(c.type===0)a.appendChild(s.createTextNode(c.value));else if(c.type===22){const u=s.createElement("img");u.src=c.value,u.style.opacity="1",a.appendChild(u)}else if(c.type===18){if(c.name==="attr"){const u=c.values.filter(j);u.length&&a.appendChild(s.createTextNode(A.getAttribute(u[0].value)||""))}else if(c.name==="counter"){const[u,h]=c.values.filter(zA);if(u&&j(u)){const f=this.counters.getCounterValue(u.value),g=h&&j(h)?Da.parse(this.context,h.value):3;a.appendChild(s.createTextNode(Wr(f,g,!1)))}}else if(c.name==="counters"){const[u,h,f]=c.values.filter(zA);if(u&&j(u)){const g=this.counters.getCounterValues(u.value),m=f&&j(f)?Da.parse(this.context,f.value):3,b=h&&h.type===0?h.value:"",E=g.map(k=>Wr(k,m,!1)).join(b);a.appendChild(s.createTextNode(E))}}}else if(c.type===20)switch(c.value){case"open-quote":a.appendChild(s.createTextNode(mp(o.quotes,this.quoteDepth++,!0)));break;case"close-quote":a.appendChild(s.createTextNode(mp(o.quotes,--this.quoteDepth,!1)));break;default:a.appendChild(s.createTextNode(c.value))}}),a.className=`${Za} ${Xa}`;const i=n===0?` ${Za}`:` ${Xa}`;return dn(e)?e.className.baseValue+=i:e.className+=i,a}static destroy(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1}};const gE=(A,e,t)=>{const n=A.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(pE,"true"),(t||A.body).appendChild(n),n},BE=A=>new Promise(e=>{if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e}),wE=A=>Promise.all([].slice.call(A.images,0).map(BE)),mE=A=>new Promise((e,t)=>{const n=A.contentWindow;if(!n)return t("No window assigned for iframe");const r=n.document;n.onload=A.onload=()=>{n.onload=A.onload=null;const s=600;let o=0;const a=setInterval(()=>{o++,(r.body.childNodes.length>0&&r.readyState==="complete"||o>=s)&&(clearInterval(a),e(A))},50)}}),CE=["all","d","content"],Ga=(A,e)=>{const t=[];for(let n=A.length-1;n>=0;n--){const r=A.item(n);if(CE.indexOf(r)===-1&&!r.startsWith("--")){const s=A.getPropertyValue(r);if(s){const o=A.getPropertyPriority(r);t.push(o?`${r}:${s} !${o}`:`${r}:${s}`)}}}return t.length>0&&(e.style.cssText=t.join(";")+";"),e},bE=A=>{let e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=" "+A.internalSubset.replace(/"/g,"&quot;").replace(/>/g,"&gt;")),A.publicId?(e+=' PUBLIC "'+A.publicId.replace(/"/g,"&quot;")+'"',A.systemId&&(e+=' "'+A.systemId.replace(/"/g,"&quot;")+'"')):A.systemId&&(e+=' SYSTEM "'+A.systemId.replace(/"/g,"&quot;")+'"'),e+=">"),e},QE=(A,e,t)=>{A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},yE=([A,e,t])=>{A.scrollLeft=e,A.scrollTop=t},UE=":before",EE=":after",Za="___html2canvas___pseudoelement_before",Xa="___html2canvas___pseudoelement_after",Qp=`{
1650
1659
  content: "" !important;
1651
1660
  display: none !important;
1652
- }`,fE=(A,e)=>{gE(A,`.${Pa}${pE}${hp}
1653
- .${Ka}${hE}${hp}`,e)},gE=(A,e,t)=>{const n=A.ownerDocument;if(n){const r=n.createElement("style");r.textContent=e,t&&(r.nonce=t),A.appendChild(r)}},BE=(A,e)=>{var r;const t=A.ownerDocument.createElement("base");t.href=e;const n=A.getElementsByTagName("head").item(0);n==null||n.insertBefore(t,(r=n==null?void 0:n.firstChild)!=null?r:null)};for(var fp=class{static normalizeElement(A,e){const t={};return Kr(A)&&(e.animationDuration.some(n=>n>0)&&(t.animationDuration=A.style.animationDuration,A.style.animationDuration="0s"),e.transform!==null&&(t.transform=A.style.transform,A.style.transform="translate(0, 0)"),e.rotate!==null&&(t.rotate=A.style.rotate,A.style.rotate="0deg",t.transform===void 0&&(t.transform=A.style.transform,A.style.transform="translate(0, 0)"))),t}static restoreElement(A,e){Kr(A)&&(e.animationDuration!==void 0&&(A.style.animationDuration=e.animationDuration),e.transform!==void 0&&(A.style.transform=e.transform),e.rotate!==void 0&&(A.style.rotate=e.rotate))}},at=class{constructor(A,e,t={}){if(this.context=A,this.textNodes=[],this.elements=[],this.createsStackingContext=!1,this.createsRealStackingContext=!1,this.isListOwner=!1,this.debugRender=!1,Ra(e,3))debugger;if(this.styles=new YU(A,A.config.window.getComputedStyle(e,null)),t.normalizeDom!==!1&&Kr(e)&&(this.originalStyles=fp.normalizeElement(e,this.styles),this.originalElement=e),this.bounds=_r(this.context,e),e.tagName==="FIELDSET"){const n=e.querySelector(":scope > legend");if(n){const r=_r(this.context,n);this.legendBounds=r;const s=r.top+r.height/2-this.styles.borderTopWidth/2;this.bounds=new ke(this.bounds.left,s,this.bounds.width,this.bounds.height-(s-this.bounds.top))}}Ra(e,4)&&(this.debugRender=!0)}restore(){this.originalStyles&&this.originalElement&&(fp.restoreElement(this.originalElement,this.originalStyles),this.originalStyles=void 0,this.originalElement=void 0)}restoreTree(){this.restore();for(const A of this.elements)A.restoreTree()}},wE="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgAC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AAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGV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AAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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123456789+/",Gr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),xo=0;xo<gp.length;xo++)Gr[gp.charCodeAt(xo)]=xo;for(var mE=function(A){var e=A.length*.75,t=A.length,n,r=0,s,o,a,i;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var l=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<t;n+=4)s=Gr[A.charCodeAt(n)],o=Gr[A.charCodeAt(n+1)],a=Gr[A.charCodeAt(n+2)],i=Gr[A.charCodeAt(n+3)],u[r++]=s<<2|o>>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|i&63;return l},CE=function(A){for(var e=A.length,t=[],n=0;n<e;n+=2)t.push(A[n+1]<<8|A[n]);return t},bE=function(A){for(var e=A.length,t=[],n=0;n<e;n+=4)t.push(A[n+3]<<24|A[n+2]<<16|A[n+1]<<8|A[n]);return t},cn=5,Na=11,za=2,QE=Na-cn,Bp=65536>>cn,$a=(1<<cn)-1,yE=Bp+(1024>>cn)+32,UE=65536>>Na,EE=(1<<QE)-1,wp=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},FE=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},kE=function(A,e){var t=mE(A),n=Array.isArray(t)?bE(t):new Uint32Array(t),r=Array.isArray(t)?CE(t):new Uint16Array(t),s=24,o=wp(r,s/2,n[4]/2),a=n[5]===2?wp(r,(s+n[4])/2):FE(n,Math.ceil((s+n[4])/4));return new vE(n[0],n[1],n[2],n[3],o,a)},vE=(function(){function A(e,t,n,r,s,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=s,this.data=o}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>cn],t=(t<<za)+(e&$a),this.data[t];if(e<=65535)return t=this.index[Bp+(e-55296>>cn)],t=(t<<za)+(e&$a),this.data[t];if(e<this.highStart)return t=yE-UE+(e>>Na),t=this.index[t],t+=e>>cn&EE,t=this.index[t],t=(t<<za)+(e&$a),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),mp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_E=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),So=0;So<mp.length;So++)_E[mp.charCodeAt(So)]=So;var xE=1,Ga=2,Va=3,Cp=4,bp=5,SE=7,Qp=8,Za=9,Xa=10,yp=11,Up=12,Ep=13,Fp=14,Wa=15,IE=function(A){for(var e=[],t=0,n=A.length;t<n;){var r=A.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var s=A.charCodeAt(t++);(s&64512)===56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),t--)}else e.push(r)}return e},TE=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var n=[],r=-1,s="";++r<t;){var o=A[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},HE=kE(wE),_e="×",Ja="÷",LE=function(A){return HE.get(A)},DE=function(A,e,t){var n=t-2,r=e[n],s=e[t-1],o=e[t];if(s===Ga&&o===Va)return _e;if(s===Ga||s===Va||s===Cp||o===Ga||o===Va||o===Cp)return Ja;if(s===Qp&&[Qp,Za,yp,Up].indexOf(o)!==-1||(s===yp||s===Za)&&(o===Za||o===Xa)||(s===Up||s===Xa)&&o===Xa||o===Ep||o===bp||o===SE||s===xE)return _e;if(s===Ep&&o===Fp){for(;r===bp;)r=e[--n];if(r===Fp)return _e}if(s===Wa&&o===Wa){for(var a=0;r===Wa;)a++,r=e[--n];if(a%2===0)return _e}return Ja},RE=function(A){var e=IE(A),t=e.length,n=0,r=0,s=e.map(LE);return{next:function(){if(n>=t)return{done:!0,value:null};for(var o=_e;n<t&&(o=DE(e,s,++n))===_e;);if(o!==_e||n===t){var a=TE.apply(null,e.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},OE=function(A){for(var e=RE(A),t=[],n;!(n=e.next()).done;)n.value&&t.push(n.value.slice());return t};const ME=A=>{if(A.createRange){const t=A.createRange();if(t.getBoundingClientRect){const n=A.createElement("boundtest");n.style.height="123px",n.style.display="block",A.body.appendChild(n),t.selectNode(n);const r=t.getBoundingClientRect(),s=Math.round(r.height);if(A.body.removeChild(n),s===123)return!0}}return!1},PE=A=>{const e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);const t=A.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";const n=e.firstChild,r=js(n.data).map(i=>HA(i));let s=0,o={};const a=r.every((i,l)=>{t.setStart(n,s),t.setEnd(n,s+i.length);const u=t.getBoundingClientRect();s+=i.length;const h=u.x>o.x||u.y>o.y;return o=u,l===0?!0:h});return A.body.removeChild(e),a},KE=()=>typeof new Image().crossOrigin!="undefined",NE=()=>typeof new XMLHttpRequest().responseType=="string",zE=A=>{const e=new Image,t=A.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),t.toDataURL()}catch(r){return!1}return!0},kp=A=>A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255,$E=A=>{const e=A.createElement("canvas"),t=100;e.width=t,e.height=t;const n=e.getContext("2d");if(!n)return Promise.reject(new Error("Failed to get 2D rendering context"));n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);const r=new Image,s=e.toDataURL();r.src=s;const o=ja(t,t,0,0,r);return n.fillStyle="red",n.fillRect(0,0,t,t),Ya(o).then(a=>{n.drawImage(a,0,0);const i=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);const l=A.createElement("div");return l.style.backgroundImage=`url(${s})`,l.style.height=`${t}px`,kp(i)?Ya(ja(t,t,0,0,l)):Promise.reject(new Error("ForeignObject rendering not supported"))}).then(a=>(n.drawImage(a,0,0),kp(n.getImageData(0,0,t,t).data))).catch(()=>!1)},ja=(A,e,t,n,r)=>{const s="http://www.w3.org/2000/svg",o=document.createElementNS(s,"svg"),a=document.createElementNS(s,"foreignObject");return o.setAttributeNS(null,"width",A.toString()),o.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",t.toString()),a.setAttributeNS(null,"y",n.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(r),o},Ya=A=>new Promise((e,t)=>{const n=new Image;n.onload=()=>e(n),n.onerror=t,n.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(A))}`}),Ae={get SUPPORT_RANGE_BOUNDS(){const A=ME(document);return Object.defineProperty(Ae,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){const A=Ae.SUPPORT_RANGE_BOUNDS&&PE(document);return Object.defineProperty(Ae,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){const A=zE(document);return Object.defineProperty(Ae,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){const A=typeof Array.from=="function"&&typeof window.fetch=="function"?$E(document):Promise.resolve(!1);return Object.defineProperty(Ae,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){const A=KE();return Object.defineProperty(Ae,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){const A=NE();return Object.defineProperty(Ae,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){const A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ae,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){const A=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Ae,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}};var ln=class{constructor(A,e){this.text=A,this.bounds=e}};const GE=(A,e,t,n)=>{const r=XE(e,t),s=[];let o=0;return r.forEach(a=>{if(t.textDecorationLine.length||a.trim().length>0)if(Ae.SUPPORT_RANGE_BOUNDS){const i=vp(n,o,a.length).getClientRects();if(i.length>1){const l=un(a);let u=0;l.forEach(h=>{s.push(new ln(h,ke.fromDOMRectList(A,vp(n,u+o,h.length).getClientRects()))),u+=h.length})}else s.push(new ln(a,ke.fromDOMRectList(A,i)))}else{const i=n.splitText(a.length);s.push(new ln(a,VE(A,n))),n=i}else Ae.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));o+=a.length}),s},VE=(A,e)=>{const t=e.ownerDocument;if(t){const n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));const r=e.parentNode;if(r){r.replaceChild(n,e);const s=_r(A,n);return n.firstChild&&r.replaceChild(n.firstChild,n),s}}return ke.EMPTY},vp=(A,e,t)=>{const n=A.ownerDocument;if(!n)throw new Error("Node has no owner document");const r=n.createRange();return r.setStart(A,e),r.setEnd(A,e+t),r},un=A=>{if(Ae.SUPPORT_NATIVE_TEXT_SEGMENTATION){const e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(t=>t.segment)}return OE(A)},ZE=(A,e)=>{if(Ae.SUPPORT_NATIVE_TEXT_SEGMENTATION){const t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(n=>n.segment)}return JE(A,e)},XE=(A,e)=>_o(e.writingMode)||e.letterSpacing!==0?un(A):ZE(A,e),WE=[32,160,4961,65792,65793,4153,4241],JE=(A,e)=>{const t=aQ(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[];let r;for(;!(r=t.next()).done;)if(r.value){const s=js(r.value.slice());let o="";s.forEach(a=>{WE.indexOf(a)===-1?o+=HA(a):(o.length&&n.push(o),n.push(HA(a)),o="")}),o.length&&n.push(o)}return n};var jE=class{constructor(A,e,t){this.text=YE(e.data,t.textTransform),this.text.length!==e.data.length&&(e.data=this.text),this.textBounds=GE(A,this.text,t,e)}};const YE=(A,e)=>{switch(e){case 1:return A.toLowerCase();case 3:return A.replace(qE,AF);case 2:return A.toUpperCase();default:return A}},qE=/(^|\s|:|-|\(|\))([a-z])/g,AF=(A,e,t)=>A.length>0?e+t.toUpperCase():A;var _p=class extends at{constructor(A,e){super(A,e),this.src=e.currentSrc||e.src,this.intrinsicWidth=e.naturalWidth,this.intrinsicHeight=e.naturalHeight,this.context.cache.addImage(this.src)}},xp=class extends at{constructor(A,e){super(A,e),this.canvas=e,this.intrinsicWidth=e.width,this.intrinsicHeight=e.height}};const eF=["position","inset","top","right","bottom","left","inset-inline","inset-inline-start","inset-inline-end","inset-block","inset-block-start","inset-block-end","margin","margin-top","margin-right","margin-bottom","margin-left","margin-inline","margin-inline-start","margin-inline-end","margin-block","margin-block-start","margin-block-end"],tF=(A,e)=>{const t=e.getAttribute("style");eF.forEach(r=>e.style.removeProperty(r));const n=A.serializeToString(e);return t===null?e.removeAttribute("style"):e.setAttribute("style",t),n};var Sp=class extends at{constructor(A,e){super(A,e);const t=new XMLSerializer,n=_r(A,e);e.setAttribute("width",`${n.width}px`),e.setAttribute("height",`${n.height}px`),this.svg=`data:image/svg+xml,${encodeURIComponent(tF(t,e))}`,this.intrinsicWidth=e.width.baseVal.value,this.intrinsicHeight=e.height.baseVal.value,this.context.cache.addImage(this.svg)}},Ip=class extends at{constructor(A,e){super(A,e),this.value=e.value}},qa=class extends at{constructor(A,e){super(A,e),this.start=e.start,this.reversed=typeof e.reversed=="boolean"&&e.reversed===!0}};const nF=[{type:15,flags:0,unit:"px",number:3}],rF=[{type:16,flags:0,number:50}],sF=A=>A.width>A.height?new ke(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new ke(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A,oF=A=>{const e=A.type==="password"?new Array(A.value.length+1).join("•"):A.value;return e.length===0?A.placeholder||"":e},iF=A=>A.value.length===0&&!!A.placeholder,aF="checkbox",cF="radio",Tp=707406591,lF=1970632191;var Jn=class extends at{constructor(A,e){switch(super(A,e),this.type=e.type.toLowerCase(),this.checked=e.checked,this.value=oF(e),this.isPlaceholder=iF(e),(this.type==="checkbox"||this.type==="radio")&&(this.styles.backgroundColor=3739148031,this.styles.borderTopColor=this.styles.borderRightColor=this.styles.borderBottomColor=this.styles.borderLeftColor=2779096575,this.styles.borderTopWidth=this.styles.borderRightWidth=this.styles.borderBottomWidth=this.styles.borderLeftWidth=1,this.styles.borderTopStyle=this.styles.borderRightStyle=this.styles.borderBottomStyle=this.styles.borderLeftStyle=1,this.styles.backgroundClip=[0],this.styles.backgroundOrigin=[0],this.bounds=sF(this.bounds)),this.type){case aF:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=nF;break;case cF:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=rF;break}}},Hp=class extends at{constructor(A,e){super(A,e);const t=e.options[e.selectedIndex||0];this.value=t&&t.text||""}},Lp=class extends at{constructor(A,e){super(A,e),this.value=e.value}},Dp=class extends at{constructor(A,e,t){super(A,e),this.src=e.src,this.width=parseInt(e.width,10)||0,this.height=parseInt(e.height,10)||0,this.backgroundColor=this.styles.backgroundColor,this.parseTreeFn=t;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&this.parseTreeFn){this.tree=this.parseTreeFn(A,e.contentWindow.document.documentElement);const n=e.contentWindow.document.documentElement?Xn(A,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):it.TRANSPARENT,r=e.contentWindow.document.body?Xn(A,getComputedStyle(e.contentWindow.document.body).backgroundColor):it.TRANSPARENT;this.backgroundColor=bt(n)?bt(r)?this.styles.backgroundColor:r:n}}catch(n){}}};const uF=["OL","UL","MENU"],Ac=(A,e,t,n)=>{for(let r=e.firstChild,s;r;r=s)s=r.nextSibling,Rp(A,r,t,n)},Rp=(A,e,t,n)=>{if(Sd(e)&&e.data.length>0)t.textNodes.push(new jE(A,e,t.styles));else if(sn(e))if(Nr(e)&&e.assignedNodes)e.assignedNodes().forEach(r=>Rp(A,r,t,n));else{const r=Op(A,e);r.styles.isVisible()&&(dF(e,r,n)?r.createsRealStackingContext=!0:pF(r.styles)&&(r.createsStackingContext=!0),uF.indexOf(e.tagName)!==-1&&(r.isListOwner=!0),t.elements.push(r),e.shadowRoot?Ac(A,e.shadowRoot,r,n):!Bo(e)&&!Id(e)&&!wo(e)&&Ac(A,e,r,n))}},Op=(A,e)=>_a(e)?new _p(A,e):Td(e)?new xp(A,e):Id(e)?new Sp(A,e):Dy(e)?new Ip(A,e):Ry(e)?new qa(A,e):Ty(e)?new Jn(A,e):wo(e)?new Hp(A,e):Bo(e)?new Lp(A,e):Ld(e)?new Dp(A,e,Mp):new at(A,e),Mp=(A,e)=>{const t=Op(A,e);return t.createsRealStackingContext=!0,Ac(A,e,t,t),t},dF=(A,e,t)=>e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||va(A)&&t.styles.isTransparent(),pF=A=>A.isPositioned()||A.isFloating()?!0:qA(A.display,268435456)||qA(A.display,33554432)||qA(A.display,536870912)||qA(A.display,134217728),Pp=(A,e)=>A.length===e.length?A.some((t,n)=>t===e[n]):!1,hF=(A,e,t,n,r)=>A.map((s,o)=>{switch(o){case 0:return s.add(e,t);case 1:return s.add(e+n,t);case 2:return s.add(e+n,t+r);case 3:return s.add(e,t+r)}return s});var O=class Xf{constructor(e,t){this.type=0,this.x=e,this.y=t}add(e,t){return new Xf(this.x+e,this.y+t)}};const jn=(A,e,t)=>new O(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t);var Io=class vs{constructor(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}subdivide(e,t){const n=jn(this.start,this.startControl,e),r=jn(this.startControl,this.endControl,e),s=jn(this.endControl,this.end,e),o=jn(n,r,e),a=jn(r,s,e),i=jn(o,a,e);return t?new vs(this.start,n,o,i):new vs(i,a,s,this.end)}add(e,t){return new vs(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))}reverse(){return new vs(this.end,this.endControl,this.startControl,this.start)}};const xe=A=>A.type===1;var fF=class{constructor(A){const e=A.styles,t=A.bounds;let[n,r]=Mr(e.borderTopLeftRadius,t.width,t.height),[s,o]=Mr(e.borderTopRightRadius,t.width,t.height),[a,i]=Mr(e.borderBottomRightRadius,t.width,t.height),[l,u]=Mr(e.borderBottomLeftRadius,t.width,t.height);const h=[];h.push((n+s)/t.width),h.push((l+a)/t.width),h.push((r+u)/t.height),h.push((o+i)/t.height);const f=Math.max(...h);f>1&&(n/=f,r/=f,s/=f,o/=f,a/=f,i/=f,l/=f,u/=f);const g=t.width-s,m=t.height-i,Q=t.width-a,U=t.height-u,E=e.borderTopWidth,v=e.borderRightWidth,F=e.borderBottomWidth,y=e.borderLeftWidth,x=J(e.paddingTop,A.bounds.width),R=J(e.paddingRight,A.bounds.width),I=J(e.paddingBottom,A.bounds.width),K=J(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||r>0?kA(t.left+y/3,t.top+E/3,n-y/3,r-E/3,0):new O(t.left+y/3,t.top+E/3),this.topRightBorderDoubleOuterBox=n>0||r>0?kA(t.left+g,t.top+E/3,s-v/3,o-E/3,1):new O(t.left+t.width-v/3,t.top+E/3),this.bottomRightBorderDoubleOuterBox=a>0||i>0?kA(t.left+Q,t.top+m,a-v/3,i-F/3,2):new O(t.left+t.width-v/3,t.top+t.height-F/3),this.bottomLeftBorderDoubleOuterBox=l>0||u>0?kA(t.left+y/3,t.top+U,l-y/3,u-F/3,3):new O(t.left+y/3,t.top+t.height-F/3),this.topLeftBorderDoubleInnerBox=n>0||r>0?kA(t.left+y*2/3,t.top+E*2/3,n-y*2/3,r-E*2/3,0):new O(t.left+y*2/3,t.top+E*2/3),this.topRightBorderDoubleInnerBox=n>0||r>0?kA(t.left+g,t.top+E*2/3,s-v*2/3,o-E*2/3,1):new O(t.left+t.width-v*2/3,t.top+E*2/3),this.bottomRightBorderDoubleInnerBox=a>0||i>0?kA(t.left+Q,t.top+m,a-v*2/3,i-F*2/3,2):new O(t.left+t.width-v*2/3,t.top+t.height-F*2/3),this.bottomLeftBorderDoubleInnerBox=l>0||u>0?kA(t.left+y*2/3,t.top+U,l-y*2/3,u-F*2/3,3):new O(t.left+y*2/3,t.top+t.height-F*2/3),this.topLeftBorderStroke=n>0||r>0?kA(t.left+y/2,t.top+E/2,n-y/2,r-E/2,0):new O(t.left+y/2,t.top+E/2),this.topRightBorderStroke=n>0||r>0?kA(t.left+g,t.top+E/2,s-v/2,o-E/2,1):new O(t.left+t.width-v/2,t.top+E/2),this.bottomRightBorderStroke=a>0||i>0?kA(t.left+Q,t.top+m,a-v/2,i-F/2,2):new O(t.left+t.width-v/2,t.top+t.height-F/2),this.bottomLeftBorderStroke=l>0||u>0?kA(t.left+y/2,t.top+U,l-y/2,u-F/2,3):new O(t.left+y/2,t.top+t.height-F/2),this.topLeftBorderBox=n>0||r>0?kA(t.left,t.top,n,r,0):new O(t.left,t.top),this.topRightBorderBox=s>0||o>0?kA(t.left+g,t.top,s,o,1):new O(t.left+t.width,t.top),this.bottomRightBorderBox=a>0||i>0?kA(t.left+Q,t.top+m,a,i,2):new O(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=l>0||u>0?kA(t.left,t.top+U,l,u,3):new O(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||r>0?kA(t.left+y,t.top+E,Math.max(0,n-y),Math.max(0,r-E),0):new O(t.left+y,t.top+E),this.topRightPaddingBox=s>0||o>0?kA(t.left+Math.min(g,t.width-v),t.top+E,g>t.width+v?0:Math.max(0,s-v),Math.max(0,o-E),1):new O(t.left+t.width-v,t.top+E),this.bottomRightPaddingBox=a>0||i>0?kA(t.left+Math.min(Q,t.width-y),t.top+Math.min(m,t.height-F),Math.max(0,a-v),Math.max(0,i-F),2):new O(t.left+t.width-v,t.top+t.height-F),this.bottomLeftPaddingBox=l>0||u>0?kA(t.left+y,t.top+Math.min(U,t.height-F),Math.max(0,l-y),Math.max(0,u-F),3):new O(t.left+y,t.top+t.height-F),this.topLeftContentBox=n>0||r>0?kA(t.left+y+K,t.top+E+x,Math.max(0,n-(y+K)),Math.max(0,r-(E+x)),0):new O(t.left+y+K,t.top+E+x),this.topRightContentBox=s>0||o>0?kA(t.left+Math.min(g,t.width+y+K),t.top+E+x,g>t.width+y+K?0:s-y+K,o-(E+x),1):new O(t.left+t.width-(v+R),t.top+E+x),this.bottomRightContentBox=a>0||i>0?kA(t.left+Math.min(Q,t.width-(y+K)),t.top+Math.min(m,t.height+E+x),Math.max(0,a-(v+R)),i-(F+I),2):new O(t.left+t.width-(v+R),t.top+t.height-(F+I)),this.bottomLeftContentBox=l>0||u>0?kA(t.left+y+K,t.top+U,Math.max(0,l-(y+K)),u-(F+I),3):new O(t.left+y+K,t.top+t.height-(F+I))}};const kA=(A,e,t,n,r)=>{const s=4*((Math.sqrt(2)-1)/3),o=t*s,a=n*s,i=A+t,l=e+n;switch(r){case 0:return new Io(new O(A,l),new O(A,l-a),new O(i-o,e),new O(i,e));case 1:return new Io(new O(A,e),new O(A+o,e),new O(i,l-a),new O(i,l));case 2:return new Io(new O(i,e),new O(i,e+a),new O(A+o,l),new O(A,l));default:return new Io(new O(i,l),new O(i-o,l),new O(A,e+a),new O(A,e))}},To=A=>[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox],gF=A=>[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox],Ho=A=>[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox];var ec=class{constructor(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}},Lo=class{constructor(A,e){this.path=A,this.target=e,this.type=1}},BF=class{constructor(A){this.opacity=A,this.type=2,this.target=6}},Vr=class{constructor(A){this.applyClip=A,this.type=3,this.target=6}};const wF={[VA.NORMAL]:"source-over",[VA.MULTIPLY]:"multiply",[VA.SCREEN]:"screen",[VA.OVERLAY]:"overlay",[VA.DARKEN]:"darken",[VA.LIGHTEN]:"lighten",[VA.COLOR_DODGE]:"color-dodge",[VA.COLOR_BURN]:"color-burn",[VA.HARD_LIGHT]:"hard-light",[VA.SOFT_LIGHT]:"soft-light",[VA.DIFFERENCE]:"difference",[VA.EXCLUSION]:"exclusion",[VA.HUE]:"hue",[VA.SATURATION]:"saturation",[VA.COLOR]:"color",[VA.LUMINOSITY]:"luminosity"};var mF=class{constructor(A){this.mixBlendMode=A,this.type=4,this.target=6,this.compositeOperation=wF[A]}},CF=class mr{constructor(e){this.type=5,this.target=6;const t=mr.parseDropShadow(e);this.shadow=t.shadow,this.safeFilterString=t.safeFilterString}static parseDropShadow(e){if(!e)return{safeFilterString:""};const t=mr.findDropShadows(e);if(t.length===0)return{safeFilterString:e};const n=mr.parseDropShadowBody(t[0].body);let r="",s=0;for(const o of t)r+=e.slice(s,o.start),s=o.end;return r+=e.slice(s),{shadow:n,safeFilterString:r.replace(/\s+/g," ").trim()}}static findDropShadows(e){const t=[],n=/drop-shadow\(/gi;let r;for(;(r=n.exec(e))!==null;){const s=r.index+12-1,o=r.index;let a=1,i=s+1;for(;i<e.length&&a>0;){const u=e[i];u==="("?a++:u===")"&&a--,i++}if(a!==0)break;const l=e.slice(s+1,i-1);t.push({body:l,start:o,end:i})}return t}static parseDropShadowBody(e){var s;const t=mr.tokenizeFilterArgs(e.trim()),n=[];let r;for(const o of t)mr.isCSSLength(o)?n.push(parseFloat(o)):o&&(r=o);if(!(n.length<2||n.length>3))return{offsetX:n[0],offsetY:n[1],blur:(s=n[2])!=null?s:0,color:r!=null?r:"rgba(0,0,0,1)"}}static tokenizeFilterArgs(e){const t=[];let n="",r=0;for(let s=0;s<e.length;s++){const o=e[s];o==="("?(r++,n+=o):o===")"?(r--,n+=o):/\s/.test(o)?r>0?n+=o:n&&(t.push(n),n=""):n+=o}return n&&t.push(n),t}static isCSSLength(e){return/^-?[\d.]+(px|em|rem|pt|cm|mm|in|pc|ex|ch|vw|vh|vmin|vmax|%)?$/i.test(e)}};const Kp=A=>A.type===0,tc=A=>A.type===1,bF=A=>A.type===2,Np=A=>A.type===3,QF=A=>A.type===4,yF=A=>A.type===5;var zp=class{constructor(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}},$p=class{constructor(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new fF(this.container),this.container.styles.opacity<1&&this.effects.push(new BF(this.container.styles.opacity)),this.container.styles.rotate!==null){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.rotate*Math.PI/180,o=Math.cos(s),a=Math.sin(s),i=[o,a,-a,o,0,0];this.effects.push(new ec(n,r,i))}if(this.container.styles.transform!==null){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.transform;this.effects.push(new ec(n,r,s))}if(Gp(this.container.styles)){const t=To(this.curves),n=Ho(this.curves);Pp(t,n)?this.effects.push(new Lo(t,6)):(this.effects.push(new Lo(t,2)),this.effects.push(new Lo(n,4)))}if(this.container.styles.clipPath.type!==0){const t=UF(this.container.styles.clipPath,this.container.bounds);t&&this.effects.push(t)}if(this.container.styles.mixBlendMode!==VA.NORMAL&&this.effects.push(new mF(this.container.styles.mixBlendMode)),this.container.styles.filter!==null&&this.effects.push(new CF(this.container.styles.filter)),this.container.styles.zoom!==1){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.zoom,o=[s,0,0,s,0,0];this.effects.push(new ec(n,r,o))}}getEffects(A){let e=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent;const n=this.effects.slice(0);for(;t;){const r=t.effects.filter(s=>!tc(s));if(e||t.container.styles.position!==0||!t.parent){if(e=[2,3].indexOf(t.container.styles.position)===-1,Gp(t.container.styles)){const s=To(t.curves),o=Ho(t.curves);Pp(s,o)||n.unshift(new Lo(o,6))}n.unshift(...r)}else n.unshift(...r);t=t.parent}return n.filter(r=>qA(r.target,A))}};const Gp=A=>A.overflowX!==0||A.overflowY!==0,Vp=(A,e,t,n,r)=>A==="closest-side"?Math.min(e-t,n-e):A==="farthest-side"?Math.max(e-t,n-e):J(A,r),UF=(A,e)=>{const{left:t,top:n,width:r,height:s}=e;switch(A.type){case 1:{const o=J(A.left,r),a=J(A.top,s),i=t+o,l=n+a,u=Math.max(0,r-o-J(A.right,r)),h=Math.max(0,s-a-J(A.bottom,s));return new Vr(f=>{f.beginPath(),f.rect(i,l,u,h),f.clip()})}case 2:{const o=t+J(A.cx,r),a=n+J(A.cy,s);let i;return A.radius==="closest-side"?i=Math.min(o-t,a-n,t+r-o,n+s-a):A.radius==="farthest-side"?i=Math.max(o-t,a-n,t+r-o,n+s-a):i=J(A.radius,Math.sqrt(r*r+s*s)/Math.SQRT2),new Vr(l=>{l.beginPath(),l.arc(o,a,Math.max(0,i),0,Math.PI*2),l.clip()})}case 3:{const o=t+J(A.cx,r),a=n+J(A.cy,s),i=Vp(A.rx,o,t,t+r,r),l=Vp(A.ry,a,n,n+s,s);return new Vr(u=>{u.beginPath(),u.ellipse(o,a,Math.max(0,i),Math.max(0,l),0,0,Math.PI*2),u.clip()})}case 4:{const o=A.points.map(([a,i])=>[t+J(a,r),n+J(i,s)]);return new Vr(a=>{if(a.beginPath(),o.length>0){a.moveTo(o[0][0],o[0][1]);for(let i=1;i<o.length;i++)a.lineTo(o[i][0],o[i][1]);a.closePath()}a.clip()})}case 5:{const{d:o}=A;let a=null;return new Vr(i=>{try{a||(a=new Path2D(o));const l=i.getTransform();i.translate(t,n),i.clip(a),i.setTransform(l)}catch(l){}})}case 0:return null;default:return null}},nc=(A,e,t,n)=>{A.container.elements.forEach(r=>{const s=r.createsRealStackingContext,o=r.createsStackingContext,a=new $p(r,A);qA(r.styles.display,2048)&&n.push(a);const i=r.isListOwner?[]:n;if(s||o){const l=s||r.styles.isPositioned()?t:e,u=new zp(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){const h=r.styles.zIndex.order;if(h<0){let f=0;l.negativeZIndex.some((g,m)=>h>g.element.container.styles.zIndex.order?(f=m,!1):f>0),l.negativeZIndex.splice(f,0,u)}else if(h>0){let f=0;l.positiveZIndex.some((g,m)=>h>=g.element.container.styles.zIndex.order?(f=m+1,!1):f>0),l.positiveZIndex.splice(f,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else r.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);nc(a,u,s?u:t,i)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),nc(a,e,t,i);r.isListOwner&&Zp(r,i)})},Zp=(A,e)=>{let t=A instanceof qa?A.start:1;const n=A instanceof qa?A.reversed:!1;for(let r=0;r<e.length;r++){const s=e[r];s.container instanceof Ip&&typeof s.container.value=="number"&&s.container.value!==0&&(t=s.container.value),s.listValue=zr(t,s.container.styles.listStyleType,!0),t+=n?-1:1}},EF=A=>{const e=new $p(A,null),t=new zp(e),n=[];return nc(e,t,t,n),Zp(e.container,n),t},rc=A=>{const e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Zr=A=>{const e=A.styles,t=A.bounds,n=J(e.paddingLeft,t.width),r=J(e.paddingRight,t.width),s=J(e.paddingTop,t.width),o=J(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,s+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+s+o))},FF=(A,e)=>A===0?e.bounds:A===2?Zr(e):rc(e),kF=(A,e)=>A===0?e.bounds:A===2?Zr(e):rc(e),Do=(A,e,t)=>{const n=FF(dn(A.styles.backgroundOrigin,e),A),r=kF(dn(A.styles.backgroundClip,e),A),s=vF(dn(A.styles.backgroundSize,e),t,n);let[o,a]=s;const i=Mr(dn(A.styles.backgroundPosition,e),n.width-o,n.height-a),l=_F(dn(A.styles.backgroundRepeat,e),i,s,n,r),u=Math.round(n.left+i[0]),h=Math.round(n.top+i[1]);return o=Math.max(1,o),a=Math.max(1,a),[l,u,h,o,a]},Yn=A=>j(A)&&A.value==="auto",Ro=A=>typeof A=="number",vF=(A,[e,t,n],r)=>{const[s,o]=A;if(!s)return[0,0];if(iA(s)&&o&&iA(o))return[J(s,r.width),J(o,r.height)];const a=Ro(n);if(j(s)&&(s.value==="contain"||s.value==="cover"))return Ro(n)?r.width/r.height<n!=(s.value==="cover")?[r.width,r.width/n]:[r.height*n,r.height]:[r.width,r.height];const i=Ro(e),l=Ro(t),u=i||l;if(Yn(s)&&(!o||Yn(o)))return i&&l?[e,t]:!a&&!u?[r.width,r.height]:u&&a?[i?e:t*n,l?t:e/n]:[i?e:r.width,l?t:r.height];if(a){let g=0,m=0;return iA(s)?g=J(s,r.width):iA(o)&&(m=J(o,r.height)),Yn(s)?g=m*n:(!o||Yn(o))&&(m=g/n),[g,m]}let h=null,f=null;if(iA(s)?h=J(s,r.width):o&&iA(o)&&(f=J(o,r.height)),h!==null&&(!o||Yn(o))&&(f=i&&l?h/e*t:r.height),f!==null&&Yn(s)&&(h=i&&l?f/t*e:r.width),h!==null&&f!==null)return[h,f];throw new Error("Unable to calculate background-size for element")},dn=(A,e)=>{const t=A[e];return typeof t=="undefined"?A[0]:t},_F=(A,[e,t],[n,r],s,o)=>{switch(A){case 2:return[new O(Math.round(s.left),Math.round(s.top+t)),new O(Math.round(s.left+s.width),Math.round(s.top+t)),new O(Math.round(s.left+s.width),Math.round(r+s.top+t)),new O(Math.round(s.left),Math.round(r+s.top+t))];case 3:return[new O(Math.round(s.left+e),Math.round(s.top)),new O(Math.round(s.left+e+n),Math.round(s.top)),new O(Math.round(s.left+e+n),Math.round(s.height+s.top)),new O(Math.round(s.left+e),Math.round(s.height+s.top))];case 1:return[new O(Math.round(s.left+e),Math.round(s.top+t)),new O(Math.round(s.left+e+n),Math.round(s.top+t)),new O(Math.round(s.left+e+n),Math.round(s.top+t+r)),new O(Math.round(s.left+e),Math.round(s.top+t+r))];default:return[new O(Math.round(o.left),Math.round(o.top)),new O(Math.round(o.left+o.width),Math.round(o.top)),new O(Math.round(o.left+o.width),Math.round(o.height+o.top)),new O(Math.round(o.left),Math.round(o.height+o.top))]}};var xF=class{constructor(A){this.ctx=A}render(A,e){this.ctx.fillStyle=FA(e.textDecorationColor||e.color);let t=1;typeof e.textDecorationThickness=="number"?t=e.textDecorationThickness:e.textDecorationThickness==="from-font"&&(t=Math.max(1,Math.floor(e.fontSize.number*.05)));let n=0;typeof e.textUnderlineOffset=="number"&&(n=e.textUnderlineOffset);const r=e.textDecorationStyle;e.textDecorationLine.forEach(s=>{let o=0;switch(s){case 1:o=A.top+A.height-t+n;break;case 2:o=A.top;break;case 3:o=A.top+(A.height/2-t/2);break;default:return}this.draw(A.left,o,A.width,t,r)})}draw(A,e,t,n,r){switch(r){case 0:this.ctx.fillRect(A,e,t,n);break;case 1:{const s=Math.max(1,n);this.ctx.fillRect(A,e,t,n),this.ctx.fillRect(A,e+n+s,t,n);break}case 2:this.drawPattern(A,e,t,n,[n,n*2]);break;case 3:this.drawPattern(A,e,t,n,[n*3,n*2]);break;case 4:this.drawWavy(A,e,t,n);break;default:this.ctx.fillRect(A,e,t,n)}}drawPattern(A,e,t,n,r){this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash(r),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(A,e+n/2),this.ctx.lineTo(A+t,e+n/2),this.ctx.stroke(),this.ctx.restore()}drawWavy(A,e,t,n){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle;const r=n*2,s=n*4;let o=A;for(this.ctx.moveTo(o,e+n/2);o<A+t;){const a=Math.min(o+s/2,A+t);if(this.ctx.quadraticCurveTo(o+s/4,e+n/2-r,a,e+n/2),o=a,o<A+t){const i=Math.min(o+s/2,A+t);this.ctx.quadraticCurveTo(o+s/4,e+n/2+r,i,e+n/2),o=i}}this.ctx.stroke(),this.ctx.restore()}};const SF="Mg",qn=A=>A!==void 0&&!Number.isNaN(A),Xp=(A,e)=>{const t=A.measureText(SF),n=t;return{baseline:qn(n.fontBoundingBoxAscent)?n.fontBoundingBoxAscent:qn(t.actualBoundingBoxAscent)?t.actualBoundingBoxAscent:e,height:qn(n.fontBoundingBoxAscent)&&qn(n.fontBoundingBoxDescent)?n.fontBoundingBoxAscent+n.fontBoundingBoxDescent:qn(t.actualBoundingBoxAscent)&&qn(t.actualBoundingBoxDescent)?t.actualBoundingBoxAscent+t.actualBoundingBoxDescent:e}},Wp=(A,e)=>Xp(A,e).baseline,IF=["-apple-system","system-ui"],TF=1,HF=/[\u2E80-\u2FFF\u3000-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF01-\uFFEF]/,Xr=A=>HF.test(A),LF=()=>{if(typeof navigator=="undefined")return null;const A=navigator.userAgent,e=/iPhone|iPad|iPod/.test(A),t=/Macintosh/.test(A)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1;if(!e&&!t)return null;for(const n of[/(?:iPhone|CPU(?:\siPhone)?)\sOS\s(\d+)[\._](\d+)/,/Version\/(\d+)\.(\d+)/]){const r=A.match(n);if(r&&r[1])return parseInt(r[1],10)}return null},DF=A=>{const e=LF();return e!==null&&e>=15&&e<17?A.map(t=>IF.indexOf(t)!==-1?'-apple-system, "Helvetica Neue", Arial, sans-serif':t):A},RF=()=>{var A;return(A=typeof window!="undefined"?window:void 0)!=null&&A.chrome?"miter":"round"};var OF=class{constructor(A){this.glyphWidthCache=null,this.ctx=A.ctx,this.options=A.options,this.decorationRenderer=new xF(A.ctx)}cachedMeasureText(A,e){let t=this.glyphWidthCache;t||(t=new Map,this.glyphWidthCache=t);const n=A+e;let r=t.get(n);return r===void 0&&(r=this.ctx.measureText(A).width,t.set(n,r)),r}iterateLettersWithLetterSpacing(A,e,t,n,r){if(_o(n)){this.iterateVerticalGlyphs(A,e,t,n,r);return}const s=un(A.text),o=A.bounds.top+t,a=this.ctx.font;let i=A.bounds.left;for(const l of s){if(Xr(l)){const u=this.ctx.textBaseline;this.ctx.textBaseline="ideographic",r(l,i,o),this.ctx.textBaseline=u}else r(l,i,o);i+=this.cachedMeasureText(l,a)+e}}iterateVerticalGlyphs(A,e,t,n,r){const s=un(A.text),o=this.ctx.font,a=n===4?-Math.PI/2:Math.PI/2;let i=A.bounds.top;for(let l=0;l<s.length;){const u=s[l];if(!(Da(n)||!Xr(u)&&u.trim().length>0)){const g=this.ctx.textBaseline;Xr(u)&&(this.ctx.textBaseline="ideographic"),r(u,A.bounds.left,i+t),this.ctx.textBaseline=g,i+=this.cachedMeasureText(u,o)+e,l++;continue}const h=l;for(;l<s.length;){const g=s[l];if(!Da(n)&&!Xr(g)&&g.trim().length===0)break;if(Da(n)||!Xr(g)&&g.trim().length>0)l++;else break}this.ctx.save(),this.ctx.translate(A.bounds.left+t,i),this.ctx.rotate(a);let f=0;for(let g=h;g<l;g++)r(s[g],0,f),f+=this.cachedMeasureText(s[g],o)+e;this.ctx.restore(),i+=f}}renderTextWithLetterSpacing(A,e,t,n=0){this.renderFillText(A,e,t,n)}canRenderWholeText(A,e){return A===0&&!_o(e)}renderFillText(A,e,t,n){this.canRenderWholeText(e,n)?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+t):this.iterateLettersWithLetterSpacing(A,e,t,n,(r,s,o)=>{this.ctx.fillText(r,s,o)})}renderStrokeText(A,e,t,n){this.canRenderWholeText(e,n)?this.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+t):this.iterateLettersWithLetterSpacing(A,e,t,n,(r,s,o)=>{this.ctx.strokeText(r,s,o)})}renderTextStrokeWithStyle(A,e,t){!e.webkitTextStrokeWidth||!A.text.trim().length||(this.ctx.strokeStyle=FA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=RF(),this.renderStrokeText(A,e.letterSpacing,t,e.writingMode),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter")}renderTextFillWithShadows(A,e,t){this.ctx.fillStyle=FA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,t,e.writingMode);const n=e.textShadow;n.length&&A.text.trim().length&&(n.slice(0).reverse().forEach(r=>{this.ctx.shadowColor=FA(r.color),this.ctx.shadowOffsetX=r.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=r.offsetY.number*this.options.scale,this.ctx.shadowBlur=r.blur.number,this.renderTextWithLetterSpacing(A,e.letterSpacing,t,e.writingMode)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0)}renderTextBoundWithPaintOrder(A,e,t,n){t.forEach(r=>{switch(r){case 0:this.ctx.fillStyle=FA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,n,e.writingMode);break;case 1:this.renderTextStrokeWithStyle(A,e,n);break}})}renderTextDecoration(A,e){this.decorationRenderer.render(A,e)}truncateTextWithEllipsis(A,e,t){const r=this.ctx.measureText("…").width,s=un(A);if(t===0){const o=l=>this.ctx.measureText(s.slice(0,l).join("")).width+r<=e;let a=0,i=s.length;for(;a<i;){const l=a+i+1>>1;o(l)?a=l:i=l-1}return s.slice(0,a).join("")+"…"}else{const o=this.ctx.font;let a=r;const i=[];for(const l of s){const u=this.cachedMeasureText(l,o);if(a+u>e)break;i.push(l),a+=u+t}return i.join("")+"…"}}createFontStyle(A){const e=A.fontVariant.filter(r=>r==="normal"||r==="small-caps").join(""),t=DF(A.fontFamily).join(", "),n=ot(A.fontSize)?`${A.fontSize.number}${A.fontSize.unit}`:`${A.fontSize.number}px`;return[[A.fontStyle,e,A.fontWeight,n,t].join(" "),t,n]}renderLineClampedText(A,e,t,n,r){const s=e.fontSize.number*1.5,o=[];let a=[],i=A.textBounds[0].bounds.top;A.textBounds.forEach(h=>{Math.abs(h.bounds.top-i)>=s*.5?(a.length>0&&o.push(a),a=[h],i=h.bounds.top):a.push(h)}),a.length>0&&o.push(a);const l=e.webkitLineClamp;if(o.length<=l)return!1;for(let h=0;h<l-1;h++)o[h].forEach(f=>this.renderTextBoundWithPaintOrder(f,e,t,n));const u=o[l-1];if(u!=null&&u.length&&r){const h=u.map(Q=>Q.text).join(""),f=u[0],g=r.width-(f.bounds.left-r.left),m=new ln(this.truncateTextWithEllipsis(h,g,e.letterSpacing),f.bounds);for(const Q of t)Q===0?(this.ctx.fillStyle=FA(e.color),this.renderTextWithLetterSpacing(m,e.letterSpacing,n,e.writingMode)):Q===1&&this.renderTextStrokeWithStyle(m,e,n)}return!0}renderEllipsisText(A,e,t,n,r){const s=e.fontSize.number*1.5,o=A.textBounds[0].bounds.top;if(!A.textBounds.every(l=>Math.abs(l.bounds.top-o)<s*.5))return!1;let a=A.textBounds.map(l=>l.text).join("").replace(/\s+/g," ").trim();if(this.ctx.measureText(a).width<=r.width+TF)return!1;const i=new ln(this.truncateTextWithEllipsis(a,r.width,e.letterSpacing),A.textBounds[0].bounds);for(const l of t)l===0?this.renderTextFillWithShadows(i,e,n):l===1&&this.renderTextStrokeWithStyle(i,e,n);return!0}renderTextNode(A,e,t){return T(this,null,function*(){this.glyphWidthCache=null;const[n]=this.createFontStyle(e);this.ctx.font=n,this.ctx.direction=e.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic";const r=e.paintOrder,s=Wp(this.ctx,e.fontSize.number);e.webkitLineClamp>0&&(e.display&2)!==0&&e.overflowY===1&&A.textBounds.length>0&&this.renderLineClampedText(A,e,r,s,t)||e.textOverflow===1&&t&&e.overflowX===1&&A.textBounds.length>0&&this.renderEllipsisText(A,e,r,s,t)||A.textBounds.forEach(o=>{r.forEach(a=>{a===0?(this.renderTextFillWithShadows(o,e,s),e.textDecorationLine.length&&this.renderTextDecoration(o.bounds,e)):a===1&&this.renderTextStrokeWithStyle(o,e,s)})})})}};const Jp=(A,e)=>{e.forEach((t,n)=>{const r=xe(t)?t.start:t;n===0?A.moveTo(r.x,r.y):A.lineTo(r.x,r.y),xe(t)&&A.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)})},jp=(A,e)=>{A.beginPath(),Jp(A,e),A.closePath()};var MF=class{constructor(A){this.maxSize=A,this._map=new Map}get(A){if(!this._map.has(A))return;const e=this._map.get(A);return this._map.delete(A),this._map.set(A,e),e}set(A,e){if(this._map.has(A))this._map.delete(A);else if(this._map.size>=this.maxSize){const t=this._map.keys().next().value;t!==void 0&&this._map.delete(t)}this._map.set(A,e)}get size(){return this._map.size}clear(){this._map.clear()}},Yp=class{constructor(A){this.patternCache=new MF(50),this.ctx=A.ctx,this.context=A.context,this.canvas=A.canvas}renderBackgroundImage(A){return T(this,null,function*(){var r,s,o,a;let e=A.styles.backgroundImage.length-1;const t=A.styles.backgroundBlendMode;let n=0;for(const i of A.styles.backgroundImage.slice(0).reverse()){if(n>0){const l=(s=(r=t[n])!=null?r:t[0])!=null?s:"normal";l!=="normal"&&(this.ctx.save(),this.ctx.globalCompositeOperation=l)}i.type===0?yield this.renderBackgroundURLImage(A,i,e):qy(i)?this.renderLinearGradient(A,i,e):e0(i)?this.renderRepeatingLinearGradient(A,i,e):A0(i)&&this.renderRadialGradient(A,i,e),n>0&&((a=(o=t[n])!=null?o:t[0])!=null?a:"normal")!=="normal"&&this.ctx.restore(),e--,n++}})}renderBackgroundURLImage(A,e,t){return T(this,null,function*(){var s,o;let n;const r=e.url;try{n=yield this.context.cache.match(r)}catch(a){this.context.logger.error(`Error loading background-image ${r}`),(o=(s=this.context).onError)==null||o.call(s,a instanceof Error?a:new Error(String(a)))}if(n){const a=isNaN(n.width)||n.width===0?1:n.width,i=isNaN(n.height)||n.height===0?1:n.height,[l,u,h,f,g]=Do(A,t,[a,i,a/i]),m=dn(A.styles.backgroundRepeat,t),Q=m===1?"no-repeat":m===2?"repeat-x":m===3?"repeat-y":"repeat",U=`${r}|${Math.round(f)}x${Math.round(g)}|${A.styles.imageRendering}|${Q}`;let E=this.patternCache.get(U);if(!E){const v=this.resizeImage(n,f,g,A.styles.imageRendering);E=this.ctx.createPattern(v,Q),this.patternCache.set(U,E)}this.renderRepeat(l,E,u,h)}})}renderRepeatingLinearGradient(A,e,t){var X;const[n,r,s,o,a]=Do(A,t,[null,null,null]),[i,l,u,h,f]=$d(e.angle,o,a),g=Ia(e.stops,i||1),m=g[g.length-1],Q=g[0],U=m.stop-Q.stop;if(U<=0){this.renderLinearGradient(A,e,t);return}const E=u-l,v=f-h,F=U/(Math.sqrt(E*E+v*v)||1),y=l,x=h,R=l+E*F,I=h+v*F,K=(X=this.canvas.ownerDocument)!=null?X:document,N=`rlg|${e.angle}|${Math.round(U)}|${JSON.stringify(e.stops)}`;let Z=this.patternCache.get(N);if(!Z){const aA=K.createElement("canvas"),fA=Math.max(1,Math.ceil(U));aA.width=fA,aA.height=fA;const PA=aA.getContext("2d");if(!PA)return;const Ce=PA.createLinearGradient(y-r,x-s,R-r,I-s);g.forEach(pe=>{Ce.addColorStop((pe.stop-Q.stop)/U,FA(pe.color))}),PA.fillStyle=Ce,PA.fillRect(0,0,fA,fA),fA>0&&(Z=this.ctx.createPattern(aA,"repeat"),this.patternCache.set(N,Z))}Z&&this.renderRepeat(n,Z,r,s)}renderLinearGradient(A,e,t){var Q;const[n,r,s,o,a]=Do(A,t,[null,null,null]),[i,l,u,h,f]=$d(e.angle,o,a),g=`lg|${e.angle}|${Math.round(o)}x${Math.round(a)}|${JSON.stringify(e.stops)}`;let m=this.patternCache.get(g);if(!m){const U=((Q=this.canvas.ownerDocument)!=null?Q:document).createElement("canvas");U.width=o,U.height=a;const E=U.getContext("2d");if(!E)return;const v=E.createLinearGradient(l,h,u,f);Ia(e.stops,i||1).forEach(F=>v.addColorStop(F.stop,FA(F.color))),E.fillStyle=v,E.fillRect(0,0,o,a),o>0&&a>0&&(m=this.ctx.createPattern(U,"repeat"),this.patternCache.set(g,m))}m&&this.renderRepeat(n,m,r,s)}renderRadialGradient(A,e,t){var g;const[n,r,s,o,a]=Do(A,t,[null,null,null]),i=e.position.length===0?[Ct]:e.position,l=J(i[0],o),u=J(i[i.length-1],a);let[h,f]=Jy(e,l,u,o,a);if((h===0||f===0)&&(h=Math.max(h,.01),f=Math.max(f,.01)),h>0&&f>0){const m=`rg|${Math.round(l)}x${Math.round(u)}|${Math.round(h)}x${Math.round(f)}|${JSON.stringify(e.stops)}`,Q=Ia(e.stops,h*2),U=Q[Q.length-1];let E=this.patternCache.get(m);if(!E){const v=((g=this.canvas.ownerDocument)!=null?g:document).createElement("canvas");v.width=Math.ceil(h*2),v.height=Math.ceil(f*2);const F=v.getContext("2d");if(F){const y=F.createRadialGradient(h,h,0,h,h,h);Q.forEach(x=>y.addColorStop(x.stop,FA(x.color))),F.fillStyle=y,h!==f&&F.scale(1,f/h),F.fillRect(0,0,h*2,h*2),E=this.ctx.createPattern(v,"no-repeat"),this.patternCache.set(m,E)}}E&&(this.path(n),this.ctx.save(),this.ctx.clip(),U&&(this.ctx.fillStyle=FA(U.color),this.ctx.fill()),this.ctx.translate(r+l-h,s+u-f),this.ctx.fillStyle=E,this.ctx.fillRect(0,0,h*2,f*2),this.ctx.restore())}}renderRepeat(A,e,t,n){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,n),this.ctx.fill(),this.ctx.translate(-t,-n)}resizeImage(A,e,t,n){var o;const r=((o=this.canvas.ownerDocument)!=null?o:document).createElement("canvas");r.width=Math.max(1,e),r.height=Math.max(1,t);const s=r.getContext("2d");return s?(n===2||n===1?(this.context.logger.debug("Disabling image smoothing for background image due to CSS image-rendering"),s.imageSmoothingEnabled=!1):n===3?(this.context.logger.debug("Enabling image smoothing for background image due to CSS image-rendering: smooth"),s.imageSmoothingEnabled=!0):s.imageSmoothingEnabled=this.ctx.imageSmoothingEnabled,this.ctx.imageSmoothingQuality&&(s.imageSmoothingQuality=this.ctx.imageSmoothingQuality),s.drawImage(A,0,0,A.width,A.height,0,0,e,t),r):A}path(A){jp(this.ctx,A)}};const qp=(A,e)=>{switch(e){case 0:return Se(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Se(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Se(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return Se(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},PF=(A,e)=>{switch(e){case 0:return Se(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return Se(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return Se(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return Se(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},KF=(A,e)=>{switch(e){case 0:return Se(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return Se(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return Se(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return Se(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},NF=(A,e)=>{switch(e){case 0:return Oo(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Oo(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Oo(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return Oo(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},Oo=(A,e)=>{const t=[];return xe(A)?t.push(A.subdivide(.5,!1)):t.push(A),xe(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Se=(A,e,t,n)=>{const r=[];return xe(A)?r.push(A.subdivide(.5,!1)):r.push(A),xe(t)?r.push(t.subdivide(.5,!0)):r.push(t),xe(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),xe(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r};var zF=class{constructor(A,e){this.ctx=A.ctx,this.pathCallbacks=e}renderSolidBorder(A,e,t){return T(this,null,function*(){this.pathCallbacks.path(qp(t,e)),this.ctx.fillStyle=FA(A),this.ctx.fill()})}renderDoubleBorder(A,e,t,n){return T(this,null,function*(){if(e<3){yield this.renderSolidBorder(A,t,n);return}const r=PF(n,t);this.pathCallbacks.path(r),this.ctx.fillStyle=FA(A),this.ctx.fill();const s=KF(n,t);this.pathCallbacks.path(s),this.ctx.fill()})}renderDashedDottedBorder(A,e,t,n,r){return T(this,null,function*(){this.ctx.save();const s=NF(n,t),o=qp(n,t);r===2&&(this.pathCallbacks.path(o),this.ctx.clip());let a,i,l,u;xe(o[0])?(a=o[0].start.x,i=o[0].start.y):(a=o[0].x,i=o[0].y),xe(o[1])?(l=o[1].end.x,u=o[1].end.y):(l=o[1].x,u=o[1].y);let h;t===0||t===2?h=Math.abs(a-l):h=Math.abs(i-u),this.ctx.beginPath(),r===3?this.pathCallbacks.formatPath(s):this.pathCallbacks.formatPath(o.slice(0,2));let f=e<3?e*3:e*2,g=e<3?e*2:e;r===3&&(f=e,g=e);let m=!0;if(h<=f*2)m=!1;else if(h<=f*2+g){const Q=h/(2*f+g);f*=Q,g*=Q}else{const Q=Math.floor((h+g)/(f+g)),U=(h-Q*f)/(Q-1),E=(h-(Q+1)*f)/Q;g=E<=0||Math.abs(g-U)<Math.abs(g-E)?U:E}if(m&&(r===3?this.ctx.setLineDash([0,f+g]):this.ctx.setLineDash([f,g])),r===3?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=e*2+1.1,this.ctx.strokeStyle=FA(A),this.ctx.stroke(),this.ctx.setLineDash([]),r===2){if(xe(o[0])){const Q=o[3],U=o[0];this.ctx.beginPath(),this.pathCallbacks.formatPath([new O(Q.end.x,Q.end.y),new O(U.start.x,U.start.y)]),this.ctx.stroke()}if(xe(o[1])){const Q=o[1],U=o[2];this.ctx.beginPath(),this.pathCallbacks.formatPath([new O(Q.end.x,Q.end.y),new O(U.start.x,U.start.y)]),this.ctx.stroke()}}this.ctx.restore()})}},$F=class{constructor(A){this.ctx=A}renderBorderImage(A,e,t,n,r,s,o,a){const i=e.naturalWidth||e.width,l=e.naturalHeight||e.height;if(i<=0||l<=0)return;const u=Math.min(t.unit==="percent"?t.top/100*l:Math.min(t.top,l),l),h=Math.min(t.unit==="percent"?t.right/100*i:Math.min(t.right,i),i),f=Math.min(t.unit==="percent"?t.bottom/100*l:Math.min(t.bottom,l),l),g=Math.min(t.unit==="percent"?t.left/100*i:Math.min(t.left,i),i),{left:m,top:Q,width:U,height:E}=A;if(U<=0||E<=0)return;const v=Math.min(r,E),F=Math.min(s,U),y=Math.min(o,E-v),x=Math.min(a,U-F);this.drawRegion(e,0,0,g,u,m,Q,x,v),this.drawRegion(e,i-h,0,h,u,m+U-F,Q,F,v),this.drawRegion(e,i-h,l-f,h,f,m+U-F,Q+E-y,F,y),this.drawRegion(e,0,l-f,g,f,m,Q+E-y,x,y);const R=[{sx:g,sy:0,sw:i-g-h,sh:u,dx:m+x,dy:Q,dw:U-x-F,dh:v,repeat:n.horizontal},{sx:i-h,sy:u,sw:h,sh:l-u-f,dx:m+U-F,dy:Q+v,dw:F,dh:E-v-y,repeat:n.vertical},{sx:g,sy:l-f,sw:i-g-h,sh:f,dx:m+x,dy:Q+E-y,dw:U-x-F,dh:y,repeat:n.horizontal},{sx:0,sy:u,sw:g,sh:l-u-f,dx:m,dy:Q+v,dw:x,dh:E-v-y,repeat:n.vertical}];for(const I of R){if(I.sw<=0||I.sh<=0||I.dw<=0||I.dh<=0)continue;const K=I.dw>=I.dh;I.repeat===0?this.ctx.drawImage(e,I.sx,I.sy,I.sw,I.sh,I.dx,I.dy,I.dw,I.dh):(I.repeat===1||I.repeat===2)&&this.drawRepeatedEdge(e,I,K,I.repeat===2)}if(t.fill){const I=g,K=u,N=i-g-h,Z=l-u-f,X=m+x,aA=Q+v,fA=U-x-F,PA=E-v-y;this.drawRegion(e,I,K,N,Z,X,aA,fA,PA)}}drawRegion(A,e,t,n,r,s,o,a,i){n>0&&r>0&&a>0&&i>0&&this.ctx.drawImage(A,e,t,n,r,s,o,a,i)}drawRepeatedEdge(A,e,t,n){const r=t?e.sw:e.sh,s=t?e.dw:e.dh;if(r<=0||s<=0)return;let o,a;n?(a=Math.max(1,Math.round(s/r)),o=s/a):(o=r,a=Math.ceil(s/o)),this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(e.dx,e.dy,e.dw,e.dh),this.ctx.clip();for(let i=0;i<a;i++){const l=i*o,u=s-l,h=Math.min(o,u);if(h<=0)break;t?this.ctx.drawImage(A,e.sx,e.sy,e.sw,e.sh,e.dx+l,e.dy,h,e.dh):this.ctx.drawImage(A,e.sx,e.sy,e.sw,e.sh,e.dx,e.dy+l,e.dw,h)}this.ctx.restore()}},GF=class{constructor(A,e){this.activeEffects=[],this.didSave=!1,this.saveAtDepth=-1,this.ctx=A.ctx,this.pathCallback=e}applyEffects(A){for(;this.activeEffects.length;)this.popEffect();this.didSave=!1,this.saveAtDepth=-1;const e=n=>Kp(n)||tc(n)||Np(n),t=A.reduceRight((n,r,s)=>n!==-1?n:e(r)?s:-1,-1);for(let n=0;n<A.length;n++){const r=A[n];e(r)&&(this.didSave||(this.ctx.save(),this.didSave=!0),n===t&&(this.saveAtDepth=this.activeEffects.length)),this.applyEffect(r)}}applyEffect(A){Kp(A)?(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)):tc(A)?(this.pathCallback.path(A.path),this.ctx.clip()):Np(A)?A.applyClip(this.ctx):bF(A)?this.ctx.globalAlpha*=A.opacity:QF(A)?this.ctx.globalCompositeOperation=A.compositeOperation:yF(A)&&(this.ctx.filter=A.safeFilterString||"none",A.shadow&&(this.ctx.shadowOffsetX=A.shadow.offsetX,this.ctx.shadowOffsetY=A.shadow.offsetY,this.ctx.shadowBlur=A.shadow.blur,this.ctx.shadowColor=A.shadow.color)),this.activeEffects.push(A)}popEffect(){this.activeEffects.length!==0&&(this.didSave&&this.activeEffects.length-1===this.saveAtDepth&&(this.ctx.restore(),this.didSave=!1,this.saveAtDepth=-1),this.activeEffects.pop(),!this.didSave&&this.activeEffects.length===0&&(this.ctx.globalAlpha=1,this.ctx.globalCompositeOperation="source-over",this.ctx.filter="none",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0,this.ctx.shadowColor="rgba(0, 0, 0, 0)"))}getActiveEffectCount(){return this.activeEffects.length}hasActiveEffects(){return this.activeEffects.length>0}};const VF=(A,e,t,n,r)=>{let s=0,o=0,a=A,i=e,l=t.left,u=t.top,h=t.width,f=t.height;const g=h/f,m=a/i,Q=r?J(r[0],1):.5,U=r?J(r[1],1):.5;return n===2?m>g?(f=h/m,u+=(t.height-f)*U):(h=f*m,l+=(t.width-h)*Q):n===4?m>g?(a=i*g,s+=(A-a)*Q):(i=a/g,o+=(e-i)*U):n===8?(a>h?(s+=(a-h)*Q,a=h):(l+=(h-a)*Q,h=a),i>f?(o+=(i-f)*U,i=f):(u+=(f-i)*U,f=i)):n===16&&((m>g?h:f*m)<(a>h?a:h)?m>g?(f=h/m,u+=(t.height-f)*U):(h=f*m,l+=(t.width-h)*Q):(a>h?(s+=(a-h)*Q,a=h):(l+=(h-a)*Q,h=a),i>f?(o+=(i-f)*U,i=f):(u+=(f-i)*U,f=i))),{sx:s,sy:o,sw:a,sh:i,dx:l,dy:u,dw:h,dh:f}};function ZF(A,e,t,n,r,s,o,a){return T(this,null,function*(){var i,l;if(r instanceof _p)try{const u=yield e.cache.match(r.src),h=A.imageSmoothingEnabled;o.imageRendering===2||o.imageRendering===1?A.imageSmoothingEnabled=!1:o.imageRendering===3&&(A.imageSmoothingEnabled=!0),a(r,s,u),A.imageSmoothingEnabled=h}catch(u){e.logger.error(`Error loading image ${r.src}`),(i=e.onError)==null||i.call(e,u instanceof Error?u:new Error(String(u)))}if(r instanceof xp&&a(r,s,r.canvas),r instanceof Sp)try{a(r,s,yield e.cache.match(r.svg))}catch(u){e.logger.error(`Error loading svg ${r.svg.substring(0,255)}`),(l=e.onError)==null||l.call(e,u instanceof Error?u:new Error(String(u)))}if(r instanceof Dp&&r.tree){const u=yield n(e,{scale:t.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}).render(r.tree);r.width&&r.height&&A.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height)}})}function XF(A,e,t,n,r){if(n instanceof Jn){const s=Math.min(n.bounds.width,n.bounds.height);n.type==="checkbox"&&n.checked?(A.save(),t([new O(n.bounds.left+s*.39363,n.bounds.top+s*.79),new O(n.bounds.left+s*.16,n.bounds.top+s*.5549),new O(n.bounds.left+s*.27347,n.bounds.top+s*.44071),new O(n.bounds.left+s*.39694,n.bounds.top+s*.5649),new O(n.bounds.left+s*.72983,n.bounds.top+s*.23),new O(n.bounds.left+s*.84,n.bounds.top+s*.34085),new O(n.bounds.left+s*.39363,n.bounds.top+s*.79)]),A.fillStyle=FA(Tp),A.fill(),A.restore()):n.type==="radio"&&n.checked&&(A.save(),A.beginPath(),A.arc(n.bounds.left+s/2,n.bounds.top+s/2,s/4,0,Math.PI*2,!0),A.fillStyle=FA(Tp),A.fill(),A.restore())}if(YF(n)&&n.value.length){const[s]=e.createFontStyle(r);A.font=s;const o=J(r.fontSize,0),{baseline:a,height:i}=Xp(A,o);A.fillStyle=n instanceof Jn&&n.isPlaceholder?FA(lF):FA(r.color),A.textBaseline="alphabetic",A.textAlign=qF(n.styles.textAlign);const l=Zr(n),u=n instanceof Jn?WF(l,rc(n),i):l;let h=0;switch(n.styles.textAlign){case 1:h+=l.width/2;break;case 2:h+=l.width;break}let f=0;n instanceof Jn&&(f=(l.height-i)/2);const g=l.add(h,f,0,0);A.save(),t([new O(u.left,u.top),new O(u.left+u.width,u.top),new O(u.left+u.width,u.top+u.height),new O(u.left,u.top+u.height)]),A.clip();const m=JF(A,n.value,l.width,r.whiteSpace==="pre"||r.whiteSpace==="nowrap"),Q=La(r.lineHeight,o);m.forEach((U,E)=>{let v=g.left;const F=A.measureText(U).width;switch(r.textAlign){case 1:v+=(l.width-F)/2;break;case 2:v+=l.width-F;break}const y=new ke(v,g.top+E*Q,0,0);e.renderTextWithLetterSpacing(new ln(U,y),r.letterSpacing,a,r.writingMode)}),A.restore(),A.textBaseline="alphabetic",A.textAlign="left"}}const WF=(A,e,t)=>A.height<t?new ke(A.left,e.top,A.width,e.height):A,JF=(A,e,t,n)=>{const r=[],s=e.split(`
1654
- `);for(const o of s){if(n){r.push(o);continue}const a=o.split(/(\s+)/);let i="";for(const l of a){const u=i+l;A.measureText(u).width<=t||i===""?i=u:(r.push(i),i=l)}r.push(i)}return r};function jF(A,e,t,n,r,s){return T(this,null,function*(){var o;if(qA(r.styles.display,2048)){if(r.styles.listStyleImage!==null){const a=r.styles.listStyleImage;if(a.type===0){const i=a.url;try{const l=yield e.cache.match(i);A.drawImage(l,r.bounds.left-(l.width+10),r.bounds.top)}catch(l){e.logger.error(`Error loading list-style-image ${i}`),(o=e.onError)==null||o.call(e,l instanceof Error?l:new Error(String(l)))}}}else if(n.listValue&&r.styles.listStyleType!==-1){const[a]=t.createFontStyle(s);A.font=a,A.fillStyle=FA(s.color),A.textBaseline="middle",A.textAlign="right";const i=new ke(r.bounds.left,r.bounds.top+J(r.styles.paddingTop,r.bounds.width),r.bounds.width,La(s.lineHeight,s.fontSize.number)/2+1);t.renderTextWithLetterSpacing(new ln(n.listValue,i),s.letterSpacing,La(s.lineHeight,s.fontSize.number)/2+2,s.writingMode),A.textBaseline="bottom",A.textAlign="left"}}})}const YF=A=>A instanceof Lp||A instanceof Hp?!0:A instanceof Jn&&A.type!=="radio"&&A.type!=="checkbox",qF=A=>{switch(A){case 1:return"center";case 2:return"right";default:return"left"}};var Ak=class Wf{constructor(e,t){this.context=e,this.options=t,this.canvas=t.canvas?t.canvas:document.createElement("canvas");const n=this.canvas.getContext("2d");if(!n)throw new Error("Failed to get 2D rendering context from canvas");this.ctx=n,t.canvas||(this.canvas.width=Math.floor(t.width*t.scale),this.canvas.height=Math.floor(t.height*t.scale),this.canvas.style.width=`${t.width}px`,this.canvas.style.height=`${t.height}px`),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-t.x,-t.y),this.ctx.textBaseline="bottom",t.imageSmoothing!==void 0&&(this.ctx.imageSmoothingEnabled=t.imageSmoothing),t.imageSmoothingQuality&&(this.ctx.imageSmoothingQuality=t.imageSmoothingQuality),this.backgroundRenderer=new Yp({ctx:this.ctx,context:this.context,canvas:this.canvas,options:{width:t.width,height:t.height,scale:t.scale}}),this.borderRenderer=new zF({ctx:this.ctx},{path:r=>this.path(r),formatPath:r=>this.formatPath(r)}),this.borderImageRenderer=new $F(this.ctx),this.effectsRenderer=new GF({ctx:this.ctx},{path:r=>this.path(r)}),this.textRenderer=new OF({ctx:this.ctx,options:{scale:t.scale}}),this.context.logger.debug(`Canvas renderer initialized (${t.width}x${t.height}) with scale ${t.scale}`)}renderStack(e){return T(this,null,function*(){e.element.container.styles.isVisible()&&(yield this.renderStackContent(e))})}renderNode(e){return T(this,null,function*(){if(e.container.debugRender)debugger;e.container.styles.isVisible()&&(yield this.renderNodeBackgroundAndBorders(e),yield this.renderNodeContent(e))})}renderReplacedElement(e,t,n){const r=n.naturalWidth||e.intrinsicWidth,s=n.naturalHeight||e.intrinsicHeight;if(n&&r>0&&s>0){const o=Zr(e),a=Ho(t);this.path(a),this.ctx.save(),this.ctx.clip();const{sx:i,sy:l,sw:u,sh:h,dx:f,dy:g,dw:m,dh:Q}=VF(r,s,o,e.styles.objectFit,e.styles.objectPosition);this.ctx.drawImage(n,i,l,u,h,f,g,m,Q),this.ctx.restore()}}renderNodeContent(e){return T(this,null,function*(){this.effectsRenderer.applyEffects(e.getEffects(4));const t=e.container,n=e.curves,r=t.styles,s=Zr(t);for(const o of t.textNodes)yield this.textRenderer.renderTextNode(o,r,s);yield ZF(this.ctx,this.context,{scale:this.options.scale,backgroundColor:this.options.backgroundColor,x:this.options.x,y:this.options.y,width:this.options.width,height:this.options.height},(o,a)=>new Wf(o,a),t,n,r,(o,a,i)=>this.renderReplacedElement(o,a,i)),XF(this.ctx,this.textRenderer,this.path.bind(this),t,r),yield jF(this.ctx,this.context,this.textRenderer,e,t,r)})}renderStackContent(e){return T(this,null,function*(){if(e.element.container.debugRender)debugger;const t=this.options.signal;yield this.renderNodeBackgroundAndBorders(e.element);for(const n of e.negativeZIndex){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderNodeContent(e.element);for(const n of e.nonInlineLevel)yield this.renderNode(n);for(const n of e.nonPositionedFloats){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.nonPositionedInlineLevel){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.inlineLevel)yield this.renderNode(n);for(const n of e.zeroOrAutoZIndexOrTransformedOrOpacity){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.positiveZIndex){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}})}mask(e){this.ctx.beginPath();const t=this.options.x,n=this.options.y;this.ctx.moveTo(t,n),this.ctx.lineTo(t+this.options.width,n),this.ctx.lineTo(t+this.options.width,n+this.options.height),this.ctx.lineTo(t,n+this.options.height),this.ctx.lineTo(t,n),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()}path(e){jp(this.ctx,e)}formatPath(e){Jp(this.ctx,e)}renderNodeBackgroundAndBorders(e){return T(this,null,function*(){this.effectsRenderer.applyEffects(e.getEffects(2));const t=e.container.styles,n=!bt(t.backgroundColor)||t.backgroundImage.length,r=tk(t),s=[{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}],o=dn(t.backgroundClip,0),a=ek(o,e.curves);if((n||t.boxShadow.length)&&(r&&e.container.textNodes.length>0?yield this.renderTextClippedBackground(e):(this.ctx.save(),this.path(a),this.ctx.clip(),bt(t.backgroundColor)||(this.ctx.fillStyle=FA(t.backgroundColor),this.ctx.fill()),yield this.backgroundRenderer.renderBackgroundImage(e.container),this.ctx.restore()),t.boxShadow.slice(0).reverse().forEach(l=>{this.ctx.save();const u=To(e.curves),h=l.inset?0:ZU,f=hF(u,-h+(l.inset?1:-1)*l.spread.number,(l.inset?1:-1)*l.spread.number,l.spread.number*(l.inset?-2:2),l.spread.number*(l.inset?-2:2));l.inset?(this.path(u),this.ctx.clip(),this.mask(f)):(this.mask(u),this.ctx.clip(),this.path(f)),this.ctx.shadowOffsetX=l.offsetX.number+h,this.ctx.shadowOffsetY=l.offsetY.number,this.ctx.shadowColor=FA(l.color),this.ctx.shadowBlur=l.blur.number,this.ctx.fillStyle=l.inset?FA(l.color):"rgba(0,0,0,1)",this.ctx.fill(),this.ctx.restore()})),t.borderImageSource){const l=t.borderImageSource;if(l.type===0){const u=l.url;try{const h=yield this.context.cache.match(u);if(h){const f=e.container.bounds;this.borderImageRenderer.renderBorderImage(f,h,t.borderImageSlice,t.borderImageRepeat,Math.max(0,t.borderTopWidth),Math.max(0,t.borderRightWidth),Math.max(0,t.borderBottomWidth),Math.max(0,t.borderLeftWidth))}}catch(h){this.context.logger.error(`Error loading border-image ${u}`)}}return}let i=0;for(const l of s){if(l.style!==0&&!bt(l.color)&&l.width>0){const u=()=>T(this,null,function*(){l.style===2?yield this.borderRenderer.renderDashedDottedBorder(l.color,l.width,i,e.curves,2):l.style===3?yield this.borderRenderer.renderDashedDottedBorder(l.color,l.width,i,e.curves,3):l.style===4?yield this.borderRenderer.renderDoubleBorder(l.color,l.width,i,e.curves):yield this.borderRenderer.renderSolidBorder(l.color,i,e.curves)}),h=e.container.legendBounds;if(i===0&&h){const f=e.container.bounds,g=h.left-f.left,m=h.left+h.width-f.left;g>0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(f.left,f.top,g,f.height),this.ctx.clip(),yield u(),this.ctx.restore());const Q=f.left+m,U=f.width-m;U>0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(Q,f.top,U,f.height),this.ctx.clip(),yield u(),this.ctx.restore())}else yield u()}i++}})}render(e){return T(this,null,function*(){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));const t=EF(e);return yield this.renderStack(t),this.effectsRenderer.applyEffects([]),this.canvas})}renderTextClippedBackground(e){return T(this,null,function*(){var m;const t=e.container,n=t.styles,r=t.bounds;if(r.width<=0||r.height<=0)return;const s=((m=this.canvas.ownerDocument)!=null?m:document).createElement("canvas"),o=Math.ceil(r.width),a=Math.ceil(r.height);s.width=o,s.height=a;const i=s.getContext("2d");if(!i)return;const[l]=this.textRenderer.createFontStyle(n);i.font=l,i.textBaseline="alphabetic",i.textAlign="left",i.direction=n.direction===1?"rtl":"ltr";const u=Wp(i,n.fontSize.number),h=new Yp({ctx:i,context:this.context,canvas:s,options:{width:o,height:a,scale:1}});bt(n.backgroundColor)||(i.fillStyle=FA(n.backgroundColor),i.fillRect(0,0,o,a)),i.save(),i.translate(-r.left,-r.top),yield h.renderBackgroundImage(t),i.restore(),i.globalCompositeOperation="destination-in",i.fillStyle="#000";const f=n.writingMode,g=n.letterSpacing;for(const Q of t.textNodes)for(const U of Q.textBounds){const E=U.bounds.left-r.left,v=U.bounds.top-r.top+u;g>0?this.renderTextMaskWithLetterSpacing(i,U,g,E,v,f):i.fillText(U.text,E,v)}this.ctx.drawImage(s,r.left,r.top)})}renderTextMaskWithLetterSpacing(e,t,n,r,s,o){const a=un(t.text);let i=r;for(const l of a){if(_o(o)){e.fillText(t.text,r,s);return}e.fillText(l,i,s),i+=e.measureText(l).width+n}}};const ek=(A,e)=>{switch(A){case 0:return To(e);case 2:return gF(e);default:return Ho(e)}},tk=A=>A.backgroundClip.some(e=>e===3);var nk=class{constructor(A,e){this.context=A,this.options=e,this.canvas=e.canvas?e.canvas:document.createElement("canvas");const t=this.canvas.getContext("2d");if(!t)throw new Error("Failed to get 2D rendering context from canvas");this.ctx=t,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`,this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.context.logger.debug(`EXPERIMENTAL ForeignObject renderer initialized (${e.width}x${e.height} at ${e.x},${e.y}) with scale ${e.scale}`)}render(A){return T(this,null,function*(){var t;if((t=this.options.signal)!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");const e=yield Ya(ja(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A));return 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(e,-this.options.x*this.options.scale,-this.options.y*this.options.scale),this.canvas})}},rk=(dr=class{constructor({id:e,enabled:t}){this.id=e,this.enabled=t,this.start=Date.now()}debug(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug(this.id,`${this.getTime()}ms`,...e):this.info(...e))}getTime(){return Date.now()-this.start}info(...e){this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info(this.id,`${this.getTime()}ms`,...e)}warn(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn(this.id,`${this.getTime()}ms`,...e):this.info(...e))}error(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error(this.id,`${this.getTime()}ms`,...e):this.info(...e))}},dr.instances={},dr),sk=class{constructor(A,e){var t;if(this.context=A,this._options=e,this._cache=new Map,this._pendingOperations=new Map,this._deferMode=!1,this._collectedUrls=new Set,this.maxSize=(t=e.maxCacheSize)!=null?t:100,this.maxSize<1)throw new Error("Cache maxSize must be at least 1");this.maxSize>1e4&&this.context.logger.warn(`Cache maxSize ${this.maxSize} is very large and may cause memory issues. Consider using a smaller value (recommended: 100-1000).`)}startDefer(){this._deferMode=!0}preloadAll(A=10){return T(this,null,function*(){this._deferMode=!1;const e=Array.from(this._collectedUrls);if(this._collectedUrls.clear(),e.length===0)return;const t=Math.max(1,Math.min(A,100));this.context.logger.debug(`Preloading ${e.length} image(s) with concurrency ${t}`);for(let n=0;n<e.length;n+=t){const r=e.slice(n,n+t).map(s=>this._addImageWithPending(s));yield Promise.allSettled(r)}})}addImage(A){if(this._deferMode)return!this.has(A)&&(Wr(A)||Ah(A))&&this._collectedUrls.add(A),Promise.resolve();const e=this._pendingOperations.get(A);if(e)return e;if(this.has(A)){const t=this._cache.get(A);return this._cache.delete(A),this._cache.set(A,t),Promise.resolve()}return Wr(A)||Ah(A)?this._addImageWithPending(A):Promise.resolve()}_addImageWithPending(A){const e=this._pendingOperations.get(A);if(e)return e;const t=this._addImageInternal(A);return this._pendingOperations.set(A,t),t.finally(()=>{this._pendingOperations.delete(A)}),t}_addImageInternal(A){return T(this,null,function*(){var n;const e=(n=this._options.imageTimeout)!=null?n:15e3,t=this.withTimeout(this.loadImage(A),e,`Timed out (${e}ms) loading image`);t.catch(r=>{this.context.logger.error(`Failed to load image ${A}: ${r instanceof Error?r.message:"Unknown error"}`)}),this.set(A,t)})}withTimeout(A,e,t){if(e<=0)return A;let n;const r=new Promise((s,o)=>{n=setTimeout(()=>o(new Error(t)),e)});return Promise.race([A,r]).finally(()=>{n!==void 0&&clearTimeout(n)})}match(A){const e=this._cache.get(A);if(e)return this._cache.delete(A),this._cache.set(A,e),e.value}set(A,e){if(this._cache.has(A))this._cache.delete(A);else if(this._cache.size>=this.maxSize){const t=this._cache.keys().next().value;t!==void 0&&(this._cache.delete(t),this.context.logger.debug(`Cache: Evicted LRU entry: ${t}`))}this._cache.set(A,{value:e})}size(){return this._cache.size}getMaxSize(){return this.maxSize}clear(){this._cache.clear()}loadImage(A){return T(this,null,function*(){const e=this.context.originChecker,t=i=>e.isSameOrigin(i),n=typeof this._options.customIsSameOrigin=="function"?yield this._options.customIsSameOrigin(A,t):t(A),r=!n&&this._options.allowTaint===!1&&!Mo(A)&&!Wr(A)&&typeof this._options.proxy!="string",s=!Mo(A)&&(this._options.useCORS===!0||r)&&Ae.SUPPORT_CORS_IMAGES&&!n,o=!Mo(A)&&!n&&!Wr(A)&&typeof this._options.proxy=="string"&&Ae.SUPPORT_CORS_XHR&&!s;if(!n&&this._options.allowTaint===!1&&!Mo(A)&&!Wr(A)&&!o&&!s)return;let a=A;return o&&(a=yield this.proxy(a)),this.context.logger.debug(`Added image ${A.substring(0,256)}`),yield new Promise((i,l)=>{const u=new Image;u.onload=()=>i(u),u.onerror=l,(ck(a)||s)&&(u.crossOrigin="anonymous"),u.src=a,u.complete===!0&&setTimeout(()=>i(u),500)})})}has(A){return this._cache.has(A)}keys(){return Promise.resolve(Array.from(this._cache.keys()))}proxy(A){const e=this._options.proxy;if(!e)throw new Error("No proxy defined");const t=A.substring(0,256);return new Promise((n,r)=>{const s=Ae.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=()=>{if(o.status===200)if(s==="text")n(o.response);else{const i=new FileReader;i.addEventListener("load",()=>n(i.result),!1),i.addEventListener("error",l=>r(l),!1),i.readAsDataURL(o.response)}else r(`Failed to proxy resource ${t} with status code ${o.status}`)},o.onerror=r;const a=e.indexOf("?")>-1?"&":"?";if(o.open("GET",`${e}${a}url=${encodeURIComponent(A)}&responseType=${s}`),s!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=s),this._options.imageTimeout){const i=this._options.imageTimeout;o.timeout=i,o.ontimeout=()=>r(`Timed out (${i}ms) proxying ${t}`)}o.send()})}};const ok=/^data:image\/svg\+xml/i,ik=/^data:image\/.*;base64,/i,ak=/^data:image\/.*/i,Ah=A=>Ae.SUPPORT_SVG_DRAWING||!lk(A),Mo=A=>ak.test(A),ck=A=>ik.test(A),Wr=A=>A.substring(0,4)==="blob",lk=A=>A.slice(-3).toLowerCase()==="svg"||ok.test(A);var uk=class{constructor(A){if(!A||!A.document)throw new Error("Valid window object required for OriginChecker");if(!A.location||!A.location.href)throw new Error("Window object must have valid location");this.link=A.document.createElement("a"),this.origin=this.getOrigin(A.location.href)}getOrigin(A){return this.link.href=A,this.link.href=this.link.href,this.link.protocol+this.link.hostname+this.link.port}isSameOrigin(A){return this.getOrigin(A)===this.origin}getContextOrigin(){return this.origin}},dk=(Un=class{constructor(e,t,n){var r,s;this.windowBounds=t,this.instanceName=`#${Un.instanceCount++}`,this.config=n,this.logger=new rk({id:this.instanceName,enabled:e.logging}),this.originChecker=new uk(n.window),this.cache=(s=(r=e.cache)!=null?r:n.cache)!=null?s:new sk(this,e),this.onError=e.onError}},Un.instanceCount=1,Un);const Po=A=>{if(A!=null&&A.aborted)throw new DOMException("The operation was aborted.","AbortError")},pk=A=>{["scale","width","height","imageTimeout","x","y","windowWidth","windowHeight","scrollX","scrollY"].forEach(e=>{const t=A[e];if(t!=null&&typeof t!="number"){const n=Number(t);Number.isNaN(n)||(A[e]=n)}})},hk=A=>{var e,t,n;return{allowTaint:(e=A.allowTaint)!=null?e:!1,imageTimeout:(t=A.imageTimeout)!=null?t:15e3,proxy:A.proxy,useCORS:(n=A.useCORS)!=null?n:!1,customIsSameOrigin:A.customIsSameOrigin,maxCacheSize:A.maxCacheSize}},fk=(A,e,t)=>{var n,r;return k({logging:(n=A.logging)!=null?n:!0,cache:(r=A.cache)!=null?r:e.cache},t)},gk=800,Bk=600,eh=0,wk=(A,e)=>{var n,r,s,o,a,i,l,u;const t=e;return{windowWidth:(r=(n=A.windowWidth)!=null?n:t.innerWidth)!=null?r:gk,windowHeight:(o=(s=A.windowHeight)!=null?s:t.innerHeight)!=null?o:Bk,scrollX:(i=(a=A.scrollX)!=null?a:t.pageXOffset)!=null?i:eh,scrollY:(u=(l=A.scrollY)!=null?l:t.pageYOffset)!=null?u:eh}},mk=(A,e,t)=>{var n,r;return{allowTaint:(n=A.allowTaint)!=null?n:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,iframeContainer:A.iframeContainer,inlineImages:t,copyStyles:t,cspNonce:(r=A.cspNonce)!=null?r:e.cspNonce}},Ck=(A,e,t,n,r,s,o)=>{var a,i,l,u,h,f;return{canvas:A.canvas,backgroundColor:e,signal:A.signal,scale:(i=(a=A.scale)!=null?a:o)!=null?i:1,x:((l=A.x)!=null?l:0)+t,y:((u=A.y)!=null?u:0)+n,width:(h=A.width)!=null?h:Math.ceil(r),height:(f=A.height)!=null?f:Math.ceil(s),imageSmoothing:A.imageSmoothing,imageSmoothingQuality:A.imageSmoothingQuality}},bk=(A,e,t)=>{const n=e.ownerDocument,r=n.documentElement?Xn(A,getComputedStyle(n.documentElement).backgroundColor):it.TRANSPARENT,s=n.body?Xn(A,getComputedStyle(n.body).backgroundColor):it.TRANSPARENT,o=typeof t=="string"?Xn(A,t):t===null?it.TRANSPARENT:4294967295;return e===n.documentElement?bt(r)?bt(s)?o:s:r:o},Qk=(A,e,t)=>T(null,null,function*(){var N,Z,X,aA,fA,PA;if(pk(e),!e.skipValidation){const Ce=e.validator||Sb(),pe=Ce.validateElement(A);if(!pe.valid)throw new Error(pe.error);const Je=Ce.validateOptions(e);if(!Je.valid)throw new Error(`Invalid options: ${Je.error}`)}if(!A||typeof A!="object")throw new Error("Invalid element provided as first argument");const n=A.ownerDocument;if(!n)throw new Error("Element is not attached to a Document");const r=n.defaultView;if(!r)throw new Error("Document is not attached to a Window");const s=fk(e,t,hk(e)),o=wk(e,r),a=new ke(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),i=new dk(s,a,t),l=(Z=(N=e.enablePerformanceMonitoring)!=null?N:e.logging)!=null?Z:!1,u=new Ib(i,l);u.start("total",{width:o.windowWidth,height:o.windowHeight});const h=e.signal;Po(h);const f=(X=e.foreignObjectRendering)!=null?X:!1,g=mk(e,t,f);i.logger.debug(`Starting document clone with size ${a.width}x${a.height} scrolled to ${-a.left},${-a.top}`),u.start("clone");const m=new Oa(i,A,g),Q=m.clonedReferenceElement;if(!Q)throw new Error("Unable to find element in cloned iframe");const U=yield m.toIFrame(n,a);u.end("clone"),h!=null&&h.aborted&&(((aA=e.removeContainer)==null||aA)&&Oa.destroy(U),Po(h));const{width:E,height:v,left:F,top:y}=va(Q)||Hy(Q)?Tb(Q.ownerDocument):_r(i,Q),x=bk(i,Q,e.backgroundColor),R=Ck(e,x,F,y,E,v,(fA=r.devicePixelRatio)!=null?fA:1);let I,K;try{return f?(i.logger.debug("Document cloned, using foreign object rendering"),u.start("render-foreignobject"),I=yield new nk(i,R).render(Q),u.end("render-foreignobject")):(i.logger.debug(`Document cloned, element located at ${F},${y} with size ${E}x${v} using computed rendering`),i.logger.debug("Starting DOM parsing"),u.start("parse"),Po(h),i.cache.startDefer(),K=Mp(i,Q),u.end("parse"),u.start("preload"),yield i.cache.preloadAll(),u.end("preload"),x===K.styles.backgroundColor&&(K.styles.backgroundColor=it.TRANSPARENT),i.logger.debug(`Starting renderer for element at ${R.x},${R.y} with size ${R.width}x${R.height}`),u.start("render"),Po(h),I=yield new Ak(i,R).render(K),u.end("render")),u.start("cleanup"),((PA=e.removeContainer)==null||PA)&&(Oa.destroy(U)||i.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.end("cleanup"),u.end("total"),i.logger.debug("Finished rendering"),l&&u.logSummary(),I}finally{K&&K.restoreTree()}}),yk=(A,e={},t)=>Qk(A,e,_b.fromElement(A,{cspNonce:e.cspNonce,cache:e.cache}));function Uk(A){return T(this,null,function*(){if(!(A instanceof HTMLElement))return{blob:null,error:null};try{const e=yield yk(A,{backgroundColor:"#ffffff",logging:!1,useCORS:!0,scale:1,ignoreElements:n=>n instanceof Element&&n.hasAttribute("data-ap-sdk"),onclone:(n,r)=>{try{Oi(r)}catch(s){}}}),t=yield Ek(e);return t?{blob:t,error:null}:{blob:null,error:"canvas.toBlob produced no image data"}}catch(e){return console.error("[Agent Platform SDK] screenshot capture failed:",e),{blob:null,error:e instanceof Error?e.message:String(e)}}})}function Ek(A){return new Promise(e=>{A.toBlob(t=>e(t),"image/png")})}const Fk={click:"🖱",inputText:"⌨",scroll:"↕",keypress:"⌤"};function kk(A,e){const{needsCredentials:t,canCreateTask:n,canCreatePlanning:r,captureType:s,hasOnReselect:o,hasOnAddAnother:a}=e;return`
1661
+ }`,kE=(A,e)=>{FE(A,`.${Za}${UE}${Qp}
1662
+ .${Xa}${EE}${Qp}`,e)},FE=(A,e,t)=>{const n=A.ownerDocument;if(n){const r=n.createElement("style");r.textContent=e,t&&(r.nonce=t),A.appendChild(r)}},vE=(A,e)=>{var r;const t=A.ownerDocument.createElement("base");t.href=e;const n=A.getElementsByTagName("head").item(0);n==null||n.insertBefore(t,(r=n==null?void 0:n.firstChild)!=null?r:null)};for(var yp=class{static normalizeElement(A,e){const t={};return Zr(A)&&(e.animationDuration.some(n=>n>0)&&(t.animationDuration=A.style.animationDuration,A.style.animationDuration="0s"),e.transform!==null&&(t.transform=A.style.transform,A.style.transform="translate(0, 0)"),e.rotate!==null&&(t.rotate=A.style.rotate,A.style.rotate="0deg",t.transform===void 0&&(t.transform=A.style.transform,A.style.transform="translate(0, 0)"))),t}static restoreElement(A,e){Zr(A)&&(e.animationDuration!==void 0&&(A.style.animationDuration=e.animationDuration),e.transform!==void 0&&(A.style.transform=e.transform),e.rotate!==void 0&&(A.style.rotate=e.rotate))}},dt=class{constructor(A,e,t={}){if(this.context=A,this.textNodes=[],this.elements=[],this.createsStackingContext=!1,this.createsRealStackingContext=!1,this.isListOwner=!1,this.debugRender=!1,za(e,3))debugger;if(this.styles=new cE(A,A.config.window.getComputedStyle(e,null)),t.normalizeDom!==!1&&Zr(e)&&(this.originalStyles=yp.normalizeElement(e,this.styles),this.originalElement=e),this.bounds=Lr(this.context,e),e.tagName==="FIELDSET"){const n=e.querySelector(":scope > legend");if(n){const r=Lr(this.context,n);this.legendBounds=r;const s=r.top+r.height/2-this.styles.borderTopWidth/2;this.bounds=new ve(this.bounds.left,s,this.bounds.width,this.bounds.height-(s-this.bounds.top))}}za(e,4)&&(this.debugRender=!0)}restore(){this.originalStyles&&this.originalElement&&(yp.restoreElement(this.originalElement,this.originalStyles),this.originalStyles=void 0,this.originalElement=void 0)}restoreTree(){this.restore();for(const A of this.elements)A.restoreTree()}},_E="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAC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NgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACA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wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigW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AAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Up="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ro=0;Ro<Up.length;Ro++)jr[Up.charCodeAt(Ro)]=Ro;for(var xE=function(A){var e=A.length*.75,t=A.length,n,r=0,s,o,a,i;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),u=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<t;n+=4)s=jr[A.charCodeAt(n)],o=jr[A.charCodeAt(n+1)],a=jr[A.charCodeAt(n+2)],i=jr[A.charCodeAt(n+3)],u[r++]=s<<2|o>>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|i&63;return c},SE=function(A){for(var e=A.length,t=[],n=0;n<e;n+=2)t.push(A[n+1]<<8|A[n]);return t},IE=function(A){for(var e=A.length,t=[],n=0;n<e;n+=4)t.push(A[n+3]<<24|A[n+2]<<16|A[n+1]<<8|A[n]);return t},hn=5,Wa=11,Ja=2,TE=Wa-hn,Ep=65536>>hn,ja=(1<<hn)-1,HE=Ep+(1024>>hn)+32,LE=65536>>Wa,RE=(1<<TE)-1,kp=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},DE=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},OE=function(A,e){var t=xE(A),n=Array.isArray(t)?IE(t):new Uint32Array(t),r=Array.isArray(t)?SE(t):new Uint16Array(t),s=24,o=kp(r,s/2,n[4]/2),a=n[5]===2?kp(r,(s+n[4])/2):DE(n,Math.ceil((s+n[4])/4));return new PE(n[0],n[1],n[2],n[3],o,a)},PE=(function(){function A(e,t,n,r,s,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=s,this.data=o}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>hn],t=(t<<Ja)+(e&ja),this.data[t];if(e<=65535)return t=this.index[Ep+(e-55296>>hn)],t=(t<<Ja)+(e&ja),this.data[t];if(e<this.highStart)return t=HE-LE+(e>>Wa),t=this.index[t],t+=e>>hn&RE,t=this.index[t],t=(t<<Ja)+(e&ja),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Fp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ME=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Do=0;Do<Fp.length;Do++)ME[Fp.charCodeAt(Do)]=Do;var NE=1,Ya=2,qa=3,vp=4,_p=5,KE=7,xp=8,Ac=9,ec=10,Sp=11,Ip=12,Tp=13,Hp=14,tc=15,$E=function(A){for(var e=[],t=0,n=A.length;t<n;){var r=A.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var s=A.charCodeAt(t++);(s&64512)===56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),t--)}else e.push(r)}return e},zE=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var n=[],r=-1,s="";++r<t;){var o=A[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},VE=OE(_E),xe="×",nc="÷",GE=function(A){return VE.get(A)},ZE=function(A,e,t){var n=t-2,r=e[n],s=e[t-1],o=e[t];if(s===Ya&&o===qa)return xe;if(s===Ya||s===qa||s===vp||o===Ya||o===qa||o===vp)return nc;if(s===xp&&[xp,Ac,Sp,Ip].indexOf(o)!==-1||(s===Sp||s===Ac)&&(o===Ac||o===ec)||(s===Ip||s===ec)&&o===ec||o===Tp||o===_p||o===KE||s===NE)return xe;if(s===Tp&&o===Hp){for(;r===_p;)r=e[--n];if(r===Hp)return xe}if(s===tc&&o===tc){for(var a=0;r===tc;)a++,r=e[--n];if(a%2===0)return xe}return nc},XE=function(A){var e=$E(A),t=e.length,n=0,r=0,s=e.map(GE);return{next:function(){if(n>=t)return{done:!0,value:null};for(var o=xe;n<t&&(o=ZE(e,s,++n))===xe;);if(o!==xe||n===t){var a=zE.apply(null,e.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},WE=function(A){for(var e=XE(A),t=[],n;!(n=e.next()).done;)n.value&&t.push(n.value.slice());return t};const JE=A=>{if(A.createRange){const t=A.createRange();if(t.getBoundingClientRect){const n=A.createElement("boundtest");n.style.height="123px",n.style.display="block",A.body.appendChild(n),t.selectNode(n);const r=t.getBoundingClientRect(),s=Math.round(r.height);if(A.body.removeChild(n),s===123)return!0}}return!1},jE=A=>{const e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);const t=A.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";const n=e.firstChild,r=no(n.data).map(i=>HA(i));let s=0,o={};const a=r.every((i,c)=>{t.setStart(n,s),t.setEnd(n,s+i.length);const u=t.getBoundingClientRect();s+=i.length;const h=u.x>o.x||u.y>o.y;return o=u,c===0?!0:h});return A.body.removeChild(e),a},YE=()=>typeof new Image().crossOrigin!="undefined",qE=()=>typeof new XMLHttpRequest().responseType=="string",Ak=A=>{const e=new Image,t=A.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),t.toDataURL()}catch(r){return!1}return!0},Lp=A=>A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255,ek=A=>{const e=A.createElement("canvas"),t=100;e.width=t,e.height=t;const n=e.getContext("2d");if(!n)return Promise.reject(new Error("Failed to get 2D rendering context"));n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);const r=new Image,s=e.toDataURL();r.src=s;const o=rc(t,t,0,0,r);return n.fillStyle="red",n.fillRect(0,0,t,t),sc(o).then(a=>{n.drawImage(a,0,0);const i=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);const c=A.createElement("div");return c.style.backgroundImage=`url(${s})`,c.style.height=`${t}px`,Lp(i)?sc(rc(t,t,0,0,c)):Promise.reject(new Error("ForeignObject rendering not supported"))}).then(a=>(n.drawImage(a,0,0),Lp(n.getImageData(0,0,t,t).data))).catch(()=>!1)},rc=(A,e,t,n,r)=>{const s="http://www.w3.org/2000/svg",o=document.createElementNS(s,"svg"),a=document.createElementNS(s,"foreignObject");return o.setAttributeNS(null,"width",A.toString()),o.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",t.toString()),a.setAttributeNS(null,"y",n.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(r),o},sc=A=>new Promise((e,t)=>{const n=new Image;n.onload=()=>e(n),n.onerror=t,n.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(A))}`}),te={get SUPPORT_RANGE_BOUNDS(){const A=JE(document);return Object.defineProperty(te,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){const A=te.SUPPORT_RANGE_BOUNDS&&jE(document);return Object.defineProperty(te,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){const A=Ak(document);return Object.defineProperty(te,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){const A=typeof Array.from=="function"&&typeof window.fetch=="function"?ek(document):Promise.resolve(!1);return Object.defineProperty(te,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){const A=YE();return Object.defineProperty(te,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){const A=qE();return Object.defineProperty(te,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){const A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(te,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){const A=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(te,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}};var fn=class{constructor(A,e){this.text=A,this.bounds=e}};const tk=(A,e,t,n)=>{const r=sk(e,t),s=[];let o=0;return r.forEach(a=>{if(t.textDecorationLine.length||a.trim().length>0)if(te.SUPPORT_RANGE_BOUNDS){const i=Rp(n,o,a.length).getClientRects();if(i.length>1){const c=gn(a);let u=0;c.forEach(h=>{s.push(new fn(h,ve.fromDOMRectList(A,Rp(n,u+o,h.length).getClientRects()))),u+=h.length})}else s.push(new fn(a,ve.fromDOMRectList(A,i)))}else{const i=n.splitText(a.length);s.push(new fn(a,nk(A,n))),n=i}else te.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));o+=a.length}),s},nk=(A,e)=>{const t=e.ownerDocument;if(t){const n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));const r=e.parentNode;if(r){r.replaceChild(n,e);const s=Lr(A,n);return n.firstChild&&r.replaceChild(n.firstChild,n),s}}return ve.EMPTY},Rp=(A,e,t)=>{const n=A.ownerDocument;if(!n)throw new Error("Node has no owner document");const r=n.createRange();return r.setStart(A,e),r.setEnd(A,e+t),r},gn=A=>{if(te.SUPPORT_NATIVE_TEXT_SEGMENTATION){const e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(t=>t.segment)}return WE(A)},rk=(A,e)=>{if(te.SUPPORT_NATIVE_TEXT_SEGMENTATION){const t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(n=>n.segment)}return ik(A,e)},sk=(A,e)=>Lo(e.writingMode)||e.letterSpacing!==0?gn(A):rk(A,e),ok=[32,160,4961,65792,65793,4153,4241],ik=(A,e)=>{const t=mQ(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[];let r;for(;!(r=t.next()).done;)if(r.value){const s=no(r.value.slice());let o="";s.forEach(a=>{ok.indexOf(a)===-1?o+=HA(a):(o.length&&n.push(o),n.push(HA(a)),o="")}),o.length&&n.push(o)}return n};var ak=class{constructor(A,e,t){this.text=ck(e.data,t.textTransform),this.text.length!==e.data.length&&(e.data=this.text),this.textBounds=tk(A,this.text,t,e)}};const ck=(A,e)=>{switch(e){case 1:return A.toLowerCase();case 3:return A.replace(lk,uk);case 2:return A.toUpperCase();default:return A}},lk=/(^|\s|:|-|\(|\))([a-z])/g,uk=(A,e,t)=>A.length>0?e+t.toUpperCase():A;var Dp=class extends dt{constructor(A,e){super(A,e),this.src=e.currentSrc||e.src,this.intrinsicWidth=e.naturalWidth,this.intrinsicHeight=e.naturalHeight,this.context.cache.addImage(this.src)}},Op=class extends dt{constructor(A,e){super(A,e),this.canvas=e,this.intrinsicWidth=e.width,this.intrinsicHeight=e.height}};const dk=["position","inset","top","right","bottom","left","inset-inline","inset-inline-start","inset-inline-end","inset-block","inset-block-start","inset-block-end","margin","margin-top","margin-right","margin-bottom","margin-left","margin-inline","margin-inline-start","margin-inline-end","margin-block","margin-block-start","margin-block-end"],pk=(A,e)=>{const t=e.getAttribute("style");dk.forEach(r=>e.style.removeProperty(r));const n=A.serializeToString(e);return t===null?e.removeAttribute("style"):e.setAttribute("style",t),n};var Pp=class extends dt{constructor(A,e){super(A,e);const t=new XMLSerializer,n=Lr(A,e);e.setAttribute("width",`${n.width}px`),e.setAttribute("height",`${n.height}px`),this.svg=`data:image/svg+xml,${encodeURIComponent(pk(t,e))}`,this.intrinsicWidth=e.width.baseVal.value,this.intrinsicHeight=e.height.baseVal.value,this.context.cache.addImage(this.svg)}},Mp=class extends dt{constructor(A,e){super(A,e),this.value=e.value}},oc=class extends dt{constructor(A,e){super(A,e),this.start=e.start,this.reversed=typeof e.reversed=="boolean"&&e.reversed===!0}};const hk=[{type:15,flags:0,unit:"px",number:3}],fk=[{type:16,flags:0,number:50}],gk=A=>A.width>A.height?new ve(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new ve(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A,Bk=A=>{const e=A.type==="password"?new Array(A.value.length+1).join("•"):A.value;return e.length===0?A.placeholder||"":e},wk=A=>A.value.length===0&&!!A.placeholder,mk="checkbox",Ck="radio",Np=707406591,bk=1970632191;var Ar=class extends dt{constructor(A,e){switch(super(A,e),this.type=e.type.toLowerCase(),this.checked=e.checked,this.value=Bk(e),this.isPlaceholder=wk(e),(this.type==="checkbox"||this.type==="radio")&&(this.styles.backgroundColor=3739148031,this.styles.borderTopColor=this.styles.borderRightColor=this.styles.borderBottomColor=this.styles.borderLeftColor=2779096575,this.styles.borderTopWidth=this.styles.borderRightWidth=this.styles.borderBottomWidth=this.styles.borderLeftWidth=1,this.styles.borderTopStyle=this.styles.borderRightStyle=this.styles.borderBottomStyle=this.styles.borderLeftStyle=1,this.styles.backgroundClip=[0],this.styles.backgroundOrigin=[0],this.bounds=gk(this.bounds)),this.type){case mk:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=hk;break;case Ck:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=fk;break}}},Kp=class extends dt{constructor(A,e){super(A,e);const t=e.options[e.selectedIndex||0];this.value=t&&t.text||""}},$p=class extends dt{constructor(A,e){super(A,e),this.value=e.value}},zp=class extends dt{constructor(A,e,t){super(A,e),this.src=e.src,this.width=parseInt(e.width,10)||0,this.height=parseInt(e.height,10)||0,this.backgroundColor=this.styles.backgroundColor,this.parseTreeFn=t;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&this.parseTreeFn){this.tree=this.parseTreeFn(A,e.contentWindow.document.documentElement);const n=e.contentWindow.document.documentElement?Yn(A,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):ut.TRANSPARENT,r=e.contentWindow.document.body?Yn(A,getComputedStyle(e.contentWindow.document.body).backgroundColor):ut.TRANSPARENT;this.backgroundColor=Et(n)?Et(r)?this.styles.backgroundColor:r:n}}catch(n){}}};const Qk=["OL","UL","MENU"],ic=(A,e,t,n)=>{for(let r=e.firstChild,s;r;r=s)s=r.nextSibling,Vp(A,r,t,n)},Vp=(A,e,t,n)=>{if(Pd(e)&&e.data.length>0)t.textNodes.push(new ak(A,e,t.styles));else if(un(e))if(Xr(e)&&e.assignedNodes)e.assignedNodes().forEach(r=>Vp(A,r,t,n));else{const r=Gp(A,e);r.styles.isVisible()&&(yk(e,r,n)?r.createsRealStackingContext=!0:Uk(r.styles)&&(r.createsStackingContext=!0),Qk.indexOf(e.tagName)!==-1&&(r.isListOwner=!0),t.elements.push(r),e.shadowRoot?ic(A,e.shadowRoot,r,n):!yo(e)&&!Md(e)&&!Uo(e)&&ic(A,e,r,n))}},Gp=(A,e)=>Ra(e)?new Dp(A,e):Nd(e)?new Op(A,e):Md(e)?new Pp(A,e):Zy(e)?new Mp(A,e):Xy(e)?new oc(A,e):zy(e)?new Ar(A,e):Uo(e)?new Kp(A,e):yo(e)?new $p(A,e):$d(e)?new zp(A,e,Zp):new dt(A,e),Zp=(A,e)=>{const t=Gp(A,e);return t.createsRealStackingContext=!0,ic(A,e,t,t),t},yk=(A,e,t)=>e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||La(A)&&t.styles.isTransparent(),Uk=A=>A.isPositioned()||A.isFloating()?!0:ee(A.display,268435456)||ee(A.display,33554432)||ee(A.display,536870912)||ee(A.display,134217728),Xp=(A,e)=>A.length===e.length?A.some((t,n)=>t===e[n]):!1,Ek=(A,e,t,n,r)=>A.map((s,o)=>{switch(o){case 0:return s.add(e,t);case 1:return s.add(e+n,t);case 2:return s.add(e+n,t+r);case 3:return s.add(e,t+r)}return s});var O=class ng{constructor(e,t){this.type=0,this.x=e,this.y=t}add(e,t){return new ng(this.x+e,this.y+t)}};const er=(A,e,t)=>new O(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t);var Oo=class Is{constructor(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}subdivide(e,t){const n=er(this.start,this.startControl,e),r=er(this.startControl,this.endControl,e),s=er(this.endControl,this.end,e),o=er(n,r,e),a=er(r,s,e),i=er(o,a,e);return t?new Is(this.start,n,o,i):new Is(i,a,s,this.end)}add(e,t){return new Is(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))}reverse(){return new Is(this.end,this.endControl,this.startControl,this.start)}};const Se=A=>A.type===1;var kk=class{constructor(A){const e=A.styles,t=A.bounds;let[n,r]=Vr(e.borderTopLeftRadius,t.width,t.height),[s,o]=Vr(e.borderTopRightRadius,t.width,t.height),[a,i]=Vr(e.borderBottomRightRadius,t.width,t.height),[c,u]=Vr(e.borderBottomLeftRadius,t.width,t.height);const h=[];h.push((n+s)/t.width),h.push((c+a)/t.width),h.push((r+u)/t.height),h.push((o+i)/t.height);const f=Math.max(...h);f>1&&(n/=f,r/=f,s/=f,o/=f,a/=f,i/=f,c/=f,u/=f);const g=t.width-s,m=t.height-i,b=t.width-a,E=t.height-u,k=e.borderTopWidth,v=e.borderRightWidth,y=e.borderBottomWidth,U=e.borderLeftWidth,x=J(e.paddingTop,A.bounds.width),R=J(e.paddingRight,A.bounds.width),H=J(e.paddingBottom,A.bounds.width),X=J(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||r>0?EA(t.left+U/3,t.top+k/3,n-U/3,r-k/3,0):new O(t.left+U/3,t.top+k/3),this.topRightBorderDoubleOuterBox=n>0||r>0?EA(t.left+g,t.top+k/3,s-v/3,o-k/3,1):new O(t.left+t.width-v/3,t.top+k/3),this.bottomRightBorderDoubleOuterBox=a>0||i>0?EA(t.left+b,t.top+m,a-v/3,i-y/3,2):new O(t.left+t.width-v/3,t.top+t.height-y/3),this.bottomLeftBorderDoubleOuterBox=c>0||u>0?EA(t.left+U/3,t.top+E,c-U/3,u-y/3,3):new O(t.left+U/3,t.top+t.height-y/3),this.topLeftBorderDoubleInnerBox=n>0||r>0?EA(t.left+U*2/3,t.top+k*2/3,n-U*2/3,r-k*2/3,0):new O(t.left+U*2/3,t.top+k*2/3),this.topRightBorderDoubleInnerBox=n>0||r>0?EA(t.left+g,t.top+k*2/3,s-v*2/3,o-k*2/3,1):new O(t.left+t.width-v*2/3,t.top+k*2/3),this.bottomRightBorderDoubleInnerBox=a>0||i>0?EA(t.left+b,t.top+m,a-v*2/3,i-y*2/3,2):new O(t.left+t.width-v*2/3,t.top+t.height-y*2/3),this.bottomLeftBorderDoubleInnerBox=c>0||u>0?EA(t.left+U*2/3,t.top+E,c-U*2/3,u-y*2/3,3):new O(t.left+U*2/3,t.top+t.height-y*2/3),this.topLeftBorderStroke=n>0||r>0?EA(t.left+U/2,t.top+k/2,n-U/2,r-k/2,0):new O(t.left+U/2,t.top+k/2),this.topRightBorderStroke=n>0||r>0?EA(t.left+g,t.top+k/2,s-v/2,o-k/2,1):new O(t.left+t.width-v/2,t.top+k/2),this.bottomRightBorderStroke=a>0||i>0?EA(t.left+b,t.top+m,a-v/2,i-y/2,2):new O(t.left+t.width-v/2,t.top+t.height-y/2),this.bottomLeftBorderStroke=c>0||u>0?EA(t.left+U/2,t.top+E,c-U/2,u-y/2,3):new O(t.left+U/2,t.top+t.height-y/2),this.topLeftBorderBox=n>0||r>0?EA(t.left,t.top,n,r,0):new O(t.left,t.top),this.topRightBorderBox=s>0||o>0?EA(t.left+g,t.top,s,o,1):new O(t.left+t.width,t.top),this.bottomRightBorderBox=a>0||i>0?EA(t.left+b,t.top+m,a,i,2):new O(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=c>0||u>0?EA(t.left,t.top+E,c,u,3):new O(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||r>0?EA(t.left+U,t.top+k,Math.max(0,n-U),Math.max(0,r-k),0):new O(t.left+U,t.top+k),this.topRightPaddingBox=s>0||o>0?EA(t.left+Math.min(g,t.width-v),t.top+k,g>t.width+v?0:Math.max(0,s-v),Math.max(0,o-k),1):new O(t.left+t.width-v,t.top+k),this.bottomRightPaddingBox=a>0||i>0?EA(t.left+Math.min(b,t.width-U),t.top+Math.min(m,t.height-y),Math.max(0,a-v),Math.max(0,i-y),2):new O(t.left+t.width-v,t.top+t.height-y),this.bottomLeftPaddingBox=c>0||u>0?EA(t.left+U,t.top+Math.min(E,t.height-y),Math.max(0,c-U),Math.max(0,u-y),3):new O(t.left+U,t.top+t.height-y),this.topLeftContentBox=n>0||r>0?EA(t.left+U+X,t.top+k+x,Math.max(0,n-(U+X)),Math.max(0,r-(k+x)),0):new O(t.left+U+X,t.top+k+x),this.topRightContentBox=s>0||o>0?EA(t.left+Math.min(g,t.width+U+X),t.top+k+x,g>t.width+U+X?0:s-U+X,o-(k+x),1):new O(t.left+t.width-(v+R),t.top+k+x),this.bottomRightContentBox=a>0||i>0?EA(t.left+Math.min(b,t.width-(U+X)),t.top+Math.min(m,t.height+k+x),Math.max(0,a-(v+R)),i-(y+H),2):new O(t.left+t.width-(v+R),t.top+t.height-(y+H)),this.bottomLeftContentBox=c>0||u>0?EA(t.left+U+X,t.top+E,Math.max(0,c-(U+X)),u-(y+H),3):new O(t.left+U+X,t.top+t.height-(y+H))}};const EA=(A,e,t,n,r)=>{const s=4*((Math.sqrt(2)-1)/3),o=t*s,a=n*s,i=A+t,c=e+n;switch(r){case 0:return new Oo(new O(A,c),new O(A,c-a),new O(i-o,e),new O(i,e));case 1:return new Oo(new O(A,e),new O(A+o,e),new O(i,c-a),new O(i,c));case 2:return new Oo(new O(i,e),new O(i,e+a),new O(A+o,c),new O(A,c));default:return new Oo(new O(i,c),new O(i-o,c),new O(A,e+a),new O(A,e))}},Po=A=>[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox],Fk=A=>[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox],Mo=A=>[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox];var ac=class{constructor(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}},No=class{constructor(A,e){this.path=A,this.target=e,this.type=1}},vk=class{constructor(A){this.opacity=A,this.type=2,this.target=6}},Yr=class{constructor(A){this.applyClip=A,this.type=3,this.target=6}};const _k={[VA.NORMAL]:"source-over",[VA.MULTIPLY]:"multiply",[VA.SCREEN]:"screen",[VA.OVERLAY]:"overlay",[VA.DARKEN]:"darken",[VA.LIGHTEN]:"lighten",[VA.COLOR_DODGE]:"color-dodge",[VA.COLOR_BURN]:"color-burn",[VA.HARD_LIGHT]:"hard-light",[VA.SOFT_LIGHT]:"soft-light",[VA.DIFFERENCE]:"difference",[VA.EXCLUSION]:"exclusion",[VA.HUE]:"hue",[VA.SATURATION]:"saturation",[VA.COLOR]:"color",[VA.LUMINOSITY]:"luminosity"};var xk=class{constructor(A){this.mixBlendMode=A,this.type=4,this.target=6,this.compositeOperation=_k[A]}},Sk=class Er{constructor(e){this.type=5,this.target=6;const t=Er.parseDropShadow(e);this.shadow=t.shadow,this.safeFilterString=t.safeFilterString}static parseDropShadow(e){if(!e)return{safeFilterString:""};const t=Er.findDropShadows(e);if(t.length===0)return{safeFilterString:e};const n=Er.parseDropShadowBody(t[0].body);let r="",s=0;for(const o of t)r+=e.slice(s,o.start),s=o.end;return r+=e.slice(s),{shadow:n,safeFilterString:r.replace(/\s+/g," ").trim()}}static findDropShadows(e){const t=[],n=/drop-shadow\(/gi;let r;for(;(r=n.exec(e))!==null;){const s=r.index+12-1,o=r.index;let a=1,i=s+1;for(;i<e.length&&a>0;){const u=e[i];u==="("?a++:u===")"&&a--,i++}if(a!==0)break;const c=e.slice(s+1,i-1);t.push({body:c,start:o,end:i})}return t}static parseDropShadowBody(e){var s;const t=Er.tokenizeFilterArgs(e.trim()),n=[];let r;for(const o of t)Er.isCSSLength(o)?n.push(parseFloat(o)):o&&(r=o);if(!(n.length<2||n.length>3))return{offsetX:n[0],offsetY:n[1],blur:(s=n[2])!=null?s:0,color:r!=null?r:"rgba(0,0,0,1)"}}static tokenizeFilterArgs(e){const t=[];let n="",r=0;for(let s=0;s<e.length;s++){const o=e[s];o==="("?(r++,n+=o):o===")"?(r--,n+=o):/\s/.test(o)?r>0?n+=o:n&&(t.push(n),n=""):n+=o}return n&&t.push(n),t}static isCSSLength(e){return/^-?[\d.]+(px|em|rem|pt|cm|mm|in|pc|ex|ch|vw|vh|vmin|vmax|%)?$/i.test(e)}};const Wp=A=>A.type===0,cc=A=>A.type===1,Ik=A=>A.type===2,Jp=A=>A.type===3,Tk=A=>A.type===4,Hk=A=>A.type===5;var jp=class{constructor(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}},Yp=class{constructor(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new kk(this.container),this.container.styles.opacity<1&&this.effects.push(new vk(this.container.styles.opacity)),this.container.styles.rotate!==null){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.rotate*Math.PI/180,o=Math.cos(s),a=Math.sin(s),i=[o,a,-a,o,0,0];this.effects.push(new ac(n,r,i))}if(this.container.styles.transform!==null){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.transform;this.effects.push(new ac(n,r,s))}if(qp(this.container.styles)){const t=Po(this.curves),n=Mo(this.curves);Xp(t,n)?this.effects.push(new No(t,6)):(this.effects.push(new No(t,2)),this.effects.push(new No(n,4)))}if(this.container.styles.clipPath.type!==0){const t=Lk(this.container.styles.clipPath,this.container.bounds);t&&this.effects.push(t)}if(this.container.styles.mixBlendMode!==VA.NORMAL&&this.effects.push(new xk(this.container.styles.mixBlendMode)),this.container.styles.filter!==null&&this.effects.push(new Sk(this.container.styles.filter)),this.container.styles.zoom!==1){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.zoom,o=[s,0,0,s,0,0];this.effects.push(new ac(n,r,o))}}getEffects(A){let e=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent;const n=this.effects.slice(0);for(;t;){const r=t.effects.filter(s=>!cc(s));if(e||t.container.styles.position!==0||!t.parent){if(e=[2,3].indexOf(t.container.styles.position)===-1,qp(t.container.styles)){const s=Po(t.curves),o=Mo(t.curves);Xp(s,o)||n.unshift(new No(o,6))}n.unshift(...r)}else n.unshift(...r);t=t.parent}return n.filter(r=>ee(r.target,A))}};const qp=A=>A.overflowX!==0||A.overflowY!==0,Ah=(A,e,t,n,r)=>A==="closest-side"?Math.min(e-t,n-e):A==="farthest-side"?Math.max(e-t,n-e):J(A,r),Lk=(A,e)=>{const{left:t,top:n,width:r,height:s}=e;switch(A.type){case 1:{const o=J(A.left,r),a=J(A.top,s),i=t+o,c=n+a,u=Math.max(0,r-o-J(A.right,r)),h=Math.max(0,s-a-J(A.bottom,s));return new Yr(f=>{f.beginPath(),f.rect(i,c,u,h),f.clip()})}case 2:{const o=t+J(A.cx,r),a=n+J(A.cy,s);let i;return A.radius==="closest-side"?i=Math.min(o-t,a-n,t+r-o,n+s-a):A.radius==="farthest-side"?i=Math.max(o-t,a-n,t+r-o,n+s-a):i=J(A.radius,Math.sqrt(r*r+s*s)/Math.SQRT2),new Yr(c=>{c.beginPath(),c.arc(o,a,Math.max(0,i),0,Math.PI*2),c.clip()})}case 3:{const o=t+J(A.cx,r),a=n+J(A.cy,s),i=Ah(A.rx,o,t,t+r,r),c=Ah(A.ry,a,n,n+s,s);return new Yr(u=>{u.beginPath(),u.ellipse(o,a,Math.max(0,i),Math.max(0,c),0,0,Math.PI*2),u.clip()})}case 4:{const o=A.points.map(([a,i])=>[t+J(a,r),n+J(i,s)]);return new Yr(a=>{if(a.beginPath(),o.length>0){a.moveTo(o[0][0],o[0][1]);for(let i=1;i<o.length;i++)a.lineTo(o[i][0],o[i][1]);a.closePath()}a.clip()})}case 5:{const{d:o}=A;let a=null;return new Yr(i=>{try{a||(a=new Path2D(o));const c=i.getTransform();i.translate(t,n),i.clip(a),i.setTransform(c)}catch(c){}})}case 0:return null;default:return null}},lc=(A,e,t,n)=>{A.container.elements.forEach(r=>{const s=r.createsRealStackingContext,o=r.createsStackingContext,a=new Yp(r,A);ee(r.styles.display,2048)&&n.push(a);const i=r.isListOwner?[]:n;if(s||o){const c=s||r.styles.isPositioned()?t:e,u=new jp(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){const h=r.styles.zIndex.order;if(h<0){let f=0;c.negativeZIndex.some((g,m)=>h>g.element.container.styles.zIndex.order?(f=m,!1):f>0),c.negativeZIndex.splice(f,0,u)}else if(h>0){let f=0;c.positiveZIndex.some((g,m)=>h>=g.element.container.styles.zIndex.order?(f=m+1,!1):f>0),c.positiveZIndex.splice(f,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else r.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);lc(a,u,s?u:t,i)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),lc(a,e,t,i);r.isListOwner&&eh(r,i)})},eh=(A,e)=>{let t=A instanceof oc?A.start:1;const n=A instanceof oc?A.reversed:!1;for(let r=0;r<e.length;r++){const s=e[r];s.container instanceof Mp&&typeof s.container.value=="number"&&s.container.value!==0&&(t=s.container.value),s.listValue=Wr(t,s.container.styles.listStyleType,!0),t+=n?-1:1}},Rk=A=>{const e=new Yp(A,null),t=new jp(e),n=[];return lc(e,t,t,n),eh(e.container,n),t},uc=A=>{const e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},qr=A=>{const e=A.styles,t=A.bounds,n=J(e.paddingLeft,t.width),r=J(e.paddingRight,t.width),s=J(e.paddingTop,t.width),o=J(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,s+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+s+o))},Dk=(A,e)=>A===0?e.bounds:A===2?qr(e):uc(e),Ok=(A,e)=>A===0?e.bounds:A===2?qr(e):uc(e),Ko=(A,e,t)=>{const n=Dk(Bn(A.styles.backgroundOrigin,e),A),r=Ok(Bn(A.styles.backgroundClip,e),A),s=Pk(Bn(A.styles.backgroundSize,e),t,n);let[o,a]=s;const i=Vr(Bn(A.styles.backgroundPosition,e),n.width-o,n.height-a),c=Mk(Bn(A.styles.backgroundRepeat,e),i,s,n,r),u=Math.round(n.left+i[0]),h=Math.round(n.top+i[1]);return o=Math.max(1,o),a=Math.max(1,a),[c,u,h,o,a]},tr=A=>j(A)&&A.value==="auto",$o=A=>typeof A=="number",Pk=(A,[e,t,n],r)=>{const[s,o]=A;if(!s)return[0,0];if(aA(s)&&o&&aA(o))return[J(s,r.width),J(o,r.height)];const a=$o(n);if(j(s)&&(s.value==="contain"||s.value==="cover"))return $o(n)?r.width/r.height<n!=(s.value==="cover")?[r.width,r.width/n]:[r.height*n,r.height]:[r.width,r.height];const i=$o(e),c=$o(t),u=i||c;if(tr(s)&&(!o||tr(o)))return i&&c?[e,t]:!a&&!u?[r.width,r.height]:u&&a?[i?e:t*n,c?t:e/n]:[i?e:r.width,c?t:r.height];if(a){let g=0,m=0;return aA(s)?g=J(s,r.width):aA(o)&&(m=J(o,r.height)),tr(s)?g=m*n:(!o||tr(o))&&(m=g/n),[g,m]}let h=null,f=null;if(aA(s)?h=J(s,r.width):o&&aA(o)&&(f=J(o,r.height)),h!==null&&(!o||tr(o))&&(f=i&&c?h/e*t:r.height),f!==null&&tr(s)&&(h=i&&c?f/t*e:r.width),h!==null&&f!==null)return[h,f];throw new Error("Unable to calculate background-size for element")},Bn=(A,e)=>{const t=A[e];return typeof t=="undefined"?A[0]:t},Mk=(A,[e,t],[n,r],s,o)=>{switch(A){case 2:return[new O(Math.round(s.left),Math.round(s.top+t)),new O(Math.round(s.left+s.width),Math.round(s.top+t)),new O(Math.round(s.left+s.width),Math.round(r+s.top+t)),new O(Math.round(s.left),Math.round(r+s.top+t))];case 3:return[new O(Math.round(s.left+e),Math.round(s.top)),new O(Math.round(s.left+e+n),Math.round(s.top)),new O(Math.round(s.left+e+n),Math.round(s.height+s.top)),new O(Math.round(s.left+e),Math.round(s.height+s.top))];case 1:return[new O(Math.round(s.left+e),Math.round(s.top+t)),new O(Math.round(s.left+e+n),Math.round(s.top+t)),new O(Math.round(s.left+e+n),Math.round(s.top+t+r)),new O(Math.round(s.left+e),Math.round(s.top+t+r))];default:return[new O(Math.round(o.left),Math.round(o.top)),new O(Math.round(o.left+o.width),Math.round(o.top)),new O(Math.round(o.left+o.width),Math.round(o.height+o.top)),new O(Math.round(o.left),Math.round(o.height+o.top))]}};var Nk=class{constructor(A){this.ctx=A}render(A,e){this.ctx.fillStyle=UA(e.textDecorationColor||e.color);let t=1;typeof e.textDecorationThickness=="number"?t=e.textDecorationThickness:e.textDecorationThickness==="from-font"&&(t=Math.max(1,Math.floor(e.fontSize.number*.05)));let n=0;typeof e.textUnderlineOffset=="number"&&(n=e.textUnderlineOffset);const r=e.textDecorationStyle;e.textDecorationLine.forEach(s=>{let o=0;switch(s){case 1:o=A.top+A.height-t+n;break;case 2:o=A.top;break;case 3:o=A.top+(A.height/2-t/2);break;default:return}this.draw(A.left,o,A.width,t,r)})}draw(A,e,t,n,r){switch(r){case 0:this.ctx.fillRect(A,e,t,n);break;case 1:{const s=Math.max(1,n);this.ctx.fillRect(A,e,t,n),this.ctx.fillRect(A,e+n+s,t,n);break}case 2:this.drawPattern(A,e,t,n,[n,n*2]);break;case 3:this.drawPattern(A,e,t,n,[n*3,n*2]);break;case 4:this.drawWavy(A,e,t,n);break;default:this.ctx.fillRect(A,e,t,n)}}drawPattern(A,e,t,n,r){this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash(r),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(A,e+n/2),this.ctx.lineTo(A+t,e+n/2),this.ctx.stroke(),this.ctx.restore()}drawWavy(A,e,t,n){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle;const r=n*2,s=n*4;let o=A;for(this.ctx.moveTo(o,e+n/2);o<A+t;){const a=Math.min(o+s/2,A+t);if(this.ctx.quadraticCurveTo(o+s/4,e+n/2-r,a,e+n/2),o=a,o<A+t){const i=Math.min(o+s/2,A+t);this.ctx.quadraticCurveTo(o+s/4,e+n/2+r,i,e+n/2),o=i}}this.ctx.stroke(),this.ctx.restore()}};const Kk="Mg",nr=A=>A!==void 0&&!Number.isNaN(A),th=(A,e)=>{const t=A.measureText(Kk),n=t;return{baseline:nr(n.fontBoundingBoxAscent)?n.fontBoundingBoxAscent:nr(t.actualBoundingBoxAscent)?t.actualBoundingBoxAscent:e,height:nr(n.fontBoundingBoxAscent)&&nr(n.fontBoundingBoxDescent)?n.fontBoundingBoxAscent+n.fontBoundingBoxDescent:nr(t.actualBoundingBoxAscent)&&nr(t.actualBoundingBoxDescent)?t.actualBoundingBoxAscent+t.actualBoundingBoxDescent:e}},nh=(A,e)=>th(A,e).baseline,$k=["-apple-system","system-ui"],zk=1,Vk=/[\u2E80-\u2FFF\u3000-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF01-\uFFEF]/,As=A=>Vk.test(A),Gk=()=>{if(typeof navigator=="undefined")return null;const A=navigator.userAgent,e=/iPhone|iPad|iPod/.test(A),t=/Macintosh/.test(A)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1;if(!e&&!t)return null;for(const n of[/(?:iPhone|CPU(?:\siPhone)?)\sOS\s(\d+)[\._](\d+)/,/Version\/(\d+)\.(\d+)/]){const r=A.match(n);if(r&&r[1])return parseInt(r[1],10)}return null},Zk=A=>{const e=Gk();return e!==null&&e>=15&&e<17?A.map(t=>$k.indexOf(t)!==-1?'-apple-system, "Helvetica Neue", Arial, sans-serif':t):A},Xk=()=>{var A;return(A=typeof window!="undefined"?window:void 0)!=null&&A.chrome?"miter":"round"};var Wk=class{constructor(A){this.glyphWidthCache=null,this.ctx=A.ctx,this.options=A.options,this.decorationRenderer=new Nk(A.ctx)}cachedMeasureText(A,e){let t=this.glyphWidthCache;t||(t=new Map,this.glyphWidthCache=t);const n=A+e;let r=t.get(n);return r===void 0&&(r=this.ctx.measureText(A).width,t.set(n,r)),r}iterateLettersWithLetterSpacing(A,e,t,n,r){if(Lo(n)){this.iterateVerticalGlyphs(A,e,t,n,r);return}const s=gn(A.text),o=A.bounds.top+t,a=this.ctx.font;let i=A.bounds.left;for(const c of s){if(As(c)){const u=this.ctx.textBaseline;this.ctx.textBaseline="ideographic",r(c,i,o),this.ctx.textBaseline=u}else r(c,i,o);i+=this.cachedMeasureText(c,a)+e}}iterateVerticalGlyphs(A,e,t,n,r){const s=gn(A.text),o=this.ctx.font,a=n===4?-Math.PI/2:Math.PI/2;let i=A.bounds.top;for(let c=0;c<s.length;){const u=s[c];if(!($a(n)||!As(u)&&u.trim().length>0)){const g=this.ctx.textBaseline;As(u)&&(this.ctx.textBaseline="ideographic"),r(u,A.bounds.left,i+t),this.ctx.textBaseline=g,i+=this.cachedMeasureText(u,o)+e,c++;continue}const h=c;for(;c<s.length;){const g=s[c];if(!$a(n)&&!As(g)&&g.trim().length===0)break;if($a(n)||!As(g)&&g.trim().length>0)c++;else break}this.ctx.save(),this.ctx.translate(A.bounds.left+t,i),this.ctx.rotate(a);let f=0;for(let g=h;g<c;g++)r(s[g],0,f),f+=this.cachedMeasureText(s[g],o)+e;this.ctx.restore(),i+=f}}renderTextWithLetterSpacing(A,e,t,n=0){this.renderFillText(A,e,t,n)}canRenderWholeText(A,e){return A===0&&!Lo(e)}renderFillText(A,e,t,n){this.canRenderWholeText(e,n)?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+t):this.iterateLettersWithLetterSpacing(A,e,t,n,(r,s,o)=>{this.ctx.fillText(r,s,o)})}renderStrokeText(A,e,t,n){this.canRenderWholeText(e,n)?this.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+t):this.iterateLettersWithLetterSpacing(A,e,t,n,(r,s,o)=>{this.ctx.strokeText(r,s,o)})}renderTextStrokeWithStyle(A,e,t){!e.webkitTextStrokeWidth||!A.text.trim().length||(this.ctx.strokeStyle=UA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=Xk(),this.renderStrokeText(A,e.letterSpacing,t,e.writingMode),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter")}renderTextFillWithShadows(A,e,t){this.ctx.fillStyle=UA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,t,e.writingMode);const n=e.textShadow;n.length&&A.text.trim().length&&(n.slice(0).reverse().forEach(r=>{this.ctx.shadowColor=UA(r.color),this.ctx.shadowOffsetX=r.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=r.offsetY.number*this.options.scale,this.ctx.shadowBlur=r.blur.number,this.renderTextWithLetterSpacing(A,e.letterSpacing,t,e.writingMode)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0)}renderTextBoundWithPaintOrder(A,e,t,n){t.forEach(r=>{switch(r){case 0:this.ctx.fillStyle=UA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,n,e.writingMode);break;case 1:this.renderTextStrokeWithStyle(A,e,n);break}})}renderTextDecoration(A,e){this.decorationRenderer.render(A,e)}truncateTextWithEllipsis(A,e,t){const r=this.ctx.measureText("…").width,s=gn(A);if(t===0){const o=c=>this.ctx.measureText(s.slice(0,c).join("")).width+r<=e;let a=0,i=s.length;for(;a<i;){const c=a+i+1>>1;o(c)?a=c:i=c-1}return s.slice(0,a).join("")+"…"}else{const o=this.ctx.font;let a=r;const i=[];for(const c of s){const u=this.cachedMeasureText(c,o);if(a+u>e)break;i.push(c),a+=u+t}return i.join("")+"…"}}createFontStyle(A){const e=A.fontVariant.filter(r=>r==="normal"||r==="small-caps").join(""),t=Zk(A.fontFamily).join(", "),n=lt(A.fontSize)?`${A.fontSize.number}${A.fontSize.unit}`:`${A.fontSize.number}px`;return[[A.fontStyle,e,A.fontWeight,n,t].join(" "),t,n]}renderLineClampedText(A,e,t,n,r){const s=e.fontSize.number*1.5,o=[];let a=[],i=A.textBounds[0].bounds.top;A.textBounds.forEach(h=>{Math.abs(h.bounds.top-i)>=s*.5?(a.length>0&&o.push(a),a=[h],i=h.bounds.top):a.push(h)}),a.length>0&&o.push(a);const c=e.webkitLineClamp;if(o.length<=c)return!1;for(let h=0;h<c-1;h++)o[h].forEach(f=>this.renderTextBoundWithPaintOrder(f,e,t,n));const u=o[c-1];if(u!=null&&u.length&&r){const h=u.map(b=>b.text).join(""),f=u[0],g=r.width-(f.bounds.left-r.left),m=new fn(this.truncateTextWithEllipsis(h,g,e.letterSpacing),f.bounds);for(const b of t)b===0?(this.ctx.fillStyle=UA(e.color),this.renderTextWithLetterSpacing(m,e.letterSpacing,n,e.writingMode)):b===1&&this.renderTextStrokeWithStyle(m,e,n)}return!0}renderEllipsisText(A,e,t,n,r){const s=e.fontSize.number*1.5,o=A.textBounds[0].bounds.top;if(!A.textBounds.every(c=>Math.abs(c.bounds.top-o)<s*.5))return!1;let a=A.textBounds.map(c=>c.text).join("").replace(/\s+/g," ").trim();if(this.ctx.measureText(a).width<=r.width+zk)return!1;const i=new fn(this.truncateTextWithEllipsis(a,r.width,e.letterSpacing),A.textBounds[0].bounds);for(const c of t)c===0?this.renderTextFillWithShadows(i,e,n):c===1&&this.renderTextStrokeWithStyle(i,e,n);return!0}renderTextNode(A,e,t){return I(this,null,function*(){this.glyphWidthCache=null;const[n]=this.createFontStyle(e);this.ctx.font=n,this.ctx.direction=e.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic";const r=e.paintOrder,s=nh(this.ctx,e.fontSize.number);e.webkitLineClamp>0&&(e.display&2)!==0&&e.overflowY===1&&A.textBounds.length>0&&this.renderLineClampedText(A,e,r,s,t)||e.textOverflow===1&&t&&e.overflowX===1&&A.textBounds.length>0&&this.renderEllipsisText(A,e,r,s,t)||A.textBounds.forEach(o=>{r.forEach(a=>{a===0?(this.renderTextFillWithShadows(o,e,s),e.textDecorationLine.length&&this.renderTextDecoration(o.bounds,e)):a===1&&this.renderTextStrokeWithStyle(o,e,s)})})})}};const rh=(A,e)=>{e.forEach((t,n)=>{const r=Se(t)?t.start:t;n===0?A.moveTo(r.x,r.y):A.lineTo(r.x,r.y),Se(t)&&A.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)})},sh=(A,e)=>{A.beginPath(),rh(A,e),A.closePath()};var Jk=class{constructor(A){this.maxSize=A,this._map=new Map}get(A){if(!this._map.has(A))return;const e=this._map.get(A);return this._map.delete(A),this._map.set(A,e),e}set(A,e){if(this._map.has(A))this._map.delete(A);else if(this._map.size>=this.maxSize){const t=this._map.keys().next().value;t!==void 0&&this._map.delete(t)}this._map.set(A,e)}get size(){return this._map.size}clear(){this._map.clear()}},oh=class{constructor(A){this.patternCache=new Jk(50),this.ctx=A.ctx,this.context=A.context,this.canvas=A.canvas}renderBackgroundImage(A){return I(this,null,function*(){var r,s,o,a;let e=A.styles.backgroundImage.length-1;const t=A.styles.backgroundBlendMode;let n=0;for(const i of A.styles.backgroundImage.slice(0).reverse()){if(n>0){const c=(s=(r=t[n])!=null?r:t[0])!=null?s:"normal";c!=="normal"&&(this.ctx.save(),this.ctx.globalCompositeOperation=c)}i.type===0?yield this.renderBackgroundURLImage(A,i,e):l0(i)?this.renderLinearGradient(A,i,e):d0(i)?this.renderRepeatingLinearGradient(A,i,e):u0(i)&&this.renderRadialGradient(A,i,e),n>0&&((a=(o=t[n])!=null?o:t[0])!=null?a:"normal")!=="normal"&&this.ctx.restore(),e--,n++}})}renderBackgroundURLImage(A,e,t){return I(this,null,function*(){var s,o;let n;const r=e.url;try{n=yield this.context.cache.match(r)}catch(a){this.context.logger.error(`Error loading background-image ${r}`),(o=(s=this.context).onError)==null||o.call(s,a instanceof Error?a:new Error(String(a)))}if(n){const a=isNaN(n.width)||n.width===0?1:n.width,i=isNaN(n.height)||n.height===0?1:n.height,[c,u,h,f,g]=Ko(A,t,[a,i,a/i]),m=Bn(A.styles.backgroundRepeat,t),b=m===1?"no-repeat":m===2?"repeat-x":m===3?"repeat-y":"repeat",E=`${r}|${Math.round(f)}x${Math.round(g)}|${A.styles.imageRendering}|${b}`;let k=this.patternCache.get(E);if(!k){const v=this.resizeImage(n,f,g,A.styles.imageRendering);k=this.ctx.createPattern(v,b),this.patternCache.set(E,k)}this.renderRepeat(c,k,u,h)}})}renderRepeatingLinearGradient(A,e,t){var K;const[n,r,s,o,a]=Ko(A,t,[null,null,null]),[i,c,u,h,f]=Yd(e.angle,o,a),g=Pa(e.stops,i||1),m=g[g.length-1],b=g[0],E=m.stop-b.stop;if(E<=0){this.renderLinearGradient(A,e,t);return}const k=u-c,v=f-h,y=E/(Math.sqrt(k*k+v*v)||1),U=c,x=h,R=c+k*y,H=h+v*y,X=(K=this.canvas.ownerDocument)!=null?K:document,N=`rlg|${e.angle}|${Math.round(E)}|${JSON.stringify(e.stops)}`;let W=this.patternCache.get(N);if(!W){const nA=X.createElement("canvas"),hA=Math.max(1,Math.ceil(E));nA.width=hA,nA.height=hA;const _A=nA.getContext("2d");if(!_A)return;const jA=_A.createLinearGradient(U-r,x-s,R-r,H-s);g.forEach(he=>{jA.addColorStop((he.stop-b.stop)/E,UA(he.color))}),_A.fillStyle=jA,_A.fillRect(0,0,hA,hA),hA>0&&(W=this.ctx.createPattern(nA,"repeat"),this.patternCache.set(N,W))}W&&this.renderRepeat(n,W,r,s)}renderLinearGradient(A,e,t){var b;const[n,r,s,o,a]=Ko(A,t,[null,null,null]),[i,c,u,h,f]=Yd(e.angle,o,a),g=`lg|${e.angle}|${Math.round(o)}x${Math.round(a)}|${JSON.stringify(e.stops)}`;let m=this.patternCache.get(g);if(!m){const E=((b=this.canvas.ownerDocument)!=null?b:document).createElement("canvas");E.width=o,E.height=a;const k=E.getContext("2d");if(!k)return;const v=k.createLinearGradient(c,h,u,f);Pa(e.stops,i||1).forEach(y=>v.addColorStop(y.stop,UA(y.color))),k.fillStyle=v,k.fillRect(0,0,o,a),o>0&&a>0&&(m=this.ctx.createPattern(E,"repeat"),this.patternCache.set(g,m))}m&&this.renderRepeat(n,m,r,s)}renderRadialGradient(A,e,t){var g;const[n,r,s,o,a]=Ko(A,t,[null,null,null]),i=e.position.length===0?[Ut]:e.position,c=J(i[0],o),u=J(i[i.length-1],a);let[h,f]=i0(e,c,u,o,a);if((h===0||f===0)&&(h=Math.max(h,.01),f=Math.max(f,.01)),h>0&&f>0){const m=`rg|${Math.round(c)}x${Math.round(u)}|${Math.round(h)}x${Math.round(f)}|${JSON.stringify(e.stops)}`,b=Pa(e.stops,h*2),E=b[b.length-1];let k=this.patternCache.get(m);if(!k){const v=((g=this.canvas.ownerDocument)!=null?g:document).createElement("canvas");v.width=Math.ceil(h*2),v.height=Math.ceil(f*2);const y=v.getContext("2d");if(y){const U=y.createRadialGradient(h,h,0,h,h,h);b.forEach(x=>U.addColorStop(x.stop,UA(x.color))),y.fillStyle=U,h!==f&&y.scale(1,f/h),y.fillRect(0,0,h*2,h*2),k=this.ctx.createPattern(v,"no-repeat"),this.patternCache.set(m,k)}}k&&(this.path(n),this.ctx.save(),this.ctx.clip(),E&&(this.ctx.fillStyle=UA(E.color),this.ctx.fill()),this.ctx.translate(r+c-h,s+u-f),this.ctx.fillStyle=k,this.ctx.fillRect(0,0,h*2,f*2),this.ctx.restore())}}renderRepeat(A,e,t,n){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,n),this.ctx.fill(),this.ctx.translate(-t,-n)}resizeImage(A,e,t,n){var o;const r=((o=this.canvas.ownerDocument)!=null?o:document).createElement("canvas");r.width=Math.max(1,e),r.height=Math.max(1,t);const s=r.getContext("2d");return s?(n===2||n===1?(this.context.logger.debug("Disabling image smoothing for background image due to CSS image-rendering"),s.imageSmoothingEnabled=!1):n===3?(this.context.logger.debug("Enabling image smoothing for background image due to CSS image-rendering: smooth"),s.imageSmoothingEnabled=!0):s.imageSmoothingEnabled=this.ctx.imageSmoothingEnabled,this.ctx.imageSmoothingQuality&&(s.imageSmoothingQuality=this.ctx.imageSmoothingQuality),s.drawImage(A,0,0,A.width,A.height,0,0,e,t),r):A}path(A){sh(this.ctx,A)}};const ih=(A,e)=>{switch(e){case 0:return Ie(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Ie(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Ie(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return Ie(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},jk=(A,e)=>{switch(e){case 0:return Ie(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return Ie(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return Ie(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return Ie(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},Yk=(A,e)=>{switch(e){case 0:return Ie(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return Ie(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return Ie(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return Ie(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},qk=(A,e)=>{switch(e){case 0:return zo(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return zo(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return zo(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return zo(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},zo=(A,e)=>{const t=[];return Se(A)?t.push(A.subdivide(.5,!1)):t.push(A),Se(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Ie=(A,e,t,n)=>{const r=[];return Se(A)?r.push(A.subdivide(.5,!1)):r.push(A),Se(t)?r.push(t.subdivide(.5,!0)):r.push(t),Se(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Se(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r};var AF=class{constructor(A,e){this.ctx=A.ctx,this.pathCallbacks=e}renderSolidBorder(A,e,t){return I(this,null,function*(){this.pathCallbacks.path(ih(t,e)),this.ctx.fillStyle=UA(A),this.ctx.fill()})}renderDoubleBorder(A,e,t,n){return I(this,null,function*(){if(e<3){yield this.renderSolidBorder(A,t,n);return}const r=jk(n,t);this.pathCallbacks.path(r),this.ctx.fillStyle=UA(A),this.ctx.fill();const s=Yk(n,t);this.pathCallbacks.path(s),this.ctx.fill()})}renderDashedDottedBorder(A,e,t,n,r){return I(this,null,function*(){this.ctx.save();const s=qk(n,t),o=ih(n,t);r===2&&(this.pathCallbacks.path(o),this.ctx.clip());let a,i,c,u;Se(o[0])?(a=o[0].start.x,i=o[0].start.y):(a=o[0].x,i=o[0].y),Se(o[1])?(c=o[1].end.x,u=o[1].end.y):(c=o[1].x,u=o[1].y);let h;t===0||t===2?h=Math.abs(a-c):h=Math.abs(i-u),this.ctx.beginPath(),r===3?this.pathCallbacks.formatPath(s):this.pathCallbacks.formatPath(o.slice(0,2));let f=e<3?e*3:e*2,g=e<3?e*2:e;r===3&&(f=e,g=e);let m=!0;if(h<=f*2)m=!1;else if(h<=f*2+g){const b=h/(2*f+g);f*=b,g*=b}else{const b=Math.floor((h+g)/(f+g)),E=(h-b*f)/(b-1),k=(h-(b+1)*f)/b;g=k<=0||Math.abs(g-E)<Math.abs(g-k)?E:k}if(m&&(r===3?this.ctx.setLineDash([0,f+g]):this.ctx.setLineDash([f,g])),r===3?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=e*2+1.1,this.ctx.strokeStyle=UA(A),this.ctx.stroke(),this.ctx.setLineDash([]),r===2){if(Se(o[0])){const b=o[3],E=o[0];this.ctx.beginPath(),this.pathCallbacks.formatPath([new O(b.end.x,b.end.y),new O(E.start.x,E.start.y)]),this.ctx.stroke()}if(Se(o[1])){const b=o[1],E=o[2];this.ctx.beginPath(),this.pathCallbacks.formatPath([new O(b.end.x,b.end.y),new O(E.start.x,E.start.y)]),this.ctx.stroke()}}this.ctx.restore()})}},eF=class{constructor(A){this.ctx=A}renderBorderImage(A,e,t,n,r,s,o,a){const i=e.naturalWidth||e.width,c=e.naturalHeight||e.height;if(i<=0||c<=0)return;const u=Math.min(t.unit==="percent"?t.top/100*c:Math.min(t.top,c),c),h=Math.min(t.unit==="percent"?t.right/100*i:Math.min(t.right,i),i),f=Math.min(t.unit==="percent"?t.bottom/100*c:Math.min(t.bottom,c),c),g=Math.min(t.unit==="percent"?t.left/100*i:Math.min(t.left,i),i),{left:m,top:b,width:E,height:k}=A;if(E<=0||k<=0)return;const v=Math.min(r,k),y=Math.min(s,E),U=Math.min(o,k-v),x=Math.min(a,E-y);this.drawRegion(e,0,0,g,u,m,b,x,v),this.drawRegion(e,i-h,0,h,u,m+E-y,b,y,v),this.drawRegion(e,i-h,c-f,h,f,m+E-y,b+k-U,y,U),this.drawRegion(e,0,c-f,g,f,m,b+k-U,x,U);const R=[{sx:g,sy:0,sw:i-g-h,sh:u,dx:m+x,dy:b,dw:E-x-y,dh:v,repeat:n.horizontal},{sx:i-h,sy:u,sw:h,sh:c-u-f,dx:m+E-y,dy:b+v,dw:y,dh:k-v-U,repeat:n.vertical},{sx:g,sy:c-f,sw:i-g-h,sh:f,dx:m+x,dy:b+k-U,dw:E-x-y,dh:U,repeat:n.horizontal},{sx:0,sy:u,sw:g,sh:c-u-f,dx:m,dy:b+v,dw:x,dh:k-v-U,repeat:n.vertical}];for(const H of R){if(H.sw<=0||H.sh<=0||H.dw<=0||H.dh<=0)continue;const X=H.dw>=H.dh;H.repeat===0?this.ctx.drawImage(e,H.sx,H.sy,H.sw,H.sh,H.dx,H.dy,H.dw,H.dh):(H.repeat===1||H.repeat===2)&&this.drawRepeatedEdge(e,H,X,H.repeat===2)}if(t.fill){const H=g,X=u,N=i-g-h,W=c-u-f,K=m+x,nA=b+v,hA=E-x-y,_A=k-v-U;this.drawRegion(e,H,X,N,W,K,nA,hA,_A)}}drawRegion(A,e,t,n,r,s,o,a,i){n>0&&r>0&&a>0&&i>0&&this.ctx.drawImage(A,e,t,n,r,s,o,a,i)}drawRepeatedEdge(A,e,t,n){const r=t?e.sw:e.sh,s=t?e.dw:e.dh;if(r<=0||s<=0)return;let o,a;n?(a=Math.max(1,Math.round(s/r)),o=s/a):(o=r,a=Math.ceil(s/o)),this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(e.dx,e.dy,e.dw,e.dh),this.ctx.clip();for(let i=0;i<a;i++){const c=i*o,u=s-c,h=Math.min(o,u);if(h<=0)break;t?this.ctx.drawImage(A,e.sx,e.sy,e.sw,e.sh,e.dx+c,e.dy,h,e.dh):this.ctx.drawImage(A,e.sx,e.sy,e.sw,e.sh,e.dx,e.dy+c,e.dw,h)}this.ctx.restore()}},tF=class{constructor(A,e){this.activeEffects=[],this.didSave=!1,this.saveAtDepth=-1,this.ctx=A.ctx,this.pathCallback=e}applyEffects(A){for(;this.activeEffects.length;)this.popEffect();this.didSave=!1,this.saveAtDepth=-1;const e=n=>Wp(n)||cc(n)||Jp(n),t=A.reduceRight((n,r,s)=>n!==-1?n:e(r)?s:-1,-1);for(let n=0;n<A.length;n++){const r=A[n];e(r)&&(this.didSave||(this.ctx.save(),this.didSave=!0),n===t&&(this.saveAtDepth=this.activeEffects.length)),this.applyEffect(r)}}applyEffect(A){Wp(A)?(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)):cc(A)?(this.pathCallback.path(A.path),this.ctx.clip()):Jp(A)?A.applyClip(this.ctx):Ik(A)?this.ctx.globalAlpha*=A.opacity:Tk(A)?this.ctx.globalCompositeOperation=A.compositeOperation:Hk(A)&&(this.ctx.filter=A.safeFilterString||"none",A.shadow&&(this.ctx.shadowOffsetX=A.shadow.offsetX,this.ctx.shadowOffsetY=A.shadow.offsetY,this.ctx.shadowBlur=A.shadow.blur,this.ctx.shadowColor=A.shadow.color)),this.activeEffects.push(A)}popEffect(){this.activeEffects.length!==0&&(this.didSave&&this.activeEffects.length-1===this.saveAtDepth&&(this.ctx.restore(),this.didSave=!1,this.saveAtDepth=-1),this.activeEffects.pop(),!this.didSave&&this.activeEffects.length===0&&(this.ctx.globalAlpha=1,this.ctx.globalCompositeOperation="source-over",this.ctx.filter="none",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0,this.ctx.shadowColor="rgba(0, 0, 0, 0)"))}getActiveEffectCount(){return this.activeEffects.length}hasActiveEffects(){return this.activeEffects.length>0}};const nF=(A,e,t,n,r)=>{let s=0,o=0,a=A,i=e,c=t.left,u=t.top,h=t.width,f=t.height;const g=h/f,m=a/i,b=r?J(r[0],1):.5,E=r?J(r[1],1):.5;return n===2?m>g?(f=h/m,u+=(t.height-f)*E):(h=f*m,c+=(t.width-h)*b):n===4?m>g?(a=i*g,s+=(A-a)*b):(i=a/g,o+=(e-i)*E):n===8?(a>h?(s+=(a-h)*b,a=h):(c+=(h-a)*b,h=a),i>f?(o+=(i-f)*E,i=f):(u+=(f-i)*E,f=i)):n===16&&((m>g?h:f*m)<(a>h?a:h)?m>g?(f=h/m,u+=(t.height-f)*E):(h=f*m,c+=(t.width-h)*b):(a>h?(s+=(a-h)*b,a=h):(c+=(h-a)*b,h=a),i>f?(o+=(i-f)*E,i=f):(u+=(f-i)*E,f=i))),{sx:s,sy:o,sw:a,sh:i,dx:c,dy:u,dw:h,dh:f}};function rF(A,e,t,n,r,s,o,a){return I(this,null,function*(){var i,c;if(r instanceof Dp)try{const u=yield e.cache.match(r.src),h=A.imageSmoothingEnabled;o.imageRendering===2||o.imageRendering===1?A.imageSmoothingEnabled=!1:o.imageRendering===3&&(A.imageSmoothingEnabled=!0),a(r,s,u),A.imageSmoothingEnabled=h}catch(u){e.logger.error(`Error loading image ${r.src}`),(i=e.onError)==null||i.call(e,u instanceof Error?u:new Error(String(u)))}if(r instanceof Op&&a(r,s,r.canvas),r instanceof Pp)try{a(r,s,yield e.cache.match(r.svg))}catch(u){e.logger.error(`Error loading svg ${r.svg.substring(0,255)}`),(c=e.onError)==null||c.call(e,u instanceof Error?u:new Error(String(u)))}if(r instanceof zp&&r.tree){const u=yield n(e,{scale:t.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}).render(r.tree);r.width&&r.height&&A.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height)}})}function sF(A,e,t,n,r){if(n instanceof Ar){const s=Math.min(n.bounds.width,n.bounds.height);n.type==="checkbox"&&n.checked?(A.save(),t([new O(n.bounds.left+s*.39363,n.bounds.top+s*.79),new O(n.bounds.left+s*.16,n.bounds.top+s*.5549),new O(n.bounds.left+s*.27347,n.bounds.top+s*.44071),new O(n.bounds.left+s*.39694,n.bounds.top+s*.5649),new O(n.bounds.left+s*.72983,n.bounds.top+s*.23),new O(n.bounds.left+s*.84,n.bounds.top+s*.34085),new O(n.bounds.left+s*.39363,n.bounds.top+s*.79)]),A.fillStyle=UA(Np),A.fill(),A.restore()):n.type==="radio"&&n.checked&&(A.save(),A.beginPath(),A.arc(n.bounds.left+s/2,n.bounds.top+s/2,s/4,0,Math.PI*2,!0),A.fillStyle=UA(Np),A.fill(),A.restore())}if(cF(n)&&n.value.length){const[s]=e.createFontStyle(r);A.font=s;const o=J(r.fontSize,0),{baseline:a,height:i}=th(A,o);A.fillStyle=n instanceof Ar&&n.isPlaceholder?UA(bk):UA(r.color),A.textBaseline="alphabetic",A.textAlign=lF(n.styles.textAlign);const c=qr(n),u=n instanceof Ar?oF(c,uc(n),i):c;let h=0;switch(n.styles.textAlign){case 1:h+=c.width/2;break;case 2:h+=c.width;break}let f=0;n instanceof Ar&&(f=(c.height-i)/2);const g=c.add(h,f,0,0);A.save(),t([new O(u.left,u.top),new O(u.left+u.width,u.top),new O(u.left+u.width,u.top+u.height),new O(u.left,u.top+u.height)]),A.clip();const m=iF(A,n.value,c.width,r.whiteSpace==="pre"||r.whiteSpace==="nowrap"),b=Ka(r.lineHeight,o);m.forEach((E,k)=>{let v=g.left;const y=A.measureText(E).width;switch(r.textAlign){case 1:v+=(c.width-y)/2;break;case 2:v+=c.width-y;break}const U=new ve(v,g.top+k*b,0,0);e.renderTextWithLetterSpacing(new fn(E,U),r.letterSpacing,a,r.writingMode)}),A.restore(),A.textBaseline="alphabetic",A.textAlign="left"}}const oF=(A,e,t)=>A.height<t?new ve(A.left,e.top,A.width,e.height):A,iF=(A,e,t,n)=>{const r=[],s=e.split(`
1663
+ `);for(const o of s){if(n){r.push(o);continue}const a=o.split(/(\s+)/);let i="";for(const c of a){const u=i+c;A.measureText(u).width<=t||i===""?i=u:(r.push(i),i=c)}r.push(i)}return r};function aF(A,e,t,n,r,s){return I(this,null,function*(){var o;if(ee(r.styles.display,2048)){if(r.styles.listStyleImage!==null){const a=r.styles.listStyleImage;if(a.type===0){const i=a.url;try{const c=yield e.cache.match(i);A.drawImage(c,r.bounds.left-(c.width+10),r.bounds.top)}catch(c){e.logger.error(`Error loading list-style-image ${i}`),(o=e.onError)==null||o.call(e,c instanceof Error?c:new Error(String(c)))}}}else if(n.listValue&&r.styles.listStyleType!==-1){const[a]=t.createFontStyle(s);A.font=a,A.fillStyle=UA(s.color),A.textBaseline="middle",A.textAlign="right";const i=new ve(r.bounds.left,r.bounds.top+J(r.styles.paddingTop,r.bounds.width),r.bounds.width,Ka(s.lineHeight,s.fontSize.number)/2+1);t.renderTextWithLetterSpacing(new fn(n.listValue,i),s.letterSpacing,Ka(s.lineHeight,s.fontSize.number)/2+2,s.writingMode),A.textBaseline="bottom",A.textAlign="left"}}})}const cF=A=>A instanceof $p||A instanceof Kp?!0:A instanceof Ar&&A.type!=="radio"&&A.type!=="checkbox",lF=A=>{switch(A){case 1:return"center";case 2:return"right";default:return"left"}};var uF=class rg{constructor(e,t){this.context=e,this.options=t,this.canvas=t.canvas?t.canvas:document.createElement("canvas");const n=this.canvas.getContext("2d");if(!n)throw new Error("Failed to get 2D rendering context from canvas");this.ctx=n,t.canvas||(this.canvas.width=Math.floor(t.width*t.scale),this.canvas.height=Math.floor(t.height*t.scale),this.canvas.style.width=`${t.width}px`,this.canvas.style.height=`${t.height}px`),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-t.x,-t.y),this.ctx.textBaseline="bottom",t.imageSmoothing!==void 0&&(this.ctx.imageSmoothingEnabled=t.imageSmoothing),t.imageSmoothingQuality&&(this.ctx.imageSmoothingQuality=t.imageSmoothingQuality),this.backgroundRenderer=new oh({ctx:this.ctx,context:this.context,canvas:this.canvas,options:{width:t.width,height:t.height,scale:t.scale}}),this.borderRenderer=new AF({ctx:this.ctx},{path:r=>this.path(r),formatPath:r=>this.formatPath(r)}),this.borderImageRenderer=new eF(this.ctx),this.effectsRenderer=new tF({ctx:this.ctx},{path:r=>this.path(r)}),this.textRenderer=new Wk({ctx:this.ctx,options:{scale:t.scale}}),this.context.logger.debug(`Canvas renderer initialized (${t.width}x${t.height}) with scale ${t.scale}`)}renderStack(e){return I(this,null,function*(){e.element.container.styles.isVisible()&&(yield this.renderStackContent(e))})}renderNode(e){return I(this,null,function*(){if(e.container.debugRender)debugger;e.container.styles.isVisible()&&(yield this.renderNodeBackgroundAndBorders(e),yield this.renderNodeContent(e))})}renderReplacedElement(e,t,n){const r=n.naturalWidth||e.intrinsicWidth,s=n.naturalHeight||e.intrinsicHeight;if(n&&r>0&&s>0){const o=qr(e),a=Mo(t);this.path(a),this.ctx.save(),this.ctx.clip();const{sx:i,sy:c,sw:u,sh:h,dx:f,dy:g,dw:m,dh:b}=nF(r,s,o,e.styles.objectFit,e.styles.objectPosition);this.ctx.drawImage(n,i,c,u,h,f,g,m,b),this.ctx.restore()}}renderNodeContent(e){return I(this,null,function*(){this.effectsRenderer.applyEffects(e.getEffects(4));const t=e.container,n=e.curves,r=t.styles,s=qr(t);for(const o of t.textNodes)yield this.textRenderer.renderTextNode(o,r,s);yield rF(this.ctx,this.context,{scale:this.options.scale,backgroundColor:this.options.backgroundColor,x:this.options.x,y:this.options.y,width:this.options.width,height:this.options.height},(o,a)=>new rg(o,a),t,n,r,(o,a,i)=>this.renderReplacedElement(o,a,i)),sF(this.ctx,this.textRenderer,this.path.bind(this),t,r),yield aF(this.ctx,this.context,this.textRenderer,e,t,r)})}renderStackContent(e){return I(this,null,function*(){if(e.element.container.debugRender)debugger;const t=this.options.signal;yield this.renderNodeBackgroundAndBorders(e.element);for(const n of e.negativeZIndex){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderNodeContent(e.element);for(const n of e.nonInlineLevel)yield this.renderNode(n);for(const n of e.nonPositionedFloats){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.nonPositionedInlineLevel){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.inlineLevel)yield this.renderNode(n);for(const n of e.zeroOrAutoZIndexOrTransformedOrOpacity){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.positiveZIndex){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}})}mask(e){this.ctx.beginPath();const t=this.options.x,n=this.options.y;this.ctx.moveTo(t,n),this.ctx.lineTo(t+this.options.width,n),this.ctx.lineTo(t+this.options.width,n+this.options.height),this.ctx.lineTo(t,n+this.options.height),this.ctx.lineTo(t,n),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()}path(e){sh(this.ctx,e)}formatPath(e){rh(this.ctx,e)}renderNodeBackgroundAndBorders(e){return I(this,null,function*(){this.effectsRenderer.applyEffects(e.getEffects(2));const t=e.container.styles,n=!Et(t.backgroundColor)||t.backgroundImage.length,r=pF(t),s=[{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}],o=Bn(t.backgroundClip,0),a=dF(o,e.curves);if((n||t.boxShadow.length)&&(r&&e.container.textNodes.length>0?yield this.renderTextClippedBackground(e):(this.ctx.save(),this.path(a),this.ctx.clip(),Et(t.backgroundColor)||(this.ctx.fillStyle=UA(t.backgroundColor),this.ctx.fill()),yield this.backgroundRenderer.renderBackgroundImage(e.container),this.ctx.restore()),t.boxShadow.slice(0).reverse().forEach(c=>{this.ctx.save();const u=Po(e.curves),h=c.inset?0:rE,f=Ek(u,-h+(c.inset?1:-1)*c.spread.number,(c.inset?1:-1)*c.spread.number,c.spread.number*(c.inset?-2:2),c.spread.number*(c.inset?-2:2));c.inset?(this.path(u),this.ctx.clip(),this.mask(f)):(this.mask(u),this.ctx.clip(),this.path(f)),this.ctx.shadowOffsetX=c.offsetX.number+h,this.ctx.shadowOffsetY=c.offsetY.number,this.ctx.shadowColor=UA(c.color),this.ctx.shadowBlur=c.blur.number,this.ctx.fillStyle=c.inset?UA(c.color):"rgba(0,0,0,1)",this.ctx.fill(),this.ctx.restore()})),t.borderImageSource){const c=t.borderImageSource;if(c.type===0){const u=c.url;try{const h=yield this.context.cache.match(u);if(h){const f=e.container.bounds;this.borderImageRenderer.renderBorderImage(f,h,t.borderImageSlice,t.borderImageRepeat,Math.max(0,t.borderTopWidth),Math.max(0,t.borderRightWidth),Math.max(0,t.borderBottomWidth),Math.max(0,t.borderLeftWidth))}}catch(h){this.context.logger.error(`Error loading border-image ${u}`)}}return}let i=0;for(const c of s){if(c.style!==0&&!Et(c.color)&&c.width>0){const u=()=>I(this,null,function*(){c.style===2?yield this.borderRenderer.renderDashedDottedBorder(c.color,c.width,i,e.curves,2):c.style===3?yield this.borderRenderer.renderDashedDottedBorder(c.color,c.width,i,e.curves,3):c.style===4?yield this.borderRenderer.renderDoubleBorder(c.color,c.width,i,e.curves):yield this.borderRenderer.renderSolidBorder(c.color,i,e.curves)}),h=e.container.legendBounds;if(i===0&&h){const f=e.container.bounds,g=h.left-f.left,m=h.left+h.width-f.left;g>0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(f.left,f.top,g,f.height),this.ctx.clip(),yield u(),this.ctx.restore());const b=f.left+m,E=f.width-m;E>0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(b,f.top,E,f.height),this.ctx.clip(),yield u(),this.ctx.restore())}else yield u()}i++}})}render(e){return I(this,null,function*(){this.options.backgroundColor&&(this.ctx.fillStyle=UA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height));const t=Rk(e);return yield this.renderStack(t),this.effectsRenderer.applyEffects([]),this.canvas})}renderTextClippedBackground(e){return I(this,null,function*(){var m;const t=e.container,n=t.styles,r=t.bounds;if(r.width<=0||r.height<=0)return;const s=((m=this.canvas.ownerDocument)!=null?m:document).createElement("canvas"),o=Math.ceil(r.width),a=Math.ceil(r.height);s.width=o,s.height=a;const i=s.getContext("2d");if(!i)return;const[c]=this.textRenderer.createFontStyle(n);i.font=c,i.textBaseline="alphabetic",i.textAlign="left",i.direction=n.direction===1?"rtl":"ltr";const u=nh(i,n.fontSize.number),h=new oh({ctx:i,context:this.context,canvas:s,options:{width:o,height:a,scale:1}});Et(n.backgroundColor)||(i.fillStyle=UA(n.backgroundColor),i.fillRect(0,0,o,a)),i.save(),i.translate(-r.left,-r.top),yield h.renderBackgroundImage(t),i.restore(),i.globalCompositeOperation="destination-in",i.fillStyle="#000";const f=n.writingMode,g=n.letterSpacing;for(const b of t.textNodes)for(const E of b.textBounds){const k=E.bounds.left-r.left,v=E.bounds.top-r.top+u;g>0?this.renderTextMaskWithLetterSpacing(i,E,g,k,v,f):i.fillText(E.text,k,v)}this.ctx.drawImage(s,r.left,r.top)})}renderTextMaskWithLetterSpacing(e,t,n,r,s,o){const a=gn(t.text);let i=r;for(const c of a){if(Lo(o)){e.fillText(t.text,r,s);return}e.fillText(c,i,s),i+=e.measureText(c).width+n}}};const dF=(A,e)=>{switch(A){case 0:return Po(e);case 2:return Fk(e);default:return Mo(e)}},pF=A=>A.backgroundClip.some(e=>e===3);var hF=class{constructor(A,e){this.context=A,this.options=e,this.canvas=e.canvas?e.canvas:document.createElement("canvas");const t=this.canvas.getContext("2d");if(!t)throw new Error("Failed to get 2D rendering context from canvas");this.ctx=t,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`,this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.context.logger.debug(`EXPERIMENTAL ForeignObject renderer initialized (${e.width}x${e.height} at ${e.x},${e.y}) with scale ${e.scale}`)}render(A){return I(this,null,function*(){var t;if((t=this.options.signal)!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");const e=yield sc(rc(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A));return this.options.backgroundColor&&(this.ctx.fillStyle=UA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(e,-this.options.x*this.options.scale,-this.options.y*this.options.scale),this.canvas})}},fF=(gr=class{constructor({id:e,enabled:t}){this.id=e,this.enabled=t,this.start=Date.now()}debug(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug(this.id,`${this.getTime()}ms`,...e):this.info(...e))}getTime(){return Date.now()-this.start}info(...e){this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info(this.id,`${this.getTime()}ms`,...e)}warn(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn(this.id,`${this.getTime()}ms`,...e):this.info(...e))}error(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error(this.id,`${this.getTime()}ms`,...e):this.info(...e))}},gr.instances={},gr),gF=class{constructor(A,e){var t;if(this.context=A,this._options=e,this._cache=new Map,this._pendingOperations=new Map,this._deferMode=!1,this._collectedUrls=new Set,this.maxSize=(t=e.maxCacheSize)!=null?t:100,this.maxSize<1)throw new Error("Cache maxSize must be at least 1");this.maxSize>1e4&&this.context.logger.warn(`Cache maxSize ${this.maxSize} is very large and may cause memory issues. Consider using a smaller value (recommended: 100-1000).`)}startDefer(){this._deferMode=!0}preloadAll(A=10){return I(this,null,function*(){this._deferMode=!1;const e=Array.from(this._collectedUrls);if(this._collectedUrls.clear(),e.length===0)return;const t=Math.max(1,Math.min(A,100));this.context.logger.debug(`Preloading ${e.length} image(s) with concurrency ${t}`);for(let n=0;n<e.length;n+=t){const r=e.slice(n,n+t).map(s=>this._addImageWithPending(s));yield Promise.allSettled(r)}})}addImage(A){if(this._deferMode)return!this.has(A)&&(es(A)||ah(A))&&this._collectedUrls.add(A),Promise.resolve();const e=this._pendingOperations.get(A);if(e)return e;if(this.has(A)){const t=this._cache.get(A);return this._cache.delete(A),this._cache.set(A,t),Promise.resolve()}return es(A)||ah(A)?this._addImageWithPending(A):Promise.resolve()}_addImageWithPending(A){const e=this._pendingOperations.get(A);if(e)return e;const t=this._addImageInternal(A);return this._pendingOperations.set(A,t),t.finally(()=>{this._pendingOperations.delete(A)}),t}_addImageInternal(A){return I(this,null,function*(){var n;const e=(n=this._options.imageTimeout)!=null?n:15e3,t=this.withTimeout(this.loadImage(A),e,`Timed out (${e}ms) loading image`);t.catch(r=>{this.context.logger.error(`Failed to load image ${A}: ${r instanceof Error?r.message:"Unknown error"}`)}),this.set(A,t)})}withTimeout(A,e,t){if(e<=0)return A;let n;const r=new Promise((s,o)=>{n=setTimeout(()=>o(new Error(t)),e)});return Promise.race([A,r]).finally(()=>{n!==void 0&&clearTimeout(n)})}match(A){const e=this._cache.get(A);if(e)return this._cache.delete(A),this._cache.set(A,e),e.value}set(A,e){if(this._cache.has(A))this._cache.delete(A);else if(this._cache.size>=this.maxSize){const t=this._cache.keys().next().value;t!==void 0&&(this._cache.delete(t),this.context.logger.debug(`Cache: Evicted LRU entry: ${t}`))}this._cache.set(A,{value:e})}size(){return this._cache.size}getMaxSize(){return this.maxSize}clear(){this._cache.clear()}loadImage(A){return I(this,null,function*(){const e=this.context.originChecker,t=i=>e.isSameOrigin(i),n=typeof this._options.customIsSameOrigin=="function"?yield this._options.customIsSameOrigin(A,t):t(A),r=!n&&this._options.allowTaint===!1&&!Vo(A)&&!es(A)&&typeof this._options.proxy!="string",s=!Vo(A)&&(this._options.useCORS===!0||r)&&te.SUPPORT_CORS_IMAGES&&!n,o=!Vo(A)&&!n&&!es(A)&&typeof this._options.proxy=="string"&&te.SUPPORT_CORS_XHR&&!s;if(!n&&this._options.allowTaint===!1&&!Vo(A)&&!es(A)&&!o&&!s)return;let a=A;return o&&(a=yield this.proxy(a)),this.context.logger.debug(`Added image ${A.substring(0,256)}`),yield new Promise((i,c)=>{const u=new Image;u.onload=()=>i(u),u.onerror=c,(CF(a)||s)&&(u.crossOrigin="anonymous"),u.src=a,u.complete===!0&&setTimeout(()=>i(u),500)})})}has(A){return this._cache.has(A)}keys(){return Promise.resolve(Array.from(this._cache.keys()))}proxy(A){const e=this._options.proxy;if(!e)throw new Error("No proxy defined");const t=A.substring(0,256);return new Promise((n,r)=>{const s=te.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=()=>{if(o.status===200)if(s==="text")n(o.response);else{const i=new FileReader;i.addEventListener("load",()=>n(i.result),!1),i.addEventListener("error",c=>r(c),!1),i.readAsDataURL(o.response)}else r(`Failed to proxy resource ${t} with status code ${o.status}`)},o.onerror=r;const a=e.indexOf("?")>-1?"&":"?";if(o.open("GET",`${e}${a}url=${encodeURIComponent(A)}&responseType=${s}`),s!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=s),this._options.imageTimeout){const i=this._options.imageTimeout;o.timeout=i,o.ontimeout=()=>r(`Timed out (${i}ms) proxying ${t}`)}o.send()})}};const BF=/^data:image\/svg\+xml/i,wF=/^data:image\/.*;base64,/i,mF=/^data:image\/.*/i,ah=A=>te.SUPPORT_SVG_DRAWING||!bF(A),Vo=A=>mF.test(A),CF=A=>wF.test(A),es=A=>A.substring(0,4)==="blob",bF=A=>A.slice(-3).toLowerCase()==="svg"||BF.test(A);var QF=class{constructor(A){if(!A||!A.document)throw new Error("Valid window object required for OriginChecker");if(!A.location||!A.location.href)throw new Error("Window object must have valid location");this.link=A.document.createElement("a"),this.origin=this.getOrigin(A.location.href)}getOrigin(A){return this.link.href=A,this.link.href=this.link.href,this.link.protocol+this.link.hostname+this.link.port}isSameOrigin(A){return this.getOrigin(A)===this.origin}getContextOrigin(){return this.origin}},yF=(_n=class{constructor(e,t,n){var r,s;this.windowBounds=t,this.instanceName=`#${_n.instanceCount++}`,this.config=n,this.logger=new fF({id:this.instanceName,enabled:e.logging}),this.originChecker=new QF(n.window),this.cache=(s=(r=e.cache)!=null?r:n.cache)!=null?s:new gF(this,e),this.onError=e.onError}},_n.instanceCount=1,_n);const Go=A=>{if(A!=null&&A.aborted)throw new DOMException("The operation was aborted.","AbortError")},UF=A=>{["scale","width","height","imageTimeout","x","y","windowWidth","windowHeight","scrollX","scrollY"].forEach(e=>{const t=A[e];if(t!=null&&typeof t!="number"){const n=Number(t);Number.isNaN(n)||(A[e]=n)}})},EF=A=>{var e,t,n;return{allowTaint:(e=A.allowTaint)!=null?e:!1,imageTimeout:(t=A.imageTimeout)!=null?t:15e3,proxy:A.proxy,useCORS:(n=A.useCORS)!=null?n:!1,customIsSameOrigin:A.customIsSameOrigin,maxCacheSize:A.maxCacheSize}},kF=(A,e,t)=>{var n,r;return F({logging:(n=A.logging)!=null?n:!0,cache:(r=A.cache)!=null?r:e.cache},t)},FF=800,vF=600,ch=0,_F=(A,e)=>{var n,r,s,o,a,i,c,u;const t=e;return{windowWidth:(r=(n=A.windowWidth)!=null?n:t.innerWidth)!=null?r:FF,windowHeight:(o=(s=A.windowHeight)!=null?s:t.innerHeight)!=null?o:vF,scrollX:(i=(a=A.scrollX)!=null?a:t.pageXOffset)!=null?i:ch,scrollY:(u=(c=A.scrollY)!=null?c:t.pageYOffset)!=null?u:ch}},xF=(A,e,t)=>{var n,r;return{allowTaint:(n=A.allowTaint)!=null?n:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,iframeContainer:A.iframeContainer,inlineImages:t,copyStyles:t,cspNonce:(r=A.cspNonce)!=null?r:e.cspNonce}},SF=(A,e,t,n,r,s,o)=>{var a,i,c,u,h,f;return{canvas:A.canvas,backgroundColor:e,signal:A.signal,scale:(i=(a=A.scale)!=null?a:o)!=null?i:1,x:((c=A.x)!=null?c:0)+t,y:((u=A.y)!=null?u:0)+n,width:(h=A.width)!=null?h:Math.ceil(r),height:(f=A.height)!=null?f:Math.ceil(s),imageSmoothing:A.imageSmoothing,imageSmoothingQuality:A.imageSmoothingQuality}},IF=(A,e,t)=>{const n=e.ownerDocument,r=n.documentElement?Yn(A,getComputedStyle(n.documentElement).backgroundColor):ut.TRANSPARENT,s=n.body?Yn(A,getComputedStyle(n.body).backgroundColor):ut.TRANSPARENT,o=typeof t=="string"?Yn(A,t):t===null?ut.TRANSPARENT:4294967295;return e===n.documentElement?Et(r)?Et(s)?o:s:r:o},TF=(A,e,t)=>I(null,null,function*(){var N,W,K,nA,hA,_A;if(UF(e),!e.skipValidation){const jA=e.validator||Kb(),he=jA.validateElement(A);if(!he.valid)throw new Error(he.error);const Ye=jA.validateOptions(e);if(!Ye.valid)throw new Error(`Invalid options: ${Ye.error}`)}if(!A||typeof A!="object")throw new Error("Invalid element provided as first argument");const n=A.ownerDocument;if(!n)throw new Error("Element is not attached to a Document");const r=n.defaultView;if(!r)throw new Error("Document is not attached to a Window");const s=kF(e,t,EF(e)),o=_F(e,r),a=new ve(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),i=new yF(s,a,t),c=(W=(N=e.enablePerformanceMonitoring)!=null?N:e.logging)!=null?W:!1,u=new $b(i,c);u.start("total",{width:o.windowWidth,height:o.windowHeight});const h=e.signal;Go(h);const f=(K=e.foreignObjectRendering)!=null?K:!1,g=xF(e,t,f);i.logger.debug(`Starting document clone with size ${a.width}x${a.height} scrolled to ${-a.left},${-a.top}`),u.start("clone");const m=new Va(i,A,g),b=m.clonedReferenceElement;if(!b)throw new Error("Unable to find element in cloned iframe");const E=yield m.toIFrame(n,a);u.end("clone"),h!=null&&h.aborted&&(((nA=e.removeContainer)==null||nA)&&Va.destroy(E),Go(h));const{width:k,height:v,left:y,top:U}=La(b)||Vy(b)?zb(b.ownerDocument):Lr(i,b),x=IF(i,b,e.backgroundColor),R=SF(e,x,y,U,k,v,(hA=r.devicePixelRatio)!=null?hA:1);let H,X;try{return f?(i.logger.debug("Document cloned, using foreign object rendering"),u.start("render-foreignobject"),H=yield new hF(i,R).render(b),u.end("render-foreignobject")):(i.logger.debug(`Document cloned, element located at ${y},${U} with size ${k}x${v} using computed rendering`),i.logger.debug("Starting DOM parsing"),u.start("parse"),Go(h),i.cache.startDefer(),X=Zp(i,b),u.end("parse"),u.start("preload"),yield i.cache.preloadAll(),u.end("preload"),x===X.styles.backgroundColor&&(X.styles.backgroundColor=ut.TRANSPARENT),i.logger.debug(`Starting renderer for element at ${R.x},${R.y} with size ${R.width}x${R.height}`),u.start("render"),Go(h),H=yield new uF(i,R).render(X),u.end("render")),u.start("cleanup"),((_A=e.removeContainer)==null||_A)&&(Va.destroy(E)||i.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.end("cleanup"),u.end("total"),i.logger.debug("Finished rendering"),c&&u.logSummary(),H}finally{X&&X.restoreTree()}}),HF=(A,e={},t)=>TF(A,e,Mb.fromElement(A,{cspNonce:e.cspNonce,cache:e.cache}));function LF(A){return I(this,null,function*(){if(!(A instanceof HTMLElement))return{blob:null,error:null};try{const e=yield HF(A,{backgroundColor:"#ffffff",logging:!1,useCORS:!0,scale:1,ignoreElements:n=>n instanceof Element&&n.hasAttribute("data-ap-sdk"),onclone:(n,r)=>{try{$i(r)}catch(s){}}}),t=yield RF(e);return t?{blob:t,error:null}:{blob:null,error:"canvas.toBlob produced no image data"}}catch(e){return console.error("[Agent Platform SDK] screenshot capture failed:",e),{blob:null,error:e instanceof Error?e.message:String(e)}}})}function RF(A){return new Promise(e=>{A.toBlob(t=>e(t),"image/png")})}const DF={click:"🖱",inputText:"⌨",scroll:"↕",keypress:"⌤"};function OF(A,e){const{needsCredentials:t,canCreateTask:n,canCreatePlanning:r,captureType:s,hasOnReselect:o,hasOnAddAnother:a}=e;return`
1655
1664
  <div class="ap-sdk-panel__header">
1656
1665
  <span class="ap-sdk-panel__title">
1657
1666
  <span class="ap-sdk-panel__logo">AP</span>
@@ -1665,7 +1674,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1665
1674
  </div>
1666
1675
  <div class="ap-sdk-pick-list" data-ap-pick-list style="display:none"></div>
1667
1676
  <div class="ap-sdk-panel__context" data-ap-context>
1668
- ${th(A)}
1677
+ ${lh(A)}
1669
1678
  </div>
1670
1679
  <div class="ap-sdk-panel__screenshot" data-ap-screenshot style="display:none"></div>
1671
1680
  <div class="ap-sdk-panel__pick-actions" data-ap-pick-actions>
@@ -1714,61 +1723,66 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1714
1723
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-submit>Submit</button>
1715
1724
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--ghost" data-ap-cancel>Cancel</button>
1716
1725
  </div>
1717
- `}function th(A){var e,t;return(e=A.interactionSteps)!=null&&e.length?`
1726
+ `}function lh(A){var e,t;return(e=A.interactionSteps)!=null&&e.length?`
1718
1727
  <div class="ap-sdk-panel__context-label">Recorded steps (${A.interactionSteps.length})</div>
1719
1728
  <div class="ap-sdk-panel__context-steps">
1720
1729
  ${A.interactionSteps.map(n=>`
1721
1730
  <div class="ap-sdk-panel__context-step">
1722
- <span class="ap-sdk-panel__context-step-icon">${Fk[n.action]}</span>
1723
- <span class="ap-sdk-panel__context-step-text">${we(n.description)}</span>
1731
+ <span class="ap-sdk-panel__context-step-icon">${DF[n.action]}</span>
1732
+ <span class="ap-sdk-panel__context-step-text">${me(n.description)}</span>
1724
1733
  </div>
1725
1734
  `).join("")}
1726
1735
  </div>
1727
1736
  `:`
1728
1737
  <div class="ap-sdk-panel__context-label">Captured element</div>
1729
- <div class="ap-sdk-panel__context-text" title="${we((t=A.elementText)!=null?t:"")}">${we(A.elementText||"(no text)")}</div>
1730
- ${A.cssSelector?`<div class="ap-sdk-panel__context-selector" title="${we(A.cssSelector)}">${we(A.cssSelector)}</div>`:""}
1731
- `}function Nt(A,e,t){if(!e){A.style.display="none",A.textContent="",A.innerHTML="";return}A.style.display="block",A.className=`ap-sdk-panel__status ap-sdk-panel__status--${e}`,A.textContent=t}function vk(A,e,t,n,r){const s=e==="task"?"Task":"Planning",o=e==="task"?"Task created successfully!":"Planning session created!",a=e==="task"?"View task →":"View planning session →",i=t.length>55?`${t.slice(0,52)}…`:t;A.style.display="block",A.className="ap-sdk-panel__status",A.innerHTML=`
1738
+ <div class="ap-sdk-panel__context-text" title="${me((t=A.elementText)!=null?t:"")}">${me(A.elementText||"(no text)")}</div>
1739
+ ${A.cssSelector?`<div class="ap-sdk-panel__context-selector" title="${me(A.cssSelector)}">${me(A.cssSelector)}</div>`:""}
1740
+ `}function Ft(A,e,t){if(!e){A.style.display="none",A.textContent="",A.innerHTML="";return}A.style.display="block",A.className=`ap-sdk-panel__status ap-sdk-panel__status--${e}`,A.textContent=t}function PF(A,e,t,n,r){const s=e==="task"?"Task":"Planning",o=e==="task"?"Task created successfully!":"Planning session created!",a=e==="task"?"View task →":"View planning session →",i=t.length>55?`${t.slice(0,52)}…`:t;A.style.display="block",A.className="ap-sdk-panel__status",A.innerHTML=`
1732
1741
  <div class="ap-sdk-success-card">
1733
1742
  <svg class="ap-sdk-success-check" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
1734
1743
  <circle class="ap-sdk-success-check__circle" cx="24" cy="24" r="22"/>
1735
1744
  <path class="ap-sdk-success-check__tick" d="M14 24l7 7 13-14"/>
1736
1745
  </svg>
1737
- <p class="ap-sdk-success-headline">${we(o)}</p>
1746
+ <p class="ap-sdk-success-headline">${me(o)}</p>
1738
1747
  <div class="ap-sdk-success-meta">
1739
- <span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--${e}">${we(s)}</span>
1740
- <span class="ap-sdk-success-title" title="${we(t)}">${we(i)}</span>
1748
+ <span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--${e}">${me(s)}</span>
1749
+ <span class="ap-sdk-success-title" title="${me(t)}">${me(i)}</span>
1741
1750
  </div>
1742
1751
  <div class="ap-sdk-success-actions">
1743
- <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-success-view>${we(a)}</button>
1752
+ <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-success-view>${me(a)}</button>
1744
1753
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--ghost" data-ap-success-close>Close</button>
1745
1754
  </div>
1746
1755
  </div>
1747
- `,A.querySelector("[data-ap-success-view]").addEventListener("click",()=>window.open(n,"_blank","noopener,noreferrer")),A.querySelector("[data-ap-success-close]").addEventListener("click",r)}function sc(A,e){A.querySelectorAll("button, input, textarea, select").forEach(t=>{t.disabled=e})}function we(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function _k(A,e){let t=null,n=null;const r=()=>{if(A.screenshotCapturing){e.style.display="block",e.className="ap-sdk-panel__screenshot",e.innerHTML='<div class="ap-sdk-screenshot__status">📸 Capturing screenshot…</div>';return}if(!A.currentScreenshotBlob){A.screenshotError?(e.style.display="block",e.className="ap-sdk-panel__screenshot",e.innerHTML=`
1756
+ `,A.querySelector("[data-ap-success-view]").addEventListener("click",()=>window.open(n,"_blank","noopener,noreferrer")),A.querySelector("[data-ap-success-close]").addEventListener("click",r)}function dc(A,e){A.querySelectorAll("button, input, textarea, select").forEach(t=>{t.disabled=e})}function me(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function MF(A,e){let t=null,n=null;const r=()=>{if(A.screenshotCapturing){e.style.display="block",e.className="ap-sdk-panel__screenshot",e.innerHTML='<div class="ap-sdk-screenshot__status">📸 Capturing screenshot…</div>';return}if(!A.currentScreenshotBlob){if(A.screenshotError){e.style.display="block",e.className="ap-sdk-panel__screenshot",e.innerHTML=`
1748
1757
  <div class="ap-sdk-screenshot__status ap-sdk-screenshot__status--muted">Screenshot unavailable for this element.</div>
1749
- <div class="ap-sdk-screenshot__error">${we(A.screenshotError)}</div>
1750
- `):(e.style.display="none",e.innerHTML="");return}t&&URL.revokeObjectURL(t),t=URL.createObjectURL(A.currentScreenshotBlob),e.style.display="block",e.className=`ap-sdk-panel__screenshot${A.screenshotIncluded?"":" ap-sdk-screenshot--excluded"}`,e.innerHTML=`
1758
+ <div class="ap-sdk-screenshot__error">${me(A.screenshotError)}</div>
1759
+ `;return}if(!A.currentPickedEl){e.style.display="none",e.innerHTML="";return}e.style.display="block",e.className="ap-sdk-panel__screenshot ap-sdk-screenshot--excluded",e.innerHTML=`
1760
+ <label class="ap-sdk-screenshot__toggle">
1761
+ <input type="checkbox" data-ap-screenshot-include />
1762
+ Attach a screenshot of the selected element
1763
+ </label>
1764
+ `,e.querySelector("[data-ap-screenshot-include]").addEventListener("change",a=>{a.target.checked&&A.currentPickedEl&&s(A.currentPickedEl)});return}t&&URL.revokeObjectURL(t),t=URL.createObjectURL(A.currentScreenshotBlob),e.style.display="block",e.className=`ap-sdk-panel__screenshot${A.screenshotIncluded?"":" ap-sdk-screenshot--excluded"}`,e.innerHTML=`
1751
1765
  <label class="ap-sdk-screenshot__toggle">
1752
1766
  <input type="checkbox" data-ap-screenshot-include ${A.screenshotIncluded?"checked":""} />
1753
1767
  Attach a screenshot of the selected element
1754
1768
  </label>
1755
1769
  <img class="ap-sdk-screenshot__thumb" src="${t}" alt="Screenshot of the selected element" />
1756
- `,e.querySelector("[data-ap-screenshot-include]").addEventListener("change",o=>{A.screenshotIncluded=o.target.checked,e.classList.toggle("ap-sdk-screenshot--excluded",!A.screenshotIncluded)})};return{captureScreenshotFor:o=>{const a=Symbol();n=a,A.screenshotCapturing=!0,A.currentScreenshotBlob=null,A.screenshotIncluded=!1,A.screenshotError=null,r(),Uk(o).then(({blob:i,error:l})=>{n===a&&(A.currentScreenshotBlob=i,A.screenshotCapturing=!1,A.screenshotError=i?null:l!=null?l:"Unknown error",i||(A.screenshotIncluded=!1),r())})},renderScreenshotUi:r,invalidateInFlightCapture:()=>{n=null},cleanup:()=>{t&&(URL.revokeObjectURL(t),t=null)}}}function xk({state:A,els:e,screenshotCtl:t,defaultCaptureType:n,updateHighlight:r,onReselect:s,onAddAnother:o}){const{contextEl:a,pickListEl:i,pickActionsEl:l,noteEl:u,addAnotherBtn:h,selectParentBtn:f,reselectBtn:g,clearSelectionsBtn:m,typeButtons:Q,allowSubmitCheckbox:U,automateOptionsEl:E,statusEl:v}=e,F=()=>{vb({captureType:A.captureType,note:u.value,completedPicks:A.completedPicks.map(({ctx:N,instruction:Z})=>({ctx:N,instruction:Z})),allowSubmit:A.allowSubmit,currentCtx:A.currentCtx})},y=N=>{N?(a.innerHTML=th(N),u.disabled=!1,u.placeholder="Describe the task or planning session…",setTimeout(()=>u.focus(),50)):(a.innerHTML=`
1770
+ `,e.querySelector("[data-ap-screenshot-include]").addEventListener("change",a=>{A.screenshotIncluded=a.target.checked,e.classList.toggle("ap-sdk-screenshot--excluded",!A.screenshotIncluded)})},s=a=>{const i=Symbol();n=i,A.screenshotCapturing=!0,A.currentScreenshotBlob=null,A.screenshotIncluded=!1,A.screenshotError=null,r(),LF(a).then(({blob:c,error:u})=>{n===i&&(A.currentScreenshotBlob=c,A.screenshotCapturing=!1,A.screenshotError=c?null:u!=null?u:"Unknown error",A.screenshotIncluded=!!c,r())})};return{handleNewPick:a=>{if(A.screenshotIncluded){s(a);return}A.currentScreenshotBlob=null,A.screenshotError=null,r()},renderScreenshotUi:r,invalidateInFlightCapture:()=>{n=null},cleanup:()=>{t&&(URL.revokeObjectURL(t),t=null)}}}function NF({state:A,els:e,screenshotCtl:t,defaultCaptureType:n,updateHighlight:r,onReselect:s,onAddAnother:o}){const{contextEl:a,pickListEl:i,pickActionsEl:c,noteEl:u,addAnotherBtn:h,selectParentBtn:f,reselectBtn:g,clearSelectionsBtn:m,typeButtons:b,allowSubmitCheckbox:E,automateOptionsEl:k,statusEl:v}=e,y=()=>{Pb({captureType:A.captureType,note:u.value,completedPicks:A.completedPicks.map(({ctx:N,instruction:W})=>({ctx:N,instruction:W})),allowSubmit:A.allowSubmit,currentCtx:A.currentCtx})},U=N=>{N?(a.innerHTML=lh(N),u.disabled=!1,u.placeholder="Describe the task or planning session…",setTimeout(()=>u.focus(),50)):(a.innerHTML=`
1757
1771
  <div class="ap-sdk-panel__context-label">Next element</div>
1758
1772
  <div class="ap-sdk-panel__context-text ap-sdk-awaiting-pick">👆 Hover and click any element on the page</div>
1759
- `,u.disabled=!0,u.placeholder="Pick an element to continue…")},x=()=>{if(A.completedPicks.length===0){i.style.display="none",i.innerHTML="";return}i.style.display="block",i.innerHTML=A.completedPicks.map((N,Z)=>{var X;return`
1760
- <div class="ap-sdk-pick-entry" data-pick-index="${Z}">
1773
+ `,u.disabled=!0,u.placeholder="Pick an element to continue…")},x=()=>{if(A.completedPicks.length===0){i.style.display="none",i.innerHTML="";return}i.style.display="block",i.innerHTML=A.completedPicks.map((N,W)=>{var K;return`
1774
+ <div class="ap-sdk-pick-entry" data-pick-index="${W}">
1761
1775
  <div class="ap-sdk-pick-entry__header">
1762
- <span class="ap-sdk-pick-entry__number">${Z+1}</span>
1763
- <span class="ap-sdk-pick-entry__element" title="${we((X=N.ctx.elementText)!=null?X:"")}">${we(N.ctx.elementText||"(no text)")}</span>
1764
- <button class="ap-sdk-pick-entry__remove" data-ap-remove="${Z}" aria-label="Remove pick ${Z+1}">×</button>
1776
+ <span class="ap-sdk-pick-entry__number">${W+1}</span>
1777
+ <span class="ap-sdk-pick-entry__element" title="${me((K=N.ctx.elementText)!=null?K:"")}">${me(N.ctx.elementText||"(no text)")}</span>
1778
+ <button class="ap-sdk-pick-entry__remove" data-ap-remove="${W}" aria-label="Remove pick ${W+1}">×</button>
1765
1779
  </div>
1766
- <div class="ap-sdk-pick-entry__instruction">${we(N.instruction)}</div>
1780
+ <div class="ap-sdk-pick-entry__instruction">${me(N.instruction)}</div>
1767
1781
  </div>
1768
- `}).join(""),i.querySelectorAll("[data-ap-remove]").forEach(N=>{N.addEventListener("click",()=>{const Z=parseInt(N.dataset.apRemove,10);A.completedPicks.splice(Z,1),x(),F()})})},R=()=>{if(!A.currentPickedEl){l.style.display="none";return}l.style.display="",f.disabled=!A.currentPickedEl.parentElement||A.awaitingPick,g&&(g.disabled=A.awaitingPick)},I=()=>{h&&(h.disabled=!u.value.trim()||A.submitting||A.awaitingPick)},K=(N,Z)=>{A.currentCtx=N,A.currentPickedEl=Z,y(N),r(Z),R(),F()};return R(),m.addEventListener("click",()=>{A.completedPicks=[],A.allowSubmit=!1,A.captureType=n,u.value="",U.checked=!1,Q.forEach(N=>N.classList.toggle("ap-sdk-active",N.dataset.apType===A.captureType)),E.style.display="none",x(),na(),Nt(v,null,""),I(),u.focus()}),f.addEventListener("click",()=>{var Z;const N=(Z=A.currentPickedEl)==null?void 0:Z.parentElement;N&&(K(wl(N),N),t.captureScreenshotFor(N))}),g&&s&&g.addEventListener("click",()=>{if(A.awaitingPick)return;const N=A.currentCtx,Z=A.currentPickedEl,X=A.currentScreenshotBlob,aA=A.screenshotIncluded,fA=A.screenshotError;A.awaitingPick=!0,R(),I(),y(null),t.invalidateInFlightCapture(),A.screenshotCapturing=!1,A.currentScreenshotBlob=null,A.screenshotError=null,t.renderScreenshotUi(),s((PA,Ce)=>{A.awaitingPick=!1,K(PA,Ce),t.captureScreenshotFor(Ce),I()},()=>{A.awaitingPick=!1,Z&&K(N,Z),A.currentScreenshotBlob=X,A.screenshotIncluded=aA,A.screenshotError=fA,t.renderScreenshotUi(),I()})}),h&&o&&(u.addEventListener("input",I),h.addEventListener("click",()=>{const N=u.value.trim();!N||A.awaitingPick||(A.completedPicks.push({ctx:A.currentCtx,instruction:N,screenshotBlob:A.screenshotIncluded?A.currentScreenshotBlob:null}),x(),u.value="",A.awaitingPick=!0,h.disabled=!0,R(),y(null),t.invalidateInFlightCapture(),A.screenshotCapturing=!1,A.currentScreenshotBlob=null,A.screenshotError=null,t.renderScreenshotUi(),F(),o((Z,X)=>{A.awaitingPick=!1,K(Z,X),t.captureScreenshotFor(X),I()}))})),{persistDraft:F,renderPickList:x}}function Sk(A,e){A.style.display="block",A.className="ap-sdk-panel__status ap-sdk-panel__status--error",A.innerHTML=`
1782
+ `}).join(""),i.querySelectorAll("[data-ap-remove]").forEach(N=>{N.addEventListener("click",()=>{const W=parseInt(N.dataset.apRemove,10);A.completedPicks.splice(W,1),x(),y()})})},R=()=>{if(!A.currentPickedEl){c.style.display="none";return}c.style.display="",f.disabled=!A.currentPickedEl.parentElement||A.awaitingPick,g&&(g.disabled=A.awaitingPick)},H=()=>{h&&(h.disabled=!u.value.trim()||A.submitting||A.awaitingPick)},X=(N,W)=>{A.currentCtx=N,A.currentPickedEl=W,U(N),r(W),R(),y()};return R(),m.addEventListener("click",()=>{A.completedPicks=[],A.allowSubmit=!1,A.captureType=n,u.value="",E.checked=!1,b.forEach(N=>N.classList.toggle("ap-sdk-active",N.dataset.apType===A.captureType)),k.style.display="none",x(),la(),Ft(v,null,""),H(),u.focus()}),f.addEventListener("click",()=>{var W;const N=(W=A.currentPickedEl)==null?void 0:W.parentElement;N&&(X(Ul(N),N),t.handleNewPick(N))}),g&&s&&g.addEventListener("click",()=>{if(A.awaitingPick)return;const N=A.currentCtx,W=A.currentPickedEl,K=A.currentScreenshotBlob,nA=A.screenshotIncluded,hA=A.screenshotError;A.awaitingPick=!0,R(),H(),U(null),t.invalidateInFlightCapture(),A.screenshotCapturing=!1,A.currentScreenshotBlob=null,A.screenshotError=null,t.renderScreenshotUi(),s((_A,jA)=>{A.awaitingPick=!1,X(_A,jA),t.handleNewPick(jA),H()},()=>{A.awaitingPick=!1,W&&X(N,W),A.currentScreenshotBlob=K,A.screenshotIncluded=nA,A.screenshotError=hA,t.renderScreenshotUi(),H()})}),h&&o&&(u.addEventListener("input",H),h.addEventListener("click",()=>{const N=u.value.trim();!N||A.awaitingPick||(A.completedPicks.push({ctx:A.currentCtx,instruction:N,screenshotBlob:A.screenshotIncluded?A.currentScreenshotBlob:null}),x(),u.value="",A.awaitingPick=!0,h.disabled=!0,R(),U(null),t.invalidateInFlightCapture(),A.screenshotCapturing=!1,A.currentScreenshotBlob=null,A.screenshotError=null,t.renderScreenshotUi(),y(),o((W,K)=>{A.awaitingPick=!1,X(W,K),t.handleNewPick(K),H()}))})),{persistDraft:y,renderPickList:x}}function KF(A,e){A.style.display="block",A.className="ap-sdk-panel__status ap-sdk-panel__status--error",A.innerHTML=`
1769
1783
  <p>Your session expired.</p>
1770
1784
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-reconnect type="button">Reconnect</button>
1771
- `;const t=A.querySelector("[data-ap-reconnect]");t.addEventListener("click",()=>T(null,null,function*(){t.disabled=!0,t.textContent="Connecting…";try{yield e()}catch(n){Nt(A,"error",n instanceof Error?n.message:"Could not reconnect — please try again.")}}))}let zt=null;function Ik(){const A=new Uint32Array(4);return crypto.getRandomValues(A),Array.from(A,e=>e.toString(16)).join("")}function oc(A){if(zt){const a=zt;a.cleanup(),a.popup.closed||a.popup.close(),zt=null}const e=A.replace(/\/+$/,""),t=new URL(e).origin,n=Ik(),r=window.location.origin,s=`${e}/oauth/authorize?origin=${encodeURIComponent(r)}&state=${encodeURIComponent(n)}`,o=window.open(s,"ap-sdk-oauth","width=480,height=640");return o?new Promise((a,i)=>{let l=!1;function u(){window.removeEventListener("message",h),clearInterval(f),(zt==null?void 0:zt.popup)===o&&(zt=null)}function h(g){if(g.origin!==t)return;const m=g.data;!m||m.type!=="ap-sdk-oauth"||m.state!==n||!m.code||(l=!0,u(),a({code:m.code}))}window.addEventListener("message",h);const f=window.setInterval(()=>{o.closed&&(u(),l||i(new Error("Connection cancelled.")))},500);zt={popup:o,cleanup:u}}):Promise.reject(new Error("Popup blocked — please allow popups for this site and try again."))}const Tk="https://agent-platform.tung.engineering",ic="ap-sdk-config";function Hk(){try{const A=sessionStorage.getItem(ic);if(!A)return null;const e=JSON.parse(A);return!(e!=null&&e.backendUrl)||!(e!=null&&e.token)||!(e!=null&&e.projectCode)||!(e!=null&&e.expiresAt)?null:new Date(e.expiresAt).getTime()<=Date.now()?(nh(),null):e}catch(A){return null}}function Ko(A){sessionStorage.setItem(ic,JSON.stringify(A)),Dk({backendUrl:A.backendUrl,projectCode:A.projectCode})}function nh(){sessionStorage.removeItem(ic)}const rh="ap-sdk-last-connection";function Lk(){try{const A=localStorage.getItem(rh);if(!A)return null;const e=JSON.parse(A);return!(e!=null&&e.backendUrl)||!(e!=null&&e.projectCode)?null:e}catch(A){return null}}function Dk(A){try{localStorage.setItem(rh,JSON.stringify(A))}catch(e){}}let rA=null,Jr=null;function yt(){rA&&nt(rA),rA==null||rA.remove(),rA=null,Jr==null||Jr(),Jr=null}function ac(A){rA&&yt(),rA=document.createElement("div"),rA.className="ap-sdk-panel",rA.setAttribute("data-ap-sdk","1"),rA.setAttribute("role","dialog"),rA.setAttribute("aria-modal","true"),rA.setAttribute("aria-label","Connect to Agent Platform");const e=Lk();e?t(e):n(Tk),document.body.appendChild(rA),tt(rA),Jr=vr(rA,kr);function t(s){if(!rA)return;rA.innerHTML=`
1785
+ `;const t=A.querySelector("[data-ap-reconnect]");t.addEventListener("click",()=>I(null,null,function*(){t.disabled=!0,t.textContent="Connecting…";try{yield e()}catch(n){Ft(A,"error",n instanceof Error?n.message:"Could not reconnect — please try again.")}}))}let Wt=null;function $F(){const A=new Uint32Array(4);return crypto.getRandomValues(A),Array.from(A,e=>e.toString(16)).join("")}function pc(A){if(Wt){const a=Wt;a.cleanup(),a.popup.closed||a.popup.close(),Wt=null}const e=A.replace(/\/+$/,""),t=new URL(e).origin,n=$F(),r=window.location.origin,s=`${e}/oauth/authorize?origin=${encodeURIComponent(r)}&state=${encodeURIComponent(n)}`,o=window.open(s,"ap-sdk-oauth","width=480,height=640");return o?new Promise((a,i)=>{let c=!1;function u(){window.removeEventListener("message",h),clearInterval(f),(Wt==null?void 0:Wt.popup)===o&&(Wt=null)}function h(g){if(g.origin!==t)return;const m=g.data;!m||m.type!=="ap-sdk-oauth"||m.state!==n||!m.code||(c=!0,u(),a({code:m.code}))}window.addEventListener("message",h);const f=window.setInterval(()=>{o.closed&&(u(),c||i(new Error("Connection cancelled.")))},500);Wt={popup:o,cleanup:u}}):Promise.reject(new Error("Popup blocked — please allow popups for this site and try again."))}const zF="https://agent-platform.tung.engineering",hc="ap-sdk-config";function VF(){try{const A=sessionStorage.getItem(hc);if(!A)return null;const e=JSON.parse(A);return!(e!=null&&e.backendUrl)||!(e!=null&&e.token)||!(e!=null&&e.projectCode)||!(e!=null&&e.expiresAt)?null:new Date(e.expiresAt).getTime()<=Date.now()?(uh(),null):e}catch(A){return null}}function Zo(A){sessionStorage.setItem(hc,JSON.stringify(A)),ZF({backendUrl:A.backendUrl,projectCode:A.projectCode})}function uh(){sessionStorage.removeItem(hc)}const dh="ap-sdk-last-connection";function GF(){try{const A=localStorage.getItem(dh);if(!A)return null;const e=JSON.parse(A);return!(e!=null&&e.backendUrl)||!(e!=null&&e.projectCode)?null:e}catch(A){return null}}function ZF(A){try{localStorage.setItem(dh,JSON.stringify(A))}catch(e){}}let sA=null,ts=null;function vt(){sA&&it(sA),sA==null||sA.remove(),sA=null,ts==null||ts(),ts=null}function fc(A){sA&&vt(),sA=document.createElement("div"),sA.className="ap-sdk-panel",sA.setAttribute("data-ap-sdk","1"),sA.setAttribute("role","dialog"),sA.setAttribute("aria-modal","true"),sA.setAttribute("aria-label","Connect to Agent Platform");const e=GF();e?t(e):n(zF),document.body.appendChild(sA),ot(sA),ts=Hr(sA,Tr);function t(s){if(!sA)return;sA.innerHTML=`
1772
1786
  <div class="ap-sdk-panel__header">
1773
1787
  <span class="ap-sdk-panel__title">
1774
1788
  <span class="ap-sdk-panel__logo">AP</span>
@@ -1778,7 +1792,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1778
1792
  </div>
1779
1793
  <div class="ap-sdk-panel__body">
1780
1794
  <p class="ap-sdk-config-hint">
1781
- Reconnect to <strong>${cc(s.backendUrl)}</strong>. You'll be asked to
1795
+ Reconnect to <strong>${gc(s.backendUrl)}</strong>. You'll be asked to
1782
1796
  approve this connection on Agent Platform's own sign-in page.
1783
1797
  </p>
1784
1798
  </div>
@@ -1787,7 +1801,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1787
1801
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-reconnect>Reconnect</button>
1788
1802
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-use-different>Use a different connection</button>
1789
1803
  </div>
1790
- `;const o=rA.querySelector("[data-ap-cfg-status]"),a=rA.querySelector("[data-ap-reconnect]");rA.querySelector("[data-ap-close]").addEventListener("click",()=>{yt()}),rA.querySelector("[data-ap-use-different]").addEventListener("click",()=>n(s.backendUrl)),a.addEventListener("click",()=>T(null,null,function*(){a.disabled=!0,a.textContent="Connecting…",$t(o,null,"");try{const{code:i}=yield oc(s.backendUrl),{token:l,expiresAt:u}=yield Aa({backendUrl:s.backendUrl},i,window.location.origin),h={backendUrl:s.backendUrl,token:l},f=yield _u(h);if(f.length===0){$t(o,"error","No projects found — check your account permissions."),a.disabled=!1,a.textContent="Reconnect";return}const g=f.find(U=>U.key===s.projectCode);if(g){yt(),A({backendUrl:s.backendUrl,token:l,projectCode:g.key,expiresAt:u});return}const m=yu(window.location.href,f),Q=m?f.find(U=>U.id===m):void 0;Q?(yt(),A({backendUrl:s.backendUrl,token:l,projectCode:Q.key,expiresAt:u})):r(s.backendUrl,l,u,f)}catch(i){$t(o,"error",`Could not connect — ${i instanceof Error?i.message:"please try again"}`),a.disabled=!1,a.textContent="Reconnect"}}))}function n(s){if(!rA)return;rA.innerHTML=`
1804
+ `;const o=sA.querySelector("[data-ap-cfg-status]"),a=sA.querySelector("[data-ap-reconnect]");sA.querySelector("[data-ap-close]").addEventListener("click",()=>{vt()}),sA.querySelector("[data-ap-use-different]").addEventListener("click",()=>n(s.backendUrl)),a.addEventListener("click",()=>I(null,null,function*(){a.disabled=!0,a.textContent="Connecting…",Jt(o,null,"");try{const{code:i}=yield pc(s.backendUrl),{token:c,expiresAt:u}=yield oa({backendUrl:s.backendUrl},i,window.location.origin),h={backendUrl:s.backendUrl,token:c},f=yield Lu(h);if(f.length===0){Jt(o,"error","No projects found — check your account permissions."),a.disabled=!1,a.textContent="Reconnect";return}const g=f.find(E=>E.key===s.projectCode);if(g){vt(),A({backendUrl:s.backendUrl,token:c,projectCode:g.key,expiresAt:u});return}const m=_u(window.location.href,f),b=m?f.find(E=>E.id===m):void 0;b?(vt(),A({backendUrl:s.backendUrl,token:c,projectCode:b.key,expiresAt:u})):r(s.backendUrl,c,u,f)}catch(i){Jt(o,"error",`Could not connect — ${i instanceof Error?i.message:"please try again"}`),a.disabled=!1,a.textContent="Reconnect"}}))}function n(s){if(!sA)return;sA.innerHTML=`
1791
1805
  <div class="ap-sdk-panel__header">
1792
1806
  <span class="ap-sdk-panel__title">
1793
1807
  <span class="ap-sdk-panel__logo">AP</span>
@@ -1800,7 +1814,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1800
1814
  <label class="ap-sdk-panel__label" for="ap-sdk-cfg-url">Backend URL</label>
1801
1815
  <input id="ap-sdk-cfg-url" class="ap-sdk-panel__input" type="url"
1802
1816
  placeholder="https://your-platform.example.com"
1803
- value="${sh(s)}" autocomplete="off" data-ap-cfg-url />
1817
+ value="${ph(s)}" autocomplete="off" data-ap-cfg-url />
1804
1818
  </div>
1805
1819
  <p class="ap-sdk-config-hint">
1806
1820
  You'll be asked to approve this connection on Agent Platform's own sign-in page.
@@ -1811,7 +1825,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1811
1825
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-connect>Connect via Agent Platform</button>
1812
1826
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-cancel>Cancel</button>
1813
1827
  </div>
1814
- `;const o=rA.querySelector("[data-ap-cfg-url]"),a=rA.querySelector("[data-ap-cfg-status]"),i=rA.querySelector("[data-ap-connect]");rA.querySelector("[data-ap-close]").addEventListener("click",()=>{yt()}),rA.querySelector("[data-ap-cancel]").addEventListener("click",()=>{yt()}),i.addEventListener("click",()=>T(null,null,function*(){const l=o.value.trim();if(!l){$t(a,"error","Backend URL is required.");return}i.disabled=!0,i.textContent="Connecting…",$t(a,null,"");try{const{code:u}=yield oc(l),{token:h,expiresAt:f}=yield Aa({backendUrl:l},u,window.location.origin),m=yield _u({backendUrl:l,token:h});if(m.length===0){$t(a,"error","No projects found — check your account permissions."),i.disabled=!1,i.textContent="Connect via Agent Platform";return}const Q=yu(window.location.href,m),U=Q?m.find(E=>E.id===Q):void 0;if(U){yt(),A({backendUrl:l,token:h,projectCode:U.key,expiresAt:f});return}r(l,h,f,m)}catch(u){$t(a,"error",`Could not connect — ${u instanceof Error?u.message:"please try again"}`),i.disabled=!1,i.textContent="Connect via Agent Platform"}})),setTimeout(()=>o.focus(),50)}function r(s,o,a,i){if(!rA)return;const l=i.map(f=>`<option value="${sh(f.key)}"${f.key===(e==null?void 0:e.projectCode)?" selected":""}>${cc(f.name)} (${cc(f.key)})</option>`).join("");rA.innerHTML=`
1828
+ `;const o=sA.querySelector("[data-ap-cfg-url]"),a=sA.querySelector("[data-ap-cfg-status]"),i=sA.querySelector("[data-ap-connect]");sA.querySelector("[data-ap-close]").addEventListener("click",()=>{vt()}),sA.querySelector("[data-ap-cancel]").addEventListener("click",()=>{vt()}),i.addEventListener("click",()=>I(null,null,function*(){const c=o.value.trim();if(!c){Jt(a,"error","Backend URL is required.");return}i.disabled=!0,i.textContent="Connecting…",Jt(a,null,"");try{const{code:u}=yield pc(c),{token:h,expiresAt:f}=yield oa({backendUrl:c},u,window.location.origin),m=yield Lu({backendUrl:c,token:h});if(m.length===0){Jt(a,"error","No projects found — check your account permissions."),i.disabled=!1,i.textContent="Connect via Agent Platform";return}const b=_u(window.location.href,m),E=b?m.find(k=>k.id===b):void 0;if(E){vt(),A({backendUrl:c,token:h,projectCode:E.key,expiresAt:f});return}r(c,h,f,m)}catch(u){Jt(a,"error",`Could not connect — ${u instanceof Error?u.message:"please try again"}`),i.disabled=!1,i.textContent="Connect via Agent Platform"}})),setTimeout(()=>o.focus(),50)}function r(s,o,a,i){if(!sA)return;const c=i.map(f=>`<option value="${ph(f.key)}"${f.key===(e==null?void 0:e.projectCode)?" selected":""}>${gc(f.name)} (${gc(f.key)})</option>`).join("");sA.innerHTML=`
1815
1829
  <div class="ap-sdk-panel__header">
1816
1830
  <span class="ap-sdk-panel__title">
1817
1831
  <span class="ap-sdk-panel__logo">AP</span>
@@ -1824,7 +1838,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1824
1838
  <label class="ap-sdk-panel__label" for="ap-sdk-cfg-project">Project</label>
1825
1839
  <select id="ap-sdk-cfg-project" class="ap-sdk-panel__input" data-ap-cfg-project>
1826
1840
  <option value="">Select a project…</option>
1827
- ${l}
1841
+ ${c}
1828
1842
  </select>
1829
1843
  </div>
1830
1844
  </div>
@@ -1833,54 +1847,54 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1833
1847
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-save>Save</button>
1834
1848
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-back>Back</button>
1835
1849
  </div>
1836
- `;const u=rA.querySelector("[data-ap-cfg-project]"),h=rA.querySelector("[data-ap-cfg-status]");rA.querySelector("[data-ap-close]").addEventListener("click",()=>{yt()}),rA.querySelector("[data-ap-back]").addEventListener("click",()=>n(s)),rA.querySelector("[data-ap-save]").addEventListener("click",()=>{const f=u.value;if(!f){$t(h,"error","Please select a project.");return}yt(),A({backendUrl:s,token:o,projectCode:f,expiresAt:a})})}}function $t(A,e,t){if(!e){A.style.display="none",A.textContent="";return}A.style.display="block",A.className=`ap-sdk-panel__status ap-sdk-panel__status--${e}`,A.textContent=t}function sh(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function cc(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const lc="ap-sdk-active-automation";function Rk(){try{const A=sessionStorage.getItem(lc);if(!A)return null;const e=JSON.parse(A);return e!=null&&e.taskId&&(e!=null&&e.backendUrl)&&(e!=null&&e.title)?e:null}catch(A){return null}}function oh(A){try{sessionStorage.setItem(lc,JSON.stringify(A))}catch(e){}}function ih(){try{sessionStorage.removeItem(lc)}catch(A){}}function uc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var pn=uc();function ah(A){pn=A}var hn={exec:()=>null};function Ar(A){let e=[];return t=>{let n=Math.max(0,Math.min(3,t-1)),r=e[n];return r||(r=A(n),e[n]=r),r}}function tA(A,e=""){let t=typeof A=="string"?A:A.source,n={replace:(r,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(ne.caret,"$1"),t=t.replace(r,o),n},getRegex:()=>new RegExp(t,e)};return n}var Ok=((A="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+A)}catch(e){return!1}})(),ne={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:A=>new RegExp(`^( {0,3}${A})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ar(A=>new RegExp(`^ {0,${A}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ar(A=>new RegExp(`^ {0,${A}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ar(A=>new RegExp(`^ {0,${A}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ar(A=>new RegExp(`^ {0,${A}}#`)),htmlBeginRegex:Ar(A=>new RegExp(`^ {0,${A}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ar(A=>new RegExp(`^ {0,${A}}>`))},Mk=/^(?:[ \t]*(?:\n|$))+/,Pk=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Kk=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,jr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Nk=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,dc=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ch=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,lh=tA(ch).replace(/bull/g,dc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),zk=tA(ch).replace(/bull/g,dc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),pc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,$k=/^[^\n]+/,hc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Gk=tA(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",hc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Vk=tA(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,dc).getRegex(),No="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",fc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Zk=tA("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",fc).replace("tag",No).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),uh=A=>tA(pc).replace("hr",jr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",A).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",No).getRegex(),Xk=uh(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Wk=uh(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Jk=tA(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Wk).getRegex(),gc={blockquote:Jk,code:Pk,def:Gk,fences:Kk,heading:Nk,hr:jr,html:Zk,lheading:lh,list:Vk,newline:Mk,paragraph:Xk,table:hn,text:$k},dh=tA("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",jr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",No).getRegex(),jk=$(k({},gc),{lheading:zk,table:dh,paragraph:tA(pc).replace("hr",jr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",dh).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",No).getRegex()}),Yk=$(k({},gc),{html:tA(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",fc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:hn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tA(pc).replace("hr",jr).replace("heading",` *#{1,6} *[^
1837
- ]`).replace("lheading",lh).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),qk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Av=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ph=/^( {2,}|\\)\n(?!\s*$)/,ev=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ut=/[\p{P}\p{S}]/u,er=/[\s\p{P}\p{S}]/u,Yr=/[^\s\p{P}\p{S}]/u,tv=tA(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,er).getRegex(),nv=/[\p{Pi}\p{Ps}"']/u,hh=/(?!~)[\p{P}\p{S}]/u,rv=/(?!~)[\s\p{P}\p{S}]/u,sv=/(?:[^\s\p{P}\p{S}]|~)/u,ov=tA(/link|precode-code|html/,"g").replace("link",new RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("precode-",Ok?"(?<!`)()":"(^^|[^`])").replace("code",new RegExp("(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),fh=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,iv=tA(fh,"u").replace(/punct/g,Ut).getRegex(),av=tA(fh,"u").replace(/punct/g,hh).getRegex(),cv=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,lv=tA(cv,"u").replace(/openQuote/g,nv).replace(/punct/g,Ut).getRegex(),gh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",uv=tA(gh,"gu").replace(/notPunctSpace/g,Yr).replace(/punctSpace/g,er).replace(/punct/g,Ut).getRegex(),dv=tA(gh,"gu").replace(/notPunctSpace/g,sv).replace(/punctSpace/g,rv).replace(/punct/g,hh).getRegex(),pv="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",hv=tA(pv,"gu").replace(/notPunctSpace/g,Yr).replace(/punctSpace/g,er).replace(/punct/g,Ut).getRegex(),fv=tA("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Yr).replace(/punctSpace/g,er).replace(/punct/g,Ut).getRegex(),gv="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Bv=tA(gv,"gu").replace(/notPunctSpace/g,Yr).replace(/punctSpace/g,er).replace(/punct/g,Ut).getRegex(),wv=tA(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ut).getRegex(),mv="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Cv=tA(mv,"gu").replace(/notPunctSpace/g,Yr).replace(/punctSpace/g,er).replace(/punct/g,Ut).getRegex(),bv=tA(/\\(punct)/,"gu").replace(/punct/g,Ut).getRegex(),Qv=tA(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),yv=tA(fc).replace("(?:-->|$)","-->").getRegex(),Uv=tA("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",yv).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),zo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Ev=tA(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",zo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Bh=tA(/^!?\[(label)\]\[(ref)\]/).replace("label",zo).replace("ref",hc).getRegex(),wh=tA(/^!?\[(ref)\](?:\[\])?/).replace("ref",hc).getRegex(),Fv=tA("reflink|nolink(?!\\()","g").replace("reflink",Bh).replace("nolink",wh).getRegex(),mh=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Bc={_backpedal:hn,anyPunctuation:bv,autolink:Qv,blockSkip:ov,br:ph,code:Av,del:hn,delLDelim:hn,delRDelim:hn,emStrongLDelim:iv,emStrongRDelimAst:uv,emStrongRDelimUnd:fv,escape:qk,link:Ev,nolink:wh,punctuation:tv,reflink:Bh,reflinkSearch:Fv,tag:Uv,text:ev,url:hn},kv=$(k({},Bc),{emStrongLDelim:lv,emStrongRDelimAst:hv,emStrongRDelimUnd:Bv,link:tA(/^!?\[(label)\]\((.*?)\)/).replace("label",zo).getRegex(),reflink:tA(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",zo).getRegex()}),wc=$(k({},Bc),{emStrongRDelimAst:dv,emStrongLDelim:av,delLDelim:wv,delRDelim:Cv,url:tA(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",mh).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:tA(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",mh).getRegex()}),vv=$(k({},wc),{br:tA(ph).replace("{2,}","*").getRegex(),text:tA(wc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),$o={normal:gc,gfm:jk,pedantic:Yk},qr={normal:Bc,gfm:wc,breaks:vv,pedantic:kv},_v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ch=A=>_v[A];function ct(A,e){if(e){if(ne.escapeTest.test(A))return A.replace(ne.escapeReplace,Ch)}else if(ne.escapeTestNoEncode.test(A))return A.replace(ne.escapeReplaceNoEncode,Ch);return A}function bh(A){try{A=encodeURI(A).replace(ne.percentDecode,"%")}catch(e){return null}return A}function Qh(A,e){var s;let t=A.replace(ne.findPipe,(o,a,i)=>{let l=!1,u=a;for(;--u>=0&&i[u]==="\\";)l=!l;return l?"|":" |"}),n=t.split(ne.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!((s=n.at(-1))!=null&&s.trim())&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(ne.slashPipe,"|");return n}function Gt(A,e,t){let n=A.length;if(n===0)return"";let r=0;for(;r<n&&A.charAt(n-r-1)===e;)r++;return A.slice(0,n-r)}function yh(A){let e=A.split(`
1838
- `),t=e.length-1;for(;t>=0&&ne.blankLine.test(e[t]);)t--;return e.length-t<=2?A:e.slice(0,t+1).join(`
1839
- `)}function xv(A,e){if(A.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<A.length;n++)if(A[n]==="\\")n++;else if(A[n]===e[0])t++;else if(A[n]===e[1]&&(t--,t<0))return n;return t>0?-2:-1}function Sv(A,e=0){let t=e,n="";for(let r of A)if(r===" "){let s=4-t%4;n+=" ".repeat(s),t+=s}else n+=r,t++;return n}function Uh(A,e,t,n,r){let s=e.href,o=e.title||null,a=A[1].replace(r.other.outputLinkReplace,"$1");n.state.inLink=!0;let i={type:A[0].charAt(0)==="!"?"image":"link",raw:t,href:s,title:o,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,i}function Iv(A,e,t){let n=A.match(t.other.indentCodeCompensation);if(n===null)return e;let r=n[1];return e.split(`
1850
+ `;const u=sA.querySelector("[data-ap-cfg-project]"),h=sA.querySelector("[data-ap-cfg-status]");sA.querySelector("[data-ap-close]").addEventListener("click",()=>{vt()}),sA.querySelector("[data-ap-back]").addEventListener("click",()=>n(s)),sA.querySelector("[data-ap-save]").addEventListener("click",()=>{const f=u.value;if(!f){Jt(h,"error","Please select a project.");return}vt(),A({backendUrl:s,token:o,projectCode:f,expiresAt:a})})}}function Jt(A,e,t){if(!e){A.style.display="none",A.textContent="";return}A.style.display="block",A.className=`ap-sdk-panel__status ap-sdk-panel__status--${e}`,A.textContent=t}function ph(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function gc(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const Bc="ap-sdk-active-automation";function XF(){try{const A=sessionStorage.getItem(Bc);if(!A)return null;const e=JSON.parse(A);return e!=null&&e.taskId&&(e!=null&&e.backendUrl)&&(e!=null&&e.title)?e:null}catch(A){return null}}function hh(A){try{sessionStorage.setItem(Bc,JSON.stringify(A))}catch(e){}}function fh(){try{sessionStorage.removeItem(Bc)}catch(A){}}function wc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var wn=wc();function gh(A){wn=A}var mn={exec:()=>null};function rr(A){let e=[];return t=>{let n=Math.max(0,Math.min(3,t-1)),r=e[n];return r||(r=A(n),e[n]=r),r}}function tA(A,e=""){let t=typeof A=="string"?A:A.source,n={replace:(r,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(se.caret,"$1"),t=t.replace(r,o),n},getRegex:()=>new RegExp(t,e)};return n}var WF=((A="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+A)}catch(e){return!1}})(),se={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:A=>new RegExp(`^( {0,3}${A})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:rr(A=>new RegExp(`^ {0,${A}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:rr(A=>new RegExp(`^ {0,${A}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:rr(A=>new RegExp(`^ {0,${A}}(?:\`\`\`|~~~)`)),headingBeginRegex:rr(A=>new RegExp(`^ {0,${A}}#`)),htmlBeginRegex:rr(A=>new RegExp(`^ {0,${A}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:rr(A=>new RegExp(`^ {0,${A}}>`))},JF=/^(?:[ \t]*(?:\n|$))+/,jF=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,YF=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ns=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,qF=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,mc=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Bh=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wh=tA(Bh).replace(/bull/g,mc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Av=tA(Bh).replace(/bull/g,mc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Cc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,ev=/^[^\n]+/,bc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,tv=tA(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",bc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),nv=tA(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,mc).getRegex(),Xo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Qc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,rv=tA("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Qc).replace("tag",Xo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),mh=A=>tA(Cc).replace("hr",ns).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",A).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xo).getRegex(),sv=mh(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),ov=mh(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),iv=tA(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ov).getRegex(),yc={blockquote:iv,code:jF,def:tv,fences:YF,heading:qF,hr:ns,html:rv,lheading:wh,list:nv,newline:JF,paragraph:sv,table:mn,text:ev},Ch=tA("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ns).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xo).getRegex(),av=z(F({},yc),{lheading:Av,table:Ch,paragraph:tA(Cc).replace("hr",ns).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ch).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xo).getRegex()}),cv=z(F({},yc),{html:tA(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Qc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:mn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tA(Cc).replace("hr",ns).replace("heading",` *#{1,6} *[^
1851
+ ]`).replace("lheading",wh).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),lv=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,uv=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,bh=/^( {2,}|\\)\n(?!\s*$)/,dv=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_t=/[\p{P}\p{S}]/u,sr=/[\s\p{P}\p{S}]/u,rs=/[^\s\p{P}\p{S}]/u,pv=tA(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,sr).getRegex(),hv=/[\p{Pi}\p{Ps}"']/u,Qh=/(?!~)[\p{P}\p{S}]/u,fv=/(?!~)[\s\p{P}\p{S}]/u,gv=/(?:[^\s\p{P}\p{S}]|~)/u,Bv=tA(/link|precode-code|html/,"g").replace("link",new RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("precode-",WF?"(?<!`)()":"(^^|[^`])").replace("code",new RegExp("(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),yh=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,wv=tA(yh,"u").replace(/punct/g,_t).getRegex(),mv=tA(yh,"u").replace(/punct/g,Qh).getRegex(),Cv=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,bv=tA(Cv,"u").replace(/openQuote/g,hv).replace(/punct/g,_t).getRegex(),Uh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Qv=tA(Uh,"gu").replace(/notPunctSpace/g,rs).replace(/punctSpace/g,sr).replace(/punct/g,_t).getRegex(),yv=tA(Uh,"gu").replace(/notPunctSpace/g,gv).replace(/punctSpace/g,fv).replace(/punct/g,Qh).getRegex(),Uv="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Ev=tA(Uv,"gu").replace(/notPunctSpace/g,rs).replace(/punctSpace/g,sr).replace(/punct/g,_t).getRegex(),kv=tA("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,rs).replace(/punctSpace/g,sr).replace(/punct/g,_t).getRegex(),Fv="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",vv=tA(Fv,"gu").replace(/notPunctSpace/g,rs).replace(/punctSpace/g,sr).replace(/punct/g,_t).getRegex(),_v=tA(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,_t).getRegex(),xv="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Sv=tA(xv,"gu").replace(/notPunctSpace/g,rs).replace(/punctSpace/g,sr).replace(/punct/g,_t).getRegex(),Iv=tA(/\\(punct)/,"gu").replace(/punct/g,_t).getRegex(),Tv=tA(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Hv=tA(Qc).replace("(?:-->|$)","-->").getRegex(),Lv=tA("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Hv).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Wo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Rv=tA(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Wo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Eh=tA(/^!?\[(label)\]\[(ref)\]/).replace("label",Wo).replace("ref",bc).getRegex(),kh=tA(/^!?\[(ref)\](?:\[\])?/).replace("ref",bc).getRegex(),Dv=tA("reflink|nolink(?!\\()","g").replace("reflink",Eh).replace("nolink",kh).getRegex(),Fh=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Uc={_backpedal:mn,anyPunctuation:Iv,autolink:Tv,blockSkip:Bv,br:bh,code:uv,del:mn,delLDelim:mn,delRDelim:mn,emStrongLDelim:wv,emStrongRDelimAst:Qv,emStrongRDelimUnd:kv,escape:lv,link:Rv,nolink:kh,punctuation:pv,reflink:Eh,reflinkSearch:Dv,tag:Lv,text:dv,url:mn},Ov=z(F({},Uc),{emStrongLDelim:bv,emStrongRDelimAst:Ev,emStrongRDelimUnd:vv,link:tA(/^!?\[(label)\]\((.*?)\)/).replace("label",Wo).getRegex(),reflink:tA(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Wo).getRegex()}),Ec=z(F({},Uc),{emStrongRDelimAst:yv,emStrongLDelim:mv,delLDelim:_v,delRDelim:Sv,url:tA(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Fh).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:tA(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Fh).getRegex()}),Pv=z(F({},Ec),{br:tA(bh).replace("{2,}","*").getRegex(),text:tA(Ec.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),Jo={normal:yc,gfm:av,pedantic:cv},ss={normal:Uc,gfm:Ec,breaks:Pv,pedantic:Ov},Mv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vh=A=>Mv[A];function pt(A,e){if(e){if(se.escapeTest.test(A))return A.replace(se.escapeReplace,vh)}else if(se.escapeTestNoEncode.test(A))return A.replace(se.escapeReplaceNoEncode,vh);return A}function _h(A){try{A=encodeURI(A).replace(se.percentDecode,"%")}catch(e){return null}return A}function xh(A,e){var s;let t=A.replace(se.findPipe,(o,a,i)=>{let c=!1,u=a;for(;--u>=0&&i[u]==="\\";)c=!c;return c?"|":" |"}),n=t.split(se.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!((s=n.at(-1))!=null&&s.trim())&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(se.slashPipe,"|");return n}function jt(A,e,t){let n=A.length;if(n===0)return"";let r=0;for(;r<n&&A.charAt(n-r-1)===e;)r++;return A.slice(0,n-r)}function Sh(A){let e=A.split(`
1852
+ `),t=e.length-1;for(;t>=0&&se.blankLine.test(e[t]);)t--;return e.length-t<=2?A:e.slice(0,t+1).join(`
1853
+ `)}function Nv(A,e){if(A.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<A.length;n++)if(A[n]==="\\")n++;else if(A[n]===e[0])t++;else if(A[n]===e[1]&&(t--,t<0))return n;return t>0?-2:-1}function Kv(A,e=0){let t=e,n="";for(let r of A)if(r===" "){let s=4-t%4;n+=" ".repeat(s),t+=s}else n+=r,t++;return n}function Ih(A,e,t,n,r){let s=e.href,o=e.title||null,a=A[1].replace(r.other.outputLinkReplace,"$1");n.state.inLink=!0;let i={type:A[0].charAt(0)==="!"?"image":"link",raw:t,href:s,title:o,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,i}function $v(A,e,t){let n=A.match(t.other.indentCodeCompensation);if(n===null)return e;let r=n[1];return e.split(`
1840
1854
  `).map(s=>{let o=s.match(t.other.beginningSpace);if(o===null)return s;let[a]=o;return a.length>=r.length?s.slice(r.length):s}).join(`
1841
- `)}var Go=class{constructor(A){hA(this,"options");hA(this,"rules");hA(this,"lexer");this.options=A||pn}space(A){let e=this.rules.block.newline.exec(A);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(A){let e=this.rules.block.code.exec(A);if(e){let t=this.options.pedantic?e[0]:yh(e[0]),n=t.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t,codeBlockStyle:"indented",text:n}}}fences(A){let e=this.rules.block.fences.exec(A);if(e){let t=e[0],n=Iv(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(A){let e=this.rules.block.heading.exec(A);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let n=Gt(t,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(t=n.trim())}return{type:"heading",raw:Gt(e[0],`
1842
- `),depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(A){let e=this.rules.block.hr.exec(A);if(e)return{type:"hr",raw:Gt(e[0],`
1843
- `)}}blockquote(A){let e=this.rules.block.blockquote.exec(A);if(e){let t=Gt(e[0],`
1855
+ `)}var jo=class{constructor(A){gA(this,"options");gA(this,"rules");gA(this,"lexer");this.options=A||wn}space(A){let e=this.rules.block.newline.exec(A);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(A){let e=this.rules.block.code.exec(A);if(e){let t=this.options.pedantic?e[0]:Sh(e[0]),n=t.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t,codeBlockStyle:"indented",text:n}}}fences(A){let e=this.rules.block.fences.exec(A);if(e){let t=e[0],n=$v(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(A){let e=this.rules.block.heading.exec(A);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let n=jt(t,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(t=n.trim())}return{type:"heading",raw:jt(e[0],`
1856
+ `),depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(A){let e=this.rules.block.hr.exec(A);if(e)return{type:"hr",raw:jt(e[0],`
1857
+ `)}}blockquote(A){let e=this.rules.block.blockquote.exec(A);if(e){let t=jt(e[0],`
1844
1858
  `).split(`
1845
- `),n="",r="",s=[];for(;t.length>0;){let o=!1,a=[],i;for(i=0;i<t.length;i++)if(this.rules.other.blockquoteStart.test(t[i]))a.push(t[i]),o=!0;else if(!o)a.push(t[i]);else break;t=t.slice(i);let l=a.join(`
1846
- `),u=l.replace(this.rules.other.blockquoteSetextReplace,`
1859
+ `),n="",r="",s=[];for(;t.length>0;){let o=!1,a=[],i;for(i=0;i<t.length;i++)if(this.rules.other.blockquoteStart.test(t[i]))a.push(t[i]),o=!0;else if(!o)a.push(t[i]);else break;t=t.slice(i);let c=a.join(`
1860
+ `),u=c.replace(this.rules.other.blockquoteSetextReplace,`
1847
1861
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
1848
- ${l}`:l,r=r?`${r}
1862
+ ${c}`:c,r=r?`${r}
1849
1863
  ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,s,!0),this.lexer.state.top=h,t.length===0)break;let f=s.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){let g=f,m=t.join(`
1850
- `),Q=g.raw+`
1851
- `+m.replace(this.rules.other.blockquoteSetextReplace2,""),U=this.blockquote(Q);s[s.length-1]=U,n=`${n}
1852
- ${m}`,r=r.substring(0,r.length-g.text.length)+U.text;break}else if((f==null?void 0:f.type)==="list"){let g=f,m=g.raw+`
1864
+ `),b=g.raw+`
1865
+ `+m.replace(this.rules.other.blockquoteSetextReplace2,""),E=this.blockquote(b);s[s.length-1]=E,n=`${n}
1866
+ ${m}`,r=r.substring(0,r.length-g.text.length)+E.text;break}else if((f==null?void 0:f.type)==="list"){let g=f,m=g.raw+`
1853
1867
  `+t.join(`
1854
- `),Q=this.list(m);s[s.length-1]=Q,n=n.substring(0,n.length-f.raw.length)+Q.raw,r=r.substring(0,r.length-g.raw.length)+Q.raw,t=m.substring(s.at(-1).raw.length).split(`
1855
- `);continue}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(A){let e=this.rules.block.list.exec(A);if(e){let t=e[1].trim(),n=t.length>1,r={type:"list",raw:"",ordered:n,start:n?+t.slice(0,-1):"",loose:!1,items:[]};t=n?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=n?t:"[*+-]");let s=this.rules.other.listItemRegex(t),o=!1;for(;A;){let i=!1,l="",u="";if(!(e=s.exec(A))||this.rules.block.hr.test(A))break;l=e[0],A=A.substring(l.length);let h=Sv(e[2].split(`
1868
+ `),b=this.list(m);s[s.length-1]=b,n=n.substring(0,n.length-f.raw.length)+b.raw,r=r.substring(0,r.length-g.raw.length)+b.raw,t=m.substring(s.at(-1).raw.length).split(`
1869
+ `);continue}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(A){let e=this.rules.block.list.exec(A);if(e){let t=e[1].trim(),n=t.length>1,r={type:"list",raw:"",ordered:n,start:n?+t.slice(0,-1):"",loose:!1,items:[]};t=n?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=n?t:"[*+-]");let s=this.rules.other.listItemRegex(t),o=!1;for(;A;){let i=!1,c="",u="";if(!(e=s.exec(A))||this.rules.block.hr.test(A))break;c=e[0],A=A.substring(c.length);let h=Kv(e[2].split(`
1856
1870
  `,1)[0],e[1].length),f=A.split(`
1857
- `,1)[0],g=!h.trim(),m=0;if(this.options.pedantic?(m=2,u=h.trimStart()):g?m=e[1].length+1:(m=h.search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=h.slice(m),m+=e[1].length),g&&this.rules.other.blankLine.test(f)&&(l+=f+`
1858
- `,A=A.substring(f.length+1),i=!0),!i){let Q=this.rules.other.nextBulletRegex(m),U=this.rules.other.hrRegex(m),E=this.rules.other.fencesBeginRegex(m),v=this.rules.other.headingBeginRegex(m),F=this.rules.other.htmlBeginRegex(m),y=this.rules.other.blockquoteBeginRegex(m);for(;A;){let x=A.split(`
1859
- `,1)[0],R;if(f=x,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),R=f):R=f.replace(this.rules.other.tabCharGlobal," "),E.test(f)||v.test(f)||F.test(f)||y.test(f)||Q.test(f)||U.test(f))break;if(R.search(this.rules.other.nonSpaceChar)>=m||!f.trim())u+=`
1860
- `+R.slice(m);else{if(g||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||E.test(h)||v.test(h)||U.test(h))break;u+=`
1861
- `+f}g=!f.trim(),l+=x+`
1862
- `,A=A.substring(x.length+1),h=R.slice(m)}}r.loose||(o?r.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(o=!0)),r.items.push({type:"list_item",raw:l,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),r.raw+=l}let a=r.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let i of r.items){this.lexer.state.top=!1,i.tokens=this.lexer.blockTokens(i.text,[]);let l=i.tokens[0];if(i.task&&((l==null?void 0:l.type)==="text"||(l==null?void 0:l.type)==="paragraph")){i.text=i.text.replace(this.rules.other.listReplaceTask,""),l.raw=l.raw.replace(this.rules.other.listReplaceTask,""),l.text=l.text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}let u=this.rules.other.listTaskCheckbox.exec(i.raw);if(u){let h={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};i.checked=h.checked,r.loose?i.tokens[0]&&["paragraph","text"].includes(i.tokens[0].type)&&"tokens"in i.tokens[0]&&i.tokens[0].tokens?(i.tokens[0].raw=h.raw+i.tokens[0].raw,i.tokens[0].text=h.raw+i.tokens[0].text,i.tokens[0].tokens.unshift(h)):i.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):i.tokens.unshift(h)}}else i.task&&(i.task=!1);if(!r.loose){let u=i.tokens.filter(f=>f.type==="space"),h=u.length>0&&u.some(f=>this.rules.other.anyLine.test(f.raw));r.loose=h}}if(r.loose)for(let i of r.items){i.loose=!0;for(let l of i.tokens)l.type==="text"&&(l.type="paragraph")}return r}}html(A){let e=this.rules.block.html.exec(A);if(e){let t=yh(e[0]);return{type:"html",block:!0,raw:t,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:t}}}def(A){let e=this.rules.block.def.exec(A);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:Gt(e[0],`
1863
- `),href:n,title:r}}}table(A){var o;let e=this.rules.block.table.exec(A);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let t=Qh(e[1]),n=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=(o=e[3])!=null&&o.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
1864
- `):[],s={type:"table",raw:Gt(e[0],`
1865
- `),header:[],align:[],rows:[]};if(t.length===n.length){for(let a of n)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<t.length;a++)s.header.push({text:t[a],tokens:this.lexer.inline(t[a]),header:!0,align:s.align[a]});for(let a of r)s.rows.push(Qh(a,s.header.length).map((i,l)=>({text:i,tokens:this.lexer.inline(i),header:!1,align:s.align[l]})));return s}}lheading(A){let e=this.rules.block.lheading.exec(A);if(e){let t=e[1].trim();return{type:"heading",raw:Gt(e[0],`
1871
+ `,1)[0],g=!h.trim(),m=0;if(this.options.pedantic?(m=2,u=h.trimStart()):g?m=e[1].length+1:(m=h.search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=h.slice(m),m+=e[1].length),g&&this.rules.other.blankLine.test(f)&&(c+=f+`
1872
+ `,A=A.substring(f.length+1),i=!0),!i){let b=this.rules.other.nextBulletRegex(m),E=this.rules.other.hrRegex(m),k=this.rules.other.fencesBeginRegex(m),v=this.rules.other.headingBeginRegex(m),y=this.rules.other.htmlBeginRegex(m),U=this.rules.other.blockquoteBeginRegex(m);for(;A;){let x=A.split(`
1873
+ `,1)[0],R;if(f=x,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),R=f):R=f.replace(this.rules.other.tabCharGlobal," "),k.test(f)||v.test(f)||y.test(f)||U.test(f)||b.test(f)||E.test(f))break;if(R.search(this.rules.other.nonSpaceChar)>=m||!f.trim())u+=`
1874
+ `+R.slice(m);else{if(g||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(h)||v.test(h)||E.test(h))break;u+=`
1875
+ `+f}g=!f.trim(),c+=x+`
1876
+ `,A=A.substring(x.length+1),h=R.slice(m)}}r.loose||(o?r.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(o=!0)),r.items.push({type:"list_item",raw:c,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),r.raw+=c}let a=r.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let i of r.items){this.lexer.state.top=!1,i.tokens=this.lexer.blockTokens(i.text,[]);let c=i.tokens[0];if(i.task&&((c==null?void 0:c.type)==="text"||(c==null?void 0:c.type)==="paragraph")){i.text=i.text.replace(this.rules.other.listReplaceTask,""),c.raw=c.raw.replace(this.rules.other.listReplaceTask,""),c.text=c.text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}let u=this.rules.other.listTaskCheckbox.exec(i.raw);if(u){let h={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};i.checked=h.checked,r.loose?i.tokens[0]&&["paragraph","text"].includes(i.tokens[0].type)&&"tokens"in i.tokens[0]&&i.tokens[0].tokens?(i.tokens[0].raw=h.raw+i.tokens[0].raw,i.tokens[0].text=h.raw+i.tokens[0].text,i.tokens[0].tokens.unshift(h)):i.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):i.tokens.unshift(h)}}else i.task&&(i.task=!1);if(!r.loose){let u=i.tokens.filter(f=>f.type==="space"),h=u.length>0&&u.some(f=>this.rules.other.anyLine.test(f.raw));r.loose=h}}if(r.loose)for(let i of r.items){i.loose=!0;for(let c of i.tokens)c.type==="text"&&(c.type="paragraph")}return r}}html(A){let e=this.rules.block.html.exec(A);if(e){let t=Sh(e[0]);return{type:"html",block:!0,raw:t,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:t}}}def(A){let e=this.rules.block.def.exec(A);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:jt(e[0],`
1877
+ `),href:n,title:r}}}table(A){var o;let e=this.rules.block.table.exec(A);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let t=xh(e[1]),n=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=(o=e[3])!=null&&o.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
1878
+ `):[],s={type:"table",raw:jt(e[0],`
1879
+ `),header:[],align:[],rows:[]};if(t.length===n.length){for(let a of n)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<t.length;a++)s.header.push({text:t[a],tokens:this.lexer.inline(t[a]),header:!0,align:s.align[a]});for(let a of r)s.rows.push(xh(a,s.header.length).map((i,c)=>({text:i,tokens:this.lexer.inline(i),header:!1,align:s.align[c]})));return s}}lheading(A){let e=this.rules.block.lheading.exec(A);if(e){let t=e[1].trim();return{type:"heading",raw:jt(e[0],`
1866
1880
  `),depth:e[2].charAt(0)==="="?1:2,text:t,tokens:this.lexer.inline(t)}}}paragraph(A){let e=this.rules.block.paragraph.exec(A);if(e){let t=e[1].charAt(e[1].length-1)===`
1867
- `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(A){let e=this.rules.block.text.exec(A);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(A){let e=this.rules.inline.escape.exec(A);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(A){let e=this.rules.inline.tag.exec(A);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(A){let e=this.rules.inline.link.exec(A);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let s=Gt(t.slice(0,-1),"\\");if((t.length-s.length)%2===0)return}else{let s=xv(e[2],"()");if(s===-2)return;if(s>-1){let o=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,o).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],r=s[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n=n.slice(1):n=n.slice(1,-1)),Uh(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(A,e){let t;if((t=this.rules.inline.reflink.exec(A))||(t=this.rules.inline.nolink.exec(A))){let n=(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[n.toLowerCase()];if(!r){let s=t[0].charAt(0);return{type:"text",raw:s,text:s}}return Uh(t,r,t[0],this.lexer,this.rules)}}emStrong(A,e,t=""){let n=this.rules.inline.emStrongLDelim.exec(A);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!t||this.rules.inline.punctuation.exec(t))){let r=[...n[0]].length-1,s,o,a=r,i=0,l=n[0][0],u=t===l,h=l==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*A.length+r);(n=h.exec(e))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(o=[...s].length,n[3]||n[4]){a+=o;continue}else if(n[5]||n[6]){if(r%3&&!((r+o)%3)){i+=o;continue}if(u)break}if(a-=o,a>0)continue;o=Math.min(o,o+a+i);let f=[...n[0]][0].length,g=A.slice(0,r+n.index+f+o);if(Math.min(r,o)%2){let Q=g.slice(1,-1);return{type:"em",raw:g,text:Q,tokens:this.lexer.inlineTokens(Q)}}let m=g.slice(2,-2);return{type:"strong",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(A){let e=this.rules.inline.code.exec(A);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(A){let e=this.rules.inline.br.exec(A);if(e)return{type:"br",raw:e[0]}}del(A,e,t=""){let n=this.rules.inline.delLDelim.exec(A);if(n&&(!n[1]||!t||this.rules.inline.punctuation.exec(t))){let r=[...n[0]].length-1,s,o,a=r,i=this.rules.inline.delRDelim;for(i.lastIndex=0,e=e.slice(-1*A.length+r);(n=i.exec(e))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s||(o=[...s].length,o!==r))continue;if(n[3]||n[4]){a+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a);let l=[...n[0]][0].length,u=A.slice(0,r+n.index+l+o),h=u.slice(r,-r);return{type:"del",raw:u,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(A){let e=this.rules.inline.autolink.exec(A);if(e){let t,n;return e[2]==="@"?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(A){var t,n;let e;if(e=this.rules.inline.url.exec(A)){let r,s;if(e[2]==="@")r=e[0],s="mailto:"+r;else{let o;do o=e[0],e[0]=(n=(t=this.rules.inline._backpedal.exec(e[0]))==null?void 0:t[0])!=null?n:"";while(o!==e[0]);r=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(A){let e=this.rules.inline.text.exec(A);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},$e=class tl{constructor(e){hA(this,"tokens");hA(this,"options");hA(this,"state");hA(this,"inlineQueue");hA(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||pn,this.options.tokenizer=this.options.tokenizer||new Go,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:ne,block:$o.normal,inline:qr.normal};this.options.pedantic?(t.block=$o.pedantic,t.inline=qr.pedantic):this.options.gfm&&(t.block=$o.gfm,this.options.breaks?t.inline=qr.breaks:t.inline=qr.gfm),this.tokenizer.rules=t}static get rules(){return{block:$o,inline:qr}}static lex(e,t){return new tl(t).lex(e)}static lexInline(e,t){return new tl(t).inlineTokens(e)}lex(e){e=e.replace(ne.carriageReturn,`
1868
- `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var s,o,a;this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(ne.tabCharGlobal," ").replace(ne.spaceLine,""));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if((o=(s=this.options.extensions)==null?void 0:s.block)!=null&&o.some(u=>(i=u.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let u=t.at(-1);i.raw.length===1&&u!==void 0?u.raw+=`
1881
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(A){let e=this.rules.block.text.exec(A);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(A){let e=this.rules.inline.escape.exec(A);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(A){let e=this.rules.inline.tag.exec(A);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(A){let e=this.rules.inline.link.exec(A);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let s=jt(t.slice(0,-1),"\\");if((t.length-s.length)%2===0)return}else{let s=Nv(e[2],"()");if(s===-2)return;if(s>-1){let o=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,o).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],r=s[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n=n.slice(1):n=n.slice(1,-1)),Ih(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(A,e){let t;if((t=this.rules.inline.reflink.exec(A))||(t=this.rules.inline.nolink.exec(A))){let n=(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[n.toLowerCase()];if(!r){let s=t[0].charAt(0);return{type:"text",raw:s,text:s}}return Ih(t,r,t[0],this.lexer,this.rules)}}emStrong(A,e,t=""){let n=this.rules.inline.emStrongLDelim.exec(A);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!t||this.rules.inline.punctuation.exec(t))){let r=[...n[0]].length-1,s,o,a=r,i=0,c=n[0][0],u=t===c,h=c==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*A.length+r);(n=h.exec(e))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(o=[...s].length,n[3]||n[4]){a+=o;continue}else if(n[5]||n[6]){if(r%3&&!((r+o)%3)){i+=o;continue}if(u)break}if(a-=o,a>0)continue;o=Math.min(o,o+a+i);let f=[...n[0]][0].length,g=A.slice(0,r+n.index+f+o);if(Math.min(r,o)%2){let b=g.slice(1,-1);return{type:"em",raw:g,text:b,tokens:this.lexer.inlineTokens(b)}}let m=g.slice(2,-2);return{type:"strong",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(A){let e=this.rules.inline.code.exec(A);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(A){let e=this.rules.inline.br.exec(A);if(e)return{type:"br",raw:e[0]}}del(A,e,t=""){let n=this.rules.inline.delLDelim.exec(A);if(n&&(!n[1]||!t||this.rules.inline.punctuation.exec(t))){let r=[...n[0]].length-1,s,o,a=r,i=this.rules.inline.delRDelim;for(i.lastIndex=0,e=e.slice(-1*A.length+r);(n=i.exec(e))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s||(o=[...s].length,o!==r))continue;if(n[3]||n[4]){a+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a);let c=[...n[0]][0].length,u=A.slice(0,r+n.index+c+o),h=u.slice(r,-r);return{type:"del",raw:u,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(A){let e=this.rules.inline.autolink.exec(A);if(e){let t,n;return e[2]==="@"?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(A){var t,n;let e;if(e=this.rules.inline.url.exec(A)){let r,s;if(e[2]==="@")r=e[0],s="mailto:"+r;else{let o;do o=e[0],e[0]=(n=(t=this.rules.inline._backpedal.exec(e[0]))==null?void 0:t[0])!=null?n:"";while(o!==e[0]);r=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(A){let e=this.rules.inline.text.exec(A);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},Ge=class al{constructor(e){gA(this,"tokens");gA(this,"options");gA(this,"state");gA(this,"inlineQueue");gA(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||wn,this.options.tokenizer=this.options.tokenizer||new jo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:se,block:Jo.normal,inline:ss.normal};this.options.pedantic?(t.block=Jo.pedantic,t.inline=ss.pedantic):this.options.gfm&&(t.block=Jo.gfm,this.options.breaks?t.inline=ss.breaks:t.inline=ss.gfm),this.tokenizer.rules=t}static get rules(){return{block:Jo,inline:ss}}static lex(e,t){return new al(t).lex(e)}static lexInline(e,t){return new al(t).inlineTokens(e)}lex(e){e=e.replace(se.carriageReturn,`
1882
+ `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var s,o,a;this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(se.tabCharGlobal," ").replace(se.spaceLine,""));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if((o=(s=this.options.extensions)==null?void 0:s.block)!=null&&o.some(u=>(i=u.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let u=t.at(-1);i.raw.length===1&&u!==void 0?u.raw+=`
1869
1883
  `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let u=t.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
1870
1884
  `)?"":`
1871
1885
  `)+i.raw,u.text+=`
1872
1886
  `+i.text,this.inlineQueue.at(-1).src=u.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let u=t.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
1873
1887
  `)?"":`
1874
1888
  `)+i.raw,u.text+=`
1875
- `+i.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let l=e;if((a=this.options.extensions)!=null&&a.startBlock){let u=1/0,h=e.slice(1),f;this.options.extensions.startBlock.forEach(g=>{f=g.call({lexer:this},h),typeof f=="number"&&f>=0&&(u=Math.min(u,f))}),u<1/0&&u>=0&&(l=e.substring(0,u+1))}if(this.state.top&&(i=this.tokenizer.paragraph(l))){let u=t.at(-1);n&&(u==null?void 0:u.type)==="paragraph"?(u.raw+=(u.raw.endsWith(`
1889
+ `+i.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let c=e;if((a=this.options.extensions)!=null&&a.startBlock){let u=1/0,h=e.slice(1),f;this.options.extensions.startBlock.forEach(g=>{f=g.call({lexer:this},h),typeof f=="number"&&f>=0&&(u=Math.min(u,f))}),u<1/0&&u>=0&&(c=e.substring(0,u+1))}if(this.state.top&&(i=this.tokenizer.paragraph(c))){let u=t.at(-1);n&&(u==null?void 0:u.type)==="paragraph"?(u.raw+=(u.raw.endsWith(`
1876
1890
  `)?"":`
1877
1891
  `)+i.raw,u.text+=`
1878
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):t.push(i),n=l.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let u=t.at(-1);(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
1892
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):t.push(i),n=c.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let u=t.at(-1);(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
1879
1893
  `)?"":`
1880
1894
  `)+i.raw,u.text+=`
1881
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var a,i,l,u,h,f;this.tokenizer.lexer=this;let n=e;if(this.tokens.links){let g=Object.keys(this.tokens.links);g.length>0&&(n=n.replace(this.tokenizer.rules.inline.reflinkSearch,m=>g.includes(m.slice(m.lastIndexOf("[")+1,-1))?"["+"a".repeat(m.length-2)+"]":m))}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,"++"),n=n.replace(this.tokenizer.rules.inline.blockSkip,(g,m,Q)=>{let U=Q?Q.length:0;return g.slice(0,U)+"["+"a".repeat(g.length-U-2)+"]"}),n=(l=(i=(a=this.options.hooks)==null?void 0:a.emStrongMask)==null?void 0:i.call({lexer:this},n))!=null?l:n;let r=!1,s="",o=1/0;for(;e;){if(e.length<o)o=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(s=""),r=!1;let g;if((h=(u=this.options.extensions)==null?void 0:u.inline)!=null&&h.some(Q=>(g=Q.call({lexer:this},e,t))?(e=e.substring(g.raw.length),t.push(g),!0):!1))continue;if(g=this.tokenizer.escape(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.tag(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.link(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(g.raw.length);let Q=t.at(-1);g.type==="text"&&(Q==null?void 0:Q.type)==="text"?(Q.raw+=g.raw,Q.text+=g.text):t.push(g);continue}if(g=this.tokenizer.emStrong(e,n,s)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.codespan(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.br(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.del(e,n,s)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.autolink(e)){e=e.substring(g.raw.length),t.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(e))){e=e.substring(g.raw.length),t.push(g);continue}let m=e;if((f=this.options.extensions)!=null&&f.startInline){let Q=1/0,U=e.slice(1),E;this.options.extensions.startInline.forEach(v=>{E=v.call({lexer:this},U),typeof E=="number"&&E>=0&&(Q=Math.min(Q,E))}),Q<1/0&&Q>=0&&(m=e.substring(0,Q+1))}if(g=this.tokenizer.inlineText(m)){e=e.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(s=g.raw.slice(-1)),r=!0;let Q=t.at(-1);(Q==null?void 0:Q.type)==="text"?(Q.raw+=g.raw,Q.text+=g.text):t.push(g);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw new Error(t)}},Vo=class{constructor(A){hA(this,"options");hA(this,"parser");this.options=A||pn}space(A){return""}code({text:A,lang:e,escaped:t}){var s;let n=(s=(e||"").match(ne.notSpaceStart))==null?void 0:s[0],r=A.replace(ne.endingNewline,"")+`
1882
- `;return n?'<pre><code class="language-'+ct(n)+'">'+(t?r:ct(r,!0))+`</code></pre>
1883
- `:"<pre><code>"+(t?r:ct(r,!0))+`</code></pre>
1895
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var a,i,c,u,h,f;this.tokenizer.lexer=this;let n=e;if(this.tokens.links){let g=Object.keys(this.tokens.links);g.length>0&&(n=n.replace(this.tokenizer.rules.inline.reflinkSearch,m=>g.includes(m.slice(m.lastIndexOf("[")+1,-1))?"["+"a".repeat(m.length-2)+"]":m))}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,"++"),n=n.replace(this.tokenizer.rules.inline.blockSkip,(g,m,b)=>{let E=b?b.length:0;return g.slice(0,E)+"["+"a".repeat(g.length-E-2)+"]"}),n=(c=(i=(a=this.options.hooks)==null?void 0:a.emStrongMask)==null?void 0:i.call({lexer:this},n))!=null?c:n;let r=!1,s="",o=1/0;for(;e;){if(e.length<o)o=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(s=""),r=!1;let g;if((h=(u=this.options.extensions)==null?void 0:u.inline)!=null&&h.some(b=>(g=b.call({lexer:this},e,t))?(e=e.substring(g.raw.length),t.push(g),!0):!1))continue;if(g=this.tokenizer.escape(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.tag(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.link(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(g.raw.length);let b=t.at(-1);g.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=g.raw,b.text+=g.text):t.push(g);continue}if(g=this.tokenizer.emStrong(e,n,s)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.codespan(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.br(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.del(e,n,s)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.autolink(e)){e=e.substring(g.raw.length),t.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(e))){e=e.substring(g.raw.length),t.push(g);continue}let m=e;if((f=this.options.extensions)!=null&&f.startInline){let b=1/0,E=e.slice(1),k;this.options.extensions.startInline.forEach(v=>{k=v.call({lexer:this},E),typeof k=="number"&&k>=0&&(b=Math.min(b,k))}),b<1/0&&b>=0&&(m=e.substring(0,b+1))}if(g=this.tokenizer.inlineText(m)){e=e.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(s=g.raw.slice(-1)),r=!0;let b=t.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=g.raw,b.text+=g.text):t.push(g);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw new Error(t)}},Yo=class{constructor(A){gA(this,"options");gA(this,"parser");this.options=A||wn}space(A){return""}code({text:A,lang:e,escaped:t}){var s;let n=(s=(e||"").match(se.notSpaceStart))==null?void 0:s[0],r=A.replace(se.endingNewline,"")+`
1896
+ `;return n?'<pre><code class="language-'+pt(n)+'">'+(t?r:pt(r,!0))+`</code></pre>
1897
+ `:"<pre><code>"+(t?r:pt(r,!0))+`</code></pre>
1884
1898
  `}blockquote({tokens:A}){return`<blockquote>
1885
1899
  ${this.parser.parse(A)}</blockquote>
1886
1900
  `}html({text:A}){return A}def(A){return""}heading({tokens:A,depth:e}){return`<h${e}>${this.parser.parseInline(A)}</h${e}>
@@ -1896,22 +1910,22 @@ ${this.parser.parse(A)}</blockquote>
1896
1910
  `}tablerow({text:A}){return`<tr>
1897
1911
  ${A}</tr>
1898
1912
  `}tablecell(A){let e=this.parser.parseInline(A.tokens),t=A.header?"th":"td";return(A.align?`<${t} align="${A.align}">`:`<${t}>`)+e+`</${t}>
1899
- `}strong({tokens:A}){return`<strong>${this.parser.parseInline(A)}</strong>`}em({tokens:A}){return`<em>${this.parser.parseInline(A)}</em>`}codespan({text:A}){return`<code>${ct(A,!0)}</code>`}br(A){return"<br>"}del({tokens:A}){return`<del>${this.parser.parseInline(A)}</del>`}link({href:A,title:e,tokens:t}){let n=this.parser.parseInline(t),r=bh(A);if(r===null)return n;A=r;let s='<a href="'+A+'"';return e&&(s+=' title="'+ct(e)+'"'),s+=">"+n+"</a>",s}image({href:A,title:e,text:t,tokens:n}){n&&(t=this.parser.parseInline(n,this.parser.textRenderer));let r=bh(A);if(r===null)return ct(t);A=r;let s=`<img src="${A}" alt="${ct(t)}"`;return e&&(s+=` title="${ct(e)}"`),s+=">",s}text(A){return"tokens"in A&&A.tokens?this.parser.parseInline(A.tokens):"escaped"in A&&A.escaped?A.text:ct(A.text)}},mc=class{strong({text:A}){return A}em({text:A}){return A}codespan({text:A}){return A}del({text:A}){return A}html({text:A}){return A}text({text:A}){return A}link({text:A}){return""+A}image({text:A}){return""+A}br(){return""}checkbox({raw:A}){return A}},Ge=class nl{constructor(e){hA(this,"options");hA(this,"renderer");hA(this,"textRenderer");this.options=e||pn,this.options.renderer=this.options.renderer||new Vo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new mc}static parse(e,t){return new nl(t).parse(e)}static parseInline(e,t){return new nl(t).parseInline(e)}parse(e){var n,r;this.renderer.parser=this;let t="";for(let s=0;s<e.length;s++){let o=e[s];if((r=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&r[o.type]){let i=o,l=this.options.extensions.renderers[i.type].call({parser:this},i);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(i.type)){t+=l||"";continue}}let a=o;switch(a.type){case"space":{t+=this.renderer.space(a);break}case"hr":{t+=this.renderer.hr(a);break}case"heading":{t+=this.renderer.heading(a);break}case"code":{t+=this.renderer.code(a);break}case"table":{t+=this.renderer.table(a);break}case"blockquote":{t+=this.renderer.blockquote(a);break}case"list":{t+=this.renderer.list(a);break}case"checkbox":{t+=this.renderer.checkbox(a);break}case"html":{t+=this.renderer.html(a);break}case"def":{t+=this.renderer.def(a);break}case"paragraph":{t+=this.renderer.paragraph(a);break}case"text":{t+=this.renderer.text(a);break}default:{let i='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return t}parseInline(e,t=this.renderer){var r,s;this.renderer.parser=this;let n="";for(let o=0;o<e.length;o++){let a=e[o];if((s=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&s[a.type]){let l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(a.type)){n+=l||"";continue}}let i=a;switch(i.type){case"escape":{n+=t.text(i);break}case"html":{n+=t.html(i);break}case"link":{n+=t.link(i);break}case"image":{n+=t.image(i);break}case"checkbox":{n+=t.checkbox(i);break}case"strong":{n+=t.strong(i);break}case"em":{n+=t.em(i);break}case"codespan":{n+=t.codespan(i);break}case"br":{n+=t.br(i);break}case"del":{n+=t.del(i);break}case"text":{n+=t.text(i);break}default:{let l='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}},As=(fi=class{constructor(A){hA(this,"options");hA(this,"block");this.options=A||pn}preprocess(A){return A}postprocess(A){return A}processAllTokens(A){return A}emStrongMask(A){return A}provideLexer(A=this.block){return A?$e.lex:$e.lexInline}provideParser(A=this.block){return A?Ge.parse:Ge.parseInline}},hA(fi,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),hA(fi,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),fi),Tv=class{constructor(...A){hA(this,"defaults",uc());hA(this,"options",this.setOptions);hA(this,"parse",this.parseMarkdown(!0));hA(this,"parseInline",this.parseMarkdown(!1));hA(this,"Parser",Ge);hA(this,"Renderer",Vo);hA(this,"TextRenderer",mc);hA(this,"Lexer",$e);hA(this,"Tokenizer",Go);hA(this,"Hooks",As);this.use(...A)}walkTokens(A,e){var n,r;let t=[];for(let s of A)switch(t=t.concat(e.call(this,s)),s.type){case"table":{let o=s;for(let a of o.header)t=t.concat(this.walkTokens(a.tokens,e));for(let a of o.rows)for(let i of a)t=t.concat(this.walkTokens(i.tokens,e));break}case"list":{let o=s;t=t.concat(this.walkTokens(o.items,e));break}default:{let o=s;(r=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&r[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{let i=o[a].flat(1/0);t=t.concat(this.walkTokens(i,e))}):o.tokens&&(t=t.concat(this.walkTokens(o.tokens,e)))}}return t}use(...A){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return A.forEach(t=>{let n=k({},t);if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let s=e.renderers[r.name];s?e.renderers[r.name]=function(...o){let a=r.renderer.apply(this,o);return a===!1&&(a=s.apply(this,o)),a}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=e[r.level];s?s.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),n.extensions=e),t.renderer){let r=this.defaults.renderer||new Vo(this.defaults);for(let s in t.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,a=t.renderer[o],i=r[o];r[o]=(...l)=>{let u=a.apply(r,l);return u===!1&&(u=i.apply(r,l)),u||""}}n.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new Go(this.defaults);for(let s in t.tokenizer){if(!(s in r))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,a=t.tokenizer[o],i=r[o];r[o]=(...l)=>{let u=a.apply(r,l);return u===!1&&(u=i.apply(r,l)),u}}n.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new As;for(let s in t.hooks){if(!(s in r))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,a=t.hooks[o],i=r[o];As.passThroughHooks.has(s)?r[o]=l=>{if(this.defaults.async&&As.passThroughHooksRespectAsync.has(s))return T(this,null,function*(){let h=yield a.call(r,l);return i.call(r,h)});let u=a.call(r,l);return i.call(r,u)}:r[o]=(...l)=>{if(this.defaults.async)return T(this,null,function*(){let h=yield a.apply(r,l);return h===!1&&(h=yield i.apply(r,l)),h});let u=a.apply(r,l);return u===!1&&(u=i.apply(r,l)),u}}n.hooks=r}if(t.walkTokens){let r=this.defaults.walkTokens,s=t.walkTokens;n.walkTokens=function(o){let a=[];return a.push(s.call(this,o)),r&&(a=a.concat(r.call(this,o))),a}}this.defaults=k(k({},this.defaults),n)}),this}setOptions(A){return this.defaults=k(k({},this.defaults),A),this}lexer(A,e){return $e.lex(A,e!=null?e:this.defaults)}parser(A,e){return Ge.parse(A,e!=null?e:this.defaults)}parseMarkdown(A){return(e,t)=>{let n=k({},t),r=k(k({},this.defaults),n),s=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&n.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=A),r.async)return T(this,null,function*(){let o=r.hooks?yield r.hooks.preprocess(e):e,a=yield(r.hooks?yield r.hooks.provideLexer(A):A?$e.lex:$e.lexInline)(o,r),i=r.hooks?yield r.hooks.processAllTokens(a):a;r.walkTokens&&(yield Promise.all(this.walkTokens(i,r.walkTokens)));let l=yield(r.hooks?yield r.hooks.provideParser(A):A?Ge.parse:Ge.parseInline)(i,r);return r.hooks?yield r.hooks.postprocess(l):l}).catch(s);try{r.hooks&&(e=r.hooks.preprocess(e));let o=(r.hooks?r.hooks.provideLexer(A):A?$e.lex:$e.lexInline)(e,r);r.hooks&&(o=r.hooks.processAllTokens(o)),r.walkTokens&&this.walkTokens(o,r.walkTokens);let a=(r.hooks?r.hooks.provideParser(A):A?Ge.parse:Ge.parseInline)(o,r);return r.hooks&&(a=r.hooks.postprocess(a)),a}catch(o){return s(o)}}}onError(A,e){return t=>{if(t.message+=`
1900
- Please report this to https://github.com/markedjs/marked.`,A){let n="<p>An error occurred:</p><pre>"+ct(t.message+"",!0)+"</pre>";return e?Promise.resolve(n):n}if(e)return Promise.reject(t);throw t}}},fn=new Tv;function dA(A,e){return fn.parse(A,e)}dA.options=dA.setOptions=function(A){return fn.setOptions(A),dA.defaults=fn.defaults,ah(dA.defaults),dA},dA.getDefaults=uc,dA.defaults=pn;function Hv(...A){return fn.use(...A),dA.defaults=fn.defaults,ah(dA.defaults),dA}dA.use=Hv,dA.walkTokens=function(A,e){return fn.walkTokens(A,e)},dA.parseInline=fn.parseInline,dA.Parser=Ge,dA.parser=Ge.parse,dA.Renderer=Vo,dA.TextRenderer=mc,dA.Lexer=$e,dA.lexer=$e.lex,dA.Tokenizer=Go,dA.Hooks=As,dA.parse=dA,dA.options,dA.setOptions,dA.walkTokens,dA.parseInline,Ge.parse,$e.lex;/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Eh,setPrototypeOf:Fh,isFrozen:Lv,getPrototypeOf:Dv,getOwnPropertyDescriptor:Rv}=Object;let{freeze:ae,seal:Ie,create:Cc}=Object,{apply:bc,construct:Qc}=typeof Reflect!="undefined"&&Reflect;ae||(ae=function(e){return e}),Ie||(Ie=function(e){return e}),bc||(bc=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];return e.apply(t,r)}),Qc||(Qc=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const Zo=le(Array.prototype.forEach),Ov=le(Array.prototype.lastIndexOf),kh=le(Array.prototype.pop),es=le(Array.prototype.push),Mv=le(Array.prototype.splice),Xo=le(String.prototype.toLowerCase),yc=le(String.prototype.toString),Uc=le(String.prototype.match),ts=le(String.prototype.replace),Pv=le(String.prototype.indexOf),Kv=le(String.prototype.trim),Ve=le(Object.prototype.hasOwnProperty),ce=le(RegExp.prototype.test),ns=Nv(TypeError);function le(A){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return bc(A,e,n)}}function Nv(A){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qc(A,t)}}function eA(A,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xo;Fh&&Fh(A,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const s=t(r);s!==r&&(Lv(e)||(e[n]=s),r=s)}A[r]=!0}return A}function zv(A){for(let e=0;e<A.length;e++)Ve(A,e)||(A[e]=null);return A}function lt(A){const e=Cc(null);for(const[t,n]of Eh(A))Ve(A,t)&&(Array.isArray(n)?e[t]=zv(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=lt(n):e[t]=n);return e}function rs(A,e){for(;A!==null;){const n=Rv(A,e);if(n){if(n.get)return le(n.get);if(typeof n.value=="function")return le(n.value)}A=Dv(A)}function t(){return null}return t}const vh=ae(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ec=ae(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Fc=ae(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$v=ae(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),kc=ae(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Gv=ae(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_h=ae(["#text"]),xh=ae(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),vc=ae(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Sh=ae(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Wo=ae(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Vv=Ie(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Zv=Ie(/<%[\w\W]*|[\w\W]*%>/gm),Xv=Ie(/\$\{[\w\W]*/gm),Wv=Ie(/^data-[\-\w.\u00B7-\uFFFF]+$/),Jv=Ie(/^aria-[\-\w]+$/),Ih=Ie(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jv=Ie(/^(?:\w+script|data):/i),Yv=Ie(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Th=Ie(/^html$/i),qv=Ie(/^[a-z][.\w]*(-[.\w]+)+$/i);var Hh=Object.freeze({__proto__:null,ARIA_ATTR:Jv,ATTR_WHITESPACE:Yv,CUSTOM_ELEMENT:qv,DATA_ATTR:Wv,DOCTYPE_NAME:Th,ERB_EXPR:Zv,IS_ALLOWED_URI:Ih,IS_SCRIPT_OR_DATA:jv,MUSTACHE_EXPR:Vv,TMPLIT_EXPR:Xv});const ss={element:1,text:3,progressingInstruction:7,comment:8,document:9},A_=function(){return typeof window=="undefined"?null:window},e_=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch(o){return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Lh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Dh(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:A_();const e=V=>Dh(V);if(e.version="3.3.1",e.removed=[],!A||!A.document||A.document.nodeType!==ss.document||!A.Element)return e.isSupported=!1,e;let{document:t}=A;const n=t,r=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:i,NodeFilter:l,NamedNodeMap:u=A.NamedNodeMap||A.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:g}=A,m=i.prototype,Q=rs(m,"cloneNode"),U=rs(m,"remove"),E=rs(m,"nextSibling"),v=rs(m,"childNodes"),F=rs(m,"parentNode");if(typeof o=="function"){const V=t.createElement("template");V.content&&V.content.ownerDocument&&(t=V.content.ownerDocument)}let y,x="";const{implementation:R,createNodeIterator:I,createDocumentFragment:K,getElementsByTagName:N}=t,{importNode:Z}=n;let X=Lh();e.isSupported=typeof Eh=="function"&&typeof F=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:aA,ERB_EXPR:fA,TMPLIT_EXPR:PA,DATA_ATTR:Ce,ARIA_ATTR:pe,IS_SCRIPT_OR_DATA:Je,ATTR_WHITESPACE:pr,CUSTOM_ELEMENT:fs}=Hh;let{IS_ALLOWED_URI:ht}=Hh,bA=null;const ft=eA({},[...vh,...Ec,...Fc,...kc,..._h]);let gA=null;const En=eA({},[...xh,...vc,...Sh,...Wo]);let BA=Object.seal(Cc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),se=null,Fn=null;const je=Object.seal(Cc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let SA=!0,OA=!0,kn=!1,Wt=!0,ZA=!1,gt=!0,De=!1,Re=!1,Ft=!1,IA=!1,Bt=!1,vn=!1,gi=!0,gs=!1;const zc="user-content-";let Bs=!0,_n=!1,Jt={},he=null;const ws=eA({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let wA=null;const Bi=eA({},["audio","video","img","source","image","track"]);let ms=null;const wi=eA({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),hr="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml";let jt=Ye,xn=!1,Sn=null;const $c=eA({},[hr,fr,Ye],yc);let gr=eA({},["mi","mo","mn","ms","mtext"]),Br=eA({},["annotation-xml"]);const Gc=eA({},["title","style","font","a","script"]);let kt=null;const qe=["application/xhtml+xml","text/html"],Vc="text/html";let mA=null,Yt=null;const mi=t.createElement("form"),Cs=function(b){return b instanceof RegExp||b instanceof Function},wr=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Yt&&Yt===b)){if((!b||typeof b!="object")&&(b={}),b=lt(b),kt=qe.indexOf(b.PARSER_MEDIA_TYPE)===-1?Vc:b.PARSER_MEDIA_TYPE,mA=kt==="application/xhtml+xml"?yc:Xo,bA=Ve(b,"ALLOWED_TAGS")?eA({},b.ALLOWED_TAGS,mA):ft,gA=Ve(b,"ALLOWED_ATTR")?eA({},b.ALLOWED_ATTR,mA):En,Sn=Ve(b,"ALLOWED_NAMESPACES")?eA({},b.ALLOWED_NAMESPACES,yc):$c,ms=Ve(b,"ADD_URI_SAFE_ATTR")?eA(lt(wi),b.ADD_URI_SAFE_ATTR,mA):wi,wA=Ve(b,"ADD_DATA_URI_TAGS")?eA(lt(Bi),b.ADD_DATA_URI_TAGS,mA):Bi,he=Ve(b,"FORBID_CONTENTS")?eA({},b.FORBID_CONTENTS,mA):ws,se=Ve(b,"FORBID_TAGS")?eA({},b.FORBID_TAGS,mA):lt({}),Fn=Ve(b,"FORBID_ATTR")?eA({},b.FORBID_ATTR,mA):lt({}),Jt=Ve(b,"USE_PROFILES")?b.USE_PROFILES:!1,SA=b.ALLOW_ARIA_ATTR!==!1,OA=b.ALLOW_DATA_ATTR!==!1,kn=b.ALLOW_UNKNOWN_PROTOCOLS||!1,Wt=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ZA=b.SAFE_FOR_TEMPLATES||!1,gt=b.SAFE_FOR_XML!==!1,De=b.WHOLE_DOCUMENT||!1,IA=b.RETURN_DOM||!1,Bt=b.RETURN_DOM_FRAGMENT||!1,vn=b.RETURN_TRUSTED_TYPE||!1,Ft=b.FORCE_BODY||!1,gi=b.SANITIZE_DOM!==!1,gs=b.SANITIZE_NAMED_PROPS||!1,Bs=b.KEEP_CONTENT!==!1,_n=b.IN_PLACE||!1,ht=b.ALLOWED_URI_REGEXP||Ih,jt=b.NAMESPACE||Ye,gr=b.MATHML_TEXT_INTEGRATION_POINTS||gr,Br=b.HTML_INTEGRATION_POINTS||Br,BA=b.CUSTOM_ELEMENT_HANDLING||{},b.CUSTOM_ELEMENT_HANDLING&&Cs(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(BA.tagNameCheck=b.CUSTOM_ELEMENT_HANDLING.tagNameCheck),b.CUSTOM_ELEMENT_HANDLING&&Cs(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(BA.attributeNameCheck=b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),b.CUSTOM_ELEMENT_HANDLING&&typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(BA.allowCustomizedBuiltInElements=b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ZA&&(OA=!1),Bt&&(IA=!0),Jt&&(bA=eA({},_h),gA=[],Jt.html===!0&&(eA(bA,vh),eA(gA,xh)),Jt.svg===!0&&(eA(bA,Ec),eA(gA,vc),eA(gA,Wo)),Jt.svgFilters===!0&&(eA(bA,Fc),eA(gA,vc),eA(gA,Wo)),Jt.mathMl===!0&&(eA(bA,kc),eA(gA,Sh),eA(gA,Wo))),b.ADD_TAGS&&(typeof b.ADD_TAGS=="function"?je.tagCheck=b.ADD_TAGS:(bA===ft&&(bA=lt(bA)),eA(bA,b.ADD_TAGS,mA))),b.ADD_ATTR&&(typeof b.ADD_ATTR=="function"?je.attributeCheck=b.ADD_ATTR:(gA===En&&(gA=lt(gA)),eA(gA,b.ADD_ATTR,mA))),b.ADD_URI_SAFE_ATTR&&eA(ms,b.ADD_URI_SAFE_ATTR,mA),b.FORBID_CONTENTS&&(he===ws&&(he=lt(he)),eA(he,b.FORBID_CONTENTS,mA)),b.ADD_FORBID_CONTENTS&&(he===ws&&(he=lt(he)),eA(he,b.ADD_FORBID_CONTENTS,mA)),Bs&&(bA["#text"]=!0),De&&eA(bA,["html","head","body"]),bA.table&&(eA(bA,["tbody"]),delete se.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw ns('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ns('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=b.TRUSTED_TYPES_POLICY,x=y.createHTML("")}else y===void 0&&(y=e_(g,r)),y!==null&&typeof x=="string"&&(x=y.createHTML(""));ae&&ae(b),Yt=b}},bs=eA({},[...Ec,...Fc,...$v]),Ci=eA({},[...kc,...Gv]),Zc=function(b){let H=F(b);(!H||!H.tagName)&&(H={namespaceURI:jt,tagName:"template"});const M=Xo(b.tagName),pA=Xo(H.tagName);return Sn[b.namespaceURI]?b.namespaceURI===fr?H.namespaceURI===Ye?M==="svg":H.namespaceURI===hr?M==="svg"&&(pA==="annotation-xml"||gr[pA]):!!bs[M]:b.namespaceURI===hr?H.namespaceURI===Ye?M==="math":H.namespaceURI===fr?M==="math"&&Br[pA]:!!Ci[M]:b.namespaceURI===Ye?H.namespaceURI===fr&&!Br[pA]||H.namespaceURI===hr&&!gr[pA]?!1:!Ci[M]&&(Gc[M]||!bs[M]):!!(kt==="application/xhtml+xml"&&Sn[b.namespaceURI]):!1},Oe=function(b){es(e.removed,{element:b});try{F(b).removeChild(b)}catch(H){U(b)}},Me=function(b,H){try{es(e.removed,{attribute:H.getAttributeNode(b),from:H})}catch(M){es(e.removed,{attribute:null,from:H})}if(H.removeAttribute(b),b==="is")if(IA||Bt)try{Oe(H)}catch(M){}else try{H.setAttribute(b,"")}catch(M){}},bi=function(b){let H=null,M=null;if(Ft)b="<remove></remove>"+b;else{const TA=Uc(b,/^[\r\n\t ]+/);M=TA&&TA[0]}kt==="application/xhtml+xml"&&jt===Ye&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");const pA=y?y.createHTML(b):b;if(jt===Ye)try{H=new f().parseFromString(pA,kt)}catch(TA){}if(!H||!H.documentElement){H=R.createDocument(jt,"template",null);try{H.documentElement.innerHTML=xn?x:pA}catch(TA){}}const JA=H.body||H.documentElement;return b&&M&&JA.insertBefore(t.createTextNode(M),JA.childNodes[0]||null),jt===Ye?N.call(H,De?"html":"body")[0]:De?H.documentElement:JA},Qs=function(b){return I.call(b.ownerDocument||b,b,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ys=function(b){return b instanceof h&&(typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||!(b.attributes instanceof u)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function")},Qi=function(b){return typeof a=="function"&&b instanceof a};function At(V,b,H){Zo(V,M=>{M.call(e,b,H,Yt)})}const yi=function(b){let H=null;if(At(X.beforeSanitizeElements,b,null),ys(b))return Oe(b),!0;const M=mA(b.nodeName);if(At(X.uponSanitizeElement,b,{tagName:M,allowedTags:bA}),gt&&b.hasChildNodes()&&!Qi(b.firstElementChild)&&ce(/<[/\w!]/g,b.innerHTML)&&ce(/<[/\w!]/g,b.textContent)||b.nodeType===ss.progressingInstruction||gt&&b.nodeType===ss.comment&&ce(/<[/\w]/g,b.data))return Oe(b),!0;if(!(je.tagCheck instanceof Function&&je.tagCheck(M))&&(!bA[M]||se[M])){if(!se[M]&&Ei(M)&&(BA.tagNameCheck instanceof RegExp&&ce(BA.tagNameCheck,M)||BA.tagNameCheck instanceof Function&&BA.tagNameCheck(M)))return!1;if(Bs&&!he[M]){const pA=F(b)||b.parentNode,JA=v(b)||b.childNodes;if(JA&&pA){const TA=JA.length;for(let oe=TA-1;oe>=0;--oe){const et=Q(JA[oe],!0);et.__removalCount=(b.__removalCount||0)+1,pA.insertBefore(et,E(b))}}}return Oe(b),!0}return b instanceof i&&!Zc(b)||(M==="noscript"||M==="noembed"||M==="noframes")&&ce(/<\/no(script|embed|frames)/i,b.innerHTML)?(Oe(b),!0):(ZA&&b.nodeType===ss.text&&(H=b.textContent,Zo([aA,fA,PA],pA=>{H=ts(H,pA," ")}),b.textContent!==H&&(es(e.removed,{element:b.cloneNode()}),b.textContent=H)),At(X.afterSanitizeElements,b,null),!1)},Ui=function(b,H,M){if(gi&&(H==="id"||H==="name")&&(M in t||M in mi))return!1;if(!(OA&&!Fn[H]&&ce(Ce,H))){if(!(SA&&ce(pe,H))){if(!(je.attributeCheck instanceof Function&&je.attributeCheck(H,b))){if(!gA[H]||Fn[H]){if(!(Ei(b)&&(BA.tagNameCheck instanceof RegExp&&ce(BA.tagNameCheck,b)||BA.tagNameCheck instanceof Function&&BA.tagNameCheck(b))&&(BA.attributeNameCheck instanceof RegExp&&ce(BA.attributeNameCheck,H)||BA.attributeNameCheck instanceof Function&&BA.attributeNameCheck(H,b))||H==="is"&&BA.allowCustomizedBuiltInElements&&(BA.tagNameCheck instanceof RegExp&&ce(BA.tagNameCheck,M)||BA.tagNameCheck instanceof Function&&BA.tagNameCheck(M))))return!1}else if(!ms[H]){if(!ce(ht,ts(M,pr,""))){if(!((H==="src"||H==="xlink:href"||H==="href")&&b!=="script"&&Pv(M,"data:")===0&&wA[b])){if(!(kn&&!ce(Je,ts(M,pr,"")))){if(M)return!1}}}}}}}return!0},Ei=function(b){return b!=="annotation-xml"&&Uc(b,fs)},Us=function(b){At(X.beforeSanitizeAttributes,b,null);const{attributes:H}=b;if(!H||ys(b))return;const M={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:gA,forceKeepAttr:void 0};let pA=H.length;for(;pA--;){const JA=H[pA],{name:TA,namespaceURI:oe,value:et}=JA,wt=mA(TA),Es=et;let XA=TA==="value"?Es:Kv(Es);if(M.attrName=wt,M.attrValue=XA,M.keepAttr=!0,M.forceKeepAttr=void 0,At(X.uponSanitizeAttribute,b,M),XA=M.attrValue,gs&&(wt==="id"||wt==="name")&&(Me(TA,b),XA=zc+XA),gt&&ce(/((--!?|])>)|<\/(style|title|textarea)/i,XA)){Me(TA,b);continue}if(wt==="attributename"&&Uc(XA,"href")){Me(TA,b);continue}if(M.forceKeepAttr)continue;if(!M.keepAttr){Me(TA,b);continue}if(!Wt&&ce(/\/>/i,XA)){Me(TA,b);continue}ZA&&Zo([aA,fA,PA],ki=>{XA=ts(XA,ki," ")});const Fi=mA(b.nodeName);if(!Ui(Fi,wt,XA)){Me(TA,b);continue}if(y&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!oe)switch(g.getAttributeType(Fi,wt)){case"TrustedHTML":{XA=y.createHTML(XA);break}case"TrustedScriptURL":{XA=y.createScriptURL(XA);break}}if(XA!==Es)try{oe?b.setAttributeNS(oe,TA,XA):b.setAttribute(TA,XA),ys(b)?Oe(b):kh(e.removed)}catch(ki){Me(TA,b)}}At(X.afterSanitizeAttributes,b,null)},vt=function V(b){let H=null;const M=Qs(b);for(At(X.beforeSanitizeShadowDOM,b,null);H=M.nextNode();)At(X.uponSanitizeShadowNode,H,null),yi(H),Us(H),H.content instanceof s&&V(H.content);At(X.afterSanitizeShadowDOM,b,null)};return e.sanitize=function(V){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H=null,M=null,pA=null,JA=null;if(xn=!V,xn&&(V="<!-->"),typeof V!="string"&&!Qi(V))if(typeof V.toString=="function"){if(V=V.toString(),typeof V!="string")throw ns("dirty is not a string, aborting")}else throw ns("toString is not a function");if(!e.isSupported)return V;if(Re||wr(b),e.removed=[],typeof V=="string"&&(_n=!1),_n){if(V.nodeName){const et=mA(V.nodeName);if(!bA[et]||se[et])throw ns("root node is forbidden and cannot be sanitized in-place")}}else if(V instanceof a)H=bi("<!---->"),M=H.ownerDocument.importNode(V,!0),M.nodeType===ss.element&&M.nodeName==="BODY"||M.nodeName==="HTML"?H=M:H.appendChild(M);else{if(!IA&&!ZA&&!De&&V.indexOf("<")===-1)return y&&vn?y.createHTML(V):V;if(H=bi(V),!H)return IA?null:vn?x:""}H&&Ft&&Oe(H.firstChild);const TA=Qs(_n?V:H);for(;pA=TA.nextNode();)yi(pA),Us(pA),pA.content instanceof s&&vt(pA.content);if(_n)return V;if(IA){if(Bt)for(JA=K.call(H.ownerDocument);H.firstChild;)JA.appendChild(H.firstChild);else JA=H;return(gA.shadowroot||gA.shadowrootmode)&&(JA=Z.call(n,JA,!0)),JA}let oe=De?H.outerHTML:H.innerHTML;return De&&bA["!doctype"]&&H.ownerDocument&&H.ownerDocument.doctype&&H.ownerDocument.doctype.name&&ce(Th,H.ownerDocument.doctype.name)&&(oe="<!DOCTYPE "+H.ownerDocument.doctype.name+`>
1901
- `+oe),ZA&&Zo([aA,fA,PA],et=>{oe=ts(oe,et," ")}),y&&vn?y.createHTML(oe):oe},e.setConfig=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};wr(V),Re=!0},e.clearConfig=function(){Yt=null,Re=!1},e.isValidAttribute=function(V,b,H){Yt||wr({});const M=mA(V),pA=mA(b);return Ui(M,pA,H)},e.addHook=function(V,b){typeof b=="function"&&es(X[V],b)},e.removeHook=function(V,b){if(b!==void 0){const H=Ov(X[V],b);return H===-1?void 0:Mv(X[V],H,1)[0]}return kh(X[V])},e.removeHooks=function(V){X[V]=[]},e.removeAllHooks=function(){X=Lh()},e}var t_=Dh();function Rh(A){const e=dA.parse(A,{gfm:!0,breaks:!0,async:!1});return t_.sanitize(e)}function n_(A){return T(this,null,function*(){var s;try{(s=A.focus)==null||s.call(A)}catch(o){}A.scrollIntoView({block:"center",inline:"center",behavior:"instant"});let e=A.getBoundingClientRect();e.width===0&&e.height===0&&(yield r_(),e=A.getBoundingClientRect());const t=e.left+e.width/2,n=e.top+e.height/2,r={bubbles:!0,cancelable:!0,clientX:t,clientY:n};typeof PointerEvent=="function"&&A.dispatchEvent(new PointerEvent("pointerdown",r)),A.dispatchEvent(new MouseEvent("mousedown",r)),typeof PointerEvent=="function"&&A.dispatchEvent(new PointerEvent("pointerup",r)),A.dispatchEvent(new MouseEvent("mouseup",r)),A.click()})}function r_(){return new Promise(A=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>A()):setTimeout(A,16)})}function s_(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var _c={exports:{}};/*!
1913
+ `}strong({tokens:A}){return`<strong>${this.parser.parseInline(A)}</strong>`}em({tokens:A}){return`<em>${this.parser.parseInline(A)}</em>`}codespan({text:A}){return`<code>${pt(A,!0)}</code>`}br(A){return"<br>"}del({tokens:A}){return`<del>${this.parser.parseInline(A)}</del>`}link({href:A,title:e,tokens:t}){let n=this.parser.parseInline(t),r=_h(A);if(r===null)return n;A=r;let s='<a href="'+A+'"';return e&&(s+=' title="'+pt(e)+'"'),s+=">"+n+"</a>",s}image({href:A,title:e,text:t,tokens:n}){n&&(t=this.parser.parseInline(n,this.parser.textRenderer));let r=_h(A);if(r===null)return pt(t);A=r;let s=`<img src="${A}" alt="${pt(t)}"`;return e&&(s+=` title="${pt(e)}"`),s+=">",s}text(A){return"tokens"in A&&A.tokens?this.parser.parseInline(A.tokens):"escaped"in A&&A.escaped?A.text:pt(A.text)}},kc=class{strong({text:A}){return A}em({text:A}){return A}codespan({text:A}){return A}del({text:A}){return A}html({text:A}){return A}text({text:A}){return A}link({text:A}){return""+A}image({text:A}){return""+A}br(){return""}checkbox({raw:A}){return A}},Ze=class cl{constructor(e){gA(this,"options");gA(this,"renderer");gA(this,"textRenderer");this.options=e||wn,this.options.renderer=this.options.renderer||new Yo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new kc}static parse(e,t){return new cl(t).parse(e)}static parseInline(e,t){return new cl(t).parseInline(e)}parse(e){var n,r;this.renderer.parser=this;let t="";for(let s=0;s<e.length;s++){let o=e[s];if((r=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&r[o.type]){let i=o,c=this.options.extensions.renderers[i.type].call({parser:this},i);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(i.type)){t+=c||"";continue}}let a=o;switch(a.type){case"space":{t+=this.renderer.space(a);break}case"hr":{t+=this.renderer.hr(a);break}case"heading":{t+=this.renderer.heading(a);break}case"code":{t+=this.renderer.code(a);break}case"table":{t+=this.renderer.table(a);break}case"blockquote":{t+=this.renderer.blockquote(a);break}case"list":{t+=this.renderer.list(a);break}case"checkbox":{t+=this.renderer.checkbox(a);break}case"html":{t+=this.renderer.html(a);break}case"def":{t+=this.renderer.def(a);break}case"paragraph":{t+=this.renderer.paragraph(a);break}case"text":{t+=this.renderer.text(a);break}default:{let i='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return t}parseInline(e,t=this.renderer){var r,s;this.renderer.parser=this;let n="";for(let o=0;o<e.length;o++){let a=e[o];if((s=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&s[a.type]){let c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(a.type)){n+=c||"";continue}}let i=a;switch(i.type){case"escape":{n+=t.text(i);break}case"html":{n+=t.html(i);break}case"link":{n+=t.link(i);break}case"image":{n+=t.image(i);break}case"checkbox":{n+=t.checkbox(i);break}case"strong":{n+=t.strong(i);break}case"em":{n+=t.em(i);break}case"codespan":{n+=t.codespan(i);break}case"br":{n+=t.br(i);break}case"del":{n+=t.del(i);break}case"text":{n+=t.text(i);break}default:{let c='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}},os=(bi=class{constructor(A){gA(this,"options");gA(this,"block");this.options=A||wn}preprocess(A){return A}postprocess(A){return A}processAllTokens(A){return A}emStrongMask(A){return A}provideLexer(A=this.block){return A?Ge.lex:Ge.lexInline}provideParser(A=this.block){return A?Ze.parse:Ze.parseInline}},gA(bi,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),gA(bi,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),bi),zv=class{constructor(...A){gA(this,"defaults",wc());gA(this,"options",this.setOptions);gA(this,"parse",this.parseMarkdown(!0));gA(this,"parseInline",this.parseMarkdown(!1));gA(this,"Parser",Ze);gA(this,"Renderer",Yo);gA(this,"TextRenderer",kc);gA(this,"Lexer",Ge);gA(this,"Tokenizer",jo);gA(this,"Hooks",os);this.use(...A)}walkTokens(A,e){var n,r;let t=[];for(let s of A)switch(t=t.concat(e.call(this,s)),s.type){case"table":{let o=s;for(let a of o.header)t=t.concat(this.walkTokens(a.tokens,e));for(let a of o.rows)for(let i of a)t=t.concat(this.walkTokens(i.tokens,e));break}case"list":{let o=s;t=t.concat(this.walkTokens(o.items,e));break}default:{let o=s;(r=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&r[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{let i=o[a].flat(1/0);t=t.concat(this.walkTokens(i,e))}):o.tokens&&(t=t.concat(this.walkTokens(o.tokens,e)))}}return t}use(...A){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return A.forEach(t=>{let n=F({},t);if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let s=e.renderers[r.name];s?e.renderers[r.name]=function(...o){let a=r.renderer.apply(this,o);return a===!1&&(a=s.apply(this,o)),a}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=e[r.level];s?s.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),n.extensions=e),t.renderer){let r=this.defaults.renderer||new Yo(this.defaults);for(let s in t.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,a=t.renderer[o],i=r[o];r[o]=(...c)=>{let u=a.apply(r,c);return u===!1&&(u=i.apply(r,c)),u||""}}n.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new jo(this.defaults);for(let s in t.tokenizer){if(!(s in r))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,a=t.tokenizer[o],i=r[o];r[o]=(...c)=>{let u=a.apply(r,c);return u===!1&&(u=i.apply(r,c)),u}}n.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new os;for(let s in t.hooks){if(!(s in r))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,a=t.hooks[o],i=r[o];os.passThroughHooks.has(s)?r[o]=c=>{if(this.defaults.async&&os.passThroughHooksRespectAsync.has(s))return I(this,null,function*(){let h=yield a.call(r,c);return i.call(r,h)});let u=a.call(r,c);return i.call(r,u)}:r[o]=(...c)=>{if(this.defaults.async)return I(this,null,function*(){let h=yield a.apply(r,c);return h===!1&&(h=yield i.apply(r,c)),h});let u=a.apply(r,c);return u===!1&&(u=i.apply(r,c)),u}}n.hooks=r}if(t.walkTokens){let r=this.defaults.walkTokens,s=t.walkTokens;n.walkTokens=function(o){let a=[];return a.push(s.call(this,o)),r&&(a=a.concat(r.call(this,o))),a}}this.defaults=F(F({},this.defaults),n)}),this}setOptions(A){return this.defaults=F(F({},this.defaults),A),this}lexer(A,e){return Ge.lex(A,e!=null?e:this.defaults)}parser(A,e){return Ze.parse(A,e!=null?e:this.defaults)}parseMarkdown(A){return(e,t)=>{let n=F({},t),r=F(F({},this.defaults),n),s=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&n.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=A),r.async)return I(this,null,function*(){let o=r.hooks?yield r.hooks.preprocess(e):e,a=yield(r.hooks?yield r.hooks.provideLexer(A):A?Ge.lex:Ge.lexInline)(o,r),i=r.hooks?yield r.hooks.processAllTokens(a):a;r.walkTokens&&(yield Promise.all(this.walkTokens(i,r.walkTokens)));let c=yield(r.hooks?yield r.hooks.provideParser(A):A?Ze.parse:Ze.parseInline)(i,r);return r.hooks?yield r.hooks.postprocess(c):c}).catch(s);try{r.hooks&&(e=r.hooks.preprocess(e));let o=(r.hooks?r.hooks.provideLexer(A):A?Ge.lex:Ge.lexInline)(e,r);r.hooks&&(o=r.hooks.processAllTokens(o)),r.walkTokens&&this.walkTokens(o,r.walkTokens);let a=(r.hooks?r.hooks.provideParser(A):A?Ze.parse:Ze.parseInline)(o,r);return r.hooks&&(a=r.hooks.postprocess(a)),a}catch(o){return s(o)}}}onError(A,e){return t=>{if(t.message+=`
1914
+ Please report this to https://github.com/markedjs/marked.`,A){let n="<p>An error occurred:</p><pre>"+pt(t.message+"",!0)+"</pre>";return e?Promise.resolve(n):n}if(e)return Promise.reject(t);throw t}}},Cn=new zv;function pA(A,e){return Cn.parse(A,e)}pA.options=pA.setOptions=function(A){return Cn.setOptions(A),pA.defaults=Cn.defaults,gh(pA.defaults),pA},pA.getDefaults=wc,pA.defaults=wn;function Vv(...A){return Cn.use(...A),pA.defaults=Cn.defaults,gh(pA.defaults),pA}pA.use=Vv,pA.walkTokens=function(A,e){return Cn.walkTokens(A,e)},pA.parseInline=Cn.parseInline,pA.Parser=Ze,pA.parser=Ze.parse,pA.Renderer=Yo,pA.TextRenderer=kc,pA.Lexer=Ge,pA.lexer=Ge.lex,pA.Tokenizer=jo,pA.Hooks=os,pA.parse=pA,pA.options,pA.setOptions,pA.walkTokens,pA.parseInline,Ze.parse,Ge.lex;/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Th,setPrototypeOf:Hh,isFrozen:Gv,getPrototypeOf:Zv,getOwnPropertyDescriptor:Xv}=Object;let{freeze:ce,seal:Te,create:Fc}=Object,{apply:vc,construct:_c}=typeof Reflect!="undefined"&&Reflect;ce||(ce=function(e){return e}),Te||(Te=function(e){return e}),vc||(vc=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];return e.apply(t,r)}),_c||(_c=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const qo=ue(Array.prototype.forEach),Wv=ue(Array.prototype.lastIndexOf),Lh=ue(Array.prototype.pop),is=ue(Array.prototype.push),Jv=ue(Array.prototype.splice),Ai=ue(String.prototype.toLowerCase),xc=ue(String.prototype.toString),Sc=ue(String.prototype.match),as=ue(String.prototype.replace),jv=ue(String.prototype.indexOf),Yv=ue(String.prototype.trim),Xe=ue(Object.prototype.hasOwnProperty),le=ue(RegExp.prototype.test),cs=qv(TypeError);function ue(A){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return vc(A,e,n)}}function qv(A){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _c(A,t)}}function eA(A,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ai;Hh&&Hh(A,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const s=t(r);s!==r&&(Gv(e)||(e[n]=s),r=s)}A[r]=!0}return A}function A_(A){for(let e=0;e<A.length;e++)Xe(A,e)||(A[e]=null);return A}function ht(A){const e=Fc(null);for(const[t,n]of Th(A))Xe(A,t)&&(Array.isArray(n)?e[t]=A_(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=ht(n):e[t]=n);return e}function ls(A,e){for(;A!==null;){const n=Xv(A,e);if(n){if(n.get)return ue(n.get);if(typeof n.value=="function")return ue(n.value)}A=Zv(A)}function t(){return null}return t}const Rh=ce(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ic=ce(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Tc=ce(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),e_=ce(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Hc=ce(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),t_=ce(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Dh=ce(["#text"]),Oh=ce(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Lc=ce(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ph=ce(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ei=ce(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),n_=Te(/\{\{[\w\W]*|[\w\W]*\}\}/gm),r_=Te(/<%[\w\W]*|[\w\W]*%>/gm),s_=Te(/\$\{[\w\W]*/gm),o_=Te(/^data-[\-\w.\u00B7-\uFFFF]+$/),i_=Te(/^aria-[\-\w]+$/),Mh=Te(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),a_=Te(/^(?:\w+script|data):/i),c_=Te(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Nh=Te(/^html$/i),l_=Te(/^[a-z][.\w]*(-[.\w]+)+$/i);var Kh=Object.freeze({__proto__:null,ARIA_ATTR:i_,ATTR_WHITESPACE:c_,CUSTOM_ELEMENT:l_,DATA_ATTR:o_,DOCTYPE_NAME:Nh,ERB_EXPR:r_,IS_ALLOWED_URI:Mh,IS_SCRIPT_OR_DATA:a_,MUSTACHE_EXPR:n_,TMPLIT_EXPR:s_});const us={element:1,text:3,progressingInstruction:7,comment:8,document:9},u_=function(){return typeof window=="undefined"?null:window},d_=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch(o){return console.warn("TrustedTypes policy "+s+" could not be created."),null}},$h=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function zh(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u_();const e=G=>zh(G);if(e.version="3.3.1",e.removed=[],!A||!A.document||A.document.nodeType!==us.document||!A.Element)return e.isSupported=!1,e;let{document:t}=A;const n=t,r=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:i,NodeFilter:c,NamedNodeMap:u=A.NamedNodeMap||A.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:g}=A,m=i.prototype,b=ls(m,"cloneNode"),E=ls(m,"remove"),k=ls(m,"nextSibling"),v=ls(m,"childNodes"),y=ls(m,"parentNode");if(typeof o=="function"){const G=t.createElement("template");G.content&&G.content.ownerDocument&&(t=G.content.ownerDocument)}let U,x="";const{implementation:R,createNodeIterator:H,createDocumentFragment:X,getElementsByTagName:N}=t,{importNode:W}=n;let K=$h();e.isSupported=typeof Th=="function"&&typeof y=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:nA,ERB_EXPR:hA,TMPLIT_EXPR:_A,DATA_ATTR:jA,ARIA_ATTR:he,IS_SCRIPT_OR_DATA:Ye,ATTR_WHITESPACE:xn,CUSTOM_ELEMENT:bs}=Kh;let{IS_ALLOWED_URI:Br}=Kh,xA=null;const wr=eA({},[...Rh,...Ic,...Tc,...Hc,...Dh]);let SA=null;const St=eA({},[...Oh,...Lc,...Ph,...ei]);let lA=Object.seal(Fc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),YA=null,qe=null;const be=Object.seal(Fc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let IA=!0,OA=!0,Sn=!1,In=!0,GA=!1,wt=!0,De=!1,Oe=!1,It=!1,At=!1,mt=!1,Ct=!1,Tn=!0,en=!1;const mr="user-content-";let ZA=!0,bt=!1,et={},fe=null;const Qs=eA({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let BA=null;const Qi=eA({},["audio","video","img","source","image","track"]);let ys=null;const yi=eA({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Cr="http://www.w3.org/1998/Math/MathML",br="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let tn=tt,Hn=!1,Ln=null;const Jc=eA({},[Cr,br,tt],xc);let Qr=eA({},["mi","mo","mn","ms","mtext"]),yr=eA({},["annotation-xml"]);const jc=eA({},["title","style","font","a","script"]);let Tt=null;const nt=["application/xhtml+xml","text/html"],Yc="text/html";let wA=null,nn=null;const Ui=t.createElement("form"),Us=function(Q){return Q instanceof RegExp||Q instanceof Function},Ur=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(nn&&nn===Q)){if((!Q||typeof Q!="object")&&(Q={}),Q=ht(Q),Tt=nt.indexOf(Q.PARSER_MEDIA_TYPE)===-1?Yc:Q.PARSER_MEDIA_TYPE,wA=Tt==="application/xhtml+xml"?xc:Ai,xA=Xe(Q,"ALLOWED_TAGS")?eA({},Q.ALLOWED_TAGS,wA):wr,SA=Xe(Q,"ALLOWED_ATTR")?eA({},Q.ALLOWED_ATTR,wA):St,Ln=Xe(Q,"ALLOWED_NAMESPACES")?eA({},Q.ALLOWED_NAMESPACES,xc):Jc,ys=Xe(Q,"ADD_URI_SAFE_ATTR")?eA(ht(yi),Q.ADD_URI_SAFE_ATTR,wA):yi,BA=Xe(Q,"ADD_DATA_URI_TAGS")?eA(ht(Qi),Q.ADD_DATA_URI_TAGS,wA):Qi,fe=Xe(Q,"FORBID_CONTENTS")?eA({},Q.FORBID_CONTENTS,wA):Qs,YA=Xe(Q,"FORBID_TAGS")?eA({},Q.FORBID_TAGS,wA):ht({}),qe=Xe(Q,"FORBID_ATTR")?eA({},Q.FORBID_ATTR,wA):ht({}),et=Xe(Q,"USE_PROFILES")?Q.USE_PROFILES:!1,IA=Q.ALLOW_ARIA_ATTR!==!1,OA=Q.ALLOW_DATA_ATTR!==!1,Sn=Q.ALLOW_UNKNOWN_PROTOCOLS||!1,In=Q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,GA=Q.SAFE_FOR_TEMPLATES||!1,wt=Q.SAFE_FOR_XML!==!1,De=Q.WHOLE_DOCUMENT||!1,At=Q.RETURN_DOM||!1,mt=Q.RETURN_DOM_FRAGMENT||!1,Ct=Q.RETURN_TRUSTED_TYPE||!1,It=Q.FORCE_BODY||!1,Tn=Q.SANITIZE_DOM!==!1,en=Q.SANITIZE_NAMED_PROPS||!1,ZA=Q.KEEP_CONTENT!==!1,bt=Q.IN_PLACE||!1,Br=Q.ALLOWED_URI_REGEXP||Mh,tn=Q.NAMESPACE||tt,Qr=Q.MATHML_TEXT_INTEGRATION_POINTS||Qr,yr=Q.HTML_INTEGRATION_POINTS||yr,lA=Q.CUSTOM_ELEMENT_HANDLING||{},Q.CUSTOM_ELEMENT_HANDLING&&Us(Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(lA.tagNameCheck=Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&Us(Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(lA.attributeNameCheck=Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&typeof Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(lA.allowCustomizedBuiltInElements=Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),GA&&(OA=!1),mt&&(At=!0),et&&(xA=eA({},Dh),SA=[],et.html===!0&&(eA(xA,Rh),eA(SA,Oh)),et.svg===!0&&(eA(xA,Ic),eA(SA,Lc),eA(SA,ei)),et.svgFilters===!0&&(eA(xA,Tc),eA(SA,Lc),eA(SA,ei)),et.mathMl===!0&&(eA(xA,Hc),eA(SA,Ph),eA(SA,ei))),Q.ADD_TAGS&&(typeof Q.ADD_TAGS=="function"?be.tagCheck=Q.ADD_TAGS:(xA===wr&&(xA=ht(xA)),eA(xA,Q.ADD_TAGS,wA))),Q.ADD_ATTR&&(typeof Q.ADD_ATTR=="function"?be.attributeCheck=Q.ADD_ATTR:(SA===St&&(SA=ht(SA)),eA(SA,Q.ADD_ATTR,wA))),Q.ADD_URI_SAFE_ATTR&&eA(ys,Q.ADD_URI_SAFE_ATTR,wA),Q.FORBID_CONTENTS&&(fe===Qs&&(fe=ht(fe)),eA(fe,Q.FORBID_CONTENTS,wA)),Q.ADD_FORBID_CONTENTS&&(fe===Qs&&(fe=ht(fe)),eA(fe,Q.ADD_FORBID_CONTENTS,wA)),ZA&&(xA["#text"]=!0),De&&eA(xA,["html","head","body"]),xA.table&&(eA(xA,["tbody"]),delete YA.tbody),Q.TRUSTED_TYPES_POLICY){if(typeof Q.TRUSTED_TYPES_POLICY.createHTML!="function")throw cs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');U=Q.TRUSTED_TYPES_POLICY,x=U.createHTML("")}else U===void 0&&(U=d_(g,r)),U!==null&&typeof x=="string"&&(x=U.createHTML(""));ce&&ce(Q),nn=Q}},Es=eA({},[...Ic,...Tc,...e_]),Ei=eA({},[...Hc,...t_]),qc=function(Q){let T=y(Q);(!T||!T.tagName)&&(T={namespaceURI:tn,tagName:"template"});const P=Ai(Q.tagName),fA=Ai(T.tagName);return Ln[Q.namespaceURI]?Q.namespaceURI===br?T.namespaceURI===tt?P==="svg":T.namespaceURI===Cr?P==="svg"&&(fA==="annotation-xml"||Qr[fA]):!!Es[P]:Q.namespaceURI===Cr?T.namespaceURI===tt?P==="math":T.namespaceURI===br?P==="math"&&yr[fA]:!!Ei[P]:Q.namespaceURI===tt?T.namespaceURI===br&&!yr[fA]||T.namespaceURI===Cr&&!Qr[fA]?!1:!Ei[P]&&(jc[P]||!Es[P]):!!(Tt==="application/xhtml+xml"&&Ln[Q.namespaceURI]):!1},Pe=function(Q){is(e.removed,{element:Q});try{y(Q).removeChild(Q)}catch(T){E(Q)}},Me=function(Q,T){try{is(e.removed,{attribute:T.getAttributeNode(Q),from:T})}catch(P){is(e.removed,{attribute:null,from:T})}if(T.removeAttribute(Q),Q==="is")if(At||mt)try{Pe(T)}catch(P){}else try{T.setAttribute(Q,"")}catch(P){}},ki=function(Q){let T=null,P=null;if(It)Q="<remove></remove>"+Q;else{const TA=Sc(Q,/^[\r\n\t ]+/);P=TA&&TA[0]}Tt==="application/xhtml+xml"&&tn===tt&&(Q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Q+"</body></html>");const fA=U?U.createHTML(Q):Q;if(tn===tt)try{T=new f().parseFromString(fA,Tt)}catch(TA){}if(!T||!T.documentElement){T=R.createDocument(tn,"template",null);try{T.documentElement.innerHTML=Hn?x:fA}catch(TA){}}const qA=T.body||T.documentElement;return Q&&P&&qA.insertBefore(t.createTextNode(P),qA.childNodes[0]||null),tn===tt?N.call(T,De?"html":"body")[0]:De?T.documentElement:qA},ks=function(Q){return H.call(Q.ownerDocument||Q,Q,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Fs=function(Q){return Q instanceof h&&(typeof Q.nodeName!="string"||typeof Q.textContent!="string"||typeof Q.removeChild!="function"||!(Q.attributes instanceof u)||typeof Q.removeAttribute!="function"||typeof Q.setAttribute!="function"||typeof Q.namespaceURI!="string"||typeof Q.insertBefore!="function"||typeof Q.hasChildNodes!="function")},Fi=function(Q){return typeof a=="function"&&Q instanceof a};function rt(G,Q,T){qo(G,P=>{P.call(e,Q,T,nn)})}const vi=function(Q){let T=null;if(rt(K.beforeSanitizeElements,Q,null),Fs(Q))return Pe(Q),!0;const P=wA(Q.nodeName);if(rt(K.uponSanitizeElement,Q,{tagName:P,allowedTags:xA}),wt&&Q.hasChildNodes()&&!Fi(Q.firstElementChild)&&le(/<[/\w!]/g,Q.innerHTML)&&le(/<[/\w!]/g,Q.textContent)||Q.nodeType===us.progressingInstruction||wt&&Q.nodeType===us.comment&&le(/<[/\w]/g,Q.data))return Pe(Q),!0;if(!(be.tagCheck instanceof Function&&be.tagCheck(P))&&(!xA[P]||YA[P])){if(!YA[P]&&xi(P)&&(lA.tagNameCheck instanceof RegExp&&le(lA.tagNameCheck,P)||lA.tagNameCheck instanceof Function&&lA.tagNameCheck(P)))return!1;if(ZA&&!fe[P]){const fA=y(Q)||Q.parentNode,qA=v(Q)||Q.childNodes;if(qA&&fA){const TA=qA.length;for(let ie=TA-1;ie>=0;--ie){const st=b(qA[ie],!0);st.__removalCount=(Q.__removalCount||0)+1,fA.insertBefore(st,k(Q))}}}return Pe(Q),!0}return Q instanceof i&&!qc(Q)||(P==="noscript"||P==="noembed"||P==="noframes")&&le(/<\/no(script|embed|frames)/i,Q.innerHTML)?(Pe(Q),!0):(GA&&Q.nodeType===us.text&&(T=Q.textContent,qo([nA,hA,_A],fA=>{T=as(T,fA," ")}),Q.textContent!==T&&(is(e.removed,{element:Q.cloneNode()}),Q.textContent=T)),rt(K.afterSanitizeElements,Q,null),!1)},_i=function(Q,T,P){if(Tn&&(T==="id"||T==="name")&&(P in t||P in Ui))return!1;if(!(OA&&!qe[T]&&le(jA,T))){if(!(IA&&le(he,T))){if(!(be.attributeCheck instanceof Function&&be.attributeCheck(T,Q))){if(!SA[T]||qe[T]){if(!(xi(Q)&&(lA.tagNameCheck instanceof RegExp&&le(lA.tagNameCheck,Q)||lA.tagNameCheck instanceof Function&&lA.tagNameCheck(Q))&&(lA.attributeNameCheck instanceof RegExp&&le(lA.attributeNameCheck,T)||lA.attributeNameCheck instanceof Function&&lA.attributeNameCheck(T,Q))||T==="is"&&lA.allowCustomizedBuiltInElements&&(lA.tagNameCheck instanceof RegExp&&le(lA.tagNameCheck,P)||lA.tagNameCheck instanceof Function&&lA.tagNameCheck(P))))return!1}else if(!ys[T]){if(!le(Br,as(P,xn,""))){if(!((T==="src"||T==="xlink:href"||T==="href")&&Q!=="script"&&jv(P,"data:")===0&&BA[Q])){if(!(Sn&&!le(Ye,as(P,xn,"")))){if(P)return!1}}}}}}}return!0},xi=function(Q){return Q!=="annotation-xml"&&Sc(Q,bs)},vs=function(Q){rt(K.beforeSanitizeAttributes,Q,null);const{attributes:T}=Q;if(!T||Fs(Q))return;const P={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:SA,forceKeepAttr:void 0};let fA=T.length;for(;fA--;){const qA=T[fA],{name:TA,namespaceURI:ie,value:st}=qA,Qt=wA(TA),_s=st;let XA=TA==="value"?_s:Yv(_s);if(P.attrName=Qt,P.attrValue=XA,P.keepAttr=!0,P.forceKeepAttr=void 0,rt(K.uponSanitizeAttribute,Q,P),XA=P.attrValue,en&&(Qt==="id"||Qt==="name")&&(Me(TA,Q),XA=mr+XA),wt&&le(/((--!?|])>)|<\/(style|title|textarea)/i,XA)){Me(TA,Q);continue}if(Qt==="attributename"&&Sc(XA,"href")){Me(TA,Q);continue}if(P.forceKeepAttr)continue;if(!P.keepAttr){Me(TA,Q);continue}if(!In&&le(/\/>/i,XA)){Me(TA,Q);continue}GA&&qo([nA,hA,_A],Ii=>{XA=as(XA,Ii," ")});const Si=wA(Q.nodeName);if(!_i(Si,Qt,XA)){Me(TA,Q);continue}if(U&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!ie)switch(g.getAttributeType(Si,Qt)){case"TrustedHTML":{XA=U.createHTML(XA);break}case"TrustedScriptURL":{XA=U.createScriptURL(XA);break}}if(XA!==_s)try{ie?Q.setAttributeNS(ie,TA,XA):Q.setAttribute(TA,XA),Fs(Q)?Pe(Q):Lh(e.removed)}catch(Ii){Me(TA,Q)}}rt(K.afterSanitizeAttributes,Q,null)},Ht=function G(Q){let T=null;const P=ks(Q);for(rt(K.beforeSanitizeShadowDOM,Q,null);T=P.nextNode();)rt(K.uponSanitizeShadowNode,T,null),vi(T),vs(T),T.content instanceof s&&G(T.content);rt(K.afterSanitizeShadowDOM,Q,null)};return e.sanitize=function(G){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=null,P=null,fA=null,qA=null;if(Hn=!G,Hn&&(G="<!-->"),typeof G!="string"&&!Fi(G))if(typeof G.toString=="function"){if(G=G.toString(),typeof G!="string")throw cs("dirty is not a string, aborting")}else throw cs("toString is not a function");if(!e.isSupported)return G;if(Oe||Ur(Q),e.removed=[],typeof G=="string"&&(bt=!1),bt){if(G.nodeName){const st=wA(G.nodeName);if(!xA[st]||YA[st])throw cs("root node is forbidden and cannot be sanitized in-place")}}else if(G instanceof a)T=ki("<!---->"),P=T.ownerDocument.importNode(G,!0),P.nodeType===us.element&&P.nodeName==="BODY"||P.nodeName==="HTML"?T=P:T.appendChild(P);else{if(!At&&!GA&&!De&&G.indexOf("<")===-1)return U&&Ct?U.createHTML(G):G;if(T=ki(G),!T)return At?null:Ct?x:""}T&&It&&Pe(T.firstChild);const TA=ks(bt?G:T);for(;fA=TA.nextNode();)vi(fA),vs(fA),fA.content instanceof s&&Ht(fA.content);if(bt)return G;if(At){if(mt)for(qA=X.call(T.ownerDocument);T.firstChild;)qA.appendChild(T.firstChild);else qA=T;return(SA.shadowroot||SA.shadowrootmode)&&(qA=W.call(n,qA,!0)),qA}let ie=De?T.outerHTML:T.innerHTML;return De&&xA["!doctype"]&&T.ownerDocument&&T.ownerDocument.doctype&&T.ownerDocument.doctype.name&&le(Nh,T.ownerDocument.doctype.name)&&(ie="<!DOCTYPE "+T.ownerDocument.doctype.name+`>
1915
+ `+ie),GA&&qo([nA,hA,_A],st=>{ie=as(ie,st," ")}),U&&Ct?U.createHTML(ie):ie},e.setConfig=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ur(G),Oe=!0},e.clearConfig=function(){nn=null,Oe=!1},e.isValidAttribute=function(G,Q,T){nn||Ur({});const P=wA(G),fA=wA(Q);return _i(P,fA,T)},e.addHook=function(G,Q){typeof Q=="function"&&is(K[G],Q)},e.removeHook=function(G,Q){if(Q!==void 0){const T=Wv(K[G],Q);return T===-1?void 0:Jv(K[G],T,1)[0]}return Lh(K[G])},e.removeHooks=function(G){K[G]=[]},e.removeAllHooks=function(){K=$h()},e}var p_=zh();function Vh(A){const e=pA.parse(A,{gfm:!0,breaks:!0,async:!1});return p_.sanitize(e)}function h_(A){return I(this,null,function*(){var s;try{(s=A.focus)==null||s.call(A)}catch(o){}A.scrollIntoView({block:"center",inline:"center",behavior:"instant"});let e=A.getBoundingClientRect();e.width===0&&e.height===0&&(yield f_(),e=A.getBoundingClientRect());const t=e.left+e.width/2,n=e.top+e.height/2,r={bubbles:!0,cancelable:!0,clientX:t,clientY:n};typeof PointerEvent=="function"&&A.dispatchEvent(new PointerEvent("pointerdown",r)),A.dispatchEvent(new MouseEvent("mousedown",r)),typeof PointerEvent=="function"&&A.dispatchEvent(new PointerEvent("pointerup",r)),A.dispatchEvent(new MouseEvent("mouseup",r)),A.click()})}function f_(){return new Promise(A=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>A()):setTimeout(A,16)})}function g_(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var Rc={exports:{}};/*!
1902
1916
  * Pusher JavaScript Library v8.5.0
1903
1917
  * https://pusher.com/
1904
1918
  *
1905
1919
  * Copyright 2020, Pusher
1906
1920
  * Released under the MIT licence.
1907
- */var Oh;function o_(){return Oh||(Oh=1,(function(A,e){(function(n,r){A.exports=r()})(self,()=>(()=>{var t={594(o,a){var i=this&&this.__extends||(function(){var v=function(F,y){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,R){x.__proto__=R}||function(x,R){for(var I in R)R.hasOwnProperty(I)&&(x[I]=R[I])},v(F,y)};return function(F,y){v(F,y);function x(){this.constructor=F}F.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}})();Object.defineProperty(a,"__esModule",{value:!0});var l=256,u=(function(){function v(F){F===void 0&&(F="="),this._paddingCharacter=F}return v.prototype.encodedLength=function(F){return this._paddingCharacter?(F+2)/3*4|0:(F*8+5)/6|0},v.prototype.encode=function(F){for(var y="",x=0;x<F.length-2;x+=3){var R=F[x]<<16|F[x+1]<<8|F[x+2];y+=this._encodeByte(R>>>18&63),y+=this._encodeByte(R>>>12&63),y+=this._encodeByte(R>>>6&63),y+=this._encodeByte(R>>>0&63)}var I=F.length-x;if(I>0){var R=F[x]<<16|(I===2?F[x+1]<<8:0);y+=this._encodeByte(R>>>18&63),y+=this._encodeByte(R>>>12&63),I===2?y+=this._encodeByte(R>>>6&63):y+=this._paddingCharacter||"",y+=this._paddingCharacter||""}return y},v.prototype.maxDecodedLength=function(F){return this._paddingCharacter?F/4*3|0:(F*6+7)/8|0},v.prototype.decodedLength=function(F){return this.maxDecodedLength(F.length-this._getPaddingLength(F))},v.prototype.decode=function(F){if(F.length===0)return new Uint8Array(0);for(var y=this._getPaddingLength(F),x=F.length-y,R=new Uint8Array(this.maxDecodedLength(x)),I=0,K=0,N=0,Z=0,X=0,aA=0,fA=0;K<x-4;K+=4)Z=this._decodeChar(F.charCodeAt(K+0)),X=this._decodeChar(F.charCodeAt(K+1)),aA=this._decodeChar(F.charCodeAt(K+2)),fA=this._decodeChar(F.charCodeAt(K+3)),R[I++]=Z<<2|X>>>4,R[I++]=X<<4|aA>>>2,R[I++]=aA<<6|fA,N|=Z&l,N|=X&l,N|=aA&l,N|=fA&l;if(K<x-1&&(Z=this._decodeChar(F.charCodeAt(K)),X=this._decodeChar(F.charCodeAt(K+1)),R[I++]=Z<<2|X>>>4,N|=Z&l,N|=X&l),K<x-2&&(aA=this._decodeChar(F.charCodeAt(K+2)),R[I++]=X<<4|aA>>>2,N|=aA&l),K<x-3&&(fA=this._decodeChar(F.charCodeAt(K+3)),R[I++]=aA<<6|fA,N|=fA&l),N!==0)throw new Error("Base64Coder: incorrect characters for decoding");return R},v.prototype._encodeByte=function(F){var y=F;return y+=65,y+=25-F>>>8&6,y+=51-F>>>8&-75,y+=61-F>>>8&-15,y+=62-F>>>8&3,String.fromCharCode(y)},v.prototype._decodeChar=function(F){var y=l;return y+=(42-F&F-44)>>>8&-l+F-43+62,y+=(46-F&F-48)>>>8&-l+F-47+63,y+=(47-F&F-58)>>>8&-l+F-48+52,y+=(64-F&F-91)>>>8&-l+F-65+0,y+=(96-F&F-123)>>>8&-l+F-97+26,y},v.prototype._getPaddingLength=function(F){var y=0;if(this._paddingCharacter){for(var x=F.length-1;x>=0&&F[x]===this._paddingCharacter;x--)y++;if(F.length<4||y>2)throw new Error("Base64Coder: incorrect padding")}return y},v})();a.Coder=u;var h=new u;function f(v){return h.encode(v)}a.encode=f;function g(v){return h.decode(v)}a.decode=g;var m=(function(v){i(F,v);function F(){return v!==null&&v.apply(this,arguments)||this}return F.prototype._encodeByte=function(y){var x=y;return x+=65,x+=25-y>>>8&6,x+=51-y>>>8&-75,x+=61-y>>>8&-13,x+=62-y>>>8&49,String.fromCharCode(x)},F.prototype._decodeChar=function(y){var x=l;return x+=(44-y&y-46)>>>8&-l+y-45+62,x+=(94-y&y-96)>>>8&-l+y-95+63,x+=(47-y&y-58)>>>8&-l+y-48+52,x+=(64-y&y-91)>>>8&-l+y-65+0,x+=(96-y&y-123)>>>8&-l+y-97+26,x},F})(u);a.URLSafeCoder=m;var Q=new m;function U(v){return Q.encode(v)}a.encodeURLSafe=U;function E(v){return Q.decode(v)}a.decodeURLSafe=E,a.encodedLength=function(v){return h.encodedLength(v)},a.maxDecodedLength=function(v){return h.maxDecodedLength(v)},a.decodedLength=function(v){return h.decodedLength(v)}},978(o,a){var i="utf8: invalid source encoding";function l(u){for(var h=[],f=0;f<u.length;f++){var g=u[f];if(g&128){var m=void 0;if(g<224){if(f>=u.length)throw new Error(i);var Q=u[++f];if((Q&192)!==128)throw new Error(i);g=(g&31)<<6|Q&63,m=128}else if(g<240){if(f>=u.length-1)throw new Error(i);var Q=u[++f],U=u[++f];if((Q&192)!==128||(U&192)!==128)throw new Error(i);g=(g&15)<<12|(Q&63)<<6|U&63,m=2048}else if(g<248){if(f>=u.length-2)throw new Error(i);var Q=u[++f],U=u[++f],E=u[++f];if((Q&192)!==128||(U&192)!==128||(E&192)!==128)throw new Error(i);g=(g&15)<<18|(Q&63)<<12|(U&63)<<6|E&63,m=65536}else throw new Error(i);if(g<m||g>=55296&&g<=57343)throw new Error(i);if(g>=65536){if(g>1114111)throw new Error(i);g-=65536,h.push(String.fromCharCode(55296|g>>10)),g=56320|g&1023}}h.push(String.fromCharCode(g))}return h.join("")}a.D4=l},721(o,a,i){o.exports=i(207).default},207(o,a,i){i.d(a,{default:()=>xi});class l{constructor(c,d){this.lastId=0,this.prefix=c,this.name=d}create(c){this.lastId++;var d=this.lastId,B=this.prefix+d,C=this.name+"["+d+"]",S=!1,D=function(){S||(c.apply(null,arguments),S=!0)};return this[d]=D,{number:d,id:B,name:C,callback:D}}remove(c){delete this[c.number]}}var u=new l("_pusher_script_","Pusher.ScriptReceivers"),h={VERSION:"8.5.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""};const f=h;class g{constructor(c){this.options=c,this.receivers=c.receivers||u,this.loading={}}load(c,d,B){var C=this;if(C.loading[c]&&C.loading[c].length>0)C.loading[c].push(B);else{C.loading[c]=[B];var S=q.createScriptRequest(C.getPath(c,d)),D=C.receivers.create(function(z){if(C.receivers.remove(D),C.loading[c]){var Y=C.loading[c];delete C.loading[c];for(var sA=function(KA){KA||S.cleanup()},lA=0;lA<Y.length;lA++)Y[lA](z,sA)}});S.send(D)}}getRoot(c){var d,B=q.getDocument().location.protocol;return c&&c.useTLS||B==="https:"?d=this.options.cdn_https:d=this.options.cdn_http,d.replace(/\/*$/,"")+"/"+this.options.version}getPath(c,d){return this.getRoot(d)+"/"+c+this.options.suffix+".js"}}var m=new l("_pusher_dependencies","Pusher.DependenciesReceivers"),Q=new g({cdn_http:f.cdn_http,cdn_https:f.cdn_https,version:f.VERSION,suffix:f.dependency_suffix,receivers:m});const U={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},v={buildLogSuffix:function(p){const c="See:",d=U.urls[p];if(!d)return"";let B;return d.fullUrl?B=d.fullUrl:d.path&&(B=U.baseUrl+d.path),B?`${c} ${B}`:""}};var F;(function(p){p.UserAuthentication="user-authentication",p.ChannelAuthorization="channel-authorization"})(F||(F={}));class y extends Error{constructor(c){super(c),Object.setPrototypeOf(this,new.target.prototype)}}class x extends Error{constructor(c){super(c),Object.setPrototypeOf(this,new.target.prototype)}}class R extends Error{constructor(c){super(c),Object.setPrototypeOf(this,new.target.prototype)}}class I extends Error{constructor(c){super(c),Object.setPrototypeOf(this,new.target.prototype)}}class K extends Error{constructor(c){super(c),Object.setPrototypeOf(this,new.target.prototype)}}class N extends Error{constructor(c){super(c),Object.setPrototypeOf(this,new.target.prototype)}}class Z extends Error{constructor(c){super(c),Object.setPrototypeOf(this,new.target.prototype)}}class X extends Error{constructor(c){super(c),Object.setPrototypeOf(this,new.target.prototype)}}class aA extends Error{constructor(c,d){super(d),this.status=c,Object.setPrototypeOf(this,new.target.prototype)}}const PA=function(p,c,d,B,C){const S=q.createXHR();S.open("POST",d.endpoint,!0),S.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var D in d.headers)S.setRequestHeader(D,d.headers[D]);if(d.headersProvider!=null){let z=d.headersProvider();for(var D in z)S.setRequestHeader(D,z[D])}return S.onreadystatechange=function(){if(S.readyState===4)if(S.status===200){let z,Y=!1;try{z=JSON.parse(S.responseText),Y=!0}catch(sA){C(new aA(200,`JSON returned from ${B.toString()} endpoint was invalid, yet status code was 200. Data was: ${S.responseText}`),null)}Y&&C(null,z)}else{let z="";switch(B){case F.UserAuthentication:z=v.buildLogSuffix("authenticationEndpoint");break;case F.ChannelAuthorization:z=`Clients must be authorized to join private or presence channels. ${v.buildLogSuffix("authorizationEndpoint")}`;break}C(new aA(S.status,`Unable to retrieve auth string from ${B.toString()} endpoint - received status: ${S.status} from ${d.endpoint}. ${z}`),null)}},S.send(c),S};function Ce(p){return bA(fs(p))}var pe=String.fromCharCode,Je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pr=function(p){var c=p.charCodeAt(0);return c<128?p:c<2048?pe(192|c>>>6)+pe(128|c&63):pe(224|c>>>12&15)+pe(128|c>>>6&63)+pe(128|c&63)},fs=function(p){return p.replace(/[^\x00-\x7F]/g,pr)},ht=function(p){var c=[0,2,1][p.length%3],d=p.charCodeAt(0)<<16|(p.length>1?p.charCodeAt(1):0)<<8|(p.length>2?p.charCodeAt(2):0),B=[Je.charAt(d>>>18),Je.charAt(d>>>12&63),c>=2?"=":Je.charAt(d>>>6&63),c>=1?"=":Je.charAt(d&63)];return B.join("")},bA=window.btoa||function(p){return p.replace(/[\s\S]{1,3}/g,ht)};class ft{constructor(c,d,B,C){this.clear=d,this.timer=c(()=>{this.timer&&(this.timer=C(this.timer))},B)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}const gA=ft;function En(p){window.clearTimeout(p)}function BA(p){window.clearInterval(p)}class se extends gA{constructor(c,d){super(setTimeout,En,c,function(B){return d(),null})}}class Fn extends gA{constructor(c,d){super(setInterval,BA,c,function(B){return d(),B})}}var je={now(){return Date.now?Date.now():new Date().valueOf()},defer(p){return new se(0,p)},method(p,...c){var d=Array.prototype.slice.call(arguments,1);return function(B){return B[p].apply(B,d.concat(arguments))}}};const SA=je;function OA(p,...c){for(var d=0;d<c.length;d++){var B=c[d];for(var C in B)B[C]&&B[C].constructor&&B[C].constructor===Object?p[C]=OA(p[C]||{},B[C]):p[C]=B[C]}return p}function kn(){for(var p=["Pusher"],c=0;c<arguments.length;c++)typeof arguments[c]=="string"?p.push(arguments[c]):p.push(he(arguments[c]));return p.join(" : ")}function Wt(p,c){var d=Array.prototype.indexOf;if(p===null)return-1;if(d&&p.indexOf===d)return p.indexOf(c);for(var B=0,C=p.length;B<C;B++)if(p[B]===c)return B;return-1}function ZA(p,c){for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&c(p[d],d,p)}function gt(p){var c=[];return ZA(p,function(d,B){c.push(B)}),c}function De(p){var c=[];return ZA(p,function(d){c.push(d)}),c}function Re(p,c,d){for(var B=0;B<p.length;B++)c.call(d||window,p[B],B,p)}function Ft(p,c){for(var d=[],B=0;B<p.length;B++)d.push(c(p[B],B,p,d));return d}function IA(p,c){var d={};return ZA(p,function(B,C){d[C]=c(B)}),d}function Bt(p,c){c=c||function(C){return!!C};for(var d=[],B=0;B<p.length;B++)c(p[B],B,p,d)&&d.push(p[B]);return d}function vn(p,c){var d={};return ZA(p,function(B,C){(c&&c(B,C,p,d)||B)&&(d[C]=B)}),d}function gi(p){var c=[];return ZA(p,function(d,B){c.push([B,d])}),c}function gs(p,c){for(var d=0;d<p.length;d++)if(c(p[d],d,p))return!0;return!1}function zc(p,c){for(var d=0;d<p.length;d++)if(!c(p[d],d,p))return!1;return!0}function Bs(p){return IA(p,function(c){return typeof c=="object"&&(c=he(c)),encodeURIComponent(Ce(c.toString()))})}function _n(p){var c=vn(p,function(B){return B!==void 0}),d=Ft(gi(Bs(c)),SA.method("join","=")).join("&");return d}function Jt(p){var c=[],d=[];return(function B(C,S){var D,z,Y;switch(typeof C){case"object":if(!C)return null;for(D=0;D<c.length;D+=1)if(c[D]===C)return{$ref:d[D]};if(c.push(C),d.push(S),Object.prototype.toString.apply(C)==="[object Array]")for(Y=[],D=0;D<C.length;D+=1)Y[D]=B(C[D],S+"["+D+"]");else{Y={};for(z in C)Object.prototype.hasOwnProperty.call(C,z)&&(Y[z]=B(C[z],S+"["+JSON.stringify(z)+"]"))}return Y;case"number":case"string":case"boolean":return C}})(p,"$")}function he(p){try{return JSON.stringify(p)}catch(c){return JSON.stringify(Jt(p))}}class ws{constructor(){this.globalLog=c=>{window.console&&window.console.log&&window.console.log(c)}}debug(...c){this.log(this.globalLog,c)}warn(...c){this.log(this.globalLogWarn,c)}error(...c){this.log(this.globalLogError,c)}globalLogWarn(c){window.console&&window.console.warn?window.console.warn(c):this.globalLog(c)}globalLogError(c){window.console&&window.console.error?window.console.error(c):this.globalLogWarn(c)}log(c,...d){var B=kn.apply(this,arguments);xi.log?xi.log(B):xi.logToConsole&&c.bind(this)(B)}}const wA=new ws;var Bi=function(p,c,d,B,C){(d.headers!==void 0||d.headersProvider!=null)&&wA.warn(`To send headers with the ${B.toString()} request, you must use AJAX, rather than JSONP.`);var S=p.nextAuthCallbackID.toString();p.nextAuthCallbackID++;var D=p.getDocument(),z=D.createElement("script");p.auth_callbacks[S]=function(lA){C(null,lA)};var Y="Pusher.auth_callbacks['"+S+"']";z.src=d.endpoint+"?callback="+encodeURIComponent(Y)+"&"+c;var sA=D.getElementsByTagName("head")[0]||D.documentElement;sA.insertBefore(z,sA.firstChild)};const ms=Bi;class wi{constructor(c){this.src=c}send(c){var d=this,B="Error loading "+d.src;d.script=document.createElement("script"),d.script.id=c.id,d.script.src=d.src,d.script.type="text/javascript",d.script.charset="UTF-8",d.script.addEventListener?(d.script.onerror=function(){c.callback(B)},d.script.onload=function(){c.callback(null)}):d.script.onreadystatechange=function(){(d.script.readyState==="loaded"||d.script.readyState==="complete")&&c.callback(null)},d.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(d.errorScript=document.createElement("script"),d.errorScript.id=c.id+"_error",d.errorScript.text=c.name+"('"+B+"');",d.script.async=d.errorScript.async=!1):d.script.async=!0;var C=document.getElementsByTagName("head")[0];C.insertBefore(d.script,C.firstChild),d.errorScript&&C.insertBefore(d.errorScript,d.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class hr{constructor(c,d){this.url=c,this.data=d}send(c){if(!this.request){var d=_n(this.data),B=this.url+"/"+c.number+"?"+d;this.request=q.createScriptRequest(B),this.request.send(c)}}cleanup(){this.request&&this.request.cleanup()}}var fr=function(p,c){return function(d,B){var C="http"+(c?"s":"")+"://",S=C+(p.host||p.options.host)+p.options.path,D=q.createJSONPRequest(S,d),z=q.ScriptReceivers.create(function(Y,sA){u.remove(z),D.cleanup(),sA&&sA.host&&(p.host=sA.host),B&&B(Y,sA)});D.send(z)}},Ye={name:"jsonp",getAgent:fr};const jt=Ye;function xn(p,c,d){var B=p+(c.useTLS?"s":""),C=c.useTLS?c.hostTLS:c.hostNonTLS;return B+"://"+C+d}function Sn(p,c){var d="/app/"+p,B="?protocol="+f.PROTOCOL+"&client=js&version="+f.VERSION+(c?"&"+c:"");return d+B}var $c={getInitial:function(p,c){var d=(c.httpPath||"")+Sn(p,"flash=false");return xn("ws",c,d)}},gr={getInitial:function(p,c){var d=(c.httpPath||"/pusher")+Sn(p);return xn("http",c,d)}},Br={getInitial:function(p,c){return xn("http",c,c.httpPath||"/pusher")},getPath:function(p,c){return Sn(p)}};class Gc{constructor(){this._callbacks={}}get(c){return this._callbacks[kt(c)]}add(c,d,B){var C=kt(c);this._callbacks[C]=this._callbacks[C]||[],this._callbacks[C].push({fn:d,context:B})}remove(c,d,B){if(!c&&!d&&!B){this._callbacks={};return}var C=c?[kt(c)]:gt(this._callbacks);d||B?this.removeCallback(C,d,B):this.removeAllCallbacks(C)}removeCallback(c,d,B){Re(c,function(C){this._callbacks[C]=Bt(this._callbacks[C]||[],function(S){return d&&d!==S.fn||B&&B!==S.context}),this._callbacks[C].length===0&&delete this._callbacks[C]},this)}removeAllCallbacks(c){Re(c,function(d){delete this._callbacks[d]},this)}}function kt(p){return"_"+p}class qe{constructor(c){this.callbacks=new Gc,this.global_callbacks=[],this.failThrough=c}bind(c,d,B){return this.callbacks.add(c,d,B),this}bind_global(c){return this.global_callbacks.push(c),this}unbind(c,d,B){return this.callbacks.remove(c,d,B),this}unbind_global(c){return c?(this.global_callbacks=Bt(this.global_callbacks||[],d=>d!==c),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(c,d,B){for(var C=0;C<this.global_callbacks.length;C++)this.global_callbacks[C](c,d);var S=this.callbacks.get(c),D=[];if(B?D.push(d,B):d&&D.push(d),S&&S.length>0)for(var C=0;C<S.length;C++)S[C].fn.apply(S[C].context||window,D);else this.failThrough&&this.failThrough(c,d);return this}}class Vc extends qe{constructor(c,d,B,C,S){super(),this.initialize=q.transportConnectionInitializer,this.hooks=c,this.name=d,this.priority=B,this.key=C,this.options=S,this.state="new",this.timeline=S.timeline,this.activityTimeout=S.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var c=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(c,this.options)}catch(d){return SA.defer(()=>{this.onError(d),this.changeState("closed")}),!1}return this.bindListeners(),wA.debug("Connecting",{transport:this.name,url:c}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(c){return this.state==="open"?(SA.defer(()=>{this.socket&&this.socket.send(c)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(c){this.emit("error",{type:"WebSocketError",error:c}),this.timeline.error(this.buildTimelineMessage({error:c.toString()}))}onClose(c){c?this.changeState("closed",{code:c.code,reason:c.reason,wasClean:c.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(c){this.emit("message",c)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=c=>{this.onError(c)},this.socket.onclose=c=>{this.onClose(c)},this.socket.onmessage=c=>{this.onMessage(c)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(c,d){this.state=c,this.timeline.info(this.buildTimelineMessage({state:c,params:d})),this.emit(c,d)}buildTimelineMessage(c){return OA({cid:this.id},c)}}class mA{constructor(c){this.hooks=c}isSupported(c){return this.hooks.isSupported(c)}createConnection(c,d,B,C){return new Vc(this.hooks,c,d,B,C)}}var Yt=new mA({urls:$c,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!q.getWebSocketAPI()},isSupported:function(){return!!q.getWebSocketAPI()},getSocket:function(p){return q.createWebSocket(p)}}),mi={urls:gr,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Cs=OA({getSocket:function(p){return q.HTTPFactory.createStreamingSocket(p)}},mi),wr=OA({getSocket:function(p){return q.HTTPFactory.createPollingSocket(p)}},mi),bs={isSupported:function(){return q.isXHRSupported()}},Ci=new mA(OA({},Cs,bs)),Zc=new mA(OA({},wr,bs)),Oe={ws:Yt,xhr_streaming:Ci,xhr_polling:Zc};const Me=Oe;var bi=new mA({file:"sockjs",urls:Br,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(p,c){return new window.SockJS(p,null,{js_path:Q.getPath("sockjs",{useTLS:c.useTLS}),ignore_null_origin:c.ignoreNullOrigin})},beforeOpen:function(p,c){p.send(JSON.stringify({path:c}))}}),Qs={isSupported:function(p){var c=q.isXDRSupported(p.useTLS);return c}},ys=new mA(OA({},Cs,Qs)),Qi=new mA(OA({},wr,Qs));Me.xdr_streaming=ys,Me.xdr_polling=Qi,Me.sockjs=bi;const At=Me;class yi extends qe{constructor(){super();var c=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){c.emit("online")},!1),window.addEventListener("offline",function(){c.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var Ui=new yi;class Ei{constructor(c,d,B){this.manager=c,this.transport=d,this.minPingDelay=B.minPingDelay,this.maxPingDelay=B.maxPingDelay,this.pingDelay=void 0}createConnection(c,d,B,C){C=OA({},C,{activityTimeout:this.pingDelay});var S=this.transport.createConnection(c,d,B,C),D=null,z=function(){S.unbind("open",z),S.bind("closed",Y),D=SA.now()},Y=sA=>{if(S.unbind("closed",Y),sA.code===1002||sA.code===1003)this.manager.reportDeath();else if(!sA.wasClean&&D){var lA=SA.now()-D;lA<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(lA/2,this.minPingDelay))}};return S.bind("open",z),S}isSupported(c){return this.manager.isAlive()&&this.transport.isSupported(c)}}const Us={decodeMessage:function(p){try{var c=JSON.parse(p.data),d=c.data;if(typeof d=="string")try{d=JSON.parse(c.data)}catch(C){}var B={event:c.event,channel:c.channel,data:d};return c.user_id&&(B.user_id=c.user_id),B}catch(C){throw{type:"MessageParseError",error:C,data:p.data}}},encodeMessage:function(p){return JSON.stringify(p)},processHandshake:function(p){var c=Us.decodeMessage(p);if(c.event==="pusher:connection_established"){if(!c.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:c.data.socket_id,activityTimeout:c.data.activity_timeout*1e3}}else{if(c.event==="pusher:error")return{action:this.getCloseAction(c.data),error:this.getCloseError(c.data)};throw"Invalid handshake"}},getCloseAction:function(p){return p.code<4e3?p.code>=1002&&p.code<=1004?"backoff":null:p.code===4e3?"tls_only":p.code<4100?"refused":p.code<4200?"backoff":p.code<4300?"retry":"refused"},getCloseError:function(p){return p.code!==1e3&&p.code!==1001?{type:"PusherError",data:{code:p.code,message:p.reason||p.message}}:null}},vt=Us;class V extends qe{constructor(c,d){super(),this.id=c,this.transport=d,this.activityTimeout=d.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(c){return this.transport.send(c)}send_event(c,d,B){var C={event:c,data:d};return B&&(C.channel=B),wA.debug("Event sent",C),this.send(vt.encodeMessage(C))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var c={message:B=>{var C;try{C=vt.decodeMessage(B)}catch(S){this.emit("error",{type:"MessageParseError",error:S,data:B.data})}if(C!==void 0){switch(wA.debug("Event recd",C),C.event){case"pusher:error":this.emit("error",{type:"PusherError",data:C.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",C)}},activity:()=>{this.emit("activity")},error:B=>{this.emit("error",B)},closed:B=>{d(),B&&B.code&&this.handleCloseEvent(B),this.transport=null,this.emit("closed")}},d=()=>{ZA(c,(B,C)=>{this.transport.unbind(C,B)})};ZA(c,(B,C)=>{this.transport.bind(C,B)})}handleCloseEvent(c){var d=vt.getCloseAction(c),B=vt.getCloseError(c);B&&this.emit("error",B),d&&this.emit(d,{action:d,error:B})}}class b{constructor(c,d){this.transport=c,this.callback=d,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=c=>{this.unbindListeners();var d;try{d=vt.processHandshake(c)}catch(B){this.finish("error",{error:B}),this.transport.close();return}d.action==="connected"?this.finish("connected",{connection:new V(d.id,this.transport),activityTimeout:d.activityTimeout}):(this.finish(d.action,{error:d.error}),this.transport.close())},this.onClosed=c=>{this.unbindListeners();var d=vt.getCloseAction(c)||"backoff",B=vt.getCloseError(c);this.finish(d,{error:B})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(c,d){this.callback(OA({transport:this.transport,action:c},d))}}class H{constructor(c,d){this.timeline=c,this.options=d||{}}send(c,d){this.timeline.isEmpty()||this.timeline.send(q.TimelineTransport.getAgent(this,c),d)}}class M extends qe{constructor(c,d){super(function(B,C){wA.debug("No callbacks on "+c+" for "+B)}),this.name=c,this.pusher=d,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(c,d){return d(null,{auth:""})}trigger(c,d){if(c.indexOf("client-")!==0)throw new y("Event '"+c+"' does not start with 'client-'");if(!this.subscribed){var B=v.buildLogSuffix("triggeringClientEvents");wA.warn(`Client event triggered before channel 'subscription_succeeded' event . ${B}`)}return this.pusher.send_event(c,d,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(c){var d=c.event,B=c.data;if(d==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(c);else if(d==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(c);else if(d.indexOf("pusher_internal:")!==0){var C={};this.emit(d,B,C)}}handleSubscriptionSucceededEvent(c){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",c.data)}handleSubscriptionCountEvent(c){c.data.subscription_count&&(this.subscriptionCount=c.data.subscription_count),this.emit("pusher:subscription_count",c.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(c,d)=>{c?(this.subscriptionPending=!1,wA.error(c.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:c.message},c instanceof aA?{status:c.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:d.auth,channel_data:d.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class pA extends M{authorize(c,d){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:c},d)}}class JA{constructor(){this.reset()}get(c){return Object.prototype.hasOwnProperty.call(this.members,c)?{id:c,info:this.members[c]}:null}each(c){ZA(this.members,(d,B)=>{c(this.get(B))})}setMyID(c){this.myID=c}onSubscription(c){this.members=c.presence.hash,this.count=c.presence.count,this.me=this.get(this.myID)}addMember(c){return this.get(c.user_id)===null&&this.count++,this.members[c.user_id]=c.user_info,this.get(c.user_id)}removeMember(c){var d=this.get(c.user_id);return d&&(delete this.members[c.user_id],this.count--),d}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var TA=function(p,c,d,B){function C(S){return S instanceof d?S:new d(function(D){D(S)})}return new(d||(d=Promise))(function(S,D){function z(lA){try{sA(B.next(lA))}catch(KA){D(KA)}}function Y(lA){try{sA(B.throw(lA))}catch(KA){D(KA)}}function sA(lA){lA.done?S(lA.value):C(lA.value).then(z,Y)}sA((B=B.apply(p,c||[])).next())})};class oe extends pA{constructor(c,d){super(c,d),this.members=new JA}authorize(c,d){super.authorize(c,(B,C)=>TA(this,void 0,void 0,function*(){if(!B)if(C=C,C.channel_data!=null){var S=JSON.parse(C.channel_data);this.members.setMyID(S.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let D=v.buildLogSuffix("authorizationEndpoint");wA.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${D}, or the user should be signed in.`),d("Invalid auth response");return}d(B,C)}))}handleEvent(c){var d=c.event;if(d.indexOf("pusher_internal:")===0)this.handleInternalEvent(c);else{var B=c.data,C={};c.user_id&&(C.user_id=c.user_id),this.emit(d,B,C)}}handleInternalEvent(c){var d=c.event,B=c.data;switch(d){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(c);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(c);break;case"pusher_internal:member_added":var C=this.members.addMember(B);this.emit("pusher:member_added",C);break;case"pusher_internal:member_removed":var S=this.members.removeMember(B);S&&this.emit("pusher:member_removed",S);break}}handleSubscriptionSucceededEvent(c){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(c.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var et=i(978),wt=i(594);class Es extends pA{constructor(c,d,B){super(c,d),this.key=null,this.nacl=B}authorize(c,d){super.authorize(c,(B,C)=>{if(B){d(B,C);return}let S=C.shared_secret;if(!S){d(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=(0,wt.decode)(S),delete C.shared_secret,d(null,C)})}trigger(c,d){throw new N("Client events are not currently supported for encrypted channels")}handleEvent(c){var d=c.event,B=c.data;if(d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0){super.handleEvent(c);return}this.handleEncryptedEvent(d,B)}handleEncryptedEvent(c,d){if(!this.key){wA.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!d.ciphertext||!d.nonce){wA.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+d);return}let B=(0,wt.decode)(d.ciphertext);if(B.length<this.nacl.secretbox.overheadLength){wA.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${B.length}`);return}let C=(0,wt.decode)(d.nonce);if(C.length<this.nacl.secretbox.nonceLength){wA.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${C.length}`);return}let S=this.nacl.secretbox.open(B,C,this.key);if(S===null){wA.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(D,z)=>{if(D){wA.error(`Failed to make a request to the authEndpoint: ${z}. Unable to fetch new key, so dropping encrypted event`);return}if(S=this.nacl.secretbox.open(B,C,this.key),S===null){wA.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(c,this.getDataToEmit(S))});return}this.emit(c,this.getDataToEmit(S))}getDataToEmit(c){let d=(0,et.D4)(c);try{return JSON.parse(d)}catch(B){return d}}}class XA extends qe{constructor(c,d){super(),this.state="initialized",this.connection=null,this.key=c,this.options=d,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var B=q.getNetwork();B.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),B.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(c){this.key=c,this.updateStrategy(),this.retryIn(0)}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(c){return this.connection?this.connection.send(c):!1}send_event(c,d,B){return this.connection?this.connection.send_event(c,d,B):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var c=(d,B)=>{d?this.runner=this.strategy.connect(0,c):B.action==="error"?(this.emit("error",{type:"HandshakeError",error:B.error}),this.timeline.error({handshakeError:B.error})):(this.abortConnecting(),this.handshakeCallbacks[B.action](B))};this.runner=this.strategy.connect(0,c)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var c=this.abandonConnection();c.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(c){this.timeline.info({action:"retry",delay:c}),c>0&&this.emit("connecting_in",Math.round(c/1e3)),this.retryTimer=new se(c||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new se(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new se(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new se(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(c){return OA({},c,{message:d=>{this.resetActivityCheck(),this.emit("message",d)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:d=>{this.emit("error",d)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(c){return OA({},c,{connected:d=>{this.activityTimeout=Math.min(this.options.activityTimeout,d.activityTimeout,d.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(d.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let c=d=>B=>{B.error&&this.emit("error",{type:"WebSocketError",error:B.error}),d(B)};return{tls_only:c(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:c(()=>{this.disconnect()}),backoff:c(()=>{this.retryIn(1e3)}),retry:c(()=>{this.retryIn(0)})}}setConnection(c){this.connection=c;for(var d in this.connectionCallbacks)this.connection.bind(d,this.connectionCallbacks[d]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var c in this.connectionCallbacks)this.connection.unbind(c,this.connectionCallbacks[c]);var d=this.connection;return this.connection=null,d}}updateState(c,d){var B=this.state;if(this.state=c,B!==c){var C=c;C==="connected"&&(C+=" with new socket ID "+d.socket_id),wA.debug("State changed",B+" -> "+C),this.timeline.info({state:c,params:d}),this.emit("state_change",{previous:B,current:c}),this.emit(c,d)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class Fi{constructor(){this.channels={}}add(c,d){return this.channels[c]||(this.channels[c]=ki(c,d)),this.channels[c]}all(){return De(this.channels)}find(c){return this.channels[c]}remove(c){var d=this.channels[c];return delete this.channels[c],d}disconnect(){ZA(this.channels,function(c){c.disconnect()})}}function ki(p,c){if(p.indexOf("private-encrypted-")===0){if(c.config.nacl)return _t.createEncryptedChannel(p,c,c.config.nacl);let d="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",B=v.buildLogSuffix("encryptedChannelSupport");throw new N(`${d}. ${B}`)}else{if(p.indexOf("private-")===0)return _t.createPrivateChannel(p,c);if(p.indexOf("presence-")===0)return _t.createPresenceChannel(p,c);if(p.indexOf("#")===0)throw new x('Cannot create a channel with name "'+p+'".');return _t.createChannel(p,c)}}var Bx={createChannels(){return new Fi},createConnectionManager(p,c){return new XA(p,c)},createChannel(p,c){return new M(p,c)},createPrivateChannel(p,c){return new pA(p,c)},createPresenceChannel(p,c){return new oe(p,c)},createEncryptedChannel(p,c,d){return new Es(p,c,d)},createTimelineSender(p,c){return new H(p,c)},createHandshake(p,c){return new b(p,c)},createAssistantToTheTransportManager(p,c,d){return new Ei(p,c,d)}};const _t=Bx;class Sf{constructor(c){this.options=c||{},this.livesLeft=this.options.lives||1/0}getAssistant(c){return _t.createAssistantToTheTransportManager(this,c,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class In{constructor(c,d){this.strategies=c,this.loop=!!d.loop,this.failFast=!!d.failFast,this.timeout=d.timeout,this.timeoutLimit=d.timeoutLimit}isSupported(){return gs(this.strategies,SA.method("isSupported"))}connect(c,d){var B=this.strategies,C=0,S=this.timeout,D=null,z=(Y,sA)=>{sA?d(null,sA):(C=C+1,this.loop&&(C=C%B.length),C<B.length?(S&&(S=S*2,this.timeoutLimit&&(S=Math.min(S,this.timeoutLimit))),D=this.tryStrategy(B[C],c,{timeout:S,failFast:this.failFast},z)):d(!0))};return D=this.tryStrategy(B[C],c,{timeout:S,failFast:this.failFast},z),{abort:function(){D.abort()},forceMinPriority:function(Y){c=Y,D&&D.forceMinPriority(Y)}}}tryStrategy(c,d,B,C){var S=null,D=null;return B.timeout>0&&(S=new se(B.timeout,function(){D.abort(),C(!0)})),D=c.connect(d,function(z,Y){z&&S&&S.isRunning()&&!B.failFast||(S&&S.ensureAborted(),C(z,Y))}),{abort:function(){S&&S.ensureAborted(),D.abort()},forceMinPriority:function(z){D.forceMinPriority(z)}}}}class Xc{constructor(c){this.strategies=c}isSupported(){return gs(this.strategies,SA.method("isSupported"))}connect(c,d){return wx(this.strategies,c,function(B,C){return function(S,D){if(C[B].error=S,S){mx(C)&&d(!0);return}Re(C,function(z){z.forceMinPriority(D.transport.priority)}),d(null,D)}})}}function wx(p,c,d){var B=Ft(p,function(C,S,D,z){return C.connect(c,d(S,z))});return{abort:function(){Re(B,Cx)},forceMinPriority:function(C){Re(B,function(S){S.forceMinPriority(C)})}}}function mx(p){return zc(p,function(c){return!!c.error})}function Cx(p){!p.error&&!p.aborted&&(p.abort(),p.aborted=!0)}class bx{constructor(c,d,B){this.strategy=c,this.transports=d,this.ttl=B.ttl||18e5,this.usingTLS=B.useTLS,this.timeline=B.timeline}isSupported(){return this.strategy.isSupported()}connect(c,d){var B=this.usingTLS,C=Qx(B),S=C&&C.cacheSkipCount?C.cacheSkipCount:0,D=[this.strategy];if(C&&C.timestamp+this.ttl>=SA.now()){var z=this.transports[C.transport];z&&(["ws","wss"].includes(C.transport)||S>3?(this.timeline.info({cached:!0,transport:C.transport,latency:C.latency}),D.push(new In([z],{timeout:C.latency*2+1e3,failFast:!0}))):S++)}var Y=SA.now(),sA=D.pop().connect(c,function lA(KA,Si){KA?(If(B),D.length>0?(Y=SA.now(),sA=D.pop().connect(c,lA)):d(KA)):(yx(B,Si.transport.name,SA.now()-Y,S),d(null,Si))});return{abort:function(){sA.abort()},forceMinPriority:function(lA){c=lA,sA&&sA.forceMinPriority(lA)}}}}function Wc(p){return"pusherTransport"+(p?"TLS":"NonTLS")}function Qx(p){var c=q.getLocalStorage();if(c)try{var d=c[Wc(p)];if(d)return JSON.parse(d)}catch(B){If(p)}return null}function yx(p,c,d,B){var C=q.getLocalStorage();if(C)try{C[Wc(p)]=he({timestamp:SA.now(),transport:c,latency:d,cacheSkipCount:B})}catch(S){}}function If(p){var c=q.getLocalStorage();if(c)try{delete c[Wc(p)]}catch(d){}}class vi{constructor(c,{delay:d}){this.strategy=c,this.options={delay:d}}isSupported(){return this.strategy.isSupported()}connect(c,d){var B=this.strategy,C,S=new se(this.options.delay,function(){C=B.connect(c,d)});return{abort:function(){S.ensureAborted(),C&&C.abort()},forceMinPriority:function(D){c=D,C&&C.forceMinPriority(D)}}}}class Fs{constructor(c,d,B){this.test=c,this.trueBranch=d,this.falseBranch=B}isSupported(){var c=this.test()?this.trueBranch:this.falseBranch;return c.isSupported()}connect(c,d){var B=this.test()?this.trueBranch:this.falseBranch;return B.connect(c,d)}}class Ux{constructor(c){this.strategy=c}isSupported(){return this.strategy.isSupported()}connect(c,d){var B=this.strategy.connect(c,function(C,S){S&&B.abort(),d(C,S)});return B}}function ks(p){return function(){return p.isSupported()}}var Ex=function(p,c,d){var B={};function C(Gf,QS,yS,US,ES){var Vf=d(p,Gf,QS,yS,US,ES);return B[Gf]=Vf,Vf}var S=Object.assign({},c,{hostNonTLS:p.wsHost+":"+p.wsPort,hostTLS:p.wsHost+":"+p.wssPort,httpPath:p.wsPath}),D=Object.assign({},S,{useTLS:!0}),z=Object.assign({},c,{hostNonTLS:p.httpHost+":"+p.httpPort,hostTLS:p.httpHost+":"+p.httpsPort,httpPath:p.httpPath}),Y={loop:!0,timeout:15e3,timeoutLimit:6e4},sA=new Sf({minPingDelay:1e4,maxPingDelay:p.activityTimeout}),lA=new Sf({lives:2,minPingDelay:1e4,maxPingDelay:p.activityTimeout}),KA=C("ws","ws",3,S,sA),Si=C("wss","ws",3,D,sA),BS=C("sockjs","sockjs",1,z),Mf=C("xhr_streaming","xhr_streaming",1,z,lA),wS=C("xdr_streaming","xdr_streaming",1,z,lA),Pf=C("xhr_polling","xhr_polling",1,z),mS=C("xdr_polling","xdr_polling",1,z),Kf=new In([KA],Y),CS=new In([Si],Y),bS=new In([BS],Y),Nf=new In([new Fs(ks(Mf),Mf,wS)],Y),zf=new In([new Fs(ks(Pf),Pf,mS)],Y),$f=new In([new Fs(ks(Nf),new Xc([Nf,new vi(zf,{delay:4e3})]),zf)],Y),Yc=new Fs(ks($f),$f,bS),qc;return c.useTLS?qc=new Xc([Kf,new vi(Yc,{delay:2e3})]):qc=new Xc([Kf,new vi(CS,{delay:2e3}),new vi(Yc,{delay:5e3})]),new bx(new Ux(new Fs(ks(KA),qc,Yc)),B,{ttl:18e5,timeline:c.timeline,useTLS:c.useTLS})};const Fx=Ex;function kx(){var p=this;p.timeline.info(p.buildTimelineMessage({transport:p.name+(p.options.useTLS?"s":"")})),p.hooks.isInitialized()?p.changeState("initialized"):p.hooks.file?(p.changeState("initializing"),Q.load(p.hooks.file,{useTLS:p.options.useTLS},function(c,d){p.hooks.isInitialized()?(p.changeState("initialized"),d(!0)):(c&&p.onError(c),p.onClose(),d(!1))})):p.onClose()}var vx={getRequest:function(p){var c=new window.XDomainRequest;return c.ontimeout=function(){p.emit("error",new R),p.close()},c.onerror=function(d){p.emit("error",d),p.close()},c.onprogress=function(){c.responseText&&c.responseText.length>0&&p.onChunk(200,c.responseText)},c.onload=function(){c.responseText&&c.responseText.length>0&&p.onChunk(200,c.responseText),p.emit("finished",200),p.close()},c},abortRequest:function(p){p.ontimeout=p.onerror=p.onprogress=p.onload=null,p.abort()}};const _x=vx,xx=256*1024;class Sx extends qe{constructor(c,d,B){super(),this.hooks=c,this.method=d,this.url=B}start(c){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},q.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(c)}close(){this.unloader&&(q.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(c,d){for(;;){var B=this.advanceBuffer(d);if(B)this.emit("chunk",{status:c,data:B});else break}this.isBufferTooLong(d)&&this.emit("buffer_too_long")}advanceBuffer(c){var d=c.slice(this.position),B=d.indexOf(`
1908
- `);return B!==-1?(this.position+=B+1,d.slice(0,B)):null}isBufferTooLong(c){return this.position===c.length&&c.length>xx}}var Jc;(function(p){p[p.CONNECTING=0]="CONNECTING",p[p.OPEN=1]="OPEN",p[p.CLOSED=3]="CLOSED"})(Jc||(Jc={}));const Tn=Jc;var Ix=1;class Tx{constructor(c,d){this.hooks=c,this.session=Hf(1e3)+"/"+Rx(8),this.location=Hx(d),this.readyState=Tn.CONNECTING,this.openStream()}send(c){return this.sendRaw(JSON.stringify([c]))}ping(){this.hooks.sendHeartbeat(this)}close(c,d){this.onClose(c,d,!0)}sendRaw(c){if(this.readyState===Tn.OPEN)try{return q.createSocketRequest("POST",Tf(Lx(this.location,this.session))).start(c),!0}catch(d){return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(c,d,B){this.closeStream(),this.readyState=Tn.CLOSED,this.onclose&&this.onclose({code:c,reason:d,wasClean:B})}onChunk(c){if(c.status===200){this.readyState===Tn.OPEN&&this.onActivity();var d,B=c.data.slice(0,1);switch(B){case"o":d=JSON.parse(c.data.slice(1)||"{}"),this.onOpen(d);break;case"a":d=JSON.parse(c.data.slice(1)||"[]");for(var C=0;C<d.length;C++)this.onEvent(d[C]);break;case"m":d=JSON.parse(c.data.slice(1)||"null"),this.onEvent(d);break;case"h":this.hooks.onHeartbeat(this);break;case"c":d=JSON.parse(c.data.slice(1)||"[]"),this.onClose(d[0],d[1],!0);break}}}onOpen(c){this.readyState===Tn.CONNECTING?(c&&c.hostname&&(this.location.base=Dx(this.location.base,c.hostname)),this.readyState=Tn.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(c){this.readyState===Tn.OPEN&&this.onmessage&&this.onmessage({data:c})}onActivity(){this.onactivity&&this.onactivity()}onError(c){this.onerror&&this.onerror(c)}openStream(){this.stream=q.createSocketRequest("POST",Tf(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",c=>{this.onChunk(c)}),this.stream.bind("finished",c=>{this.hooks.onFinished(this,c)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(c){SA.defer(()=>{this.onError(c),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Hx(p){var c=/([^\?]*)\/*(\??.*)/.exec(p);return{base:c[1],queryString:c[2]}}function Lx(p,c){return p.base+"/"+c+"/xhr_send"}function Tf(p){var c=p.indexOf("?")===-1?"?":"&";return p+c+"t="+ +new Date+"&n="+Ix++}function Dx(p,c){var d=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(p);return d[1]+c+d[3]}function Hf(p){return q.randomInt(p)}function Rx(p){for(var c=[],d=0;d<p;d++)c.push(Hf(32).toString(32));return c.join("")}const Ox=Tx;var Mx={getReceiveURL:function(p,c){return p.base+"/"+c+"/xhr_streaming"+p.queryString},onHeartbeat:function(p){p.sendRaw("[]")},sendHeartbeat:function(p){p.sendRaw("[]")},onFinished:function(p,c){p.onClose(1006,"Connection interrupted ("+c+")",!1)}};const Px=Mx;var Kx={getReceiveURL:function(p,c){return p.base+"/"+c+"/xhr"+p.queryString},onHeartbeat:function(){},sendHeartbeat:function(p){p.sendRaw("[]")},onFinished:function(p,c){c===200?p.reconnect():p.onClose(1006,"Connection interrupted ("+c+")",!1)}};const Nx=Kx;var zx={getRequest:function(p){var c=q.getXHRAPI(),d=new c;return d.onreadystatechange=d.onprogress=function(){switch(d.readyState){case 3:d.responseText&&d.responseText.length>0&&p.onChunk(d.status,d.responseText);break;case 4:d.responseText&&d.responseText.length>0&&p.onChunk(d.status,d.responseText),p.emit("finished",d.status),p.close();break}},d},abortRequest:function(p){p.onreadystatechange=null,p.abort()}};const $x=zx;var Gx={createStreamingSocket(p){return this.createSocket(Px,p)},createPollingSocket(p){return this.createSocket(Nx,p)},createSocket(p,c){return new Ox(p,c)},createXHR(p,c){return this.createRequest($x,p,c)},createRequest(p,c,d){return new Sx(p,c,d)}};const Lf=Gx;Lf.createXDR=function(p,c){return this.createRequest(_x,p,c)};var Vx={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:u,DependenciesReceivers:m,getDefaultStrategy:Fx,Transports:At,transportConnectionInitializer:kx,HTTPFactory:Lf,TimelineTransport:jt,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(p){window.Pusher=p;var c=()=>{this.onDocumentBody(p.ready)};window.JSON?c():Q.load("json2",{},c)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:PA,jsonp:ms}},onDocumentBody(p){document.body?p():setTimeout(()=>{this.onDocumentBody(p)},0)},createJSONPRequest(p,c){return new hr(p,c)},createScriptRequest(p){return new wi(p)},getLocalStorage(){try{return window.localStorage}catch(p){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var p=this.getXHRAPI();return new p},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return Ui},createWebSocket(p){var c=this.getWebSocketAPI();return new c(p)},createSocketRequest(p,c){if(this.isXHRSupported())return this.HTTPFactory.createXHR(p,c);if(this.isXDRSupported(c.indexOf("https:")===0))return this.HTTPFactory.createXDR(p,c);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var p=this.getXHRAPI();return!!p&&new p().withCredentials!==void 0},isXDRSupported(p){var c=p?"https:":"http:",d=this.getProtocol();return!!window.XDomainRequest&&d===c},addUnloadListener(p){window.addEventListener!==void 0?window.addEventListener("unload",p,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",p)},removeUnloadListener(p){window.addEventListener!==void 0?window.removeEventListener("unload",p,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",p)},randomInt(p){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*p)}};const q=Vx;var jc;(function(p){p[p.ERROR=3]="ERROR",p[p.INFO=6]="INFO",p[p.DEBUG=7]="DEBUG"})(jc||(jc={}));const _i=jc;class Zx{constructor(c,d,B){this.key=c,this.session=d,this.events=[],this.options=B||{},this.sent=0,this.uniqueID=0}log(c,d){c<=this.options.level&&(this.events.push(OA({},d,{timestamp:SA.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(c){this.log(_i.ERROR,c)}info(c){this.log(_i.INFO,c)}debug(c){this.log(_i.DEBUG,c)}isEmpty(){return this.events.length===0}send(c,d){var B=OA({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],c(B,(C,S)=>{C||this.sent++,d&&d(C,S)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class Xx{constructor(c,d,B,C){this.name=c,this.priority=d,this.transport=B,this.options=C||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(c,d){if(this.isSupported()){if(this.priority<c)return Df(new I,d)}else return Df(new X,d);var B=!1,C=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),S=null,D=function(){C.unbind("initialized",D),C.connect()},z=function(){S=_t.createHandshake(C,function(KA){B=!0,lA(),d(null,KA)})},Y=function(KA){lA(),d(KA)},sA=function(){lA();var KA;KA=he(C),d(new K(KA))},lA=function(){C.unbind("initialized",D),C.unbind("open",z),C.unbind("error",Y),C.unbind("closed",sA)};return C.bind("initialized",D),C.bind("open",z),C.bind("error",Y),C.bind("closed",sA),C.initialize(),{abort:()=>{B||(lA(),S?S.close():C.close())},forceMinPriority:KA=>{B||this.priority<KA&&(S?S.close():C.close())}}}}function Df(p,c){return SA.defer(function(){c(p)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:Wx}=q;var Jx=function(p,c,d,B,C,S){var D=Wx[d];if(!D)throw new Z(d);var z=(!p.enabledTransports||Wt(p.enabledTransports,c)!==-1)&&(!p.disabledTransports||Wt(p.disabledTransports,c)===-1),Y;return z?(C=Object.assign({ignoreNullOrigin:p.ignoreNullOrigin},C),Y=new Xx(c,B,S?S.getAssistant(D):D,C)):Y=jx,Y},jx={isSupported:function(){return!1},connect:function(p,c){var d=SA.defer(function(){c(new X)});return{abort:function(){d.ensureAborted()},forceMinPriority:function(){}}}};function Yx(p){if(p==null)throw"You must pass an options object";if(p.cluster==null)throw"Options object must provide a cluster";"disableStats"in p&&wA.warn("The disableStats option is deprecated in favor of enableStats")}const qx=(p,c)=>{var d="socket_id="+encodeURIComponent(p.socketId);for(var B in c.params)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(c.params[B]);if(c.paramsProvider!=null){let C=c.paramsProvider();for(var B in C)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(C[B])}return d},AS=p=>{if(typeof q.getAuthorizers()[p.transport]=="undefined")throw`'${p.transport}' is not a recognized auth transport`;return(c,d)=>{const B=qx(c,p);q.getAuthorizers()[p.transport](q,B,p,F.UserAuthentication,d)}},eS=(p,c)=>{var d="socket_id="+encodeURIComponent(p.socketId);d+="&channel_name="+encodeURIComponent(p.channelName);for(var B in c.params)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(c.params[B]);if(c.paramsProvider!=null){let C=c.paramsProvider();for(var B in C)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(C[B])}return d},tS=p=>{if(typeof q.getAuthorizers()[p.transport]=="undefined")throw`'${p.transport}' is not a recognized auth transport`;return(c,d)=>{const B=eS(c,p);q.getAuthorizers()[p.transport](q,B,p,F.ChannelAuthorization,d)}},nS=(p,c,d)=>{const B={authTransport:c.transport,authEndpoint:c.endpoint,auth:{params:c.params,headers:c.headers}};return(C,S)=>{const D=p.channel(C.channelName);d(D,B).authorize(C.socketId,S)}};function Rf(p,c){let d={activityTimeout:p.activityTimeout||f.activityTimeout,cluster:p.cluster,httpPath:p.httpPath||f.httpPath,httpPort:p.httpPort||f.httpPort,httpsPort:p.httpsPort||f.httpsPort,pongTimeout:p.pongTimeout||f.pongTimeout,statsHost:p.statsHost||f.stats_host,unavailableTimeout:p.unavailableTimeout||f.unavailableTimeout,wsPath:p.wsPath||f.wsPath,wsPort:p.wsPort||f.wsPort,wssPort:p.wssPort||f.wssPort,enableStats:aS(p),httpHost:rS(p),useTLS:iS(p),wsHost:sS(p),userAuthenticator:cS(p),channelAuthorizer:uS(p,c)};return"disabledTransports"in p&&(d.disabledTransports=p.disabledTransports),"enabledTransports"in p&&(d.enabledTransports=p.enabledTransports),"ignoreNullOrigin"in p&&(d.ignoreNullOrigin=p.ignoreNullOrigin),"timelineParams"in p&&(d.timelineParams=p.timelineParams),"nacl"in p&&(d.nacl=p.nacl),d}function rS(p){return p.httpHost?p.httpHost:p.cluster?`sockjs-${p.cluster}.pusher.com`:f.httpHost}function sS(p){return p.wsHost?p.wsHost:oS(p.cluster)}function oS(p){return`ws-${p}.pusher.com`}function iS(p){return q.getProtocol()==="https:"?!0:p.forceTLS!==!1}function aS(p){return"enableStats"in p?p.enableStats:"disableStats"in p?!p.disableStats:!1}const Of=p=>"customHandler"in p&&p.customHandler!=null;function cS(p){const c=Object.assign(Object.assign({},f.userAuthentication),p.userAuthentication);return Of(c)?c.customHandler:AS(c)}function lS(p,c){let d;if("channelAuthorization"in p)d=Object.assign(Object.assign({},f.channelAuthorization),p.channelAuthorization);else if(d={transport:p.authTransport||f.authTransport,endpoint:p.authEndpoint||f.authEndpoint},"auth"in p&&("params"in p.auth&&(d.params=p.auth.params),"headers"in p.auth&&(d.headers=p.auth.headers)),"authorizer"in p)return{customHandler:nS(c,d,p.authorizer)};return d}function uS(p,c){const d=lS(p,c);return Of(d)?d.customHandler:tS(d)}class dS extends qe{constructor(c){super(function(d,B){wA.debug(`No callbacks on watchlist events for ${d}`)}),this.pusher=c,this.bindWatchlistInternalEvent()}handleEvent(c){c.data.events.forEach(d=>{this.emit(d.name,d)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",c=>{var d=c.event;d==="pusher_internal:watchlist_events"&&this.handleEvent(c)})}}function pS(){let p,c;return{promise:new Promise((B,C)=>{p=B,c=C}),resolve:p,reject:c}}const hS=pS;class fS extends qe{constructor(c){super(function(d,B){wA.debug("No callbacks on user for "+d)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(d,B)=>{if(d){wA.warn(`Error during signin: ${d}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:B.auth,user_data:B.user_data})},this.pusher=c,this.pusher.connection.bind("state_change",({previous:d,current:B})=>{d!=="connected"&&B==="connected"&&this._signin(),d==="connected"&&B!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new dS(c),this.pusher.connection.bind("message",d=>{var B=d.event;B==="pusher:signin_success"&&this._onSigninSuccess(d.data),this.serverToUserChannel&&this.serverToUserChannel.name===d.channel&&this.serverToUserChannel.handleEvent(d)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(c){try{this.user_data=JSON.parse(c.user_data)}catch(d){wA.error(`Failed parsing user data after signin: ${c.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){wA.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const c=d=>{d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.pusher.connection.state==="connected"&&d.subscribe()};this.serverToUserChannel=new M(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((d,B)=>{d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0||this.emit(d,B)}),c(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:c,resolve:d}=hS();c.done=!1;const B=()=>{c.done=!0};c.then(B).catch(B),this.signinDonePromise=c,this._signinDoneResolve=d}}class ee{static ready(){ee.isReady=!0;for(var c=0,d=ee.instances.length;c<d;c++)ee.instances[c].connect()}static getClientFeatures(){return gt(vn({ws:q.Transports.ws},function(c){return c.isSupported({})}))}constructor(c,d){gS(c),Yx(d),this.key=c,this.options=d,this.config=Rf(this.options,this),this.channels=_t.createChannels(),this.global_emitter=new qe,this.sessionID=q.randomInt(1e9),this.timeline=new Zx(this.key,this.sessionID,{cluster:this.config.cluster,features:ee.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:_i.INFO,version:f.VERSION}),this.config.enableStats&&(this.timelineSender=_t.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+q.TimelineTransport.name}));var B=C=>q.getDefaultStrategy(this.config,C,Jx);this.connection=_t.createConnectionManager(this.key,{getStrategy:B,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",C=>{var S=C.event,D=S.indexOf("pusher_internal:")===0;if(C.channel){var z=this.channel(C.channel);z&&z.handleEvent(C)}D||this.global_emitter.emit(C.event,C.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",C=>{wA.warn(C)}),ee.instances.push(this),this.timeline.info({instances:ee.instances.length}),this.user=new fS(this),ee.isReady&&this.connect()}switchCluster(c){const{appKey:d,cluster:B}=c;this.key=d,this.options=Object.assign(Object.assign({},this.options),{cluster:B}),this.config=Rf(this.options,this),this.connection.switchCluster(this.key)}channel(c){return this.channels.find(c)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var c=this.connection.isUsingTLS(),d=this.timelineSender;this.timelineSenderTimer=new Fn(6e4,function(){d.send(c)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(c,d,B){return this.global_emitter.bind(c,d,B),this}unbind(c,d,B){return this.global_emitter.unbind(c,d,B),this}bind_global(c){return this.global_emitter.bind_global(c),this}unbind_global(c){return this.global_emitter.unbind_global(c),this}unbind_all(c){return this.global_emitter.unbind_all(),this}subscribeAll(){var c;for(c in this.channels.channels)this.channels.channels.hasOwnProperty(c)&&this.subscribe(c)}subscribe(c){var d=this.channels.add(c,this);return d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.connection.state==="connected"&&d.subscribe(),d}unsubscribe(c){var d=this.channels.find(c);d&&d.subscriptionPending?d.cancelSubscription():(d=this.channels.remove(c),d&&d.subscribed&&d.unsubscribe())}send_event(c,d,B){return this.connection.send_event(c,d,B)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}ee.instances=[],ee.isReady=!1,ee.logToConsole=!1,ee.Runtime=q,ee.ScriptReceivers=q.ScriptReceivers,ee.DependenciesReceivers=q.DependenciesReceivers,ee.auth_callbacks=q.auth_callbacks;const xi=ee;function gS(p){if(p==null)throw"You must pass your app key when you instantiate Pusher."}q.setup(ee)}},n={};function r(o){var a=n[o];if(a!==void 0)return a.exports;var i=n[o]={exports:{}};return t[o].call(i.exports,i,i.exports,r),i.exports}r.d=(o,a)=>{for(var i in a)r.o(a,i)&&!r.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:a[i]})},r.o=(o,a)=>Object.prototype.hasOwnProperty.call(o,a);var s=r(721);return s})())})(_c)),_c.exports}var i_=o_();const a_=s_(i_);let Ze=null,tr=null;function c_(A){return T(this,null,function*(){return tr||(tr=T(null,null,function*(){const e=A.backendUrl.replace(/\/+$/,""),t=yield Fr(`${e}/api/settings`,{headers:{Authorization:`Bearer ${A.token}`}});if(!t.ok)throw new Error(`Failed to fetch settings: HTTP ${t.status}`);const n=yield t.json();Ze=new a_(n.pusher.key,{cluster:n.pusher.cluster||"local",forceTLS:!0,wsHost:n.pusher.wsHost||void 0,wsPort:n.pusher.wssPort,wssPort:n.pusher.wssPort,enabledTransports:n.pusher.wsHost?["ws"]:void 0,channelAuthorization:{customHandler:({socketId:r,channelName:s},o)=>{Fr(`${e}/api/pusher/auth`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${A.token}`},body:JSON.stringify({socket_id:r,channel_name:s})}).then(a=>a.json()).then(a=>o(null,a)).catch(a=>o(a instanceof Error?a:new Error(String(a)),null))}}})}),tr.catch(()=>{tr=null}),tr)})}function l_(A){if(!A||!Ze)return null;let e=!1;const t=({current:n})=>{n==="connected"&&e?(e=!1,A()):n!=="connected"&&(e=!0)};return Ze.connection.bind("state_change",t),()=>Ze==null?void 0:Ze.connection.unbind("state_change",t)}function u_(A,e,t){return T(this,null,function*(){if(yield c_(A),!Ze)return()=>{};const n=Ze.subscribe(`private-task-${e}`);t.onStatusUpdate&&n.bind(Rs.TASK_STATUS_UPDATED,t.onStatusUpdate),t.onInteractionCreated&&n.bind(Rs.TASK_INTERACTION_CREATED,t.onInteractionCreated),t.onInteractionAnswered&&n.bind(Rs.TASK_INTERACTION_ANSWERED,t.onInteractionAnswered),t.onBrowserCommandCreated&&n.bind(Rs.TASK_BROWSER_COMMAND_CREATED,t.onBrowserCommandCreated);const r=l_(t.onReconnect);return()=>{n.unbind_all(),Ze==null||Ze.unsubscribe(`private-task-${e}`),r==null||r()}})}function Mh(A,e){const t=a=>T(null,null,function*(){if(w.currentTaskId!==A||!w.runnerEl||w.state.kind!=="idle"&&w.state.kind!=="connecting"||w.handledCommandIds.has(a.commandId))return;w.handledCommandIds.add(a.commandId);const i={id:a.commandId,taskId:a.taskId,action:a.action,selector:a.selector,value:a.value,description:a.description,status:"pending",createdAt:new Date().toISOString()};Bn({kind:"executing",command:i,actionsRun:w.state.kind==="idle"?w.state.actionsRun:0}),yield Kh(i,e,A)}),n=a=>{if(!(w.currentTaskId!==A||!w.runnerEl)&&E_.has(a)){if(w.state.kind==="executing")Bn({kind:"finishing",status:a,actionsRun:w.state.actionsRun});else if(w.state.kind==="connecting"||w.state.kind==="idle"){const i=w.state.kind==="idle"?w.state.actionsRun:0;Bn({kind:"finished",status:a,actionsRun:i})}}},r=a=>{w.currentTaskId!==A||!w.runnerEl||(a.outputChunk&&zh([a.outputChunk]),n(a.status))},s=()=>T(null,null,function*(){var a;if(!(w.currentTaskId!==A||!w.runnerEl))try{const i=yield Xs(e,A);w.currentTaskId===A&&w.runnerEl&&(w.currentQuestion=(a=i[0])!=null?a:null,gn())}catch(i){}}),o=()=>T(null,null,function*(){var a;try{const[i,l,u,h]=yield Promise.all([vu(e,A),gb(e,A),Xs(e,A),hb(e,A)]);if(w.currentTaskId!==A||!w.runnerEl)return;zh(l),w.currentQuestion=(a=u[0])!=null?a:null,gn(),n(i.status),h&&h.status==="pending"&&(w.state.kind==="idle"||w.state.kind==="connecting")&&!w.handledCommandIds.has(h.id)?(w.handledCommandIds.add(h.id),Bn({kind:"executing",command:h,actionsRun:w.state.kind==="idle"?w.state.actionsRun:0}),yield Kh(h,e,A)):w.state.kind==="connecting"&&Bn({kind:"idle",actionsRun:0})}catch(i){}});o(),u_(e,A,{onStatusUpdate:r,onInteractionCreated:s,onInteractionAnswered:s,onBrowserCommandCreated:t,onReconnect:()=>{o()}}).then(a=>{if(w.currentTaskId!==A||w.state.kind==="finished"){a();return}w.unsubscribeTaskChannel=a})}function Jo(){var e;w.cancelArmed=!1,w.cancelArmTimeout&&(clearTimeout(w.cancelArmTimeout),w.cancelArmTimeout=null),w.cancelDisarmDocListener&&(document.removeEventListener("click",w.cancelDisarmDocListener,!0),w.cancelDisarmDocListener=null);const A=(e=w.runnerEl)==null?void 0:e.querySelector("[data-ap-runner-cancel]");A&&(A.textContent="Cancel task")}function d_(A,e){return T(this,null,function*(){if(w.currentTaskId!==e||!w.runnerEl)return;const t=w.runnerEl.querySelector("[data-ap-runner-cancel]");t&&(t.disabled=!0);try{yield wb(A,e)}catch(n){t&&(t.disabled=!1)}})}function Ph(){if(!w.currentTaskId||!w.currentApiOpts||!w.currentBackendUrl||!w.currentCaptureTitle)return;const A=w.currentTaskId,e=w.currentApiOpts;oh({taskId:A,backendUrl:w.currentBackendUrl,title:w.currentCaptureTitle}),w.timerHandle&&clearInterval(w.timerHandle),Yo(),w.timerHandle=setInterval(Yo,$h);const t=w.state.kind==="finished"?w.state.actionsRun:0;w.handledCommandIds=new Set,w.state={kind:"idle",actionsRun:t},xc(),Mh(A,e)}function Kh(A,e,t){return T(this,null,function*(){var o,a,i;let n="done",r;try{if(A.action==="getContext"){const l=A.selector?document.querySelector(A.selector):document.body;if(!l)throw new Error(`element not found (${A.selector})`);if(fl(l))throw new Error("Target element is in a sensitive or excluded region and cannot be automated");(o=w.highlightOverlay)==null||o.update(l),r=g_(l)}else{if(!A.selector)throw new Error(`${A.action} command is missing a selector`);const l=document.querySelector(A.selector);if(!l)throw new Error(`element not found (${A.selector})`);if(fl(l))throw new Error("Target element is in a sensitive or excluded region and cannot be automated");if((a=w.highlightOverlay)==null||a.update(l),A.action==="click")yield n_(l),r="Clicked";else{if(A.value===void 0)throw new Error("inputText command is missing a value");B_(l,A.value),r="Entered text"}}}catch(l){n="error",r=l instanceof Error?l.message:"Unknown error executing command"}if(w.currentTaskId===t&&w.runnerEl&&C_(n,A,r),yield f_(e,t,A.id,n,r),w.currentTaskId!==t||!w.runnerEl)return;(i=w.highlightOverlay)==null||i.hide();const s=(w.state.kind==="executing"||w.state.kind==="finishing"?w.state.actionsRun:0)+1;w.state.kind==="finishing"?Bn({kind:"finished",status:w.state.status,actionsRun:s}):w.state.kind==="executing"&&Bn({kind:"idle",actionsRun:s})})}function p_(A){return T(this,null,function*(){var n;if(!w.runnerEl||!w.currentQuestion||!w.currentTaskId||w.chatSubmitInFlight)return;const e=w.currentTaskId,t=w.currentApiOpts;if(t){w.chatSubmitInFlight=!0;try{const r={selectedOption:A};yield Su(t,e,w.currentQuestion.id,r),w.currentQuestion=null,gn();const s=yield Xs(t,e);w.currentTaskId===e&&w.runnerEl&&(w.currentQuestion=(n=s[0])!=null?n:null,gn())}catch(r){const s=w.runnerEl.querySelector("[data-ap-runner-chat-error]");s&&(s.textContent="Failed to send your answer — try again.",s.style.display="block")}finally{w.chatSubmitInFlight=!1}}})}function h_(A,e){return T(this,null,function*(){var o;if(!w.runnerEl||w.chatSubmitInFlight||w.state.kind==="finished"&&w.state.status==="failed")return;const t=w.runnerEl.querySelector("[data-ap-runner-chat-input]"),n=w.runnerEl.querySelector("[data-ap-runner-chat-error]"),r=w.runnerEl.querySelector("[data-ap-runner-chat-send]");if(!t||!n||!r)return;const s=t.value.trim();if(s){w.chatSubmitInFlight=!0,r.disabled=!0,n.style.display="none";try{if(w.currentQuestion){yield Su(A,e,w.currentQuestion.id,s),w.currentQuestion=null,gn();try{const a=yield Xs(A,e);w.currentTaskId===e&&w.runnerEl&&(w.currentQuestion=(o=a[0])!=null?o:null,gn())}catch(a){}}else yield Bb(A,e,s),w.state.kind==="finished"&&Ph();t.value=""}catch(a){n.textContent=a instanceof Error?a.message:"Failed to send — try again.",n.style.display="block"}finally{w.chatSubmitInFlight=!1,r.disabled=!1}}})}function f_(A,e,t,n,r){return T(this,null,function*(){try{yield fb(A,e,t,n,r)}catch(s){}})}function g_(A){const e=A.cloneNode(!0);e.querySelectorAll("script, style, noscript").forEach(r=>r.remove()),gl(e),Oi(e);let t=e.outerHTML,n=!1;return t.length>Gh&&(t=t.slice(0,Gh),n=!0),`URL: ${location.href}
1921
+ */var Gh;function B_(){return Gh||(Gh=1,(function(A,e){(function(n,r){A.exports=r()})(self,()=>(()=>{var t={594(o,a){var i=this&&this.__extends||(function(){var v=function(y,U){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,R){x.__proto__=R}||function(x,R){for(var H in R)R.hasOwnProperty(H)&&(x[H]=R[H])},v(y,U)};return function(y,U){v(y,U);function x(){this.constructor=y}y.prototype=U===null?Object.create(U):(x.prototype=U.prototype,new x)}})();Object.defineProperty(a,"__esModule",{value:!0});var c=256,u=(function(){function v(y){y===void 0&&(y="="),this._paddingCharacter=y}return v.prototype.encodedLength=function(y){return this._paddingCharacter?(y+2)/3*4|0:(y*8+5)/6|0},v.prototype.encode=function(y){for(var U="",x=0;x<y.length-2;x+=3){var R=y[x]<<16|y[x+1]<<8|y[x+2];U+=this._encodeByte(R>>>18&63),U+=this._encodeByte(R>>>12&63),U+=this._encodeByte(R>>>6&63),U+=this._encodeByte(R>>>0&63)}var H=y.length-x;if(H>0){var R=y[x]<<16|(H===2?y[x+1]<<8:0);U+=this._encodeByte(R>>>18&63),U+=this._encodeByte(R>>>12&63),H===2?U+=this._encodeByte(R>>>6&63):U+=this._paddingCharacter||"",U+=this._paddingCharacter||""}return U},v.prototype.maxDecodedLength=function(y){return this._paddingCharacter?y/4*3|0:(y*6+7)/8|0},v.prototype.decodedLength=function(y){return this.maxDecodedLength(y.length-this._getPaddingLength(y))},v.prototype.decode=function(y){if(y.length===0)return new Uint8Array(0);for(var U=this._getPaddingLength(y),x=y.length-U,R=new Uint8Array(this.maxDecodedLength(x)),H=0,X=0,N=0,W=0,K=0,nA=0,hA=0;X<x-4;X+=4)W=this._decodeChar(y.charCodeAt(X+0)),K=this._decodeChar(y.charCodeAt(X+1)),nA=this._decodeChar(y.charCodeAt(X+2)),hA=this._decodeChar(y.charCodeAt(X+3)),R[H++]=W<<2|K>>>4,R[H++]=K<<4|nA>>>2,R[H++]=nA<<6|hA,N|=W&c,N|=K&c,N|=nA&c,N|=hA&c;if(X<x-1&&(W=this._decodeChar(y.charCodeAt(X)),K=this._decodeChar(y.charCodeAt(X+1)),R[H++]=W<<2|K>>>4,N|=W&c,N|=K&c),X<x-2&&(nA=this._decodeChar(y.charCodeAt(X+2)),R[H++]=K<<4|nA>>>2,N|=nA&c),X<x-3&&(hA=this._decodeChar(y.charCodeAt(X+3)),R[H++]=nA<<6|hA,N|=hA&c),N!==0)throw new Error("Base64Coder: incorrect characters for decoding");return R},v.prototype._encodeByte=function(y){var U=y;return U+=65,U+=25-y>>>8&6,U+=51-y>>>8&-75,U+=61-y>>>8&-15,U+=62-y>>>8&3,String.fromCharCode(U)},v.prototype._decodeChar=function(y){var U=c;return U+=(42-y&y-44)>>>8&-c+y-43+62,U+=(46-y&y-48)>>>8&-c+y-47+63,U+=(47-y&y-58)>>>8&-c+y-48+52,U+=(64-y&y-91)>>>8&-c+y-65+0,U+=(96-y&y-123)>>>8&-c+y-97+26,U},v.prototype._getPaddingLength=function(y){var U=0;if(this._paddingCharacter){for(var x=y.length-1;x>=0&&y[x]===this._paddingCharacter;x--)U++;if(y.length<4||U>2)throw new Error("Base64Coder: incorrect padding")}return U},v})();a.Coder=u;var h=new u;function f(v){return h.encode(v)}a.encode=f;function g(v){return h.decode(v)}a.decode=g;var m=(function(v){i(y,v);function y(){return v!==null&&v.apply(this,arguments)||this}return y.prototype._encodeByte=function(U){var x=U;return x+=65,x+=25-U>>>8&6,x+=51-U>>>8&-75,x+=61-U>>>8&-13,x+=62-U>>>8&49,String.fromCharCode(x)},y.prototype._decodeChar=function(U){var x=c;return x+=(44-U&U-46)>>>8&-c+U-45+62,x+=(94-U&U-96)>>>8&-c+U-95+63,x+=(47-U&U-58)>>>8&-c+U-48+52,x+=(64-U&U-91)>>>8&-c+U-65+0,x+=(96-U&U-123)>>>8&-c+U-97+26,x},y})(u);a.URLSafeCoder=m;var b=new m;function E(v){return b.encode(v)}a.encodeURLSafe=E;function k(v){return b.decode(v)}a.decodeURLSafe=k,a.encodedLength=function(v){return h.encodedLength(v)},a.maxDecodedLength=function(v){return h.maxDecodedLength(v)},a.decodedLength=function(v){return h.decodedLength(v)}},978(o,a){var i="utf8: invalid source encoding";function c(u){for(var h=[],f=0;f<u.length;f++){var g=u[f];if(g&128){var m=void 0;if(g<224){if(f>=u.length)throw new Error(i);var b=u[++f];if((b&192)!==128)throw new Error(i);g=(g&31)<<6|b&63,m=128}else if(g<240){if(f>=u.length-1)throw new Error(i);var b=u[++f],E=u[++f];if((b&192)!==128||(E&192)!==128)throw new Error(i);g=(g&15)<<12|(b&63)<<6|E&63,m=2048}else if(g<248){if(f>=u.length-2)throw new Error(i);var b=u[++f],E=u[++f],k=u[++f];if((b&192)!==128||(E&192)!==128||(k&192)!==128)throw new Error(i);g=(g&15)<<18|(b&63)<<12|(E&63)<<6|k&63,m=65536}else throw new Error(i);if(g<m||g>=55296&&g<=57343)throw new Error(i);if(g>=65536){if(g>1114111)throw new Error(i);g-=65536,h.push(String.fromCharCode(55296|g>>10)),g=56320|g&1023}}h.push(String.fromCharCode(g))}return h.join("")}a.D4=c},721(o,a,i){o.exports=i(207).default},207(o,a,i){i.d(a,{default:()=>Li});class c{constructor(l,d){this.lastId=0,this.prefix=l,this.name=d}create(l){this.lastId++;var d=this.lastId,B=this.prefix+d,C=this.name+"["+d+"]",S=!1,D=function(){S||(l.apply(null,arguments),S=!0)};return this[d]=D,{number:d,id:B,name:C,callback:D}}remove(l){delete this[l.number]}}var u=new c("_pusher_script_","Pusher.ScriptReceivers"),h={VERSION:"8.5.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""};const f=h;class g{constructor(l){this.options=l,this.receivers=l.receivers||u,this.loading={}}load(l,d,B){var C=this;if(C.loading[l]&&C.loading[l].length>0)C.loading[l].push(B);else{C.loading[l]=[B];var S=AA.createScriptRequest(C.getPath(l,d)),D=C.receivers.create(function($){if(C.receivers.remove(D),C.loading[l]){var Y=C.loading[l];delete C.loading[l];for(var oA=function(MA){MA||S.cleanup()},uA=0;uA<Y.length;uA++)Y[uA]($,oA)}});S.send(D)}}getRoot(l){var d,B=AA.getDocument().location.protocol;return l&&l.useTLS||B==="https:"?d=this.options.cdn_https:d=this.options.cdn_http,d.replace(/\/*$/,"")+"/"+this.options.version}getPath(l,d){return this.getRoot(d)+"/"+l+this.options.suffix+".js"}}var m=new c("_pusher_dependencies","Pusher.DependenciesReceivers"),b=new g({cdn_http:f.cdn_http,cdn_https:f.cdn_https,version:f.VERSION,suffix:f.dependency_suffix,receivers:m});const E={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},v={buildLogSuffix:function(p){const l="See:",d=E.urls[p];if(!d)return"";let B;return d.fullUrl?B=d.fullUrl:d.path&&(B=E.baseUrl+d.path),B?`${l} ${B}`:""}};var y;(function(p){p.UserAuthentication="user-authentication",p.ChannelAuthorization="channel-authorization"})(y||(y={}));class U extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class x extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class R extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class H extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class X extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class N extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class W extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class K extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class nA extends Error{constructor(l,d){super(d),this.status=l,Object.setPrototypeOf(this,new.target.prototype)}}const _A=function(p,l,d,B,C){const S=AA.createXHR();S.open("POST",d.endpoint,!0),S.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var D in d.headers)S.setRequestHeader(D,d.headers[D]);if(d.headersProvider!=null){let $=d.headersProvider();for(var D in $)S.setRequestHeader(D,$[D])}return S.onreadystatechange=function(){if(S.readyState===4)if(S.status===200){let $,Y=!1;try{$=JSON.parse(S.responseText),Y=!0}catch(oA){C(new nA(200,`JSON returned from ${B.toString()} endpoint was invalid, yet status code was 200. Data was: ${S.responseText}`),null)}Y&&C(null,$)}else{let $="";switch(B){case y.UserAuthentication:$=v.buildLogSuffix("authenticationEndpoint");break;case y.ChannelAuthorization:$=`Clients must be authorized to join private or presence channels. ${v.buildLogSuffix("authorizationEndpoint")}`;break}C(new nA(S.status,`Unable to retrieve auth string from ${B.toString()} endpoint - received status: ${S.status} from ${d.endpoint}. ${$}`),null)}},S.send(l),S};function jA(p){return xA(bs(p))}var he=String.fromCharCode,Ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xn=function(p){var l=p.charCodeAt(0);return l<128?p:l<2048?he(192|l>>>6)+he(128|l&63):he(224|l>>>12&15)+he(128|l>>>6&63)+he(128|l&63)},bs=function(p){return p.replace(/[^\x00-\x7F]/g,xn)},Br=function(p){var l=[0,2,1][p.length%3],d=p.charCodeAt(0)<<16|(p.length>1?p.charCodeAt(1):0)<<8|(p.length>2?p.charCodeAt(2):0),B=[Ye.charAt(d>>>18),Ye.charAt(d>>>12&63),l>=2?"=":Ye.charAt(d>>>6&63),l>=1?"=":Ye.charAt(d&63)];return B.join("")},xA=window.btoa||function(p){return p.replace(/[\s\S]{1,3}/g,Br)};class wr{constructor(l,d,B,C){this.clear=d,this.timer=l(()=>{this.timer&&(this.timer=C(this.timer))},B)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}const SA=wr;function St(p){window.clearTimeout(p)}function lA(p){window.clearInterval(p)}class YA extends SA{constructor(l,d){super(setTimeout,St,l,function(B){return d(),null})}}class qe extends SA{constructor(l,d){super(setInterval,lA,l,function(B){return d(),B})}}var be={now(){return Date.now?Date.now():new Date().valueOf()},defer(p){return new YA(0,p)},method(p,...l){var d=Array.prototype.slice.call(arguments,1);return function(B){return B[p].apply(B,d.concat(arguments))}}};const IA=be;function OA(p,...l){for(var d=0;d<l.length;d++){var B=l[d];for(var C in B)B[C]&&B[C].constructor&&B[C].constructor===Object?p[C]=OA(p[C]||{},B[C]):p[C]=B[C]}return p}function Sn(){for(var p=["Pusher"],l=0;l<arguments.length;l++)typeof arguments[l]=="string"?p.push(arguments[l]):p.push(fe(arguments[l]));return p.join(" : ")}function In(p,l){var d=Array.prototype.indexOf;if(p===null)return-1;if(d&&p.indexOf===d)return p.indexOf(l);for(var B=0,C=p.length;B<C;B++)if(p[B]===l)return B;return-1}function GA(p,l){for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&l(p[d],d,p)}function wt(p){var l=[];return GA(p,function(d,B){l.push(B)}),l}function De(p){var l=[];return GA(p,function(d){l.push(d)}),l}function Oe(p,l,d){for(var B=0;B<p.length;B++)l.call(d||window,p[B],B,p)}function It(p,l){for(var d=[],B=0;B<p.length;B++)d.push(l(p[B],B,p,d));return d}function At(p,l){var d={};return GA(p,function(B,C){d[C]=l(B)}),d}function mt(p,l){l=l||function(C){return!!C};for(var d=[],B=0;B<p.length;B++)l(p[B],B,p,d)&&d.push(p[B]);return d}function Ct(p,l){var d={};return GA(p,function(B,C){(l&&l(B,C,p,d)||B)&&(d[C]=B)}),d}function Tn(p){var l=[];return GA(p,function(d,B){l.push([B,d])}),l}function en(p,l){for(var d=0;d<p.length;d++)if(l(p[d],d,p))return!0;return!1}function mr(p,l){for(var d=0;d<p.length;d++)if(!l(p[d],d,p))return!1;return!0}function ZA(p){return At(p,function(l){return typeof l=="object"&&(l=fe(l)),encodeURIComponent(jA(l.toString()))})}function bt(p){var l=Ct(p,function(B){return B!==void 0}),d=It(Tn(ZA(l)),IA.method("join","=")).join("&");return d}function et(p){var l=[],d=[];return(function B(C,S){var D,$,Y;switch(typeof C){case"object":if(!C)return null;for(D=0;D<l.length;D+=1)if(l[D]===C)return{$ref:d[D]};if(l.push(C),d.push(S),Object.prototype.toString.apply(C)==="[object Array]")for(Y=[],D=0;D<C.length;D+=1)Y[D]=B(C[D],S+"["+D+"]");else{Y={};for($ in C)Object.prototype.hasOwnProperty.call(C,$)&&(Y[$]=B(C[$],S+"["+JSON.stringify($)+"]"))}return Y;case"number":case"string":case"boolean":return C}})(p,"$")}function fe(p){try{return JSON.stringify(p)}catch(l){return JSON.stringify(et(p))}}class Qs{constructor(){this.globalLog=l=>{window.console&&window.console.log&&window.console.log(l)}}debug(...l){this.log(this.globalLog,l)}warn(...l){this.log(this.globalLogWarn,l)}error(...l){this.log(this.globalLogError,l)}globalLogWarn(l){window.console&&window.console.warn?window.console.warn(l):this.globalLog(l)}globalLogError(l){window.console&&window.console.error?window.console.error(l):this.globalLogWarn(l)}log(l,...d){var B=Sn.apply(this,arguments);Li.log?Li.log(B):Li.logToConsole&&l.bind(this)(B)}}const BA=new Qs;var Qi=function(p,l,d,B,C){(d.headers!==void 0||d.headersProvider!=null)&&BA.warn(`To send headers with the ${B.toString()} request, you must use AJAX, rather than JSONP.`);var S=p.nextAuthCallbackID.toString();p.nextAuthCallbackID++;var D=p.getDocument(),$=D.createElement("script");p.auth_callbacks[S]=function(uA){C(null,uA)};var Y="Pusher.auth_callbacks['"+S+"']";$.src=d.endpoint+"?callback="+encodeURIComponent(Y)+"&"+l;var oA=D.getElementsByTagName("head")[0]||D.documentElement;oA.insertBefore($,oA.firstChild)};const ys=Qi;class yi{constructor(l){this.src=l}send(l){var d=this,B="Error loading "+d.src;d.script=document.createElement("script"),d.script.id=l.id,d.script.src=d.src,d.script.type="text/javascript",d.script.charset="UTF-8",d.script.addEventListener?(d.script.onerror=function(){l.callback(B)},d.script.onload=function(){l.callback(null)}):d.script.onreadystatechange=function(){(d.script.readyState==="loaded"||d.script.readyState==="complete")&&l.callback(null)},d.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(d.errorScript=document.createElement("script"),d.errorScript.id=l.id+"_error",d.errorScript.text=l.name+"('"+B+"');",d.script.async=d.errorScript.async=!1):d.script.async=!0;var C=document.getElementsByTagName("head")[0];C.insertBefore(d.script,C.firstChild),d.errorScript&&C.insertBefore(d.errorScript,d.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class Cr{constructor(l,d){this.url=l,this.data=d}send(l){if(!this.request){var d=bt(this.data),B=this.url+"/"+l.number+"?"+d;this.request=AA.createScriptRequest(B),this.request.send(l)}}cleanup(){this.request&&this.request.cleanup()}}var br=function(p,l){return function(d,B){var C="http"+(l?"s":"")+"://",S=C+(p.host||p.options.host)+p.options.path,D=AA.createJSONPRequest(S,d),$=AA.ScriptReceivers.create(function(Y,oA){u.remove($),D.cleanup(),oA&&oA.host&&(p.host=oA.host),B&&B(Y,oA)});D.send($)}},tt={name:"jsonp",getAgent:br};const tn=tt;function Hn(p,l,d){var B=p+(l.useTLS?"s":""),C=l.useTLS?l.hostTLS:l.hostNonTLS;return B+"://"+C+d}function Ln(p,l){var d="/app/"+p,B="?protocol="+f.PROTOCOL+"&client=js&version="+f.VERSION+(l?"&"+l:"");return d+B}var Jc={getInitial:function(p,l){var d=(l.httpPath||"")+Ln(p,"flash=false");return Hn("ws",l,d)}},Qr={getInitial:function(p,l){var d=(l.httpPath||"/pusher")+Ln(p);return Hn("http",l,d)}},yr={getInitial:function(p,l){return Hn("http",l,l.httpPath||"/pusher")},getPath:function(p,l){return Ln(p)}};class jc{constructor(){this._callbacks={}}get(l){return this._callbacks[Tt(l)]}add(l,d,B){var C=Tt(l);this._callbacks[C]=this._callbacks[C]||[],this._callbacks[C].push({fn:d,context:B})}remove(l,d,B){if(!l&&!d&&!B){this._callbacks={};return}var C=l?[Tt(l)]:wt(this._callbacks);d||B?this.removeCallback(C,d,B):this.removeAllCallbacks(C)}removeCallback(l,d,B){Oe(l,function(C){this._callbacks[C]=mt(this._callbacks[C]||[],function(S){return d&&d!==S.fn||B&&B!==S.context}),this._callbacks[C].length===0&&delete this._callbacks[C]},this)}removeAllCallbacks(l){Oe(l,function(d){delete this._callbacks[d]},this)}}function Tt(p){return"_"+p}class nt{constructor(l){this.callbacks=new jc,this.global_callbacks=[],this.failThrough=l}bind(l,d,B){return this.callbacks.add(l,d,B),this}bind_global(l){return this.global_callbacks.push(l),this}unbind(l,d,B){return this.callbacks.remove(l,d,B),this}unbind_global(l){return l?(this.global_callbacks=mt(this.global_callbacks||[],d=>d!==l),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(l,d,B){for(var C=0;C<this.global_callbacks.length;C++)this.global_callbacks[C](l,d);var S=this.callbacks.get(l),D=[];if(B?D.push(d,B):d&&D.push(d),S&&S.length>0)for(var C=0;C<S.length;C++)S[C].fn.apply(S[C].context||window,D);else this.failThrough&&this.failThrough(l,d);return this}}class Yc extends nt{constructor(l,d,B,C,S){super(),this.initialize=AA.transportConnectionInitializer,this.hooks=l,this.name=d,this.priority=B,this.key=C,this.options=S,this.state="new",this.timeline=S.timeline,this.activityTimeout=S.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var l=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(l,this.options)}catch(d){return IA.defer(()=>{this.onError(d),this.changeState("closed")}),!1}return this.bindListeners(),BA.debug("Connecting",{transport:this.name,url:l}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(l){return this.state==="open"?(IA.defer(()=>{this.socket&&this.socket.send(l)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(l){this.emit("error",{type:"WebSocketError",error:l}),this.timeline.error(this.buildTimelineMessage({error:l.toString()}))}onClose(l){l?this.changeState("closed",{code:l.code,reason:l.reason,wasClean:l.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(l){this.emit("message",l)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=l=>{this.onError(l)},this.socket.onclose=l=>{this.onClose(l)},this.socket.onmessage=l=>{this.onMessage(l)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(l,d){this.state=l,this.timeline.info(this.buildTimelineMessage({state:l,params:d})),this.emit(l,d)}buildTimelineMessage(l){return OA({cid:this.id},l)}}class wA{constructor(l){this.hooks=l}isSupported(l){return this.hooks.isSupported(l)}createConnection(l,d,B,C){return new Yc(this.hooks,l,d,B,C)}}var nn=new wA({urls:Jc,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!AA.getWebSocketAPI()},isSupported:function(){return!!AA.getWebSocketAPI()},getSocket:function(p){return AA.createWebSocket(p)}}),Ui={urls:Qr,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Us=OA({getSocket:function(p){return AA.HTTPFactory.createStreamingSocket(p)}},Ui),Ur=OA({getSocket:function(p){return AA.HTTPFactory.createPollingSocket(p)}},Ui),Es={isSupported:function(){return AA.isXHRSupported()}},Ei=new wA(OA({},Us,Es)),qc=new wA(OA({},Ur,Es)),Pe={ws:nn,xhr_streaming:Ei,xhr_polling:qc};const Me=Pe;var ki=new wA({file:"sockjs",urls:yr,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(p,l){return new window.SockJS(p,null,{js_path:b.getPath("sockjs",{useTLS:l.useTLS}),ignore_null_origin:l.ignoreNullOrigin})},beforeOpen:function(p,l){p.send(JSON.stringify({path:l}))}}),ks={isSupported:function(p){var l=AA.isXDRSupported(p.useTLS);return l}},Fs=new wA(OA({},Us,ks)),Fi=new wA(OA({},Ur,ks));Me.xdr_streaming=Fs,Me.xdr_polling=Fi,Me.sockjs=ki;const rt=Me;class vi extends nt{constructor(){super();var l=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){l.emit("online")},!1),window.addEventListener("offline",function(){l.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var _i=new vi;class xi{constructor(l,d,B){this.manager=l,this.transport=d,this.minPingDelay=B.minPingDelay,this.maxPingDelay=B.maxPingDelay,this.pingDelay=void 0}createConnection(l,d,B,C){C=OA({},C,{activityTimeout:this.pingDelay});var S=this.transport.createConnection(l,d,B,C),D=null,$=function(){S.unbind("open",$),S.bind("closed",Y),D=IA.now()},Y=oA=>{if(S.unbind("closed",Y),oA.code===1002||oA.code===1003)this.manager.reportDeath();else if(!oA.wasClean&&D){var uA=IA.now()-D;uA<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(uA/2,this.minPingDelay))}};return S.bind("open",$),S}isSupported(l){return this.manager.isAlive()&&this.transport.isSupported(l)}}const vs={decodeMessage:function(p){try{var l=JSON.parse(p.data),d=l.data;if(typeof d=="string")try{d=JSON.parse(l.data)}catch(C){}var B={event:l.event,channel:l.channel,data:d};return l.user_id&&(B.user_id=l.user_id),B}catch(C){throw{type:"MessageParseError",error:C,data:p.data}}},encodeMessage:function(p){return JSON.stringify(p)},processHandshake:function(p){var l=vs.decodeMessage(p);if(l.event==="pusher:connection_established"){if(!l.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:l.data.socket_id,activityTimeout:l.data.activity_timeout*1e3}}else{if(l.event==="pusher:error")return{action:this.getCloseAction(l.data),error:this.getCloseError(l.data)};throw"Invalid handshake"}},getCloseAction:function(p){return p.code<4e3?p.code>=1002&&p.code<=1004?"backoff":null:p.code===4e3?"tls_only":p.code<4100?"refused":p.code<4200?"backoff":p.code<4300?"retry":"refused"},getCloseError:function(p){return p.code!==1e3&&p.code!==1001?{type:"PusherError",data:{code:p.code,message:p.reason||p.message}}:null}},Ht=vs;class G extends nt{constructor(l,d){super(),this.id=l,this.transport=d,this.activityTimeout=d.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(l){return this.transport.send(l)}send_event(l,d,B){var C={event:l,data:d};return B&&(C.channel=B),BA.debug("Event sent",C),this.send(Ht.encodeMessage(C))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var l={message:B=>{var C;try{C=Ht.decodeMessage(B)}catch(S){this.emit("error",{type:"MessageParseError",error:S,data:B.data})}if(C!==void 0){switch(BA.debug("Event recd",C),C.event){case"pusher:error":this.emit("error",{type:"PusherError",data:C.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",C)}},activity:()=>{this.emit("activity")},error:B=>{this.emit("error",B)},closed:B=>{d(),B&&B.code&&this.handleCloseEvent(B),this.transport=null,this.emit("closed")}},d=()=>{GA(l,(B,C)=>{this.transport.unbind(C,B)})};GA(l,(B,C)=>{this.transport.bind(C,B)})}handleCloseEvent(l){var d=Ht.getCloseAction(l),B=Ht.getCloseError(l);B&&this.emit("error",B),d&&this.emit(d,{action:d,error:B})}}class Q{constructor(l,d){this.transport=l,this.callback=d,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=l=>{this.unbindListeners();var d;try{d=Ht.processHandshake(l)}catch(B){this.finish("error",{error:B}),this.transport.close();return}d.action==="connected"?this.finish("connected",{connection:new G(d.id,this.transport),activityTimeout:d.activityTimeout}):(this.finish(d.action,{error:d.error}),this.transport.close())},this.onClosed=l=>{this.unbindListeners();var d=Ht.getCloseAction(l)||"backoff",B=Ht.getCloseError(l);this.finish(d,{error:B})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(l,d){this.callback(OA({transport:this.transport,action:l},d))}}class T{constructor(l,d){this.timeline=l,this.options=d||{}}send(l,d){this.timeline.isEmpty()||this.timeline.send(AA.TimelineTransport.getAgent(this,l),d)}}class P extends nt{constructor(l,d){super(function(B,C){BA.debug("No callbacks on "+l+" for "+B)}),this.name=l,this.pusher=d,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(l,d){return d(null,{auth:""})}trigger(l,d){if(l.indexOf("client-")!==0)throw new U("Event '"+l+"' does not start with 'client-'");if(!this.subscribed){var B=v.buildLogSuffix("triggeringClientEvents");BA.warn(`Client event triggered before channel 'subscription_succeeded' event . ${B}`)}return this.pusher.send_event(l,d,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(l){var d=l.event,B=l.data;if(d==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(l);else if(d==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(l);else if(d.indexOf("pusher_internal:")!==0){var C={};this.emit(d,B,C)}}handleSubscriptionSucceededEvent(l){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",l.data)}handleSubscriptionCountEvent(l){l.data.subscription_count&&(this.subscriptionCount=l.data.subscription_count),this.emit("pusher:subscription_count",l.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(l,d)=>{l?(this.subscriptionPending=!1,BA.error(l.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:l.message},l instanceof nA?{status:l.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:d.auth,channel_data:d.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class fA extends P{authorize(l,d){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:l},d)}}class qA{constructor(){this.reset()}get(l){return Object.prototype.hasOwnProperty.call(this.members,l)?{id:l,info:this.members[l]}:null}each(l){GA(this.members,(d,B)=>{l(this.get(B))})}setMyID(l){this.myID=l}onSubscription(l){this.members=l.presence.hash,this.count=l.presence.count,this.me=this.get(this.myID)}addMember(l){return this.get(l.user_id)===null&&this.count++,this.members[l.user_id]=l.user_info,this.get(l.user_id)}removeMember(l){var d=this.get(l.user_id);return d&&(delete this.members[l.user_id],this.count--),d}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var TA=function(p,l,d,B){function C(S){return S instanceof d?S:new d(function(D){D(S)})}return new(d||(d=Promise))(function(S,D){function $(uA){try{oA(B.next(uA))}catch(MA){D(MA)}}function Y(uA){try{oA(B.throw(uA))}catch(MA){D(MA)}}function oA(uA){uA.done?S(uA.value):C(uA.value).then($,Y)}oA((B=B.apply(p,l||[])).next())})};class ie extends fA{constructor(l,d){super(l,d),this.members=new qA}authorize(l,d){super.authorize(l,(B,C)=>TA(this,void 0,void 0,function*(){if(!B)if(C=C,C.channel_data!=null){var S=JSON.parse(C.channel_data);this.members.setMyID(S.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let D=v.buildLogSuffix("authorizationEndpoint");BA.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${D}, or the user should be signed in.`),d("Invalid auth response");return}d(B,C)}))}handleEvent(l){var d=l.event;if(d.indexOf("pusher_internal:")===0)this.handleInternalEvent(l);else{var B=l.data,C={};l.user_id&&(C.user_id=l.user_id),this.emit(d,B,C)}}handleInternalEvent(l){var d=l.event,B=l.data;switch(d){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(l);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(l);break;case"pusher_internal:member_added":var C=this.members.addMember(B);this.emit("pusher:member_added",C);break;case"pusher_internal:member_removed":var S=this.members.removeMember(B);S&&this.emit("pusher:member_removed",S);break}}handleSubscriptionSucceededEvent(l){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(l.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var st=i(978),Qt=i(594);class _s extends fA{constructor(l,d,B){super(l,d),this.key=null,this.nacl=B}authorize(l,d){super.authorize(l,(B,C)=>{if(B){d(B,C);return}let S=C.shared_secret;if(!S){d(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=(0,Qt.decode)(S),delete C.shared_secret,d(null,C)})}trigger(l,d){throw new N("Client events are not currently supported for encrypted channels")}handleEvent(l){var d=l.event,B=l.data;if(d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0){super.handleEvent(l);return}this.handleEncryptedEvent(d,B)}handleEncryptedEvent(l,d){if(!this.key){BA.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!d.ciphertext||!d.nonce){BA.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+d);return}let B=(0,Qt.decode)(d.ciphertext);if(B.length<this.nacl.secretbox.overheadLength){BA.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${B.length}`);return}let C=(0,Qt.decode)(d.nonce);if(C.length<this.nacl.secretbox.nonceLength){BA.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${C.length}`);return}let S=this.nacl.secretbox.open(B,C,this.key);if(S===null){BA.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(D,$)=>{if(D){BA.error(`Failed to make a request to the authEndpoint: ${$}. Unable to fetch new key, so dropping encrypted event`);return}if(S=this.nacl.secretbox.open(B,C,this.key),S===null){BA.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(l,this.getDataToEmit(S))});return}this.emit(l,this.getDataToEmit(S))}getDataToEmit(l){let d=(0,st.D4)(l);try{return JSON.parse(d)}catch(B){return d}}}class XA extends nt{constructor(l,d){super(),this.state="initialized",this.connection=null,this.key=l,this.options=d,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var B=AA.getNetwork();B.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),B.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(l){this.key=l,this.updateStrategy(),this.retryIn(0)}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(l){return this.connection?this.connection.send(l):!1}send_event(l,d,B){return this.connection?this.connection.send_event(l,d,B):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var l=(d,B)=>{d?this.runner=this.strategy.connect(0,l):B.action==="error"?(this.emit("error",{type:"HandshakeError",error:B.error}),this.timeline.error({handshakeError:B.error})):(this.abortConnecting(),this.handshakeCallbacks[B.action](B))};this.runner=this.strategy.connect(0,l)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var l=this.abandonConnection();l.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(l){this.timeline.info({action:"retry",delay:l}),l>0&&this.emit("connecting_in",Math.round(l/1e3)),this.retryTimer=new YA(l||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new YA(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new YA(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new YA(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(l){return OA({},l,{message:d=>{this.resetActivityCheck(),this.emit("message",d)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:d=>{this.emit("error",d)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(l){return OA({},l,{connected:d=>{this.activityTimeout=Math.min(this.options.activityTimeout,d.activityTimeout,d.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(d.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let l=d=>B=>{B.error&&this.emit("error",{type:"WebSocketError",error:B.error}),d(B)};return{tls_only:l(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:l(()=>{this.disconnect()}),backoff:l(()=>{this.retryIn(1e3)}),retry:l(()=>{this.retryIn(0)})}}setConnection(l){this.connection=l;for(var d in this.connectionCallbacks)this.connection.bind(d,this.connectionCallbacks[d]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var l in this.connectionCallbacks)this.connection.unbind(l,this.connectionCallbacks[l]);var d=this.connection;return this.connection=null,d}}updateState(l,d){var B=this.state;if(this.state=l,B!==l){var C=l;C==="connected"&&(C+=" with new socket ID "+d.socket_id),BA.debug("State changed",B+" -> "+C),this.timeline.info({state:l,params:d}),this.emit("state_change",{previous:B,current:l}),this.emit(l,d)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class Si{constructor(){this.channels={}}add(l,d){return this.channels[l]||(this.channels[l]=Ii(l,d)),this.channels[l]}all(){return De(this.channels)}find(l){return this.channels[l]}remove(l){var d=this.channels[l];return delete this.channels[l],d}disconnect(){GA(this.channels,function(l){l.disconnect()})}}function Ii(p,l){if(p.indexOf("private-encrypted-")===0){if(l.config.nacl)return Lt.createEncryptedChannel(p,l,l.config.nacl);let d="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",B=v.buildLogSuffix("encryptedChannelSupport");throw new N(`${d}. ${B}`)}else{if(p.indexOf("private-")===0)return Lt.createPrivateChannel(p,l);if(p.indexOf("presence-")===0)return Lt.createPresenceChannel(p,l);if(p.indexOf("#")===0)throw new x('Cannot create a channel with name "'+p+'".');return Lt.createChannel(p,l)}}var vx={createChannels(){return new Si},createConnectionManager(p,l){return new XA(p,l)},createChannel(p,l){return new P(p,l)},createPrivateChannel(p,l){return new fA(p,l)},createPresenceChannel(p,l){return new ie(p,l)},createEncryptedChannel(p,l,d){return new _s(p,l,d)},createTimelineSender(p,l){return new T(p,l)},createHandshake(p,l){return new Q(p,l)},createAssistantToTheTransportManager(p,l,d){return new xi(p,l,d)}};const Lt=vx;class Mf{constructor(l){this.options=l||{},this.livesLeft=this.options.lives||1/0}getAssistant(l){return Lt.createAssistantToTheTransportManager(this,l,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class Rn{constructor(l,d){this.strategies=l,this.loop=!!d.loop,this.failFast=!!d.failFast,this.timeout=d.timeout,this.timeoutLimit=d.timeoutLimit}isSupported(){return en(this.strategies,IA.method("isSupported"))}connect(l,d){var B=this.strategies,C=0,S=this.timeout,D=null,$=(Y,oA)=>{oA?d(null,oA):(C=C+1,this.loop&&(C=C%B.length),C<B.length?(S&&(S=S*2,this.timeoutLimit&&(S=Math.min(S,this.timeoutLimit))),D=this.tryStrategy(B[C],l,{timeout:S,failFast:this.failFast},$)):d(!0))};return D=this.tryStrategy(B[C],l,{timeout:S,failFast:this.failFast},$),{abort:function(){D.abort()},forceMinPriority:function(Y){l=Y,D&&D.forceMinPriority(Y)}}}tryStrategy(l,d,B,C){var S=null,D=null;return B.timeout>0&&(S=new YA(B.timeout,function(){D.abort(),C(!0)})),D=l.connect(d,function($,Y){$&&S&&S.isRunning()&&!B.failFast||(S&&S.ensureAborted(),C($,Y))}),{abort:function(){S&&S.ensureAborted(),D.abort()},forceMinPriority:function($){D.forceMinPriority($)}}}}class Al{constructor(l){this.strategies=l}isSupported(){return en(this.strategies,IA.method("isSupported"))}connect(l,d){return _x(this.strategies,l,function(B,C){return function(S,D){if(C[B].error=S,S){xx(C)&&d(!0);return}Oe(C,function($){$.forceMinPriority(D.transport.priority)}),d(null,D)}})}}function _x(p,l,d){var B=It(p,function(C,S,D,$){return C.connect(l,d(S,$))});return{abort:function(){Oe(B,Sx)},forceMinPriority:function(C){Oe(B,function(S){S.forceMinPriority(C)})}}}function xx(p){return mr(p,function(l){return!!l.error})}function Sx(p){!p.error&&!p.aborted&&(p.abort(),p.aborted=!0)}class Ix{constructor(l,d,B){this.strategy=l,this.transports=d,this.ttl=B.ttl||18e5,this.usingTLS=B.useTLS,this.timeline=B.timeline}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.usingTLS,C=Tx(B),S=C&&C.cacheSkipCount?C.cacheSkipCount:0,D=[this.strategy];if(C&&C.timestamp+this.ttl>=IA.now()){var $=this.transports[C.transport];$&&(["ws","wss"].includes(C.transport)||S>3?(this.timeline.info({cached:!0,transport:C.transport,latency:C.latency}),D.push(new Rn([$],{timeout:C.latency*2+1e3,failFast:!0}))):S++)}var Y=IA.now(),oA=D.pop().connect(l,function uA(MA,Ri){MA?(Nf(B),D.length>0?(Y=IA.now(),oA=D.pop().connect(l,uA)):d(MA)):(Hx(B,Ri.transport.name,IA.now()-Y,S),d(null,Ri))});return{abort:function(){oA.abort()},forceMinPriority:function(uA){l=uA,oA&&oA.forceMinPriority(uA)}}}}function el(p){return"pusherTransport"+(p?"TLS":"NonTLS")}function Tx(p){var l=AA.getLocalStorage();if(l)try{var d=l[el(p)];if(d)return JSON.parse(d)}catch(B){Nf(p)}return null}function Hx(p,l,d,B){var C=AA.getLocalStorage();if(C)try{C[el(p)]=fe({timestamp:IA.now(),transport:l,latency:d,cacheSkipCount:B})}catch(S){}}function Nf(p){var l=AA.getLocalStorage();if(l)try{delete l[el(p)]}catch(d){}}class Ti{constructor(l,{delay:d}){this.strategy=l,this.options={delay:d}}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.strategy,C,S=new YA(this.options.delay,function(){C=B.connect(l,d)});return{abort:function(){S.ensureAborted(),C&&C.abort()},forceMinPriority:function(D){l=D,C&&C.forceMinPriority(D)}}}}class xs{constructor(l,d,B){this.test=l,this.trueBranch=d,this.falseBranch=B}isSupported(){var l=this.test()?this.trueBranch:this.falseBranch;return l.isSupported()}connect(l,d){var B=this.test()?this.trueBranch:this.falseBranch;return B.connect(l,d)}}class Lx{constructor(l){this.strategy=l}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.strategy.connect(l,function(C,S){S&&B.abort(),d(C,S)});return B}}function Ss(p){return function(){return p.isSupported()}}var Rx=function(p,l,d){var B={};function C(Ag,TS,HS,LS,RS){var eg=d(p,Ag,TS,HS,LS,RS);return B[Ag]=eg,eg}var S=Object.assign({},l,{hostNonTLS:p.wsHost+":"+p.wsPort,hostTLS:p.wsHost+":"+p.wssPort,httpPath:p.wsPath}),D=Object.assign({},S,{useTLS:!0}),$=Object.assign({},l,{hostNonTLS:p.httpHost+":"+p.httpPort,hostTLS:p.httpHost+":"+p.httpsPort,httpPath:p.httpPath}),Y={loop:!0,timeout:15e3,timeoutLimit:6e4},oA=new Mf({minPingDelay:1e4,maxPingDelay:p.activityTimeout}),uA=new Mf({lives:2,minPingDelay:1e4,maxPingDelay:p.activityTimeout}),MA=C("ws","ws",3,S,oA),Ri=C("wss","ws",3,D,oA),vS=C("sockjs","sockjs",1,$),Xf=C("xhr_streaming","xhr_streaming",1,$,uA),_S=C("xdr_streaming","xdr_streaming",1,$,uA),Wf=C("xhr_polling","xhr_polling",1,$),xS=C("xdr_polling","xdr_polling",1,$),Jf=new Rn([MA],Y),SS=new Rn([Ri],Y),IS=new Rn([vS],Y),jf=new Rn([new xs(Ss(Xf),Xf,_S)],Y),Yf=new Rn([new xs(Ss(Wf),Wf,xS)],Y),qf=new Rn([new xs(Ss(jf),new Al([jf,new Ti(Yf,{delay:4e3})]),Yf)],Y),rl=new xs(Ss(qf),qf,IS),sl;return l.useTLS?sl=new Al([Jf,new Ti(rl,{delay:2e3})]):sl=new Al([Jf,new Ti(SS,{delay:2e3}),new Ti(rl,{delay:5e3})]),new Ix(new Lx(new xs(Ss(MA),sl,rl)),B,{ttl:18e5,timeline:l.timeline,useTLS:l.useTLS})};const Dx=Rx;function Ox(){var p=this;p.timeline.info(p.buildTimelineMessage({transport:p.name+(p.options.useTLS?"s":"")})),p.hooks.isInitialized()?p.changeState("initialized"):p.hooks.file?(p.changeState("initializing"),b.load(p.hooks.file,{useTLS:p.options.useTLS},function(l,d){p.hooks.isInitialized()?(p.changeState("initialized"),d(!0)):(l&&p.onError(l),p.onClose(),d(!1))})):p.onClose()}var Px={getRequest:function(p){var l=new window.XDomainRequest;return l.ontimeout=function(){p.emit("error",new R),p.close()},l.onerror=function(d){p.emit("error",d),p.close()},l.onprogress=function(){l.responseText&&l.responseText.length>0&&p.onChunk(200,l.responseText)},l.onload=function(){l.responseText&&l.responseText.length>0&&p.onChunk(200,l.responseText),p.emit("finished",200),p.close()},l},abortRequest:function(p){p.ontimeout=p.onerror=p.onprogress=p.onload=null,p.abort()}};const Mx=Px,Nx=256*1024;class Kx extends nt{constructor(l,d,B){super(),this.hooks=l,this.method=d,this.url=B}start(l){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},AA.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(l)}close(){this.unloader&&(AA.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(l,d){for(;;){var B=this.advanceBuffer(d);if(B)this.emit("chunk",{status:l,data:B});else break}this.isBufferTooLong(d)&&this.emit("buffer_too_long")}advanceBuffer(l){var d=l.slice(this.position),B=d.indexOf(`
1922
+ `);return B!==-1?(this.position+=B+1,d.slice(0,B)):null}isBufferTooLong(l){return this.position===l.length&&l.length>Nx}}var tl;(function(p){p[p.CONNECTING=0]="CONNECTING",p[p.OPEN=1]="OPEN",p[p.CLOSED=3]="CLOSED"})(tl||(tl={}));const Dn=tl;var $x=1;class zx{constructor(l,d){this.hooks=l,this.session=$f(1e3)+"/"+Xx(8),this.location=Vx(d),this.readyState=Dn.CONNECTING,this.openStream()}send(l){return this.sendRaw(JSON.stringify([l]))}ping(){this.hooks.sendHeartbeat(this)}close(l,d){this.onClose(l,d,!0)}sendRaw(l){if(this.readyState===Dn.OPEN)try{return AA.createSocketRequest("POST",Kf(Gx(this.location,this.session))).start(l),!0}catch(d){return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(l,d,B){this.closeStream(),this.readyState=Dn.CLOSED,this.onclose&&this.onclose({code:l,reason:d,wasClean:B})}onChunk(l){if(l.status===200){this.readyState===Dn.OPEN&&this.onActivity();var d,B=l.data.slice(0,1);switch(B){case"o":d=JSON.parse(l.data.slice(1)||"{}"),this.onOpen(d);break;case"a":d=JSON.parse(l.data.slice(1)||"[]");for(var C=0;C<d.length;C++)this.onEvent(d[C]);break;case"m":d=JSON.parse(l.data.slice(1)||"null"),this.onEvent(d);break;case"h":this.hooks.onHeartbeat(this);break;case"c":d=JSON.parse(l.data.slice(1)||"[]"),this.onClose(d[0],d[1],!0);break}}}onOpen(l){this.readyState===Dn.CONNECTING?(l&&l.hostname&&(this.location.base=Zx(this.location.base,l.hostname)),this.readyState=Dn.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(l){this.readyState===Dn.OPEN&&this.onmessage&&this.onmessage({data:l})}onActivity(){this.onactivity&&this.onactivity()}onError(l){this.onerror&&this.onerror(l)}openStream(){this.stream=AA.createSocketRequest("POST",Kf(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",l=>{this.onChunk(l)}),this.stream.bind("finished",l=>{this.hooks.onFinished(this,l)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(l){IA.defer(()=>{this.onError(l),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Vx(p){var l=/([^\?]*)\/*(\??.*)/.exec(p);return{base:l[1],queryString:l[2]}}function Gx(p,l){return p.base+"/"+l+"/xhr_send"}function Kf(p){var l=p.indexOf("?")===-1?"?":"&";return p+l+"t="+ +new Date+"&n="+$x++}function Zx(p,l){var d=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(p);return d[1]+l+d[3]}function $f(p){return AA.randomInt(p)}function Xx(p){for(var l=[],d=0;d<p;d++)l.push($f(32).toString(32));return l.join("")}const Wx=zx;var Jx={getReceiveURL:function(p,l){return p.base+"/"+l+"/xhr_streaming"+p.queryString},onHeartbeat:function(p){p.sendRaw("[]")},sendHeartbeat:function(p){p.sendRaw("[]")},onFinished:function(p,l){p.onClose(1006,"Connection interrupted ("+l+")",!1)}};const jx=Jx;var Yx={getReceiveURL:function(p,l){return p.base+"/"+l+"/xhr"+p.queryString},onHeartbeat:function(){},sendHeartbeat:function(p){p.sendRaw("[]")},onFinished:function(p,l){l===200?p.reconnect():p.onClose(1006,"Connection interrupted ("+l+")",!1)}};const qx=Yx;var AS={getRequest:function(p){var l=AA.getXHRAPI(),d=new l;return d.onreadystatechange=d.onprogress=function(){switch(d.readyState){case 3:d.responseText&&d.responseText.length>0&&p.onChunk(d.status,d.responseText);break;case 4:d.responseText&&d.responseText.length>0&&p.onChunk(d.status,d.responseText),p.emit("finished",d.status),p.close();break}},d},abortRequest:function(p){p.onreadystatechange=null,p.abort()}};const eS=AS;var tS={createStreamingSocket(p){return this.createSocket(jx,p)},createPollingSocket(p){return this.createSocket(qx,p)},createSocket(p,l){return new Wx(p,l)},createXHR(p,l){return this.createRequest(eS,p,l)},createRequest(p,l,d){return new Kx(p,l,d)}};const zf=tS;zf.createXDR=function(p,l){return this.createRequest(Mx,p,l)};var nS={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:u,DependenciesReceivers:m,getDefaultStrategy:Dx,Transports:rt,transportConnectionInitializer:Ox,HTTPFactory:zf,TimelineTransport:tn,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(p){window.Pusher=p;var l=()=>{this.onDocumentBody(p.ready)};window.JSON?l():b.load("json2",{},l)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:_A,jsonp:ys}},onDocumentBody(p){document.body?p():setTimeout(()=>{this.onDocumentBody(p)},0)},createJSONPRequest(p,l){return new Cr(p,l)},createScriptRequest(p){return new yi(p)},getLocalStorage(){try{return window.localStorage}catch(p){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var p=this.getXHRAPI();return new p},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return _i},createWebSocket(p){var l=this.getWebSocketAPI();return new l(p)},createSocketRequest(p,l){if(this.isXHRSupported())return this.HTTPFactory.createXHR(p,l);if(this.isXDRSupported(l.indexOf("https:")===0))return this.HTTPFactory.createXDR(p,l);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var p=this.getXHRAPI();return!!p&&new p().withCredentials!==void 0},isXDRSupported(p){var l=p?"https:":"http:",d=this.getProtocol();return!!window.XDomainRequest&&d===l},addUnloadListener(p){window.addEventListener!==void 0?window.addEventListener("unload",p,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",p)},removeUnloadListener(p){window.addEventListener!==void 0?window.removeEventListener("unload",p,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",p)},randomInt(p){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*p)}};const AA=nS;var nl;(function(p){p[p.ERROR=3]="ERROR",p[p.INFO=6]="INFO",p[p.DEBUG=7]="DEBUG"})(nl||(nl={}));const Hi=nl;class rS{constructor(l,d,B){this.key=l,this.session=d,this.events=[],this.options=B||{},this.sent=0,this.uniqueID=0}log(l,d){l<=this.options.level&&(this.events.push(OA({},d,{timestamp:IA.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(l){this.log(Hi.ERROR,l)}info(l){this.log(Hi.INFO,l)}debug(l){this.log(Hi.DEBUG,l)}isEmpty(){return this.events.length===0}send(l,d){var B=OA({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],l(B,(C,S)=>{C||this.sent++,d&&d(C,S)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class sS{constructor(l,d,B,C){this.name=l,this.priority=d,this.transport=B,this.options=C||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(l,d){if(this.isSupported()){if(this.priority<l)return Vf(new H,d)}else return Vf(new K,d);var B=!1,C=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),S=null,D=function(){C.unbind("initialized",D),C.connect()},$=function(){S=Lt.createHandshake(C,function(MA){B=!0,uA(),d(null,MA)})},Y=function(MA){uA(),d(MA)},oA=function(){uA();var MA;MA=fe(C),d(new X(MA))},uA=function(){C.unbind("initialized",D),C.unbind("open",$),C.unbind("error",Y),C.unbind("closed",oA)};return C.bind("initialized",D),C.bind("open",$),C.bind("error",Y),C.bind("closed",oA),C.initialize(),{abort:()=>{B||(uA(),S?S.close():C.close())},forceMinPriority:MA=>{B||this.priority<MA&&(S?S.close():C.close())}}}}function Vf(p,l){return IA.defer(function(){l(p)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:oS}=AA;var iS=function(p,l,d,B,C,S){var D=oS[d];if(!D)throw new W(d);var $=(!p.enabledTransports||In(p.enabledTransports,l)!==-1)&&(!p.disabledTransports||In(p.disabledTransports,l)===-1),Y;return $?(C=Object.assign({ignoreNullOrigin:p.ignoreNullOrigin},C),Y=new sS(l,B,S?S.getAssistant(D):D,C)):Y=aS,Y},aS={isSupported:function(){return!1},connect:function(p,l){var d=IA.defer(function(){l(new K)});return{abort:function(){d.ensureAborted()},forceMinPriority:function(){}}}};function cS(p){if(p==null)throw"You must pass an options object";if(p.cluster==null)throw"Options object must provide a cluster";"disableStats"in p&&BA.warn("The disableStats option is deprecated in favor of enableStats")}const lS=(p,l)=>{var d="socket_id="+encodeURIComponent(p.socketId);for(var B in l.params)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(l.params[B]);if(l.paramsProvider!=null){let C=l.paramsProvider();for(var B in C)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(C[B])}return d},uS=p=>{if(typeof AA.getAuthorizers()[p.transport]=="undefined")throw`'${p.transport}' is not a recognized auth transport`;return(l,d)=>{const B=lS(l,p);AA.getAuthorizers()[p.transport](AA,B,p,y.UserAuthentication,d)}},dS=(p,l)=>{var d="socket_id="+encodeURIComponent(p.socketId);d+="&channel_name="+encodeURIComponent(p.channelName);for(var B in l.params)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(l.params[B]);if(l.paramsProvider!=null){let C=l.paramsProvider();for(var B in C)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(C[B])}return d},pS=p=>{if(typeof AA.getAuthorizers()[p.transport]=="undefined")throw`'${p.transport}' is not a recognized auth transport`;return(l,d)=>{const B=dS(l,p);AA.getAuthorizers()[p.transport](AA,B,p,y.ChannelAuthorization,d)}},hS=(p,l,d)=>{const B={authTransport:l.transport,authEndpoint:l.endpoint,auth:{params:l.params,headers:l.headers}};return(C,S)=>{const D=p.channel(C.channelName);d(D,B).authorize(C.socketId,S)}};function Gf(p,l){let d={activityTimeout:p.activityTimeout||f.activityTimeout,cluster:p.cluster,httpPath:p.httpPath||f.httpPath,httpPort:p.httpPort||f.httpPort,httpsPort:p.httpsPort||f.httpsPort,pongTimeout:p.pongTimeout||f.pongTimeout,statsHost:p.statsHost||f.stats_host,unavailableTimeout:p.unavailableTimeout||f.unavailableTimeout,wsPath:p.wsPath||f.wsPath,wsPort:p.wsPort||f.wsPort,wssPort:p.wssPort||f.wssPort,enableStats:mS(p),httpHost:fS(p),useTLS:wS(p),wsHost:gS(p),userAuthenticator:CS(p),channelAuthorizer:QS(p,l)};return"disabledTransports"in p&&(d.disabledTransports=p.disabledTransports),"enabledTransports"in p&&(d.enabledTransports=p.enabledTransports),"ignoreNullOrigin"in p&&(d.ignoreNullOrigin=p.ignoreNullOrigin),"timelineParams"in p&&(d.timelineParams=p.timelineParams),"nacl"in p&&(d.nacl=p.nacl),d}function fS(p){return p.httpHost?p.httpHost:p.cluster?`sockjs-${p.cluster}.pusher.com`:f.httpHost}function gS(p){return p.wsHost?p.wsHost:BS(p.cluster)}function BS(p){return`ws-${p}.pusher.com`}function wS(p){return AA.getProtocol()==="https:"?!0:p.forceTLS!==!1}function mS(p){return"enableStats"in p?p.enableStats:"disableStats"in p?!p.disableStats:!1}const Zf=p=>"customHandler"in p&&p.customHandler!=null;function CS(p){const l=Object.assign(Object.assign({},f.userAuthentication),p.userAuthentication);return Zf(l)?l.customHandler:uS(l)}function bS(p,l){let d;if("channelAuthorization"in p)d=Object.assign(Object.assign({},f.channelAuthorization),p.channelAuthorization);else if(d={transport:p.authTransport||f.authTransport,endpoint:p.authEndpoint||f.authEndpoint},"auth"in p&&("params"in p.auth&&(d.params=p.auth.params),"headers"in p.auth&&(d.headers=p.auth.headers)),"authorizer"in p)return{customHandler:hS(l,d,p.authorizer)};return d}function QS(p,l){const d=bS(p,l);return Zf(d)?d.customHandler:pS(d)}class yS extends nt{constructor(l){super(function(d,B){BA.debug(`No callbacks on watchlist events for ${d}`)}),this.pusher=l,this.bindWatchlistInternalEvent()}handleEvent(l){l.data.events.forEach(d=>{this.emit(d.name,d)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",l=>{var d=l.event;d==="pusher_internal:watchlist_events"&&this.handleEvent(l)})}}function US(){let p,l;return{promise:new Promise((B,C)=>{p=B,l=C}),resolve:p,reject:l}}const ES=US;class kS extends nt{constructor(l){super(function(d,B){BA.debug("No callbacks on user for "+d)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(d,B)=>{if(d){BA.warn(`Error during signin: ${d}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:B.auth,user_data:B.user_data})},this.pusher=l,this.pusher.connection.bind("state_change",({previous:d,current:B})=>{d!=="connected"&&B==="connected"&&this._signin(),d==="connected"&&B!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new yS(l),this.pusher.connection.bind("message",d=>{var B=d.event;B==="pusher:signin_success"&&this._onSigninSuccess(d.data),this.serverToUserChannel&&this.serverToUserChannel.name===d.channel&&this.serverToUserChannel.handleEvent(d)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(l){try{this.user_data=JSON.parse(l.user_data)}catch(d){BA.error(`Failed parsing user data after signin: ${l.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){BA.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const l=d=>{d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.pusher.connection.state==="connected"&&d.subscribe()};this.serverToUserChannel=new P(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((d,B)=>{d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0||this.emit(d,B)}),l(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:l,resolve:d}=ES();l.done=!1;const B=()=>{l.done=!0};l.then(B).catch(B),this.signinDonePromise=l,this._signinDoneResolve=d}}class ne{static ready(){ne.isReady=!0;for(var l=0,d=ne.instances.length;l<d;l++)ne.instances[l].connect()}static getClientFeatures(){return wt(Ct({ws:AA.Transports.ws},function(l){return l.isSupported({})}))}constructor(l,d){FS(l),cS(d),this.key=l,this.options=d,this.config=Gf(this.options,this),this.channels=Lt.createChannels(),this.global_emitter=new nt,this.sessionID=AA.randomInt(1e9),this.timeline=new rS(this.key,this.sessionID,{cluster:this.config.cluster,features:ne.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Hi.INFO,version:f.VERSION}),this.config.enableStats&&(this.timelineSender=Lt.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+AA.TimelineTransport.name}));var B=C=>AA.getDefaultStrategy(this.config,C,iS);this.connection=Lt.createConnectionManager(this.key,{getStrategy:B,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",C=>{var S=C.event,D=S.indexOf("pusher_internal:")===0;if(C.channel){var $=this.channel(C.channel);$&&$.handleEvent(C)}D||this.global_emitter.emit(C.event,C.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",C=>{BA.warn(C)}),ne.instances.push(this),this.timeline.info({instances:ne.instances.length}),this.user=new kS(this),ne.isReady&&this.connect()}switchCluster(l){const{appKey:d,cluster:B}=l;this.key=d,this.options=Object.assign(Object.assign({},this.options),{cluster:B}),this.config=Gf(this.options,this),this.connection.switchCluster(this.key)}channel(l){return this.channels.find(l)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var l=this.connection.isUsingTLS(),d=this.timelineSender;this.timelineSenderTimer=new qe(6e4,function(){d.send(l)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(l,d,B){return this.global_emitter.bind(l,d,B),this}unbind(l,d,B){return this.global_emitter.unbind(l,d,B),this}bind_global(l){return this.global_emitter.bind_global(l),this}unbind_global(l){return this.global_emitter.unbind_global(l),this}unbind_all(l){return this.global_emitter.unbind_all(),this}subscribeAll(){var l;for(l in this.channels.channels)this.channels.channels.hasOwnProperty(l)&&this.subscribe(l)}subscribe(l){var d=this.channels.add(l,this);return d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.connection.state==="connected"&&d.subscribe(),d}unsubscribe(l){var d=this.channels.find(l);d&&d.subscriptionPending?d.cancelSubscription():(d=this.channels.remove(l),d&&d.subscribed&&d.unsubscribe())}send_event(l,d,B){return this.connection.send_event(l,d,B)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}ne.instances=[],ne.isReady=!1,ne.logToConsole=!1,ne.Runtime=AA,ne.ScriptReceivers=AA.ScriptReceivers,ne.DependenciesReceivers=AA.DependenciesReceivers,ne.auth_callbacks=AA.auth_callbacks;const Li=ne;function FS(p){if(p==null)throw"You must pass your app key when you instantiate Pusher."}AA.setup(ne)}},n={};function r(o){var a=n[o];if(a!==void 0)return a.exports;var i=n[o]={exports:{}};return t[o].call(i.exports,i,i.exports,r),i.exports}r.d=(o,a)=>{for(var i in a)r.o(a,i)&&!r.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:a[i]})},r.o=(o,a)=>Object.prototype.hasOwnProperty.call(o,a);var s=r(721);return s})())})(Rc)),Rc.exports}var w_=B_();const m_=g_(w_);let We=null,or=null;function C_(A){return I(this,null,function*(){return or||(or=I(null,null,function*(){const e=A.backendUrl.replace(/\/+$/,""),t=yield Ir(`${e}/api/settings`,{headers:{Authorization:`Bearer ${A.token}`}});if(!t.ok)throw new Error(`Failed to fetch settings: HTTP ${t.status}`);const n=yield t.json();We=new m_(n.pusher.key,{cluster:n.pusher.cluster||"local",forceTLS:!0,wsHost:n.pusher.wsHost||void 0,wsPort:n.pusher.wssPort,wssPort:n.pusher.wssPort,enabledTransports:n.pusher.wsHost?["ws"]:void 0,channelAuthorization:{customHandler:({socketId:r,channelName:s},o)=>{Ir(`${e}/api/pusher/auth`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${A.token}`},body:JSON.stringify({socket_id:r,channel_name:s})}).then(a=>a.json()).then(a=>o(null,a)).catch(a=>o(a instanceof Error?a:new Error(String(a)),null))}}})}),or.catch(()=>{or=null}),or)})}function b_(A){if(!A||!We)return null;let e=!1;const t=({current:n})=>{n==="connected"&&e?(e=!1,A()):n!=="connected"&&(e=!0)};return We.connection.bind("state_change",t),()=>We==null?void 0:We.connection.unbind("state_change",t)}function Q_(A,e,t){return I(this,null,function*(){if(yield C_(A),!We)return()=>{};const n=We.subscribe(`private-task-${e}`);t.onStatusUpdate&&n.bind($s.TASK_STATUS_UPDATED,t.onStatusUpdate),t.onInteractionCreated&&n.bind($s.TASK_INTERACTION_CREATED,t.onInteractionCreated),t.onInteractionAnswered&&n.bind($s.TASK_INTERACTION_ANSWERED,t.onInteractionAnswered),t.onBrowserCommandCreated&&n.bind($s.TASK_BROWSER_COMMAND_CREATED,t.onBrowserCommandCreated);const r=b_(t.onReconnect);return()=>{n.unbind_all(),We==null||We.unsubscribe(`private-task-${e}`),r==null||r()}})}function Zh(A,e){const t=a=>I(null,null,function*(){if(w.currentTaskId!==A||!w.runnerEl||w.state.kind!=="idle"&&w.state.kind!=="connecting"||w.handledCommandIds.has(a.commandId))return;w.handledCommandIds.add(a.commandId);const i={id:a.commandId,taskId:a.taskId,action:a.action,selector:a.selector,value:a.value,description:a.description,status:"pending",createdAt:new Date().toISOString()};Qn({kind:"executing",command:i,actionsRun:w.state.kind==="idle"?w.state.actionsRun:0}),yield Wh(i,e,A)}),n=a=>{if(!(w.currentTaskId!==A||!w.runnerEl)&&R_.has(a)){if(w.state.kind==="executing")Qn({kind:"finishing",status:a,actionsRun:w.state.actionsRun});else if(w.state.kind==="connecting"||w.state.kind==="idle"){const i=w.state.kind==="idle"?w.state.actionsRun:0;Qn({kind:"finished",status:a,actionsRun:i})}}},r=a=>{w.currentTaskId!==A||!w.runnerEl||(a.outputChunk&&jh([a.outputChunk]),n(a.status))},s=()=>I(null,null,function*(){var a;if(!(w.currentTaskId!==A||!w.runnerEl))try{const i=yield Ao(e,A);w.currentTaskId===A&&w.runnerEl&&(w.currentQuestion=(a=i[0])!=null?a:null,bn())}catch(i){}}),o=()=>I(null,null,function*(){var a;try{const[i,c,u,h]=yield Promise.all([Hu(e,A),Eb(e,A),Ao(e,A),yb(e,A)]);if(w.currentTaskId!==A||!w.runnerEl)return;jh(c),w.currentQuestion=(a=u[0])!=null?a:null,bn(),n(i.status),h&&h.status==="pending"&&(w.state.kind==="idle"||w.state.kind==="connecting")&&!w.handledCommandIds.has(h.id)?(w.handledCommandIds.add(h.id),Qn({kind:"executing",command:h,actionsRun:w.state.kind==="idle"?w.state.actionsRun:0}),yield Wh(h,e,A)):w.state.kind==="connecting"&&Qn({kind:"idle",actionsRun:0})}catch(i){}});o(),Q_(e,A,{onStatusUpdate:r,onInteractionCreated:s,onInteractionAnswered:s,onBrowserCommandCreated:t,onReconnect:()=>{o()}}).then(a=>{if(w.currentTaskId!==A||w.state.kind==="finished"){a();return}w.unsubscribeTaskChannel=a})}function ti(){var e;w.cancelArmed=!1,w.cancelArmTimeout&&(clearTimeout(w.cancelArmTimeout),w.cancelArmTimeout=null),w.cancelDisarmDocListener&&(document.removeEventListener("click",w.cancelDisarmDocListener,!0),w.cancelDisarmDocListener=null);const A=(e=w.runnerEl)==null?void 0:e.querySelector("[data-ap-runner-cancel]");A&&(A.textContent="Cancel task")}function y_(A,e){return I(this,null,function*(){if(w.currentTaskId!==e||!w.runnerEl)return;const t=w.runnerEl.querySelector("[data-ap-runner-cancel]");t&&(t.disabled=!0);try{yield Fb(A,e)}catch(n){t&&(t.disabled=!1)}})}function Xh(){if(!w.currentTaskId||!w.currentApiOpts||!w.currentBackendUrl||!w.currentCaptureTitle)return;const A=w.currentTaskId,e=w.currentApiOpts;hh({taskId:A,backendUrl:w.currentBackendUrl,title:w.currentCaptureTitle}),w.timerHandle&&clearInterval(w.timerHandle),ri(),w.timerHandle=setInterval(ri,Yh);const t=w.state.kind==="finished"?w.state.actionsRun:0;w.handledCommandIds=new Set,w.state={kind:"idle",actionsRun:t},Dc(),Zh(A,e)}function Wh(A,e,t){return I(this,null,function*(){var o,a,i;let n="done",r;try{if(A.action==="getContext"){const c=A.selector?document.querySelector(A.selector):document.body;if(!c)throw new Error(`element not found (${A.selector})`);if(bl(c))throw new Error("Target element is in a sensitive or excluded region and cannot be automated");(o=w.highlightOverlay)==null||o.update(c),r=F_(c)}else{if(!A.selector)throw new Error(`${A.action} command is missing a selector`);const c=document.querySelector(A.selector);if(!c)throw new Error(`element not found (${A.selector})`);if(bl(c))throw new Error("Target element is in a sensitive or excluded region and cannot be automated");if((a=w.highlightOverlay)==null||a.update(c),A.action==="click")yield h_(c),r="Clicked";else{if(A.value===void 0)throw new Error("inputText command is missing a value");v_(c,A.value),r="Entered text"}}}catch(c){n="error",r=c instanceof Error?c.message:"Unknown error executing command"}if(w.currentTaskId===t&&w.runnerEl&&S_(n,A,r),yield k_(e,t,A.id,n,r),w.currentTaskId!==t||!w.runnerEl)return;(i=w.highlightOverlay)==null||i.hide();const s=(w.state.kind==="executing"||w.state.kind==="finishing"?w.state.actionsRun:0)+1;w.state.kind==="finishing"?Qn({kind:"finished",status:w.state.status,actionsRun:s}):w.state.kind==="executing"&&Qn({kind:"idle",actionsRun:s})})}function U_(A){return I(this,null,function*(){var n;if(!w.runnerEl||!w.currentQuestion||!w.currentTaskId||w.chatSubmitInFlight)return;const e=w.currentTaskId,t=w.currentApiOpts;if(t){w.chatSubmitInFlight=!0;try{const r={selectedOption:A};yield Du(t,e,w.currentQuestion.id,r),w.currentQuestion=null,bn();const s=yield Ao(t,e);w.currentTaskId===e&&w.runnerEl&&(w.currentQuestion=(n=s[0])!=null?n:null,bn())}catch(r){const s=w.runnerEl.querySelector("[data-ap-runner-chat-error]");s&&(s.textContent="Failed to send your answer — try again.",s.style.display="block")}finally{w.chatSubmitInFlight=!1}}})}function E_(A,e){return I(this,null,function*(){var o;if(!w.runnerEl||w.chatSubmitInFlight||w.state.kind==="finished"&&w.state.status==="failed")return;const t=w.runnerEl.querySelector("[data-ap-runner-chat-input]"),n=w.runnerEl.querySelector("[data-ap-runner-chat-error]"),r=w.runnerEl.querySelector("[data-ap-runner-chat-send]");if(!t||!n||!r)return;const s=t.value.trim();if(s){w.chatSubmitInFlight=!0,r.disabled=!0,n.style.display="none";try{if(w.currentQuestion){yield Du(A,e,w.currentQuestion.id,s),w.currentQuestion=null,bn();try{const a=yield Ao(A,e);w.currentTaskId===e&&w.runnerEl&&(w.currentQuestion=(o=a[0])!=null?o:null,bn())}catch(a){}}else yield kb(A,e,s),w.state.kind==="finished"&&Xh();t.value=""}catch(a){n.textContent=a instanceof Error?a.message:"Failed to send — try again.",n.style.display="block"}finally{w.chatSubmitInFlight=!1,r.disabled=!1}}})}function k_(A,e,t,n,r){return I(this,null,function*(){try{yield Ub(A,e,t,n,r)}catch(s){}})}function F_(A){const e=A.cloneNode(!0);e.querySelectorAll("script, style, noscript").forEach(r=>r.remove()),Ql(e),$i(e);let t=e.outerHTML,n=!1;return t.length>qh&&(t=t.slice(0,qh),n=!0),`URL: ${location.href}
1909
1923
  Title: ${document.title}
1910
1924
 
1911
1925
  ${t}${n?`
1912
- … (truncated)`:""}`}function B_(A,e){var s;const n=A instanceof HTMLTextAreaElement?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,r=(s=Object.getOwnPropertyDescriptor(n,"value"))==null?void 0:s.set;if(!r)throw new Error("target element does not accept text input");r.call(A,e),A.dispatchEvent(new Event("input",{bubbles:!0})),A.dispatchEvent(new Event("change",{bubbles:!0}))}function w_(A){if(!w.runnerEl||!w.currentTaskId||!w.currentBackendUrl)return;const e=w.runnerEl.querySelector("[data-ap-runner-summary]");if(!e)return;const t=`${w.currentBackendUrl.replace(/\/+$/,"")}/tasks/${w.currentTaskId}`,n=A==="completed"?"Automation complete!":"Automation ended",r=A==="completed",s=r?"ap-sdk-panel__btn--secondary":"ap-sdk-panel__btn--primary";e.style.display="block",e.innerHTML=`
1926
+ … (truncated)`:""}`}function v_(A,e){var s;const n=A instanceof HTMLTextAreaElement?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,r=(s=Object.getOwnPropertyDescriptor(n,"value"))==null?void 0:s.set;if(!r)throw new Error("target element does not accept text input");r.call(A,e),A.dispatchEvent(new Event("input",{bubbles:!0})),A.dispatchEvent(new Event("change",{bubbles:!0}))}function __(A){if(!w.runnerEl||!w.currentTaskId||!w.currentBackendUrl)return;const e=w.runnerEl.querySelector("[data-ap-runner-summary]");if(!e)return;const t=`${w.currentBackendUrl.replace(/\/+$/,"")}/tasks/${w.currentTaskId}`,n=A==="completed"?"Automation complete!":"Automation ended",r=A==="completed",s=r?"ap-sdk-panel__btn--secondary":"ap-sdk-panel__btn--primary";e.style.display="block",e.innerHTML=`
1913
1927
  <div class="ap-sdk-success-card">
1914
- <p class="ap-sdk-success-headline">${Sc(n)}</p>
1928
+ <p class="ap-sdk-success-headline">${Oc(n)}</p>
1915
1929
  ${r?`
1916
1930
  <div class="ap-sdk-runner__approval" data-ap-runner-approval>
1917
1931
  <div class="ap-sdk-runner__approval-actions">
@@ -1931,11 +1945,11 @@ ${t}${n?`
1931
1945
  <button class="ap-sdk-runner__text-btn" data-ap-runner-close>Close</button>
1932
1946
  </div>
1933
1947
  </div>
1934
- `,e.querySelector("[data-ap-runner-view]").addEventListener("click",()=>window.open(t,"_blank","noopener,noreferrer")),e.querySelector("[data-ap-runner-close]").addEventListener("click",()=>{const o=w.closeHandler;Ic(),o==null||o()}),r&&m_(e)}function m_(A){const e=A.querySelector("[data-ap-runner-approve]"),t=A.querySelector("[data-ap-runner-reject]"),n=A.querySelector("[data-ap-runner-reject-form]"),r=A.querySelector("[data-ap-runner-reject-feedback]"),s=A.querySelector("[data-ap-runner-reject-submit]"),o=A.querySelector("[data-ap-runner-approval-error]"),a=A.querySelector(".ap-sdk-runner__approval-actions"),i=u=>{o.textContent=u,o.style.display="block"};e.addEventListener("click",()=>T(null,null,function*(){if(!w.currentTaskId||!w.currentApiOpts)return;const u=w.currentTaskId,h=w.currentApiOpts;e.disabled=!0,t.disabled=!0,o.style.display="none";try{yield mb(h,u),a.innerHTML='<span class="ap-sdk-status-badge ap-sdk-status-badge--approved">✓ Approved</span>',n.style.display="none"}catch(f){e.disabled=!1,t.disabled=!1,i(f instanceof Error?f.message:"Failed to approve — try again.")}})),t.addEventListener("click",()=>{n.style.display=n.style.display==="none"?"block":"none",n.style.display==="block"&&r.focus()});const l=()=>{s.textContent=r.value.trim()?"Reject & Continue":"Reject Permanently"};r.addEventListener("input",l),s.addEventListener("click",()=>T(null,null,function*(){if(!w.currentTaskId||!w.currentApiOpts)return;const u=w.currentTaskId,h=w.currentApiOpts,f=r.value.trim();s.disabled=!0,e.disabled=!0,o.style.display="none",s.textContent="Rejecting…";try{yield Cb(h,u,f),f?Ph():(a.innerHTML='<span class="ap-sdk-status-badge ap-sdk-status-badge--rejected">✕ Rejected</span>',n.style.display="none")}catch(g){s.disabled=!1,e.disabled=!1,l(),i(g instanceof Error?g.message:"Failed to reject — try again.")}}))}function Nh(){var e;const A=(e=w.runnerEl)==null?void 0:e.querySelector("[data-ap-runner-log]");A&&(A.scrollTop=A.scrollHeight)}function jo(){if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-scroll-toggle]");A&&(A.textContent=w.autoScrollEnabled?"Auto ↓":"Manual",A.title=w.autoScrollEnabled?"Disable auto-scroll":"Enable auto-scroll",A.classList.toggle("ap-sdk-runner__scroll-toggle--active",w.autoScrollEnabled))}function xc(){if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-status]"),e=w.runnerEl.querySelector("[data-ap-runner-counter]"),t=w.runnerEl.querySelector("[data-ap-runner-log]"),n=w.runnerEl.querySelector("[data-ap-runner-hint]");if(!A||!e||!t||!n)return;const r="actionsRun"in w.state?w.state.actionsRun:0;e.textContent=`${r} action${r===1?"":"s"}`,jo(),w.state.kind==="finished"?(A.textContent=w.state.status.replace(/_/g," "),A.className=`ap-sdk-status-badge ap-sdk-status-badge--${w.state.status.replace(/_/g,"-")}`,n.style.display="none",w_(w.state.status)):(A.textContent="running",A.className="ap-sdk-status-badge ap-sdk-status-badge--in-progress",n.style.display="block");const s=t.querySelector("[data-ap-runner-placeholder]");if(w.logEntries.length===0&&(w.state.kind==="connecting"||w.state.kind==="idle")){if(!s){const u=document.createElement("div");u.className="ap-sdk-runner__placeholder",u.setAttribute("data-ap-runner-placeholder","1"),u.textContent="Waiting for the agent's first action…",t.appendChild(u)}}else s==null||s.remove();gn();const o=w.runnerEl.querySelector("[data-ap-runner-chat-input]"),a=w.runnerEl.querySelector("[data-ap-runner-chat-send]");if(o&&a){const u=w.state.kind==="finished"&&w.state.status==="failed";o.disabled=u,a.disabled=u||w.chatSubmitInFlight,u&&(o.placeholder="This task failed — start a new automation to continue.")}const i=w.runnerEl.querySelector("[data-ap-runner-cancel]");i&&(i.style.display=w.state.kind==="finished"?"none":"");const l=w.runnerEl.querySelector("[data-ap-runner-summary]");l&&w.state.kind!=="finished"&&(l.style.display="none",l.innerHTML="")}function gn(){var r;if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-question]"),e=w.runnerEl.querySelector("[data-ap-runner-chat-input]");if(!A||!e)return;if(!w.currentQuestion){A.style.display="none",A.innerHTML="",e.placeholder="Send a message to the agent…";return}const t=w.currentQuestion.questionMetadata,n=(r=t==null?void 0:t.options)!=null?r:[];if(e.placeholder="Type your answer…",A.style.display="block",A.innerHTML=`
1935
- <div class="ap-sdk-runner__question-label">${Sc((t==null?void 0:t.header)||"The agent has a question")}</div>
1936
- <div class="ap-sdk-runner__question-text ap-sdk-markdown">${Rh((t==null?void 0:t.question)||w.currentQuestion.question)}</div>
1948
+ `,e.querySelector("[data-ap-runner-view]").addEventListener("click",()=>window.open(t,"_blank","noopener,noreferrer")),e.querySelector("[data-ap-runner-close]").addEventListener("click",()=>{const o=w.closeHandler;Pc(),o==null||o()}),r&&x_(e)}function x_(A){const e=A.querySelector("[data-ap-runner-approve]"),t=A.querySelector("[data-ap-runner-reject]"),n=A.querySelector("[data-ap-runner-reject-form]"),r=A.querySelector("[data-ap-runner-reject-feedback]"),s=A.querySelector("[data-ap-runner-reject-submit]"),o=A.querySelector("[data-ap-runner-approval-error]"),a=A.querySelector(".ap-sdk-runner__approval-actions"),i=u=>{o.textContent=u,o.style.display="block"};e.addEventListener("click",()=>I(null,null,function*(){if(!w.currentTaskId||!w.currentApiOpts)return;const u=w.currentTaskId,h=w.currentApiOpts;e.disabled=!0,t.disabled=!0,o.style.display="none";try{yield vb(h,u),a.innerHTML='<span class="ap-sdk-status-badge ap-sdk-status-badge--approved">✓ Approved</span>',n.style.display="none"}catch(f){e.disabled=!1,t.disabled=!1,i(f instanceof Error?f.message:"Failed to approve — try again.")}})),t.addEventListener("click",()=>{n.style.display=n.style.display==="none"?"block":"none",n.style.display==="block"&&r.focus()});const c=()=>{s.textContent=r.value.trim()?"Reject & Continue":"Reject Permanently"};r.addEventListener("input",c),s.addEventListener("click",()=>I(null,null,function*(){if(!w.currentTaskId||!w.currentApiOpts)return;const u=w.currentTaskId,h=w.currentApiOpts,f=r.value.trim();s.disabled=!0,e.disabled=!0,o.style.display="none",s.textContent="Rejecting…";try{yield _b(h,u,f),f?Xh():(a.innerHTML='<span class="ap-sdk-status-badge ap-sdk-status-badge--rejected">✕ Rejected</span>',n.style.display="none")}catch(g){s.disabled=!1,e.disabled=!1,c(),i(g instanceof Error?g.message:"Failed to reject — try again.")}}))}function Jh(){var e;const A=(e=w.runnerEl)==null?void 0:e.querySelector("[data-ap-runner-log]");A&&(A.scrollTop=A.scrollHeight)}function ni(){if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-scroll-toggle]");A&&(A.textContent=w.autoScrollEnabled?"Auto ↓":"Manual",A.title=w.autoScrollEnabled?"Disable auto-scroll":"Enable auto-scroll",A.classList.toggle("ap-sdk-runner__scroll-toggle--active",w.autoScrollEnabled))}function Dc(){if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-status]"),e=w.runnerEl.querySelector("[data-ap-runner-counter]"),t=w.runnerEl.querySelector("[data-ap-runner-log]"),n=w.runnerEl.querySelector("[data-ap-runner-hint]");if(!A||!e||!t||!n)return;const r="actionsRun"in w.state?w.state.actionsRun:0;e.textContent=`${r} action${r===1?"":"s"}`,ni(),w.state.kind==="finished"?(A.textContent=w.state.status.replace(/_/g," "),A.className=`ap-sdk-status-badge ap-sdk-status-badge--${w.state.status.replace(/_/g,"-")}`,n.style.display="none",__(w.state.status)):(A.textContent="running",A.className="ap-sdk-status-badge ap-sdk-status-badge--in-progress",n.style.display="block");const s=t.querySelector("[data-ap-runner-placeholder]");if(w.logEntries.length===0&&(w.state.kind==="connecting"||w.state.kind==="idle")){if(!s){const u=document.createElement("div");u.className="ap-sdk-runner__placeholder",u.setAttribute("data-ap-runner-placeholder","1"),u.textContent="Waiting for the agent's first action…",t.appendChild(u)}}else s==null||s.remove();bn();const o=w.runnerEl.querySelector("[data-ap-runner-chat-input]"),a=w.runnerEl.querySelector("[data-ap-runner-chat-send]");if(o&&a){const u=w.state.kind==="finished"&&w.state.status==="failed";o.disabled=u,a.disabled=u||w.chatSubmitInFlight,u&&(o.placeholder="This task failed — start a new automation to continue.")}const i=w.runnerEl.querySelector("[data-ap-runner-cancel]");i&&(i.style.display=w.state.kind==="finished"?"none":"");const c=w.runnerEl.querySelector("[data-ap-runner-summary]");c&&w.state.kind!=="finished"&&(c.style.display="none",c.innerHTML="")}function bn(){var r;if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-question]"),e=w.runnerEl.querySelector("[data-ap-runner-chat-input]");if(!A||!e)return;if(!w.currentQuestion){A.style.display="none",A.innerHTML="",e.placeholder="Send a message to the agent…";return}const t=w.currentQuestion.questionMetadata,n=(r=t==null?void 0:t.options)!=null?r:[];if(e.placeholder="Type your answer…",A.style.display="block",A.innerHTML=`
1949
+ <div class="ap-sdk-runner__question-label">${Oc((t==null?void 0:t.header)||"The agent has a question")}</div>
1950
+ <div class="ap-sdk-runner__question-text ap-sdk-markdown">${Vh((t==null?void 0:t.question)||w.currentQuestion.question)}</div>
1937
1951
  ${n.length>0?'<div class="ap-sdk-runner__question-options" data-ap-runner-question-options></div>':""}
1938
- `,n.length>0){const s=A.querySelector("[data-ap-runner-question-options]");for(const o of n){const a=document.createElement("button");a.type="button",a.className="ap-sdk-panel__btn ap-sdk-panel__btn--ghost ap-sdk-runner__question-option",a.textContent=o.label,a.addEventListener("click",()=>void p_(o.label)),s.appendChild(a)}}}function Yo(){if(!w.runnerEl||w.runStartedAt===null)return;const A=w.runnerEl.querySelector("[data-ap-runner-timer]");if(!A)return;const e=Math.max(0,Math.floor((Date.now()-w.runStartedAt)/1e3)),t=String(Math.floor(e/60)).padStart(2,"0"),n=String(e%60).padStart(2,"0");A.textContent=`${t}:${n}`}function C_(A,e,t){var u,h;const n=A==="done"?"✓":"✗",r=e.selector?` \`${e.selector}\``:"",s=e.description||`${e.action}${r}`,o=A==="done"&&e.action==="getContext"?`read context (${(u=t==null?void 0:t.length)!=null?u:0} chars)`:t,a=o?` — ${o}`:"";if(w.logEntries.push({status:A,text:`${n} ${s}${a}`}),!w.runnerEl)return;const i=w.runnerEl.querySelector("[data-ap-runner-log]");if(!i)return;(h=i.querySelector("[data-ap-runner-placeholder]"))==null||h.remove();const l=document.createElement("div");l.className=`ap-sdk-runner__log-entry ap-sdk-runner__log-entry--${A}`,l.textContent=w.logEntries[w.logEntries.length-1].text,i.appendChild(l),w.autoScrollEnabled&&(i.scrollTop=i.scrollHeight)}function b_(A){var e,t;return(t=(e=A.display)==null?void 0:e.variant)!=null?t:A.sdkEventType}function Q_(A){const e=b_(A);return(A.stream==="stdout"||A.stream==="stderr"||A.stream==="sdk_event"&&(e==="text"||e==="thinking"))&&A.data.trim()||null}function zh(A){var n;const e=A.filter(r=>r.sequence>w.lastRenderedChunkSequence).sort((r,s)=>r.sequence-s.sequence);if(e.length===0||(w.lastRenderedChunkSequence=Math.max(w.lastRenderedChunkSequence,...e.map(r=>r.sequence)),!w.runnerEl))return;const t=w.runnerEl.querySelector("[data-ap-runner-log]");if(t)for(const r of e){const s=Q_(r);if(!s)continue;(n=t.querySelector("[data-ap-runner-placeholder]"))==null||n.remove();const o=document.createElement("div");o.className=`ap-sdk-runner__log-entry ap-sdk-runner__log-entry--output ap-sdk-runner__log-entry--${r.stream}`,r.stream==="sdk_event"?(o.classList.add("ap-sdk-markdown"),o.innerHTML=Rh(s)):o.textContent=s,t.appendChild(o),w.autoScrollEnabled&&(t.scrollTop=t.scrollHeight)}}function y_(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Sc(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const $h=1e3,U_=32,Gh=15e3,E_=new Set(["completed","failed","cancelled"]),F_=4e3,w={runnerEl:null,runnerResizeCleanup:null,runnerDragCleanup:null,timerHandle:null,highlightOverlay:null,closeHandler:null,currentCaptureTitle:null,cancelArmed:!1,cancelArmTimeout:null,cancelDisarmDocListener:null,state:{kind:"connecting"},logEntries:[],autoScrollEnabled:!0,runStartedAt:null,currentTaskId:null,currentBackendUrl:null,currentApiOpts:null,lastRenderedChunkSequence:-1,currentQuestion:null,chatSubmitInFlight:!1,unsubscribeTaskChannel:null,handledCommandIds:new Set};function Bn(A){var e,t;w.state=A,w.state.kind==="idle"&&w.runStartedAt===null&&(w.runStartedAt=Date.now(),Yo(),w.timerHandle=setInterval(Yo,$h)),w.state.kind==="finished"&&(w.timerHandle&&(clearInterval(w.timerHandle),w.timerHandle=null),(e=w.unsubscribeTaskChannel)==null||e.call(w),w.unsubscribeTaskChannel=null,(t=w.highlightOverlay)==null||t.hide(),ih()),xc()}function Ic(){var A,e,t,n,r;Jo(),ih(),w.timerHandle&&clearInterval(w.timerHandle),w.timerHandle=null,(A=w.unsubscribeTaskChannel)==null||A.call(w),w.unsubscribeTaskChannel=null,(e=w.highlightOverlay)==null||e.destroy(),w.highlightOverlay=null,w.runnerEl&&nt(w.runnerEl),(t=w.runnerEl)==null||t.remove(),w.runnerEl=null,(n=w.runnerResizeCleanup)==null||n.call(w),w.runnerResizeCleanup=null,(r=w.runnerDragCleanup)==null||r.call(w),w.runnerDragCleanup=null,w.closeHandler=null,w.state={kind:"connecting"},w.logEntries=[],w.autoScrollEnabled=!0,w.runStartedAt=null,w.currentTaskId=null,w.currentBackendUrl=null,w.currentApiOpts=null,w.currentCaptureTitle=null,w.lastRenderedChunkSequence=-1,w.currentQuestion=null,w.chatSubmitInFlight=!1,w.handledCommandIds=new Set}function Tc(A,e,t,n,r){w.runnerEl&&Ic(),w.closeHandler=r!=null?r:null,w.state={kind:"connecting"},w.logEntries=[],w.autoScrollEnabled=!0,w.runStartedAt=null,w.lastRenderedChunkSequence=-1,w.currentQuestion=null,w.chatSubmitInFlight=!1,w.handledCommandIds=new Set,w.currentTaskId=A,w.currentBackendUrl=t,w.currentApiOpts=e,w.currentCaptureTitle=n,oh({taskId:A,backendUrl:t,title:n});const s=document.createElement("div");w.runnerEl=s,s.className="ap-sdk-panel",s.setAttribute("data-ap-sdk","1"),s.setAttribute("role","dialog"),s.setAttribute("aria-modal","true"),s.setAttribute("aria-label","Automation in progress");const o=n.length>55?`${n.slice(0,52)}…`:n;s.innerHTML=`
1952
+ `,n.length>0){const s=A.querySelector("[data-ap-runner-question-options]");for(const o of n){const a=document.createElement("button");a.type="button",a.className="ap-sdk-panel__btn ap-sdk-panel__btn--ghost ap-sdk-runner__question-option",a.textContent=o.label,a.addEventListener("click",()=>void U_(o.label)),s.appendChild(a)}}}function ri(){if(!w.runnerEl||w.runStartedAt===null)return;const A=w.runnerEl.querySelector("[data-ap-runner-timer]");if(!A)return;const e=Math.max(0,Math.floor((Date.now()-w.runStartedAt)/1e3)),t=String(Math.floor(e/60)).padStart(2,"0"),n=String(e%60).padStart(2,"0");A.textContent=`${t}:${n}`}function S_(A,e,t){var u,h;const n=A==="done"?"✓":"✗",r=e.selector?` \`${e.selector}\``:"",s=e.description||`${e.action}${r}`,o=A==="done"&&e.action==="getContext"?`read context (${(u=t==null?void 0:t.length)!=null?u:0} chars)`:t,a=o?` — ${o}`:"";if(w.logEntries.push({status:A,text:`${n} ${s}${a}`}),!w.runnerEl)return;const i=w.runnerEl.querySelector("[data-ap-runner-log]");if(!i)return;(h=i.querySelector("[data-ap-runner-placeholder]"))==null||h.remove();const c=document.createElement("div");c.className=`ap-sdk-runner__log-entry ap-sdk-runner__log-entry--${A}`,c.textContent=w.logEntries[w.logEntries.length-1].text,i.appendChild(c),w.autoScrollEnabled&&(i.scrollTop=i.scrollHeight)}function I_(A){var e,t;return(t=(e=A.display)==null?void 0:e.variant)!=null?t:A.sdkEventType}function T_(A){const e=I_(A);return(A.stream==="stdout"||A.stream==="stderr"||A.stream==="sdk_event"&&(e==="text"||e==="thinking"))&&A.data.trim()||null}function jh(A){var n;const e=A.filter(r=>r.sequence>w.lastRenderedChunkSequence).sort((r,s)=>r.sequence-s.sequence);if(e.length===0||(w.lastRenderedChunkSequence=Math.max(w.lastRenderedChunkSequence,...e.map(r=>r.sequence)),!w.runnerEl))return;const t=w.runnerEl.querySelector("[data-ap-runner-log]");if(t)for(const r of e){const s=T_(r);if(!s)continue;(n=t.querySelector("[data-ap-runner-placeholder]"))==null||n.remove();const o=document.createElement("div");o.className=`ap-sdk-runner__log-entry ap-sdk-runner__log-entry--output ap-sdk-runner__log-entry--${r.stream}`,r.stream==="sdk_event"?(o.classList.add("ap-sdk-markdown"),o.innerHTML=Vh(s)):o.textContent=s,t.appendChild(o),w.autoScrollEnabled&&(t.scrollTop=t.scrollHeight)}}function H_(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Oc(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const Yh=1e3,L_=32,qh=15e3,R_=new Set(["completed","failed","cancelled"]),D_=4e3,w={runnerEl:null,runnerResizeCleanup:null,runnerDragCleanup:null,timerHandle:null,highlightOverlay:null,closeHandler:null,currentCaptureTitle:null,cancelArmed:!1,cancelArmTimeout:null,cancelDisarmDocListener:null,state:{kind:"connecting"},logEntries:[],autoScrollEnabled:!0,runStartedAt:null,currentTaskId:null,currentBackendUrl:null,currentApiOpts:null,lastRenderedChunkSequence:-1,currentQuestion:null,chatSubmitInFlight:!1,unsubscribeTaskChannel:null,handledCommandIds:new Set};function Qn(A){var e,t;w.state=A,w.state.kind==="idle"&&w.runStartedAt===null&&(w.runStartedAt=Date.now(),ri(),w.timerHandle=setInterval(ri,Yh)),w.state.kind==="finished"&&(w.timerHandle&&(clearInterval(w.timerHandle),w.timerHandle=null),(e=w.unsubscribeTaskChannel)==null||e.call(w),w.unsubscribeTaskChannel=null,(t=w.highlightOverlay)==null||t.hide(),fh()),Dc()}function Pc(){var A,e,t,n,r;ti(),fh(),w.timerHandle&&clearInterval(w.timerHandle),w.timerHandle=null,(A=w.unsubscribeTaskChannel)==null||A.call(w),w.unsubscribeTaskChannel=null,(e=w.highlightOverlay)==null||e.destroy(),w.highlightOverlay=null,w.runnerEl&&it(w.runnerEl),(t=w.runnerEl)==null||t.remove(),w.runnerEl=null,(n=w.runnerResizeCleanup)==null||n.call(w),w.runnerResizeCleanup=null,(r=w.runnerDragCleanup)==null||r.call(w),w.runnerDragCleanup=null,w.closeHandler=null,w.state={kind:"connecting"},w.logEntries=[],w.autoScrollEnabled=!0,w.runStartedAt=null,w.currentTaskId=null,w.currentBackendUrl=null,w.currentApiOpts=null,w.currentCaptureTitle=null,w.lastRenderedChunkSequence=-1,w.currentQuestion=null,w.chatSubmitInFlight=!1,w.handledCommandIds=new Set}function Mc(A,e,t,n,r){w.runnerEl&&Pc(),w.closeHandler=r!=null?r:null,w.state={kind:"connecting"},w.logEntries=[],w.autoScrollEnabled=!0,w.runStartedAt=null,w.lastRenderedChunkSequence=-1,w.currentQuestion=null,w.chatSubmitInFlight=!1,w.handledCommandIds=new Set,w.currentTaskId=A,w.currentBackendUrl=t,w.currentApiOpts=e,w.currentCaptureTitle=n,hh({taskId:A,backendUrl:t,title:n});const s=document.createElement("div");w.runnerEl=s,s.className="ap-sdk-panel",s.setAttribute("data-ap-sdk","1"),s.setAttribute("role","dialog"),s.setAttribute("aria-modal","true"),s.setAttribute("aria-label","Automation in progress");const o=n.length>55?`${n.slice(0,52)}…`:n;s.innerHTML=`
1939
1953
  <div class="ap-sdk-panel__header">
1940
1954
  <span class="ap-sdk-panel__title">
1941
1955
  <span class="ap-sdk-panel__logo">AP</span>
@@ -1948,7 +1962,7 @@ ${t}${n?`
1948
1962
  <div class="ap-sdk-runner__meta">
1949
1963
  <div class="ap-sdk-runner__meta-row">
1950
1964
  <span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--automate">Automate</span>
1951
- <span class="ap-sdk-runner__title" title="${y_(n)}">${Sc(o)}</span>
1965
+ <span class="ap-sdk-runner__title" title="${H_(n)}">${Oc(o)}</span>
1952
1966
  </div>
1953
1967
  <div class="ap-sdk-runner__meta-row ap-sdk-runner__meta-row--controls">
1954
1968
  <span class="ap-sdk-runner__counter" data-ap-runner-counter>0 actions</span>
@@ -1978,14 +1992,14 @@ ${t}${n?`
1978
1992
  </div>
1979
1993
  <div class="ap-sdk-runner__hint" data-ap-runner-hint>Closing keeps the task running — resume anytime from My Captures.</div>
1980
1994
  <div class="ap-sdk-panel__status" data-ap-runner-summary style="display:none"></div>
1981
- `,s.addEventListener("wheel",a=>{a.stopPropagation()},{passive:!0}),s.addEventListener("touchmove",a=>{a.stopPropagation()},{passive:!0}),document.body.appendChild(s),w.highlightOverlay=Li(),tt(s),w.runnerResizeCleanup=ta(s,ea),w.runnerDragCleanup=vr(s,kr),s.querySelector("[data-ap-close]").addEventListener("click",()=>{Ic(),r==null||r()}),s.querySelector("[data-ap-runner-chat-form]").addEventListener("submit",a=>{a.preventDefault(),h_(e,A)}),s.querySelector("[data-ap-runner-cancel]").addEventListener("click",a=>{a.stopPropagation();const i=a.currentTarget;if(!w.cancelArmed){w.cancelArmed=!0,i.textContent="Confirm",w.cancelArmTimeout=setTimeout(Jo,F_),w.cancelDisarmDocListener=l=>{l.target!==i&&Jo()},document.addEventListener("click",w.cancelDisarmDocListener,!0);return}Jo(),d_(e,A)}),s.querySelector("[data-ap-runner-scroll-toggle]").addEventListener("click",()=>{w.autoScrollEnabled=!w.autoScrollEnabled,w.autoScrollEnabled&&Nh(),jo()}),s.querySelector("[data-ap-runner-scroll-jump]").addEventListener("click",()=>{w.autoScrollEnabled=!0,Nh(),jo()}),s.querySelector("[data-ap-runner-log]").addEventListener("scroll",()=>{if(!w.autoScrollEnabled||!w.runnerEl)return;const a=w.runnerEl.querySelector("[data-ap-runner-log]");a.scrollHeight-a.scrollTop-a.clientHeight>U_&&(w.autoScrollEnabled=!1,jo())}),xc(),Mh(A,e)}const Hc="ap-sdk-captures",k_=50;function nr(){try{const A=localStorage.getItem(Hc);return A?JSON.parse(A):[]}catch(A){return[]}}function v_(A){const e=nr(),t=[A,...e].slice(0,k_);try{localStorage.setItem(Hc,JSON.stringify(t))}catch(n){}}function __(){try{localStorage.removeItem(Hc)}catch(A){}}function Vh(A){var o,a,i,l,u;if(A.id){const h=document.querySelector(`label[for="${CSS.escape(A.id)}"]`),f=(o=h==null?void 0:h.textContent)==null?void 0:o.trim();if(f)return f}const e=A.closest("label"),t=(a=e==null?void 0:e.textContent)==null?void 0:a.trim();if(t)return t;const n=(i=A.getAttribute("aria-label"))==null?void 0:i.trim();if(n)return n;const r=(l=A.placeholder)==null?void 0:l.trim();if(r)return r;const s=(u=A.getAttribute("name"))==null?void 0:u.trim();return s||A.tagName.toLowerCase()}function x_(A,e){return`Click "${A}" ${e.toLowerCase()}`}function Zh(A,e,t){return t?`Typed [redacted] into ${A}`:`Typed "${e}" into ${A}`}function Xh(A,e){return`Scrolled to (${A}, ${e})`}function S_(A,e){return e?`Pressed "${A}" in ${e}`:`Pressed "${A}"`}function Wh(A){return A.map((e,t)=>`${t+1}. ${e.description}`).join(`
1982
- `)}const I_=400,T_=new Set(["Enter","Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),H_=new Set(["Control","Meta","Alt","Shift"]);function L_(A){if(H_.has(A.key))return null;const e=[];return A.ctrlKey&&e.push("Ctrl"),A.metaKey&&e.push("Cmd"),A.altKey&&e.push("Alt"),e.length>0?(e.push(A.key.length===1?A.key.toUpperCase():A.key),e.join("+")):T_.has(A.key)?A.key:null}function D_(A){return A instanceof HTMLInputElement||A instanceof HTMLTextAreaElement||A instanceof HTMLSelectElement?Vh(A):Is(A)||A.tagName.toLowerCase()}let rr=[],ue=null,qo=null,me=null,ut=null,dt=null;function Jh(){qo&&(qo.textContent=`● Recording — ${rr.length} step${rr.length===1?"":"s"}`)}function Lc(){dt&&(clearTimeout(dt),dt=null),ut&&(rr.push(ut),ut=null,Jh())}function Dc(A){Lc(),rr.push(A),Jh()}function R_(A){var e,t,n;return A instanceof HTMLSelectElement&&(n=(t=(e=A.selectedOptions[0])==null?void 0:e.textContent)==null?void 0:t.trim())!=null?n:A.value}function O_(A,e){me&&me(),rr=[],ut=null,ue=document.createElement("div"),ue.className="ap-sdk-recorder-bar",ue.setAttribute("data-ap-sdk","1"),ue.innerHTML=`
1995
+ `,s.addEventListener("wheel",a=>{a.stopPropagation()},{passive:!0}),s.addEventListener("touchmove",a=>{a.stopPropagation()},{passive:!0}),document.body.appendChild(s),w.highlightOverlay=Mi(),ot(s),w.runnerResizeCleanup=ca(s,aa),w.runnerDragCleanup=Hr(s,Tr),s.querySelector("[data-ap-close]").addEventListener("click",()=>{Pc(),r==null||r()}),s.querySelector("[data-ap-runner-chat-form]").addEventListener("submit",a=>{a.preventDefault(),E_(e,A)}),s.querySelector("[data-ap-runner-cancel]").addEventListener("click",a=>{a.stopPropagation();const i=a.currentTarget;if(!w.cancelArmed){w.cancelArmed=!0,i.textContent="Confirm",w.cancelArmTimeout=setTimeout(ti,D_),w.cancelDisarmDocListener=c=>{c.target!==i&&ti()},document.addEventListener("click",w.cancelDisarmDocListener,!0);return}ti(),y_(e,A)}),s.querySelector("[data-ap-runner-scroll-toggle]").addEventListener("click",()=>{w.autoScrollEnabled=!w.autoScrollEnabled,w.autoScrollEnabled&&Jh(),ni()}),s.querySelector("[data-ap-runner-scroll-jump]").addEventListener("click",()=>{w.autoScrollEnabled=!0,Jh(),ni()}),s.querySelector("[data-ap-runner-log]").addEventListener("scroll",()=>{if(!w.autoScrollEnabled||!w.runnerEl)return;const a=w.runnerEl.querySelector("[data-ap-runner-log]");a.scrollHeight-a.scrollTop-a.clientHeight>L_&&(w.autoScrollEnabled=!1,ni())}),Dc(),Zh(A,e)}const Nc="ap-sdk-captures",O_=50;function ir(){try{const A=localStorage.getItem(Nc);return A?JSON.parse(A):[]}catch(A){return[]}}function P_(A){const e=ir(),t=[A,...e].slice(0,O_);try{localStorage.setItem(Nc,JSON.stringify(t))}catch(n){}}function M_(){try{localStorage.removeItem(Nc)}catch(A){}}function Af(A){var o,a,i,c,u;if(A.id){const h=document.querySelector(`label[for="${CSS.escape(A.id)}"]`),f=(o=h==null?void 0:h.textContent)==null?void 0:o.trim();if(f)return f}const e=A.closest("label"),t=(a=e==null?void 0:e.textContent)==null?void 0:a.trim();if(t)return t;const n=(i=A.getAttribute("aria-label"))==null?void 0:i.trim();if(n)return n;const r=(c=A.placeholder)==null?void 0:c.trim();if(r)return r;const s=(u=A.getAttribute("name"))==null?void 0:u.trim();return s||A.tagName.toLowerCase()}function N_(A,e){return`Click "${A}" ${e.toLowerCase()}`}function ef(A,e,t){return t?`Typed [redacted] into ${A}`:`Typed "${e}" into ${A}`}function tf(A,e){return`Scrolled to (${A}, ${e})`}function K_(A,e){return e?`Pressed "${A}" in ${e}`:`Pressed "${A}"`}function nf(A){return A.map((e,t)=>`${t+1}. ${e.description}`).join(`
1996
+ `)}const $_=400,z_=new Set(["Enter","Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),V_=new Set(["Control","Meta","Alt","Shift"]);function G_(A){if(V_.has(A.key))return null;const e=[];return A.ctrlKey&&e.push("Ctrl"),A.metaKey&&e.push("Cmd"),A.altKey&&e.push("Alt"),e.length>0?(e.push(A.key.length===1?A.key.toUpperCase():A.key),e.join("+")):z_.has(A.key)?A.key:null}function Z_(A){return A instanceof HTMLInputElement||A instanceof HTMLTextAreaElement||A instanceof HTMLSelectElement?Af(A):Rs(A)||A.tagName.toLowerCase()}let ar=[],de=null,si=null,Ce=null,ft=null,gt=null;function rf(){si&&(si.textContent=`● Recording — ${ar.length} step${ar.length===1?"":"s"}`)}function Kc(){gt&&(clearTimeout(gt),gt=null),ft&&(ar.push(ft),ft=null,rf())}function $c(A){Kc(),ar.push(A),rf()}function X_(A){var e,t,n;return A instanceof HTMLSelectElement&&(n=(t=(e=A.selectedOptions[0])==null?void 0:e.textContent)==null?void 0:t.trim())!=null?n:A.value}function W_(A,e){Ce&&Ce(),ar=[],ft=null,de=document.createElement("div"),de.className="ap-sdk-recorder-bar",de.setAttribute("data-ap-sdk","1"),de.innerHTML=`
1983
1997
  <span class="ap-sdk-recorder-bar__counter" data-ap-recorder-counter>● Recording — 0 steps</span>
1984
1998
  <button class="ap-sdk-recorder-bar__btn ap-sdk-recorder-bar__btn--stop" data-ap-recorder-stop type="button">Stop</button>
1985
1999
  <button class="ap-sdk-recorder-bar__btn ap-sdk-recorder-bar__btn--discard" data-ap-recorder-discard type="button">Discard</button>
1986
- `,document.body.appendChild(ue),tt(ue),qo=ue.querySelector("[data-ap-recorder-counter]");const t=()=>{Lc();const i=rr;me==null||me(),A(i)},n=()=>{me==null||me()};ue.querySelector("[data-ap-recorder-stop]").addEventListener("click",t),ue.querySelector("[data-ap-recorder-discard]").addEventListener("click",n);const r=i=>{if(Qr(i.target))return;const l=i.target;Dc({action:"click",cssSelector:Ss(l),elementText:Is(l),description:x_(Is(l),l.tagName),capturedAt:new Date().toISOString()})},s=i=>{if(Qr(i.target))return;const l=i.target;if(!(l instanceof HTMLInputElement)&&!(l instanceof HTMLTextAreaElement)&&!(l instanceof HTMLSelectElement))return;const u=Vh(l),h=hl(l),f=h?"[redacted]":R_(l);Dc($(k({action:"inputText",cssSelector:Ss(l),elementText:u,value:f},h?{redacted:!0}:{}),{description:Zh(u,f,h),capturedAt:new Date().toISOString()}))},o=()=>{const i=Math.round(window.scrollX),l=Math.round(window.scrollY);ut?(ut.scrollX=i,ut.scrollY=l,ut.description=Xh(i,l)):ut={action:"scroll",scrollX:i,scrollY:l,description:Xh(i,l),capturedAt:new Date().toISOString()},dt&&clearTimeout(dt),dt=setTimeout(()=>{dt=null,Lc()},I_)},a=i=>{if(i.key==="Escape"){n();return}if(Qr(i.target))return;const l=L_(i);if(!l)return;const u=i.target instanceof Element?i.target:document.body,h=D_(u);Dc({action:"keypress",cssSelector:Ss(u),elementText:h,key:l,description:S_(l,h),capturedAt:new Date().toISOString()})};document.addEventListener("click",r,{capture:!0}),document.addEventListener("change",s,{capture:!0}),window.addEventListener("scroll",o,{capture:!0,passive:!0}),document.addEventListener("keydown",a,{capture:!0}),me=()=>{document.removeEventListener("click",r,{capture:!0}),document.removeEventListener("change",s,{capture:!0}),window.removeEventListener("scroll",o,{capture:!0}),document.removeEventListener("keydown",a,{capture:!0}),dt&&(clearTimeout(dt),dt=null),ut=null,ue&&nt(ue),ue==null||ue.remove(),ue=null,qo=null,me=null}}function M_(){me==null||me()}function Ai(){return me!==null}const P_="data-ap-sdk",K_="ap-sdk-fab",jh="ap-sdk-fab--dragging",Rc="ap-sdk-fab--open",Yh="ap-sdk-fab-pos",ei="ap-sdk-fab--left-edge",N_='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/></svg>',z_='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 3 7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/><path d="m13 13 6 6"/></svg>',$_='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="12" r="8"/></svg>',G_='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>';let P=null,pt=null,Vt=null,Zt=null,Te=null,sr=null,or=null,ir=null,ti=null,os=null,ar=null,ni=null,ri=null,si=null,qh=0,Af=0,ef=0,tf=0,cr=!1,Xe=!1,is=null,wn=null;function V_(){is=A=>{if(!P){oi();return}if(!cr){if(Math.hypot(A.clientX-ef,A.clientY-tf)<5)return;cr=!0,Xe=!0,P.classList.add(jh)}Z_(A.clientX-qh,A.clientY-Af)},wn=()=>{if(!P){oi();return}cr?(cr=!1,P.classList.remove(jh),P.style.transition="",X_(P.getBoundingClientRect())):P.style.transition="",oi()},window.addEventListener("pointermove",is),window.addEventListener("pointerup",wn),window.addEventListener("pointercancel",wn)}function oi(){is&&(window.removeEventListener("pointermove",is),is=null),wn&&(window.removeEventListener("pointerup",wn),window.removeEventListener("pointercancel",wn),wn=null)}function Z_(A,e){if(!P)return;const t=P.offsetWidth||52,n=P.offsetHeight||52;P.style.top=`${Math.max(0,Math.min(e,window.innerHeight-n))}px`,P.style.left=`${Math.max(0,Math.min(A,window.innerWidth-t))}px`,P.style.bottom="auto",P.style.right="auto"}function X_(A){if(!P)return;const t=Math.max(16,Math.min(window.innerHeight-A.bottom,window.innerHeight-52-16)),n=A.left+A.width/2<window.innerWidth/2?"left":"right";P.style.top="auto",P.style.bottom=`${t}px`,n==="left"?(P.style.right="auto",P.style.left="16px",P.classList.add(ei)):(P.style.left="auto",P.style.right="16px",P.classList.remove(ei));try{localStorage.setItem(Yh,JSON.stringify({edge:n,bottom:t}))}catch(r){}}function W_(){if(P)try{const A=localStorage.getItem(Yh);if(!A)return;const e=JSON.parse(A);if(typeof e.bottom!="number"||e.edge!=="left"&&e.edge!=="right")return;const n=Math.max(16,Math.min(e.bottom,window.innerHeight-52-16));P.style.top="auto",P.style.bottom=`${n}px`,e.edge==="left"?(P.style.right="auto",P.style.left="16px",P.classList.add(ei)):(P.style.left="auto",P.style.right="16px",P.classList.remove(ei))}catch(A){}}function lr(){P==null||P.classList.remove(Rc),ar&&(window.removeEventListener("pointerdown",ar,{capture:!0}),ar=null)}function J_(){P&&(P.classList.add(Rc),ar=A=>{!P||P.contains(A.target)||lr()},requestAnimationFrame(()=>{ar&&window.addEventListener("pointerdown",ar,{capture:!0})}))}function ii(A){return new DOMParser().parseFromString(A,"text/html").body.firstElementChild}function nf(A,e,t){var a;if(ni=A,ri=e,si=t,P)return;P=document.createElement("div"),P.className=K_,P.setAttribute(P_,"1"),sr=document.createElement("div"),sr.className="ap-sdk-fab__row";const n=document.createElement("span");n.className="ap-sdk-fab__label",n.textContent="View captures",Te=document.createElement("button"),Te.className="ap-sdk-fab__list ap-sdk-fab__sub",Te.setAttribute("aria-label","My captures"),Te.setAttribute("title","View my captures"),Te.appendChild(ii(G_));const r=document.createElement("span");r.className="ap-sdk-fab__badge",r.setAttribute("data-ap-badge",""),r.style.display="none",Te.appendChild(r),sr.appendChild(n),sr.appendChild(Te),or=document.createElement("div"),or.className="ap-sdk-fab__row";const s=document.createElement("span");s.className="ap-sdk-fab__label",s.textContent="Capture element",Vt=document.createElement("button"),Vt.className="ap-sdk-fab__capture ap-sdk-fab__sub",Vt.setAttribute("aria-label","Capture element"),Vt.setAttribute("title","Capture element to Agent Platform"),Vt.appendChild(ii(z_)),or.appendChild(s),or.appendChild(Vt),ir=document.createElement("div"),ir.className="ap-sdk-fab__row";const o=document.createElement("span");o.className="ap-sdk-fab__label",o.textContent="Record interaction",Zt=document.createElement("button"),Zt.className="ap-sdk-fab__record ap-sdk-fab__sub",Zt.setAttribute("aria-label","Record interaction"),Zt.setAttribute("title","Record a sequence of interactions"),Zt.appendChild(ii($_)),ir.appendChild(o),ir.appendChild(Zt),pt=document.createElement("button"),pt.className="ap-sdk-fab__main",pt.setAttribute("aria-label","Agent Platform"),pt.setAttribute("title","Agent Platform"),pt.appendChild(ii(N_)),P.appendChild(sr),P.appendChild(or),P.appendChild(ir),P.appendChild(pt),pt.addEventListener("click",i=>{if(Xe){Xe=!1;return}i.preventDefault(),i.stopPropagation(),P!=null&&P.classList.contains(Rc)?lr():J_()}),Vt.addEventListener("click",i=>{if(Xe){Xe=!1;return}i.preventDefault(),i.stopPropagation(),lr(),!Rn()&&!Ai()&&ni&&ni()}),Zt.addEventListener("click",i=>{if(Xe){Xe=!1;return}i.preventDefault(),i.stopPropagation(),lr(),!Rn()&&!Ai()&&ri&&ri()}),Te.addEventListener("click",i=>{if(Xe){Xe=!1;return}i.preventDefault(),i.stopPropagation(),lr(),si&&si()}),os=i=>{if(!P||!(P===i.target||P.contains(i.target)))return;const l=P.getBoundingClientRect();qh=i.clientX-l.left,Af=i.clientY-l.top,ef=i.clientX,tf=i.clientY,cr=!1,Xe=!1,P.style.transition="none",i.stopPropagation(),V_()},window.addEventListener("pointerdown",os,{capture:!0}),((a=document.body)!=null?a:document.documentElement).appendChild(P),tt(P),W_(),ti=setInterval(()=>{pt&&pt.classList.toggle("ap-sdk-fab__main--active",Rn()||Ai())},200)}function mn(A){const e=Te==null?void 0:Te.querySelector("[data-ap-badge]");e&&(A>0?(e.textContent=String(A),e.style.display=""):e.style.display="none")}function rf(){cr=!1,Xe=!1,oi(),lr(),ti&&(clearInterval(ti),ti=null),os&&(window.removeEventListener("pointerdown",os,{capture:!0}),os=null),P&&nt(P),P==null||P.remove(),P=null,pt=null,Vt=null,Zt=null,Te=null,sr=null,or=null,ir=null,ni=null,ri=null,si=null}function sf(A,e){return T(this,null,function*(){try{if(A.type==="planning"){const n=yield db(e,A.id);return{capture:A,status:n.status,approved:n.status==="approved"}}const t=yield vu(e,A.id);return{capture:A,status:t.status,approved:t.approved===!0}}catch(t){return{capture:A,status:"unavailable",approved:!1}}})}function of(A){return A.filter(e=>!e.approved).length}function af(A){return T(this,null,function*(){const e=nr();if(!A||e.length===0){mn(e.length);return}const t=yield Promise.all(e.map(n=>sf(n,A)));mn(of(t))})}function cf(A){return A.screenshotBlob?`
2000
+ `,document.body.appendChild(de),ot(de),si=de.querySelector("[data-ap-recorder-counter]");const t=()=>{Kc();const i=ar;Ce==null||Ce(),A(i)},n=()=>{Ce==null||Ce()};de.querySelector("[data-ap-recorder-stop]").addEventListener("click",t),de.querySelector("[data-ap-recorder-discard]").addEventListener("click",n);const r=i=>{if(vr(i.target))return;const c=i.target;$c({action:"click",cssSelector:Ls(c),elementText:Rs(c),description:N_(Rs(c),c.tagName),capturedAt:new Date().toISOString()})},s=i=>{if(vr(i.target))return;const c=i.target;if(!(c instanceof HTMLInputElement)&&!(c instanceof HTMLTextAreaElement)&&!(c instanceof HTMLSelectElement))return;const u=Af(c),h=Cl(c),f=h?"[redacted]":X_(c);$c(z(F({action:"inputText",cssSelector:Ls(c),elementText:u,value:f},h?{redacted:!0}:{}),{description:ef(u,f,h),capturedAt:new Date().toISOString()}))},o=()=>{const i=Math.round(window.scrollX),c=Math.round(window.scrollY);ft?(ft.scrollX=i,ft.scrollY=c,ft.description=tf(i,c)):ft={action:"scroll",scrollX:i,scrollY:c,description:tf(i,c),capturedAt:new Date().toISOString()},gt&&clearTimeout(gt),gt=setTimeout(()=>{gt=null,Kc()},$_)},a=i=>{if(i.key==="Escape"){n();return}if(vr(i.target))return;const c=G_(i);if(!c)return;const u=i.target instanceof Element?i.target:document.body,h=Z_(u);$c({action:"keypress",cssSelector:Ls(u),elementText:h,key:c,description:K_(c,h),capturedAt:new Date().toISOString()})};document.addEventListener("click",r,{capture:!0}),document.addEventListener("change",s,{capture:!0}),window.addEventListener("scroll",o,{capture:!0,passive:!0}),document.addEventListener("keydown",a,{capture:!0}),Ce=()=>{document.removeEventListener("click",r,{capture:!0}),document.removeEventListener("change",s,{capture:!0}),window.removeEventListener("scroll",o,{capture:!0}),document.removeEventListener("keydown",a,{capture:!0}),gt&&(clearTimeout(gt),gt=null),ft=null,de&&it(de),de==null||de.remove(),de=null,si=null,Ce=null}}function J_(){Ce==null||Ce()}function oi(){return Ce!==null}const j_="data-ap-sdk",Y_="ap-sdk-fab",sf="ap-sdk-fab--dragging",zc="ap-sdk-fab--open",of="ap-sdk-fab-pos",ii="ap-sdk-fab--left-edge",q_='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/></svg>',Ax='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 3 7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/><path d="m13 13 6 6"/></svg>',ex='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="12" r="8"/></svg>',tx='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>';let M=null,Bt=null,Yt=null,qt=null,He=null,cr=null,lr=null,ur=null,ai=null,ds=null,dr=null,ci=null,li=null,ui=null,af=0,cf=0,lf=0,uf=0,pr=!1,Je=!1,ps=null,yn=null;function nx(){ps=A=>{if(!M){di();return}if(!pr){if(Math.hypot(A.clientX-lf,A.clientY-uf)<5)return;pr=!0,Je=!0,M.classList.add(sf)}rx(A.clientX-af,A.clientY-cf)},yn=()=>{if(!M){di();return}pr?(pr=!1,M.classList.remove(sf),M.style.transition="",sx(M.getBoundingClientRect())):M.style.transition="",di()},window.addEventListener("pointermove",ps),window.addEventListener("pointerup",yn),window.addEventListener("pointercancel",yn)}function di(){ps&&(window.removeEventListener("pointermove",ps),ps=null),yn&&(window.removeEventListener("pointerup",yn),window.removeEventListener("pointercancel",yn),yn=null)}function rx(A,e){if(!M)return;const t=M.offsetWidth||52,n=M.offsetHeight||52;M.style.top=`${Math.max(0,Math.min(e,window.innerHeight-n))}px`,M.style.left=`${Math.max(0,Math.min(A,window.innerWidth-t))}px`,M.style.bottom="auto",M.style.right="auto"}function sx(A){if(!M)return;const t=Math.max(16,Math.min(window.innerHeight-A.bottom,window.innerHeight-52-16)),n=A.left+A.width/2<window.innerWidth/2?"left":"right";M.style.top="auto",M.style.bottom=`${t}px`,n==="left"?(M.style.right="auto",M.style.left="16px",M.classList.add(ii)):(M.style.left="auto",M.style.right="16px",M.classList.remove(ii));try{localStorage.setItem(of,JSON.stringify({edge:n,bottom:t}))}catch(r){}}function ox(){if(M)try{const A=localStorage.getItem(of);if(!A)return;const e=JSON.parse(A);if(typeof e.bottom!="number"||e.edge!=="left"&&e.edge!=="right")return;const n=Math.max(16,Math.min(e.bottom,window.innerHeight-52-16));M.style.top="auto",M.style.bottom=`${n}px`,e.edge==="left"?(M.style.right="auto",M.style.left="16px",M.classList.add(ii)):(M.style.left="auto",M.style.right="16px",M.classList.remove(ii))}catch(A){}}function hr(){M==null||M.classList.remove(zc),dr&&(window.removeEventListener("pointerdown",dr,{capture:!0}),dr=null)}function ix(){M&&(M.classList.add(zc),dr=A=>{!M||M.contains(A.target)||hr()},requestAnimationFrame(()=>{dr&&window.addEventListener("pointerdown",dr,{capture:!0})}))}function pi(A){return new DOMParser().parseFromString(A,"text/html").body.firstElementChild}function df(A,e,t){var a;if(ci=A,li=e,ui=t,M)return;M=document.createElement("div"),M.className=Y_,M.setAttribute(j_,"1"),cr=document.createElement("div"),cr.className="ap-sdk-fab__row";const n=document.createElement("span");n.className="ap-sdk-fab__label",n.textContent="View captures",He=document.createElement("button"),He.className="ap-sdk-fab__list ap-sdk-fab__sub",He.setAttribute("aria-label","My captures"),He.setAttribute("title","View my captures"),He.appendChild(pi(tx));const r=document.createElement("span");r.className="ap-sdk-fab__badge",r.setAttribute("data-ap-badge",""),r.style.display="none",He.appendChild(r),cr.appendChild(n),cr.appendChild(He),lr=document.createElement("div"),lr.className="ap-sdk-fab__row";const s=document.createElement("span");s.className="ap-sdk-fab__label",s.textContent="Capture element",Yt=document.createElement("button"),Yt.className="ap-sdk-fab__capture ap-sdk-fab__sub",Yt.setAttribute("aria-label","Capture element"),Yt.setAttribute("title","Capture element to Agent Platform"),Yt.appendChild(pi(Ax)),lr.appendChild(s),lr.appendChild(Yt),ur=document.createElement("div"),ur.className="ap-sdk-fab__row";const o=document.createElement("span");o.className="ap-sdk-fab__label",o.textContent="Record interaction",qt=document.createElement("button"),qt.className="ap-sdk-fab__record ap-sdk-fab__sub",qt.setAttribute("aria-label","Record interaction"),qt.setAttribute("title","Record a sequence of interactions"),qt.appendChild(pi(ex)),ur.appendChild(o),ur.appendChild(qt),Bt=document.createElement("button"),Bt.className="ap-sdk-fab__main",Bt.setAttribute("aria-label","Agent Platform"),Bt.setAttribute("title","Agent Platform"),Bt.appendChild(pi(q_)),M.appendChild(cr),M.appendChild(lr),M.appendChild(ur),M.appendChild(Bt),Bt.addEventListener("click",i=>{if(Je){Je=!1;return}i.preventDefault(),i.stopPropagation(),M!=null&&M.classList.contains(zc)?hr():ix()}),Yt.addEventListener("click",i=>{if(Je){Je=!1;return}i.preventDefault(),i.stopPropagation(),hr(),!Nn()&&!oi()&&ci&&ci()}),qt.addEventListener("click",i=>{if(Je){Je=!1;return}i.preventDefault(),i.stopPropagation(),hr(),!Nn()&&!oi()&&li&&li()}),He.addEventListener("click",i=>{if(Je){Je=!1;return}i.preventDefault(),i.stopPropagation(),hr(),ui&&ui()}),ds=i=>{if(!M||!(M===i.target||M.contains(i.target)))return;const c=M.getBoundingClientRect();af=i.clientX-c.left,cf=i.clientY-c.top,lf=i.clientX,uf=i.clientY,pr=!1,Je=!1,M.style.transition="none",i.stopPropagation(),nx()},window.addEventListener("pointerdown",ds,{capture:!0}),((a=document.body)!=null?a:document.documentElement).appendChild(M),ot(M),ox(),ai=setInterval(()=>{Bt&&Bt.classList.toggle("ap-sdk-fab__main--active",Nn()||oi())},200)}function Un(A){const e=He==null?void 0:He.querySelector("[data-ap-badge]");e&&(A>0?(e.textContent=String(A),e.style.display=""):e.style.display="none")}function pf(){pr=!1,Je=!1,di(),hr(),ai&&(clearInterval(ai),ai=null),ds&&(window.removeEventListener("pointerdown",ds,{capture:!0}),ds=null),M&&it(M),M==null||M.remove(),M=null,Bt=null,Yt=null,qt=null,He=null,cr=null,lr=null,ur=null,ci=null,li=null,ui=null}function hf(A,e){return I(this,null,function*(){try{if(A.type==="planning"){const n=yield bb(e,A.id);return{capture:A,status:n.status,approved:n.status==="approved"}}const t=yield Hu(e,A.id);return{capture:A,status:t.status,approved:t.approved===!0}}catch(t){return{capture:A,status:"unavailable",approved:!1}}})}function ff(A){return A.filter(e=>!e.approved).length}function gf(A){return I(this,null,function*(){const e=ir();if(!A||e.length===0){Un(e.length);return}const t=yield Promise.all(e.map(n=>hf(n,A)));Un(ff(t))})}function Bf(A){return A.screenshotBlob?`
1987
2001
 
1988
- (A screenshot of the selected element is attached.)`:""}function j_(A){return A.map((e,t)=>{var r,s;const n=[`## Pick ${t+1}`,""];return(r=e.ctx.interactionSteps)!=null&&r.length?n.push("Recorded steps:",Wh(e.ctx.interactionSteps)):(n.push(`Element: ${e.ctx.elementText||"(no text)"}`),e.ctx.cssSelector&&n.push(`Selector: ${e.ctx.cssSelector}`),e.ctx.ancestry&&n.push(`Ancestry: ${e.ctx.ancestry}`)),n.push(`Page: ${e.ctx.pageTitle} (${e.ctx.pageUrl})`),(s=e.ctx.innerTree)!=null&&s.trim()&&n.push(`
2002
+ (A screenshot of the selected element is attached.)`:""}function ax(A){return A.map((e,t)=>{var r,s;const n=[`## Pick ${t+1}`,""];return(r=e.ctx.interactionSteps)!=null&&r.length?n.push("Recorded steps:",nf(e.ctx.interactionSteps)):(n.push(`Element: ${e.ctx.elementText||"(no text)"}`),e.ctx.cssSelector&&n.push(`Selector: ${e.ctx.cssSelector}`),e.ctx.ancestry&&n.push(`Ancestry: ${e.ctx.ancestry}`)),n.push(`Page: ${e.ctx.pageTitle} (${e.ctx.pageUrl})`),(s=e.ctx.innerTree)!=null&&s.trim()&&n.push(`
1989
2003
  Element tree:
1990
2004
  ${e.ctx.innerTree}`),e.screenshotBlob&&n.push(`Screenshot: attached (see screenshot-${t+1}.png)`),n.push("",`Instruction:
1991
2005
  ${e.instruction}`),n.join(`
@@ -1993,15 +2007,15 @@ ${e.instruction}`),n.join(`
1993
2007
 
1994
2008
  ---
1995
2009
 
1996
- `)}function Y_(i){return T(this,arguments,function*({opts:A,advancedOpts:e,allPicks:t,captureType:n,note:r,allowSubmit:s,project:o,projectCode:a}){var m,Q;const u=t.some(U=>!!U.screenshotBlob)?(yield Promise.all(t.map((U,E)=>U.screenshotBlob?ib(A,U.screenshotBlob,`screenshot-${E+1}.png`).then(v=>v.id).catch(()=>null):Promise.resolve(null)))).filter(U=>U!==null):[],h={id:o==null?void 0:o.id,key:a};let f,g;if(t.length===1){const U=r+cf(t[0]),E=t[0].ctx;if(n==="task")f=(yield qi(A,{project:h,note:U,ctx:E,advancedOpts:e,extraFileIds:u})).id,g=r.slice(0,120)||E.pageTitle||"Browser capture";else if(n==="planning"){let v=ig(r,$(k({},E),{ancestry:E.outerTree||E.ancestry}));(m=E.innerTree)!=null&&m.trim()&&(v+=`
2010
+ `)}function cx(i){return I(this,arguments,function*({opts:A,advancedOpts:e,allPicks:t,captureType:n,note:r,allowSubmit:s,project:o,projectCode:a}){var m,b;const u=t.some(E=>!!E.screenshotBlob)?(yield Promise.all(t.map((E,k)=>E.screenshotBlob?fb(A,E.screenshotBlob,`screenshot-${k+1}.png`).then(v=>v.id).catch(()=>null):Promise.resolve(null)))).filter(E=>E!==null):[],h={id:o==null?void 0:o.id,key:a};let f,g;if(t.length===1){const E=r+Bf(t[0]),k=t[0].ctx;if(n==="task")f=(yield sa(A,{project:h,note:E,ctx:k,advancedOpts:e,extraFileIds:u})).id,g=r.slice(0,120)||k.pageTitle||"Browser capture";else if(n==="planning"){let v=gg(r,z(F({},k),{ancestry:k.outerTree||k.ancestry}));(m=k.innerTree)!=null&&m.trim()&&(v+=`
1997
2011
 
1998
2012
  Element tree:
1999
- ${E.innerTree}`),(Q=E.interactionSteps)!=null&&Q.length&&(v+=`
2013
+ ${k.innerTree}`),(b=k.interactionSteps)!=null&&b.length&&(v+=`
2000
2014
 
2001
2015
  Recorded steps:
2002
- ${Wh(E.interactionSteps)}`),v+=cf(t[0]),f=(yield ku(A,h,v,e,u)).id,g=r.slice(0,120)||E.pageTitle||"Planning session"}else f=(yield Fu(A,{project:h,note:U,ctx:E,advancedOpts:e,allowSubmit:s,extraFileIds:u})).id,g=r.slice(0,120)||E.pageTitle||"Browser automation"}else{const U=j_(t),E=t[0].instruction.slice(0,120)||t[0].ctx.pageTitle||"Multi-element capture",v=t.map(F=>F.instruction).filter(Boolean).join(`
2016
+ ${nf(k.interactionSteps)}`),v+=Bf(t[0]),f=(yield Tu(A,h,v,e,u)).id,g=r.slice(0,120)||k.pageTitle||"Planning session"}else f=(yield Iu(A,{project:h,note:E,ctx:k,advancedOpts:e,allowSubmit:s,extraFileIds:u})).id,g=r.slice(0,120)||k.pageTitle||"Browser automation"}else{const E=ax(t),k=t[0].instruction.slice(0,120)||t[0].ctx.pageTitle||"Multi-element capture",v=t.map(y=>y.instruction).filter(Boolean).join(`
2003
2017
 
2004
- `);n==="task"?(f=(yield qi(A,{project:h,note:U,ctx:t[0].ctx,advancedOpts:e,titleOverride:E,type:bu,titleInstruction:v,extraFileIds:u})).id,g=E):n==="planning"?(f=(yield ku(A,h,U,e,u)).id,g=E):(f=(yield Fu(A,{project:h,note:U,ctx:t[0].ctx,advancedOpts:e,titleOverride:E,titleInstruction:v,allowSubmit:s,extraFileIds:u})).id,g=E)}return{createdId:f,captureType:n,captureTitle:g}})}function q_(A){const{state:e,apiOpts:t,project:n,projectCode:r,needsCredentials:s,statusEl:o,submitBtn:a,panelEl:i,screenshotEl:l,noteEl:u,advancedOptionsRef:h,onClose:f,onCredentialsSaved:g,closeAndCleanup:m,clearTrackCleanup:Q,hideHighlight:U}=A,E=()=>T(null,null,function*(){if(e.submitting)return;if(s){Nt(o,"error","Connect to Agent Platform first.");return}const v=t.backendUrl,F=t.token,y=u.value.trim();if(!y){Nt(o,"error","Please enter an instruction.");return}e.submitting=!0,sc(i,!0),Nt(o,null,""),a.textContent="Submitting…";const x={backendUrl:v,token:F},R=h.getOptions(),I=[...e.completedPicks,{ctx:e.currentCtx,instruction:y,screenshotBlob:e.screenshotIncluded?e.currentScreenshotBlob:null}];try{const{createdId:K,captureType:N,captureTitle:Z}=yield Y_({opts:x,advancedOpts:R,allPicks:I,captureType:e.captureType,note:y,allowSubmit:e.allowSubmit,project:n,projectCode:r});if(v_({id:K,type:N,title:Z,backendUrl:v,createdAt:new Date().toISOString()}),na(),af(x).catch(()=>{}),N==="automate"){m(),Tc(K,x,v,Z,f);return}const X=N==="task"?`${v.replace(/\/+$/,"")}/tasks/${K}`:`${v.replace(/\/+$/,"")}/planning/${K}`;vk(o,N,Z,X,m),i.classList.add("ap-sdk-panel--success"),Q(),U(),l.style.display="none",e.submitting=!1,sc(i,!1)}catch(K){K instanceof Uu?Sk(o,()=>T(null,null,function*(){const{code:N}=yield oc(v),{token:Z,expiresAt:X}=yield Aa({backendUrl:v},N,window.location.origin);Ko({backendUrl:v,token:Z,projectCode:r,expiresAt:X}),t.token=Z,g({backendUrl:v,token:Z}),yield E()})):Nt(o,"error",K instanceof Error?K.message:"An unexpected error occurred."),e.submitting=!1,sc(i,!1),a.textContent="Submit"}});return E}let AA=null,de=null,Et=null,as=null,cs=null;function ls(){return AA!==null}function us(){AA&&nt(AA),AA==null||AA.remove(),AA=null,Et==null||Et(),Et=null,as==null||as(),as=null,cs==null||cs(),cs=null,de==null||de.destroy(),de=null}function lf(A,e,t,n,r,s,o,a,i,l,u=null,h){var je,SA,OA,kn,Wt,ZA,gt,De,Re,Ft;AA&&us();const f=!t.backendUrl||!t.token,g=xu(u,"tasks:write"),m=xu(u,"planning-sessions:write"),Q=!g&&m?"planning":"task",U=h?null:Mu(),E={captureType:(SA=(je=h==null?void 0:h.captureType)!=null?je:U==null?void 0:U.captureType)!=null?SA:Q,submitting:!1,completedPicks:(kn=(OA=h==null?void 0:h.completedPicks)!=null?OA:U==null?void 0:U.completedPicks)!=null?kn:[],currentCtx:A,currentPickedEl:e,awaitingPick:!1,allowSubmit:(ZA=(Wt=h==null?void 0:h.allowSubmit)!=null?Wt:U==null?void 0:U.allowSubmit)!=null?ZA:!1,currentScreenshotBlob:(gt=h==null?void 0:h.currentScreenshotBlob)!=null?gt:null,screenshotCapturing:!1,screenshotIncluded:(De=h==null?void 0:h.screenshotIncluded)!=null?De:!1,screenshotError:(Re=h==null?void 0:h.screenshotError)!=null?Re:null};AA=document.createElement("div"),AA.className="ap-sdk-panel",AA.setAttribute("data-ap-sdk","1"),AA.setAttribute("role","dialog"),AA.setAttribute("aria-modal","true"),AA.setAttribute("aria-label","Capture to Agent Platform"),AA.innerHTML=kk(A,{needsCredentials:f,canCreateTask:g,canCreatePlanning:m,captureType:E.captureType,hasOnReselect:!!i,hasOnAddAnother:!!a}),AA.addEventListener("wheel",IA=>{IA.stopPropagation()},{passive:!0}),AA.addEventListener("touchmove",IA=>{IA.stopPropagation()},{passive:!0});const v=AA.querySelector(".ap-sdk-panel__body"),F=bb(v,t,(Ft=n==null?void 0:n.id)!=null?Ft:null);document.body.appendChild(AA),de=Li(),E.currentPickedEl&&de.update(E.currentPickedEl),tt(AA),as=ta(AA,ea),cs=vr(AA,kr);const y=AA.querySelector("[data-ap-close]"),x=AA.querySelector("[data-ap-cancel]"),R=AA.querySelector("[data-ap-submit]"),I=AA.querySelector("[data-ap-note]"),K=AA.querySelector("[data-ap-status]"),N=AA.querySelectorAll("[data-ap-type]"),Z=AA.querySelector("[data-ap-automate-options]"),X=AA.querySelector("[data-ap-allow-submit]"),aA=AA.querySelector("[data-ap-pick-list]"),fA=AA.querySelector("[data-ap-context]"),PA=AA.querySelector("[data-ap-screenshot]"),Ce=AA.querySelector("[data-ap-add-another]"),pe=AA.querySelector("[data-ap-pick-actions]"),Je=AA.querySelector("[data-ap-select-parent]"),pr=AA.querySelector("[data-ap-reselect]"),fs=AA.querySelector("[data-ap-clear-selections]"),ht=_k(E,PA),bA=()=>{E.currentPickedEl&&(de==null||de.update(E.currentPickedEl))};window.addEventListener("scroll",bA,{capture:!0,passive:!0}),window.addEventListener("resize",bA),Et=()=>{window.removeEventListener("scroll",bA,!0),window.removeEventListener("resize",bA),ht.cleanup()};const ft=xk({state:E,els:{contextEl:fA,pickListEl:aA,pickActionsEl:pe,noteEl:I,addAnotherBtn:Ce,selectParentBtn:Je,reselectBtn:pr,clearSelectionsBtn:fs,typeButtons:N,allowSubmitCheckbox:X,automateOptionsEl:Z,statusEl:K},screenshotCtl:ht,defaultCaptureType:Q,updateHighlight:IA=>de==null?void 0:de.update(IA),onReselect:i,onAddAnother:a});h?(I.value=h.note,X.checked=h.allowSubmit,Z.style.display=E.captureType==="automate"?"":"none",ft.renderPickList(),Nt(K,"success","Reconnected — your draft was kept."),ht.renderScreenshotUi()):U?(I.value=U.note,X.checked=U.allowSubmit,Z.style.display=E.captureType==="automate"?"":"none",ft.renderPickList(),Nt(K,"success","Restored your previous selections."),ht.renderScreenshotUi()):E.currentPickedEl&&ht.captureScreenshotFor(E.currentPickedEl);const gA=()=>{us(),l==null||l()},En=()=>({captureType:E.captureType,note:I.value,completedPicks:E.completedPicks,currentCtx:E.currentCtx,currentPickedEl:E.currentPickedEl,allowSubmit:E.allowSubmit,currentScreenshotBlob:E.currentScreenshotBlob,screenshotIncluded:E.screenshotIncluded,screenshotError:E.screenshotError});y.addEventListener("click",gA),x.addEventListener("click",gA);const BA=AA.querySelector("[data-ap-connect-required]");BA&&o&&BA.addEventListener("click",()=>{const IA=En();gA(),o(IA)}),N.forEach(IA=>{IA.addEventListener("click",()=>{E.captureType=IA.dataset.apType,N.forEach(Bt=>Bt.classList.toggle("ap-sdk-active",Bt===IA)),Z.style.display=E.captureType==="automate"?"":"none",ft.persistDraft()})}),X.addEventListener("change",()=>{E.allowSubmit=X.checked,ft.persistDraft()}),I.addEventListener("input",ft.persistDraft);const se=AA.querySelector("[data-ap-reconfigure]");o?se.addEventListener("click",()=>{const IA=En();gA(),o(IA)}):se.style.display="none";const Fn=q_({state:E,apiOpts:t,project:n,projectCode:r,needsCredentials:f,statusEl:K,submitBtn:R,panelEl:AA,screenshotEl:PA,noteEl:I,advancedOptionsRef:F,onClose:l,onCredentialsSaved:s,closeAndCleanup:gA,clearTrackCleanup:()=>{Et==null||Et(),Et=null},hideHighlight:()=>de==null?void 0:de.hide()});R.addEventListener("click",Fn),setTimeout(()=>I.focus(),50)}let cA=null,ds=null,ps=null;function uf(){return cA!==null}function Cn(){cA&&nt(cA),cA==null||cA.remove(),cA=null,ds==null||ds(),ds=null,ps==null||ps(),ps=null}function Ax(A){return A==="task"?"Task":A==="planning"?"Planning":"Automate"}function ex(A){if(cA){Cn();return}cA=document.createElement("div"),cA.className="ap-sdk-panel",cA.setAttribute("data-ap-sdk","1"),cA.setAttribute("role","dialog"),cA.setAttribute("aria-modal","true"),cA.setAttribute("aria-label","My captures"),cA.addEventListener("wheel",e=>{e.stopPropagation()},{passive:!0}),cA.addEventListener("touchmove",e=>{e.stopPropagation()},{passive:!0}),cA.innerHTML=`
2018
+ `);n==="task"?(f=(yield sa(A,{project:h,note:E,ctx:t[0].ctx,advancedOpts:e,titleOverride:k,type:Gi,titleInstruction:v,extraFileIds:u})).id,g=k):n==="planning"?(f=(yield Tu(A,h,E,e,u)).id,g=k):(f=(yield Iu(A,{project:h,note:E,ctx:t[0].ctx,advancedOpts:e,titleOverride:k,titleInstruction:v,allowSubmit:s,extraFileIds:u})).id,g=k)}return{createdId:f,captureType:n,captureTitle:g}})}function lx(A){const{state:e,apiOpts:t,project:n,projectCode:r,needsCredentials:s,statusEl:o,submitBtn:a,panelEl:i,screenshotEl:c,noteEl:u,advancedOptionsRef:h,instructionComposerRef:f,onClose:g,onCredentialsSaved:m,closeAndCleanup:b,clearTrackCleanup:E,hideHighlight:k}=A,v=()=>I(null,null,function*(){if(e.submitting)return;if(s){Ft(o,"error","Connect to Agent Platform first.");return}const y=t.backendUrl,U=t.token,x=u.value.trim(),R=h.getOptions();if(!R.instructionTemplateId&&!x){Ft(o,"error","Please enter an instruction.");return}if(R.instructionTemplateId&&!f.isValid()){Ft(o,"error","Please fill in the required template fields.");return}e.submitting=!0,dc(i,!0),Ft(o,null,""),a.textContent="Submitting…";const H={backendUrl:y,token:U},X=[...e.completedPicks,{ctx:e.currentCtx,instruction:x,screenshotBlob:e.screenshotIncluded?e.currentScreenshotBlob:null}];try{const{createdId:N,captureType:W,captureTitle:K}=yield cx({opts:H,advancedOpts:R,allPicks:X,captureType:e.captureType,note:x,allowSubmit:e.allowSubmit,project:n,projectCode:r});if(P_({id:N,type:W,title:K,backendUrl:y,createdAt:new Date().toISOString()}),la(),gf(H).catch(()=>{}),W==="automate"){b(),Mc(N,H,y,K,g);return}const nA=W==="task"?`${y.replace(/\/+$/,"")}/tasks/${N}`:`${y.replace(/\/+$/,"")}/planning/${N}`;PF(o,W,K,nA,b),i.classList.add("ap-sdk-panel--success"),E(),k(),c.style.display="none",e.submitting=!1,dc(i,!1)}catch(N){N instanceof xu?KF(o,()=>I(null,null,function*(){const{code:W}=yield pc(y),{token:K,expiresAt:nA}=yield oa({backendUrl:y},W,window.location.origin);Zo({backendUrl:y,token:K,projectCode:r,expiresAt:nA}),t.token=K,m({backendUrl:y,token:K}),yield v()})):Ft(o,"error",N instanceof Error?N.message:"An unexpected error occurred."),e.submitting=!1,dc(i,!1),a.textContent="Submit"}});return v}const wf={task:{entityType:Ns.TASK,taskType:Gi,scenario:Ks.CREATE},automate:{entityType:Ns.TASK,taskType:El,scenario:Ks.CREATE},planning:{entityType:Ns.PLANNING_SESSION,scenario:Ks.CREATE}};let q=null,pe=null,xt=null,hs=null,fs=null;function gs(){return q!==null}function Bs(){q&&it(q),q==null||q.remove(),q=null,xt==null||xt(),xt=null,hs==null||hs(),hs=null,fs==null||fs(),fs=null,pe==null||pe.destroy(),pe=null}function mf(A,e,t,n,r,s,o,a,i,c,u=null,h){var GA,wt,De,Oe,It,At,mt,Ct,Tn,en,mr;q&&Bs();const f=!t.backendUrl||!t.token,g=Ru(u,"tasks:write"),m=Ru(u,"planning-sessions:write"),b=!g&&m?"planning":"task",E=h?null:Zu(),k={captureType:(wt=(GA=h==null?void 0:h.captureType)!=null?GA:E==null?void 0:E.captureType)!=null?wt:b,submitting:!1,completedPicks:(Oe=(De=h==null?void 0:h.completedPicks)!=null?De:E==null?void 0:E.completedPicks)!=null?Oe:[],currentCtx:A,currentPickedEl:e,awaitingPick:!1,allowSubmit:(At=(It=h==null?void 0:h.allowSubmit)!=null?It:E==null?void 0:E.allowSubmit)!=null?At:!1,currentScreenshotBlob:(mt=h==null?void 0:h.currentScreenshotBlob)!=null?mt:null,screenshotCapturing:!1,screenshotIncluded:(Ct=h==null?void 0:h.screenshotIncluded)!=null?Ct:!1,screenshotError:(Tn=h==null?void 0:h.screenshotError)!=null?Tn:null};q=document.createElement("div"),q.className="ap-sdk-panel",q.setAttribute("data-ap-sdk","1"),q.setAttribute("role","dialog"),q.setAttribute("aria-modal","true"),q.setAttribute("aria-label","Capture to Agent Platform"),q.innerHTML=OF(A,{needsCredentials:f,canCreateTask:g,canCreatePlanning:m,captureType:k.captureType,hasOnReselect:!!i,hasOnAddAnother:!!a}),q.addEventListener("wheel",ZA=>{ZA.stopPropagation()},{passive:!0}),q.addEventListener("touchmove",ZA=>{ZA.stopPropagation()},{passive:!0});const v=q.querySelector(".ap-sdk-panel__body"),y=xb(v,t,(en=n==null?void 0:n.id)!=null?en:null);let U=()=>{};const x=q.querySelector("[data-ap-note]");let R=Ou(x,t,(mr=n==null?void 0:n.id)!=null?mr:null,wf[k.captureType],()=>U());const H={getOptions(){return F(F({},y.getOptions()),R.getSelection())}};document.body.appendChild(q),pe=Mi(),k.currentPickedEl&&pe.update(k.currentPickedEl),ot(q),hs=ca(q,aa),fs=Hr(q,Tr);const X=q.querySelector("[data-ap-close]"),N=q.querySelector("[data-ap-cancel]"),W=q.querySelector("[data-ap-submit]"),K=q.querySelector("[data-ap-note]"),nA=q.querySelector("[data-ap-status]"),hA=q.querySelectorAll("[data-ap-type]"),_A=q.querySelector("[data-ap-automate-options]"),jA=q.querySelector("[data-ap-allow-submit]"),he=q.querySelector("[data-ap-pick-list]"),Ye=q.querySelector("[data-ap-context]"),xn=q.querySelector("[data-ap-screenshot]"),bs=q.querySelector("[data-ap-add-another]"),Br=q.querySelector("[data-ap-pick-actions]"),xA=q.querySelector("[data-ap-select-parent]"),wr=q.querySelector("[data-ap-reselect]"),SA=q.querySelector("[data-ap-clear-selections]"),St=()=>{W.disabled=k.submitting||!R.getSelection().instructionTemplateId&&!K.value.trim()||!R.isValid()};U=St;const lA=MF(k,xn),YA=()=>{k.currentPickedEl&&(pe==null||pe.update(k.currentPickedEl))};window.addEventListener("scroll",YA,{capture:!0,passive:!0}),window.addEventListener("resize",YA),xt=()=>{window.removeEventListener("scroll",YA,!0),window.removeEventListener("resize",YA),lA.cleanup()};const qe=NF({state:k,els:{contextEl:Ye,pickListEl:he,pickActionsEl:Br,noteEl:K,addAnotherBtn:bs,selectParentBtn:xA,reselectBtn:wr,clearSelectionsBtn:SA,typeButtons:hA,allowSubmitCheckbox:jA,automateOptionsEl:_A,statusEl:nA},screenshotCtl:lA,defaultCaptureType:b,updateHighlight:ZA=>pe==null?void 0:pe.update(ZA),onReselect:i,onAddAnother:a});h?(K.value=h.note,jA.checked=h.allowSubmit,_A.style.display=k.captureType==="automate"?"":"none",qe.renderPickList(),Ft(nA,"success","Reconnected — your draft was kept."),lA.renderScreenshotUi()):E?(K.value=E.note,jA.checked=E.allowSubmit,_A.style.display=k.captureType==="automate"?"":"none",qe.renderPickList(),Ft(nA,"success","Restored your previous selections."),lA.renderScreenshotUi()):k.currentPickedEl&&lA.handleNewPick(k.currentPickedEl),St();const be=()=>{Bs(),c==null||c()},IA=()=>({captureType:k.captureType,note:K.value,completedPicks:k.completedPicks,currentCtx:k.currentCtx,currentPickedEl:k.currentPickedEl,allowSubmit:k.allowSubmit,currentScreenshotBlob:k.currentScreenshotBlob,screenshotIncluded:k.screenshotIncluded,screenshotError:k.screenshotError});X.addEventListener("click",be),N.addEventListener("click",be);const OA=q.querySelector("[data-ap-connect-required]");OA&&o&&OA.addEventListener("click",()=>{const ZA=IA();be(),o(ZA)}),hA.forEach(ZA=>{ZA.addEventListener("click",()=>{var bt;k.captureType=ZA.dataset.apType,hA.forEach(et=>et.classList.toggle("ap-sdk-active",et===ZA)),_A.style.display=k.captureType==="automate"?"":"none",R=Ou(x,t,(bt=n==null?void 0:n.id)!=null?bt:null,wf[k.captureType],()=>U()),St(),qe.persistDraft()})}),jA.addEventListener("change",()=>{k.allowSubmit=jA.checked,qe.persistDraft()}),K.addEventListener("input",qe.persistDraft),K.addEventListener("input",St);const Sn=q.querySelector("[data-ap-reconfigure]");o?Sn.addEventListener("click",()=>{const ZA=IA();be(),o(ZA)}):Sn.style.display="none";const In=lx({state:k,apiOpts:t,project:n,projectCode:r,needsCredentials:f,statusEl:nA,submitBtn:W,panelEl:q,screenshotEl:xn,noteEl:K,advancedOptionsRef:H,instructionComposerRef:{isValid:()=>R.isValid()},onClose:c,onCredentialsSaved:s,closeAndCleanup:be,clearTrackCleanup:()=>{xt==null||xt(),xt=null},hideHighlight:()=>pe==null?void 0:pe.hide()});W.addEventListener("click",In),setTimeout(()=>K.focus(),50)}let cA=null,ws=null,ms=null;function Cf(){return cA!==null}function En(){cA&&it(cA),cA==null||cA.remove(),cA=null,ws==null||ws(),ws=null,ms==null||ms(),ms=null}function ux(A){return A==="task"?"Task":A==="planning"?"Planning":"Automate"}function dx(A){if(cA){En();return}cA=document.createElement("div"),cA.className="ap-sdk-panel",cA.setAttribute("data-ap-sdk","1"),cA.setAttribute("role","dialog"),cA.setAttribute("aria-modal","true"),cA.setAttribute("aria-label","My captures"),cA.addEventListener("wheel",e=>{e.stopPropagation()},{passive:!0}),cA.addEventListener("touchmove",e=>{e.stopPropagation()},{passive:!0}),cA.innerHTML=`
2005
2019
  <div class="ap-sdk-panel__header">
2006
2020
  <span class="ap-sdk-panel__title">
2007
2021
  <span class="ap-sdk-panel__logo">AP</span>
@@ -2014,27 +2028,27 @@ ${Wh(E.interactionSteps)}`),v+=cf(t[0]),f=(yield ku(A,h,v,e,u)).id,g=r.slice(0,1
2014
2028
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-clear-history>Clear history</button>
2015
2029
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-close-list>Close</button>
2016
2030
  </div>
2017
- `,document.body.appendChild(cA),tt(cA),ds=ta(cA,ea),ps=vr(cA,kr),cA.querySelector("[data-ap-close]").addEventListener("click",()=>{Cn()}),cA.querySelector("[data-ap-close-list]").addEventListener("click",()=>{Cn()}),cA.querySelector("[data-ap-clear-history]").addEventListener("click",()=>{__(),mn(0),df(A)}),df(A)}function df(A){if(!cA)return;const e=cA.querySelector("[data-ap-list-body]"),t=nr();if(t.length===0){e.innerHTML='<p class="ap-sdk-list-empty">No captures yet. Use the capture button to get started.</p>';return}if(e.innerHTML=t.map(n=>`
2031
+ `,document.body.appendChild(cA),ot(cA),ws=ca(cA,aa),ms=Hr(cA,Tr),cA.querySelector("[data-ap-close]").addEventListener("click",()=>{En()}),cA.querySelector("[data-ap-close-list]").addEventListener("click",()=>{En()}),cA.querySelector("[data-ap-clear-history]").addEventListener("click",()=>{M_(),Un(0),bf(A)}),bf(A)}function bf(A){if(!cA)return;const e=cA.querySelector("[data-ap-list-body]"),t=ir();if(t.length===0){e.innerHTML='<p class="ap-sdk-list-empty">No captures yet. Use the capture button to get started.</p>';return}if(e.innerHTML=t.map(n=>`
2018
2032
  <div class="ap-sdk-list-item">
2019
2033
  <div class="ap-sdk-list-item__row">
2020
- <span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--${n.type}">${Ax(n.type)}</span>
2021
- <span class="ap-sdk-list-item__title" title="${ai(n.title)}">${rx(n.title)}</span>
2034
+ <span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--${n.type}">${ux(n.type)}</span>
2035
+ <span class="ap-sdk-list-item__title" title="${hi(n.title)}">${fx(n.title)}</span>
2022
2036
  </div>
2023
2037
  <div class="ap-sdk-list-item__row">
2024
- <span class="ap-sdk-status-badge" data-ap-status="${ai(n.id)}">${A?"…":"—"}</span>
2025
- ${n.type==="automate"&&A?`<button class="ap-sdk-list-item__link" data-ap-resume="${ai(n.id)}">Resume →</button>`:`<a class="ap-sdk-list-item__link" href="${ai(nx(n))}" target="_blank" rel="noopener noreferrer">View →</a>`}
2038
+ <span class="ap-sdk-status-badge" data-ap-status="${hi(n.id)}">${A?"…":"—"}</span>
2039
+ ${n.type==="automate"&&A?`<button class="ap-sdk-list-item__link" data-ap-resume="${hi(n.id)}">Resume →</button>`:`<a class="ap-sdk-list-item__link" href="${hi(hx(n))}" target="_blank" rel="noopener noreferrer">View →</a>`}
2026
2040
  </div>
2027
2041
  </div>
2028
- `).join(""),A){const n=A;Promise.all(t.map(r=>tx(r,n))).then(r=>{mn(of(r))}),e.querySelectorAll("[data-ap-resume]").forEach(r=>{r.addEventListener("click",()=>{const s=r.dataset.apResume,o=t.find(a=>a.id===s);o&&(Cn(),Tc(o.id,n,o.backendUrl,o.title,()=>{}))})})}}function tx(A,e){return T(this,null,function*(){const t=yield sf(A,e),n=cA==null?void 0:cA.querySelector(`[data-ap-status="${CSS.escape(A.id)}"]`);return n&&(n.textContent=t.status.replace(/_/g," "),n.className=`ap-sdk-status-badge ap-sdk-status-badge--${t.status.replace(/_/g,"-")}`),t})}function nx(A){const e=A.backendUrl.replace(/\/+$/,"");return A.type==="planning"?`${e}/planning/${A.id}`:`${e}/tasks/${A.id}`}function ai(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function rx(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}let He=null,ci=!1;function sx(){He==null||He.disconnect(),Array.from(document.body.querySelectorAll(':scope > [data-ap-sdk="1"]')).forEach(A=>document.body.appendChild(A)),He&&He.observe(document.body,{childList:!0}),ci=!1}function pf(){He||(He=new MutationObserver(A=>{!A.some(t=>Array.from(t.addedNodes).some(n=>n instanceof Element&&n.getAttribute("data-ap-sdk")!=="1"))||ci||(ci=!0,queueMicrotask(sx))}),He.observe(document.body,{childList:!0}))}function ox(){He==null||He.disconnect(),He=null,ci=!1}let re=null;function bn(){re&&nt(re),re==null||re.remove(),re=null}function hf(A){const e=A.note.trim();return e?e.length>80?`${e.slice(0,77)}…`:e:A.completedPicks.length>0?`${A.completedPicks.length} saved pick${A.completedPicks.length===1?"":"s"}`:"Untitled draft"}function ff(A){if(re)return;const e=Mu();e&&(re=document.createElement("div"),re.className="ap-sdk-resume-banner",re.setAttribute("data-ap-sdk","1"),re.setAttribute("role","status"),re.innerHTML=`
2042
+ `).join(""),A){const n=A;Promise.all(t.map(r=>px(r,n))).then(r=>{Un(ff(r))}),e.querySelectorAll("[data-ap-resume]").forEach(r=>{r.addEventListener("click",()=>{const s=r.dataset.apResume,o=t.find(a=>a.id===s);o&&(En(),Mc(o.id,n,o.backendUrl,o.title,()=>{}))})})}}function px(A,e){return I(this,null,function*(){const t=yield hf(A,e),n=cA==null?void 0:cA.querySelector(`[data-ap-status="${CSS.escape(A.id)}"]`);return n&&(n.textContent=t.status.replace(/_/g," "),n.className=`ap-sdk-status-badge ap-sdk-status-badge--${t.status.replace(/_/g,"-")}`),t})}function hx(A){const e=A.backendUrl.replace(/\/+$/,"");return A.type==="planning"?`${e}/planning/${A.id}`:`${e}/tasks/${A.id}`}function hi(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function fx(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}let Le=null,fi=!1;function gx(){Le==null||Le.disconnect(),Array.from(document.body.querySelectorAll(':scope > [data-ap-sdk="1"]')).forEach(A=>document.body.appendChild(A)),Le&&Le.observe(document.body,{childList:!0}),fi=!1}function Qf(){Le||(Le=new MutationObserver(A=>{!A.some(t=>Array.from(t.addedNodes).some(n=>n instanceof Element&&n.getAttribute("data-ap-sdk")!=="1"))||fi||(fi=!0,queueMicrotask(gx))}),Le.observe(document.body,{childList:!0}))}function Bx(){Le==null||Le.disconnect(),Le=null,fi=!1}let oe=null;function kn(){oe&&it(oe),oe==null||oe.remove(),oe=null}function yf(A){const e=A.note.trim();return e?e.length>80?`${e.slice(0,77)}…`:e:A.completedPicks.length>0?`${A.completedPicks.length} saved pick${A.completedPicks.length===1?"":"s"}`:"Untitled draft"}function Uf(A){if(oe)return;const e=Zu();e&&(oe=document.createElement("div"),oe.className="ap-sdk-resume-banner",oe.setAttribute("data-ap-sdk","1"),oe.setAttribute("role","status"),oe.innerHTML=`
2029
2043
  <div>
2030
2044
  <span class="ap-sdk-resume-banner__title">Resume your draft?</span>
2031
- <span class="ap-sdk-resume-banner__summary" title="${ix(hf(e))}">${gf(hf(e))}</span>
2045
+ <span class="ap-sdk-resume-banner__summary" title="${wx(yf(e))}">${Ef(yf(e))}</span>
2032
2046
  </div>
2033
2047
  <div class="ap-sdk-resume-banner__actions">
2034
2048
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-resume-draft type="button">Resume</button>
2035
2049
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-discard-draft type="button">Discard</button>
2036
2050
  </div>
2037
- `,document.body.appendChild(re),tt(re),re.querySelector("[data-ap-resume-draft]").addEventListener("click",()=>{bn(),A(e)}),re.querySelector("[data-ap-discard-draft]").addEventListener("click",()=>{na(),bn()}))}function gf(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function ix(A){return gf(A)}const ax={click:"🖱",inputText:"⌨",scroll:"↕",keypress:"⌤"};let RA=null,Xt=[],hs=null;function li(){RA&&nt(RA),RA==null||RA.remove(),RA=null,Xt=[],hs==null||hs(),hs=null}function cx(A,e,t){RA&&li(),Xt=[...A],RA=document.createElement("div"),RA.className="ap-sdk-panel ap-sdk-record-review",RA.setAttribute("data-ap-sdk","1"),RA.setAttribute("role","dialog"),RA.setAttribute("aria-modal","true"),RA.setAttribute("aria-label","Review recorded steps"),RA.innerHTML=`
2051
+ `,document.body.appendChild(oe),ot(oe),oe.querySelector("[data-ap-resume-draft]").addEventListener("click",()=>{kn(),A(e)}),oe.querySelector("[data-ap-discard-draft]").addEventListener("click",()=>{la(),kn()}))}function Ef(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function wx(A){return Ef(A)}const mx={click:"🖱",inputText:"⌨",scroll:"↕",keypress:"⌤"};let DA=null,An=[],Cs=null;function gi(){DA&&it(DA),DA==null||DA.remove(),DA=null,An=[],Cs==null||Cs(),Cs=null}function Cx(A,e,t){DA&&gi(),An=[...A],DA=document.createElement("div"),DA.className="ap-sdk-panel ap-sdk-record-review",DA.setAttribute("data-ap-sdk","1"),DA.setAttribute("role","dialog"),DA.setAttribute("aria-modal","true"),DA.setAttribute("aria-label","Review recorded steps"),DA.innerHTML=`
2038
2052
  <div class="ap-sdk-panel__header">
2039
2053
  <span class="ap-sdk-panel__title">
2040
2054
  <span class="ap-sdk-panel__logo">AP</span>
@@ -2049,11 +2063,11 @@ ${Wh(E.interactionSteps)}`),v+=cf(t[0]),f=(yield ku(A,h,v,e,u)).id,g=r.slice(0,1
2049
2063
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-review-continue>Continue</button>
2050
2064
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--ghost" data-ap-review-cancel>Cancel</button>
2051
2065
  </div>
2052
- `,document.body.appendChild(RA),tt(RA),hs=vr(RA,kr);const n=RA.querySelector("[data-ap-review-list]"),r=RA.querySelector("[data-ap-review-continue]"),s=()=>{if(Xt.length===0){n.innerHTML='<p class="ap-sdk-list-empty">No steps recorded.</p>',r.disabled=!0;return}r.disabled=!1,n.innerHTML=Xt.map((a,i)=>{var l;return`
2066
+ `,document.body.appendChild(DA),ot(DA),Cs=Hr(DA,Tr);const n=DA.querySelector("[data-ap-review-list]"),r=DA.querySelector("[data-ap-review-continue]"),s=()=>{if(An.length===0){n.innerHTML='<p class="ap-sdk-list-empty">No steps recorded.</p>',r.disabled=!0;return}r.disabled=!1,n.innerHTML=An.map((a,i)=>{var c;return`
2053
2067
  <div class="ap-sdk-record-step" data-step-index="${i}">
2054
- <span class="ap-sdk-record-step__icon">${ax[a.action]}</span>
2055
- ${a.action==="inputText"&&!a.redacted?`<input class="ap-sdk-record-step__input" type="text" value="${lx((l=a.value)!=null?l:"")}" data-ap-step-value />`:`<span class="ap-sdk-record-step__description">${Bf(a.description)}</span>`}
2068
+ <span class="ap-sdk-record-step__icon">${mx[a.action]}</span>
2069
+ ${a.action==="inputText"&&!a.redacted?`<input class="ap-sdk-record-step__input" type="text" value="${bx((c=a.value)!=null?c:"")}" data-ap-step-value />`:`<span class="ap-sdk-record-step__description">${kf(a.description)}</span>`}
2056
2070
  <button class="ap-sdk-record-step__remove" data-ap-step-remove="${i}" aria-label="Remove step ${i+1}">✕</button>
2057
2071
  </div>
2058
- `}).join(""),n.querySelectorAll("[data-ap-step-remove]").forEach(a=>{a.addEventListener("click",()=>{const i=parseInt(a.dataset.apStepRemove,10);Xt.splice(i,1),s()})}),n.querySelectorAll("[data-ap-step-value]").forEach(a=>{const i=a.closest("[data-step-index]"),l=parseInt(i.dataset.stepIndex,10);a.addEventListener("input",()=>{var h;const u=Xt[l];u.value=a.value,u.description=Zh((h=u.elementText)!=null?h:"",a.value,!1)})})};s();const o=()=>{li()};RA.querySelector("[data-ap-review-close]").addEventListener("click",o),RA.querySelector("[data-ap-review-cancel]").addEventListener("click",o),r.addEventListener("click",()=>{if(Xt.length===0)return;const a=Xt,i=$(k({},cl()),{pageUrl:window.location.href,pageTitle:document.title,interactionSteps:a});li(),e(i)})}function Bf(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function lx(A){return Bf(A)}let W=null,ui=null,di=null,pi=null;function Oc(A,e,t){ui=A,di=e,pi=t,nf(A,e,t)}const wf="#agent-platform-web-sdk",mf="ap-sdk-fab-unlocked";let Qn=null;function Cf(){try{if(localStorage.getItem(mf)==="1")return!0}catch(A){}return window.location.hash===wf}function bf(){try{localStorage.setItem(mf,"1")}catch(A){}}function Qf(A){return T(this,null,function*(){var t,n,r,s,o;if(Cr(),A.requestTimeoutMs!=null&&ob(A.requestTimeoutMs),dg((t=A.exclusionSelector)!=null?t:null),W&&W.projectCode===A.projectCode&&W.backendUrl===((n=A.backendUrl)!=null?n:null)&&W.token===((r=A.token)!=null?r:null))return;W={projectCode:A.projectCode,backendUrl:(s=A.backendUrl)!=null?s:null,token:(o=A.token)!=null?o:null,project:null,resolvingProject:!1,permissions:null},Oc(()=>Uf(),()=>dx(),()=>Nc()),mn(nr().length);let e=!1;if(W.backendUrl&&W.token){const a=W.backendUrl,i=W.token;yield _f(),af({backendUrl:a,token:i}).catch(()=>{}),vf({backendUrl:a,token:i}).catch(()=>{});const l=Rk();l&&(Tc(l.taskId,{backendUrl:a,token:i},l.backendUrl,l.title,()=>{}),e=!0)}e||ff(yf),pf()})}function Mc(A,e){return T(this,null,function*(){if(!W)throw new Error("AgentPlatformSDK: call init() first.");W.backendUrl=A,W.token=e,W.project=null,W.permissions=null,yield _f(),vf({backendUrl:A,token:e}).catch(()=>{})})}function Pc(A,e,t){if(!W)throw new Error("AgentPlatformSDK: call init() first.");lf(A,e,{backendUrl:W.backendUrl,token:W.token},W.project,W.projectCode,n=>T(null,null,function*(){yield Mc(n.backendUrl,n.token)}),n=>{ac(r=>{Ko(r),hi(r).then(()=>Pc(n.currentCtx,n.currentPickedEl,n)).catch(console.error)})},n=>{Mi((r,s)=>{ls()&&n(r,s)},()=>{Ef()})},(n,r)=>{Mi((s,o)=>{ls()&&n(s,o)},()=>{ls()&&r()})},()=>{Rn()&&Pi()},W.permissions,t)}function Kc(A,e){if(!W)throw new Error("AgentPlatformSDK: call init() first.");lf(A,null,{backendUrl:W.backendUrl,token:W.token},W.project,W.projectCode,t=>T(null,null,function*(){yield Mc(t.backendUrl,t.token)}),t=>{ac(n=>{Ko(n),hi(n).then(()=>Kc(t.currentCtx,t)).catch(console.error)})},void 0,void 0,()=>{},W.permissions,e)}function yf(A){var e;if(!W){ur();return}(e=A.currentCtx.interactionSteps)!=null&&e.length?Kc(A.currentCtx,void 0):Pc(A.currentCtx,null,void 0)}function Uf(){if(!W)throw new Error("AgentPlatformSDK: call init() first.");Rn()||(bn(),Cr(),Mi((A,e)=>T(null,null,function*(){uf()&&Cn(),Pc(A,e)}),()=>{}))}function ux(){Pi()}function dx(){if(!W)throw new Error("AgentPlatformSDK: call init() first.");Ai()||(bn(),Cr(),O_(A=>{cx(A,e=>Kc(e))}))}function Ef(){ls()&&us()}function px(){return Rn()}function Ff(){ox(),Qn&&(window.removeEventListener("hashchange",Qn),Qn=null),Pi(),M_(),li(),us(),Cn(),bn(),rf(),ui=null,di=null,pi=null,W=null}function kf(){if(typeof window=="undefined"||typeof document=="undefined")return;Cr();const A=Hk(),e=()=>{A?hi(A).catch(console.error):(Oc(()=>ur(),()=>ur(),()=>Nc()),mn(nr().length),ff(yf),pf())};if(Cf()){bf(),e();return}Qn=()=>{window.location.hash===wf&&(bf(),window.removeEventListener("hashchange",Qn),Qn=null,e())},window.addEventListener("hashchange",Qn)}function hx(){ui&&di&&pi&&nf(ui,di,pi)}function fx(){rf()}function ur(){bn(),ac(A=>{Ko(A),hi(A).catch(console.error)})}function gx(){nh(),Ff(),Cr(),Cf()&&(Oc(()=>ur(),()=>ur(),()=>Nc()),mn(nr().length))}function hi(A){return T(this,null,function*(){yield Qf({projectCode:A.projectCode,backendUrl:A.backendUrl,token:A.token})})}function Nc(){if(uf()){Cn();return}bn(),ls()&&us();const A=W!=null&&W.backendUrl&&(W!=null&&W.token)?{backendUrl:W.backendUrl,token:W.token}:null;ex(A)}function vf(A){return T(this,null,function*(){const e=yield pb(A);W&&(W.permissions=e.permissions)})}function _f(){return T(this,null,function*(){if(!(!W||!W.backendUrl||!W.token||W.project||W.resolvingProject)){W.resolvingProject=!0;try{W.project=yield ab({backendUrl:W.backendUrl,token:W.token},W.projectCode)}catch(A){}finally{W&&(W.resolvingProject=!1)}}})}return kf(),uA.activateElementPicker=Uf,uA.autoInit=kf,uA.clearConfig=gx,uA.closePanelIfOpen=Ef,uA.configure=ur,uA.deactivateElementPicker=ux,uA.destroy=Ff,uA.hideFab=fx,uA.init=Qf,uA.isPickerRunning=px,uA.showFab=hx,uA.updateCredentials=Mc,Object.defineProperty(uA,Symbol.toStringTag,{value:"Module"}),uA})({});
2072
+ `}).join(""),n.querySelectorAll("[data-ap-step-remove]").forEach(a=>{a.addEventListener("click",()=>{const i=parseInt(a.dataset.apStepRemove,10);An.splice(i,1),s()})}),n.querySelectorAll("[data-ap-step-value]").forEach(a=>{const i=a.closest("[data-step-index]"),c=parseInt(i.dataset.stepIndex,10);a.addEventListener("input",()=>{var h;const u=An[c];u.value=a.value,u.description=ef((h=u.elementText)!=null?h:"",a.value,!1)})})};s();const o=()=>{gi()};DA.querySelector("[data-ap-review-close]").addEventListener("click",o),DA.querySelector("[data-ap-review-cancel]").addEventListener("click",o),r.addEventListener("click",()=>{if(An.length===0)return;const a=An,i=z(F({},fl()),{pageUrl:window.location.href,pageTitle:document.title,interactionSteps:a});gi(),e(i)})}function kf(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function bx(A){return kf(A)}let Z=null,Bi=null,wi=null,mi=null;function Vc(A,e,t){Bi=A,wi=e,mi=t,df(A,e,t)}const Ff="#agent-platform-web-sdk",vf="ap-sdk-fab-unlocked";let Fn=null;function _f(){try{if(localStorage.getItem(vf)==="1")return!0}catch(A){}return window.location.hash===Ff}function xf(){try{localStorage.setItem(vf,"1")}catch(A){}}function Sf(A){return I(this,null,function*(){var t,n,r,s,o;if(kr(),A.requestTimeoutMs!=null&&hb(A.requestTimeoutMs),bg((t=A.exclusionSelector)!=null?t:null),Z&&Z.projectCode===A.projectCode&&Z.backendUrl===((n=A.backendUrl)!=null?n:null)&&Z.token===((r=A.token)!=null?r:null))return;Z={projectCode:A.projectCode,backendUrl:(s=A.backendUrl)!=null?s:null,token:(o=A.token)!=null?o:null,project:null,resolvingProject:!1,permissions:null},Vc(()=>Tf(),()=>yx(),()=>Wc()),Un(ir().length);let e=!1;if(Z.backendUrl&&Z.token){const a=Z.backendUrl,i=Z.token;yield Of(),gf({backendUrl:a,token:i}).catch(()=>{}),Df({backendUrl:a,token:i}).catch(()=>{});const c=XF();c&&(Mc(c.taskId,{backendUrl:a,token:i},c.backendUrl,c.title,()=>{}),e=!0)}e||Uf(If),Qf()})}function Gc(A,e){return I(this,null,function*(){if(!Z)throw new Error("AgentPlatformSDK: call init() first.");Z.backendUrl=A,Z.token=e,Z.project=null,Z.permissions=null,yield Of(),Df({backendUrl:A,token:e}).catch(()=>{})})}function Zc(A,e,t){if(!Z)throw new Error("AgentPlatformSDK: call init() first.");mf(A,e,{backendUrl:Z.backendUrl,token:Z.token},Z.project,Z.projectCode,n=>I(null,null,function*(){yield Gc(n.backendUrl,n.token)}),n=>{fc(r=>{Zo(r),Ci(r).then(()=>Zc(n.currentCtx,n.currentPickedEl,n)).catch(console.error)})},n=>{zi((r,s)=>{gs()&&n(r,s)},()=>{Hf()})},(n,r)=>{zi((s,o)=>{gs()&&n(s,o)},()=>{gs()&&r()})},()=>{Nn()&&Vi()},Z.permissions,t)}function Xc(A,e){if(!Z)throw new Error("AgentPlatformSDK: call init() first.");mf(A,null,{backendUrl:Z.backendUrl,token:Z.token},Z.project,Z.projectCode,t=>I(null,null,function*(){yield Gc(t.backendUrl,t.token)}),t=>{fc(n=>{Zo(n),Ci(n).then(()=>Xc(t.currentCtx,t)).catch(console.error)})},void 0,void 0,()=>{},Z.permissions,e)}function If(A){var e;if(!Z){fr();return}(e=A.currentCtx.interactionSteps)!=null&&e.length?Xc(A.currentCtx,void 0):Zc(A.currentCtx,null,void 0)}function Tf(){if(!Z)throw new Error("AgentPlatformSDK: call init() first.");Nn()||(kn(),kr(),zi((A,e)=>I(null,null,function*(){Cf()&&En(),Zc(A,e)}),()=>{}))}function Qx(){Vi()}function yx(){if(!Z)throw new Error("AgentPlatformSDK: call init() first.");oi()||(kn(),kr(),W_(A=>{Cx(A,e=>Xc(e))}))}function Hf(){gs()&&Bs()}function Ux(){return Nn()}function Lf(){Bx(),Fn&&(window.removeEventListener("hashchange",Fn),Fn=null),Vi(),J_(),gi(),Bs(),En(),kn(),pf(),Bi=null,wi=null,mi=null,Z=null}function Rf(){if(typeof window=="undefined"||typeof document=="undefined")return;kr();const A=VF(),e=()=>{A?Ci(A).catch(console.error):(Vc(()=>fr(),()=>fr(),()=>Wc()),Un(ir().length),Uf(If),Qf())};if(_f()){xf(),e();return}Fn=()=>{window.location.hash===Ff&&(xf(),window.removeEventListener("hashchange",Fn),Fn=null,e())},window.addEventListener("hashchange",Fn)}function Ex(){Bi&&wi&&mi&&df(Bi,wi,mi)}function kx(){pf()}function fr(){kn(),fc(A=>{Zo(A),Ci(A).catch(console.error)})}function Fx(){uh(),Lf(),kr(),_f()&&(Vc(()=>fr(),()=>fr(),()=>Wc()),Un(ir().length))}function Ci(A){return I(this,null,function*(){yield Sf({projectCode:A.projectCode,backendUrl:A.backendUrl,token:A.token})})}function Wc(){if(Cf()){En();return}kn(),gs()&&Bs();const A=Z!=null&&Z.backendUrl&&(Z!=null&&Z.token)?{backendUrl:Z.backendUrl,token:Z.token}:null;dx(A)}function Df(A){return I(this,null,function*(){const e=yield Qb(A);Z&&(Z.permissions=e.permissions)})}function Of(){return I(this,null,function*(){if(!(!Z||!Z.backendUrl||!Z.token||Z.project||Z.resolvingProject)){Z.resolvingProject=!0;try{Z.project=yield gb({backendUrl:Z.backendUrl,token:Z.token},Z.projectCode)}catch(A){}finally{Z&&(Z.resolvingProject=!1)}}})}return Rf(),dA.activateElementPicker=Tf,dA.autoInit=Rf,dA.clearConfig=Fx,dA.closePanelIfOpen=Hf,dA.configure=fr,dA.deactivateElementPicker=Qx,dA.destroy=Lf,dA.hideFab=kx,dA.init=Sf,dA.isPickerRunning=Ux,dA.showFab=Ex,dA.updateCredentials=Gc,Object.defineProperty(dA,Symbol.toStringTag,{value:"Module"}),dA})({});
2059
2073
  //# sourceMappingURL=web-sdk.min.js.map