bug-extractor-plugin 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,358 @@
1
+ (function(Ft,cn){typeof exports=="object"&&typeof module<"u"?cn(exports):typeof define=="function"&&define.amd?define(["exports"],cn):(Ft=typeof globalThis<"u"?globalThis:Ft||self,cn(Ft.BugExtractor={}))})(this,function(Ft){"use strict";var JW=Object.defineProperty;var ZW=(Ft,cn,Hi)=>cn in Ft?JW(Ft,cn,{enumerable:!0,configurable:!0,writable:!0,value:Hi}):Ft[cn]=Hi;var ze=(Ft,cn,Hi)=>ZW(Ft,typeof cn!="symbol"?cn+"":cn,Hi);class cn{classify(e,t){if(this.isTimeoutError(e))return{type:"http-error",severity:"major",errorMessage:"请求超时",isIgnored:this.shouldIgnore(e,t)};if(this.isNetworkError(e))return{type:"http-error",severity:"critical",errorMessage:"网络异常",isIgnored:this.shouldIgnore(e,t)};if(this.isHttpError(e)){const n=this.getHttpStatus(e);return{type:"http-error",severity:this.getSeverityByStatus(n),httpStatus:n,errorMessage:this.extractErrorMessage(e),isIgnored:this.shouldIgnore(e,t)}}return this.isBusinessError(e)?{type:"http-error",severity:"major",businessCode:this.getBusinessCode(e),errorMessage:this.extractBusinessErrorMessage(e),isIgnored:this.shouldIgnore(e,t)}:{type:"http-error",severity:"minor",errorMessage:e.message||"未知错误",isIgnored:this.shouldIgnore(e,t)}}shouldIgnore(e,t){var A,i;if(!t)return!1;const n=((A=e.config)==null?void 0:A.url)||e.url||"";if(this.isStaticResource(n)||t.urls&&t.urls.length>0&&t.urls.some(s=>typeof s=="string"?n.includes(s):s.test(n)))return!0;if(t.statusCodes&&t.statusCodes.length>0){const a=this.getHttpStatus(e);if(a&&t.statusCodes.includes(a))return!0}if(t.businessCodes&&t.businessCodes.length>0){const a=this.getBusinessCode(e);if(a&&t.businessCodes.includes(a))return!0}if(t.methods&&t.methods.length>0){const a=(((i=e.config)==null?void 0:i.method)||e.method||"").toUpperCase();if(t.methods.map(s=>s.toUpperCase()).includes(a))return!0}if(t.filter&&typeof t.filter=="function")try{if(t.filter(e))return!0}catch(a){console.warn("[BugExtractor] 自定义过滤函数执行失败:",a)}return!1}isStaticResource(e){const t=e.split("?")[0];return/\.(png|jpg|jpeg|gif|svg|webp|ico|bmp|css|js|woff|woff2|ttf|eot|mp3|mp4|avi|mov|pdf|doc|docx)$/i.test(t)}isTimeoutError(e){var t,n;return e.code==="ECONNABORTED"||((t=e.message)==null?void 0:t.includes("timeout"))||((n=e.message)==null?void 0:n.includes("超时"))}isNetworkError(e){var t,n,A;return!e.response&&!e.status&&e.code!=="ECONNABORTED"&&(((t=e.message)==null?void 0:t.includes("Network Error"))||((n=e.message)==null?void 0:n.includes("Failed to fetch"))||((A=e.message)==null?void 0:A.includes("网络")))}isHttpError(e){const t=this.getHttpStatus(e);return!!t&&t>=400}isBusinessError(e){const t=this.getBusinessCode(e);return!!t&&t!=="0"&&t!=="200"&&t!==0&&t!==200}getHttpStatus(e){var t;return((t=e.response)==null?void 0:t.status)||e.status||e.httpStatus}getBusinessCode(e){var A;const t=((A=e.response)==null?void 0:A.data)||e.data||e.body,n=(t==null?void 0:t.code)||(t==null?void 0:t.errorCode)||(t==null?void 0:t.errCode)||(t==null?void 0:t.resultCode);return n!==void 0?String(n):void 0}getSeverityByStatus(e){return e>=500?"critical":e>=400?"major":"minor"}extractErrorMessage(e){var n;const t=((n=e.response)==null?void 0:n.data)||e.data||e.body;if(t){const A=t.message||t.msg||t.errorMsg||t.error||t.errorMessage;if(A)return A}return e.message?e.message:e.statusText?e.statusText:"服务器错误"}extractBusinessErrorMessage(e){var A;const t=((A=e.response)==null?void 0:A.data)||e.data||e.body;return(t==null?void 0:t.message)||(t==null?void 0:t.msg)||(t==null?void 0:t.errorMessage)||(t==null?void 0:t.error)||"业务处理失败"}}class Hi{constructor(e){ze(this,"config");ze(this,"errorClassifier");ze(this,"callback",null);ze(this,"isIntercepting",!1);ze(this,"originalFetch",null);ze(this,"axiosInstance",null);ze(this,"recentRequestConfig",new Map);this.config=e,this.errorClassifier=new cn}setAxiosInstance(e){this.axiosInstance=e,this.isIntercepting&&(console.log("[BugExtractor] 拦截器已运行,重新拦截 axios"),this.interceptAxios())}start(e){if(this.isIntercepting){console.warn("[BugExtractor] HTTP 拦截器已在运行");return}this.callback=e,this.isIntercepting=!0,this.interceptFetch(),this.interceptAxios(),console.log("[BugExtractor] HTTP 拦截器已启动")}stop(){this.isIntercepting&&(this.originalFetch&&(window.fetch=this.originalFetch,this.originalFetch=null),this.restoreAxios(),this.callback=null,this.isIntercepting=!1,console.log("[BugExtractor] HTTP 拦截器已停止"))}interceptFetch(){if(typeof window>"u"||!window.fetch)return;this.originalFetch=window.fetch;const e=this;window.fetch=async function(t,n){const A=typeof t=="string"?t:t instanceof URL?t.href:t.url,i=(n==null?void 0:n.method)||"GET",a=n==null?void 0:n.headers,s=n==null?void 0:n.body,o=Date.now();try{const l=await e.originalFetch.call(window,t,n);if(!l.ok){const u=Date.now()-o,h=l.clone();let d;try{d=await h.json()}catch{d=await h.text()}const c=new Error(`HTTP ${l.status}: ${l.statusText}`);c.response={status:l.status,statusText:l.statusText,data:d},c.config={url:A,method:i,headers:a};const p=e.errorClassifier.classify(c,e.config.ignore);!p.isIgnored&&e.callback&&e.callback({url:A,method:i,headers:a,params:s,status:l.status,response:d,error:c,duration:u,classified:p})}return l}catch(l){const u=Date.now()-o;l.config={url:A,method:i,headers:a};const h=e.errorClassifier.classify(l,e.config.ignore);throw!h.isIgnored&&e.callback&&e.callback({url:A,method:i,headers:a,params:s,error:l,duration:u,classified:h}),l}}}interceptAxios(){var t;if(typeof window>"u")return;const e=this.axiosInstance||window.axios||this.findAxios();if(!e||!e.interceptors){console.log("[BugExtractor] 未找到 axios 实例,跳过 axios 拦截");return}console.log("[BugExtractor] 开始拦截 axios,实例:",((t=e.constructor)==null?void 0:t.name)||"unknown"),e.interceptors.request.use(n=>{var i;n.metadata=n.metadata||{},n.metadata.startTime=Date.now();const A=`${((i=n.method)==null?void 0:i.toUpperCase())||"GET"}_${n.url}`;if(this.recentRequestConfig.set(A,{url:n.url,method:n.method,data:n.data,params:n.params,headers:n.headers,timestamp:Date.now()}),this.recentRequestConfig.size>50){const a=this.recentRequestConfig.keys().next().value;this.recentRequestConfig.delete(a)}return console.log("[BugExtractor] axios 请求拦截:",{url:n.url,method:n.method,hasData:!!n.data,dataType:typeof n.data,dataPreview:n.data?typeof n.data=="string"?n.data.substring(0,200):JSON.stringify(n.data).substring(0,200):"none",hasParams:!!n.params,paramsPreview:n.params?JSON.stringify(n.params).substring(0,200):"none"}),n},n=>(console.log("[BugExtractor] axios 请求错误:",n.message),Promise.reject(n))),e.interceptors.response.use(n=>{var i,a,s,o,l,u,h,d,c,p;const A=n.data;if(console.log("[BugExtractor] axios 响应拦截:",{url:(i=n.config)==null?void 0:i.url,status:n.status,hasCode:A&&A.code!==void 0,code:A==null?void 0:A.code,dataPreview:A?JSON.stringify(A).substring(0,200):"none"}),A&&A.code!==void 0&&A.code!=="0"&&A.code!==0&&A.code!=="200"&&A.code!==200){console.log("[BugExtractor] 检测到业务错误码,准备提取参数...");const m=new Error(A.message||A.msg||"业务错误");m.response=n,m.data=A,m.config=n.config;const y=this.errorClassifier.classify(m,this.config.ignore),g=((s=(a=n.config)==null?void 0:a.metadata)==null?void 0:s.startTime)||Date.now(),w=Date.now()-g;console.log("[BugExtractor] 开始提取请求参数,config:",{hasConfig:!!n.config,hasData:!!((o=n.config)!=null&&o.data),dataType:typeof((l=n.config)==null?void 0:l.data),hasParams:!!((u=n.config)!=null&&u.params),paramsType:typeof((h=n.config)==null?void 0:h.params)});const B=this.extractRequestParams(n.config);console.log("[BugExtractor] 提取参数结果:",B),!y.isIgnored&&this.callback?(console.log("[BugExtractor] 触发回调,携带参数:",B),this.callback({url:((d=n.config)==null?void 0:d.url)||"",method:((c=n.config)==null?void 0:c.method)||"GET",headers:(p=n.config)==null?void 0:p.headers,params:B,status:n.status,response:A,error:m,duration:w,classified:y})):console.log("[BugExtractor] 错误被忽略或未设置回调")}return n},n=>{var w,B,I,O,j,R,D,Q,J,M,S,K;console.log("[BugExtractor] axios 响应错误:",{message:n.message,hasConfig:!!n.config,hasResponse:!!n.response,configUrl:(w=n.config)==null?void 0:w.url,configMethod:(B=n.config)==null?void 0:B.method,configDataType:typeof((I=n.config)==null?void 0:I.data),configDataPreview:(O=n.config)!=null&&O.data?typeof n.config.data=="string"?n.config.data.substring(0,200):JSON.stringify(n.config.data).substring(0,200):"none",configKeys:n.config?Object.keys(n.config):[]});let A=n.config;const i=((j=n.config)==null?void 0:j.url)||n.url||"",a=((R=n.config)==null?void 0:R.method)||n.method||"GET";if(!A&&i){let F=`${a.toUpperCase()}_${i}`,ne=this.recentRequestConfig.get(F);if(!ne){for(const[ee,G]of this.recentRequestConfig.entries())if(G.url===i){ne=G,console.log("[BugExtractor] 通过 URL 匹配找到配置:",ee);break}}ne?(console.log("[BugExtractor] 从保存的配置副本中恢复参数:",ne),A=ne):console.log("[BugExtractor] 未找到保存的配置,keys:",Array.from(this.recentRequestConfig.keys()))}const s=(A==null?void 0:A.url)||i,o=(A==null?void 0:A.method)||a,l=(A==null?void 0:A.headers)||((D=n.config)==null?void 0:D.headers)||n.headers;console.log("[BugExtractor] 错误场景提取参数,config:",{hasConfig:!!A,hasData:!!(A!=null&&A.data),dataType:typeof(A==null?void 0:A.data),hasParams:!!(A!=null&&A.params)});const u=this.extractRequestParams(A)||n.params||n.data;console.log("[BugExtractor] 错误场景提取参数结果:",u);const h=((Q=n.response)==null?void 0:Q.status)||n.status,d=((J=n.response)==null?void 0:J.data)||n.data||n.responseBody,c=((M=A==null?void 0:A.metadata)==null?void 0:M.startTime)||((K=(S=n.config)==null?void 0:S.metadata)==null?void 0:K.startTime)||Date.now(),p=Date.now()-c;let m=s,y=h;if(!m&&n.message){const F=n.message.match(/请求地址出错:\s*(.+)/);F&&(m=F[1].trim())}m||(m=n.code||n.name||"未知接口"),console.log("[BugExtractor] 接口错误捕获:",{url:m,method:o,status:y,message:n.message,response:d,params:u,duration:p});const g=this.errorClassifier.classify(n,this.config.ignore);return!g.isIgnored&&this.callback&&this.callback({url:m,method:o,headers:l,params:u,status:y,response:d,error:n,duration:p,classified:g}),Promise.reject(n)}),console.log("[BugExtractor] axios 拦截器已设置完成")}extractRequestParams(e){if(console.log("[BugExtractor] extractRequestParams 被调用,config:",{hasConfig:!!e,keys:e?Object.keys(e):[],hasData:!!(e!=null&&e.data),dataType:typeof(e==null?void 0:e.data),dataValue:e!=null&&e.data?typeof e.data=="string"?e.data.substring(0,500):JSON.stringify(e.data).substring(0,500):"none",hasParams:!!(e!=null&&e.params),paramsValue:e!=null&&e.params?JSON.stringify(e.params).substring(0,500):"none"}),!e){console.log("[BugExtractor] config 为空,返回 undefined");return}if(e.data){if(typeof e.data=="string")try{const t=JSON.parse(e.data);return console.log("[BugExtractor] config.data 是字符串,解析为 JSON 成功:",t),t}catch{return console.log("[BugExtractor] config.data 是字符串,但无法解析为 JSON,返回原始字符串:",e.data.substring(0,200)),e.data}return console.log("[BugExtractor] config.data 是对象,直接返回:",e.data),e.data}if(e.params)return console.log("[BugExtractor] 从 config.params 获取参数:",e.params),e.params;if(e.url&&typeof e.url=="string"){const t=e.url.indexOf("?");if(t!==-1){const n=e.url.slice(t+1),A={};if(new URLSearchParams(n).forEach((a,s)=>{A[s]=a}),Object.keys(A).length>0)return console.log("[BugExtractor] 从 URL 查询字符串解析参数:",A),A}}console.log("[BugExtractor] 未找到任何参数,返回 undefined")}restoreAxios(){console.log("[BugExtractor] axios 拦截器已标记为停止")}findAxios(){return window.__axios__||window.axios}}function lS(r,e){if(r.match(/^[a-z]+:\/\//i))return r;if(r.match(/^\/\//))return window.location.protocol+r;if(r.match(/^[a-z]+:/i))return r;const t=document.implementation.createHTMLDocument(),n=t.createElement("base"),A=t.createElement("a");return t.head.appendChild(n),t.body.appendChild(A),e&&(n.href=e),A.href=r,A.href}const uS=(()=>{let r=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(r+=1,`u${e()}${r}`)})();function Mi(r){const e=[];for(let t=0,n=r.length;t<n;t++)e.push(r[t]);return e}let vs=null;function uw(r={}){return vs||(r.includeStyleProperties?(vs=r.includeStyleProperties,vs):(vs=Mi(window.getComputedStyle(document.documentElement)),vs))}function Cu(r,e){const n=(r.ownerDocument.defaultView||window).getComputedStyle(r).getPropertyValue(e);return n?parseFloat(n.replace("px","")):0}function cS(r){const e=Cu(r,"border-left-width"),t=Cu(r,"border-right-width");return r.clientWidth+e+t}function hS(r){const e=Cu(r,"border-top-width"),t=Cu(r,"border-bottom-width");return r.clientHeight+e+t}function qf(r,e={}){const t=e.width||cS(r),n=e.height||hS(r);return{width:t,height:n}}function fS(){let r,e;try{e=process}catch{}const t=e&&e.env?e.env.devicePixelRatio:null;return t&&(r=parseInt(t,10),Number.isNaN(r)&&(r=1)),r||window.devicePixelRatio||1}const Wn=16384;function dS(r){(r.width>Wn||r.height>Wn)&&(r.width>Wn&&r.height>Wn?r.width>r.height?(r.height*=Wn/r.width,r.width=Wn):(r.width*=Wn/r.height,r.height=Wn):r.width>Wn?(r.height*=Wn/r.width,r.width=Wn):(r.width*=Wn/r.height,r.height=Wn))}function pS(r,e={}){return r.toBlob?new Promise(t=>{r.toBlob(t,e.type?e.type:"image/png",e.quality?e.quality:1)}):new Promise(t=>{const n=window.atob(r.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),A=n.length,i=new Uint8Array(A);for(let a=0;a<A;a+=1)i[a]=n.charCodeAt(a);t(new Blob([i],{type:e.type?e.type:"image/png"}))})}function Eu(r){return new Promise((e,t)=>{const n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>e(n))})},n.onerror=t,n.crossOrigin="anonymous",n.decoding="async",n.src=r})}async function gS(r){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(r)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function mS(r,e,t){const n="http://www.w3.org/2000/svg",A=document.createElementNS(n,"svg"),i=document.createElementNS(n,"foreignObject");return A.setAttribute("width",`${e}`),A.setAttribute("height",`${t}`),A.setAttribute("viewBox",`0 0 ${e} ${t}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),A.appendChild(i),i.appendChild(r),gS(A)}const Pn=(r,e)=>{if(r instanceof e)return!0;const t=Object.getPrototypeOf(r);return t===null?!1:t.constructor.name===e.name||Pn(t,e)};function vS(r){const e=r.getPropertyValue("content");return`${r.cssText} content: '${e.replace(/'|"/g,"")}';`}function wS(r,e){return uw(e).map(t=>{const n=r.getPropertyValue(t),A=r.getPropertyPriority(t);return`${t}: ${n}${A?" !important":""};`}).join(" ")}function yS(r,e,t,n){const A=`.${r}:${e}`,i=t.cssText?vS(t):wS(t,n);return document.createTextNode(`${A}{${i}}`)}function cw(r,e,t,n){const A=window.getComputedStyle(r,t),i=A.getPropertyValue("content");if(i===""||i==="none")return;const a=uS();try{e.className=`${e.className} ${a}`}catch{return}const s=document.createElement("style");s.appendChild(yS(a,t,A,n)),e.appendChild(s)}function BS(r,e,t){cw(r,e,":before",t),cw(r,e,":after",t)}const hw="application/font-woff",fw="image/jpeg",bS={woff:hw,woff2:hw,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:fw,jpeg:fw,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function xS(r){const e=/\.([^./]*?)$/g.exec(r);return e?e[1]:""}function Xf(r){const e=xS(r).toLowerCase();return bS[e]||""}function CS(r){return r.split(/,/)[1]}function Yf(r){return r.search(/^(data:)/)!==-1}function ES(r,e){return`data:${e};base64,${r}`}async function dw(r,e,t){const n=await fetch(r,e);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);const A=await n.blob();return new Promise((i,a)=>{const s=new FileReader;s.onerror=a,s.onloadend=()=>{try{i(t({res:n,result:s.result}))}catch(o){a(o)}},s.readAsDataURL(A)})}const Jf={};function SS(r,e,t){let n=r.replace(/\?.*/,"");return t&&(n=r),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),e?`[${e}]${n}`:n}async function Zf(r,e,t){const n=SS(r,e,t.includeQueryParams);if(Jf[n]!=null)return Jf[n];t.cacheBust&&(r+=(/\?/.test(r)?"&":"?")+new Date().getTime());let A;try{const i=await dw(r,t.fetchRequestInit,({res:a,result:s})=>(e||(e=a.headers.get("Content-Type")||""),CS(s)));A=ES(i,e)}catch(i){A=t.imagePlaceholder||"";let a=`Failed to fetch resource: ${r}`;i&&(a=typeof i=="string"?i:i.message),a&&console.warn(a)}return Jf[n]=A,A}async function FS(r){const e=r.toDataURL();return e==="data:,"?r.cloneNode(!1):Eu(e)}async function US(r,e){if(r.currentSrc){const i=document.createElement("canvas"),a=i.getContext("2d");i.width=r.clientWidth,i.height=r.clientHeight,a==null||a.drawImage(r,0,0,i.width,i.height);const s=i.toDataURL();return Eu(s)}const t=r.poster,n=Xf(t),A=await Zf(t,n,e);return Eu(A)}async function IS(r,e){var t;try{if(!((t=r==null?void 0:r.contentDocument)===null||t===void 0)&&t.body)return await Su(r.contentDocument.body,e,!0)}catch{}return r.cloneNode(!1)}async function TS(r,e){return Pn(r,HTMLCanvasElement)?FS(r):Pn(r,HTMLVideoElement)?US(r,e):Pn(r,HTMLIFrameElement)?IS(r,e):r.cloneNode(pw(r))}const _S=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SLOT",pw=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SVG";async function LS(r,e,t){var n,A;if(pw(e))return e;let i=[];return _S(r)&&r.assignedNodes?i=Mi(r.assignedNodes()):Pn(r,HTMLIFrameElement)&&(!((n=r.contentDocument)===null||n===void 0)&&n.body)?i=Mi(r.contentDocument.body.childNodes):i=Mi(((A=r.shadowRoot)!==null&&A!==void 0?A:r).childNodes),i.length===0||Pn(r,HTMLVideoElement)||await i.reduce((a,s)=>a.then(()=>Su(s,t)).then(o=>{o&&e.appendChild(o)}),Promise.resolve()),e}function QS(r,e,t){const n=e.style;if(!n)return;const A=window.getComputedStyle(r);A.cssText?(n.cssText=A.cssText,n.transformOrigin=A.transformOrigin):uw(t).forEach(i=>{let a=A.getPropertyValue(i);i==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),Pn(r,HTMLIFrameElement)&&i==="display"&&a==="inline"&&(a="block"),i==="d"&&e.getAttribute("d")&&(a=`path(${e.getAttribute("d")})`),n.setProperty(i,a,A.getPropertyPriority(i))})}function NS(r,e){Pn(r,HTMLTextAreaElement)&&(e.innerHTML=r.value),Pn(r,HTMLInputElement)&&e.setAttribute("value",r.value)}function OS(r,e){if(Pn(r,HTMLSelectElement)){const t=e,n=Array.from(t.children).find(A=>r.value===A.getAttribute("value"));n&&n.setAttribute("selected","")}}function PS(r,e,t){return Pn(e,Element)&&(QS(r,e,t),BS(r,e,t),NS(r,e),OS(r,e)),e}async function RS(r,e){const t=r.querySelectorAll?r.querySelectorAll("use"):[];if(t.length===0)return r;const n={};for(let i=0;i<t.length;i++){const s=t[i].getAttribute("xlink:href");if(s){const o=r.querySelector(s),l=document.querySelector(s);!o&&l&&!n[s]&&(n[s]=await Su(l,e,!0))}}const A=Object.values(n);if(A.length){const i="http://www.w3.org/1999/xhtml",a=document.createElementNS(i,"svg");a.setAttribute("xmlns",i),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";const s=document.createElementNS(i,"defs");a.appendChild(s);for(let o=0;o<A.length;o++)s.appendChild(A[o]);r.appendChild(a)}return r}async function Su(r,e,t){return!t&&e.filter&&!e.filter(r)?null:Promise.resolve(r).then(n=>TS(n,e)).then(n=>LS(r,n,e)).then(n=>PS(r,n,e)).then(n=>RS(n,e))}const gw=/url\((['"]?)([^'"]+?)\1\)/g,DS=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,kS=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function HS(r){const e=r.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function MS(r){const e=[];return r.replace(gw,(t,n,A)=>(e.push(A),t)),e.filter(t=>!Yf(t))}async function KS(r,e,t,n,A){try{const i=t?lS(e,t):e,a=Xf(e);let s;return A||(s=await Zf(i,a,n)),r.replace(HS(e),`$1${s}$3`)}catch{}return r}function jS(r,{preferredFontFormat:e}){return e?r.replace(kS,t=>{for(;;){const[n,,A]=DS.exec(t)||[];if(!A)return"";if(A===e)return`src: ${n};`}}):r}function mw(r){return r.search(gw)!==-1}async function vw(r,e,t){if(!mw(r))return r;const n=jS(r,t);return MS(n).reduce((i,a)=>i.then(s=>KS(s,a,e,t)),Promise.resolve(n))}async function ws(r,e,t){var n;const A=(n=e.style)===null||n===void 0?void 0:n.getPropertyValue(r);if(A){const i=await vw(A,null,t);return e.style.setProperty(r,i,e.style.getPropertyPriority(r)),!0}return!1}async function VS(r,e){await ws("background",r,e)||await ws("background-image",r,e),await ws("mask",r,e)||await ws("-webkit-mask",r,e)||await ws("mask-image",r,e)||await ws("-webkit-mask-image",r,e)}async function GS(r,e){const t=Pn(r,HTMLImageElement);if(!(t&&!Yf(r.src))&&!(Pn(r,SVGImageElement)&&!Yf(r.href.baseVal)))return;const n=t?r.src:r.href.baseVal,A=await Zf(n,Xf(n),e);await new Promise((i,a)=>{r.onload=i,r.onerror=e.onImageErrorHandler?(...o)=>{try{i(e.onImageErrorHandler(...o))}catch(l){a(l)}}:a;const s=r;s.decode&&(s.decode=i),s.loading==="lazy"&&(s.loading="eager"),t?(r.srcset="",r.src=A):r.href.baseVal=A})}async function zS(r,e){const n=Mi(r.childNodes).map(A=>ww(A,e));await Promise.all(n).then(()=>r)}async function ww(r,e){Pn(r,Element)&&(await VS(r,e),await GS(r,e),await zS(r,e))}function WS(r,e){const{style:t}=r;e.backgroundColor&&(t.backgroundColor=e.backgroundColor),e.width&&(t.width=`${e.width}px`),e.height&&(t.height=`${e.height}px`);const n=e.style;return n!=null&&Object.keys(n).forEach(A=>{t[A]=n[A]}),r}const yw={};async function Bw(r){let e=yw[r];if(e!=null)return e;const n=await(await fetch(r)).text();return e={url:r,cssText:n},yw[r]=e,e}async function bw(r,e){let t=r.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,i=(t.match(/url\([^)]+\)/g)||[]).map(async a=>{let s=a.replace(n,"$1");return s.startsWith("https://")||(s=new URL(s,r.url).href),dw(s,e.fetchRequestInit,({result:o})=>(t=t.replace(a,`url(${o})`),[a,o]))});return Promise.all(i).then(()=>t)}function xw(r){if(r==null)return[];const e=[],t=/(\/\*[\s\S]*?\*\/)/gi;let n=r.replace(t,"");const A=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const o=A.exec(n);if(o===null)break;e.push(o[0])}n=n.replace(A,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(a,"gi");for(;;){let o=i.exec(n);if(o===null){if(o=s.exec(n),o===null)break;i.lastIndex=s.lastIndex}else s.lastIndex=i.lastIndex;e.push(o[0])}return e}async function $S(r,e){const t=[],n=[];return r.forEach(A=>{if("cssRules"in A)try{Mi(A.cssRules||[]).forEach((i,a)=>{if(i.type===CSSRule.IMPORT_RULE){let s=a+1;const o=i.href,l=Bw(o).then(u=>bw(u,e)).then(u=>xw(u).forEach(h=>{try{A.insertRule(h,h.startsWith("@import")?s+=1:A.cssRules.length)}catch(d){console.error("Error inserting rule from remote css",{rule:h,error:d})}})).catch(u=>{console.error("Error loading remote css",u.toString())});n.push(l)}})}catch(i){const a=r.find(s=>s.href==null)||document.styleSheets[0];A.href!=null&&n.push(Bw(A.href).then(s=>bw(s,e)).then(s=>xw(s).forEach(o=>{a.insertRule(o,a.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",i)}}),Promise.all(n).then(()=>(r.forEach(A=>{if("cssRules"in A)try{Mi(A.cssRules||[]).forEach(i=>{t.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${A.href}`,i)}}),t))}function qS(r){return r.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>mw(e.style.getPropertyValue("src")))}async function XS(r,e){if(r.ownerDocument==null)throw new Error("Provided element is not within a Document");const t=Mi(r.ownerDocument.styleSheets),n=await $S(t,e);return qS(n)}function Cw(r){return r.trim().replace(/["']/g,"")}function YS(r){const e=new Set;function t(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(i=>{e.add(Cw(i))}),Array.from(n.children).forEach(i=>{i instanceof HTMLElement&&t(i)})}return t(r),e}async function Ew(r,e){const t=await XS(r,e),n=YS(r);return(await Promise.all(t.filter(i=>n.has(Cw(i.style.fontFamily))).map(i=>{const a=i.parentStyleSheet?i.parentStyleSheet.href:null;return vw(i.cssText,a,e)}))).join(`
2
+ `)}async function JS(r,e){const t=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await Ew(r,e);if(t){const n=document.createElement("style"),A=document.createTextNode(t);n.appendChild(A),r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n)}}async function Sw(r,e={}){const{width:t,height:n}=qf(r,e),A=await Su(r,e,!0);return await JS(A,e),await ww(A,e),WS(A,e),await mS(A,t,n)}async function ko(r,e={}){const{width:t,height:n}=qf(r,e),A=await Sw(r,e),i=await Eu(A),a=document.createElement("canvas"),s=a.getContext("2d"),o=e.pixelRatio||fS(),l=e.canvasWidth||t,u=e.canvasHeight||n;return a.width=l*o,a.height=u*o,e.skipAutoScale||dS(a),a.style.width=`${l}`,a.style.height=`${u}`,e.backgroundColor&&(s.fillStyle=e.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(i,0,0,a.width,a.height),a}async function ZS(r,e={}){const{width:t,height:n}=qf(r,e);return(await ko(r,e)).getContext("2d").getImageData(0,0,t,n).data}async function Fw(r,e={}){return(await ko(r,e)).toDataURL()}async function Uw(r,e={}){return(await ko(r,e)).toDataURL("image/jpeg",e.quality||1)}async function eF(r,e={}){const t=await ko(r,e);return await pS(t)}async function tF(r,e={}){return Ew(r,e)}const rF=Object.freeze(Object.defineProperty({__proto__:null,getFontEmbedCSS:tF,toBlob:eF,toCanvas:ko,toJpeg:Uw,toPixelData:ZS,toPng:Fw,toSvg:Sw},Symbol.toStringTag,{value:"Module"}));class Iw{constructor(){ze(this,"defaultOptions",{quality:.6,maxSize:300*1024,delay:0,showFlash:!1});ze(this,"excludeSelectors",[".bug-extractor-toolbar",".bug-extractor-dialog",".bug-create-dialog",".bug-list-dialog",".bug-detail-dialog",".el-dialog",".el-overlay",".el-message",".el-notification",".el-message-box__wrapper"])}async capture(e){const t={...this.defaultOptions,...e},n=Date.now();console.log("[BugExtractor] 开始截图,配置:",{quality:t.quality,maxSize:t.maxSize,delay:t.delay,showFlash:t.showFlash}),t.delay>0&&(console.log(`[BugExtractor] 等待 ${t.delay}ms 后截图...`),await this.delay(t.delay)),t.showFlash&&this.showFlash();let A,i=0;const a=2;for(;i<=a;)try{console.log(`[BugExtractor] 调用截图引擎... (尝试 ${i+1}/${a+1})`),A=await this.captureWithFallback(document.body,t.quality),console.log("[BugExtractor] 截图引擎返回成功");break}catch(l){if(i++,console.warn(`[BugExtractor] 截图尝试 ${i} 失败:`,l),i<=a){const u=500*i;console.log(`[BugExtractor] 等待 ${u}ms 后重试...`),await this.delay(u)}else console.warn("[BugExtractor] 所有截图尝试都失败,使用降级方案"),A=await this.createInfoScreenshot()}if(t.maxSize>0){const l=this.getDataUrlSize(A);console.log(`[BugExtractor] 截图原始大小: ${(l/1024).toFixed(2)}KB`),l>t.maxSize&&(console.log(`[BugExtractor] 图片超过限制 ${t.maxSize/1024}KB,开始压缩...`),A=await this.compressImage(A,t.maxSize))}const s=await this.getImageDimensions(A),o={url:A,size:this.getDataUrlSize(A),width:s.width,height:s.height,duration:Date.now()-n};return console.log(`[BugExtractor] 截图完成: ${o.width}x${o.height}, ${(o.size/1024).toFixed(2)}KB, 耗时${o.duration}ms`),o}async captureWithFallback(e,t){try{return await Fw(e,{cacheBust:!0,pixelRatio:1,skipFonts:!0,filter:n=>{var A,i,a,s;if(n instanceof HTMLElement){const o=((i=(A=n.tagName)==null?void 0:A.toLowerCase)==null?void 0:i.call(A))||"";if(o==="style"||o==="script")return!1;for(const u of this.excludeSelectors)if((a=n.matches)!=null&&a.call(n,u)||(s=n.closest)!=null&&s.call(n,u))return!1;const l=n.className||"";if(typeof l=="string"&&(l.includes("el-dialog")||l.includes("el-overlay")||l.includes("el-message")||l.includes("el-notification")||l.includes("el-message-box")||l.includes("el-popover")||l.includes("el-tooltip")||l.includes("el-loading")||l.includes("bug-extractor")))return!1}if(n instanceof HTMLImageElement){if(n.complete&&n.naturalWidth===0)return!1;if(n.src&&!n.src.startsWith(window.location.origin)&&!n.src.startsWith("data:")){if(n.crossOrigin||n.complete&&n.naturalWidth>0)return!0;try{n.crossOrigin="anonymous"}catch{}}}return!0}})}catch(n){console.warn("[BugExtractor] toPng 失败,尝试 toJpeg:",n)}try{return await Uw(e,{quality:t,cacheBust:!0,pixelRatio:1,skipFonts:!0,filter:n=>{var A,i;if(n instanceof HTMLIFrameElement)return!1;if(n instanceof HTMLElement){for(const s of this.excludeSelectors)if((A=n.matches)!=null&&A.call(n,s)||(i=n.closest)!=null&&i.call(n,s))return!1;const a=n.className||"";if(typeof a=="string"&&(a.includes("el-dialog")||a.includes("el-overlay")||a.includes("el-message")||a.includes("el-notification")||a.includes("bug-extractor")))return!1}if(n instanceof HTMLImageElement){if(n.complete&&n.naturalWidth===0)return!1;if(n.src&&!n.src.startsWith(window.location.origin)&&!n.src.startsWith("data:")){if(n.crossOrigin||n.complete&&n.naturalWidth>0)return!0;try{n.crossOrigin="anonymous"}catch{}}}return!0}})}catch(n){console.warn("[BugExtractor] toJpeg 失败,尝试 html2canvas:",n)}try{const n=await this.loadHtml2Canvas();if(n)return(await n(e,{useCORS:!0,allowTaint:!0,scale:1,logging:!1,ignoreElements:i=>{var a,s;if(i instanceof HTMLIFrameElement)return!0;if(i instanceof HTMLElement){for(const l of this.excludeSelectors)if((a=i.matches)!=null&&a.call(i,l)||(s=i.closest)!=null&&s.call(i,l))return!0;const o=i.className||"";if(typeof o=="string"&&(o.includes("el-dialog")||o.includes("el-overlay")||o.includes("el-message")||o.includes("el-notification")||o.includes("bug-extractor")))return!0}return!1}})).toDataURL("image/jpeg",t)}catch(n){console.warn("[BugExtractor] html2canvas 失败:",n)}throw new Error("所有截图方式都失败")}async loadHtml2Canvas(){if(window.html2canvas)return window.html2canvas;try{const e=await Promise.resolve().then(()=>W2);return e.default||e}catch{return null}}async createInfoScreenshot(){const e=document.createElement("canvas");e.width=800,e.height=600;const t=e.getContext("2d");if(!t)return this.createBlankScreenshot();t.fillStyle="#ffffff",t.fillRect(0,0,e.width,e.height),t.fillStyle="#333333",t.font="bold 20px sans-serif",t.textAlign="center",t.fillText("BugExtractor 截图记录",e.width/2,60),t.strokeStyle="#e0e0e0",t.lineWidth=2,t.beginPath(),t.moveTo(50,80),t.lineTo(750,80),t.stroke(),t.textAlign="left",t.font="14px sans-serif",t.fillStyle="#666666";const n=[`页面标题: ${document.title||"N/A"}`,`页面 URL: ${window.location.href}`,`路由路径: ${window.location.pathname+window.location.hash}`,`浏览器: ${navigator.userAgent.substring(0,80)}...`,`分辨率: ${window.innerWidth}x${window.innerHeight}`,`截图时间: ${new Date().toLocaleString("zh-CN")}`,"","说明: 页面包含无法处理的资源(如跨域图片、","加载失败的图片等),导致自动截图失败。","建议手动截图补充。"];let A=120;return n.forEach(i=>{t.fillText(i,50,A),A+=28}),e.toDataURL("image/jpeg",.8)}createBlankScreenshot(){const e=document.createElement("canvas");e.width=800,e.height=600;const t=e.getContext("2d");return t&&(t.fillStyle="#f5f5f5",t.fillRect(0,0,e.width,e.height),t.fillStyle="#999",t.font="16px sans-serif",t.textAlign="center",t.fillText("截图失败 - 页面包含无法处理的资源",e.width/2,e.height/2)),e.toDataURL("image/jpeg",.6)}async compressImage(e,t){return new Promise(n=>{const A=new Image;A.src=e,A.onload=()=>{const i=document.createElement("canvas");i.width=A.width,i.height=A.height;const a=i.getContext("2d");if(!a){n(e);return}a.drawImage(A,0,0);let s=.6;const o=()=>{i.toBlob(l=>{if(!l){n(e);return}if(l.size>t&&s>.1)s-=.1,o();else{const u=new FileReader;u.onload=()=>{n(u.result)},u.readAsDataURL(l)}},"image/jpeg",s)};o()},A.onerror=()=>{n(e)}})}async getImageDimensions(e){return new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>{t({width:n.width,height:n.height})},n.onerror=()=>{t({width:0,height:0})}})}getDataUrlSize(e){const t=e.split(",")[1]||"";return Math.ceil(t.length*3/4)}showFlash(){const e=document.createElement("div");e.style.cssText=`
3
+ position: fixed;
4
+ top: 0;
5
+ left: 0;
6
+ width: 100vw;
7
+ height: 100vh;
8
+ background: white;
9
+ opacity: 0;
10
+ z-index: 999999;
11
+ pointer-events: none;
12
+ animation: bugExtractorFlash 0.3s ease-out;
13
+ `;const t=document.createElement("style");t.textContent=`
14
+ @keyframes bugExtractorFlash {
15
+ 0% { opacity: 0; }
16
+ 50% { opacity: 0.5; }
17
+ 100% { opacity: 0; }
18
+ }
19
+ `,document.head.appendChild(t),document.body.appendChild(e),setTimeout(()=>{e.parentNode&&e.parentNode.removeChild(e),t.parentNode&&t.parentNode.removeChild(t)},300)}delay(e){return new Promise(t=>setTimeout(t,e))}}class ed{constructor(e="BDC"){ze(this,"system");this.system=e}buildFromHttpError(e,t){const{classified:n}=e;return{id:this.generateId(),source:"http-error",severity:n.severity,createdAt:new Date().toISOString(),environment:this.captureEnvironment(),httpInfo:this.buildHttpInfo(e),description:this.buildDescription(n,e),screenshots:t?[t]:[],metadata:this.buildMetadata(n)}}buildFromManual(e,t){return{id:this.generateId(),source:"manual",severity:e.severity,createdAt:new Date().toISOString(),environment:this.captureEnvironment(),description:{title:e.title,autoDescribe:"",manualDescribe:e.description},screenshots:t||[],metadata:{tags:e.tags||[],reporterName:e.reporterName||"",extra:{}}}}generateId(){const e=new Date,t=e.toISOString().slice(0,10).replace(/-/g,""),n=e.toTimeString().slice(0,8).replace(/:/g,""),A=Math.random().toString(36).substring(2,8);return`bug-${t}-${n}-${A}`}captureEnvironment(){return{system:this.system,userAgent:typeof navigator<"u"?navigator.userAgent:"",url:typeof window<"u"?window.location.href:"",route:this.getCurrentRoute(),screenWidth:typeof screen<"u"?screen.width:0,screenHeight:typeof screen<"u"?screen.height:0,timestamp:new Date().toISOString()}}getCurrentRoute(){var a,s,o,l,u,h,d,c;if(typeof window>"u")return"";const e=window.__VUE_APP__;if((s=(a=e==null?void 0:e.config)==null?void 0:a.globalProperties)!=null&&s.$route){const p=e.config.globalProperties.$route;if(p.path&&p.path!=="/")return p.path;if(p.fullPath)return p.fullPath}const t=window.__VUE_ROUTER__;if((o=t==null?void 0:t.currentRoute)!=null&&o.value){const p=t.currentRoute.value;if(p.path&&p.path!=="/")return p.path;if(p.fullPath)return p.fullPath}try{const p=window.__VUE_DEVTOOLS_GLOBAL_HOOK__;if((h=(u=(l=p==null?void 0:p.Vue)==null?void 0:l.config)==null?void 0:u.globalProperties)!=null&&h.$route){const m=p.Vue.config.globalProperties.$route;if(m.path)return m.path;if(m.fullPath)return m.fullPath}}catch{}try{const p=document.querySelector("#app")||document.querySelector("#app")||document.body;if(p){const m=p.__vue__||p.__vue__;if(m!=null&&m.$route){const y=m.$route;if(y.path)return y.path;if(y.fullPath)return y.fullPath}if((d=m==null?void 0:m.$router)!=null&&d.currentRoute){const y=m.$router.currentRoute;if(typeof y=="object"){if(y.path)return y.path;if(y.fullPath)return y.fullPath}}}}catch{}try{const p=document.querySelectorAll("*");for(let m=0;m<p.length;m++){const y=p[m];if(y.__vue__){const g=y.__vue__;if(g.$route){const w=g.$route;if(w.path)return w.path;if(w.fullPath)return w.fullPath}if((c=g.$router)!=null&&c.currentRoute){const w=g.$router.currentRoute;if(w.path)return w.path;if(w.fullPath)return w.fullPath}break}}}catch{}const n=window.__REACT_APP__;if(n!=null&&n.location)return n.location.pathname;const A=window.location.hash;if(A&&A.startsWith("#")){const p=A.slice(1).split("?")[0];if(p&&p!=="/")return p}const i=window.location.pathname;return i&&i!=="/"?i:window.location.href}buildHttpInfo(e){return{requestUrl:e.url,requestMethod:e.method,requestHeaders:e.headers||{},requestParams:e.params||{},responseStatus:e.status||0,responseCode:e.classified.businessCode||"",responseBody:e.response||{},errorMessage:e.classified.errorMessage,duration:e.duration}}buildDescription(e,t){const n=this.generateTitle(e),A=this.generateAutoDescription(e,t);return{title:n,autoDescribe:A,manualDescribe:""}}generateTitle(e){return e.httpStatus?`接口 ${e.httpStatus} 错误`:e.businessCode?`业务错误 [${e.businessCode}]`:e.errorMessage.includes("超时")?"接口请求超时":e.errorMessage.includes("网络")?"网络连接异常":"接口错误"}generateAutoDescription(e,t){const n=new Date().toLocaleString("zh-CN"),A=this.getCurrentRoute(),i=t.method,a=t.url||"未知接口",s=t.params!==void 0?JSON.stringify(t.params,null,2):"无",o=e.httpStatus||e.businessCode||"N/A",l=e.errorMessage,u=t.duration;return`${n},在"${A}"页面,调用接口 ${i} ${a} 时发生错误。
20
+ 请求参数:${s}
21
+ 响应状态:${o},错误信息:${l}
22
+ 请求耗时:${u}ms`}buildMetadata(e){const t=[];return e.httpStatus&&(e.httpStatus>=500?t.push("服务器错误"):e.httpStatus>=400&&t.push("客户端错误"),t.push(`${e.httpStatus}`)),e.businessCode&&(t.push("业务错误"),t.push(e.businessCode)),e.errorMessage.includes("超时")&&t.push("超时"),e.errorMessage.includes("网络")&&t.push("网络异常"),{tags:t,reporterName:"",extra:{}}}}class Fu{constructor(e={}){ze(this,"maxCount");ze(this,"storageKey");ze(this,"bugs",[]);this.maxCount=e.maxCount||500,this.storageKey=e.storageKey||"bug-extractor-bugs",this.load()}add(e){this.bugs.unshift(e),this.autoClean(),this.save(),this.notifyChanged()}addMany(e){this.bugs=[...e,...this.bugs],this.autoClean(),this.save(),this.notifyChanged()}update(e,t){const n=this.bugs.findIndex(A=>A.id===e);n!==-1&&(this.bugs[n]={...this.bugs[n],...t},this.save(),this.notifyChanged())}delete(e){this.bugs=this.bugs.filter(t=>t.id!==e),this.save(),this.notifyChanged()}deleteMany(e){this.bugs=this.bugs.filter(t=>!e.includes(t.id)),this.save(),this.notifyChanged()}get(e){return this.bugs.find(t=>t.id===e)}getAll(){return[...this.bugs]}query(e){let t=[...this.bugs];if(e.sources&&e.sources.length>0&&(t=t.filter(n=>e.sources.includes(n.source))),e.severities&&e.severities.length>0&&(t=t.filter(n=>e.severities.includes(n.severity))),e.systems&&e.systems.length>0&&(t=t.filter(n=>e.systems.includes(n.environment.system))),e.dateRange){const n=new Date(e.dateRange.start).getTime(),A=new Date(e.dateRange.end).getTime();t=t.filter(i=>{const a=new Date(i.createdAt).getTime();return a>=n&&a<=A})}if(e.keyword){const n=e.keyword.toLowerCase();t=t.filter(A=>A.description.title.toLowerCase().includes(n)||A.description.autoDescribe.toLowerCase().includes(n)||A.description.manualDescribe.toLowerCase().includes(n))}return t}getStats(){const e={total:this.bugs.length,bySource:{},bySeverity:{},bySystem:{}};return this.bugs.forEach(t=>{e.bySource[t.source]=(e.bySource[t.source]||0)+1,e.bySeverity[t.severity]=(e.bySeverity[t.severity]||0)+1;const n=t.environment.system;e.bySystem[n]=(e.bySystem[n]||0)+1}),e}clear(){this.bugs=[],this.save(),this.notifyChanged()}notifyChanged(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("bug-extractor:count-changed",{detail:this.bugs.length}))}load(){try{if(typeof localStorage>"u")return;const e=localStorage.getItem(this.storageKey);e&&(this.bugs=JSON.parse(e))}catch(e){console.error("[BugExtractor] 加载 Bug 数据失败:",e),this.bugs=[]}}save(){try{if(typeof localStorage>"u")return;localStorage.setItem(this.storageKey,JSON.stringify(this.bugs))}catch(e){console.error("[BugExtractor] 保存 Bug 数据失败:",e),e instanceof DOMException&&e.name==="QuotaExceededError"&&(this.bugs=this.bugs.slice(0,Math.floor(this.bugs.length/2)),this.save())}}autoClean(){this.bugs.length>this.maxCount&&(this.bugs=this.bugs.slice(0,this.maxCount))}}class Ho{constructor(){ze(this,"exporters",new Map)}register(e){this.exporters.has(e.format)&&console.warn(`[BugExtractor] 导出器 ${e.format} 已存在,将被覆盖`),this.exporters.set(e.format,e)}getExporter(e){return this.exporters.get(e)}getAllExporters(){return Array.from(this.exporters.values())}isSupported(e){return this.exporters.has(e)}async export(e,t){const{format:n}=t,A=this.getExporter(n);if(!A)throw new Error(`不支持的导出格式: ${n}`);return A.export(e,t)}async exportSingle(e,t){const{format:n}=t,A=this.getExporter(n);if(!A)throw new Error(`不支持的导出格式: ${n}`);return A.exportSingle(e,t)}async exportAndDownload(e,t){const{format:n,fileName:A}=t,i=this.getExporter(n);if(!i)throw new Error(`不支持的导出格式: ${n}`);const a=await i.export(e,t),o=`bug-report-${new Date().toISOString().replace(/[:.]/g,"-").slice(0,19)}`,l=`${A||o}.${i.extension}`;let u;typeof a=="string"?u=new Blob([a],{type:i.mimeType}):u=a;const h=URL.createObjectURL(u),d=document.createElement("a");d.href=h,d.download=l,d.style.display="none",document.body.appendChild(d),d.click(),setTimeout(()=>{URL.revokeObjectURL(h),document.body.removeChild(d)},100)}}let td=null;function nF(){return td||(td=new Ho),td}class rd{constructor(){ze(this,"name","JSON 导出器");ze(this,"format","json");ze(this,"extension","json");ze(this,"mimeType","application/json")}async export(e,t){const n={version:"1.0",exportedAt:new Date().toISOString(),count:e.length,bugs:e};return JSON.stringify(n,null,2)}async exportSingle(e,t){return JSON.stringify(e,null,2)}}class nd{constructor(){ze(this,"name","Markdown 导出器");ze(this,"format","markdown");ze(this,"extension","md");ze(this,"mimeType","text/markdown")}async export(e,t){const n=[];return n.push("# Bug 报告"),n.push(""),n.push(`导出时间:${new Date().toLocaleString("zh-CN")}`),n.push(`Bug 总数:${e.length}`),n.push(""),n.push("---"),n.push(""),n.push("## 目录"),n.push(""),e.forEach((A,i)=>{n.push(`${i+1}. [${this.escapeMarkdown(A.description.title)}](#bug-${i+1})`)}),n.push(""),n.push("---"),n.push(""),e.forEach((A,i)=>{n.push(`## <a id="bug-${i+1}"></a>${i+1}. ${this.escapeMarkdown(A.description.title)}`),n.push(""),n.push("### 基础信息"),n.push(""),n.push("| 字段 | 值 |"),n.push("|------|-----|"),n.push(`| ID | \`${A.id}\` |`),n.push(`| 来源 | ${this.getSourceLabel(A.source)} |`),n.push(`| 严重程度 | ${this.getSeverityLabel(A.severity)} |`),n.push(`| 创建时间 | ${new Date(A.createdAt).toLocaleString("zh-CN")} |`),n.push(""),n.push("### 环境信息"),n.push(""),n.push("| 字段 | 值 |"),n.push("|------|-----|"),n.push(`| 子系统 | ${A.environment.system} |`),n.push(`| 页面 URL | \`${A.environment.url}\` |`),n.push(`| 路由 | \`${A.environment.route}\` |`),n.push(`| 浏览器 | \`${A.environment.userAgent}\` |`),n.push(`| 屏幕分辨率 | ${A.environment.screenWidth} × ${A.environment.screenHeight} |`),n.push(""),A.httpInfo&&(n.push("### 接口信息"),n.push(""),n.push("| 字段 | 值 |"),n.push("|------|-----|"),n.push(`| 接口地址 | \`${A.httpInfo.requestMethod} ${A.httpInfo.requestUrl}\` |`),n.push(`| 请求入参 | \`${JSON.stringify(A.httpInfo.requestParams)}\` |`),n.push(`| 响应状态 | ${A.httpInfo.responseStatus} |`),n.push(`| 业务错误码 | ${A.httpInfo.responseCode||"-"} |`),n.push(`| 错误信息 | ${this.escapeMarkdown(A.httpInfo.errorMessage)} |`),n.push(`| 请求耗时 | ${A.httpInfo.duration}ms |`),n.push("")),n.push("### Bug 描述"),n.push(""),A.description.autoDescribe&&(n.push("**自动描述:**"),n.push(""),n.push(A.description.autoDescribe),n.push("")),A.description.manualDescribe&&(n.push("**手动描述:**"),n.push(""),n.push(A.description.manualDescribe),n.push("")),A.screenshots&&A.screenshots.length>0&&(n.push("### 截图"),n.push(""),A.screenshots.forEach((a,s)=>{n.push(`**截图 ${s+1}:**`),n.push(""),n.push(`![截图 ${s+1}](${a.url})`),n.push("")})),A.metadata.tags.length>0&&(n.push("### 标签"),n.push(""),n.push(A.metadata.tags.map(a=>`\`${a}\``).join(" ")),n.push("")),n.push("---"),n.push("")}),n.join(`
23
+ `)}async exportSingle(e,t){return this.export([e],t)}escapeMarkdown(e){return e.replace(/\|/g,"\\|").replace(/\*/g,"\\*").replace(/_/g,"\\_").replace(/`/g,"\\`")}getSourceLabel(e){return{"http-error":"🌐 接口错误",manual:"✍️ 手动创建","dom-error":"🖥️ DOM 异常"}[e]||e}getSeverityLabel(e){return{critical:"🔴 致命",major:"🟠 严重",minor:"🟡 一般",suggestion:"🟢 建议"}[e]||e}}class Ad{constructor(){ze(this,"name","CSV 导出器");ze(this,"format","csv");ze(this,"extension","csv");ze(this,"mimeType","text/csv")}async export(e,t){const n=[],A=["ID","来源","严重程度","创建时间","子系统","页面 URL","路由","标题","自动描述","手动描述","接口地址","请求方法","请求入参","响应状态","业务错误码","错误信息","请求耗时(ms)","标签","截图数量"];return n.push(A.map(i=>this.escapeCsv(i)).join(",")),e.forEach(i=>{var s,o,l,u,h,d,c;const a=[i.id,this.getSourceLabel(i.source),this.getSeverityLabel(i.severity),new Date(i.createdAt).toLocaleString("zh-CN"),i.environment.system,i.environment.url,i.environment.route,i.description.title,i.description.autoDescribe,i.description.manualDescribe,((s=i.httpInfo)==null?void 0:s.requestUrl)||"",((o=i.httpInfo)==null?void 0:o.requestMethod)||"",i.httpInfo?JSON.stringify(i.httpInfo.requestParams):"",((l=i.httpInfo)==null?void 0:l.responseStatus)||"",((u=i.httpInfo)==null?void 0:u.responseCode)||"",((h=i.httpInfo)==null?void 0:h.errorMessage)||"",((d=i.httpInfo)==null?void 0:d.duration)||"",i.metadata.tags.join(";"),((c=i.screenshots)==null?void 0:c.length)||0];n.push(a.map(p=>this.escapeCsv(String(p))).join(","))}),"\uFEFF"+n.join(`
24
+ `)}async exportSingle(e,t){return this.export([e],t)}escapeCsv(e){return e.includes(",")||e.includes(`
25
+ `)||e.includes('"')?'"'+e.replace(/"/g,'""')+'"':e}getSourceLabel(e){return{"http-error":"接口错误",manual:"手动创建","dom-error":"DOM 异常"}[e]||e}getSeverityLabel(e){return{critical:"致命",major:"严重",minor:"一般",suggestion:"建议"}[e]||e}}var AF=Object.defineProperty,iF=Object.defineProperties,aF=Object.getOwnPropertyDescriptors,Tw=Object.getOwnPropertySymbols,sF=Object.prototype.hasOwnProperty,oF=Object.prototype.propertyIsEnumerable,id=(r,e,t)=>e in r?AF(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Nt=(r,e)=>{for(var t in e||(e={}))sF.call(e,t)&&id(r,t,e[t]);if(Tw)for(var t of Tw(e))oF.call(e,t)&&id(r,t,e[t]);return r},ys=(r,e)=>iF(r,aF(e)),_e=(r,e,t)=>(id(r,typeof e!="symbol"?e+"":e,t),t),Uu=(r,e,t)=>new Promise((n,A)=>{var i=o=>{try{s(t.next(o))}catch(l){A(l)}},a=o=>{try{s(t.throw(o))}catch(l){A(l)}},s=o=>o.done?n(o.value):Promise.resolve(o.value).then(i,a);s((t=t.apply(r,e)).next())});class Iu{constructor(e){_e(this,"rootKey"),this.rootKey=e}}const lF=Object.seal({});class Te extends Iu{constructor(e){super(e),_e(this,"root"),this.root=new Array}prepForXml(e){var t;e.stack.push(this);const n=this.root.map(A=>A instanceof Iu?A.prepForXml(e):A).filter(A=>A!==void 0);return e.stack.pop(),{[this.rootKey]:n.length?n.length===1&&((t=n[0])!=null&&t._attr)?n[0]:n:lF}}addChildElement(e){return this.root.push(e),this}}class li extends Te{prepForXml(e){const t=super.prepForXml(e);if(t&&(typeof t[this.rootKey]!="object"||Object.keys(t[this.rootKey]).length))return t}}class Je extends Iu{constructor(e){super("_attr"),_e(this,"xmlKeys"),this.root=e}prepForXml(e){const t={};return Object.keys(this.root).forEach(n=>{const A=this.root[n];if(A!==void 0){const i=this.xmlKeys&&this.xmlKeys[n]||n;t[i]=A}}),{_attr:t}}}class ui extends Iu{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:n})=>n!==void 0).reduce((n,{key:A,value:i})=>ys(Nt({},n),{[A]:i}),{})}}}class pr extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var GA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _w(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Lw={},ad={exports:{}},Bs=typeof Reflect=="object"?Reflect:null,Qw=Bs&&typeof Bs.apply=="function"?Bs.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},Tu;Bs&&typeof Bs.ownKeys=="function"?Tu=Bs.ownKeys:Object.getOwnPropertySymbols?Tu=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Tu=function(e){return Object.getOwnPropertyNames(e)};function uF(r){console&&console.warn&&console.warn(r)}var Nw=Number.isNaN||function(e){return e!==e};function $t(){$t.init.call(this)}ad.exports=$t,ad.exports.once=dF,$t.EventEmitter=$t,$t.prototype._events=void 0,$t.prototype._eventsCount=0,$t.prototype._maxListeners=void 0;var Ow=10;function _u(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty($t,"defaultMaxListeners",{enumerable:!0,get:function(){return Ow},set:function(r){if(typeof r!="number"||r<0||Nw(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");Ow=r}}),$t.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},$t.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Nw(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Pw(r){return r._maxListeners===void 0?$t.defaultMaxListeners:r._maxListeners}$t.prototype.getMaxListeners=function(){return Pw(this)},$t.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var A=e==="error",i=this._events;if(i!==void 0)A=A&&i.error===void 0;else if(!A)return!1;if(A){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var o=i[e];if(o===void 0)return!1;if(typeof o=="function")Qw(o,this,t);else for(var l=o.length,u=Mw(o,l),n=0;n<l;++n)Qw(u[n],this,t);return!0};function Rw(r,e,t,n){var A,i,a;if(_u(t),i=r._events,i===void 0?(i=r._events=Object.create(null),r._eventsCount=0):(i.newListener!==void 0&&(r.emit("newListener",e,t.listener?t.listener:t),i=r._events),a=i[e]),a===void 0)a=i[e]=t,++r._eventsCount;else if(typeof a=="function"?a=i[e]=n?[t,a]:[a,t]:n?a.unshift(t):a.push(t),A=Pw(r),A>0&&a.length>A&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=r,s.type=e,s.count=a.length,uF(s)}return r}$t.prototype.addListener=function(e,t){return Rw(this,e,t,!1)},$t.prototype.on=$t.prototype.addListener,$t.prototype.prependListener=function(e,t){return Rw(this,e,t,!0)};function cF(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Dw(r,e,t){var n={fired:!1,wrapFn:void 0,target:r,type:e,listener:t},A=cF.bind(n);return A.listener=t,n.wrapFn=A,A}$t.prototype.once=function(e,t){return _u(t),this.on(e,Dw(this,e,t)),this},$t.prototype.prependOnceListener=function(e,t){return _u(t),this.prependListener(e,Dw(this,e,t)),this},$t.prototype.removeListener=function(e,t){var n,A,i,a,s;if(_u(t),A=this._events,A===void 0)return this;if(n=A[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete A[e],A.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():hF(n,i),n.length===1&&(A[e]=n[0]),A.removeListener!==void 0&&this.emit("removeListener",e,s||t)}return this},$t.prototype.off=$t.prototype.removeListener,$t.prototype.removeAllListeners=function(e){var t,n,A;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(A=0;A<i.length;++A)a=i[A],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t=="function")this.removeListener(e,t);else if(t!==void 0)for(A=t.length-1;A>=0;A--)this.removeListener(e,t[A]);return this};function kw(r,e,t){var n=r._events;if(n===void 0)return[];var A=n[e];return A===void 0?[]:typeof A=="function"?t?[A.listener||A]:[A]:t?fF(A):Mw(A,A.length)}$t.prototype.listeners=function(e){return kw(this,e,!0)},$t.prototype.rawListeners=function(e){return kw(this,e,!1)},$t.listenerCount=function(r,e){return typeof r.listenerCount=="function"?r.listenerCount(e):Hw.call(r,e)},$t.prototype.listenerCount=Hw;function Hw(r){var e=this._events;if(e!==void 0){var t=e[r];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}$t.prototype.eventNames=function(){return this._eventsCount>0?Tu(this._events):[]};function Mw(r,e){for(var t=new Array(e),n=0;n<e;++n)t[n]=r[n];return t}function hF(r,e){for(;e+1<r.length;e++)r[e]=r[e+1];r.pop()}function fF(r){for(var e=new Array(r.length),t=0;t<e.length;++t)e[t]=r[t].listener||r[t];return e}function dF(r,e){return new Promise(function(t,n){function A(a){r.removeListener(e,i),n(a)}function i(){typeof r.removeListener=="function"&&r.removeListener("error",A),t([].slice.call(arguments))}Kw(r,e,i,{once:!0}),e!=="error"&&pF(r,A,{once:!0})})}function pF(r,e,t){typeof r.on=="function"&&Kw(r,"error",e,t)}function Kw(r,e,t,n){if(typeof r.on=="function")n.once?r.once(e,t):r.on(e,t);else if(typeof r.addEventListener=="function")r.addEventListener(e,function A(i){n.once&&r.removeEventListener(e,A),t(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r)}var sd=ad.exports,od={exports:{}};typeof Object.create=="function"?od.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:od.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}};var Fa=od.exports;function gF(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var jw={exports:{}},Cr=jw.exports={},zA,WA;function ld(){throw new Error("setTimeout has not been defined")}function ud(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?zA=setTimeout:zA=ld}catch{zA=ld}try{typeof clearTimeout=="function"?WA=clearTimeout:WA=ud}catch{WA=ud}})();function Vw(r){if(zA===setTimeout)return setTimeout(r,0);if((zA===ld||!zA)&&setTimeout)return zA=setTimeout,setTimeout(r,0);try{return zA(r,0)}catch{try{return zA.call(null,r,0)}catch{return zA.call(this,r,0)}}}function mF(r){if(WA===clearTimeout)return clearTimeout(r);if((WA===ud||!WA)&&clearTimeout)return WA=clearTimeout,clearTimeout(r);try{return WA(r)}catch{try{return WA.call(null,r)}catch{return WA.call(this,r)}}}var ci=[],bs=!1,Ua,Lu=-1;function vF(){!bs||!Ua||(bs=!1,Ua.length?ci=Ua.concat(ci):Lu=-1,ci.length&&Gw())}function Gw(){if(!bs){var r=Vw(vF);bs=!0;for(var e=ci.length;e;){for(Ua=ci,ci=[];++Lu<e;)Ua&&Ua[Lu].run();Lu=-1,e=ci.length}Ua=null,bs=!1,mF(r)}}Cr.nextTick=function(r){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];ci.push(new zw(r,e)),ci.length===1&&!bs&&Vw(Gw)};function zw(r,e){this.fun=r,this.array=e}zw.prototype.run=function(){this.fun.apply(null,this.array)},Cr.title="browser",Cr.browser=!0,Cr.env={},Cr.argv=[],Cr.version="",Cr.versions={};function hi(){}Cr.on=hi,Cr.addListener=hi,Cr.once=hi,Cr.off=hi,Cr.removeListener=hi,Cr.removeAllListeners=hi,Cr.emit=hi,Cr.prependListener=hi,Cr.prependOnceListener=hi,Cr.listeners=function(r){return[]},Cr.binding=function(r){throw new Error("process.binding is not supported")},Cr.cwd=function(){return"/"},Cr.chdir=function(r){throw new Error("process.chdir is not supported")},Cr.umask=function(){return 0};var wF=jw.exports;const Ut=gF(wF);var cd,Ww;function $w(){return Ww||(Ww=1,cd=sd.EventEmitter),cd}var hd={},Mo={},qw;function yF(){if(qw)return Mo;qw=1,Mo.byteLength=s,Mo.toByteArray=l,Mo.fromByteArray=d;for(var r=[],e=[],t=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=0,i=n.length;A<i;++A)r[A]=n[A],e[n.charCodeAt(A)]=A;e[45]=62,e[95]=63;function a(c){var p=c.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=c.indexOf("=");m===-1&&(m=p);var y=m===p?0:4-m%4;return[m,y]}function s(c){var p=a(c),m=p[0],y=p[1];return(m+y)*3/4-y}function o(c,p,m){return(p+m)*3/4-m}function l(c){var p,m=a(c),y=m[0],g=m[1],w=new t(o(c,y,g)),B=0,I=g>0?y-4:y,O;for(O=0;O<I;O+=4)p=e[c.charCodeAt(O)]<<18|e[c.charCodeAt(O+1)]<<12|e[c.charCodeAt(O+2)]<<6|e[c.charCodeAt(O+3)],w[B++]=p>>16&255,w[B++]=p>>8&255,w[B++]=p&255;return g===2&&(p=e[c.charCodeAt(O)]<<2|e[c.charCodeAt(O+1)]>>4,w[B++]=p&255),g===1&&(p=e[c.charCodeAt(O)]<<10|e[c.charCodeAt(O+1)]<<4|e[c.charCodeAt(O+2)]>>2,w[B++]=p>>8&255,w[B++]=p&255),w}function u(c){return r[c>>18&63]+r[c>>12&63]+r[c>>6&63]+r[c&63]}function h(c,p,m){for(var y,g=[],w=p;w<m;w+=3)y=(c[w]<<16&16711680)+(c[w+1]<<8&65280)+(c[w+2]&255),g.push(u(y));return g.join("")}function d(c){for(var p,m=c.length,y=m%3,g=[],w=16383,B=0,I=m-y;B<I;B+=w)g.push(h(c,B,B+w>I?I:B+w));return y===1?(p=c[m-1],g.push(r[p>>2]+r[p<<4&63]+"==")):y===2&&(p=(c[m-2]<<8)+c[m-1],g.push(r[p>>10]+r[p>>4&63]+r[p<<2&63]+"=")),g.join("")}return Mo}var Qu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Xw;function BF(){return Xw||(Xw=1,Qu.read=function(r,e,t,n,A){var i,a,s=A*8-n-1,o=(1<<s)-1,l=o>>1,u=-7,h=t?A-1:0,d=t?-1:1,c=r[e+h];for(h+=d,i=c&(1<<-u)-1,c>>=-u,u+=s;u>0;i=i*256+r[e+h],h+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=a*256+r[e+h],h+=d,u-=8);if(i===0)i=1-l;else{if(i===o)return a?NaN:(c?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-l}return(c?-1:1)*a*Math.pow(2,i-n)},Qu.write=function(r,e,t,n,A,i){var a,s,o,l=i*8-A-1,u=(1<<l)-1,h=u>>1,d=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=n?0:i-1,p=n?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(o=Math.pow(2,-a))<1&&(a--,o*=2),a+h>=1?e+=d/o:e+=d*Math.pow(2,1-h),e*o>=2&&(a++,o/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(e*o-1)*Math.pow(2,A),a=a+h):(s=e*Math.pow(2,h-1)*Math.pow(2,A),a=0));A>=8;r[t+c]=s&255,c+=p,s/=256,A-=8);for(a=a<<A|s,l+=A;l>0;r[t+c]=a&255,c+=p,a/=256,l-=8);r[t+c-p]|=m*128}),Qu}/*!
26
+ * The buffer module from node.js, for the browser.
27
+ *
28
+ * @author Feross Aboukhadijeh <https://feross.org>
29
+ * @license MIT
30
+ */var Yw;function Nu(){return Yw||(Yw=1,function(r){var e=yF(),t=BF(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=s,r.SlowBuffer=w,r.INSPECT_MAX_BYTES=50;var A=2147483647;r.kMaxLength=A,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var U=new Uint8Array(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,Uint8Array.prototype),Object.setPrototypeOf(U,b),U.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(U){if(U>A)throw new RangeError('The value "'+U+'" is invalid for option "size"');var b=new Uint8Array(U);return Object.setPrototypeOf(b,s.prototype),b}function s(U,b,x){if(typeof U=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(U)}return o(U,b,x)}s.poolSize=8192;function o(U,b,x){if(typeof U=="string")return d(U,b);if(ArrayBuffer.isView(U))return p(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(me(U,ArrayBuffer)||U&&me(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(me(U,SharedArrayBuffer)||U&&me(U.buffer,SharedArrayBuffer)))return m(U,b,x);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var N=U.valueOf&&U.valueOf();if(N!=null&&N!==U)return s.from(N,b,x);var ae=y(U);if(ae)return ae;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return s.from(U[Symbol.toPrimitive]("string"),b,x);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}s.from=function(U,b,x){return o(U,b,x)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function u(U,b,x){return l(U),U<=0?a(U):b!==void 0?typeof x=="string"?a(U).fill(b,x):a(U).fill(b):a(U)}s.alloc=function(U,b,x){return u(U,b,x)};function h(U){return l(U),a(U<0?0:g(U)|0)}s.allocUnsafe=function(U){return h(U)},s.allocUnsafeSlow=function(U){return h(U)};function d(U,b){if((typeof b!="string"||b==="")&&(b="utf8"),!s.isEncoding(b))throw new TypeError("Unknown encoding: "+b);var x=B(U,b)|0,N=a(x),ae=N.write(U,b);return ae!==x&&(N=N.slice(0,ae)),N}function c(U){for(var b=U.length<0?0:g(U.length)|0,x=a(b),N=0;N<b;N+=1)x[N]=U[N]&255;return x}function p(U){if(me(U,Uint8Array)){var b=new Uint8Array(U);return m(b.buffer,b.byteOffset,b.byteLength)}return c(U)}function m(U,b,x){if(b<0||U.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(U.byteLength<b+(x||0))throw new RangeError('"length" is outside of buffer bounds');var N;return b===void 0&&x===void 0?N=new Uint8Array(U):x===void 0?N=new Uint8Array(U,b):N=new Uint8Array(U,b,x),Object.setPrototypeOf(N,s.prototype),N}function y(U){if(s.isBuffer(U)){var b=g(U.length)|0,x=a(b);return x.length===0||U.copy(x,0,0,b),x}if(U.length!==void 0)return typeof U.length!="number"||P(U.length)?a(0):c(U);if(U.type==="Buffer"&&Array.isArray(U.data))return c(U.data)}function g(U){if(U>=A)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A.toString(16)+" bytes");return U|0}function w(U){return+U!=U&&(U=0),s.alloc(+U)}s.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==s.prototype},s.compare=function(b,x){if(me(b,Uint8Array)&&(b=s.from(b,b.offset,b.byteLength)),me(x,Uint8Array)&&(x=s.from(x,x.offset,x.byteLength)),!s.isBuffer(b)||!s.isBuffer(x))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===x)return 0;for(var N=b.length,ae=x.length,fe=0,ue=Math.min(N,ae);fe<ue;++fe)if(b[fe]!==x[fe]){N=b[fe],ae=x[fe];break}return N<ae?-1:ae<N?1:0},s.isEncoding=function(b){switch(String(b).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(b,x){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return s.alloc(0);var N;if(x===void 0)for(x=0,N=0;N<b.length;++N)x+=b[N].length;var ae=s.allocUnsafe(x),fe=0;for(N=0;N<b.length;++N){var ue=b[N];if(me(ue,Uint8Array))fe+ue.length>ae.length?s.from(ue).copy(ae,fe):Uint8Array.prototype.set.call(ae,ue,fe);else if(s.isBuffer(ue))ue.copy(ae,fe);else throw new TypeError('"list" argument must be an Array of Buffers');fe+=ue.length}return ae};function B(U,b){if(s.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||me(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);var x=U.length,N=arguments.length>2&&arguments[2]===!0;if(!N&&x===0)return 0;for(var ae=!1;;)switch(b){case"ascii":case"latin1":case"binary":return x;case"utf8":case"utf-8":return L(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x*2;case"hex":return x>>>1;case"base64":return $(U).length;default:if(ae)return N?-1:L(U).length;b=(""+b).toLowerCase(),ae=!0}}s.byteLength=B;function I(U,b,x){var N=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((x===void 0||x>this.length)&&(x=this.length),x<=0)||(x>>>=0,b>>>=0,x<=b))return"";for(U||(U="utf8");;)switch(U){case"hex":return q(this,b,x);case"utf8":case"utf-8":return F(this,b,x);case"ascii":return G(this,b,x);case"latin1":case"binary":return oe(this,b,x);case"base64":return K(this,b,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,b,x);default:if(N)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),N=!0}}s.prototype._isBuffer=!0;function O(U,b,x){var N=U[b];U[b]=U[x],U[x]=N}s.prototype.swap16=function(){var b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var x=0;x<b;x+=2)O(this,x,x+1);return this},s.prototype.swap32=function(){var b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var x=0;x<b;x+=4)O(this,x,x+3),O(this,x+1,x+2);return this},s.prototype.swap64=function(){var b=this.length;if(b%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var x=0;x<b;x+=8)O(this,x,x+7),O(this,x+1,x+6),O(this,x+2,x+5),O(this,x+3,x+4);return this},s.prototype.toString=function(){var b=this.length;return b===0?"":arguments.length===0?F(this,0,b):I.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(b){if(!s.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:s.compare(this,b)===0},s.prototype.inspect=function(){var b="",x=r.INSPECT_MAX_BYTES;return b=this.toString("hex",0,x).replace(/(.{2})/g,"$1 ").trim(),this.length>x&&(b+=" ... "),"<Buffer "+b+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(b,x,N,ae,fe){if(me(b,Uint8Array)&&(b=s.from(b,b.offset,b.byteLength)),!s.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(x===void 0&&(x=0),N===void 0&&(N=b?b.length:0),ae===void 0&&(ae=0),fe===void 0&&(fe=this.length),x<0||N>b.length||ae<0||fe>this.length)throw new RangeError("out of range index");if(ae>=fe&&x>=N)return 0;if(ae>=fe)return-1;if(x>=N)return 1;if(x>>>=0,N>>>=0,ae>>>=0,fe>>>=0,this===b)return 0;for(var ue=fe-ae,be=N-x,Fe=Math.min(ue,be),Se=this.slice(ae,fe),Pe=b.slice(x,N),je=0;je<Fe;++je)if(Se[je]!==Pe[je]){ue=Se[je],be=Pe[je];break}return ue<be?-1:be<ue?1:0};function j(U,b,x,N,ae){if(U.length===0)return-1;if(typeof x=="string"?(N=x,x=0):x>2147483647?x=2147483647:x<-2147483648&&(x=-2147483648),x=+x,P(x)&&(x=ae?0:U.length-1),x<0&&(x=U.length+x),x>=U.length){if(ae)return-1;x=U.length-1}else if(x<0)if(ae)x=0;else return-1;if(typeof b=="string"&&(b=s.from(b,N)),s.isBuffer(b))return b.length===0?-1:R(U,b,x,N,ae);if(typeof b=="number")return b=b&255,typeof Uint8Array.prototype.indexOf=="function"?ae?Uint8Array.prototype.indexOf.call(U,b,x):Uint8Array.prototype.lastIndexOf.call(U,b,x):R(U,[b],x,N,ae);throw new TypeError("val must be string, number or Buffer")}function R(U,b,x,N,ae){var fe=1,ue=U.length,be=b.length;if(N!==void 0&&(N=String(N).toLowerCase(),N==="ucs2"||N==="ucs-2"||N==="utf16le"||N==="utf-16le")){if(U.length<2||b.length<2)return-1;fe=2,ue/=2,be/=2,x/=2}function Fe(et,ut){return fe===1?et[ut]:et.readUInt16BE(ut*fe)}var Se;if(ae){var Pe=-1;for(Se=x;Se<ue;Se++)if(Fe(U,Se)===Fe(b,Pe===-1?0:Se-Pe)){if(Pe===-1&&(Pe=Se),Se-Pe+1===be)return Pe*fe}else Pe!==-1&&(Se-=Se-Pe),Pe=-1}else for(x+be>ue&&(x=ue-be),Se=x;Se>=0;Se--){for(var je=!0,$e=0;$e<be;$e++)if(Fe(U,Se+$e)!==Fe(b,$e)){je=!1;break}if(je)return Se}return-1}s.prototype.includes=function(b,x,N){return this.indexOf(b,x,N)!==-1},s.prototype.indexOf=function(b,x,N){return j(this,b,x,N,!0)},s.prototype.lastIndexOf=function(b,x,N){return j(this,b,x,N,!1)};function D(U,b,x,N){x=Number(x)||0;var ae=U.length-x;N?(N=Number(N),N>ae&&(N=ae)):N=ae;var fe=b.length;N>fe/2&&(N=fe/2);for(var ue=0;ue<N;++ue){var be=parseInt(b.substr(ue*2,2),16);if(P(be))return ue;U[x+ue]=be}return ue}function Q(U,b,x,N){return te(L(b,U.length-x),U,x,N)}function J(U,b,x,N){return te(Z(b),U,x,N)}function M(U,b,x,N){return te($(b),U,x,N)}function S(U,b,x,N){return te(se(b,U.length-x),U,x,N)}s.prototype.write=function(b,x,N,ae){if(x===void 0)ae="utf8",N=this.length,x=0;else if(N===void 0&&typeof x=="string")ae=x,N=this.length,x=0;else if(isFinite(x))x=x>>>0,isFinite(N)?(N=N>>>0,ae===void 0&&(ae="utf8")):(ae=N,N=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var fe=this.length-x;if((N===void 0||N>fe)&&(N=fe),b.length>0&&(N<0||x<0)||x>this.length)throw new RangeError("Attempt to write outside buffer bounds");ae||(ae="utf8");for(var ue=!1;;)switch(ae){case"hex":return D(this,b,x,N);case"utf8":case"utf-8":return Q(this,b,x,N);case"ascii":case"latin1":case"binary":return J(this,b,x,N);case"base64":return M(this,b,x,N);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,b,x,N);default:if(ue)throw new TypeError("Unknown encoding: "+ae);ae=(""+ae).toLowerCase(),ue=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function K(U,b,x){return b===0&&x===U.length?e.fromByteArray(U):e.fromByteArray(U.slice(b,x))}function F(U,b,x){x=Math.min(U.length,x);for(var N=[],ae=b;ae<x;){var fe=U[ae],ue=null,be=fe>239?4:fe>223?3:fe>191?2:1;if(ae+be<=x){var Fe,Se,Pe,je;switch(be){case 1:fe<128&&(ue=fe);break;case 2:Fe=U[ae+1],(Fe&192)===128&&(je=(fe&31)<<6|Fe&63,je>127&&(ue=je));break;case 3:Fe=U[ae+1],Se=U[ae+2],(Fe&192)===128&&(Se&192)===128&&(je=(fe&15)<<12|(Fe&63)<<6|Se&63,je>2047&&(je<55296||je>57343)&&(ue=je));break;case 4:Fe=U[ae+1],Se=U[ae+2],Pe=U[ae+3],(Fe&192)===128&&(Se&192)===128&&(Pe&192)===128&&(je=(fe&15)<<18|(Fe&63)<<12|(Se&63)<<6|Pe&63,je>65535&&je<1114112&&(ue=je))}}ue===null?(ue=65533,be=1):ue>65535&&(ue-=65536,N.push(ue>>>10&1023|55296),ue=56320|ue&1023),N.push(ue),ae+=be}return ee(N)}var ne=4096;function ee(U){var b=U.length;if(b<=ne)return String.fromCharCode.apply(String,U);for(var x="",N=0;N<b;)x+=String.fromCharCode.apply(String,U.slice(N,N+=ne));return x}function G(U,b,x){var N="";x=Math.min(U.length,x);for(var ae=b;ae<x;++ae)N+=String.fromCharCode(U[ae]&127);return N}function oe(U,b,x){var N="";x=Math.min(U.length,x);for(var ae=b;ae<x;++ae)N+=String.fromCharCode(U[ae]);return N}function q(U,b,x){var N=U.length;(!b||b<0)&&(b=0),(!x||x<0||x>N)&&(x=N);for(var ae="",fe=b;fe<x;++fe)ae+=de[U[fe]];return ae}function he(U,b,x){for(var N=U.slice(b,x),ae="",fe=0;fe<N.length-1;fe+=2)ae+=String.fromCharCode(N[fe]+N[fe+1]*256);return ae}s.prototype.slice=function(b,x){var N=this.length;b=~~b,x=x===void 0?N:~~x,b<0?(b+=N,b<0&&(b=0)):b>N&&(b=N),x<0?(x+=N,x<0&&(x=0)):x>N&&(x=N),x<b&&(x=b);var ae=this.subarray(b,x);return Object.setPrototypeOf(ae,s.prototype),ae};function ie(U,b,x){if(U%1!==0||U<0)throw new RangeError("offset is not uint");if(U+b>x)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(b,x,N){b=b>>>0,x=x>>>0,N||ie(b,x,this.length);for(var ae=this[b],fe=1,ue=0;++ue<x&&(fe*=256);)ae+=this[b+ue]*fe;return ae},s.prototype.readUintBE=s.prototype.readUIntBE=function(b,x,N){b=b>>>0,x=x>>>0,N||ie(b,x,this.length);for(var ae=this[b+--x],fe=1;x>0&&(fe*=256);)ae+=this[b+--x]*fe;return ae},s.prototype.readUint8=s.prototype.readUInt8=function(b,x){return b=b>>>0,x||ie(b,1,this.length),this[b]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(b,x){return b=b>>>0,x||ie(b,2,this.length),this[b]|this[b+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(b,x){return b=b>>>0,x||ie(b,2,this.length),this[b]<<8|this[b+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(b,x){return b=b>>>0,x||ie(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+this[b+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(b,x){return b=b>>>0,x||ie(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},s.prototype.readIntLE=function(b,x,N){b=b>>>0,x=x>>>0,N||ie(b,x,this.length);for(var ae=this[b],fe=1,ue=0;++ue<x&&(fe*=256);)ae+=this[b+ue]*fe;return fe*=128,ae>=fe&&(ae-=Math.pow(2,8*x)),ae},s.prototype.readIntBE=function(b,x,N){b=b>>>0,x=x>>>0,N||ie(b,x,this.length);for(var ae=x,fe=1,ue=this[b+--ae];ae>0&&(fe*=256);)ue+=this[b+--ae]*fe;return fe*=128,ue>=fe&&(ue-=Math.pow(2,8*x)),ue},s.prototype.readInt8=function(b,x){return b=b>>>0,x||ie(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},s.prototype.readInt16LE=function(b,x){b=b>>>0,x||ie(b,2,this.length);var N=this[b]|this[b+1]<<8;return N&32768?N|4294901760:N},s.prototype.readInt16BE=function(b,x){b=b>>>0,x||ie(b,2,this.length);var N=this[b+1]|this[b]<<8;return N&32768?N|4294901760:N},s.prototype.readInt32LE=function(b,x){return b=b>>>0,x||ie(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},s.prototype.readInt32BE=function(b,x){return b=b>>>0,x||ie(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},s.prototype.readFloatLE=function(b,x){return b=b>>>0,x||ie(b,4,this.length),t.read(this,b,!0,23,4)},s.prototype.readFloatBE=function(b,x){return b=b>>>0,x||ie(b,4,this.length),t.read(this,b,!1,23,4)},s.prototype.readDoubleLE=function(b,x){return b=b>>>0,x||ie(b,8,this.length),t.read(this,b,!0,52,8)},s.prototype.readDoubleBE=function(b,x){return b=b>>>0,x||ie(b,8,this.length),t.read(this,b,!1,52,8)};function E(U,b,x,N,ae,fe){if(!s.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>ae||b<fe)throw new RangeError('"value" argument is out of bounds');if(x+N>U.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(b,x,N,ae){if(b=+b,x=x>>>0,N=N>>>0,!ae){var fe=Math.pow(2,8*N)-1;E(this,b,x,N,fe,0)}var ue=1,be=0;for(this[x]=b&255;++be<N&&(ue*=256);)this[x+be]=b/ue&255;return x+N},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(b,x,N,ae){if(b=+b,x=x>>>0,N=N>>>0,!ae){var fe=Math.pow(2,8*N)-1;E(this,b,x,N,fe,0)}var ue=N-1,be=1;for(this[x+ue]=b&255;--ue>=0&&(be*=256);)this[x+ue]=b/be&255;return x+N},s.prototype.writeUint8=s.prototype.writeUInt8=function(b,x,N){return b=+b,x=x>>>0,N||E(this,b,x,1,255,0),this[x]=b&255,x+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(b,x,N){return b=+b,x=x>>>0,N||E(this,b,x,2,65535,0),this[x]=b&255,this[x+1]=b>>>8,x+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(b,x,N){return b=+b,x=x>>>0,N||E(this,b,x,2,65535,0),this[x]=b>>>8,this[x+1]=b&255,x+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(b,x,N){return b=+b,x=x>>>0,N||E(this,b,x,4,4294967295,0),this[x+3]=b>>>24,this[x+2]=b>>>16,this[x+1]=b>>>8,this[x]=b&255,x+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(b,x,N){return b=+b,x=x>>>0,N||E(this,b,x,4,4294967295,0),this[x]=b>>>24,this[x+1]=b>>>16,this[x+2]=b>>>8,this[x+3]=b&255,x+4},s.prototype.writeIntLE=function(b,x,N,ae){if(b=+b,x=x>>>0,!ae){var fe=Math.pow(2,8*N-1);E(this,b,x,N,fe-1,-fe)}var ue=0,be=1,Fe=0;for(this[x]=b&255;++ue<N&&(be*=256);)b<0&&Fe===0&&this[x+ue-1]!==0&&(Fe=1),this[x+ue]=(b/be>>0)-Fe&255;return x+N},s.prototype.writeIntBE=function(b,x,N,ae){if(b=+b,x=x>>>0,!ae){var fe=Math.pow(2,8*N-1);E(this,b,x,N,fe-1,-fe)}var ue=N-1,be=1,Fe=0;for(this[x+ue]=b&255;--ue>=0&&(be*=256);)b<0&&Fe===0&&this[x+ue+1]!==0&&(Fe=1),this[x+ue]=(b/be>>0)-Fe&255;return x+N},s.prototype.writeInt8=function(b,x,N){return b=+b,x=x>>>0,N||E(this,b,x,1,127,-128),b<0&&(b=255+b+1),this[x]=b&255,x+1},s.prototype.writeInt16LE=function(b,x,N){return b=+b,x=x>>>0,N||E(this,b,x,2,32767,-32768),this[x]=b&255,this[x+1]=b>>>8,x+2},s.prototype.writeInt16BE=function(b,x,N){return b=+b,x=x>>>0,N||E(this,b,x,2,32767,-32768),this[x]=b>>>8,this[x+1]=b&255,x+2},s.prototype.writeInt32LE=function(b,x,N){return b=+b,x=x>>>0,N||E(this,b,x,4,2147483647,-2147483648),this[x]=b&255,this[x+1]=b>>>8,this[x+2]=b>>>16,this[x+3]=b>>>24,x+4},s.prototype.writeInt32BE=function(b,x,N){return b=+b,x=x>>>0,N||E(this,b,x,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[x]=b>>>24,this[x+1]=b>>>16,this[x+2]=b>>>8,this[x+3]=b&255,x+4};function k(U,b,x,N,ae,fe){if(x+N>U.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("Index out of range")}function V(U,b,x,N,ae){return b=+b,x=x>>>0,ae||k(U,b,x,4),t.write(U,b,x,N,23,4),x+4}s.prototype.writeFloatLE=function(b,x,N){return V(this,b,x,!0,N)},s.prototype.writeFloatBE=function(b,x,N){return V(this,b,x,!1,N)};function W(U,b,x,N,ae){return b=+b,x=x>>>0,ae||k(U,b,x,8),t.write(U,b,x,N,52,8),x+8}s.prototype.writeDoubleLE=function(b,x,N){return W(this,b,x,!0,N)},s.prototype.writeDoubleBE=function(b,x,N){return W(this,b,x,!1,N)},s.prototype.copy=function(b,x,N,ae){if(!s.isBuffer(b))throw new TypeError("argument should be a Buffer");if(N||(N=0),!ae&&ae!==0&&(ae=this.length),x>=b.length&&(x=b.length),x||(x=0),ae>0&&ae<N&&(ae=N),ae===N||b.length===0||this.length===0)return 0;if(x<0)throw new RangeError("targetStart out of bounds");if(N<0||N>=this.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("sourceEnd out of bounds");ae>this.length&&(ae=this.length),b.length-x<ae-N&&(ae=b.length-x+N);var fe=ae-N;return this===b&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(x,N,ae):Uint8Array.prototype.set.call(b,this.subarray(N,ae),x),fe},s.prototype.fill=function(b,x,N,ae){if(typeof b=="string"){if(typeof x=="string"?(ae=x,x=0,N=this.length):typeof N=="string"&&(ae=N,N=this.length),ae!==void 0&&typeof ae!="string")throw new TypeError("encoding must be a string");if(typeof ae=="string"&&!s.isEncoding(ae))throw new TypeError("Unknown encoding: "+ae);if(b.length===1){var fe=b.charCodeAt(0);(ae==="utf8"&&fe<128||ae==="latin1")&&(b=fe)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(x<0||this.length<x||this.length<N)throw new RangeError("Out of range index");if(N<=x)return this;x=x>>>0,N=N===void 0?this.length:N>>>0,b||(b=0);var ue;if(typeof b=="number")for(ue=x;ue<N;++ue)this[ue]=b;else{var be=s.isBuffer(b)?b:s.from(b,ae),Fe=be.length;if(Fe===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(ue=0;ue<N-x;++ue)this[ue+x]=be[ue%Fe]}return this};var z=/[^+/0-9A-Za-z-_]/g;function _(U){if(U=U.split("=")[0],U=U.trim().replace(z,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function L(U,b){b=b||1/0;for(var x,N=U.length,ae=null,fe=[],ue=0;ue<N;++ue){if(x=U.charCodeAt(ue),x>55295&&x<57344){if(!ae){if(x>56319){(b-=3)>-1&&fe.push(239,191,189);continue}else if(ue+1===N){(b-=3)>-1&&fe.push(239,191,189);continue}ae=x;continue}if(x<56320){(b-=3)>-1&&fe.push(239,191,189),ae=x;continue}x=(ae-55296<<10|x-56320)+65536}else ae&&(b-=3)>-1&&fe.push(239,191,189);if(ae=null,x<128){if((b-=1)<0)break;fe.push(x)}else if(x<2048){if((b-=2)<0)break;fe.push(x>>6|192,x&63|128)}else if(x<65536){if((b-=3)<0)break;fe.push(x>>12|224,x>>6&63|128,x&63|128)}else if(x<1114112){if((b-=4)<0)break;fe.push(x>>18|240,x>>12&63|128,x>>6&63|128,x&63|128)}else throw new Error("Invalid code point")}return fe}function Z(U){for(var b=[],x=0;x<U.length;++x)b.push(U.charCodeAt(x)&255);return b}function se(U,b){for(var x,N,ae,fe=[],ue=0;ue<U.length&&!((b-=2)<0);++ue)x=U.charCodeAt(ue),N=x>>8,ae=x%256,fe.push(ae),fe.push(N);return fe}function $(U){return e.toByteArray(_(U))}function te(U,b,x,N){for(var ae=0;ae<N&&!(ae+x>=b.length||ae>=U.length);++ae)b[ae+x]=U[ae];return ae}function me(U,b){return U instanceof b||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===b.name}function P(U){return U!==U}var de=function(){for(var U="0123456789abcdef",b=new Array(256),x=0;x<16;++x)for(var N=x*16,ae=0;ae<16;++ae)b[N+ae]=U[x]+U[ae];return b}()}(hd)),hd}var fd={},dd={},pd,Jw;function Zw(){return Jw||(Jw=1,pd=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var A=42;e[t]=A;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==A||a.enumerable!==!0)return!1}return!0}),pd}var gd,e1;function md(){if(e1)return gd;e1=1;var r=Zw();return gd=function(){return r()&&!!Symbol.toStringTag},gd}var vd,t1;function bF(){if(t1)return vd;t1=1;var r=typeof Symbol<"u"&&Symbol,e=Zw();return vd=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},vd}var wd,r1;function xF(){if(r1)return wd;r1=1;var r={foo:{}},e=Object;return wd=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof e)},wd}var yd,n1;function CF(){if(n1)return yd;n1=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",A=function(o,l){for(var u=[],h=0;h<o.length;h+=1)u[h]=o[h];for(var d=0;d<l.length;d+=1)u[d+o.length]=l[d];return u},i=function(o,l){for(var u=[],h=l,d=0;h<o.length;h+=1,d+=1)u[d]=o[h];return u},a=function(s,o){for(var l="",u=0;u<s.length;u+=1)l+=s[u],u+1<s.length&&(l+=o);return l};return yd=function(o){var l=this;if(typeof l!="function"||e.apply(l)!==n)throw new TypeError(r+l);for(var u=i(arguments,1),h,d=function(){if(this instanceof h){var g=l.apply(this,A(u,arguments));return Object(g)===g?g:this}return l.apply(o,A(u,arguments))},c=t(0,l.length-u.length),p=[],m=0;m<c;m++)p[m]="$"+m;if(h=Function("binder","return function ("+a(p,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var y=function(){};y.prototype=l.prototype,h.prototype=new y,y.prototype=null}return h},yd}var Bd,A1;function bd(){if(A1)return Bd;A1=1;var r=CF();return Bd=Function.prototype.bind||r,Bd}var xd,i1;function EF(){if(i1)return xd;i1=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=bd();return xd=t.call(r,e),xd}var Cd,a1;function xs(){if(a1)return Cd;a1=1;var r,e=SyntaxError,t=Function,n=TypeError,A=function(S){try{return t('"use strict"; return ('+S+").constructor;")()}catch{}},i=Object.getOwnPropertyDescriptor;if(i)try{i({},"")}catch{i=null}var a=function(){throw new n},s=i?function(){try{return arguments.callee,a}catch{try{return i(arguments,"callee").get}catch{return a}}}():a,o=bF()(),l=xF()(),u=Object.getPrototypeOf||(l?function(S){return S.__proto__}:null),h={},d=typeof Uint8Array>"u"||!u?r:u(Uint8Array),c={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":o&&u?u([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":t,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":o&&u?u(u([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!o||!u?r:u(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!o||!u?r:u(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":o&&u?u(""[Symbol.iterator]()):r,"%Symbol%":o?Symbol:r,"%SyntaxError%":e,"%ThrowTypeError%":s,"%TypedArray%":d,"%TypeError%":n,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet};if(u)try{null.error}catch(S){var p=u(u(S));c["%Error.prototype%"]=p}var m=function S(K){var F;if(K==="%AsyncFunction%")F=A("async function () {}");else if(K==="%GeneratorFunction%")F=A("function* () {}");else if(K==="%AsyncGeneratorFunction%")F=A("async function* () {}");else if(K==="%AsyncGenerator%"){var ne=S("%AsyncGeneratorFunction%");ne&&(F=ne.prototype)}else if(K==="%AsyncIteratorPrototype%"){var ee=S("%AsyncGenerator%");ee&&u&&(F=u(ee.prototype))}return c[K]=F,F},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=bd(),w=EF(),B=g.call(Function.call,Array.prototype.concat),I=g.call(Function.apply,Array.prototype.splice),O=g.call(Function.call,String.prototype.replace),j=g.call(Function.call,String.prototype.slice),R=g.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Q=/\\(\\)?/g,J=function(K){var F=j(K,0,1),ne=j(K,-1);if(F==="%"&&ne!=="%")throw new e("invalid intrinsic syntax, expected closing `%`");if(ne==="%"&&F!=="%")throw new e("invalid intrinsic syntax, expected opening `%`");var ee=[];return O(K,D,function(G,oe,q,he){ee[ee.length]=q?O(he,Q,"$1"):oe||G}),ee},M=function(K,F){var ne=K,ee;if(w(y,ne)&&(ee=y[ne],ne="%"+ee[0]+"%"),w(c,ne)){var G=c[ne];if(G===h&&(G=m(ne)),typeof G>"u"&&!F)throw new n("intrinsic "+K+" exists, but is not available. Please file an issue!");return{alias:ee,name:ne,value:G}}throw new e("intrinsic "+K+" does not exist!")};return Cd=function(K,F){if(typeof K!="string"||K.length===0)throw new n("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof F!="boolean")throw new n('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,K)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ne=J(K),ee=ne.length>0?ne[0]:"",G=M("%"+ee+"%",F),oe=G.name,q=G.value,he=!1,ie=G.alias;ie&&(ee=ie[0],I(ne,B([0,1],ie)));for(var E=1,k=!0;E<ne.length;E+=1){var V=ne[E],W=j(V,0,1),z=j(V,-1);if((W==='"'||W==="'"||W==="`"||z==='"'||z==="'"||z==="`")&&W!==z)throw new e("property names with quotes must have matching quotes");if((V==="constructor"||!k)&&(he=!0),ee+="."+V,oe="%"+ee+"%",w(c,oe))q=c[oe];else if(q!=null){if(!(V in q)){if(!F)throw new n("base intrinsic for "+K+" exists, but the property is not available.");return}if(i&&E+1>=ne.length){var _=i(q,V);k=!!_,k&&"get"in _&&!("originalValue"in _.get)?q=_.get:q=q[V]}else k=w(q,V),q=q[V];k&&!he&&(c[oe]=q)}}return q},Cd}var Ed={exports:{}},Sd,s1;function o1(){if(s1)return Sd;s1=1;var r=xs(),e=r("%Object.defineProperty%",!0),t=function(){if(e)try{return e({},"a",{value:1}),!0}catch{return!1}return!1};return t.hasArrayLengthDefineBug=function(){if(!t())return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Sd=t,Sd}var Fd,l1;function Ud(){if(l1)return Fd;l1=1;var r=xs(),e=r("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch{e=null}return Fd=e,Fd}var Id,u1;function SF(){if(u1)return Id;u1=1;var r=o1()(),e=xs(),t=r&&e("%Object.defineProperty%",!0);if(t)try{t({},"a",{value:1})}catch{t=!1}var n=e("%SyntaxError%"),A=e("%TypeError%"),i=Ud();return Id=function(s,o,l){if(!s||typeof s!="object"&&typeof s!="function")throw new A("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new A("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new A("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new A("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new A("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new A("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,p=!!i&&i(s,o);if(t)t(s,o,{configurable:d===null&&p?p.configurable:!d,enumerable:u===null&&p?p.enumerable:!u,value:l,writable:h===null&&p?p.writable:!h});else if(c||!u&&!h&&!d)s[o]=l;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Id}var Td,c1;function FF(){if(c1)return Td;c1=1;var r=xs(),e=SF(),t=o1()(),n=Ud(),A=r("%TypeError%"),i=r("%Math.floor%");return Td=function(s,o){if(typeof s!="function")throw new A("`fn` is not a function");if(typeof o!="number"||o<0||o>4294967295||i(o)!==o)throw new A("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],u=!0,h=!0;if("length"in s&&n){var d=n(s,"length");d&&!d.configurable&&(u=!1),d&&!d.writable&&(h=!1)}return(u||h||!l)&&(t?e(s,"length",o,!0,!0):e(s,"length",o)),s},Td}var h1;function f1(){return h1||(h1=1,function(r){var e=bd(),t=xs(),n=FF(),A=t("%TypeError%"),i=t("%Function.prototype.apply%"),a=t("%Function.prototype.call%"),s=t("%Reflect.apply%",!0)||e.call(a,i),o=t("%Object.defineProperty%",!0),l=t("%Math.max%");if(o)try{o({},"a",{value:1})}catch{o=null}r.exports=function(d){if(typeof d!="function")throw new A("a function is required");var c=s(e,a,arguments);return n(c,1+l(0,d.length-(arguments.length-1)),!0)};var u=function(){return s(e,i,arguments)};o?o(r.exports,"apply",{value:u}):r.exports.apply=u}(Ed)),Ed.exports}var _d,d1;function p1(){if(d1)return _d;d1=1;var r=xs(),e=f1(),t=e(r("String.prototype.indexOf"));return _d=function(A,i){var a=r(A,!!i);return typeof a=="function"&&t(A,".prototype.")>-1?e(a):a},_d}var Ld,g1;function UF(){if(g1)return Ld;g1=1;var r=md()(),e=p1(),t=e("Object.prototype.toString"),n=function(s){return r&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:t(s)==="[object Arguments]"},A=function(s){return n(s)?!0:s!==null&&typeof s=="object"&&typeof s.length=="number"&&s.length>=0&&t(s)!=="[object Array]"&&t(s.callee)==="[object Function]"},i=function(){return n(arguments)}();return n.isLegacyArguments=A,Ld=i?n:A,Ld}var Qd,m1;function IF(){if(m1)return Qd;m1=1;var r=Object.prototype.toString,e=Function.prototype.toString,t=/^\s*(?:function)?\*/,n=md()(),A=Object.getPrototypeOf,i=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},a;return Qd=function(o){if(typeof o!="function")return!1;if(t.test(e.call(o)))return!0;if(!n){var l=r.call(o);return l==="[object GeneratorFunction]"}if(!A)return!1;if(typeof a>"u"){var u=i();a=u?A(u):!1}return A(o)===a},Qd}var Nd,v1;function TF(){if(v1)return Nd;v1=1;var r=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,n;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},e(function(){throw 42},null,t)}catch(w){w!==n&&(e=null)}else e=null;var A=/^\s*class\b/,i=function(B){try{var I=r.call(B);return A.test(I)}catch{return!1}},a=function(B){try{return i(B)?!1:(r.call(B),!0)}catch{return!1}},s=Object.prototype.toString,o="[object Object]",l="[object Function]",u="[object GeneratorFunction]",h="[object HTMLAllCollection]",d="[object HTML document.all class]",c="[object HTMLCollection]",p=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var g=document.all;s.call(g)===s.call(document.all)&&(y=function(B){if((m||!B)&&(typeof B>"u"||typeof B=="object"))try{var I=s.call(B);return(I===h||I===d||I===c||I===o)&&B("")==null}catch{}return!1})}return Nd=e?function(B){if(y(B))return!0;if(!B||typeof B!="function"&&typeof B!="object")return!1;try{e(B,null,t)}catch(I){if(I!==n)return!1}return!i(B)&&a(B)}:function(B){if(y(B))return!0;if(!B||typeof B!="function"&&typeof B!="object")return!1;if(p)return a(B);if(i(B))return!1;var I=s.call(B);return I!==l&&I!==u&&!/^\[object HTML/.test(I)?!1:a(B)},Nd}var Od,w1;function _F(){if(w1)return Od;w1=1;var r=TF(),e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=function(o,l,u){for(var h=0,d=o.length;h<d;h++)t.call(o,h)&&(u==null?l(o[h],h,o):l.call(u,o[h],h,o))},A=function(o,l,u){for(var h=0,d=o.length;h<d;h++)u==null?l(o.charAt(h),h,o):l.call(u,o.charAt(h),h,o)},i=function(o,l,u){for(var h in o)t.call(o,h)&&(u==null?l(o[h],h,o):l.call(u,o[h],h,o))},a=function(o,l,u){if(!r(l))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=u),e.call(o)==="[object Array]"?n(o,l,h):typeof o=="string"?A(o,l,h):i(o,l,h)};return Od=a,Od}var Pd,y1;function LF(){if(y1)return Pd;y1=1;var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e=typeof globalThis>"u"?GA:globalThis;return Pd=function(){for(var n=[],A=0;A<r.length;A++)typeof e[r[A]]=="function"&&(n[n.length]=r[A]);return n},Pd}var Rd,B1;function b1(){if(B1)return Rd;B1=1;var r=_F(),e=LF(),t=f1(),n=p1(),A=Ud(),i=n("Object.prototype.toString"),a=md()(),s=typeof globalThis>"u"?GA:globalThis,o=e(),l=n("String.prototype.slice"),u=Object.getPrototypeOf,h=n("Array.prototype.indexOf",!0)||function(y,g){for(var w=0;w<y.length;w+=1)if(y[w]===g)return w;return-1},d={__proto__:null};a&&A&&u?r(o,function(m){var y=new s[m];if(Symbol.toStringTag in y){var g=u(y),w=A(g,Symbol.toStringTag);if(!w){var B=u(g);w=A(B,Symbol.toStringTag)}d["$"+m]=t(w.get)}}):r(o,function(m){var y=new s[m],g=y.slice||y.set;g&&(d["$"+m]=t(g))});var c=function(y){var g=!1;return r(d,function(w,B){if(!g)try{"$"+w(y)===B&&(g=l(B,1))}catch{}}),g},p=function(y){var g=!1;return r(d,function(w,B){if(!g)try{w(y),g=l(B,1)}catch{}}),g};return Rd=function(y){if(!y||typeof y!="object")return!1;if(!a){var g=l(i(y),8,-1);return h(o,g)>-1?g:g!=="Object"?!1:p(y)}return A?c(y):null},Rd}var Dd,x1;function QF(){if(x1)return Dd;x1=1;var r=b1();return Dd=function(t){return!!r(t)},Dd}var C1;function NF(){return C1||(C1=1,function(r){var e=UF(),t=IF(),n=b1(),A=QF();function i(N){return N.call.bind(N)}var a=typeof BigInt<"u",s=typeof Symbol<"u",o=i(Object.prototype.toString),l=i(Number.prototype.valueOf),u=i(String.prototype.valueOf),h=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(s)var c=i(Symbol.prototype.valueOf);function p(N,ae){if(typeof N!="object")return!1;try{return ae(N),!0}catch{return!1}}r.isArgumentsObject=e,r.isGeneratorFunction=t,r.isTypedArray=A;function m(N){return typeof Promise<"u"&&N instanceof Promise||N!==null&&typeof N=="object"&&typeof N.then=="function"&&typeof N.catch=="function"}r.isPromise=m;function y(N){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(N):A(N)||k(N)}r.isArrayBufferView=y;function g(N){return n(N)==="Uint8Array"}r.isUint8Array=g;function w(N){return n(N)==="Uint8ClampedArray"}r.isUint8ClampedArray=w;function B(N){return n(N)==="Uint16Array"}r.isUint16Array=B;function I(N){return n(N)==="Uint32Array"}r.isUint32Array=I;function O(N){return n(N)==="Int8Array"}r.isInt8Array=O;function j(N){return n(N)==="Int16Array"}r.isInt16Array=j;function R(N){return n(N)==="Int32Array"}r.isInt32Array=R;function D(N){return n(N)==="Float32Array"}r.isFloat32Array=D;function Q(N){return n(N)==="Float64Array"}r.isFloat64Array=Q;function J(N){return n(N)==="BigInt64Array"}r.isBigInt64Array=J;function M(N){return n(N)==="BigUint64Array"}r.isBigUint64Array=M;function S(N){return o(N)==="[object Map]"}S.working=typeof Map<"u"&&S(new Map);function K(N){return typeof Map>"u"?!1:S.working?S(N):N instanceof Map}r.isMap=K;function F(N){return o(N)==="[object Set]"}F.working=typeof Set<"u"&&F(new Set);function ne(N){return typeof Set>"u"?!1:F.working?F(N):N instanceof Set}r.isSet=ne;function ee(N){return o(N)==="[object WeakMap]"}ee.working=typeof WeakMap<"u"&&ee(new WeakMap);function G(N){return typeof WeakMap>"u"?!1:ee.working?ee(N):N instanceof WeakMap}r.isWeakMap=G;function oe(N){return o(N)==="[object WeakSet]"}oe.working=typeof WeakSet<"u"&&oe(new WeakSet);function q(N){return oe(N)}r.isWeakSet=q;function he(N){return o(N)==="[object ArrayBuffer]"}he.working=typeof ArrayBuffer<"u"&&he(new ArrayBuffer);function ie(N){return typeof ArrayBuffer>"u"?!1:he.working?he(N):N instanceof ArrayBuffer}r.isArrayBuffer=ie;function E(N){return o(N)==="[object DataView]"}E.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&E(new DataView(new ArrayBuffer(1),0,1));function k(N){return typeof DataView>"u"?!1:E.working?E(N):N instanceof DataView}r.isDataView=k;var V=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function W(N){return o(N)==="[object SharedArrayBuffer]"}function z(N){return typeof V>"u"?!1:(typeof W.working>"u"&&(W.working=W(new V)),W.working?W(N):N instanceof V)}r.isSharedArrayBuffer=z;function _(N){return o(N)==="[object AsyncFunction]"}r.isAsyncFunction=_;function L(N){return o(N)==="[object Map Iterator]"}r.isMapIterator=L;function Z(N){return o(N)==="[object Set Iterator]"}r.isSetIterator=Z;function se(N){return o(N)==="[object Generator]"}r.isGeneratorObject=se;function $(N){return o(N)==="[object WebAssembly.Module]"}r.isWebAssemblyCompiledModule=$;function te(N){return p(N,l)}r.isNumberObject=te;function me(N){return p(N,u)}r.isStringObject=me;function P(N){return p(N,h)}r.isBooleanObject=P;function de(N){return a&&p(N,d)}r.isBigIntObject=de;function U(N){return s&&p(N,c)}r.isSymbolObject=U;function b(N){return te(N)||me(N)||P(N)||de(N)||U(N)}r.isBoxedPrimitive=b;function x(N){return typeof Uint8Array<"u"&&(ie(N)||z(N))}r.isAnyArrayBuffer=x,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(N){Object.defineProperty(r,N,{enumerable:!1,value:function(){throw new Error(N+" is not supported in userland")}})})}(dd)),dd}var kd,E1;function OF(){return E1||(E1=1,kd=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),kd}var S1;function F1(){return S1||(S1=1,function(r){var e=Object.getOwnPropertyDescriptors||function(k){for(var V=Object.keys(k),W={},z=0;z<V.length;z++)W[V[z]]=Object.getOwnPropertyDescriptor(k,V[z]);return W},t=/%[sdj%]/g;r.format=function(E){if(!O(E)){for(var k=[],V=0;V<arguments.length;V++)k.push(a(arguments[V]));return k.join(" ")}for(var V=1,W=arguments,z=W.length,_=String(E).replace(t,function(Z){if(Z==="%%")return"%";if(V>=z)return Z;switch(Z){case"%s":return String(W[V++]);case"%d":return Number(W[V++]);case"%j":try{return JSON.stringify(W[V++])}catch{return"[Circular]"}default:return Z}}),L=W[V];V<z;L=W[++V])w(L)||!Q(L)?_+=" "+L:_+=" "+a(L);return _},r.deprecate=function(E,k){if(typeof Ut<"u"&&Ut.noDeprecation===!0)return E;if(typeof Ut>"u")return function(){return r.deprecate(E,k).apply(this,arguments)};var V=!1;function W(){if(!V){if(Ut.throwDeprecation)throw new Error(k);Ut.traceDeprecation?console.trace(k):console.error(k),V=!0}return E.apply(this,arguments)}return W};var n={},A=/^$/;if(Ut.env.NODE_DEBUG){var i=Ut.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),A=new RegExp("^"+i+"$","i")}r.debuglog=function(E){if(E=E.toUpperCase(),!n[E])if(A.test(E)){var k=Ut.pid;n[E]=function(){var V=r.format.apply(r,arguments);console.error("%s %d: %s",E,k,V)}}else n[E]=function(){};return n[E]};function a(E,k){var V={seen:[],stylize:o};return arguments.length>=3&&(V.depth=arguments[2]),arguments.length>=4&&(V.colors=arguments[3]),g(k)?V.showHidden=k:k&&r._extend(V,k),R(V.showHidden)&&(V.showHidden=!1),R(V.depth)&&(V.depth=2),R(V.colors)&&(V.colors=!1),R(V.customInspect)&&(V.customInspect=!0),V.colors&&(V.stylize=s),u(V,E,V.depth)}r.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(E,k){var V=a.styles[k];return V?"\x1B["+a.colors[V][0]+"m"+E+"\x1B["+a.colors[V][1]+"m":E}function o(E,k){return E}function l(E){var k={};return E.forEach(function(V,W){k[V]=!0}),k}function u(E,k,V){if(E.customInspect&&k&&S(k.inspect)&&k.inspect!==r.inspect&&!(k.constructor&&k.constructor.prototype===k)){var W=k.inspect(V,E);return O(W)||(W=u(E,W,V)),W}var z=h(E,k);if(z)return z;var _=Object.keys(k),L=l(_);if(E.showHidden&&(_=Object.getOwnPropertyNames(k)),M(k)&&(_.indexOf("message")>=0||_.indexOf("description")>=0))return d(k);if(_.length===0){if(S(k)){var Z=k.name?": "+k.name:"";return E.stylize("[Function"+Z+"]","special")}if(D(k))return E.stylize(RegExp.prototype.toString.call(k),"regexp");if(J(k))return E.stylize(Date.prototype.toString.call(k),"date");if(M(k))return d(k)}var se="",$=!1,te=["{","}"];if(y(k)&&($=!0,te=["[","]"]),S(k)){var me=k.name?": "+k.name:"";se=" [Function"+me+"]"}if(D(k)&&(se=" "+RegExp.prototype.toString.call(k)),J(k)&&(se=" "+Date.prototype.toUTCString.call(k)),M(k)&&(se=" "+d(k)),_.length===0&&(!$||k.length==0))return te[0]+se+te[1];if(V<0)return D(k)?E.stylize(RegExp.prototype.toString.call(k),"regexp"):E.stylize("[Object]","special");E.seen.push(k);var P;return $?P=c(E,k,V,L,_):P=_.map(function(de){return p(E,k,V,L,de,$)}),E.seen.pop(),m(P,se,te)}function h(E,k){if(R(k))return E.stylize("undefined","undefined");if(O(k)){var V="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return E.stylize(V,"string")}if(I(k))return E.stylize(""+k,"number");if(g(k))return E.stylize(""+k,"boolean");if(w(k))return E.stylize("null","null")}function d(E){return"["+Error.prototype.toString.call(E)+"]"}function c(E,k,V,W,z){for(var _=[],L=0,Z=k.length;L<Z;++L)oe(k,String(L))?_.push(p(E,k,V,W,String(L),!0)):_.push("");return z.forEach(function(se){se.match(/^\d+$/)||_.push(p(E,k,V,W,se,!0))}),_}function p(E,k,V,W,z,_){var L,Z,se;if(se=Object.getOwnPropertyDescriptor(k,z)||{value:k[z]},se.get?se.set?Z=E.stylize("[Getter/Setter]","special"):Z=E.stylize("[Getter]","special"):se.set&&(Z=E.stylize("[Setter]","special")),oe(W,z)||(L="["+z+"]"),Z||(E.seen.indexOf(se.value)<0?(w(V)?Z=u(E,se.value,null):Z=u(E,se.value,V-1),Z.indexOf(`
31
+ `)>-1&&(_?Z=Z.split(`
32
+ `).map(function($){return" "+$}).join(`
33
+ `).slice(2):Z=`
34
+ `+Z.split(`
35
+ `).map(function($){return" "+$}).join(`
36
+ `))):Z=E.stylize("[Circular]","special")),R(L)){if(_&&z.match(/^\d+$/))return Z;L=JSON.stringify(""+z),L.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(L=L.slice(1,-1),L=E.stylize(L,"name")):(L=L.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),L=E.stylize(L,"string"))}return L+": "+Z}function m(E,k,V){var W=E.reduce(function(z,_){return _.indexOf(`
37
+ `)>=0,z+_.replace(/\u001b\[\d\d?m/g,"").length+1},0);return W>60?V[0]+(k===""?"":k+`
38
+ `)+" "+E.join(`,
39
+ `)+" "+V[1]:V[0]+k+" "+E.join(", ")+" "+V[1]}r.types=NF();function y(E){return Array.isArray(E)}r.isArray=y;function g(E){return typeof E=="boolean"}r.isBoolean=g;function w(E){return E===null}r.isNull=w;function B(E){return E==null}r.isNullOrUndefined=B;function I(E){return typeof E=="number"}r.isNumber=I;function O(E){return typeof E=="string"}r.isString=O;function j(E){return typeof E=="symbol"}r.isSymbol=j;function R(E){return E===void 0}r.isUndefined=R;function D(E){return Q(E)&&F(E)==="[object RegExp]"}r.isRegExp=D,r.types.isRegExp=D;function Q(E){return typeof E=="object"&&E!==null}r.isObject=Q;function J(E){return Q(E)&&F(E)==="[object Date]"}r.isDate=J,r.types.isDate=J;function M(E){return Q(E)&&(F(E)==="[object Error]"||E instanceof Error)}r.isError=M,r.types.isNativeError=M;function S(E){return typeof E=="function"}r.isFunction=S;function K(E){return E===null||typeof E=="boolean"||typeof E=="number"||typeof E=="string"||typeof E=="symbol"||typeof E>"u"}r.isPrimitive=K,r.isBuffer=OF();function F(E){return Object.prototype.toString.call(E)}function ne(E){return E<10?"0"+E.toString(10):E.toString(10)}var ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function G(){var E=new Date,k=[ne(E.getHours()),ne(E.getMinutes()),ne(E.getSeconds())].join(":");return[E.getDate(),ee[E.getMonth()],k].join(" ")}r.log=function(){console.log("%s - %s",G(),r.format.apply(r,arguments))},r.inherits=Fa,r._extend=function(E,k){if(!k||!Q(k))return E;for(var V=Object.keys(k),W=V.length;W--;)E[V[W]]=k[V[W]];return E};function oe(E,k){return Object.prototype.hasOwnProperty.call(E,k)}var q=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;r.promisify=function(k){if(typeof k!="function")throw new TypeError('The "original" argument must be of type Function');if(q&&k[q]){var V=k[q];if(typeof V!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(V,q,{value:V,enumerable:!1,writable:!1,configurable:!0}),V}function V(){for(var W,z,_=new Promise(function(se,$){W=se,z=$}),L=[],Z=0;Z<arguments.length;Z++)L.push(arguments[Z]);L.push(function(se,$){se?z(se):W($)});try{k.apply(this,L)}catch(se){z(se)}return _}return Object.setPrototypeOf(V,Object.getPrototypeOf(k)),q&&Object.defineProperty(V,q,{value:V,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(V,e(k))},r.promisify.custom=q;function he(E,k){if(!E){var V=new Error("Promise was rejected with a falsy value");V.reason=E,E=V}return k(E)}function ie(E){if(typeof E!="function")throw new TypeError('The "original" argument must be of type Function');function k(){for(var V=[],W=0;W<arguments.length;W++)V.push(arguments[W]);var z=V.pop();if(typeof z!="function")throw new TypeError("The last argument must be of type Function");var _=this,L=function(){return z.apply(_,arguments)};E.apply(this,V).then(function(Z){Ut.nextTick(L.bind(null,null,Z))},function(Z){Ut.nextTick(he.bind(null,Z,L))})}return Object.setPrototypeOf(k,Object.getPrototypeOf(E)),Object.defineProperties(k,e(E)),k}r.callbackify=ie}(fd)),fd}var Hd,U1;function PF(){if(U1)return Hd;U1=1;function r(d,c){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);c&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(d,y).enumerable})),p.push.apply(p,m)}return p}function e(d){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?r(Object(p),!0).forEach(function(m){t(d,m,p[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):r(Object(p)).forEach(function(m){Object.defineProperty(d,m,Object.getOwnPropertyDescriptor(p,m))})}return d}function t(d,c,p){return c in d?Object.defineProperty(d,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[c]=p,d}function n(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function A(d,c){for(var p=0;p<c.length;p++){var m=c[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}function i(d,c,p){return c&&A(d.prototype,c),d}var a=Nu(),s=a.Buffer,o=F1(),l=o.inspect,u=l&&l.custom||"inspect";function h(d,c,p){s.prototype.copy.call(d,c,p)}return Hd=function(){function d(){n(this,d),this.head=null,this.tail=null,this.length=0}return i(d,[{key:"push",value:function(p){var m={data:p,next:null};this.length>0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(p){var m={data:p,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length}},{key:"shift",value:function(){if(this.length!==0){var p=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,p}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(p){if(this.length===0)return"";for(var m=this.head,y=""+m.data;m=m.next;)y+=p+m.data;return y}},{key:"concat",value:function(p){if(this.length===0)return s.alloc(0);for(var m=s.allocUnsafe(p>>>0),y=this.head,g=0;y;)h(y.data,m,g),g+=y.data.length,y=y.next;return m}},{key:"consume",value:function(p,m){var y;return p<this.head.data.length?(y=this.head.data.slice(0,p),this.head.data=this.head.data.slice(p)):p===this.head.data.length?y=this.shift():y=m?this._getString(p):this._getBuffer(p),y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(p){var m=this.head,y=1,g=m.data;for(p-=g.length;m=m.next;){var w=m.data,B=p>w.length?w.length:p;if(B===w.length?g+=w:g+=w.slice(0,p),p-=B,p===0){B===w.length?(++y,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=w.slice(B));break}++y}return this.length-=y,g}},{key:"_getBuffer",value:function(p){var m=s.allocUnsafe(p),y=this.head,g=1;for(y.data.copy(m),p-=y.data.length;y=y.next;){var w=y.data,B=p>w.length?w.length:p;if(w.copy(m,m.length-p,0,B),p-=B,p===0){B===w.length?(++g,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=w.slice(B));break}++g}return this.length-=g,m}},{key:u,value:function(p,m){return l(this,e({},m,{depth:0,customInspect:!1}))}}]),d}(),Hd}var Md,I1;function T1(){if(I1)return Md;I1=1;function r(a,s){var o=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(s?s(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Ut.nextTick(A,this,a)):Ut.nextTick(A,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(h){!s&&h?o._writableState?o._writableState.errorEmitted?Ut.nextTick(t,o):(o._writableState.errorEmitted=!0,Ut.nextTick(e,o,h)):Ut.nextTick(e,o,h):s?(Ut.nextTick(t,o),s(h)):Ut.nextTick(t,o)}),this)}function e(a,s){A(a,s),t(a)}function t(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function A(a,s){a.emit("error",s)}function i(a,s){var o=a._readableState,l=a._writableState;o&&o.autoDestroy||l&&l.autoDestroy?a.destroy(s):a.emit("error",s)}return Md={destroy:r,undestroy:n,errorOrDestroy:i},Md}var Kd={},_1;function Cs(){if(_1)return Kd;_1=1;function r(s,o){s.prototype=Object.create(o.prototype),s.prototype.constructor=s,s.__proto__=o}var e={};function t(s,o,l){l||(l=Error);function u(d,c,p){return typeof o=="string"?o:o(d,c,p)}var h=function(d){r(c,d);function c(p,m,y){return d.call(this,u(p,m,y))||this}return c}(l);h.prototype.name=l.name,h.prototype.code=s,e[s]=h}function n(s,o){if(Array.isArray(s)){var l=s.length;return s=s.map(function(u){return String(u)}),l>2?"one of ".concat(o," ").concat(s.slice(0,l-1).join(", "),", or ")+s[l-1]:l===2?"one of ".concat(o," ").concat(s[0]," or ").concat(s[1]):"of ".concat(o," ").concat(s[0])}else return"of ".concat(o," ").concat(String(s))}function A(s,o,l){return s.substr(0,o.length)===o}function i(s,o,l){return(l===void 0||l>s.length)&&(l=s.length),s.substring(l-o.length,l)===o}function a(s,o,l){return typeof l!="number"&&(l=0),l+o.length>s.length?!1:s.indexOf(o,l)!==-1}return t("ERR_INVALID_OPT_VALUE",function(s,o){return'The value "'+o+'" is invalid for option "'+s+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(s,o,l){var u;typeof o=="string"&&A(o,"not ")?(u="must not be",o=o.replace(/^not /,"")):u="must be";var h;if(i(s," argument"))h="The ".concat(s," ").concat(u," ").concat(n(o,"type"));else{var d=a(s,".")?"property":"argument";h='The "'.concat(s,'" ').concat(d," ").concat(u," ").concat(n(o,"type"))}return h+=". Received type ".concat(typeof l),h},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Kd.codes=e,Kd}var jd,L1;function Q1(){if(L1)return jd;L1=1;var r=Cs().codes.ERR_INVALID_OPT_VALUE;function e(n,A,i){return n.highWaterMark!=null?n.highWaterMark:A?n[i]:null}function t(n,A,i,a){var s=e(A,a,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var o=a?i:"highWaterMark";throw new r(o,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return jd={getHighWaterMark:t},jd}var Vd,N1;function RF(){if(N1)return Vd;N1=1,Vd=r;function r(t,n){if(e("noDeprecation"))return t;var A=!1;function i(){if(!A){if(e("throwDeprecation"))throw new Error(n);e("traceDeprecation")?console.trace(n):console.warn(n),A=!0}return t.apply(this,arguments)}return i}function e(t){try{if(!GA.localStorage)return!1}catch{return!1}var n=GA.localStorage[t];return n==null?!1:String(n).toLowerCase()==="true"}return Vd}var Gd,O1;function P1(){if(O1)return Gd;O1=1,Gd=D;function r(z){var _=this;this.next=null,this.entry=null,this.finish=function(){W(_,z)}}var e;D.WritableState=j;var t={deprecate:RF()},n=$w(),A=Nu().Buffer,i=GA.Uint8Array||function(){};function a(z){return A.from(z)}function s(z){return A.isBuffer(z)||z instanceof i}var o=T1(),l=Q1(),u=l.getHighWaterMark,h=Cs().codes,d=h.ERR_INVALID_ARG_TYPE,c=h.ERR_METHOD_NOT_IMPLEMENTED,p=h.ERR_MULTIPLE_CALLBACK,m=h.ERR_STREAM_CANNOT_PIPE,y=h.ERR_STREAM_DESTROYED,g=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,B=h.ERR_UNKNOWN_ENCODING,I=o.errorOrDestroy;Fa(D,n);function O(){}function j(z,_,L){e=e||Es(),z=z||{},typeof L!="boolean"&&(L=_ instanceof e),this.objectMode=!!z.objectMode,L&&(this.objectMode=this.objectMode||!!z.writableObjectMode),this.highWaterMark=u(this,z,"writableHighWaterMark",L),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=z.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=z.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){ee(_,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=z.emitClose!==!1,this.autoDestroy=!!z.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}j.prototype.getBuffer=function(){for(var _=this.bufferedRequest,L=[];_;)L.push(_),_=_.next;return L},function(){try{Object.defineProperty(j.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var R;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(R=Function.prototype[Symbol.hasInstance],Object.defineProperty(D,Symbol.hasInstance,{value:function(_){return R.call(this,_)?!0:this!==D?!1:_&&_._writableState instanceof j}})):R=function(_){return _ instanceof this};function D(z){e=e||Es();var _=this instanceof e;if(!_&&!R.call(D,this))return new D(z);this._writableState=new j(z,this,_),this.writable=!0,z&&(typeof z.write=="function"&&(this._write=z.write),typeof z.writev=="function"&&(this._writev=z.writev),typeof z.destroy=="function"&&(this._destroy=z.destroy),typeof z.final=="function"&&(this._final=z.final)),n.call(this)}D.prototype.pipe=function(){I(this,new m)};function Q(z,_){var L=new w;I(z,L),Ut.nextTick(_,L)}function J(z,_,L,Z){var se;return L===null?se=new g:typeof L!="string"&&!_.objectMode&&(se=new d("chunk",["string","Buffer"],L)),se?(I(z,se),Ut.nextTick(Z,se),!1):!0}D.prototype.write=function(z,_,L){var Z=this._writableState,se=!1,$=!Z.objectMode&&s(z);return $&&!A.isBuffer(z)&&(z=a(z)),typeof _=="function"&&(L=_,_=null),$?_="buffer":_||(_=Z.defaultEncoding),typeof L!="function"&&(L=O),Z.ending?Q(this,L):($||J(this,Z,z,L))&&(Z.pendingcb++,se=S(this,Z,$,z,_,L)),se},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){var z=this._writableState;z.corked&&(z.corked--,!z.writing&&!z.corked&&!z.bufferProcessing&&z.bufferedRequest&&q(this,z))},D.prototype.setDefaultEncoding=function(_){if(typeof _=="string"&&(_=_.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((_+"").toLowerCase())>-1))throw new B(_);return this._writableState.defaultEncoding=_,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function M(z,_,L){return!z.objectMode&&z.decodeStrings!==!1&&typeof _=="string"&&(_=A.from(_,L)),_}Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S(z,_,L,Z,se,$){if(!L){var te=M(_,Z,se);Z!==te&&(L=!0,se="buffer",Z=te)}var me=_.objectMode?1:Z.length;_.length+=me;var P=_.length<_.highWaterMark;if(P||(_.needDrain=!0),_.writing||_.corked){var de=_.lastBufferedRequest;_.lastBufferedRequest={chunk:Z,encoding:se,isBuf:L,callback:$,next:null},de?de.next=_.lastBufferedRequest:_.bufferedRequest=_.lastBufferedRequest,_.bufferedRequestCount+=1}else K(z,_,!1,me,Z,se,$);return P}function K(z,_,L,Z,se,$,te){_.writelen=Z,_.writecb=te,_.writing=!0,_.sync=!0,_.destroyed?_.onwrite(new y("write")):L?z._writev(se,_.onwrite):z._write(se,$,_.onwrite),_.sync=!1}function F(z,_,L,Z,se){--_.pendingcb,L?(Ut.nextTick(se,Z),Ut.nextTick(k,z,_),z._writableState.errorEmitted=!0,I(z,Z)):(se(Z),z._writableState.errorEmitted=!0,I(z,Z),k(z,_))}function ne(z){z.writing=!1,z.writecb=null,z.length-=z.writelen,z.writelen=0}function ee(z,_){var L=z._writableState,Z=L.sync,se=L.writecb;if(typeof se!="function")throw new p;if(ne(L),_)F(z,L,Z,_,se);else{var $=he(L)||z.destroyed;!$&&!L.corked&&!L.bufferProcessing&&L.bufferedRequest&&q(z,L),Z?Ut.nextTick(G,z,L,$,se):G(z,L,$,se)}}function G(z,_,L,Z){L||oe(z,_),_.pendingcb--,Z(),k(z,_)}function oe(z,_){_.length===0&&_.needDrain&&(_.needDrain=!1,z.emit("drain"))}function q(z,_){_.bufferProcessing=!0;var L=_.bufferedRequest;if(z._writev&&L&&L.next){var Z=_.bufferedRequestCount,se=new Array(Z),$=_.corkedRequestsFree;$.entry=L;for(var te=0,me=!0;L;)se[te]=L,L.isBuf||(me=!1),L=L.next,te+=1;se.allBuffers=me,K(z,_,!0,_.length,se,"",$.finish),_.pendingcb++,_.lastBufferedRequest=null,$.next?(_.corkedRequestsFree=$.next,$.next=null):_.corkedRequestsFree=new r(_),_.bufferedRequestCount=0}else{for(;L;){var P=L.chunk,de=L.encoding,U=L.callback,b=_.objectMode?1:P.length;if(K(z,_,!1,b,P,de,U),L=L.next,_.bufferedRequestCount--,_.writing)break}L===null&&(_.lastBufferedRequest=null)}_.bufferedRequest=L,_.bufferProcessing=!1}D.prototype._write=function(z,_,L){L(new c("_write()"))},D.prototype._writev=null,D.prototype.end=function(z,_,L){var Z=this._writableState;return typeof z=="function"?(L=z,z=null,_=null):typeof _=="function"&&(L=_,_=null),z!=null&&this.write(z,_),Z.corked&&(Z.corked=1,this.uncork()),Z.ending||V(this,Z,L),this},Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function he(z){return z.ending&&z.length===0&&z.bufferedRequest===null&&!z.finished&&!z.writing}function ie(z,_){z._final(function(L){_.pendingcb--,L&&I(z,L),_.prefinished=!0,z.emit("prefinish"),k(z,_)})}function E(z,_){!_.prefinished&&!_.finalCalled&&(typeof z._final=="function"&&!_.destroyed?(_.pendingcb++,_.finalCalled=!0,Ut.nextTick(ie,z,_)):(_.prefinished=!0,z.emit("prefinish")))}function k(z,_){var L=he(_);if(L&&(E(z,_),_.pendingcb===0&&(_.finished=!0,z.emit("finish"),_.autoDestroy))){var Z=z._readableState;(!Z||Z.autoDestroy&&Z.endEmitted)&&z.destroy()}return L}function V(z,_,L){_.ending=!0,k(z,_),L&&(_.finished?Ut.nextTick(L):z.once("finish",L)),_.ended=!0,z.writable=!1}function W(z,_,L){var Z=z.entry;for(z.entry=null;Z;){var se=Z.callback;_.pendingcb--,se(L),Z=Z.next}_.corkedRequestsFree.next=z}return Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(_){this._writableState&&(this._writableState.destroyed=_)}}),D.prototype.destroy=o.destroy,D.prototype._undestroy=o.undestroy,D.prototype._destroy=function(z,_){_(z)},Gd}var zd,R1;function Es(){if(R1)return zd;R1=1;var r=Object.keys||function(l){var u=[];for(var h in l)u.push(h);return u};zd=a;var e=V1(),t=P1();Fa(a,e);for(var n=r(t.prototype),A=0;A<n.length;A++){var i=n[A];a.prototype[i]||(a.prototype[i]=t.prototype[i])}function a(l){if(!(this instanceof a))return new a(l);e.call(this,l),t.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||Ut.nextTick(o,this)}function o(l){l.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),zd}var Wd={},Ou={exports:{}},D1;function DF(){return D1||(D1=1,function(r,e){var t=Nu(),n=t.Buffer;function A(a,s){for(var o in a)s[o]=a[o]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?r.exports=t:(A(t,e),e.Buffer=i);function i(a,s,o){return n(a,s,o)}A(n,i),i.from=function(a,s,o){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,s,o)},i.alloc=function(a,s,o){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=n(a);return s!==void 0?typeof o=="string"?l.fill(s,o):l.fill(s):l.fill(0),l},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}}(Ou,Ou.exports)),Ou.exports}var k1;function $d(){if(k1)return Wd;k1=1;var r=DF().Buffer,e=r.isEncoding||function(g){switch(g=""+g,g&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function t(g){if(!g)return"utf8";for(var w;;)switch(g){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return g;default:if(w)return;g=(""+g).toLowerCase(),w=!0}}function n(g){var w=t(g);if(typeof w!="string"&&(r.isEncoding===e||!e(g)))throw new Error("Unknown encoding: "+g);return w||g}Wd.StringDecoder=A;function A(g){this.encoding=n(g);var w;switch(this.encoding){case"utf16le":this.text=h,this.end=d,w=4;break;case"utf8":this.fillLast=o,w=4;break;case"base64":this.text=c,this.end=p,w=3;break;default:this.write=m,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(w)}A.prototype.write=function(g){if(g.length===0)return"";var w,B;if(this.lastNeed){if(w=this.fillLast(g),w===void 0)return"";B=this.lastNeed,this.lastNeed=0}else B=0;return B<g.length?w?w+this.text(g,B):this.text(g,B):w||""},A.prototype.end=u,A.prototype.text=l,A.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function i(g){return g<=127?0:g>>5===6?2:g>>4===14?3:g>>3===30?4:g>>6===2?-1:-2}function a(g,w,B){var I=w.length-1;if(I<B)return 0;var O=i(w[I]);return O>=0?(O>0&&(g.lastNeed=O-1),O):--I<B||O===-2?0:(O=i(w[I]),O>=0?(O>0&&(g.lastNeed=O-2),O):--I<B||O===-2?0:(O=i(w[I]),O>=0?(O>0&&(O===2?O=0:g.lastNeed=O-3),O):0))}function s(g,w,B){if((w[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&w.length>1){if((w[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&w.length>2&&(w[2]&192)!==128)return g.lastNeed=2,"�"}}function o(g){var w=this.lastTotal-this.lastNeed,B=s(this,g);if(B!==void 0)return B;if(this.lastNeed<=g.length)return g.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,w,0,g.length),this.lastNeed-=g.length}function l(g,w){var B=a(this,g,w);if(!this.lastNeed)return g.toString("utf8",w);this.lastTotal=B;var I=g.length-(B-this.lastNeed);return g.copy(this.lastChar,0,I),g.toString("utf8",w,I)}function u(g){var w=g&&g.length?this.write(g):"";return this.lastNeed?w+"�":w}function h(g,w){if((g.length-w)%2===0){var B=g.toString("utf16le",w);if(B){var I=B.charCodeAt(B.length-1);if(I>=55296&&I<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],B.slice(0,-1)}return B}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",w,g.length-1)}function d(g){var w=g&&g.length?this.write(g):"";if(this.lastNeed){var B=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,B)}return w}function c(g,w){var B=(g.length-w)%3;return B===0?g.toString("base64",w):(this.lastNeed=3-B,this.lastTotal=3,B===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",w,g.length-B))}function p(g){var w=g&&g.length?this.write(g):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function m(g){return g.toString(this.encoding)}function y(g){return g&&g.length?this.write(g):""}return Wd}var qd,H1;function Xd(){if(H1)return qd;H1=1;var r=Cs().codes.ERR_STREAM_PREMATURE_CLOSE;function e(i){var a=!1;return function(){if(!a){a=!0;for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];i.apply(this,o)}}}function t(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function A(i,a,s){if(typeof a=="function")return A(i,null,a);a||(a={}),s=e(s||t);var o=a.readable||a.readable!==!1&&i.readable,l=a.writable||a.writable!==!1&&i.writable,u=function(){i.writable||d()},h=i._writableState&&i._writableState.finished,d=function(){l=!1,h=!0,o||s.call(i)},c=i._readableState&&i._readableState.endEmitted,p=function(){o=!1,c=!0,l||s.call(i)},m=function(B){s.call(i,B)},y=function(){var B;if(o&&!c)return(!i._readableState||!i._readableState.ended)&&(B=new r),s.call(i,B);if(l&&!h)return(!i._writableState||!i._writableState.ended)&&(B=new r),s.call(i,B)},g=function(){i.req.on("finish",d)};return n(i)?(i.on("complete",d),i.on("abort",y),i.req?g():i.on("request",g)):l&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",p),i.on("finish",d),a.error!==!1&&i.on("error",m),i.on("close",y),function(){i.removeListener("complete",d),i.removeListener("abort",y),i.removeListener("request",g),i.req&&i.req.removeListener("finish",d),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",d),i.removeListener("end",p),i.removeListener("error",m),i.removeListener("close",y)}}return qd=A,qd}var Yd,M1;function kF(){if(M1)return Yd;M1=1;var r;function e(g,w,B){return w in g?Object.defineProperty(g,w,{value:B,enumerable:!0,configurable:!0,writable:!0}):g[w]=B,g}var t=Xd(),n=Symbol("lastResolve"),A=Symbol("lastReject"),i=Symbol("error"),a=Symbol("ended"),s=Symbol("lastPromise"),o=Symbol("handlePromise"),l=Symbol("stream");function u(g,w){return{value:g,done:w}}function h(g){var w=g[n];if(w!==null){var B=g[l].read();B!==null&&(g[s]=null,g[n]=null,g[A]=null,w(u(B,!1)))}}function d(g){Ut.nextTick(h,g)}function c(g,w){return function(B,I){g.then(function(){if(w[a]){B(u(void 0,!0));return}w[o](B,I)},I)}}var p=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((r={get stream(){return this[l]},next:function(){var w=this,B=this[i];if(B!==null)return Promise.reject(B);if(this[a])return Promise.resolve(u(void 0,!0));if(this[l].destroyed)return new Promise(function(R,D){Ut.nextTick(function(){w[i]?D(w[i]):R(u(void 0,!0))})});var I=this[s],O;if(I)O=new Promise(c(I,this));else{var j=this[l].read();if(j!==null)return Promise.resolve(u(j,!1));O=new Promise(this[o])}return this[s]=O,O}},e(r,Symbol.asyncIterator,function(){return this}),e(r,"return",function(){var w=this;return new Promise(function(B,I){w[l].destroy(null,function(O){if(O){I(O);return}B(u(void 0,!0))})})}),r),p),y=function(w){var B,I=Object.create(m,(B={},e(B,l,{value:w,writable:!0}),e(B,n,{value:null,writable:!0}),e(B,A,{value:null,writable:!0}),e(B,i,{value:null,writable:!0}),e(B,a,{value:w._readableState.endEmitted,writable:!0}),e(B,o,{value:function(j,R){var D=I[l].read();D?(I[s]=null,I[n]=null,I[A]=null,j(u(D,!1))):(I[n]=j,I[A]=R)},writable:!0}),B));return I[s]=null,t(w,function(O){if(O&&O.code!=="ERR_STREAM_PREMATURE_CLOSE"){var j=I[A];j!==null&&(I[s]=null,I[n]=null,I[A]=null,j(O)),I[i]=O;return}var R=I[n];R!==null&&(I[s]=null,I[n]=null,I[A]=null,R(u(void 0,!0))),I[a]=!0}),w.on("readable",d.bind(null,I)),I};return Yd=y,Yd}var Jd,K1;function HF(){return K1||(K1=1,Jd=function(){throw new Error("Readable.from is not available in the browser")}),Jd}var Zd,j1;function V1(){if(j1)return Zd;j1=1,Zd=Q;var r;Q.ReadableState=D,sd.EventEmitter;var e=function(te,me){return te.listeners(me).length},t=$w(),n=Nu().Buffer,A=GA.Uint8Array||function(){};function i($){return n.from($)}function a($){return n.isBuffer($)||$ instanceof A}var s=F1(),o;s&&s.debuglog?o=s.debuglog("stream"):o=function(){};var l=PF(),u=T1(),h=Q1(),d=h.getHighWaterMark,c=Cs().codes,p=c.ERR_INVALID_ARG_TYPE,m=c.ERR_STREAM_PUSH_AFTER_EOF,y=c.ERR_METHOD_NOT_IMPLEMENTED,g=c.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,w,B,I;Fa(Q,t);var O=u.errorOrDestroy,j=["error","close","destroy","pause","resume"];function R($,te,me){if(typeof $.prependListener=="function")return $.prependListener(te,me);!$._events||!$._events[te]?$.on(te,me):Array.isArray($._events[te])?$._events[te].unshift(me):$._events[te]=[me,$._events[te]]}function D($,te,me){r=r||Es(),$=$||{},typeof me!="boolean"&&(me=te instanceof r),this.objectMode=!!$.objectMode,me&&(this.objectMode=this.objectMode||!!$.readableObjectMode),this.highWaterMark=d(this,$,"readableHighWaterMark",me),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=$.emitClose!==!1,this.autoDestroy=!!$.autoDestroy,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding&&(w||(w=$d().StringDecoder),this.decoder=new w($.encoding),this.encoding=$.encoding)}function Q($){if(r=r||Es(),!(this instanceof Q))return new Q($);var te=this instanceof r;this._readableState=new D($,this,te),this.readable=!0,$&&(typeof $.read=="function"&&(this._read=$.read),typeof $.destroy=="function"&&(this._destroy=$.destroy)),t.call(this)}Object.defineProperty(Q.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(te){this._readableState&&(this._readableState.destroyed=te)}}),Q.prototype.destroy=u.destroy,Q.prototype._undestroy=u.undestroy,Q.prototype._destroy=function($,te){te($)},Q.prototype.push=function($,te){var me=this._readableState,P;return me.objectMode?P=!0:typeof $=="string"&&(te=te||me.defaultEncoding,te!==me.encoding&&($=n.from($,te),te=""),P=!0),J(this,$,te,!1,P)},Q.prototype.unshift=function($){return J(this,$,null,!0,!1)};function J($,te,me,P,de){o("readableAddChunk",te);var U=$._readableState;if(te===null)U.reading=!1,ee($,U);else{var b;if(de||(b=S(U,te)),b)O($,b);else if(U.objectMode||te&&te.length>0)if(typeof te!="string"&&!U.objectMode&&Object.getPrototypeOf(te)!==n.prototype&&(te=i(te)),P)U.endEmitted?O($,new g):M($,U,te,!0);else if(U.ended)O($,new m);else{if(U.destroyed)return!1;U.reading=!1,U.decoder&&!me?(te=U.decoder.write(te),U.objectMode||te.length!==0?M($,U,te,!1):q($,U)):M($,U,te,!1)}else P||(U.reading=!1,q($,U))}return!U.ended&&(U.length<U.highWaterMark||U.length===0)}function M($,te,me,P){te.flowing&&te.length===0&&!te.sync?(te.awaitDrain=0,$.emit("data",me)):(te.length+=te.objectMode?1:me.length,P?te.buffer.unshift(me):te.buffer.push(me),te.needReadable&&G($)),q($,te)}function S($,te){var me;return!a(te)&&typeof te!="string"&&te!==void 0&&!$.objectMode&&(me=new p("chunk",["string","Buffer","Uint8Array"],te)),me}Q.prototype.isPaused=function(){return this._readableState.flowing===!1},Q.prototype.setEncoding=function($){w||(w=$d().StringDecoder);var te=new w($);this._readableState.decoder=te,this._readableState.encoding=this._readableState.decoder.encoding;for(var me=this._readableState.buffer.head,P="";me!==null;)P+=te.write(me.data),me=me.next;return this._readableState.buffer.clear(),P!==""&&this._readableState.buffer.push(P),this._readableState.length=P.length,this};var K=1073741824;function F($){return $>=K?$=K:($--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++),$}function ne($,te){return $<=0||te.length===0&&te.ended?0:te.objectMode?1:$!==$?te.flowing&&te.length?te.buffer.head.data.length:te.length:($>te.highWaterMark&&(te.highWaterMark=F($)),$<=te.length?$:te.ended?te.length:(te.needReadable=!0,0))}Q.prototype.read=function($){o("read",$),$=parseInt($,10);var te=this._readableState,me=$;if($!==0&&(te.emittedReadable=!1),$===0&&te.needReadable&&((te.highWaterMark!==0?te.length>=te.highWaterMark:te.length>0)||te.ended))return o("read: emitReadable",te.length,te.ended),te.length===0&&te.ended?L(this):G(this),null;if($=ne($,te),$===0&&te.ended)return te.length===0&&L(this),null;var P=te.needReadable;o("need readable",P),(te.length===0||te.length-$<te.highWaterMark)&&(P=!0,o("length less than watermark",P)),te.ended||te.reading?(P=!1,o("reading or ended",P)):P&&(o("do read"),te.reading=!0,te.sync=!0,te.length===0&&(te.needReadable=!0),this._read(te.highWaterMark),te.sync=!1,te.reading||($=ne(me,te)));var de;return $>0?de=_($,te):de=null,de===null?(te.needReadable=te.length<=te.highWaterMark,$=0):(te.length-=$,te.awaitDrain=0),te.length===0&&(te.ended||(te.needReadable=!0),me!==$&&te.ended&&L(this)),de!==null&&this.emit("data",de),de};function ee($,te){if(o("onEofChunk"),!te.ended){if(te.decoder){var me=te.decoder.end();me&&me.length&&(te.buffer.push(me),te.length+=te.objectMode?1:me.length)}te.ended=!0,te.sync?G($):(te.needReadable=!1,te.emittedReadable||(te.emittedReadable=!0,oe($)))}}function G($){var te=$._readableState;o("emitReadable",te.needReadable,te.emittedReadable),te.needReadable=!1,te.emittedReadable||(o("emitReadable",te.flowing),te.emittedReadable=!0,Ut.nextTick(oe,$))}function oe($){var te=$._readableState;o("emitReadable_",te.destroyed,te.length,te.ended),!te.destroyed&&(te.length||te.ended)&&($.emit("readable"),te.emittedReadable=!1),te.needReadable=!te.flowing&&!te.ended&&te.length<=te.highWaterMark,z($)}function q($,te){te.readingMore||(te.readingMore=!0,Ut.nextTick(he,$,te))}function he($,te){for(;!te.reading&&!te.ended&&(te.length<te.highWaterMark||te.flowing&&te.length===0);){var me=te.length;if(o("maybeReadMore read 0"),$.read(0),me===te.length)break}te.readingMore=!1}Q.prototype._read=function($){O(this,new y("_read()"))},Q.prototype.pipe=function($,te){var me=this,P=this._readableState;switch(P.pipesCount){case 0:P.pipes=$;break;case 1:P.pipes=[P.pipes,$];break;default:P.pipes.push($);break}P.pipesCount+=1,o("pipe count=%d opts=%j",P.pipesCount,te);var de=(!te||te.end!==!1)&&$!==Ut.stdout&&$!==Ut.stderr,U=de?x:Pe;P.endEmitted?Ut.nextTick(U):me.once("end",U),$.on("unpipe",b);function b(je,$e){o("onunpipe"),je===me&&$e&&$e.hasUnpiped===!1&&($e.hasUnpiped=!0,fe())}function x(){o("onend"),$.end()}var N=ie(me);$.on("drain",N);var ae=!1;function fe(){o("cleanup"),$.removeListener("close",Fe),$.removeListener("finish",Se),$.removeListener("drain",N),$.removeListener("error",be),$.removeListener("unpipe",b),me.removeListener("end",x),me.removeListener("end",Pe),me.removeListener("data",ue),ae=!0,P.awaitDrain&&(!$._writableState||$._writableState.needDrain)&&N()}me.on("data",ue);function ue(je){o("ondata");var $e=$.write(je);o("dest.write",$e),$e===!1&&((P.pipesCount===1&&P.pipes===$||P.pipesCount>1&&se(P.pipes,$)!==-1)&&!ae&&(o("false write response, pause",P.awaitDrain),P.awaitDrain++),me.pause())}function be(je){o("onerror",je),Pe(),$.removeListener("error",be),e($,"error")===0&&O($,je)}R($,"error",be);function Fe(){$.removeListener("finish",Se),Pe()}$.once("close",Fe);function Se(){o("onfinish"),$.removeListener("close",Fe),Pe()}$.once("finish",Se);function Pe(){o("unpipe"),me.unpipe($)}return $.emit("pipe",me),P.flowing||(o("pipe resume"),me.resume()),$};function ie($){return function(){var me=$._readableState;o("pipeOnDrain",me.awaitDrain),me.awaitDrain&&me.awaitDrain--,me.awaitDrain===0&&e($,"data")&&(me.flowing=!0,z($))}}Q.prototype.unpipe=function($){var te=this._readableState,me={hasUnpiped:!1};if(te.pipesCount===0)return this;if(te.pipesCount===1)return $&&$!==te.pipes?this:($||($=te.pipes),te.pipes=null,te.pipesCount=0,te.flowing=!1,$&&$.emit("unpipe",this,me),this);if(!$){var P=te.pipes,de=te.pipesCount;te.pipes=null,te.pipesCount=0,te.flowing=!1;for(var U=0;U<de;U++)P[U].emit("unpipe",this,{hasUnpiped:!1});return this}var b=se(te.pipes,$);return b===-1?this:(te.pipes.splice(b,1),te.pipesCount-=1,te.pipesCount===1&&(te.pipes=te.pipes[0]),$.emit("unpipe",this,me),this)},Q.prototype.on=function($,te){var me=t.prototype.on.call(this,$,te),P=this._readableState;return $==="data"?(P.readableListening=this.listenerCount("readable")>0,P.flowing!==!1&&this.resume()):$==="readable"&&!P.endEmitted&&!P.readableListening&&(P.readableListening=P.needReadable=!0,P.flowing=!1,P.emittedReadable=!1,o("on readable",P.length,P.reading),P.length?G(this):P.reading||Ut.nextTick(k,this)),me},Q.prototype.addListener=Q.prototype.on,Q.prototype.removeListener=function($,te){var me=t.prototype.removeListener.call(this,$,te);return $==="readable"&&Ut.nextTick(E,this),me},Q.prototype.removeAllListeners=function($){var te=t.prototype.removeAllListeners.apply(this,arguments);return($==="readable"||$===void 0)&&Ut.nextTick(E,this),te};function E($){var te=$._readableState;te.readableListening=$.listenerCount("readable")>0,te.resumeScheduled&&!te.paused?te.flowing=!0:$.listenerCount("data")>0&&$.resume()}function k($){o("readable nexttick read 0"),$.read(0)}Q.prototype.resume=function(){var $=this._readableState;return $.flowing||(o("resume"),$.flowing=!$.readableListening,V(this,$)),$.paused=!1,this};function V($,te){te.resumeScheduled||(te.resumeScheduled=!0,Ut.nextTick(W,$,te))}function W($,te){o("resume",te.reading),te.reading||$.read(0),te.resumeScheduled=!1,$.emit("resume"),z($),te.flowing&&!te.reading&&$.read(0)}Q.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function z($){var te=$._readableState;for(o("flow",te.flowing);te.flowing&&$.read()!==null;);}Q.prototype.wrap=function($){var te=this,me=this._readableState,P=!1;$.on("end",function(){if(o("wrapped end"),me.decoder&&!me.ended){var b=me.decoder.end();b&&b.length&&te.push(b)}te.push(null)}),$.on("data",function(b){if(o("wrapped data"),me.decoder&&(b=me.decoder.write(b)),!(me.objectMode&&b==null)&&!(!me.objectMode&&(!b||!b.length))){var x=te.push(b);x||(P=!0,$.pause())}});for(var de in $)this[de]===void 0&&typeof $[de]=="function"&&(this[de]=function(x){return function(){return $[x].apply($,arguments)}}(de));for(var U=0;U<j.length;U++)$.on(j[U],this.emit.bind(this,j[U]));return this._read=function(b){o("wrapped _read",b),P&&(P=!1,$.resume())},this},typeof Symbol=="function"&&(Q.prototype[Symbol.asyncIterator]=function(){return B===void 0&&(B=kF()),B(this)}),Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Q.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Q.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(te){this._readableState&&(this._readableState.flowing=te)}}),Q._fromList=_,Object.defineProperty(Q.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function _($,te){if(te.length===0)return null;var me;return te.objectMode?me=te.buffer.shift():!$||$>=te.length?(te.decoder?me=te.buffer.join(""):te.buffer.length===1?me=te.buffer.first():me=te.buffer.concat(te.length),te.buffer.clear()):me=te.buffer.consume($,te.decoder),me}function L($){var te=$._readableState;o("endReadable",te.endEmitted),te.endEmitted||(te.ended=!0,Ut.nextTick(Z,te,$))}function Z($,te){if(o("endReadableNT",$.endEmitted,$.length),!$.endEmitted&&$.length===0&&($.endEmitted=!0,te.readable=!1,te.emit("end"),$.autoDestroy)){var me=te._writableState;(!me||me.autoDestroy&&me.finished)&&te.destroy()}}typeof Symbol=="function"&&(Q.from=function($,te){return I===void 0&&(I=HF()),I(Q,$,te)});function se($,te){for(var me=0,P=$.length;me<P;me++)if($[me]===te)return me;return-1}return Zd}var ep,G1;function z1(){if(G1)return ep;G1=1,ep=s;var r=Cs().codes,e=r.ERR_METHOD_NOT_IMPLEMENTED,t=r.ERR_MULTIPLE_CALLBACK,n=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,A=r.ERR_TRANSFORM_WITH_LENGTH_0,i=Es();Fa(s,i);function a(u,h){var d=this._transformState;d.transforming=!1;var c=d.writecb;if(c===null)return this.emit("error",new t);d.writechunk=null,d.writecb=null,h!=null&&this.push(h),c(u);var p=this._readableState;p.reading=!1,(p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);i.call(this,u),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",o)}function o(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(h,d){l(u,h,d)}):l(this,null,null)}s.prototype.push=function(u,h){return this._transformState.needTransform=!1,i.prototype.push.call(this,u,h)},s.prototype._transform=function(u,h,d){d(new e("_transform()"))},s.prototype._write=function(u,h,d){var c=this._transformState;if(c.writecb=d,c.writechunk=u,c.writeencoding=h,!c.transforming){var p=this._readableState;(c.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},s.prototype._read=function(u){var h=this._transformState;h.writechunk!==null&&!h.transforming?(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform)):h.needTransform=!0},s.prototype._destroy=function(u,h){i.prototype._destroy.call(this,u,function(d){h(d)})};function l(u,h,d){if(h)return u.emit("error",h);if(d!=null&&u.push(d),u._writableState.length)throw new A;if(u._transformState.transforming)throw new n;return u.push(null)}return ep}var tp,W1;function MF(){if(W1)return tp;W1=1,tp=e;var r=z1();Fa(e,r);function e(t){if(!(this instanceof e))return new e(t);r.call(this,t)}return e.prototype._transform=function(t,n,A){A(null,t)},tp}var rp,$1;function KF(){if($1)return rp;$1=1;var r;function e(d){var c=!1;return function(){c||(c=!0,d.apply(void 0,arguments))}}var t=Cs().codes,n=t.ERR_MISSING_ARGS,A=t.ERR_STREAM_DESTROYED;function i(d){if(d)throw d}function a(d){return d.setHeader&&typeof d.abort=="function"}function s(d,c,p,m){m=e(m);var y=!1;d.on("close",function(){y=!0}),r===void 0&&(r=Xd()),r(d,{readable:c,writable:p},function(w){if(w)return m(w);y=!0,m()});var g=!1;return function(w){if(!y&&!g){if(g=!0,a(d))return d.abort();if(typeof d.destroy=="function")return d.destroy();m(w||new A("pipe"))}}}function o(d){d()}function l(d,c){return d.pipe(c)}function u(d){return!d.length||typeof d[d.length-1]!="function"?i:d.pop()}function h(){for(var d=arguments.length,c=new Array(d),p=0;p<d;p++)c[p]=arguments[p];var m=u(c);if(Array.isArray(c[0])&&(c=c[0]),c.length<2)throw new n("streams");var y,g=c.map(function(w,B){var I=B<c.length-1,O=B>0;return s(w,I,O,function(j){y||(y=j),j&&g.forEach(o),!I&&(g.forEach(o),m(y))})});return c.reduce(l)}return rp=h,rp}var np=aA,Ap=sd.EventEmitter,jF=Fa;jF(aA,Ap),aA.Readable=V1(),aA.Writable=P1(),aA.Duplex=Es(),aA.Transform=z1(),aA.PassThrough=MF(),aA.finished=Xd(),aA.pipeline=KF(),aA.Stream=aA;function aA(){Ap.call(this)}aA.prototype.pipe=function(r,e){var t=this;function n(u){r.writable&&r.write(u)===!1&&t.pause&&t.pause()}t.on("data",n);function A(){t.readable&&t.resume&&t.resume()}r.on("drain",A),!r._isStdio&&(!e||e.end!==!1)&&(t.on("end",a),t.on("close",s));var i=!1;function a(){i||(i=!0,r.end())}function s(){i||(i=!0,typeof r.destroy=="function"&&r.destroy())}function o(u){if(l(),Ap.listenerCount(this,"error")===0)throw u}t.on("error",o),r.on("error",o);function l(){t.removeListener("data",n),r.removeListener("drain",A),t.removeListener("end",a),t.removeListener("close",s),t.removeListener("error",o),r.removeListener("error",o),t.removeListener("end",l),t.removeListener("close",l),r.removeListener("close",l)}return t.on("end",l),t.on("close",l),r.on("close",l),r.emit("pipe",t),r},function(r){(function(e){e.parser=function(_,L){return new n(_,L)},e.SAXParser=n,e.SAXStream=u,e.createStream=l,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(_,L){if(!(this instanceof n))return new n(_,L);var Z=this;i(Z),Z.q=Z.c="",Z.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Z.opt=L||{},Z.opt.lowercase=Z.opt.lowercase||Z.opt.lowercasetags,Z.looseCase=Z.opt.lowercase?"toLowerCase":"toUpperCase",Z.tags=[],Z.closed=Z.closedRoot=Z.sawRoot=!1,Z.tag=Z.error=null,Z.strict=!!_,Z.noscript=!!(_||Z.opt.noscript),Z.state=Q.BEGIN,Z.strictEntities=Z.opt.strictEntities,Z.ENTITIES=Z.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Z.attribList=[],Z.opt.xmlns&&(Z.ns=Object.create(m)),Z.trackPosition=Z.opt.position!==!1,Z.trackPosition&&(Z.position=Z.line=Z.column=0),M(Z,"onready")}Object.create||(Object.create=function(_){function L(){}L.prototype=_;var Z=new L;return Z}),Object.keys||(Object.keys=function(_){var L=[];for(var Z in _)_.hasOwnProperty(Z)&&L.push(Z);return L});function A(_){for(var L=Math.max(e.MAX_BUFFER_LENGTH,10),Z=0,se=0,$=t.length;se<$;se++){var te=_[t[se]].length;if(te>L)switch(t[se]){case"textNode":K(_);break;case"cdata":S(_,"oncdata",_.cdata),_.cdata="";break;case"script":S(_,"onscript",_.script),_.script="";break;default:ne(_,"Max buffer length exceeded: "+t[se])}Z=Math.max(Z,te)}var me=e.MAX_BUFFER_LENGTH-Z;_.bufferCheckPosition=me+_.position}function i(_){for(var L=0,Z=t.length;L<Z;L++)_[t[L]]=""}function a(_){K(_),_.cdata!==""&&(S(_,"oncdata",_.cdata),_.cdata=""),_.script!==""&&(S(_,"onscript",_.script),_.script="")}n.prototype={end:function(){ee(this)},write:z,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var s;try{s=np.Stream}catch{s=function(){}}var o=e.EVENTS.filter(function(_){return _!=="error"&&_!=="end"});function l(_,L){return new u(_,L)}function u(_,L){if(!(this instanceof u))return new u(_,L);s.apply(this),this._parser=new n(_,L),this.writable=!0,this.readable=!0;var Z=this;this._parser.onend=function(){Z.emit("end")},this._parser.onerror=function(se){Z.emit("error",se),Z._parser.error=null},this._decoder=null,o.forEach(function(se){Object.defineProperty(Z,"on"+se,{get:function(){return Z._parser["on"+se]},set:function($){if(!$)return Z.removeAllListeners(se),Z._parser["on"+se]=$,$;Z.on(se,$)},enumerable:!0,configurable:!1})})}u.prototype=Object.create(s.prototype,{constructor:{value:u}}),u.prototype.write=function(_){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(_)){if(!this._decoder){var L=$d().StringDecoder;this._decoder=new L("utf8")}_=this._decoder.write(_)}return this._parser.write(_.toString()),this.emit("data",_),!0},u.prototype.end=function(_){return _&&_.length&&this.write(_),this._parser.end(),!0},u.prototype.on=function(_,L){var Z=this;return!Z._parser["on"+_]&&o.indexOf(_)!==-1&&(Z._parser["on"+_]=function(){var se=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);se.splice(0,0,_),Z.emit.apply(Z,se)}),s.prototype.on.call(Z,_,L)};var h="[CDATA[",d="DOCTYPE",c="http://www.w3.org/XML/1998/namespace",p="http://www.w3.org/2000/xmlns/",m={xml:c,xmlns:p},y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,w=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,B=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function I(_){return _===" "||_===`
40
+ `||_==="\r"||_===" "}function O(_){return _==='"'||_==="'"}function j(_){return _===">"||I(_)}function R(_,L){return _.test(L)}function D(_,L){return!R(_,L)}var Q=0;e.STATE={BEGIN:Q++,BEGIN_WHITESPACE:Q++,TEXT:Q++,TEXT_ENTITY:Q++,OPEN_WAKA:Q++,SGML_DECL:Q++,SGML_DECL_QUOTED:Q++,DOCTYPE:Q++,DOCTYPE_QUOTED:Q++,DOCTYPE_DTD:Q++,DOCTYPE_DTD_QUOTED:Q++,COMMENT_STARTING:Q++,COMMENT:Q++,COMMENT_ENDING:Q++,COMMENT_ENDED:Q++,CDATA:Q++,CDATA_ENDING:Q++,CDATA_ENDING_2:Q++,PROC_INST:Q++,PROC_INST_BODY:Q++,PROC_INST_ENDING:Q++,OPEN_TAG:Q++,OPEN_TAG_SLASH:Q++,ATTRIB:Q++,ATTRIB_NAME:Q++,ATTRIB_NAME_SAW_WHITE:Q++,ATTRIB_VALUE:Q++,ATTRIB_VALUE_QUOTED:Q++,ATTRIB_VALUE_CLOSED:Q++,ATTRIB_VALUE_UNQUOTED:Q++,ATTRIB_VALUE_ENTITY_Q:Q++,ATTRIB_VALUE_ENTITY_U:Q++,CLOSE_TAG:Q++,CLOSE_TAG_SAW_WHITE:Q++,SCRIPT:Q++,SCRIPT_ENDING:Q++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(_){var L=e.ENTITIES[_],Z=typeof L=="number"?String.fromCharCode(L):L;e.ENTITIES[_]=Z});for(var J in e.STATE)e.STATE[e.STATE[J]]=J;Q=e.STATE;function M(_,L,Z){_[L]&&_[L](Z)}function S(_,L,Z){_.textNode&&K(_),M(_,L,Z)}function K(_){_.textNode=F(_.opt,_.textNode),_.textNode&&M(_,"ontext",_.textNode),_.textNode=""}function F(_,L){return _.trim&&(L=L.trim()),_.normalize&&(L=L.replace(/\s+/g," ")),L}function ne(_,L){return K(_),_.trackPosition&&(L+=`
41
+ Line: `+_.line+`
42
+ Column: `+_.column+`
43
+ Char: `+_.c),L=new Error(L),_.error=L,M(_,"onerror",L),_}function ee(_){return _.sawRoot&&!_.closedRoot&&G(_,"Unclosed root tag"),_.state!==Q.BEGIN&&_.state!==Q.BEGIN_WHITESPACE&&_.state!==Q.TEXT&&ne(_,"Unexpected end"),K(_),_.c="",_.closed=!0,M(_,"onend"),n.call(_,_.strict,_.opt),_}function G(_,L){if(typeof _!="object"||!(_ instanceof n))throw new Error("bad call to strictFail");_.strict&&ne(_,L)}function oe(_){_.strict||(_.tagName=_.tagName[_.looseCase]());var L=_.tags[_.tags.length-1]||_,Z=_.tag={name:_.tagName,attributes:{}};_.opt.xmlns&&(Z.ns=L.ns),_.attribList.length=0,S(_,"onopentagstart",Z)}function q(_,L){var Z=_.indexOf(":"),se=Z<0?["",_]:_.split(":"),$=se[0],te=se[1];return L&&_==="xmlns"&&($="xmlns",te=""),{prefix:$,local:te}}function he(_){if(_.strict||(_.attribName=_.attribName[_.looseCase]()),_.attribList.indexOf(_.attribName)!==-1||_.tag.attributes.hasOwnProperty(_.attribName)){_.attribName=_.attribValue="";return}if(_.opt.xmlns){var L=q(_.attribName,!0),Z=L.prefix,se=L.local;if(Z==="xmlns")if(se==="xml"&&_.attribValue!==c)G(_,"xml: prefix must be bound to "+c+`
44
+ Actual: `+_.attribValue);else if(se==="xmlns"&&_.attribValue!==p)G(_,"xmlns: prefix must be bound to "+p+`
45
+ Actual: `+_.attribValue);else{var $=_.tag,te=_.tags[_.tags.length-1]||_;$.ns===te.ns&&($.ns=Object.create(te.ns)),$.ns[se]=_.attribValue}_.attribList.push([_.attribName,_.attribValue])}else _.tag.attributes[_.attribName]=_.attribValue,S(_,"onattribute",{name:_.attribName,value:_.attribValue});_.attribName=_.attribValue=""}function ie(_,L){if(_.opt.xmlns){var Z=_.tag,se=q(_.tagName);Z.prefix=se.prefix,Z.local=se.local,Z.uri=Z.ns[se.prefix]||"",Z.prefix&&!Z.uri&&(G(_,"Unbound namespace prefix: "+JSON.stringify(_.tagName)),Z.uri=se.prefix);var $=_.tags[_.tags.length-1]||_;Z.ns&&$.ns!==Z.ns&&Object.keys(Z.ns).forEach(function(ue){S(_,"onopennamespace",{prefix:ue,uri:Z.ns[ue]})});for(var te=0,me=_.attribList.length;te<me;te++){var P=_.attribList[te],de=P[0],U=P[1],b=q(de,!0),x=b.prefix,N=b.local,ae=x===""?"":Z.ns[x]||"",fe={name:de,value:U,prefix:x,local:N,uri:ae};x&&x!=="xmlns"&&!ae&&(G(_,"Unbound namespace prefix: "+JSON.stringify(x)),fe.uri=x),_.tag.attributes[de]=fe,S(_,"onattribute",fe)}_.attribList.length=0}_.tag.isSelfClosing=!!L,_.sawRoot=!0,_.tags.push(_.tag),S(_,"onopentag",_.tag),L||(!_.noscript&&_.tagName.toLowerCase()==="script"?_.state=Q.SCRIPT:_.state=Q.TEXT,_.tag=null,_.tagName=""),_.attribName=_.attribValue="",_.attribList.length=0}function E(_){if(!_.tagName){G(_,"Weird empty close tag."),_.textNode+="</>",_.state=Q.TEXT;return}if(_.script){if(_.tagName!=="script"){_.script+="</"+_.tagName+">",_.tagName="",_.state=Q.SCRIPT;return}S(_,"onscript",_.script),_.script=""}var L=_.tags.length,Z=_.tagName;_.strict||(Z=Z[_.looseCase]());for(var se=Z;L--;){var $=_.tags[L];if($.name!==se)G(_,"Unexpected close tag");else break}if(L<0){G(_,"Unmatched closing tag: "+_.tagName),_.textNode+="</"+_.tagName+">",_.state=Q.TEXT;return}_.tagName=Z;for(var te=_.tags.length;te-- >L;){var me=_.tag=_.tags.pop();_.tagName=_.tag.name,S(_,"onclosetag",_.tagName);var P={};for(var de in me.ns)P[de]=me.ns[de];var U=_.tags[_.tags.length-1]||_;_.opt.xmlns&&me.ns!==U.ns&&Object.keys(me.ns).forEach(function(b){var x=me.ns[b];S(_,"onclosenamespace",{prefix:b,uri:x})})}L===0&&(_.closedRoot=!0),_.tagName=_.attribValue=_.attribName="",_.attribList.length=0,_.state=Q.TEXT}function k(_){var L=_.entity,Z=L.toLowerCase(),se,$="";return _.ENTITIES[L]?_.ENTITIES[L]:_.ENTITIES[Z]?_.ENTITIES[Z]:(L=Z,L.charAt(0)==="#"&&(L.charAt(1)==="x"?(L=L.slice(2),se=parseInt(L,16),$=se.toString(16)):(L=L.slice(1),se=parseInt(L,10),$=se.toString(10))),L=L.replace(/^0+/,""),isNaN(se)||$.toLowerCase()!==L?(G(_,"Invalid character entity"),"&"+_.entity+";"):String.fromCodePoint(se))}function V(_,L){L==="<"?(_.state=Q.OPEN_WAKA,_.startTagPosition=_.position):I(L)||(G(_,"Non-whitespace before first tag."),_.textNode=L,_.state=Q.TEXT)}function W(_,L){var Z="";return L<_.length&&(Z=_.charAt(L)),Z}function z(_){var L=this;if(this.error)throw this.error;if(L.closed)return ne(L,"Cannot write after close. Assign an onready handler.");if(_===null)return ee(L);typeof _=="object"&&(_=_.toString());for(var Z=0,se="";se=W(_,Z++),L.c=se,!!se;)switch(L.trackPosition&&(L.position++,se===`
46
+ `?(L.line++,L.column=0):L.column++),L.state){case Q.BEGIN:if(L.state=Q.BEGIN_WHITESPACE,se==="\uFEFF")continue;V(L,se);continue;case Q.BEGIN_WHITESPACE:V(L,se);continue;case Q.TEXT:if(L.sawRoot&&!L.closedRoot){for(var $=Z-1;se&&se!=="<"&&se!=="&";)se=W(_,Z++),se&&L.trackPosition&&(L.position++,se===`
47
+ `?(L.line++,L.column=0):L.column++);L.textNode+=_.substring($,Z-1)}se==="<"&&!(L.sawRoot&&L.closedRoot&&!L.strict)?(L.state=Q.OPEN_WAKA,L.startTagPosition=L.position):(!I(se)&&(!L.sawRoot||L.closedRoot)&&G(L,"Text data outside of root node."),se==="&"?L.state=Q.TEXT_ENTITY:L.textNode+=se);continue;case Q.SCRIPT:se==="<"?L.state=Q.SCRIPT_ENDING:L.script+=se;continue;case Q.SCRIPT_ENDING:se==="/"?L.state=Q.CLOSE_TAG:(L.script+="<"+se,L.state=Q.SCRIPT);continue;case Q.OPEN_WAKA:if(se==="!")L.state=Q.SGML_DECL,L.sgmlDecl="";else if(!I(se))if(R(y,se))L.state=Q.OPEN_TAG,L.tagName=se;else if(se==="/")L.state=Q.CLOSE_TAG,L.tagName="";else if(se==="?")L.state=Q.PROC_INST,L.procInstName=L.procInstBody="";else{if(G(L,"Unencoded <"),L.startTagPosition+1<L.position){var te=L.position-L.startTagPosition;se=new Array(te).join(" ")+se}L.textNode+="<"+se,L.state=Q.TEXT}continue;case Q.SGML_DECL:(L.sgmlDecl+se).toUpperCase()===h?(S(L,"onopencdata"),L.state=Q.CDATA,L.sgmlDecl="",L.cdata=""):L.sgmlDecl+se==="--"?(L.state=Q.COMMENT,L.comment="",L.sgmlDecl=""):(L.sgmlDecl+se).toUpperCase()===d?(L.state=Q.DOCTYPE,(L.doctype||L.sawRoot)&&G(L,"Inappropriately located doctype declaration"),L.doctype="",L.sgmlDecl=""):se===">"?(S(L,"onsgmldeclaration",L.sgmlDecl),L.sgmlDecl="",L.state=Q.TEXT):(O(se)&&(L.state=Q.SGML_DECL_QUOTED),L.sgmlDecl+=se);continue;case Q.SGML_DECL_QUOTED:se===L.q&&(L.state=Q.SGML_DECL,L.q=""),L.sgmlDecl+=se;continue;case Q.DOCTYPE:se===">"?(L.state=Q.TEXT,S(L,"ondoctype",L.doctype),L.doctype=!0):(L.doctype+=se,se==="["?L.state=Q.DOCTYPE_DTD:O(se)&&(L.state=Q.DOCTYPE_QUOTED,L.q=se));continue;case Q.DOCTYPE_QUOTED:L.doctype+=se,se===L.q&&(L.q="",L.state=Q.DOCTYPE);continue;case Q.DOCTYPE_DTD:L.doctype+=se,se==="]"?L.state=Q.DOCTYPE:O(se)&&(L.state=Q.DOCTYPE_DTD_QUOTED,L.q=se);continue;case Q.DOCTYPE_DTD_QUOTED:L.doctype+=se,se===L.q&&(L.state=Q.DOCTYPE_DTD,L.q="");continue;case Q.COMMENT:se==="-"?L.state=Q.COMMENT_ENDING:L.comment+=se;continue;case Q.COMMENT_ENDING:se==="-"?(L.state=Q.COMMENT_ENDED,L.comment=F(L.opt,L.comment),L.comment&&S(L,"oncomment",L.comment),L.comment=""):(L.comment+="-"+se,L.state=Q.COMMENT);continue;case Q.COMMENT_ENDED:se!==">"?(G(L,"Malformed comment"),L.comment+="--"+se,L.state=Q.COMMENT):L.state=Q.TEXT;continue;case Q.CDATA:se==="]"?L.state=Q.CDATA_ENDING:L.cdata+=se;continue;case Q.CDATA_ENDING:se==="]"?L.state=Q.CDATA_ENDING_2:(L.cdata+="]"+se,L.state=Q.CDATA);continue;case Q.CDATA_ENDING_2:se===">"?(L.cdata&&S(L,"oncdata",L.cdata),S(L,"onclosecdata"),L.cdata="",L.state=Q.TEXT):se==="]"?L.cdata+="]":(L.cdata+="]]"+se,L.state=Q.CDATA);continue;case Q.PROC_INST:se==="?"?L.state=Q.PROC_INST_ENDING:I(se)?L.state=Q.PROC_INST_BODY:L.procInstName+=se;continue;case Q.PROC_INST_BODY:if(!L.procInstBody&&I(se))continue;se==="?"?L.state=Q.PROC_INST_ENDING:L.procInstBody+=se;continue;case Q.PROC_INST_ENDING:se===">"?(S(L,"onprocessinginstruction",{name:L.procInstName,body:L.procInstBody}),L.procInstName=L.procInstBody="",L.state=Q.TEXT):(L.procInstBody+="?"+se,L.state=Q.PROC_INST_BODY);continue;case Q.OPEN_TAG:R(g,se)?L.tagName+=se:(oe(L),se===">"?ie(L):se==="/"?L.state=Q.OPEN_TAG_SLASH:(I(se)||G(L,"Invalid character in tag name"),L.state=Q.ATTRIB));continue;case Q.OPEN_TAG_SLASH:se===">"?(ie(L,!0),E(L)):(G(L,"Forward-slash in opening tag not followed by >"),L.state=Q.ATTRIB);continue;case Q.ATTRIB:if(I(se))continue;se===">"?ie(L):se==="/"?L.state=Q.OPEN_TAG_SLASH:R(y,se)?(L.attribName=se,L.attribValue="",L.state=Q.ATTRIB_NAME):G(L,"Invalid attribute name");continue;case Q.ATTRIB_NAME:se==="="?L.state=Q.ATTRIB_VALUE:se===">"?(G(L,"Attribute without value"),L.attribValue=L.attribName,he(L),ie(L)):I(se)?L.state=Q.ATTRIB_NAME_SAW_WHITE:R(g,se)?L.attribName+=se:G(L,"Invalid attribute name");continue;case Q.ATTRIB_NAME_SAW_WHITE:if(se==="=")L.state=Q.ATTRIB_VALUE;else{if(I(se))continue;G(L,"Attribute without value"),L.tag.attributes[L.attribName]="",L.attribValue="",S(L,"onattribute",{name:L.attribName,value:""}),L.attribName="",se===">"?ie(L):R(y,se)?(L.attribName=se,L.state=Q.ATTRIB_NAME):(G(L,"Invalid attribute name"),L.state=Q.ATTRIB)}continue;case Q.ATTRIB_VALUE:if(I(se))continue;O(se)?(L.q=se,L.state=Q.ATTRIB_VALUE_QUOTED):(G(L,"Unquoted attribute value"),L.state=Q.ATTRIB_VALUE_UNQUOTED,L.attribValue=se);continue;case Q.ATTRIB_VALUE_QUOTED:if(se!==L.q){se==="&"?L.state=Q.ATTRIB_VALUE_ENTITY_Q:L.attribValue+=se;continue}he(L),L.q="",L.state=Q.ATTRIB_VALUE_CLOSED;continue;case Q.ATTRIB_VALUE_CLOSED:I(se)?L.state=Q.ATTRIB:se===">"?ie(L):se==="/"?L.state=Q.OPEN_TAG_SLASH:R(y,se)?(G(L,"No whitespace between attributes"),L.attribName=se,L.attribValue="",L.state=Q.ATTRIB_NAME):G(L,"Invalid attribute name");continue;case Q.ATTRIB_VALUE_UNQUOTED:if(!j(se)){se==="&"?L.state=Q.ATTRIB_VALUE_ENTITY_U:L.attribValue+=se;continue}he(L),se===">"?ie(L):L.state=Q.ATTRIB;continue;case Q.CLOSE_TAG:if(L.tagName)se===">"?E(L):R(g,se)?L.tagName+=se:L.script?(L.script+="</"+L.tagName,L.tagName="",L.state=Q.SCRIPT):(I(se)||G(L,"Invalid tagname in closing tag"),L.state=Q.CLOSE_TAG_SAW_WHITE);else{if(I(se))continue;D(y,se)?L.script?(L.script+="</"+se,L.state=Q.SCRIPT):G(L,"Invalid tagname in closing tag."):L.tagName=se}continue;case Q.CLOSE_TAG_SAW_WHITE:if(I(se))continue;se===">"?E(L):G(L,"Invalid characters in closing tag");continue;case Q.TEXT_ENTITY:case Q.ATTRIB_VALUE_ENTITY_Q:case Q.ATTRIB_VALUE_ENTITY_U:var me,P;switch(L.state){case Q.TEXT_ENTITY:me=Q.TEXT,P="textNode";break;case Q.ATTRIB_VALUE_ENTITY_Q:me=Q.ATTRIB_VALUE_QUOTED,P="attribValue";break;case Q.ATTRIB_VALUE_ENTITY_U:me=Q.ATTRIB_VALUE_UNQUOTED,P="attribValue";break}se===";"?(L[P]+=k(L),L.entity="",L.state=me):R(L.entity.length?B:w,se)?L.entity+=se:(G(L,"Invalid character in entity name"),L[P]+="&"+L.entity+se,L.entity="",L.state=me);continue;default:throw new Error(L,"Unknown state: "+L.state)}return L.position>=L.bufferCheckPosition&&A(L),L}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var _=String.fromCharCode,L=Math.floor,Z=function(){var se=16384,$=[],te,me,P=-1,de=arguments.length;if(!de)return"";for(var U="";++P<de;){var b=Number(arguments[P]);if(!isFinite(b)||b<0||b>1114111||L(b)!==b)throw RangeError("Invalid code point: "+b);b<=65535?$.push(b):(b-=65536,te=(b>>10)+55296,me=b%1024+56320,$.push(te,me)),(P+1===de||$.length>se)&&(U+=_.apply(null,$),$.length=0)}return U};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Z,configurable:!0,writable:!0}):String.fromCodePoint=Z}()})(r)}(Lw);var ip={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}},VF=ip.isArray,ap={copyOptions:function(r){var e,t={};for(e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);return t},ensureFlagExists:function(r,e){(!(r in e)||typeof e[r]!="boolean")&&(e[r]=!1)},ensureSpacesExists:function(r){(!("spaces"in r)||typeof r.spaces!="number"&&typeof r.spaces!="string")&&(r.spaces=0)},ensureAlwaysArrayExists:function(r){(!("alwaysArray"in r)||typeof r.alwaysArray!="boolean"&&!VF(r.alwaysArray))&&(r.alwaysArray=!1)},ensureKeyExists:function(r,e){(!(r+"Key"in e)||typeof e[r+"Key"]!="string")&&(e[r+"Key"]=e.compact?"_"+r:r)},checkFnExists:function(r,e){return r+"Fn"in e}},GF=Lw,Vt=ap,Ss=ip.isArray,Qe,mt;function zF(r){return Qe=Vt.copyOptions(r),Vt.ensureFlagExists("ignoreDeclaration",Qe),Vt.ensureFlagExists("ignoreInstruction",Qe),Vt.ensureFlagExists("ignoreAttributes",Qe),Vt.ensureFlagExists("ignoreText",Qe),Vt.ensureFlagExists("ignoreComment",Qe),Vt.ensureFlagExists("ignoreCdata",Qe),Vt.ensureFlagExists("ignoreDoctype",Qe),Vt.ensureFlagExists("compact",Qe),Vt.ensureFlagExists("alwaysChildren",Qe),Vt.ensureFlagExists("addParent",Qe),Vt.ensureFlagExists("trim",Qe),Vt.ensureFlagExists("nativeType",Qe),Vt.ensureFlagExists("nativeTypeAttributes",Qe),Vt.ensureFlagExists("sanitize",Qe),Vt.ensureFlagExists("instructionHasAttributes",Qe),Vt.ensureFlagExists("captureSpacesBetweenElements",Qe),Vt.ensureAlwaysArrayExists(Qe),Vt.ensureKeyExists("declaration",Qe),Vt.ensureKeyExists("instruction",Qe),Vt.ensureKeyExists("attributes",Qe),Vt.ensureKeyExists("text",Qe),Vt.ensureKeyExists("comment",Qe),Vt.ensureKeyExists("cdata",Qe),Vt.ensureKeyExists("doctype",Qe),Vt.ensureKeyExists("type",Qe),Vt.ensureKeyExists("name",Qe),Vt.ensureKeyExists("elements",Qe),Vt.ensureKeyExists("parent",Qe),Qe}function q1(r){var e=Number(r);if(!isNaN(e))return e;var t=r.toLowerCase();return t==="true"?!0:t==="false"?!1:r}function Ko(r,e){var t;if(Qe.compact){if(!mt[Qe[r+"Key"]]&&(Ss(Qe.alwaysArray)?Qe.alwaysArray.indexOf(Qe[r+"Key"])!==-1:Qe.alwaysArray)&&(mt[Qe[r+"Key"]]=[]),mt[Qe[r+"Key"]]&&!Ss(mt[Qe[r+"Key"]])&&(mt[Qe[r+"Key"]]=[mt[Qe[r+"Key"]]]),r+"Fn"in Qe&&typeof e=="string"&&(e=Qe[r+"Fn"](e,mt)),r==="instruction"&&("instructionFn"in Qe||"instructionNameFn"in Qe)){for(t in e)if(e.hasOwnProperty(t))if("instructionFn"in Qe)e[t]=Qe.instructionFn(e[t],t,mt);else{var n=e[t];delete e[t],e[Qe.instructionNameFn(t,n,mt)]=n}}Ss(mt[Qe[r+"Key"]])?mt[Qe[r+"Key"]].push(e):mt[Qe[r+"Key"]]=e}else{mt[Qe.elementsKey]||(mt[Qe.elementsKey]=[]);var A={};if(A[Qe.typeKey]=r,r==="instruction"){for(t in e)if(e.hasOwnProperty(t))break;A[Qe.nameKey]="instructionNameFn"in Qe?Qe.instructionNameFn(t,e,mt):t,Qe.instructionHasAttributes?(A[Qe.attributesKey]=e[t][Qe.attributesKey],"instructionFn"in Qe&&(A[Qe.attributesKey]=Qe.instructionFn(A[Qe.attributesKey],t,mt))):("instructionFn"in Qe&&(e[t]=Qe.instructionFn(e[t],t,mt)),A[Qe.instructionKey]=e[t])}else r+"Fn"in Qe&&(e=Qe[r+"Fn"](e,mt)),A[Qe[r+"Key"]]=e;Qe.addParent&&(A[Qe.parentKey]=mt),mt[Qe.elementsKey].push(A)}}function X1(r){if("attributesFn"in Qe&&r&&(r=Qe.attributesFn(r,mt)),(Qe.trim||"attributeValueFn"in Qe||"attributeNameFn"in Qe||Qe.nativeTypeAttributes)&&r){var e;for(e in r)if(r.hasOwnProperty(e)&&(Qe.trim&&(r[e]=r[e].trim()),Qe.nativeTypeAttributes&&(r[e]=q1(r[e])),"attributeValueFn"in Qe&&(r[e]=Qe.attributeValueFn(r[e],e,mt)),"attributeNameFn"in Qe)){var t=r[e];delete r[e],r[Qe.attributeNameFn(e,r[e],mt)]=t}}return r}function WF(r){var e={};if(r.body&&(r.name.toLowerCase()==="xml"||Qe.instructionHasAttributes)){for(var t=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,n;(n=t.exec(r.body))!==null;)e[n[1]]=n[2]||n[3]||n[4];e=X1(e)}if(r.name.toLowerCase()==="xml"){if(Qe.ignoreDeclaration)return;mt[Qe.declarationKey]={},Object.keys(e).length&&(mt[Qe.declarationKey][Qe.attributesKey]=e),Qe.addParent&&(mt[Qe.declarationKey][Qe.parentKey]=mt)}else{if(Qe.ignoreInstruction)return;Qe.trim&&(r.body=r.body.trim());var A={};Qe.instructionHasAttributes&&Object.keys(e).length?(A[r.name]={},A[r.name][Qe.attributesKey]=e):A[r.name]=r.body,Ko("instruction",A)}}function $F(r,e){var t;if(typeof r=="object"&&(e=r.attributes,r=r.name),e=X1(e),"elementNameFn"in Qe&&(r=Qe.elementNameFn(r,mt)),Qe.compact){if(t={},!Qe.ignoreAttributes&&e&&Object.keys(e).length){t[Qe.attributesKey]={};var n;for(n in e)e.hasOwnProperty(n)&&(t[Qe.attributesKey][n]=e[n])}!(r in mt)&&(Ss(Qe.alwaysArray)?Qe.alwaysArray.indexOf(r)!==-1:Qe.alwaysArray)&&(mt[r]=[]),mt[r]&&!Ss(mt[r])&&(mt[r]=[mt[r]]),Ss(mt[r])?mt[r].push(t):mt[r]=t}else mt[Qe.elementsKey]||(mt[Qe.elementsKey]=[]),t={},t[Qe.typeKey]="element",t[Qe.nameKey]=r,!Qe.ignoreAttributes&&e&&Object.keys(e).length&&(t[Qe.attributesKey]=e),Qe.alwaysChildren&&(t[Qe.elementsKey]=[]),mt[Qe.elementsKey].push(t);t[Qe.parentKey]=mt,mt=t}function qF(r){Qe.ignoreText||!r.trim()&&!Qe.captureSpacesBetweenElements||(Qe.trim&&(r=r.trim()),Qe.nativeType&&(r=q1(r)),Qe.sanitize&&(r=r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),Ko("text",r))}function XF(r){Qe.ignoreComment||(Qe.trim&&(r=r.trim()),Ko("comment",r))}function YF(r){var e=mt[Qe.parentKey];Qe.addParent||delete mt[Qe.parentKey],mt=e}function JF(r){Qe.ignoreCdata||(Qe.trim&&(r=r.trim()),Ko("cdata",r))}function ZF(r){Qe.ignoreDoctype||(r=r.replace(/^ /,""),Qe.trim&&(r=r.trim()),Ko("doctype",r))}function e3(r){r.note=r}var Y1=function(r,e){var t=GF.parser(!0,{}),n={};if(mt=n,Qe=zF(e),t.opt={strictEntities:!0},t.onopentag=$F,t.ontext=qF,t.oncomment=XF,t.onclosetag=YF,t.onerror=e3,t.oncdata=JF,t.ondoctype=ZF,t.onprocessinginstruction=WF,t.write(r).close(),n[Qe.elementsKey]){var A=n[Qe.elementsKey];delete n[Qe.elementsKey],n[Qe.elementsKey]=A,delete n.text}return n},J1=ap,t3=Y1;function r3(r){var e=J1.copyOptions(r);return J1.ensureSpacesExists(e),e}var n3=function(r,e){var t,n,A,i;return t=r3(e),n=t3(r,t),i="compact"in t&&t.compact?"_parent":"parent","addParent"in t&&t.addParent?A=JSON.stringify(n,function(a,s){return a===i?"_":s},t.spaces):A=JSON.stringify(n,null,t.spaces),A.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},tr=ap,A3=ip.isArray,hn,fn;function i3(r){var e=tr.copyOptions(r);return tr.ensureFlagExists("ignoreDeclaration",e),tr.ensureFlagExists("ignoreInstruction",e),tr.ensureFlagExists("ignoreAttributes",e),tr.ensureFlagExists("ignoreText",e),tr.ensureFlagExists("ignoreComment",e),tr.ensureFlagExists("ignoreCdata",e),tr.ensureFlagExists("ignoreDoctype",e),tr.ensureFlagExists("compact",e),tr.ensureFlagExists("indentText",e),tr.ensureFlagExists("indentCdata",e),tr.ensureFlagExists("indentAttributes",e),tr.ensureFlagExists("indentInstruction",e),tr.ensureFlagExists("fullTagEmptyElement",e),tr.ensureFlagExists("noQuotesForNativeAttributes",e),tr.ensureSpacesExists(e),typeof e.spaces=="number"&&(e.spaces=Array(e.spaces+1).join(" ")),tr.ensureKeyExists("declaration",e),tr.ensureKeyExists("instruction",e),tr.ensureKeyExists("attributes",e),tr.ensureKeyExists("text",e),tr.ensureKeyExists("comment",e),tr.ensureKeyExists("cdata",e),tr.ensureKeyExists("doctype",e),tr.ensureKeyExists("type",e),tr.ensureKeyExists("name",e),tr.ensureKeyExists("elements",e),e}function $A(r,e,t){return(!t&&r.spaces?`
48
+ `:"")+Array(e+1).join(r.spaces)}function Pu(r,e,t){if(e.ignoreAttributes)return"";"attributesFn"in e&&(r=e.attributesFn(r,fn,hn));var n,A,i,a,s=[];for(n in r)r.hasOwnProperty(n)&&r[n]!==null&&r[n]!==void 0&&(a=e.noQuotesForNativeAttributes&&typeof r[n]!="string"?"":'"',A=""+r[n],A=A.replace(/"/g,"&quot;"),i="attributeNameFn"in e?e.attributeNameFn(n,A,fn,hn):n,s.push(e.spaces&&e.indentAttributes?$A(e,t+1,!1):" "),s.push(i+"="+a+("attributeValueFn"in e?e.attributeValueFn(A,n,fn,hn):A)+a));return r&&Object.keys(r).length&&e.spaces&&e.indentAttributes&&s.push($A(e,t,!1)),s.join("")}function Z1(r,e,t){return hn=r,fn="xml",e.ignoreDeclaration?"":"<?xml"+Pu(r[e.attributesKey],e,t)+"?>"}function ey(r,e,t){if(e.ignoreInstruction)return"";var n;for(n in r)if(r.hasOwnProperty(n))break;var A="instructionNameFn"in e?e.instructionNameFn(n,r[n],fn,hn):n;if(typeof r[n]=="object")return hn=r,fn=A,"<?"+A+Pu(r[n][e.attributesKey],e,t)+"?>";var i=r[n]?r[n]:"";return"instructionFn"in e&&(i=e.instructionFn(i,n,fn,hn)),"<?"+A+(i?" "+i:"")+"?>"}function ty(r,e){return e.ignoreComment?"":"<!--"+("commentFn"in e?e.commentFn(r,fn,hn):r)+"-->"}function ry(r,e){return e.ignoreCdata?"":"<![CDATA["+("cdataFn"in e?e.cdataFn(r,fn,hn):r.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function ny(r,e){return e.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in e?e.doctypeFn(r,fn,hn):r)+">"}function sp(r,e){return e.ignoreText?"":(r=""+r,r=r.replace(/&amp;/g,"&"),r=r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in e?e.textFn(r,fn,hn):r)}function a3(r,e){var t;if(r.elements&&r.elements.length)for(t=0;t<r.elements.length;++t)switch(r.elements[t][e.typeKey]){case"text":if(e.indentText)return!0;break;case"cdata":if(e.indentCdata)return!0;break;case"instruction":if(e.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function s3(r,e,t){hn=r,fn=r.name;var n=[],A="elementNameFn"in e?e.elementNameFn(r.name,r):r.name;n.push("<"+A),r[e.attributesKey]&&n.push(Pu(r[e.attributesKey],e,t));var i=r[e.elementsKey]&&r[e.elementsKey].length||r[e.attributesKey]&&r[e.attributesKey]["xml:space"]==="preserve";return i||("fullTagEmptyElementFn"in e?i=e.fullTagEmptyElementFn(r.name,r):i=e.fullTagEmptyElement),i?(n.push(">"),r[e.elementsKey]&&r[e.elementsKey].length&&(n.push(Ay(r[e.elementsKey],e,t+1)),hn=r,fn=r.name),n.push(e.spaces&&a3(r,e)?`
49
+ `+Array(t+1).join(e.spaces):""),n.push("</"+A+">")):n.push("/>"),n.join("")}function Ay(r,e,t,n){return r.reduce(function(A,i){var a=$A(e,t,n&&!A);switch(i.type){case"element":return A+a+s3(i,e,t);case"comment":return A+a+ty(i[e.commentKey],e);case"doctype":return A+a+ny(i[e.doctypeKey],e);case"cdata":return A+(e.indentCdata?a:"")+ry(i[e.cdataKey],e);case"text":return A+(e.indentText?a:"")+sp(i[e.textKey],e);case"instruction":var s={};return s[i[e.nameKey]]=i[e.attributesKey]?i:i[e.instructionKey],A+(e.indentInstruction?a:"")+ey(s,e,t)}},"")}function iy(r,e,t){var n;for(n in r)if(r.hasOwnProperty(n))switch(n){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||t)return!0;break;case e.cdataKey:if(e.indentCdata||t)return!0;break;case e.instructionKey:if(e.indentInstruction||t)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function o3(r,e,t,n,A){hn=r,fn=e;var i="elementNameFn"in t?t.elementNameFn(e,r):e;if(typeof r>"u"||r===null||r==="")return"fullTagEmptyElementFn"in t&&t.fullTagEmptyElementFn(e,r)||t.fullTagEmptyElement?"<"+i+"></"+i+">":"<"+i+"/>";var a=[];if(e){if(a.push("<"+i),typeof r!="object")return a.push(">"+sp(r,t)+"</"+i+">"),a.join("");r[t.attributesKey]&&a.push(Pu(r[t.attributesKey],t,n));var s=iy(r,t,!0)||r[t.attributesKey]&&r[t.attributesKey]["xml:space"]==="preserve";if(s||("fullTagEmptyElementFn"in t?s=t.fullTagEmptyElementFn(e,r):s=t.fullTagEmptyElement),s)a.push(">");else return a.push("/>"),a.join("")}return a.push(ay(r,t,n+1,!1)),hn=r,fn=e,e&&a.push((A?$A(t,n,!1):"")+"</"+i+">"),a.join("")}function ay(r,e,t,n){var A,i,a,s=[];for(i in r)if(r.hasOwnProperty(i))for(a=A3(r[i])?r[i]:[r[i]],A=0;A<a.length;++A){switch(i){case e.declarationKey:s.push(Z1(a[A],e,t));break;case e.instructionKey:s.push((e.indentInstruction?$A(e,t,n):"")+ey(a[A],e,t));break;case e.attributesKey:case e.parentKey:break;case e.textKey:s.push((e.indentText?$A(e,t,n):"")+sp(a[A],e));break;case e.cdataKey:s.push((e.indentCdata?$A(e,t,n):"")+ry(a[A],e));break;case e.doctypeKey:s.push($A(e,t,n)+ny(a[A],e));break;case e.commentKey:s.push($A(e,t,n)+ty(a[A],e));break;default:s.push($A(e,t,n)+o3(a[A],i,e,t,iy(a[A],e)))}n=n&&!s.length}return s.join("")}var sy=function(r,e){e=i3(e);var t=[];return hn=r,fn="_root_",e.compact?t.push(ay(r,e,0,!0)):(r[e.declarationKey]&&t.push(Z1(r[e.declarationKey],e,0)),r[e.elementsKey]&&r[e.elementsKey].length&&t.push(Ay(r[e.elementsKey],e,0,!t.length))),t.join("")},l3=sy,u3=function(r,e){r instanceof Buffer&&(r=r.toString());var t=null;if(typeof r=="string")try{t=JSON.parse(r)}catch{throw new Error("The JSON structure is invalid")}else t=r;return l3(t,e)},c3=Y1,h3=n3,f3=sy,d3=u3,oy={xml2js:c3,xml2json:h3,js2xml:f3,json2xml:d3};const op=r=>{switch(r.type){case void 0:case"element":const e=new g3(r.name,r.attributes),t=r.elements||[];for(const n of t){const A=op(n);A!==void 0&&e.push(A)}return e;case"text":return r.text;default:return}};class p3 extends Je{}class g3 extends Te{static fromXmlString(e){const t=oy.xml2js(e,{compact:!1});return op(t)}constructor(e,t){super(e),t&&this.root.push(new p3(t))}push(e){this.root.push(e)}}class m3 extends Te{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}class ly extends Te{constructor(e,t){super(e),t&&(this.root=t.root)}}const dn=r=>{if(isNaN(r))throw new Error(`Invalid value '${r}' specified. Must be an integer.`);return Math.floor(r)},Ru=r=>{const e=dn(r);if(e<0)throw new Error(`Invalid value '${r}' specified. Must be a positive integer.`);return e},uy=(r,e)=>{const t=e*2;if(r.length!==t||isNaN(+`0x${r}`))throw new Error(`Invalid hex value '${r}'. Expected ${t} digit hex value`);return r},cy=r=>uy(r,1),lp=r=>{const e=r.slice(-2),t=r.substring(0,r.length-2);return`${Number(t)}${e}`},hy=r=>{const e=lp(r);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},Fs=r=>{if(r==="auto")return r;const e=r.charAt(0)==="#"?r.substring(1):r;return uy(e,3)},fi=r=>typeof r=="string"?lp(r):dn(r),v3=r=>typeof r=="string"?hy(r):Ru(r),rn=r=>typeof r=="string"?hy(r):Ru(r),w3=r=>{const e=r.substring(0,r.length-1);return`${Number(e)}%`},y3=r=>typeof r=="number"?dn(r):r.slice(-1)==="%"?w3(r):lp(r),B3=Ru,b3=Ru,x3=r=>r.toISOString();class Me extends Te{constructor(e,t=!0){super(e),t!==!0&&this.root.push(new pr({val:t}))}}class up extends Te{constructor(e,t){super(e),this.root.push(new pr({val:v3(t)}))}}class Ia extends Te{constructor(e,t){super(e),this.root.push(new pr({val:t}))}}const jo=(r,e)=>new pn({name:r,attributes:{value:{key:"w:val",value:e}}});class cp extends Te{constructor(e,t){super(e),this.root.push(new pr({val:t}))}}class C3 extends Te{constructor(e,t){super(e),this.root.push(new pr({val:t}))}}class Ta extends Te{constructor(e,t){super(e),this.root.push(t)}}class pn extends Te{constructor({name:e,attributes:t,children:n}){super(e),t&&this.root.push(new ui(t)),n&&this.root.push(...n)}}const $n={START:"start",CENTER:"center",LEFT:"left"};class E3 extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{val:"w:val"})}}class fy extends Te{constructor(e){super("w:jc"),this.root.push(new E3({val:e}))}}class qt extends Te{constructor(e,{color:t,size:n,space:A,style:i}){super(e),this.root.push(new S3({style:i,color:t===void 0?void 0:Fs(t),size:n===void 0?void 0:B3(n),space:A===void 0?void 0:b3(A)}))}}class S3 extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const Du={SINGLE:"single",NONE:"none"};class F3 extends li{constructor(e){super("w:pBdr"),e.top&&this.root.push(new qt("w:top",e.top)),e.bottom&&this.root.push(new qt("w:bottom",e.bottom)),e.left&&this.root.push(new qt("w:left",e.left)),e.right&&this.root.push(new qt("w:right",e.right))}}class U3 extends Te{constructor(){super("w:pBdr");const e=new qt("w:bottom",{color:"auto",space:1,style:Du.SINGLE,size:6});this.root.push(e)}}class I3 extends Te{constructor({start:e,end:t,left:n,right:A,hanging:i,firstLine:a}){super("w:ind"),this.root.push(new ui({start:{key:"w:start",value:e===void 0?void 0:fi(e)},end:{key:"w:end",value:t===void 0?void 0:fi(t)},left:{key:"w:left",value:n===void 0?void 0:fi(n)},right:{key:"w:right",value:A===void 0?void 0:fi(A)},hanging:{key:"w:hanging",value:i===void 0?void 0:rn(i)},firstLine:{key:"w:firstLine",value:a===void 0?void 0:rn(a)}}))}}let T3=class extends Te{constructor(){super("w:br")}};const hp={BEGIN:"begin",END:"end",SEPARATE:"separate"};class fp extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class ku extends Te{constructor(e){super("w:fldChar"),this.root.push(new fp({type:hp.BEGIN,dirty:e}))}}class Hu extends Te{constructor(e){super("w:fldChar"),this.root.push(new fp({type:hp.SEPARATE,dirty:e}))}}class Mu extends Te{constructor(e){super("w:fldChar"),this.root.push(new fp({type:hp.END,dirty:e}))}}const Us={DEFAULT:"default",PRESERVE:"preserve"};class Is extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{space:"xml:space"})}}class _3 extends Te{constructor(){super("w:instrText"),this.root.push(new Is({space:Us.PRESERVE})),this.root.push("PAGE")}}class L3 extends Te{constructor(){super("w:instrText"),this.root.push(new Is({space:Us.PRESERVE})),this.root.push("NUMPAGES")}}class Q3 extends Te{constructor(){super("w:instrText"),this.root.push(new Is({space:Us.PRESERVE})),this.root.push("SECTIONPAGES")}}class N3 extends Te{constructor(){super("w:instrText"),this.root.push(new Is({space:Us.PRESERVE})),this.root.push("SECTION")}}class O3 extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class Ku extends Te{constructor({fill:e,color:t,type:n}){super("w:shd"),this.root.push(new O3({fill:e===void 0?void 0:Fs(e),color:t===void 0?void 0:Fs(t),type:n}))}}class P3 extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const R3={DOT:"dot"};class D3 extends Te{constructor(e){super("w:em"),this.root.push(new pr({val:e}))}}class k3 extends D3{constructor(e=R3.DOT){super(e)}}class H3 extends Te{constructor(e){super("w:spacing"),this.root.push(new pr({val:fi(e)}))}}class M3 extends Te{constructor(e){super("w:color"),this.root.push(new pr({val:Fs(e)}))}}class K3 extends Te{constructor(e){super("w:highlight"),this.root.push(new pr({val:e}))}}class j3 extends Te{constructor(e){super("w:highlightCs"),this.root.push(new pr({val:e}))}}const V3=r=>new pn({name:"w:lang",attributes:{value:{key:"w:val",value:r.value},eastAsia:{key:"w:eastAsia",value:r.eastAsia},bidirectional:{key:"w:bidi",value:r.bidirectional}}});class dy extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class dp extends Te{constructor(e,t){if(super("w:rFonts"),typeof e=="string"){const n=e;this.root.push(new dy({ascii:n,cs:n,eastAsia:n,hAnsi:n,hint:t}))}else{const n=e;this.root.push(new dy(n))}}}let py=class extends Te{constructor(e){super("w:vertAlign"),this.root.push(new pr({val:e}))}};class G3 extends py{constructor(){super("superscript")}}class z3 extends py{constructor(){super("subscript")}}const gy={SINGLE:"single"};class W3 extends Te{constructor(e=gy.SINGLE,t){super("w:u"),this.root.push(new pr({val:e,color:t===void 0?void 0:Fs(t)}))}}class _a extends li{constructor(e){var t,n;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new Me("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new Me("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new Me("w:bCs",(t=e.boldComplexScript)!=null?t:e.bold)),e.italics!==void 0&&this.push(new Me("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new Me("w:iCs",(n=e.italicsComplexScript)!=null?n:e.italics)),e.underline&&this.push(new W3(e.underline.type,e.underline.color)),e.effect&&this.push(new Ia("w:effect",e.effect)),e.emphasisMark&&this.push(new k3(e.emphasisMark.type)),e.color&&this.push(new M3(e.color)),e.kern&&this.push(new up("w:kern",e.kern)),e.position&&this.push(new Ia("w:position",e.position)),e.size!==void 0&&this.push(new up("w:sz",e.size));const A=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;A&&this.push(new up("w:szCs",A)),e.rightToLeft!==void 0&&this.push(new Me("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new Me("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new Me("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new Me("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new Me("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new z3),e.superScript&&this.push(new G3),e.style&&this.push(new Ia("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new dp(e.font)):"name"in e.font?this.push(new dp(e.font.name,e.font.hint)):this.push(new dp(e.font))),e.highlight&&this.push(new K3(e.highlight));const i=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;i&&this.push(new j3(i)),e.characterSpacing&&this.push(new H3(e.characterSpacing)),e.emboss!==void 0&&this.push(new Me("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new Me("w:imprint",e.imprint)),e.shading&&this.push(new Ku(e.shading)),e.revision&&this.push(new $3(e.revision)),e.border&&this.push(new qt("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new Me("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new Me("w:vanish",e.vanish)),e.specVanish&&this.push(new Me("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new cp("w:w",e.scale)),e.language&&this.push(V3(e.language)),e.math&&this.push(new Me("w:oMath",e.math))}push(e){this.root.push(e)}}class $3 extends Te{constructor(e){super("w:rPrChange"),this.root.push(new P3({id:e.id,author:e.author,date:e.date})),this.addChildElement(new _a(e))}}class pp extends Te{constructor(e){var t;return super("w:t"),typeof e=="string"?(this.root.push(new Is({space:Us.PRESERVE})),this.root.push(e),this):(this.root.push(new Is({space:(t=e.space)!=null?t:Us.DEFAULT})),this.root.push(e.text),this)}}const ju={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class Vo extends Te{constructor(e){if(super("w:r"),_e(this,"properties"),this.properties=new _a(e),this.root.push(this.properties),e.break)for(let t=0;t<e.break;t++)this.root.push(new T3);if(e.children)for(const t of e.children){if(typeof t=="string"){switch(t){case ju.CURRENT:this.root.push(new ku),this.root.push(new _3),this.root.push(new Hu),this.root.push(new Mu);break;case ju.TOTAL_PAGES:this.root.push(new ku),this.root.push(new L3),this.root.push(new Hu),this.root.push(new Mu);break;case ju.TOTAL_PAGES_IN_SECTION:this.root.push(new ku),this.root.push(new Q3),this.root.push(new Hu),this.root.push(new Mu);break;case ju.CURRENT_SECTION:this.root.push(new ku),this.root.push(new N3),this.root.push(new Hu),this.root.push(new Mu);break;default:this.root.push(new pp(t));break}continue}this.root.push(t)}else e.text&&this.root.push(new pp(e.text))}}class gr extends Vo{constructor(e){if(typeof e=="string")return super({}),this.root.push(new pp(e)),this;super(e)}}let q3="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",X3=(r,e=21)=>(t=e)=>{let n="",A=t;for(;A--;)n+=r[Math.random()*r.length|0];return n},Y3=(r=21)=>{let e="",t=r;for(;t--;)e+=q3[Math.random()*64|0];return e};const xA=r=>Math.floor(r*72*20),Vu=(r=0)=>{let e=r;return()=>++e},J3=()=>Vu(),Z3=()=>Vu(1),eU=()=>Vu(),tU=()=>Vu(),my=()=>Y3().toLowerCase(),Go=r=>X3("1234567890abcdef",r)(),rU=()=>`${Go(8)}-${Go(4)}-${Go(4)}-${Go(4)}-${Go(12)}`,nU={PAGE:"page"},AU={PAGE:"page"};class iU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{x:"x",y:"y"})}}class aU extends Te{constructor(){super("wp:simplePos"),this.root.push(new iU({x:0,y:0}))}}class vy extends Te{constructor(e){super("wp:align"),this.root.push(e)}}class wy extends Te{constructor(e){super("wp:posOffset"),this.root.push(e.toString())}}class sU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{relativeFrom:"relativeFrom"})}}class oU extends Te{constructor(e){if(super("wp:positionH"),this.root.push(new sU({relativeFrom:e.relative||nU.PAGE})),e.align)this.root.push(new vy(e.align));else if(e.offset!==void 0)this.root.push(new wy(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}}class lU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{relativeFrom:"relativeFrom"})}}class uU extends Te{constructor(e){if(super("wp:positionV"),this.root.push(new lU({relativeFrom:e.relative||AU.PAGE})),e.align)this.root.push(new vy(e.align));else if(e.offset!==void 0)this.root.push(new wy(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}}class cU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{uri:"uri"})}}class hU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{embed:"r:embed",cstate:"cstate"})}}class fU extends Te{constructor(e){super("a:blip"),this.root.push(new hU({embed:`rId{${e.fileName}}`,cstate:"none"}))}}class dU extends Te{constructor(){super("a:srcRect")}}class pU extends Te{constructor(){super("a:fillRect")}}class gU extends Te{constructor(){super("a:stretch"),this.root.push(new pU)}}class mU extends Te{constructor(e){super("pic:blipFill"),this.root.push(new fU(e)),this.root.push(new dU),this.root.push(new gU)}}class vU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}}class wU extends Te{constructor(){super("a:picLocks"),this.root.push(new vU({noChangeAspect:1,noChangeArrowheads:1}))}}class yU extends Te{constructor(){super("pic:cNvPicPr"),this.root.push(new wU)}}const yy=(r,e)=>new pn({name:"a:hlinkClick",attributes:ys(Nt({},e?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${r}`}})});class BU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}}class bU extends Te{constructor(){super("pic:cNvPr"),this.root.push(new BU({id:0,name:"",descr:""}))}prepForXml(e){for(let t=e.stack.length-1;t>=0;t--){const n=e.stack[t];if(n instanceof mp){this.root.push(yy(n.linkId,!1));break}}return super.prepForXml(e)}}class xU extends Te{constructor(){super("pic:nvPicPr"),this.root.push(new bU),this.root.push(new yU)}}class CU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{xmlns:"xmlns:pic"})}}class EU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class SU extends Te{constructor(e,t){super("a:ext"),_e(this,"attributes"),this.attributes=new EU({cx:e,cy:t}),this.root.push(this.attributes)}}class FU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{x:"x",y:"y"})}}class UU extends Te{constructor(){super("a:off"),this.root.push(new FU({x:0,y:0}))}}class IU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}}class TU extends Te{constructor(e){var t,n;super("a:xfrm"),_e(this,"extents"),this.root.push(new IU({flipVertical:(t=e.flip)==null?void 0:t.vertical,flipHorizontal:(n=e.flip)==null?void 0:n.horizontal,rotation:e.rotation})),this.extents=new SU(e.emus.x,e.emus.y),this.root.push(new UU),this.root.push(this.extents)}}const By=()=>new pn({name:"a:noFill"}),_U=r=>new pn({name:"a:schemeClr",attributes:{value:{key:"val",value:r.value}}}),LU=r=>new pn({name:"a:srgbClr",attributes:{value:{key:"val",value:r.value}}}),by=r=>new pn({name:"a:solidFill",children:[r.type==="rgb"?LU(r):_U(r)]}),QU=r=>new pn({name:"a:ln",attributes:{width:{key:"w",value:r.width},cap:{key:"cap",value:r.cap},compoundLine:{key:"cmpd",value:r.compoundLine},align:{key:"algn",value:r.align}},children:[r.type==="noFill"?By():r.solidFillType==="rgb"?by({type:"rgb",value:r.value}):by({type:"scheme",value:r.value})]});class NU extends Te{constructor(){super("a:avLst")}}class OU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{prst:"prst"})}}class PU extends Te{constructor(){super("a:prstGeom"),this.root.push(new OU({prst:"rect"})),this.root.push(new NU)}}class RU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{bwMode:"bwMode"})}}class DU extends Te{constructor({outline:e,transform:t}){super("pic:spPr"),_e(this,"form"),this.root.push(new RU({bwMode:"auto"})),this.form=new TU(t),this.root.push(this.form),this.root.push(new PU),e&&(this.root.push(By()),this.root.push(QU(e)))}}class kU extends Te{constructor({mediaData:e,transform:t,outline:n}){super("pic:pic"),this.root.push(new CU({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new xU),this.root.push(new mU(e)),this.root.push(new DU({transform:t,outline:n}))}}class HU extends Te{constructor({mediaData:e,transform:t,outline:n}){super("a:graphicData"),_e(this,"pic"),this.root.push(new cU({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new kU({mediaData:e,transform:t,outline:n}),this.root.push(this.pic)}}class MU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{a:"xmlns:a"})}}class xy extends Te{constructor({mediaData:e,transform:t,outline:n}){super("a:graphic"),_e(this,"data"),this.root.push(new MU({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new HU({mediaData:e,transform:t,outline:n}),this.root.push(this.data)}}const Gu={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},KU={BOTH_SIDES:"bothSides"};class Cy extends Te{constructor(){super("wp:wrapNone")}}class jU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}}class VU extends Te{constructor(e,t={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new jU({wrapText:e.side||KU.BOTH_SIDES,distT:t.top,distB:t.bottom,distL:t.left,distR:t.right}))}}class GU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class zU extends Te{constructor(e={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new GU({distT:e.top,distB:e.bottom}))}}class WU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class $U extends Te{constructor(e={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new WU({distT:e.top,distB:e.bottom}))}}class Ey extends Te{constructor({name:e,description:t,title:n}={name:"",description:"",title:""}){super("wp:docPr"),_e(this,"docPropertiesUniqueNumericId",eU()),this.root.push(new ui({id:{key:"id",value:this.docPropertiesUniqueNumericId()},name:{key:"name",value:e},description:{key:"descr",value:t},title:{key:"title",value:n}}))}prepForXml(e){for(let t=e.stack.length-1;t>=0;t--){const n=e.stack[t];if(n instanceof mp){this.root.push(yy(n.linkId,!0));break}}return super.prepForXml(e)}}const Sy=({top:r,right:e,bottom:t,left:n})=>new pn({name:"wp:effectExtent",attributes:{top:{key:"t",value:r},right:{key:"r",value:e},bottom:{key:"b",value:t},left:{key:"l",value:n}}});class qU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class Fy extends Te{constructor(e,t){super("wp:extent"),_e(this,"attributes"),this.attributes=new qU({cx:e,cy:t}),this.root.push(this.attributes)}}class XU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}}class YU extends Te{constructor(){super("a:graphicFrameLocks"),this.root.push(new XU({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}class Uy extends Te{constructor(){super("wp:cNvGraphicFramePr"),this.root.push(new YU)}}class JU extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}}class ZU extends Te{constructor({mediaData:e,transform:t,drawingOptions:n}){super("wp:anchor");const A=Nt({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},n.floating);if(this.root.push(new JU({distT:A.margins&&A.margins.top||0,distB:A.margins&&A.margins.bottom||0,distL:A.margins&&A.margins.left||0,distR:A.margins&&A.margins.right||0,simplePos:"0",allowOverlap:A.allowOverlap===!0?"1":"0",behindDoc:A.behindDocument===!0?"1":"0",locked:A.lockAnchor===!0?"1":"0",layoutInCell:A.layoutInCell===!0?"1":"0",relativeHeight:A.zIndex?A.zIndex:t.emus.y})),this.root.push(new aU),this.root.push(new oU(A.horizontalPosition)),this.root.push(new uU(A.verticalPosition)),this.root.push(new Fy(t.emus.x,t.emus.y)),this.root.push(Sy({top:0,right:0,bottom:0,left:0})),n.floating!==void 0&&n.floating.wrap!==void 0)switch(n.floating.wrap.type){case Gu.SQUARE:this.root.push(new VU(n.floating.wrap,n.floating.margins));break;case Gu.TIGHT:this.root.push(new zU(n.floating.margins));break;case Gu.TOP_AND_BOTTOM:this.root.push(new $U(n.floating.margins));break;case Gu.NONE:default:this.root.push(new Cy)}else this.root.push(new Cy);this.root.push(new Ey(n.docProperties)),this.root.push(new Uy),this.root.push(new xy({mediaData:e,transform:t,outline:n.outline}))}}const eI=({mediaData:r,transform:e,docProperties:t,outline:n})=>{var A,i,a,s;return new pn({name:"wp:inline",attributes:{distanceTop:{key:"distT",value:0},distanceBottom:{key:"distB",value:0},distanceLeft:{key:"distL",value:0},distanceRight:{key:"distR",value:0}},children:[new Fy(e.emus.x,e.emus.y),Sy(n?{top:((A=n.width)!=null?A:9525)*2,right:((i=n.width)!=null?i:9525)*2,bottom:((a=n.width)!=null?a:9525)*2,left:((s=n.width)!=null?s:9525)*2}:{top:0,right:0,bottom:0,left:0}),new Ey(t),new Uy,new xy({mediaData:r,transform:e,outline:n})]})};class tI extends Te{constructor(e,t={}){super("w:drawing"),t.floating?this.root.push(new ZU({mediaData:e,transform:e.transformation,drawingOptions:t})):this.root.push(eI({mediaData:e,transform:e.transformation,docProperties:t.docProperties,outline:t.outline}))}}class rI extends Vo{constructor(e){super({}),_e(this,"key",`${my()}.png`),_e(this,"imageData");const t=typeof e.data=="string"?this.convertDataURIToBinary(e.data):e.data;this.imageData={stream:t,fileName:this.key,transformation:{pixels:{x:Math.round(e.transformation.width),y:Math.round(e.transformation.height)},emus:{x:Math.round(e.transformation.width*9525),y:Math.round(e.transformation.height*9525)},flip:e.transformation.flip,rotation:e.transformation.rotation?e.transformation.rotation*6e4:void 0}};const n=new tI(this.imageData,{floating:e.floating,docProperties:e.altText,outline:e.outline});this.root.push(n)}prepForXml(e){return e.file.Media.addImage(this.key,this.imageData),super.prepForXml(e)}convertDataURIToBinary(e){if(typeof atob=="function"){const t=";base64,",n=e.indexOf(t),A=n===-1?0:n+t.length;return new Uint8Array(atob(e.substring(A)).split("").map(i=>i.charCodeAt(0)))}else{const t=require("buffer");return new t.Buffer(e,"base64")}}}class nI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class AI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class iI extends Te{constructor({id:e,initials:t,author:n,date:A=new Date,children:i}){super("w:comment"),this.root.push(new nI({id:e,initials:t,author:n,date:A.toISOString()}));for(const a of i)this.root.push(a)}}class aI extends Te{constructor({children:e}){super("w:comments"),this.root.push(new AI({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const t of e)this.root.push(new iI(t))}}class sI extends Te{constructor(){super("w:pageBreakBefore")}}const gp={AUTO:"auto"};class oI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"})}}class lI extends Te{constructor(e){super("w:spacing"),this.root.push(new oI(e))}}const Ki={HEADING_1:"Heading1",HEADING_2:"Heading2"};let zu=class extends Te{constructor(e){super("w:pStyle"),this.root.push(new pr({val:e}))}};class uI extends Te{constructor(e){super("w:tabs");for(const t of e)this.root.push(new hI(t))}}const Iy={LEFT:"left",RIGHT:"right"};class cI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class hI extends Te{constructor({type:e,position:t,leader:n}){super("w:tab"),this.root.push(new cI({val:e,pos:t,leader:n}))}}class Ty extends Te{constructor(e,t){super("w:numPr"),this.root.push(new fI(t)),this.root.push(new dI(e))}}class fI extends Te{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new pr({val:e}))}}class dI extends Te{constructor(e){super("w:numId"),this.root.push(new pr({val:typeof e=="string"?`{${e}}`:e}))}}class _y extends Te{constructor(){super(...arguments),_e(this,"fileChild",Symbol())}}class pI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const gI={EXTERNAL:"External"};class mI extends Te{constructor(e,t,n,A){super("Relationship"),this.root.push(new pI({id:e,type:t,target:n,targetMode:A}))}}class vI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class mp extends Te{constructor(e,t,n){super("w:hyperlink"),_e(this,"linkId"),this.linkId=t;const A={history:1,anchor:n||void 0,id:n?void 0:`rId${this.linkId}`},i=new vI(A);this.root.push(i),e.forEach(a=>{this.root.push(a)})}}class wI extends Te{constructor(e){super("w:externalHyperlink"),this.options=e}}class yI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class BI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{id:"w:id"})}}class bI{constructor(e){_e(this,"bookmarkUniqueNumericId",tU()),_e(this,"start"),_e(this,"children"),_e(this,"end");const t=this.bookmarkUniqueNumericId();this.start=new xI(e.id,t),this.children=e.children,this.end=new CI(t)}}class xI extends Te{constructor(e,t){super("w:bookmarkStart");const n=new yI({name:e,id:t});this.root.push(n)}}class CI extends Te{constructor(e){super("w:bookmarkEnd");const t=new BI({id:e});this.root.push(t)}}class EI extends Te{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new pr({val:e}))}}class SI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{verticalAlign:"w:val"})}}class Ly extends Te{constructor(e){super("w:vAlign"),this.root.push(new SI({verticalAlign:e}))}}const Ts={DEFAULT:"default",FIRST:"first",EVEN:"even"};class FI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const Qy={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class vp extends Te{constructor(e,t){super(e),this.root.push(new FI({type:t.type||Ts.DEFAULT,id:`rId${t.id}`}))}}class UI extends Te{constructor({space:e,count:t,separate:n,equalWidth:A,children:i}){super("w:cols"),this.root.push(new ui({space:{key:"w:space",value:e===void 0?void 0:rn(e)},count:{key:"w:num",value:t===void 0?void 0:dn(t)},separate:{key:"w:sep",value:n},equalWidth:{key:"w:equalWidth",value:A}})),!A&&i&&i.forEach(a=>this.addChildElement(a))}}class II extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class TI extends Te{constructor(e,t,n){super("w:docGrid"),this.root.push(new II({type:n,linePitch:dn(e),charSpace:t?dn(t):void 0}))}}const _I=({countBy:r,start:e,restart:t,distance:n})=>new pn({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:r===void 0?void 0:dn(r)},start:{key:"w:start",value:e===void 0?void 0:dn(e)},restart:{key:"w:restart",value:t},distance:{key:"w:distance",value:n===void 0?void 0:rn(n)}}});class Ny extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class LI extends li{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new Ny({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new Ny({})),e.pageBorderTop&&this.root.push(new qt("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new qt("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new qt("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new qt("w:right",e.pageBorderRight))}}class QI extends Te{constructor(e,t,n,A,i,a,s){super("w:pgMar"),this.root.push(new ui({top:{key:"w:top",value:fi(e)},right:{key:"w:right",value:rn(t)},bottom:{key:"w:bottom",value:fi(n)},left:{key:"w:left",value:rn(A)},header:{key:"w:header",value:rn(i)},footer:{key:"w:footer",value:rn(a)},gutter:{key:"w:gutter",value:rn(s)}}))}}class NI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class OI extends Te{constructor({start:e,formatType:t,separator:n}){super("w:pgNumType"),this.root.push(new NI({start:e===void 0?void 0:dn(e),formatType:t,separator:n}))}}const Oy={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class PI extends Te{constructor(e,t,n){super("w:pgSz");const A=n===Oy.LANDSCAPE,i=rn(e),a=rn(t);this.root.push(new ui({width:{key:"w:w",value:A?a:i},height:{key:"w:h",value:A?i:a},orientation:{key:"w:orient",value:n}}))}}class RI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{val:"w:val"})}}class DI extends Te{constructor(e){super("w:textDirection"),this.root.push(new RI({val:e}))}}class kI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{val:"w:val"})}}class HI extends Te{constructor(e){super("w:type"),this.root.push(new kI({val:e}))}}const La={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},wp={WIDTH:11906,HEIGHT:16838,ORIENTATION:Oy.PORTRAIT};class MI extends Te{constructor({page:{size:{width:e=wp.WIDTH,height:t=wp.HEIGHT,orientation:n=wp.ORIENTATION}={},margin:{top:A=La.TOP,right:i=La.RIGHT,bottom:a=La.BOTTOM,left:s=La.LEFT,header:o=La.HEADER,footer:l=La.FOOTER,gutter:u=La.GUTTER}={},pageNumbers:h={},borders:d,textDirection:c}={},grid:{linePitch:p=360,charSpace:m,type:y}={},headerWrapperGroup:g={},footerWrapperGroup:w={},lineNumbers:B,titlePage:I,verticalAlign:O,column:j,type:R}={}){super("w:sectPr"),this.addHeaderFooterGroup(Qy.HEADER,g),this.addHeaderFooterGroup(Qy.FOOTER,w),R&&this.root.push(new HI(R)),this.root.push(new PI(e,t,n)),this.root.push(new QI(A,i,a,s,o,l,u)),d&&this.root.push(new LI(d)),B&&this.root.push(_I(B)),this.root.push(new OI(h)),j&&this.root.push(new UI(j)),O&&this.root.push(new Ly(O)),I!==void 0&&this.root.push(new Me("w:titlePg",I)),c&&this.root.push(new DI(c)),this.root.push(new TI(p,m,y))}addHeaderFooterGroup(e,t){t.default&&this.root.push(new vp(e,{type:Ts.DEFAULT,id:t.default.View.ReferenceId})),t.first&&this.root.push(new vp(e,{type:Ts.FIRST,id:t.first.View.ReferenceId})),t.even&&this.root.push(new vp(e,{type:Ts.EVEN,id:t.even.View.ReferenceId}))}}class KI extends Te{constructor(){super("w:body"),_e(this,"sections",[])}addSection(e){const t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new MI(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const t=new Xt({}),n=new Ls({});return n.push(e),t.addChildElement(n),t}}class zo extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",aink:"xmlns:aink",am3d:"xmlns:am3d",w16cex:"xmlns:w16cex",w16cid:"xmlns:w16cid",w16:"xmlns:w16",w16sdtdh:"xmlns:w16sdtdh",w16se:"xmlns:w16se"})}}class jI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class VI extends Te{constructor(e){super("w:background"),this.root.push(new jI({color:e.color===void 0?void 0:Fs(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:cy(e.themeShade),themeTint:e.themeTint===void 0?void 0:cy(e.themeTint)}))}}let GI=class extends Te{constructor(e){super("w:document"),_e(this,"body"),this.root.push(new zo({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",Ignorable:"w14 w15 wp14"})),this.body=new KI,e.background&&this.root.push(new VI(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}};class zI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{xmlns:"xmlns"})}}class _s extends Te{constructor(){super("Relationships"),this.root.push(new zI({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,t,n,A){const i=new mI(`rId${e}`,t,n,A);return this.root.push(i),i}get RelationshipCount(){return this.root.length-1}}class Py{constructor(e){_e(this,"document"),_e(this,"relationships"),this.document=new GI(e),this.relationships=new _s}get View(){return this.document}get Relationships(){return this.relationships}}class WI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{val:"w:val"})}}class $I extends Te{constructor(){super("w:wordWrap"),this.root.push(new WI({val:0}))}}const qI=r=>{var e,t;return new pn({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:r.anchorLock},dropCap:{key:"w:dropCap",value:r.dropCap},width:{key:"w:w",value:r.width},height:{key:"w:h",value:r.height},x:{key:"w:x",value:r.position?r.position.x:void 0},y:{key:"w:y",value:r.position?r.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:r.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:r.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=r.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(t=r.space)==null?void 0:t.vertical},rule:{key:"w:hRule",value:r.rule},alignmentX:{key:"w:xAlign",value:r.alignment?r.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:r.alignment?r.alignment.y:void 0},lines:{key:"w:lines",value:r.lines},wrap:{key:"w:wrap",value:r.wrap}}})};class Ls extends li{constructor(e){var t,n;if(super("w:pPr"),_e(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new zu(e.heading)),e.bullet&&this.push(new zu("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new zu("ListParagraph"))),e.style&&this.push(new zu(e.style)),e.keepNext!==void 0&&this.push(new Me("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new Me("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new sI),e.frame&&this.push(qI(e.frame)),e.widowControl!==void 0&&this.push(new Me("w:widowControl",e.widowControl)),e.bullet&&this.push(new Ty(1,e.bullet.level)),e.numbering&&(this.numberingReferences.push({reference:e.numbering.reference,instance:(t=e.numbering.instance)!=null?t:0}),this.push(new Ty(`${e.numbering.reference}-${(n=e.numbering.instance)!=null?n:0}`,e.numbering.level))),e.border&&this.push(new F3(e.border)),e.thematicBreak&&this.push(new U3),e.shading&&this.push(new Ku(e.shading)),e.wordWrap&&this.push(new $I),e.overflowPunctuation&&this.push(new Me("w:overflowPunct",e.overflowPunctuation));const A=[...e.rightTabStop!==void 0?[{type:Iy.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:Iy.LEFT,position:e.leftTabStop}]:[]];A.length>0&&this.push(new uI(A)),e.bidirectional!==void 0&&this.push(new Me("w:bidi",e.bidirectional)),e.spacing&&this.push(new lI(e.spacing)),e.indent&&this.push(new I3(e.indent)),e.contextualSpacing!==void 0&&this.push(new Me("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new fy(e.alignment)),e.outlineLevel!==void 0&&this.push(new EI(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new Me("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new Me("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new _a(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof Py)for(const t of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(e)}}class Xt extends _y{constructor(e){if(super("w:p"),_e(this,"properties"),typeof e=="string")return this.properties=new Ls({}),this.root.push(this.properties),this.root.push(new gr(e)),this;if(this.properties=new Ls(e),this.root.push(this.properties),e.text&&this.root.push(new gr(e.text)),e.children)for(const t of e.children){if(t instanceof bI){this.root.push(t.start);for(const n of t.children)this.root.push(n);this.root.push(t.end);continue}this.root.push(t)}}prepForXml(e){for(const t of this.root)if(t instanceof wI){const n=this.root.indexOf(t),A=new mp(t.options.children,my());e.viewWrapper.Relationships.createRelationship(A.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,gI.EXTERNAL),this.root[n]=A}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}class XI extends Te{constructor(e){super("w:tblGrid");for(const t of e)this.root.push(new YI(t))}}class YI extends Te{constructor(e){super("w:gridCol"),e!==void 0&&this.root.push(new ui({width:{key:"w:w",value:rn(e)}}))}}const Ry={TABLE:"w:tblCellMar",TABLE_CELL:"w:tcMar"};class Dy extends li{constructor(e,{marginUnitType:t=Qs.DXA,top:n,left:A,bottom:i,right:a}){super(e),n!==void 0&&this.root.push(new Qa("w:top",{type:t,size:n})),A!==void 0&&this.root.push(new Qa("w:left",{type:t,size:A})),i!==void 0&&this.root.push(new Qa("w:bottom",{type:t,size:i})),a!==void 0&&this.root.push(new Qa("w:right",{type:t,size:a}))}}const Qs={AUTO:"auto",DXA:"dxa",PERCENTAGE:"pct"};class Qa extends Te{constructor(e,{type:t=Qs.AUTO,size:n}){super(e);let A=n;t===Qs.PERCENTAGE&&typeof n=="number"&&(A=`${n}%`),this.root.push(new ui({type:{key:"w:type",value:t},size:{key:"w:w",value:y3(A)}}))}}class JI extends li{constructor(e){super("w:tcBorders"),e.top&&this.root.push(new qt("w:top",e.top)),e.start&&this.root.push(new qt("w:start",e.start)),e.left&&this.root.push(new qt("w:left",e.left)),e.bottom&&this.root.push(new qt("w:bottom",e.bottom)),e.end&&this.root.push(new qt("w:end",e.end)),e.right&&this.root.push(new qt("w:right",e.right))}}class ZI extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{val:"w:val"})}}class eT extends Te{constructor(e){super("w:gridSpan"),this.root.push(new ZI({val:dn(e)}))}}const ky={CONTINUE:"continue",RESTART:"restart"};class tT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{val:"w:val"})}}class Hy extends Te{constructor(e){super("w:vMerge"),this.root.push(new tT({val:e}))}}class rT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{val:"w:val"})}}class nT extends Te{constructor(e){super("w:textDirection"),this.root.push(new rT({val:e}))}}class AT extends li{constructor(e){super("w:tcPr"),e.width&&this.root.push(new Qa("w:tcW",e.width)),e.columnSpan&&this.root.push(new eT(e.columnSpan)),e.verticalMerge?this.root.push(new Hy(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new Hy(ky.RESTART)),e.borders&&this.root.push(new JI(e.borders)),e.shading&&this.root.push(new Ku(e.shading)),e.margins&&this.root.push(new Dy(Ry.TABLE_CELL,e.margins)),e.textDirection&&this.root.push(new nT(e.textDirection)),e.verticalAlign&&this.root.push(new Ly(e.verticalAlign))}}class Wu extends Te{constructor(e){super("w:tc"),this.options=e,this.root.push(new AT(e));for(const t of e.children)this.root.push(t)}prepForXml(e){return this.root[this.root.length-1]instanceof Xt||this.root.push(new Xt({})),super.prepForXml(e)}}const Ns={style:Du.NONE,size:0,color:"auto"},Os={style:Du.SINGLE,size:4,color:"auto"};class My extends Te{constructor(e){super("w:tblBorders"),e.top?this.root.push(new qt("w:top",e.top)):this.root.push(new qt("w:top",Os)),e.left?this.root.push(new qt("w:left",e.left)):this.root.push(new qt("w:left",Os)),e.bottom?this.root.push(new qt("w:bottom",e.bottom)):this.root.push(new qt("w:bottom",Os)),e.right?this.root.push(new qt("w:right",e.right)):this.root.push(new qt("w:right",Os)),e.insideHorizontal?this.root.push(new qt("w:insideH",e.insideHorizontal)):this.root.push(new qt("w:insideH",Os)),e.insideVertical?this.root.push(new qt("w:insideV",e.insideVertical)):this.root.push(new qt("w:insideV",Os))}}_e(My,"NONE",{top:Ns,bottom:Ns,left:Ns,right:Ns,insideHorizontal:Ns,insideVertical:Ns});class iT extends Te{constructor({horizontalAnchor:e,verticalAnchor:t,absoluteHorizontalPosition:n,relativeHorizontalPosition:A,absoluteVerticalPosition:i,relativeVerticalPosition:a,bottomFromText:s,topFromText:o,leftFromText:l,rightFromText:u,overlap:h}){super("w:tblpPr"),this.root.push(new ui({leftFromText:{key:"w:leftFromText",value:l===void 0?void 0:rn(l)},rightFromText:{key:"w:rightFromText",value:u===void 0?void 0:rn(u)},topFromText:{key:"w:topFromText",value:o===void 0?void 0:rn(o)},bottomFromText:{key:"w:bottomFromText",value:s===void 0?void 0:rn(s)},absoluteHorizontalPosition:{key:"w:tblpX",value:n===void 0?void 0:fi(n)},absoluteVerticalPosition:{key:"w:tblpY",value:i===void 0?void 0:fi(i)},horizontalAnchor:{key:"w:horzAnchor",value:e===void 0?void 0:e},relativeHorizontalPosition:{key:"w:tblpXSpec",value:A},relativeVerticalPosition:{key:"w:tblpYSpec",value:a},verticalAnchor:{key:"w:vertAnchor",value:t}})),h&&this.root.push(new C3("w:tblOverlap",h))}}class aT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{type:"w:type"})}}class sT extends Te{constructor(e){super("w:tblLayout"),this.root.push(new aT({type:e}))}}class oT extends li{constructor(e){super("w:tblPr"),e.style&&this.root.push(new Ia("w:tblStyle",e.style)),e.float&&this.root.push(new iT(e.float)),e.visuallyRightToLeft!==void 0&&this.root.push(new Me("w:bidiVisual",e.visuallyRightToLeft)),e.width&&this.root.push(new Qa("w:tblW",e.width)),e.alignment&&this.root.push(new fy(e.alignment)),e.indent&&this.root.push(new Qa("w:tblInd",e.indent)),e.borders&&this.root.push(new My(e.borders)),e.shading&&this.root.push(new Ku(e.shading)),e.layout&&this.root.push(new sT(e.layout)),e.cellMargin&&this.root.push(new Dy(Ry.TABLE,e.cellMargin))}}class lT extends _y{constructor({rows:e,width:t,columnWidths:n=Array(Math.max(...e.map(d=>d.CellCount))).fill(100),margins:A,indent:i,float:a,layout:s,style:o,borders:l,alignment:u,visuallyRightToLeft:h}){super("w:tbl"),this.root.push(new oT({borders:l??{},width:t??{size:100},indent:i,float:a,layout:s,style:o,alignment:u,cellMargin:A,visuallyRightToLeft:h})),this.root.push(new XI(n));for(const d of e)this.root.push(d);e.forEach((d,c)=>{if(c===e.length-1)return;let p=0;d.cells.forEach(m=>{if(m.options.rowSpan&&m.options.rowSpan>1){const y=new Wu({rowSpan:m.options.rowSpan-1,columnSpan:m.options.columnSpan,borders:m.options.borders,children:[],verticalMerge:ky.CONTINUE});e[c+1].addCellToColumnIndex(y,p)}p+=m.options.columnSpan||1})})}}class uT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{value:"w:val",rule:"w:hRule"})}}class cT extends Te{constructor(e,t){super("w:trHeight"),this.root.push(new uT({value:rn(e),rule:t}))}}class hT extends li{constructor(e){super("w:trPr"),e.cantSplit!==void 0&&this.root.push(new Me("w:cantSplit",e.cantSplit)),e.tableHeader!==void 0&&this.root.push(new Me("w:tblHeader",e.tableHeader)),e.height&&this.root.push(new cT(e.height.value,e.height.rule))}}class fT extends Te{constructor(e){super("w:tr"),this.options=e,this.root.push(new hT(e));for(const t of e.children)this.root.push(t)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(e=>e instanceof Wu)}addCellToIndex(e,t){this.root.splice(t+1,0,e)}addCellToColumnIndex(e,t){const n=this.columnIndexToRootIndex(t,!0);this.addCellToIndex(e,n-1)}rootIndexToColumnIndex(e){if(e<1||e>=this.root.length)throw new Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let t=0;for(let n=1;n<e;n++){const A=this.root[n];t+=A.options.columnSpan||1}return t}columnIndexToRootIndex(e,t=!1){if(e<0)throw new Error("cell 'columnIndex' should not less than zero");let n=0,A=1;for(;n<=e;){if(A>=this.root.length){if(t)return this.root.length;throw new Error(`cell 'columnIndex' should not great than ${n-1}`)}const i=this.root[A];A+=1,n+=i&&i.options.columnSpan||1}return A-1}}class dT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class pT extends Te{constructor(){super("Properties"),this.root.push(new dT({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class gT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{xmlns:"xmlns"})}}class mT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class ji extends Te{constructor(e,t){super("Default"),this.root.push(new mT({contentType:e,extension:t}))}}class vT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class sA extends Te{constructor(e,t){super("Override"),this.root.push(new vT({contentType:e,partName:t}))}}class wT extends Te{constructor(){super("Types"),this.root.push(new gT({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new ji("image/png","png")),this.root.push(new ji("image/jpeg","jpeg")),this.root.push(new ji("image/jpeg","jpg")),this.root.push(new ji("image/bmp","bmp")),this.root.push(new ji("image/gif","gif")),this.root.push(new ji("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new ji("application/xml","xml")),this.root.push(new ji("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new sA("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new sA("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new sA("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new sA("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new sA("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new sA("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new sA("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new sA("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new sA("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new sA("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new sA("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new sA("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class yT extends Te{constructor(e){super("cp:coreProperties"),this.root.push(new zo({cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"})),e.title&&this.root.push(new Ta("dc:title",e.title)),e.subject&&this.root.push(new Ta("dc:subject",e.subject)),e.creator&&this.root.push(new Ta("dc:creator",e.creator)),e.keywords&&this.root.push(new Ta("cp:keywords",e.keywords)),e.description&&this.root.push(new Ta("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new Ta("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new Ta("cp:revision",String(e.revision))),this.root.push(new Ky("dcterms:created")),this.root.push(new Ky("dcterms:modified"))}}class Ky extends Te{constructor(e){super(e),this.root.push(new zo({type:"dcterms:W3CDTF"})),this.root.push(x3(new Date))}}class BT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class bT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class xT extends Te{constructor(e,t){super("property"),this.root.push(new bT({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:t.name})),this.root.push(new CT(t.value))}}class CT extends Te{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class ET extends Te{constructor(e){super("Properties"),_e(this,"nextId"),_e(this,"properties",[]),this.root.push(new BT({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const t of e)this.addCustomProperty(t)}prepForXml(e){return this.properties.forEach(t=>this.root.push(t)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new xT(this.nextId++,e))}}class ST extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let FT=class extends ly{constructor(e,t){super("w:ftr",t),_e(this,"refId"),this.refId=e,t||this.root.push(new ST({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class UT{constructor(e,t,n){_e(this,"footer"),_e(this,"relationships"),this.media=e,this.footer=new FT(t,n),this.relationships=new _s}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class IT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class TT extends Te{constructor(){super("w:footnoteRef")}}class _T extends Vo{constructor(){super({style:"FootnoteReference"}),this.root.push(new TT)}}const jy={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class yp extends Te{constructor(e){super("w:footnote"),this.root.push(new IT({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){const n=e.children[t];t===0&&n.addRunToFront(new _T),this.root.push(n)}}}class LT extends Te{constructor(){super("w:continuationSeparator")}}class QT extends Vo{constructor(){super({}),this.root.push(new LT)}}class NT extends Te{constructor(){super("w:separator")}}class OT extends Vo{constructor(){super({}),this.root.push(new NT)}}class PT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class RT extends Te{constructor(){super("w:footnotes"),this.root.push(new PT({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const e=new yp({id:-1,type:jy.SEPERATOR,children:[new Xt({spacing:{after:0,line:240,lineRule:gp.AUTO},children:[new OT]})]});this.root.push(e);const t=new yp({id:0,type:jy.CONTINUATION_SEPERATOR,children:[new Xt({spacing:{after:0,line:240,lineRule:gp.AUTO},children:[new QT]})]});this.root.push(t)}createFootNote(e,t){const n=new yp({id:e,children:t});this.root.push(n)}}class DT{constructor(){_e(this,"footnotess"),_e(this,"relationships"),this.footnotess=new RT,this.relationships=new _s}get View(){return this.footnotess}get Relationships(){return this.relationships}}class kT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}}let HT=class extends ly{constructor(e,t){super("w:hdr",t),_e(this,"refId"),this.refId=e,t||this.root.push(new kT({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class MT{constructor(e,t,n){_e(this,"header"),_e(this,"relationships"),this.media=e,this.header=new HT(t,n),this.relationships=new _s}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class KT{constructor(){_e(this,"map"),this.map=new Map}addImage(e,t){this.map.set(e,t)}get Array(){return Array.from(this.map.values())}}const di={BULLET:"bullet"};class jT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class VT extends Te{constructor(e){super("w:numFmt"),this.root.push(new pr({val:e}))}}class GT extends Te{constructor(e){super("w:lvlText"),this.root.push(new pr({val:e}))}}class zT extends Te{constructor(e){super("w:lvlJc"),this.root.push(new pr({val:e}))}}class WT extends Te{constructor(e){super("w:suff"),this.root.push(new pr({val:e}))}}class $T extends Te{constructor(){super("w:isLgl")}}class qT extends Te{constructor({level:e,format:t,text:n,alignment:A=$n.START,start:i=1,style:a,suffix:s,isLegalNumberingStyle:o}){if(super("w:lvl"),_e(this,"paragraphProperties"),_e(this,"runProperties"),this.root.push(new cp("w:start",dn(i))),t&&this.root.push(new VT(t)),s&&this.root.push(new WT(s)),o&&this.root.push(new $T),n&&this.root.push(new GT(n)),this.root.push(new zT(A)),this.paragraphProperties=new Ls(a&&a.paragraph),this.runProperties=new _a(a&&a.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new jT({ilvl:dn(e),tentative:1}))}}class XT extends qT{}class YT extends Te{constructor(e){super("w:multiLevelType"),this.root.push(new pr({val:e}))}}class JT extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class Vy extends Te{constructor(e,t){super("w:abstractNum"),_e(this,"id"),this.root.push(new JT({abstractNumId:dn(e),restartNumberingAfterBreak:0})),this.root.push(new YT("hybridMultilevel")),this.id=e;for(const n of t)this.root.push(new XT(n))}}class ZT extends Te{constructor(e){super("w:abstractNumId"),this.root.push(new pr({val:e}))}}class e_ extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{numId:"w:numId"})}}class Gy extends Te{constructor(e){if(super("w:num"),_e(this,"numId"),_e(this,"reference"),_e(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new e_({numId:dn(e.numId)})),this.root.push(new ZT(dn(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const t of e.overrideLevels)this.root.push(new r_(t.num,t.start))}}class t_ extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{ilvl:"w:ilvl"})}}class r_ extends Te{constructor(e,t){super("w:lvlOverride"),this.root.push(new t_({ilvl:e})),t!==void 0&&this.root.push(new A_(t))}}class n_ extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{val:"w:val"})}}class A_ extends Te{constructor(e){super("w:startOverride"),this.root.push(new n_({val:e}))}}class i_ extends Te{constructor(e){super("w:numbering"),_e(this,"abstractNumberingMap",new Map),_e(this,"concreteNumberingMap",new Map),_e(this,"referenceConfigMap",new Map),_e(this,"abstractNumUniqueNumericId",J3()),_e(this,"concreteNumUniqueNumericId",Z3()),this.root.push(new zo({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const t=new Vy(this.abstractNumUniqueNumericId(),[{level:0,format:di.BULLET,text:"●",alignment:$n.LEFT,style:{paragraph:{indent:{left:xA(.5),hanging:xA(.25)}}}},{level:1,format:di.BULLET,text:"○",alignment:$n.LEFT,style:{paragraph:{indent:{left:xA(1),hanging:xA(.25)}}}},{level:2,format:di.BULLET,text:"■",alignment:$n.LEFT,style:{paragraph:{indent:{left:2160,hanging:xA(.25)}}}},{level:3,format:di.BULLET,text:"●",alignment:$n.LEFT,style:{paragraph:{indent:{left:2880,hanging:xA(.25)}}}},{level:4,format:di.BULLET,text:"○",alignment:$n.LEFT,style:{paragraph:{indent:{left:3600,hanging:xA(.25)}}}},{level:5,format:di.BULLET,text:"■",alignment:$n.LEFT,style:{paragraph:{indent:{left:4320,hanging:xA(.25)}}}},{level:6,format:di.BULLET,text:"●",alignment:$n.LEFT,style:{paragraph:{indent:{left:5040,hanging:xA(.25)}}}},{level:7,format:di.BULLET,text:"●",alignment:$n.LEFT,style:{paragraph:{indent:{left:5760,hanging:xA(.25)}}}},{level:8,format:di.BULLET,text:"●",alignment:$n.LEFT,style:{paragraph:{indent:{left:6480,hanging:xA(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new Gy({numId:1,abstractNumId:t.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",t);for(const n of e.config)this.abstractNumberingMap.set(n.reference,new Vy(this.abstractNumUniqueNumericId(),n.levels)),this.referenceConfigMap.set(n.reference,n.levels)}prepForXml(e){for(const t of this.abstractNumberingMap.values())this.root.push(t);for(const t of this.concreteNumberingMap.values())this.root.push(t);return super.prepForXml(e)}createConcreteNumberingInstance(e,t){const n=this.abstractNumberingMap.get(e);if(!n)return;const A=`${e}-${t}`;if(this.concreteNumberingMap.has(A))return;const i=this.referenceConfigMap.get(e),a=i&&i[0].start,s={numId:this.concreteNumUniqueNumericId(),abstractNumId:n.id,reference:e,instance:t,overrideLevels:[a&&Number.isInteger(a)?{num:0,start:a}:{num:0,start:1}]};this.concreteNumberingMap.set(A,new Gy(s))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class a_ extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class s_ extends Te{constructor(e){super("w:compatSetting"),this.root.push(new a_({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class o_ extends Te{constructor(e){super("w:compat"),e.version&&this.root.push(new s_(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new Me("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new Me("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new Me("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new Me("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new Me("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new Me("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new Me("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new Me("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new Me("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new Me("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new Me("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new Me("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new Me("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new Me("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new Me("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new Me("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new Me("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new Me("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new Me("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new Me("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new Me("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new Me("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new Me("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new Me("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new Me("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new Me("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new Me("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new Me("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new Me("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new Me("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new Me("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new Me("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new Me("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new Me("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new Me("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new Me("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new Me("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new Me("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new Me("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new Me("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new Me("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new Me("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new Me("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new Me("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new Me("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new Me("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new Me("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new Me("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new Me("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new Me("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new Me("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new Me("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new Me("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new Me("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new Me("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new Me("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new Me("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new Me("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new Me("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new Me("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new Me("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new Me("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new Me("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new Me("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new Me("w:cachedColBalance",e.cachedColumnBalance))}}class l_ extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class u_ extends Te{constructor(e){var t,n,A,i;super("w:settings"),this.root.push(new l_({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new Me("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new Me("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new Me("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new Me("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new cp("w:defaultTabStop",e.defaultTabStop)),this.root.push(new o_(ys(Nt({},(t=e.compatibility)!=null?t:{}),{version:(i=(A=(n=e.compatibility)==null?void 0:n.version)!=null?A:e.compatibilityModeVersion)!=null?i:15})))}}class zy extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{val:"w:val"})}}class c_ extends Te{constructor(e){super("w:name"),this.root.push(new zy({val:e}))}}class h_ extends Te{constructor(e){super("w:uiPriority"),this.root.push(new zy({val:dn(e)}))}}class f_ extends Je{constructor(){super(...arguments),_e(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class Wy extends Te{constructor(e,t){super("w:style"),this.root.push(new f_(e)),t.name&&this.root.push(new c_(t.name)),t.basedOn&&this.root.push(new Ia("w:basedOn",t.basedOn)),t.next&&this.root.push(new Ia("w:next",t.next)),t.link&&this.root.push(new Ia("w:link",t.link)),t.uiPriority!==void 0&&this.root.push(new h_(t.uiPriority)),t.semiHidden!==void 0&&this.root.push(new Me("w:semiHidden",t.semiHidden)),t.unhideWhenUsed!==void 0&&this.root.push(new Me("w:unhideWhenUsed",t.unhideWhenUsed)),t.quickFormat!==void 0&&this.root.push(new Me("w:qFormat",t.quickFormat))}}class $u extends Wy{constructor(e){super({type:"paragraph",styleId:e.id},e),_e(this,"paragraphProperties"),_e(this,"runProperties"),this.paragraphProperties=new Ls(e.paragraph),this.runProperties=new _a(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class qu extends Wy{constructor(e){super({type:"character",styleId:e.id},Nt({uiPriority:99,unhideWhenUsed:!0},e)),_e(this,"runProperties"),this.runProperties=new _a(e.run),this.root.push(this.runProperties)}}class Vi extends $u{constructor(e){super(Nt({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class d_ extends Vi{constructor(e){super(Nt({id:"Title",name:"Title"},e))}}class p_ extends Vi{constructor(e){super(Nt({id:"Heading1",name:"Heading 1"},e))}}class g_ extends Vi{constructor(e){super(Nt({id:"Heading2",name:"Heading 2"},e))}}class m_ extends Vi{constructor(e){super(Nt({id:"Heading3",name:"Heading 3"},e))}}class v_ extends Vi{constructor(e){super(Nt({id:"Heading4",name:"Heading 4"},e))}}class w_ extends Vi{constructor(e){super(Nt({id:"Heading5",name:"Heading 5"},e))}}class y_ extends Vi{constructor(e){super(Nt({id:"Heading6",name:"Heading 6"},e))}}class B_ extends Vi{constructor(e){super(Nt({id:"Strong",name:"Strong"},e))}}class b_ extends $u{constructor(e){super(Nt({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class x_ extends $u{constructor(e){super(Nt({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:gp.AUTO}},run:{size:20}},e))}}class C_ extends qu{constructor(e){super(Nt({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class E_ extends qu{constructor(e){super(Nt({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class S_ extends qu{constructor(e){super(Nt({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:gy.SINGLE}}},e))}}class Bp extends Te{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const t of e.importedStyles)this.root.push(t);if(e.paragraphStyles)for(const t of e.paragraphStyles)this.root.push(new $u(t));if(e.characterStyles)for(const t of e.characterStyles)this.root.push(new qu(t))}}class F_ extends Te{constructor(e){super("w:pPrDefault"),this.root.push(new Ls(e))}}class U_ extends Te{constructor(e){super("w:rPrDefault"),this.root.push(new _a(e))}}class I_ extends Te{constructor(e){super("w:docDefaults"),_e(this,"runPropertiesDefaults"),_e(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new U_(e.run),this.paragraphPropertiesDefaults=new F_(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class T_{newInstance(e){const t=oy.xml2js(e,{compact:!1});let n;for(const a of t.elements||[])a.name==="w:styles"&&(n=a);if(n===void 0)throw new Error("can not find styles element");const A=n.elements||[];return new Bp({initialStyles:new m3(n.attributes),importedStyles:A.map(a=>op(a))})}}class $y{newInstance(e={}){var t;return{initialStyles:new zo({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",Ignorable:"w14 w15"}),importedStyles:[new I_((t=e.document)!=null?t:{}),new d_(Nt({run:{size:56}},e.title)),new p_(Nt({run:{color:"2E74B5",size:32}},e.heading1)),new g_(Nt({run:{color:"2E74B5",size:26}},e.heading2)),new m_(Nt({run:{color:"1F4D78",size:24}},e.heading3)),new v_(Nt({run:{color:"2E74B5",italics:!0}},e.heading4)),new w_(Nt({run:{color:"2E74B5"}},e.heading5)),new y_(Nt({run:{color:"1F4D78"}},e.heading6)),new B_(Nt({run:{bold:!0}},e.strong)),new b_(e.listParagraph||{}),new S_(e.hyperlink||{}),new C_(e.footnoteReference||{}),new x_(e.footnoteText||{}),new E_(e.footnoteTextChar||{})]}}}const Xu=({id:r,fontKey:e,subsetted:t},n)=>new pn({name:n,attributes:Nt({id:{key:"r:id",value:r}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...t?[new Me("w:subsetted",t)]:[]]}),__=({name:r,altName:e,panose1:t,charset:n,family:A,notTrueType:i,pitch:a,sig:s,embedRegular:o,embedBold:l,embedItalic:u,embedBoldItalic:h})=>new pn({name:"w:font",attributes:{name:{key:"w:name",value:r}},children:[...e?[jo("w:altName",e)]:[],...t?[jo("w:panose1",t)]:[],...n?[jo("w:charset",n)]:[],jo("w:family",A),...i?[new Me("w:notTrueType",i)]:[],jo("w:pitch",a),...s?[new pn({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:s.usb0},usb1:{key:"w:usb1",value:s.usb1},usb2:{key:"w:usb2",value:s.usb2},usb3:{key:"w:usb3",value:s.usb3},csb0:{key:"w:csb0",value:s.csb0},csb1:{key:"w:csb1",value:s.csb1}}})]:[],...o?[Xu(o,"w:embedRegular")]:[],...l?[Xu(l,"w:embedBold")]:[],...u?[Xu(u,"w:embedItalic")]:[],...h?[Xu(h,"w:embedBoldItalic")]:[]]}),L_=({name:r,index:e,fontKey:t,characterSet:n})=>__({name:r,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:n,family:"auto",pitch:"variable",embedRegular:{fontKey:t,id:`rId${e}`}}),Q_=r=>new pn({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:r.map((e,t)=>L_({name:e.name,index:t+1,fontKey:e.fontKey}))});class N_{constructor(e){_e(this,"fontTable"),_e(this,"relationships"),_e(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(t=>ys(Nt({},t),{fontKey:rU()})),this.fontTable=Q_(this.fontOptionsWithKey),this.relationships=new _s;for(let t=0;t<e.length;t++)this.relationships.createRelationship(t+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${e[t].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}}class O_{constructor(e){_e(this,"currentRelationshipId",1),_e(this,"documentWrapper"),_e(this,"headers",[]),_e(this,"footers",[]),_e(this,"coreProperties"),_e(this,"numbering"),_e(this,"media"),_e(this,"fileRelationships"),_e(this,"footnotesWrapper"),_e(this,"settings"),_e(this,"contentTypes"),_e(this,"customProperties"),_e(this,"appProperties"),_e(this,"styles"),_e(this,"comments"),_e(this,"fontWrapper");var t,n,A,i,a,s,o,l;if(this.coreProperties=new yT(ys(Nt({},e),{creator:(t=e.creator)!=null?t:"Un-named",revision:(n=e.revision)!=null?n:1,lastModifiedBy:(A=e.lastModifiedBy)!=null?A:"Un-named"})),this.numbering=new i_(e.numbering?e.numbering:{config:[]}),this.comments=new aI((i=e.comments)!=null?i:{children:[]}),this.fileRelationships=new _s,this.customProperties=new ET((a=e.customProperties)!=null?a:[]),this.appProperties=new pT,this.footnotesWrapper=new DT,this.contentTypes=new wT,this.documentWrapper=new Py({background:e.background}),this.settings=new u_({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:(s=e.features)==null?void 0:s.trackRevisions,updateFields:(o=e.features)==null?void 0:o.updateFields,defaultTabStop:e.defaultTabStop}),this.media=new KT,e.externalStyles){const u=new T_;this.styles=u.newInstance(e.externalStyles)}else if(e.styles){const h=new $y().newInstance(e.styles.default);this.styles=new Bp(Nt(Nt({},h),e.styles))}else{const u=new $y;this.styles=new Bp(u.newInstance())}this.addDefaultRelationships();for(const u of e.sections)this.addSection(u);if(e.footnotes)for(const u in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(u),e.footnotes[u].children);this.fontWrapper=new N_((l=e.fonts)!=null?l:[])}addSection({headers:e={},footers:t={},children:n,properties:A}){this.documentWrapper.View.Body.addSection(ys(Nt({},A),{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:t.default?this.createFooter(t.default):void 0,first:t.first?this.createFooter(t.first):void 0,even:t.even?this.createFooter(t.even):void 0}}));for(const i of n)this.documentWrapper.View.add(i)}createHeader(e){const t=new MT(this.media,this.currentRelationshipId++);for(const n of e.options.children)t.add(n);return this.addHeaderToDocument(t),t}createFooter(e){const t=new UT(this.media,this.currentRelationshipId++);for(const n of e.options.children)t.add(n);return this.addFooterToDocument(t),t}addHeaderToDocument(e,t=Ts.DEFAULT){this.headers.push({header:e,type:t}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,t=Ts.DEFAULT){this.footers.push({footer:e,type:t}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(e=>e.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}function Yu(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qy={exports:{}};(function(r,e){(function(t){r.exports=t()})(function(){return function t(n,A,i){function a(l,u){if(!A[l]){if(!n[l]){var h=typeof Yu=="function"&&Yu;if(!u&&h)return h(l,!0);if(s)return s(l,!0);var d=new Error("Cannot find module '"+l+"'");throw d.code="MODULE_NOT_FOUND",d}var c=A[l]={exports:{}};n[l][0].call(c.exports,function(p){var m=n[l][1][p];return a(m||p)},c,c.exports,t,n,A,i)}return A[l].exports}for(var s=typeof Yu=="function"&&Yu,o=0;o<i.length;o++)a(i[o]);return a}({1:[function(t,n,A){var i=t("./utils"),a=t("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";A.encode=function(o){for(var l,u,h,d,c,p,m,y=[],g=0,w=o.length,B=w,I=i.getTypeOf(o)!=="string";g<o.length;)B=w-g,h=I?(l=o[g++],u=g<w?o[g++]:0,g<w?o[g++]:0):(l=o.charCodeAt(g++),u=g<w?o.charCodeAt(g++):0,g<w?o.charCodeAt(g++):0),d=l>>2,c=(3&l)<<4|u>>4,p=1<B?(15&u)<<2|h>>6:64,m=2<B?63&h:64,y.push(s.charAt(d)+s.charAt(c)+s.charAt(p)+s.charAt(m));return y.join("")},A.decode=function(o){var l,u,h,d,c,p,m=0,y=0,g="data:";if(o.substr(0,g.length)===g)throw new Error("Invalid base64 input, it looks like a data url.");var w,B=3*(o=o.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(o.charAt(o.length-1)===s.charAt(64)&&B--,o.charAt(o.length-2)===s.charAt(64)&&B--,B%1!=0)throw new Error("Invalid base64 input, bad content length.");for(w=a.uint8array?new Uint8Array(0|B):new Array(0|B);m<o.length;)l=s.indexOf(o.charAt(m++))<<2|(d=s.indexOf(o.charAt(m++)))>>4,u=(15&d)<<4|(c=s.indexOf(o.charAt(m++)))>>2,h=(3&c)<<6|(p=s.indexOf(o.charAt(m++))),w[y++]=l,c!==64&&(w[y++]=u),p!==64&&(w[y++]=h);return w}},{"./support":30,"./utils":32}],2:[function(t,n,A){var i=t("./external"),a=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),o=t("./stream/DataLengthProbe");function l(u,h,d,c,p){this.compressedSize=u,this.uncompressedSize=h,this.crc32=d,this.compression=c,this.compressedContent=p}l.prototype={getContentWorker:function(){var u=new a(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),h=this;return u.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new a(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},l.createWorkerFrom=function(u,h,d){return u.pipe(new s).pipe(new o("uncompressedSize")).pipe(h.compressWorker(d)).pipe(new o("compressedSize")).withStreamInfo("compression",h)},n.exports=l},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,n,A){var i=t("./stream/GenericWorker");A.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},A.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,n,A){var i=t("./utils"),a=function(){for(var s,o=[],l=0;l<256;l++){s=l;for(var u=0;u<8;u++)s=1&s?3988292384^s>>>1:s>>>1;o[l]=s}return o}();n.exports=function(s,o){return s!==void 0&&s.length?i.getTypeOf(s)!=="string"?function(l,u,h,d){var c=a,p=d+h;l^=-1;for(var m=d;m<p;m++)l=l>>>8^c[255&(l^u[m])];return-1^l}(0|o,s,s.length,0):function(l,u,h,d){var c=a,p=d+h;l^=-1;for(var m=d;m<p;m++)l=l>>>8^c[255&(l^u.charCodeAt(m))];return-1^l}(0|o,s,s.length,0):0}},{"./utils":32}],5:[function(t,n,A){A.base64=!1,A.binary=!1,A.dir=!1,A.createFolders=!0,A.date=null,A.compression=null,A.compressionOptions=null,A.comment=null,A.unixPermissions=null,A.dosPermissions=null},{}],6:[function(t,n,A){var i=null;i=typeof Promise<"u"?Promise:t("lie"),n.exports={Promise:i}},{lie:37}],7:[function(t,n,A){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=t("pako"),s=t("./utils"),o=t("./stream/GenericWorker"),l=i?"uint8array":"array";function u(h,d){o.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=d,this.meta={}}A.magic="\b\0",s.inherits(u,o),u.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(l,h.data),!1)},u.prototype.flush=function(){o.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(d){h.push({data:d,meta:h.meta})}},A.compressWorker=function(h){return new u("Deflate",h)},A.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,n,A){function i(c,p){var m,y="";for(m=0;m<p;m++)y+=String.fromCharCode(255&c),c>>>=8;return y}function a(c,p,m,y,g,w){var B,I,O=c.file,j=c.compression,R=w!==l.utf8encode,D=s.transformTo("string",w(O.name)),Q=s.transformTo("string",l.utf8encode(O.name)),J=O.comment,M=s.transformTo("string",w(J)),S=s.transformTo("string",l.utf8encode(J)),K=Q.length!==O.name.length,F=S.length!==J.length,ne="",ee="",G="",oe=O.dir,q=O.date,he={crc32:0,compressedSize:0,uncompressedSize:0};p&&!m||(he.crc32=c.crc32,he.compressedSize=c.compressedSize,he.uncompressedSize=c.uncompressedSize);var ie=0;p&&(ie|=8),R||!K&&!F||(ie|=2048);var E=0,k=0;oe&&(E|=16),g==="UNIX"?(k=798,E|=function(W,z){var _=W;return W||(_=z?16893:33204),(65535&_)<<16}(O.unixPermissions,oe)):(k=20,E|=function(W){return 63&(W||0)}(O.dosPermissions)),B=q.getUTCHours(),B<<=6,B|=q.getUTCMinutes(),B<<=5,B|=q.getUTCSeconds()/2,I=q.getUTCFullYear()-1980,I<<=4,I|=q.getUTCMonth()+1,I<<=5,I|=q.getUTCDate(),K&&(ee=i(1,1)+i(u(D),4)+Q,ne+="up"+i(ee.length,2)+ee),F&&(G=i(1,1)+i(u(M),4)+S,ne+="uc"+i(G.length,2)+G);var V="";return V+=`
50
+ \0`,V+=i(ie,2),V+=j.magic,V+=i(B,2),V+=i(I,2),V+=i(he.crc32,4),V+=i(he.compressedSize,4),V+=i(he.uncompressedSize,4),V+=i(D.length,2),V+=i(ne.length,2),{fileRecord:h.LOCAL_FILE_HEADER+V+D+ne,dirRecord:h.CENTRAL_FILE_HEADER+i(k,2)+V+i(M.length,2)+"\0\0\0\0"+i(E,4)+i(y,4)+D+ne+M}}var s=t("../utils"),o=t("../stream/GenericWorker"),l=t("../utf8"),u=t("../crc32"),h=t("../signature");function d(c,p,m,y){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=m,this.encodeFileName=y,this.streamFiles=c,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(d,o),d.prototype.push=function(c){var p=c.meta.percent||0,m=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(c):(this.bytesWritten+=c.data.length,o.prototype.push.call(this,{data:c.data,meta:{currentFile:this.currentFile,percent:m?(p+100*(m-y-1))/m:100}}))},d.prototype.openedSource=function(c){this.currentSourceOffset=this.bytesWritten,this.currentFile=c.file.name;var p=this.streamFiles&&!c.file.dir;if(p){var m=a(c,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(c){this.accumulate=!1;var p=this.streamFiles&&!c.file.dir,m=a(c,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),p)this.push({data:function(y){return h.DATA_DESCRIPTOR+i(y.crc32,4)+i(y.compressedSize,4)+i(y.uncompressedSize,4)}(c),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var c=this.bytesWritten,p=0;p<this.dirRecords.length;p++)this.push({data:this.dirRecords[p],meta:{percent:100}});var m=this.bytesWritten-c,y=function(g,w,B,I,O){var j=s.transformTo("string",O(I));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(g,2)+i(g,2)+i(w,4)+i(B,4)+i(j.length,2)+j}(this.dirRecords.length,m,c,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(c){this._sources.push(c);var p=this;return c.on("data",function(m){p.processChunk(m)}),c.on("end",function(){p.closedSource(p.previous.streamInfo),p._sources.length?p.prepareNextSource():p.end()}),c.on("error",function(m){p.error(m)}),this},d.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(c){var p=this._sources;if(!o.prototype.error.call(this,c))return!1;for(var m=0;m<p.length;m++)try{p[m].error(c)}catch{}return!0},d.prototype.lock=function(){o.prototype.lock.call(this);for(var c=this._sources,p=0;p<c.length;p++)c[p].lock()},n.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,n,A){var i=t("../compressions"),a=t("./ZipFileWorker");A.generateWorker=function(s,o,l){var u=new a(o.streamFiles,l,o.platform,o.encodeFileName),h=0;try{s.forEach(function(d,c){h++;var p=function(w,B){var I=w||B,O=i[I];if(!O)throw new Error(I+" is not a valid compression method !");return O}(c.options.compression,o.compression),m=c.options.compressionOptions||o.compressionOptions||{},y=c.dir,g=c.date;c._compressWorker(p,m).withStreamInfo("file",{name:d,dir:y,date:g,comment:c.comment||"",unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions}).pipe(u)}),u.entriesCount=h}catch(d){u.error(d)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,n,A){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new i;for(var s in this)typeof this[s]!="function"&&(a[s]=this[s]);return a}}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.10.1",i.loadAsync=function(a,s){return new i().loadAsync(a,s)},i.external=t("./external"),n.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,n,A){var i=t("./utils"),a=t("./external"),s=t("./utf8"),o=t("./zipEntries"),l=t("./stream/Crc32Probe"),u=t("./nodejsUtils");function h(d){return new a.Promise(function(c,p){var m=d.decompressed.getContentWorker().pipe(new l);m.on("error",function(y){p(y)}).on("end",function(){m.streamInfo.crc32!==d.decompressed.crc32?p(new Error("Corrupted zip : CRC32 mismatch")):c()}).resume()})}n.exports=function(d,c){var p=this;return c=i.extend(c||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),u.isNode&&u.isStream(d)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",d,!0,c.optimizedBinaryString,c.base64).then(function(m){var y=new o(c);return y.load(m),y}).then(function(m){var y=[a.Promise.resolve(m)],g=m.files;if(c.checkCRC32)for(var w=0;w<g.length;w++)y.push(h(g[w]));return a.Promise.all(y)}).then(function(m){for(var y=m.shift(),g=y.files,w=0;w<g.length;w++){var B=g[w],I=B.fileNameStr,O=i.resolve(B.fileNameStr);p.file(O,B.decompressed,{binary:!0,optimizedBinaryString:!0,date:B.date,dir:B.dir,comment:B.fileCommentStr.length?B.fileCommentStr:null,unixPermissions:B.unixPermissions,dosPermissions:B.dosPermissions,createFolders:c.createFolders}),B.dir||(p.file(O).unsafeOriginalName=I)}return y.zipComment.length&&(p.comment=y.zipComment),p})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,n,A){var i=t("../utils"),a=t("../stream/GenericWorker");function s(o,l){a.call(this,"Nodejs stream input adapter for "+o),this._upstreamEnded=!1,this._bindStream(l)}i.inherits(s,a),s.prototype._bindStream=function(o){var l=this;(this._stream=o).pause(),o.on("data",function(u){l.push({data:u,meta:{percent:0}})}).on("error",function(u){l.isPaused?this.generatedError=u:l.error(u)}).on("end",function(){l.isPaused?l._upstreamEnded=!0:l.end()})},s.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,n,A){var i=t("readable-stream").Readable;function a(s,o,l){i.call(this,o),this._helper=s;var u=this;s.on("data",function(h,d){u.push(h)||u._helper.pause(),l&&l(d)}).on("error",function(h){u.emit("error",h)}).on("end",function(){u.push(null)})}t("../utils").inherits(a,i),a.prototype._read=function(){this._helper.resume()},n.exports=a},{"../utils":32,"readable-stream":16}],14:[function(t,n,A){n.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,a);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,a)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var a=new Buffer(i);return a.fill(0),a},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(t,n,A){function i(O,j,R){var D,Q=s.getTypeOf(j),J=s.extend(R||{},u);J.date=J.date||new Date,J.compression!==null&&(J.compression=J.compression.toUpperCase()),typeof J.unixPermissions=="string"&&(J.unixPermissions=parseInt(J.unixPermissions,8)),J.unixPermissions&&16384&J.unixPermissions&&(J.dir=!0),J.dosPermissions&&16&J.dosPermissions&&(J.dir=!0),J.dir&&(O=g(O)),J.createFolders&&(D=y(O))&&w.call(this,D,!0);var M=Q==="string"&&J.binary===!1&&J.base64===!1;R&&R.binary!==void 0||(J.binary=!M),(j instanceof h&&j.uncompressedSize===0||J.dir||!j||j.length===0)&&(J.base64=!1,J.binary=!0,j="",J.compression="STORE",Q="string");var S=null;S=j instanceof h||j instanceof o?j:p.isNode&&p.isStream(j)?new m(O,j):s.prepareContent(O,j,J.binary,J.optimizedBinaryString,J.base64);var K=new d(O,S,J);this.files[O]=K}var a=t("./utf8"),s=t("./utils"),o=t("./stream/GenericWorker"),l=t("./stream/StreamHelper"),u=t("./defaults"),h=t("./compressedObject"),d=t("./zipObject"),c=t("./generate"),p=t("./nodejsUtils"),m=t("./nodejs/NodejsStreamInputAdapter"),y=function(O){O.slice(-1)==="/"&&(O=O.substring(0,O.length-1));var j=O.lastIndexOf("/");return 0<j?O.substring(0,j):""},g=function(O){return O.slice(-1)!=="/"&&(O+="/"),O},w=function(O,j){return j=j!==void 0?j:u.createFolders,O=g(O),this.files[O]||i.call(this,O,null,{dir:!0,createFolders:j}),this.files[O]};function B(O){return Object.prototype.toString.call(O)==="[object RegExp]"}var I={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(O){var j,R,D;for(j in this.files)D=this.files[j],(R=j.slice(this.root.length,j.length))&&j.slice(0,this.root.length)===this.root&&O(R,D)},filter:function(O){var j=[];return this.forEach(function(R,D){O(R,D)&&j.push(D)}),j},file:function(O,j,R){if(arguments.length!==1)return O=this.root+O,i.call(this,O,j,R),this;if(B(O)){var D=O;return this.filter(function(J,M){return!M.dir&&D.test(J)})}var Q=this.files[this.root+O];return Q&&!Q.dir?Q:null},folder:function(O){if(!O)return this;if(B(O))return this.filter(function(Q,J){return J.dir&&O.test(Q)});var j=this.root+O,R=w.call(this,j),D=this.clone();return D.root=R.name,D},remove:function(O){O=this.root+O;var j=this.files[O];if(j||(O.slice(-1)!=="/"&&(O+="/"),j=this.files[O]),j&&!j.dir)delete this.files[O];else for(var R=this.filter(function(Q,J){return J.name.slice(0,O.length)===O}),D=0;D<R.length;D++)delete this.files[R[D].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(O){var j,R={};try{if((R=s.extend(O||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=R.type.toLowerCase(),R.compression=R.compression.toUpperCase(),R.type==="binarystring"&&(R.type="string"),!R.type)throw new Error("No output type specified.");s.checkSupport(R.type),R.platform!=="darwin"&&R.platform!=="freebsd"&&R.platform!=="linux"&&R.platform!=="sunos"||(R.platform="UNIX"),R.platform==="win32"&&(R.platform="DOS");var D=R.comment||this.comment||"";j=c.generateWorker(this,R,D)}catch(Q){(j=new o("error")).error(Q)}return new l(j,R.type||"string",R.mimeType)},generateAsync:function(O,j){return this.generateInternalStream(O).accumulate(j)},generateNodeStream:function(O,j){return(O=O||{}).type||(O.type="nodebuffer"),this.generateInternalStream(O).toNodejsStream(j)}};n.exports=I},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,n,A){n.exports=t("stream")},{stream:void 0}],17:[function(t,n,A){var i=t("./DataReader");function a(s){i.call(this,s);for(var o=0;o<this.data.length;o++)s[o]=255&s[o]}t("../utils").inherits(a,i),a.prototype.byteAt=function(s){return this.data[this.zero+s]},a.prototype.lastIndexOfSignature=function(s){for(var o=s.charCodeAt(0),l=s.charCodeAt(1),u=s.charCodeAt(2),h=s.charCodeAt(3),d=this.length-4;0<=d;--d)if(this.data[d]===o&&this.data[d+1]===l&&this.data[d+2]===u&&this.data[d+3]===h)return d-this.zero;return-1},a.prototype.readAndCheckSignature=function(s){var o=s.charCodeAt(0),l=s.charCodeAt(1),u=s.charCodeAt(2),h=s.charCodeAt(3),d=this.readData(4);return o===d[0]&&l===d[1]&&u===d[2]&&h===d[3]},a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var o=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,o},n.exports=a},{"../utils":32,"./DataReader":18}],18:[function(t,n,A){var i=t("../utils");function a(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var o,l=0;for(this.checkOffset(s),o=this.index+s-1;o>=this.index;o--)l=(l<<8)+this.byteAt(o);return this.index+=s,l},readString:function(s){return i.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},n.exports=a},{"../utils":32}],19:[function(t,n,A){var i=t("./Uint8ArrayReader");function a(s){i.call(this,s)}t("../utils").inherits(a,i),a.prototype.readData=function(s){this.checkOffset(s);var o=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,o},n.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,n,A){var i=t("./DataReader");function a(s){i.call(this,s)}t("../utils").inherits(a,i),a.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},a.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},a.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},a.prototype.readData=function(s){this.checkOffset(s);var o=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,o},n.exports=a},{"../utils":32,"./DataReader":18}],21:[function(t,n,A){var i=t("./ArrayReader");function a(s){i.call(this,s)}t("../utils").inherits(a,i),a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var o=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,o},n.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(t,n,A){var i=t("../utils"),a=t("../support"),s=t("./ArrayReader"),o=t("./StringReader"),l=t("./NodeBufferReader"),u=t("./Uint8ArrayReader");n.exports=function(h){var d=i.getTypeOf(h);return i.checkSupport(d),d!=="string"||a.uint8array?d==="nodebuffer"?new l(h):a.uint8array?new u(i.transformTo("uint8array",h)):new s(i.transformTo("array",h)):new o(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,n,A){A.LOCAL_FILE_HEADER="PK",A.CENTRAL_FILE_HEADER="PK",A.CENTRAL_DIRECTORY_END="PK",A.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",A.ZIP64_CENTRAL_DIRECTORY_END="PK",A.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,n,A){var i=t("./GenericWorker"),a=t("../utils");function s(o){i.call(this,"ConvertWorker to "+o),this.destType=o}a.inherits(s,i),s.prototype.processChunk=function(o){this.push({data:a.transformTo(this.destType,o.data),meta:o.meta})},n.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,n,A){var i=t("./GenericWorker"),a=t("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,i),s.prototype.processChunk=function(o){this.streamInfo.crc32=a(o.data,this.streamInfo.crc32||0),this.push(o)},n.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,n,A){var i=t("../utils"),a=t("./GenericWorker");function s(o){a.call(this,"DataLengthProbe for "+o),this.propName=o,this.withStreamInfo(o,0)}i.inherits(s,a),s.prototype.processChunk=function(o){if(o){var l=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=l+o.data.length}a.prototype.processChunk.call(this,o)},n.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,n,A){var i=t("../utils"),a=t("./GenericWorker");function s(o){a.call(this,"DataWorker");var l=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,o.then(function(u){l.dataIsReady=!0,l.data=u,l.max=u&&u.length||0,l.type=i.getTypeOf(u),l.isPaused||l._tickAndRepeat()},function(u){l.error(u)})}i.inherits(s,a),s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var o=null,l=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":o=this.data.substring(this.index,l);break;case"uint8array":o=this.data.subarray(this.index,l);break;case"array":case"nodebuffer":o=this.data.slice(this.index,l)}return this.index=l,this.push({data:o,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,n,A){function i(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,s){return this._listeners[a].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,s){if(this._listeners[a])for(var o=0;o<this._listeners[a].length;o++)this._listeners[a][o].call(this,s)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var s=this;return a.on("data",function(o){s.processChunk(o)}),a.on("end",function(){s.end()}),a.on("error",function(o){s.error(o)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,s){return this.extraStreamInfo[a]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},n.exports=i},{}],29:[function(t,n,A){var i=t("../utils"),a=t("./ConvertWorker"),s=t("./GenericWorker"),o=t("../base64"),l=t("../support"),u=t("../external"),h=null;if(l.nodestream)try{h=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(p,m){return new u.Promise(function(y,g){var w=[],B=p._internalType,I=p._outputType,O=p._mimeType;p.on("data",function(j,R){w.push(j),m&&m(R)}).on("error",function(j){w=[],g(j)}).on("end",function(){try{var j=function(R,D,Q){switch(R){case"blob":return i.newBlob(i.transformTo("arraybuffer",D),Q);case"base64":return o.encode(D);default:return i.transformTo(R,D)}}(I,function(R,D){var Q,J=0,M=null,S=0;for(Q=0;Q<D.length;Q++)S+=D[Q].length;switch(R){case"string":return D.join("");case"array":return Array.prototype.concat.apply([],D);case"uint8array":for(M=new Uint8Array(S),Q=0;Q<D.length;Q++)M.set(D[Q],J),J+=D[Q].length;return M;case"nodebuffer":return Buffer.concat(D);default:throw new Error("concat : unsupported type '"+R+"'")}}(B,w),O);y(j)}catch(R){g(R)}w=[]}).resume()})}function c(p,m,y){var g=m;switch(m){case"blob":case"arraybuffer":g="uint8array";break;case"base64":g="string"}try{this._internalType=g,this._outputType=m,this._mimeType=y,i.checkSupport(g),this._worker=p.pipe(new a(g)),p.lock()}catch(w){this._worker=new s("error"),this._worker.error(w)}}c.prototype={accumulate:function(p){return d(this,p)},on:function(p,m){var y=this;return p==="data"?this._worker.on(p,function(g){m.call(y,g.data,g.meta)}):this._worker.on(p,function(){i.delay(m,arguments,y)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(p){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},p)}},n.exports=c},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,A){if(A.base64=!0,A.array=!0,A.string=!0,A.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",A.nodebuffer=typeof Buffer<"u",A.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")A.blob=!1;else{var i=new ArrayBuffer(0);try{A.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),A.blob=a.getBlob("application/zip").size===0}catch{A.blob=!1}}}try{A.nodestream=!!t("readable-stream").Readable}catch{A.nodestream=!1}},{"readable-stream":16}],31:[function(t,n,A){for(var i=t("./utils"),a=t("./support"),s=t("./nodejsUtils"),o=t("./stream/GenericWorker"),l=new Array(256),u=0;u<256;u++)l[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;l[254]=l[254]=1;function h(){o.call(this,"utf-8 decode"),this.leftOver=null}function d(){o.call(this,"utf-8 encode")}A.utf8encode=function(c){return a.nodebuffer?s.newBufferFrom(c,"utf-8"):function(p){var m,y,g,w,B,I=p.length,O=0;for(w=0;w<I;w++)(64512&(y=p.charCodeAt(w)))==55296&&w+1<I&&(64512&(g=p.charCodeAt(w+1)))==56320&&(y=65536+(y-55296<<10)+(g-56320),w++),O+=y<128?1:y<2048?2:y<65536?3:4;for(m=a.uint8array?new Uint8Array(O):new Array(O),w=B=0;B<O;w++)(64512&(y=p.charCodeAt(w)))==55296&&w+1<I&&(64512&(g=p.charCodeAt(w+1)))==56320&&(y=65536+(y-55296<<10)+(g-56320),w++),y<128?m[B++]=y:(y<2048?m[B++]=192|y>>>6:(y<65536?m[B++]=224|y>>>12:(m[B++]=240|y>>>18,m[B++]=128|y>>>12&63),m[B++]=128|y>>>6&63),m[B++]=128|63&y);return m}(c)},A.utf8decode=function(c){return a.nodebuffer?i.transformTo("nodebuffer",c).toString("utf-8"):function(p){var m,y,g,w,B=p.length,I=new Array(2*B);for(m=y=0;m<B;)if((g=p[m++])<128)I[y++]=g;else if(4<(w=l[g]))I[y++]=65533,m+=w-1;else{for(g&=w===2?31:w===3?15:7;1<w&&m<B;)g=g<<6|63&p[m++],w--;1<w?I[y++]=65533:g<65536?I[y++]=g:(g-=65536,I[y++]=55296|g>>10&1023,I[y++]=56320|1023&g)}return I.length!==y&&(I.subarray?I=I.subarray(0,y):I.length=y),i.applyFromCharCode(I)}(c=i.transformTo(a.uint8array?"uint8array":"array",c))},i.inherits(h,o),h.prototype.processChunk=function(c){var p=i.transformTo(a.uint8array?"uint8array":"array",c.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var m=p;(p=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),p.set(m,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var y=function(w,B){var I;for((B=B||w.length)>w.length&&(B=w.length),I=B-1;0<=I&&(192&w[I])==128;)I--;return I<0||I===0?B:I+l[w[I]]>B?I:B}(p),g=p;y!==p.length&&(a.uint8array?(g=p.subarray(0,y),this.leftOver=p.subarray(y,p.length)):(g=p.slice(0,y),this.leftOver=p.slice(y,p.length))),this.push({data:A.utf8decode(g),meta:c.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:A.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},A.Utf8DecodeWorker=h,i.inherits(d,o),d.prototype.processChunk=function(c){this.push({data:A.utf8encode(c.data),meta:c.meta})},A.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,n,A){var i=t("./support"),a=t("./base64"),s=t("./nodejsUtils"),o=t("./external");function l(m){return m}function u(m,y){for(var g=0;g<m.length;++g)y[g]=255&m.charCodeAt(g);return y}t("setimmediate"),A.newBlob=function(m,y){A.checkSupport("blob");try{return new Blob([m],{type:y})}catch{try{var g=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return g.append(m),g.getBlob(y)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(m,y,g){var w=[],B=0,I=m.length;if(I<=g)return String.fromCharCode.apply(null,m);for(;B<I;)y==="array"||y==="nodebuffer"?w.push(String.fromCharCode.apply(null,m.slice(B,Math.min(B+g,I)))):w.push(String.fromCharCode.apply(null,m.subarray(B,Math.min(B+g,I)))),B+=g;return w.join("")},stringifyByChar:function(m){for(var y="",g=0;g<m.length;g++)y+=String.fromCharCode(m[g]);return y},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}}()}};function d(m){var y=65536,g=A.getTypeOf(m),w=!0;if(g==="uint8array"?w=h.applyCanBeUsed.uint8array:g==="nodebuffer"&&(w=h.applyCanBeUsed.nodebuffer),w)for(;1<y;)try{return h.stringifyByChunk(m,g,y)}catch{y=Math.floor(y/2)}return h.stringifyByChar(m)}function c(m,y){for(var g=0;g<m.length;g++)y[g]=m[g];return y}A.applyFromCharCode=d;var p={};p.string={string:l,array:function(m){return u(m,new Array(m.length))},arraybuffer:function(m){return p.string.uint8array(m).buffer},uint8array:function(m){return u(m,new Uint8Array(m.length))},nodebuffer:function(m){return u(m,s.allocBuffer(m.length))}},p.array={string:d,array:l,arraybuffer:function(m){return new Uint8Array(m).buffer},uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return s.newBufferFrom(m)}},p.arraybuffer={string:function(m){return d(new Uint8Array(m))},array:function(m){return c(new Uint8Array(m),new Array(m.byteLength))},arraybuffer:l,uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return s.newBufferFrom(new Uint8Array(m))}},p.uint8array={string:d,array:function(m){return c(m,new Array(m.length))},arraybuffer:function(m){return m.buffer},uint8array:l,nodebuffer:function(m){return s.newBufferFrom(m)}},p.nodebuffer={string:d,array:function(m){return c(m,new Array(m.length))},arraybuffer:function(m){return p.nodebuffer.uint8array(m).buffer},uint8array:function(m){return c(m,new Uint8Array(m.length))},nodebuffer:l},A.transformTo=function(m,y){if(y=y||"",!m)return y;A.checkSupport(m);var g=A.getTypeOf(y);return p[g][m](y)},A.resolve=function(m){for(var y=m.split("/"),g=[],w=0;w<y.length;w++){var B=y[w];B==="."||B===""&&w!==0&&w!==y.length-1||(B===".."?g.pop():g.push(B))}return g.join("/")},A.getTypeOf=function(m){return typeof m=="string"?"string":Object.prototype.toString.call(m)==="[object Array]"?"array":i.nodebuffer&&s.isBuffer(m)?"nodebuffer":i.uint8array&&m instanceof Uint8Array?"uint8array":i.arraybuffer&&m instanceof ArrayBuffer?"arraybuffer":void 0},A.checkSupport=function(m){if(!i[m.toLowerCase()])throw new Error(m+" is not supported by this platform")},A.MAX_VALUE_16BITS=65535,A.MAX_VALUE_32BITS=-1,A.pretty=function(m){var y,g,w="";for(g=0;g<(m||"").length;g++)w+="\\x"+((y=m.charCodeAt(g))<16?"0":"")+y.toString(16).toUpperCase();return w},A.delay=function(m,y,g){setImmediate(function(){m.apply(g||null,y||[])})},A.inherits=function(m,y){function g(){}g.prototype=y.prototype,m.prototype=new g},A.extend=function(){var m,y,g={};for(m=0;m<arguments.length;m++)for(y in arguments[m])Object.prototype.hasOwnProperty.call(arguments[m],y)&&g[y]===void 0&&(g[y]=arguments[m][y]);return g},A.prepareContent=function(m,y,g,w,B){return o.Promise.resolve(y).then(function(I){return i.blob&&(I instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(I))!==-1)&&typeof FileReader<"u"?new o.Promise(function(O,j){var R=new FileReader;R.onload=function(D){O(D.target.result)},R.onerror=function(D){j(D.target.error)},R.readAsArrayBuffer(I)}):I}).then(function(I){var O=A.getTypeOf(I);return O?(O==="arraybuffer"?I=A.transformTo("uint8array",I):O==="string"&&(B?I=a.decode(I):g&&w!==!0&&(I=function(j){return u(j,i.uint8array?new Uint8Array(j.length):new Array(j.length))}(I))),I):o.Promise.reject(new Error("Can't read the data of '"+m+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,n,A){var i=t("./reader/readerFor"),a=t("./utils"),s=t("./signature"),o=t("./zipEntry"),l=t("./support");function u(h){this.files=[],this.loadOptions=h}u.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var d=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(d)+", expected "+a.pretty(h)+")")}},isSignature:function(h,d){var c=this.reader.index;this.reader.setIndex(h);var p=this.reader.readString(4)===d;return this.reader.setIndex(c),p},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var h=this.reader.readData(this.zipCommentLength),d=l.uint8array?"uint8array":"array",c=a.transformTo(d,h);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var h,d,c,p=this.zip64EndOfCentralSize-44;0<p;)h=this.reader.readInt(2),d=this.reader.readInt(4),c=this.reader.readData(d),this.zip64ExtensibleData[h]={id:h,length:d,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var h,d;for(h=0;h<this.files.length;h++)d=this.files[h],this.reader.setIndex(d.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),d.readLocalPart(this.reader),d.handleUTF8(),d.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(h=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var h=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(h<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(h);var d=h;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(h=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(h),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var p=d-c;if(0<p)this.isSignature(d,s.CENTRAL_FILE_HEADER)||(this.reader.zero=p);else if(p<0)throw new Error("Corrupted zip: missing "+Math.abs(p)+" bytes.")},prepareReader:function(h){this.reader=i(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,n,A){var i=t("./reader/readerFor"),a=t("./utils"),s=t("./compressedObject"),o=t("./crc32"),l=t("./utf8"),u=t("./compressions"),h=t("./support");function d(c,p){this.options=c,this.loadOptions=p}d.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(c){var p,m;if(c.skip(22),this.fileNameLength=c.readInt(2),m=c.readInt(2),this.fileName=c.readData(this.fileNameLength),c.skip(m),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((p=function(y){for(var g in u)if(Object.prototype.hasOwnProperty.call(u,g)&&u[g].magic===y)return u[g];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,p,c.readData(this.compressedSize))},readCentralPart:function(c){this.versionMadeBy=c.readInt(2),c.skip(2),this.bitFlag=c.readInt(2),this.compressionMethod=c.readString(2),this.date=c.readDate(),this.crc32=c.readInt(4),this.compressedSize=c.readInt(4),this.uncompressedSize=c.readInt(4);var p=c.readInt(2);if(this.extraFieldsLength=c.readInt(2),this.fileCommentLength=c.readInt(2),this.diskNumberStart=c.readInt(2),this.internalFileAttributes=c.readInt(2),this.externalFileAttributes=c.readInt(4),this.localHeaderOffset=c.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");c.skip(p),this.readExtraFields(c),this.parseZIP64ExtraField(c),this.fileComment=c.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var c=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),c==0&&(this.dosPermissions=63&this.externalFileAttributes),c==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var c=i(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var p,m,y,g=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<g;)p=c.readInt(2),m=c.readInt(2),y=c.readData(m),this.extraFields[p]={id:p,length:m,value:y};c.setIndex(g)},handleUTF8:function(){var c=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=l.utf8decode(this.fileName),this.fileCommentStr=l.utf8decode(this.fileComment);else{var p=this.findExtraFieldUnicodePath();if(p!==null)this.fileNameStr=p;else{var m=a.transformTo(c,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(m)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var g=a.transformTo(c,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(g)}}},findExtraFieldUnicodePath:function(){var c=this.extraFields[28789];if(c){var p=i(c.value);return p.readInt(1)!==1||o(this.fileName)!==p.readInt(4)?null:l.utf8decode(p.readData(c.length-5))}return null},findExtraFieldUnicodeComment:function(){var c=this.extraFields[25461];if(c){var p=i(c.value);return p.readInt(1)!==1||o(this.fileComment)!==p.readInt(4)?null:l.utf8decode(p.readData(c.length-5))}return null}},n.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,n,A){function i(p,m,y){this.name=p,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=m,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var a=t("./stream/StreamHelper"),s=t("./stream/DataWorker"),o=t("./utf8"),l=t("./compressedObject"),u=t("./stream/GenericWorker");i.prototype={internalStream:function(p){var m=null,y="string";try{if(!p)throw new Error("No output type specified.");var g=(y=p.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),m=this._decompressWorker();var w=!this._dataBinary;w&&!g&&(m=m.pipe(new o.Utf8EncodeWorker)),!w&&g&&(m=m.pipe(new o.Utf8DecodeWorker))}catch(B){(m=new u("error")).error(B)}return new a(m,y,"")},async:function(p,m){return this.internalStream(p).accumulate(m)},nodeStream:function(p,m){return this.internalStream(p||"nodebuffer").toNodejsStream(m)},_compressWorker:function(p,m){if(this._data instanceof l&&this._data.compression.magic===p.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new o.Utf8EncodeWorker)),l.createWorkerFrom(y,p,m)},_decompressWorker:function(){return this._data instanceof l?this._data.getContentWorker():this._data instanceof u?this._data:new s(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<h.length;c++)i.prototype[h[c]]=d;n.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,n,A){(function(i){var a,s,o=i.MutationObserver||i.WebKitMutationObserver;if(o){var l=0,u=new o(p),h=i.document.createTextNode("");u.observe(h,{characterData:!0}),a=function(){h.data=l=++l%2}}else if(i.setImmediate||i.MessageChannel===void 0)a="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var m=i.document.createElement("script");m.onreadystatechange=function(){p(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},i.document.documentElement.appendChild(m)}:function(){setTimeout(p,0)};else{var d=new i.MessageChannel;d.port1.onmessage=p,a=function(){d.port2.postMessage(0)}}var c=[];function p(){var m,y;s=!0;for(var g=c.length;g;){for(y=c,c=[],m=-1;++m<g;)y[m]();g=c.length}s=!1}n.exports=function(m){c.push(m)!==1||s||a()}}).call(this,typeof GA<"u"?GA:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(t,n,A){var i=t("immediate");function a(){}var s={},o=["REJECTED"],l=["FULFILLED"],u=["PENDING"];function h(g){if(typeof g!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,g!==a&&m(this,g)}function d(g,w,B){this.promise=g,typeof w=="function"&&(this.onFulfilled=w,this.callFulfilled=this.otherCallFulfilled),typeof B=="function"&&(this.onRejected=B,this.callRejected=this.otherCallRejected)}function c(g,w,B){i(function(){var I;try{I=w(B)}catch(O){return s.reject(g,O)}I===g?s.reject(g,new TypeError("Cannot resolve promise with itself")):s.resolve(g,I)})}function p(g){var w=g&&g.then;if(g&&(typeof g=="object"||typeof g=="function")&&typeof w=="function")return function(){w.apply(g,arguments)}}function m(g,w){var B=!1;function I(R){B||(B=!0,s.reject(g,R))}function O(R){B||(B=!0,s.resolve(g,R))}var j=y(function(){w(O,I)});j.status==="error"&&I(j.value)}function y(g,w){var B={};try{B.value=g(w),B.status="success"}catch(I){B.status="error",B.value=I}return B}(n.exports=h).prototype.finally=function(g){if(typeof g!="function")return this;var w=this.constructor;return this.then(function(B){return w.resolve(g()).then(function(){return B})},function(B){return w.resolve(g()).then(function(){throw B})})},h.prototype.catch=function(g){return this.then(null,g)},h.prototype.then=function(g,w){if(typeof g!="function"&&this.state===l||typeof w!="function"&&this.state===o)return this;var B=new this.constructor(a);return this.state!==u?c(B,this.state===l?g:w,this.outcome):this.queue.push(new d(B,g,w)),B},d.prototype.callFulfilled=function(g){s.resolve(this.promise,g)},d.prototype.otherCallFulfilled=function(g){c(this.promise,this.onFulfilled,g)},d.prototype.callRejected=function(g){s.reject(this.promise,g)},d.prototype.otherCallRejected=function(g){c(this.promise,this.onRejected,g)},s.resolve=function(g,w){var B=y(p,w);if(B.status==="error")return s.reject(g,B.value);var I=B.value;if(I)m(g,I);else{g.state=l,g.outcome=w;for(var O=-1,j=g.queue.length;++O<j;)g.queue[O].callFulfilled(w)}return g},s.reject=function(g,w){g.state=o,g.outcome=w;for(var B=-1,I=g.queue.length;++B<I;)g.queue[B].callRejected(w);return g},h.resolve=function(g){return g instanceof this?g:s.resolve(new this(a),g)},h.reject=function(g){var w=new this(a);return s.reject(w,g)},h.all=function(g){var w=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var B=g.length,I=!1;if(!B)return this.resolve([]);for(var O=new Array(B),j=0,R=-1,D=new this(a);++R<B;)Q(g[R],R);return D;function Q(J,M){w.resolve(J).then(function(S){O[M]=S,++j!==B||I||(I=!0,s.resolve(D,O))},function(S){I||(I=!0,s.reject(D,S))})}},h.race=function(g){var w=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var B=g.length,I=!1;if(!B)return this.resolve([]);for(var O=-1,j=new this(a);++O<B;)R=g[O],w.resolve(R).then(function(D){I||(I=!0,s.resolve(j,D))},function(D){I||(I=!0,s.reject(j,D))});var R;return j}},{immediate:36}],38:[function(t,n,A){var i={};(0,t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),n.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,n,A){var i=t("./zlib/deflate"),a=t("./utils/common"),s=t("./utils/strings"),o=t("./zlib/messages"),l=t("./zlib/zstream"),u=Object.prototype.toString,h=0,d=-1,c=0,p=8;function m(g){if(!(this instanceof m))return new m(g);this.options=a.assign({level:d,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},g||{});var w=this.options;w.raw&&0<w.windowBits?w.windowBits=-w.windowBits:w.gzip&&0<w.windowBits&&w.windowBits<16&&(w.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var B=i.deflateInit2(this.strm,w.level,w.method,w.windowBits,w.memLevel,w.strategy);if(B!==h)throw new Error(o[B]);if(w.header&&i.deflateSetHeader(this.strm,w.header),w.dictionary){var I;if(I=typeof w.dictionary=="string"?s.string2buf(w.dictionary):u.call(w.dictionary)==="[object ArrayBuffer]"?new Uint8Array(w.dictionary):w.dictionary,(B=i.deflateSetDictionary(this.strm,I))!==h)throw new Error(o[B]);this._dict_set=!0}}function y(g,w){var B=new m(w);if(B.push(g,!0),B.err)throw B.msg||o[B.err];return B.result}m.prototype.push=function(g,w){var B,I,O=this.strm,j=this.options.chunkSize;if(this.ended)return!1;I=w===~~w?w:w===!0?4:0,typeof g=="string"?O.input=s.string2buf(g):u.call(g)==="[object ArrayBuffer]"?O.input=new Uint8Array(g):O.input=g,O.next_in=0,O.avail_in=O.input.length;do{if(O.avail_out===0&&(O.output=new a.Buf8(j),O.next_out=0,O.avail_out=j),(B=i.deflate(O,I))!==1&&B!==h)return this.onEnd(B),!(this.ended=!0);O.avail_out!==0&&(O.avail_in!==0||I!==4&&I!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(a.shrinkBuf(O.output,O.next_out))):this.onData(a.shrinkBuf(O.output,O.next_out)))}while((0<O.avail_in||O.avail_out===0)&&B!==1);return I===4?(B=i.deflateEnd(this.strm),this.onEnd(B),this.ended=!0,B===h):I!==2||(this.onEnd(h),!(O.avail_out=0))},m.prototype.onData=function(g){this.chunks.push(g)},m.prototype.onEnd=function(g){g===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},A.Deflate=m,A.deflate=y,A.deflateRaw=function(g,w){return(w=w||{}).raw=!0,y(g,w)},A.gzip=function(g,w){return(w=w||{}).gzip=!0,y(g,w)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,n,A){var i=t("./zlib/inflate"),a=t("./utils/common"),s=t("./utils/strings"),o=t("./zlib/constants"),l=t("./zlib/messages"),u=t("./zlib/zstream"),h=t("./zlib/gzheader"),d=Object.prototype.toString;function c(m){if(!(this instanceof c))return new c(m);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},m||{});var y=this.options;y.raw&&0<=y.windowBits&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),!(0<=y.windowBits&&y.windowBits<16)||m&&m.windowBits||(y.windowBits+=32),15<y.windowBits&&y.windowBits<48&&!(15&y.windowBits)&&(y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var g=i.inflateInit2(this.strm,y.windowBits);if(g!==o.Z_OK)throw new Error(l[g]);this.header=new h,i.inflateGetHeader(this.strm,this.header)}function p(m,y){var g=new c(y);if(g.push(m,!0),g.err)throw g.msg||l[g.err];return g.result}c.prototype.push=function(m,y){var g,w,B,I,O,j,R=this.strm,D=this.options.chunkSize,Q=this.options.dictionary,J=!1;if(this.ended)return!1;w=y===~~y?y:y===!0?o.Z_FINISH:o.Z_NO_FLUSH,typeof m=="string"?R.input=s.binstring2buf(m):d.call(m)==="[object ArrayBuffer]"?R.input=new Uint8Array(m):R.input=m,R.next_in=0,R.avail_in=R.input.length;do{if(R.avail_out===0&&(R.output=new a.Buf8(D),R.next_out=0,R.avail_out=D),(g=i.inflate(R,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&Q&&(j=typeof Q=="string"?s.string2buf(Q):d.call(Q)==="[object ArrayBuffer]"?new Uint8Array(Q):Q,g=i.inflateSetDictionary(this.strm,j)),g===o.Z_BUF_ERROR&&J===!0&&(g=o.Z_OK,J=!1),g!==o.Z_STREAM_END&&g!==o.Z_OK)return this.onEnd(g),!(this.ended=!0);R.next_out&&(R.avail_out!==0&&g!==o.Z_STREAM_END&&(R.avail_in!==0||w!==o.Z_FINISH&&w!==o.Z_SYNC_FLUSH)||(this.options.to==="string"?(B=s.utf8border(R.output,R.next_out),I=R.next_out-B,O=s.buf2string(R.output,B),R.next_out=I,R.avail_out=D-I,I&&a.arraySet(R.output,R.output,B,I,0),this.onData(O)):this.onData(a.shrinkBuf(R.output,R.next_out)))),R.avail_in===0&&R.avail_out===0&&(J=!0)}while((0<R.avail_in||R.avail_out===0)&&g!==o.Z_STREAM_END);return g===o.Z_STREAM_END&&(w=o.Z_FINISH),w===o.Z_FINISH?(g=i.inflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===o.Z_OK):w!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(R.avail_out=0))},c.prototype.onData=function(m){this.chunks.push(m)},c.prototype.onEnd=function(m){m===o.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},A.Inflate=c,A.inflate=p,A.inflateRaw=function(m,y){return(y=y||{}).raw=!0,p(m,y)},A.ungzip=p},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,n,A){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";A.assign=function(o){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var u=l.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var h in u)u.hasOwnProperty(h)&&(o[h]=u[h])}}return o},A.shrinkBuf=function(o,l){return o.length===l?o:o.subarray?o.subarray(0,l):(o.length=l,o)};var a={arraySet:function(o,l,u,h,d){if(l.subarray&&o.subarray)o.set(l.subarray(u,u+h),d);else for(var c=0;c<h;c++)o[d+c]=l[u+c]},flattenChunks:function(o){var l,u,h,d,c,p;for(l=h=0,u=o.length;l<u;l++)h+=o[l].length;for(p=new Uint8Array(h),l=d=0,u=o.length;l<u;l++)c=o[l],p.set(c,d),d+=c.length;return p}},s={arraySet:function(o,l,u,h,d){for(var c=0;c<h;c++)o[d+c]=l[u+c]},flattenChunks:function(o){return[].concat.apply([],o)}};A.setTyped=function(o){o?(A.Buf8=Uint8Array,A.Buf16=Uint16Array,A.Buf32=Int32Array,A.assign(A,a)):(A.Buf8=Array,A.Buf16=Array,A.Buf32=Array,A.assign(A,s))},A.setTyped(i)},{}],42:[function(t,n,A){var i=t("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var o=new i.Buf8(256),l=0;l<256;l++)o[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(h,d){if(d<65537&&(h.subarray&&s||!h.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(h,d));for(var c="",p=0;p<d;p++)c+=String.fromCharCode(h[p]);return c}o[254]=o[254]=1,A.string2buf=function(h){var d,c,p,m,y,g=h.length,w=0;for(m=0;m<g;m++)(64512&(c=h.charCodeAt(m)))==55296&&m+1<g&&(64512&(p=h.charCodeAt(m+1)))==56320&&(c=65536+(c-55296<<10)+(p-56320),m++),w+=c<128?1:c<2048?2:c<65536?3:4;for(d=new i.Buf8(w),m=y=0;y<w;m++)(64512&(c=h.charCodeAt(m)))==55296&&m+1<g&&(64512&(p=h.charCodeAt(m+1)))==56320&&(c=65536+(c-55296<<10)+(p-56320),m++),c<128?d[y++]=c:(c<2048?d[y++]=192|c>>>6:(c<65536?d[y++]=224|c>>>12:(d[y++]=240|c>>>18,d[y++]=128|c>>>12&63),d[y++]=128|c>>>6&63),d[y++]=128|63&c);return d},A.buf2binstring=function(h){return u(h,h.length)},A.binstring2buf=function(h){for(var d=new i.Buf8(h.length),c=0,p=d.length;c<p;c++)d[c]=h.charCodeAt(c);return d},A.buf2string=function(h,d){var c,p,m,y,g=d||h.length,w=new Array(2*g);for(c=p=0;c<g;)if((m=h[c++])<128)w[p++]=m;else if(4<(y=o[m]))w[p++]=65533,c+=y-1;else{for(m&=y===2?31:y===3?15:7;1<y&&c<g;)m=m<<6|63&h[c++],y--;1<y?w[p++]=65533:m<65536?w[p++]=m:(m-=65536,w[p++]=55296|m>>10&1023,w[p++]=56320|1023&m)}return u(w,p)},A.utf8border=function(h,d){var c;for((d=d||h.length)>h.length&&(d=h.length),c=d-1;0<=c&&(192&h[c])==128;)c--;return c<0||c===0?d:c+o[h[c]]>d?c:d}},{"./common":41}],43:[function(t,n,A){n.exports=function(i,a,s,o){for(var l=65535&i|0,u=i>>>16&65535|0,h=0;s!==0;){for(s-=h=2e3<s?2e3:s;u=u+(l=l+a[o++]|0)|0,--h;);l%=65521,u%=65521}return l|u<<16|0}},{}],44:[function(t,n,A){n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,n,A){var i=function(){for(var a,s=[],o=0;o<256;o++){a=o;for(var l=0;l<8;l++)a=1&a?3988292384^a>>>1:a>>>1;s[o]=a}return s}();n.exports=function(a,s,o,l){var u=i,h=l+o;a^=-1;for(var d=l;d<h;d++)a=a>>>8^u[255&(a^s[d])];return-1^a}},{}],46:[function(t,n,A){var i,a=t("../utils/common"),s=t("./trees"),o=t("./adler32"),l=t("./crc32"),u=t("./messages"),h=0,d=4,c=0,p=-2,m=-1,y=4,g=2,w=8,B=9,I=286,O=30,j=19,R=2*I+1,D=15,Q=3,J=258,M=J+Q+1,S=42,K=113,F=1,ne=2,ee=3,G=4;function oe(P,de){return P.msg=u[de],de}function q(P){return(P<<1)-(4<P?9:0)}function he(P){for(var de=P.length;0<=--de;)P[de]=0}function ie(P){var de=P.state,U=de.pending;U>P.avail_out&&(U=P.avail_out),U!==0&&(a.arraySet(P.output,de.pending_buf,de.pending_out,U,P.next_out),P.next_out+=U,de.pending_out+=U,P.total_out+=U,P.avail_out-=U,de.pending-=U,de.pending===0&&(de.pending_out=0))}function E(P,de){s._tr_flush_block(P,0<=P.block_start?P.block_start:-1,P.strstart-P.block_start,de),P.block_start=P.strstart,ie(P.strm)}function k(P,de){P.pending_buf[P.pending++]=de}function V(P,de){P.pending_buf[P.pending++]=de>>>8&255,P.pending_buf[P.pending++]=255&de}function W(P,de){var U,b,x=P.max_chain_length,N=P.strstart,ae=P.prev_length,fe=P.nice_match,ue=P.strstart>P.w_size-M?P.strstart-(P.w_size-M):0,be=P.window,Fe=P.w_mask,Se=P.prev,Pe=P.strstart+J,je=be[N+ae-1],$e=be[N+ae];P.prev_length>=P.good_match&&(x>>=2),fe>P.lookahead&&(fe=P.lookahead);do if(be[(U=de)+ae]===$e&&be[U+ae-1]===je&&be[U]===be[N]&&be[++U]===be[N+1]){N+=2,U++;do;while(be[++N]===be[++U]&&be[++N]===be[++U]&&be[++N]===be[++U]&&be[++N]===be[++U]&&be[++N]===be[++U]&&be[++N]===be[++U]&&be[++N]===be[++U]&&be[++N]===be[++U]&&N<Pe);if(b=J-(Pe-N),N=Pe-J,ae<b){if(P.match_start=de,fe<=(ae=b))break;je=be[N+ae-1],$e=be[N+ae]}}while((de=Se[de&Fe])>ue&&--x!=0);return ae<=P.lookahead?ae:P.lookahead}function z(P){var de,U,b,x,N,ae,fe,ue,be,Fe,Se=P.w_size;do{if(x=P.window_size-P.lookahead-P.strstart,P.strstart>=Se+(Se-M)){for(a.arraySet(P.window,P.window,Se,Se,0),P.match_start-=Se,P.strstart-=Se,P.block_start-=Se,de=U=P.hash_size;b=P.head[--de],P.head[de]=Se<=b?b-Se:0,--U;);for(de=U=Se;b=P.prev[--de],P.prev[de]=Se<=b?b-Se:0,--U;);x+=Se}if(P.strm.avail_in===0)break;if(ae=P.strm,fe=P.window,ue=P.strstart+P.lookahead,be=x,Fe=void 0,Fe=ae.avail_in,be<Fe&&(Fe=be),U=Fe===0?0:(ae.avail_in-=Fe,a.arraySet(fe,ae.input,ae.next_in,Fe,ue),ae.state.wrap===1?ae.adler=o(ae.adler,fe,Fe,ue):ae.state.wrap===2&&(ae.adler=l(ae.adler,fe,Fe,ue)),ae.next_in+=Fe,ae.total_in+=Fe,Fe),P.lookahead+=U,P.lookahead+P.insert>=Q)for(N=P.strstart-P.insert,P.ins_h=P.window[N],P.ins_h=(P.ins_h<<P.hash_shift^P.window[N+1])&P.hash_mask;P.insert&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[N+Q-1])&P.hash_mask,P.prev[N&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=N,N++,P.insert--,!(P.lookahead+P.insert<Q)););}while(P.lookahead<M&&P.strm.avail_in!==0)}function _(P,de){for(var U,b;;){if(P.lookahead<M){if(z(P),P.lookahead<M&&de===h)return F;if(P.lookahead===0)break}if(U=0,P.lookahead>=Q&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+Q-1])&P.hash_mask,U=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),U!==0&&P.strstart-U<=P.w_size-M&&(P.match_length=W(P,U)),P.match_length>=Q)if(b=s._tr_tally(P,P.strstart-P.match_start,P.match_length-Q),P.lookahead-=P.match_length,P.match_length<=P.max_lazy_match&&P.lookahead>=Q){for(P.match_length--;P.strstart++,P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+Q-1])&P.hash_mask,U=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart,--P.match_length!=0;);P.strstart++}else P.strstart+=P.match_length,P.match_length=0,P.ins_h=P.window[P.strstart],P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+1])&P.hash_mask;else b=s._tr_tally(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++;if(b&&(E(P,!1),P.strm.avail_out===0))return F}return P.insert=P.strstart<Q-1?P.strstart:Q-1,de===d?(E(P,!0),P.strm.avail_out===0?ee:G):P.last_lit&&(E(P,!1),P.strm.avail_out===0)?F:ne}function L(P,de){for(var U,b,x;;){if(P.lookahead<M){if(z(P),P.lookahead<M&&de===h)return F;if(P.lookahead===0)break}if(U=0,P.lookahead>=Q&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+Q-1])&P.hash_mask,U=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),P.prev_length=P.match_length,P.prev_match=P.match_start,P.match_length=Q-1,U!==0&&P.prev_length<P.max_lazy_match&&P.strstart-U<=P.w_size-M&&(P.match_length=W(P,U),P.match_length<=5&&(P.strategy===1||P.match_length===Q&&4096<P.strstart-P.match_start)&&(P.match_length=Q-1)),P.prev_length>=Q&&P.match_length<=P.prev_length){for(x=P.strstart+P.lookahead-Q,b=s._tr_tally(P,P.strstart-1-P.prev_match,P.prev_length-Q),P.lookahead-=P.prev_length-1,P.prev_length-=2;++P.strstart<=x&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+Q-1])&P.hash_mask,U=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),--P.prev_length!=0;);if(P.match_available=0,P.match_length=Q-1,P.strstart++,b&&(E(P,!1),P.strm.avail_out===0))return F}else if(P.match_available){if((b=s._tr_tally(P,0,P.window[P.strstart-1]))&&E(P,!1),P.strstart++,P.lookahead--,P.strm.avail_out===0)return F}else P.match_available=1,P.strstart++,P.lookahead--}return P.match_available&&(b=s._tr_tally(P,0,P.window[P.strstart-1]),P.match_available=0),P.insert=P.strstart<Q-1?P.strstart:Q-1,de===d?(E(P,!0),P.strm.avail_out===0?ee:G):P.last_lit&&(E(P,!1),P.strm.avail_out===0)?F:ne}function Z(P,de,U,b,x){this.good_length=P,this.max_lazy=de,this.nice_length=U,this.max_chain=b,this.func=x}function se(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=w,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*R),this.dyn_dtree=new a.Buf16(2*(2*O+1)),this.bl_tree=new a.Buf16(2*(2*j+1)),he(this.dyn_ltree),he(this.dyn_dtree),he(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(D+1),this.heap=new a.Buf16(2*I+1),he(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*I+1),he(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function $(P){var de;return P&&P.state?(P.total_in=P.total_out=0,P.data_type=g,(de=P.state).pending=0,de.pending_out=0,de.wrap<0&&(de.wrap=-de.wrap),de.status=de.wrap?S:K,P.adler=de.wrap===2?0:1,de.last_flush=h,s._tr_init(de),c):oe(P,p)}function te(P){var de=$(P);return de===c&&function(U){U.window_size=2*U.w_size,he(U.head),U.max_lazy_match=i[U.level].max_lazy,U.good_match=i[U.level].good_length,U.nice_match=i[U.level].nice_length,U.max_chain_length=i[U.level].max_chain,U.strstart=0,U.block_start=0,U.lookahead=0,U.insert=0,U.match_length=U.prev_length=Q-1,U.match_available=0,U.ins_h=0}(P.state),de}function me(P,de,U,b,x,N){if(!P)return p;var ae=1;if(de===m&&(de=6),b<0?(ae=0,b=-b):15<b&&(ae=2,b-=16),x<1||B<x||U!==w||b<8||15<b||de<0||9<de||N<0||y<N)return oe(P,p);b===8&&(b=9);var fe=new se;return(P.state=fe).strm=P,fe.wrap=ae,fe.gzhead=null,fe.w_bits=b,fe.w_size=1<<fe.w_bits,fe.w_mask=fe.w_size-1,fe.hash_bits=x+7,fe.hash_size=1<<fe.hash_bits,fe.hash_mask=fe.hash_size-1,fe.hash_shift=~~((fe.hash_bits+Q-1)/Q),fe.window=new a.Buf8(2*fe.w_size),fe.head=new a.Buf16(fe.hash_size),fe.prev=new a.Buf16(fe.w_size),fe.lit_bufsize=1<<x+6,fe.pending_buf_size=4*fe.lit_bufsize,fe.pending_buf=new a.Buf8(fe.pending_buf_size),fe.d_buf=1*fe.lit_bufsize,fe.l_buf=3*fe.lit_bufsize,fe.level=de,fe.strategy=N,fe.method=U,te(P)}i=[new Z(0,0,0,0,function(P,de){var U=65535;for(U>P.pending_buf_size-5&&(U=P.pending_buf_size-5);;){if(P.lookahead<=1){if(z(P),P.lookahead===0&&de===h)return F;if(P.lookahead===0)break}P.strstart+=P.lookahead,P.lookahead=0;var b=P.block_start+U;if((P.strstart===0||P.strstart>=b)&&(P.lookahead=P.strstart-b,P.strstart=b,E(P,!1),P.strm.avail_out===0)||P.strstart-P.block_start>=P.w_size-M&&(E(P,!1),P.strm.avail_out===0))return F}return P.insert=0,de===d?(E(P,!0),P.strm.avail_out===0?ee:G):(P.strstart>P.block_start&&(E(P,!1),P.strm.avail_out),F)}),new Z(4,4,8,4,_),new Z(4,5,16,8,_),new Z(4,6,32,32,_),new Z(4,4,16,16,L),new Z(8,16,32,32,L),new Z(8,16,128,128,L),new Z(8,32,128,256,L),new Z(32,128,258,1024,L),new Z(32,258,258,4096,L)],A.deflateInit=function(P,de){return me(P,de,w,15,8,0)},A.deflateInit2=me,A.deflateReset=te,A.deflateResetKeep=$,A.deflateSetHeader=function(P,de){return P&&P.state?P.state.wrap!==2?p:(P.state.gzhead=de,c):p},A.deflate=function(P,de){var U,b,x,N;if(!P||!P.state||5<de||de<0)return P?oe(P,p):p;if(b=P.state,!P.output||!P.input&&P.avail_in!==0||b.status===666&&de!==d)return oe(P,P.avail_out===0?-5:p);if(b.strm=P,U=b.last_flush,b.last_flush=de,b.status===S)if(b.wrap===2)P.adler=0,k(b,31),k(b,139),k(b,8),b.gzhead?(k(b,(b.gzhead.text?1:0)+(b.gzhead.hcrc?2:0)+(b.gzhead.extra?4:0)+(b.gzhead.name?8:0)+(b.gzhead.comment?16:0)),k(b,255&b.gzhead.time),k(b,b.gzhead.time>>8&255),k(b,b.gzhead.time>>16&255),k(b,b.gzhead.time>>24&255),k(b,b.level===9?2:2<=b.strategy||b.level<2?4:0),k(b,255&b.gzhead.os),b.gzhead.extra&&b.gzhead.extra.length&&(k(b,255&b.gzhead.extra.length),k(b,b.gzhead.extra.length>>8&255)),b.gzhead.hcrc&&(P.adler=l(P.adler,b.pending_buf,b.pending,0)),b.gzindex=0,b.status=69):(k(b,0),k(b,0),k(b,0),k(b,0),k(b,0),k(b,b.level===9?2:2<=b.strategy||b.level<2?4:0),k(b,3),b.status=K);else{var ae=w+(b.w_bits-8<<4)<<8;ae|=(2<=b.strategy||b.level<2?0:b.level<6?1:b.level===6?2:3)<<6,b.strstart!==0&&(ae|=32),ae+=31-ae%31,b.status=K,V(b,ae),b.strstart!==0&&(V(b,P.adler>>>16),V(b,65535&P.adler)),P.adler=1}if(b.status===69)if(b.gzhead.extra){for(x=b.pending;b.gzindex<(65535&b.gzhead.extra.length)&&(b.pending!==b.pending_buf_size||(b.gzhead.hcrc&&b.pending>x&&(P.adler=l(P.adler,b.pending_buf,b.pending-x,x)),ie(P),x=b.pending,b.pending!==b.pending_buf_size));)k(b,255&b.gzhead.extra[b.gzindex]),b.gzindex++;b.gzhead.hcrc&&b.pending>x&&(P.adler=l(P.adler,b.pending_buf,b.pending-x,x)),b.gzindex===b.gzhead.extra.length&&(b.gzindex=0,b.status=73)}else b.status=73;if(b.status===73)if(b.gzhead.name){x=b.pending;do{if(b.pending===b.pending_buf_size&&(b.gzhead.hcrc&&b.pending>x&&(P.adler=l(P.adler,b.pending_buf,b.pending-x,x)),ie(P),x=b.pending,b.pending===b.pending_buf_size)){N=1;break}N=b.gzindex<b.gzhead.name.length?255&b.gzhead.name.charCodeAt(b.gzindex++):0,k(b,N)}while(N!==0);b.gzhead.hcrc&&b.pending>x&&(P.adler=l(P.adler,b.pending_buf,b.pending-x,x)),N===0&&(b.gzindex=0,b.status=91)}else b.status=91;if(b.status===91)if(b.gzhead.comment){x=b.pending;do{if(b.pending===b.pending_buf_size&&(b.gzhead.hcrc&&b.pending>x&&(P.adler=l(P.adler,b.pending_buf,b.pending-x,x)),ie(P),x=b.pending,b.pending===b.pending_buf_size)){N=1;break}N=b.gzindex<b.gzhead.comment.length?255&b.gzhead.comment.charCodeAt(b.gzindex++):0,k(b,N)}while(N!==0);b.gzhead.hcrc&&b.pending>x&&(P.adler=l(P.adler,b.pending_buf,b.pending-x,x)),N===0&&(b.status=103)}else b.status=103;if(b.status===103&&(b.gzhead.hcrc?(b.pending+2>b.pending_buf_size&&ie(P),b.pending+2<=b.pending_buf_size&&(k(b,255&P.adler),k(b,P.adler>>8&255),P.adler=0,b.status=K)):b.status=K),b.pending!==0){if(ie(P),P.avail_out===0)return b.last_flush=-1,c}else if(P.avail_in===0&&q(de)<=q(U)&&de!==d)return oe(P,-5);if(b.status===666&&P.avail_in!==0)return oe(P,-5);if(P.avail_in!==0||b.lookahead!==0||de!==h&&b.status!==666){var fe=b.strategy===2?function(ue,be){for(var Fe;;){if(ue.lookahead===0&&(z(ue),ue.lookahead===0)){if(be===h)return F;break}if(ue.match_length=0,Fe=s._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++,Fe&&(E(ue,!1),ue.strm.avail_out===0))return F}return ue.insert=0,be===d?(E(ue,!0),ue.strm.avail_out===0?ee:G):ue.last_lit&&(E(ue,!1),ue.strm.avail_out===0)?F:ne}(b,de):b.strategy===3?function(ue,be){for(var Fe,Se,Pe,je,$e=ue.window;;){if(ue.lookahead<=J){if(z(ue),ue.lookahead<=J&&be===h)return F;if(ue.lookahead===0)break}if(ue.match_length=0,ue.lookahead>=Q&&0<ue.strstart&&(Se=$e[Pe=ue.strstart-1])===$e[++Pe]&&Se===$e[++Pe]&&Se===$e[++Pe]){je=ue.strstart+J;do;while(Se===$e[++Pe]&&Se===$e[++Pe]&&Se===$e[++Pe]&&Se===$e[++Pe]&&Se===$e[++Pe]&&Se===$e[++Pe]&&Se===$e[++Pe]&&Se===$e[++Pe]&&Pe<je);ue.match_length=J-(je-Pe),ue.match_length>ue.lookahead&&(ue.match_length=ue.lookahead)}if(ue.match_length>=Q?(Fe=s._tr_tally(ue,1,ue.match_length-Q),ue.lookahead-=ue.match_length,ue.strstart+=ue.match_length,ue.match_length=0):(Fe=s._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++),Fe&&(E(ue,!1),ue.strm.avail_out===0))return F}return ue.insert=0,be===d?(E(ue,!0),ue.strm.avail_out===0?ee:G):ue.last_lit&&(E(ue,!1),ue.strm.avail_out===0)?F:ne}(b,de):i[b.level].func(b,de);if(fe!==ee&&fe!==G||(b.status=666),fe===F||fe===ee)return P.avail_out===0&&(b.last_flush=-1),c;if(fe===ne&&(de===1?s._tr_align(b):de!==5&&(s._tr_stored_block(b,0,0,!1),de===3&&(he(b.head),b.lookahead===0&&(b.strstart=0,b.block_start=0,b.insert=0))),ie(P),P.avail_out===0))return b.last_flush=-1,c}return de!==d?c:b.wrap<=0?1:(b.wrap===2?(k(b,255&P.adler),k(b,P.adler>>8&255),k(b,P.adler>>16&255),k(b,P.adler>>24&255),k(b,255&P.total_in),k(b,P.total_in>>8&255),k(b,P.total_in>>16&255),k(b,P.total_in>>24&255)):(V(b,P.adler>>>16),V(b,65535&P.adler)),ie(P),0<b.wrap&&(b.wrap=-b.wrap),b.pending!==0?c:1)},A.deflateEnd=function(P){var de;return P&&P.state?(de=P.state.status)!==S&&de!==69&&de!==73&&de!==91&&de!==103&&de!==K&&de!==666?oe(P,p):(P.state=null,de===K?oe(P,-3):c):p},A.deflateSetDictionary=function(P,de){var U,b,x,N,ae,fe,ue,be,Fe=de.length;if(!P||!P.state||(N=(U=P.state).wrap)===2||N===1&&U.status!==S||U.lookahead)return p;for(N===1&&(P.adler=o(P.adler,de,Fe,0)),U.wrap=0,Fe>=U.w_size&&(N===0&&(he(U.head),U.strstart=0,U.block_start=0,U.insert=0),be=new a.Buf8(U.w_size),a.arraySet(be,de,Fe-U.w_size,U.w_size,0),de=be,Fe=U.w_size),ae=P.avail_in,fe=P.next_in,ue=P.input,P.avail_in=Fe,P.next_in=0,P.input=de,z(U);U.lookahead>=Q;){for(b=U.strstart,x=U.lookahead-(Q-1);U.ins_h=(U.ins_h<<U.hash_shift^U.window[b+Q-1])&U.hash_mask,U.prev[b&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=b,b++,--x;);U.strstart=b,U.lookahead=Q-1,z(U)}return U.strstart+=U.lookahead,U.block_start=U.strstart,U.insert=U.lookahead,U.lookahead=0,U.match_length=U.prev_length=Q-1,U.match_available=0,P.next_in=fe,P.input=ue,P.avail_in=ae,U.wrap=N,c},A.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,n,A){n.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,n,A){n.exports=function(i,a){var s,o,l,u,h,d,c,p,m,y,g,w,B,I,O,j,R,D,Q,J,M,S,K,F,ne;s=i.state,o=i.next_in,F=i.input,l=o+(i.avail_in-5),u=i.next_out,ne=i.output,h=u-(a-i.avail_out),d=u+(i.avail_out-257),c=s.dmax,p=s.wsize,m=s.whave,y=s.wnext,g=s.window,w=s.hold,B=s.bits,I=s.lencode,O=s.distcode,j=(1<<s.lenbits)-1,R=(1<<s.distbits)-1;e:do{B<15&&(w+=F[o++]<<B,B+=8,w+=F[o++]<<B,B+=8),D=I[w&j];t:for(;;){if(w>>>=Q=D>>>24,B-=Q,(Q=D>>>16&255)===0)ne[u++]=65535&D;else{if(!(16&Q)){if(!(64&Q)){D=I[(65535&D)+(w&(1<<Q)-1)];continue t}if(32&Q){s.mode=12;break e}i.msg="invalid literal/length code",s.mode=30;break e}J=65535&D,(Q&=15)&&(B<Q&&(w+=F[o++]<<B,B+=8),J+=w&(1<<Q)-1,w>>>=Q,B-=Q),B<15&&(w+=F[o++]<<B,B+=8,w+=F[o++]<<B,B+=8),D=O[w&R];r:for(;;){if(w>>>=Q=D>>>24,B-=Q,!(16&(Q=D>>>16&255))){if(!(64&Q)){D=O[(65535&D)+(w&(1<<Q)-1)];continue r}i.msg="invalid distance code",s.mode=30;break e}if(M=65535&D,B<(Q&=15)&&(w+=F[o++]<<B,(B+=8)<Q&&(w+=F[o++]<<B,B+=8)),c<(M+=w&(1<<Q)-1)){i.msg="invalid distance too far back",s.mode=30;break e}if(w>>>=Q,B-=Q,(Q=u-h)<M){if(m<(Q=M-Q)&&s.sane){i.msg="invalid distance too far back",s.mode=30;break e}if(K=g,(S=0)===y){if(S+=p-Q,Q<J){for(J-=Q;ne[u++]=g[S++],--Q;);S=u-M,K=ne}}else if(y<Q){if(S+=p+y-Q,(Q-=y)<J){for(J-=Q;ne[u++]=g[S++],--Q;);if(S=0,y<J){for(J-=Q=y;ne[u++]=g[S++],--Q;);S=u-M,K=ne}}}else if(S+=y-Q,Q<J){for(J-=Q;ne[u++]=g[S++],--Q;);S=u-M,K=ne}for(;2<J;)ne[u++]=K[S++],ne[u++]=K[S++],ne[u++]=K[S++],J-=3;J&&(ne[u++]=K[S++],1<J&&(ne[u++]=K[S++]))}else{for(S=u-M;ne[u++]=ne[S++],ne[u++]=ne[S++],ne[u++]=ne[S++],2<(J-=3););J&&(ne[u++]=ne[S++],1<J&&(ne[u++]=ne[S++]))}break}}break}}while(o<l&&u<d);o-=J=B>>3,w&=(1<<(B-=J<<3))-1,i.next_in=o,i.next_out=u,i.avail_in=o<l?l-o+5:5-(o-l),i.avail_out=u<d?d-u+257:257-(u-d),s.hold=w,s.bits=B}},{}],49:[function(t,n,A){var i=t("../utils/common"),a=t("./adler32"),s=t("./crc32"),o=t("./inffast"),l=t("./inftrees"),u=1,h=2,d=0,c=-2,p=1,m=852,y=592;function g(S){return(S>>>24&255)+(S>>>8&65280)+((65280&S)<<8)+((255&S)<<24)}function w(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function B(S){var K;return S&&S.state?(K=S.state,S.total_in=S.total_out=K.total=0,S.msg="",K.wrap&&(S.adler=1&K.wrap),K.mode=p,K.last=0,K.havedict=0,K.dmax=32768,K.head=null,K.hold=0,K.bits=0,K.lencode=K.lendyn=new i.Buf32(m),K.distcode=K.distdyn=new i.Buf32(y),K.sane=1,K.back=-1,d):c}function I(S){var K;return S&&S.state?((K=S.state).wsize=0,K.whave=0,K.wnext=0,B(S)):c}function O(S,K){var F,ne;return S&&S.state?(ne=S.state,K<0?(F=0,K=-K):(F=1+(K>>4),K<48&&(K&=15)),K&&(K<8||15<K)?c:(ne.window!==null&&ne.wbits!==K&&(ne.window=null),ne.wrap=F,ne.wbits=K,I(S))):c}function j(S,K){var F,ne;return S?(ne=new w,(S.state=ne).window=null,(F=O(S,K))!==d&&(S.state=null),F):c}var R,D,Q=!0;function J(S){if(Q){var K;for(R=new i.Buf32(512),D=new i.Buf32(32),K=0;K<144;)S.lens[K++]=8;for(;K<256;)S.lens[K++]=9;for(;K<280;)S.lens[K++]=7;for(;K<288;)S.lens[K++]=8;for(l(u,S.lens,0,288,R,0,S.work,{bits:9}),K=0;K<32;)S.lens[K++]=5;l(h,S.lens,0,32,D,0,S.work,{bits:5}),Q=!1}S.lencode=R,S.lenbits=9,S.distcode=D,S.distbits=5}function M(S,K,F,ne){var ee,G=S.state;return G.window===null&&(G.wsize=1<<G.wbits,G.wnext=0,G.whave=0,G.window=new i.Buf8(G.wsize)),ne>=G.wsize?(i.arraySet(G.window,K,F-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize):(ne<(ee=G.wsize-G.wnext)&&(ee=ne),i.arraySet(G.window,K,F-ne,ee,G.wnext),(ne-=ee)?(i.arraySet(G.window,K,F-ne,ne,0),G.wnext=ne,G.whave=G.wsize):(G.wnext+=ee,G.wnext===G.wsize&&(G.wnext=0),G.whave<G.wsize&&(G.whave+=ee))),0}A.inflateReset=I,A.inflateReset2=O,A.inflateResetKeep=B,A.inflateInit=function(S){return j(S,15)},A.inflateInit2=j,A.inflate=function(S,K){var F,ne,ee,G,oe,q,he,ie,E,k,V,W,z,_,L,Z,se,$,te,me,P,de,U,b,x=0,N=new i.Buf8(4),ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!S||!S.state||!S.output||!S.input&&S.avail_in!==0)return c;(F=S.state).mode===12&&(F.mode=13),oe=S.next_out,ee=S.output,he=S.avail_out,G=S.next_in,ne=S.input,q=S.avail_in,ie=F.hold,E=F.bits,k=q,V=he,de=d;e:for(;;)switch(F.mode){case p:if(F.wrap===0){F.mode=13;break}for(;E<16;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}if(2&F.wrap&&ie===35615){N[F.check=0]=255&ie,N[1]=ie>>>8&255,F.check=s(F.check,N,2,0),E=ie=0,F.mode=2;break}if(F.flags=0,F.head&&(F.head.done=!1),!(1&F.wrap)||(((255&ie)<<8)+(ie>>8))%31){S.msg="incorrect header check",F.mode=30;break}if((15&ie)!=8){S.msg="unknown compression method",F.mode=30;break}if(E-=4,P=8+(15&(ie>>>=4)),F.wbits===0)F.wbits=P;else if(P>F.wbits){S.msg="invalid window size",F.mode=30;break}F.dmax=1<<P,S.adler=F.check=1,F.mode=512&ie?10:12,E=ie=0;break;case 2:for(;E<16;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}if(F.flags=ie,(255&F.flags)!=8){S.msg="unknown compression method",F.mode=30;break}if(57344&F.flags){S.msg="unknown header flags set",F.mode=30;break}F.head&&(F.head.text=ie>>8&1),512&F.flags&&(N[0]=255&ie,N[1]=ie>>>8&255,F.check=s(F.check,N,2,0)),E=ie=0,F.mode=3;case 3:for(;E<32;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}F.head&&(F.head.time=ie),512&F.flags&&(N[0]=255&ie,N[1]=ie>>>8&255,N[2]=ie>>>16&255,N[3]=ie>>>24&255,F.check=s(F.check,N,4,0)),E=ie=0,F.mode=4;case 4:for(;E<16;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}F.head&&(F.head.xflags=255&ie,F.head.os=ie>>8),512&F.flags&&(N[0]=255&ie,N[1]=ie>>>8&255,F.check=s(F.check,N,2,0)),E=ie=0,F.mode=5;case 5:if(1024&F.flags){for(;E<16;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}F.length=ie,F.head&&(F.head.extra_len=ie),512&F.flags&&(N[0]=255&ie,N[1]=ie>>>8&255,F.check=s(F.check,N,2,0)),E=ie=0}else F.head&&(F.head.extra=null);F.mode=6;case 6:if(1024&F.flags&&(q<(W=F.length)&&(W=q),W&&(F.head&&(P=F.head.extra_len-F.length,F.head.extra||(F.head.extra=new Array(F.head.extra_len)),i.arraySet(F.head.extra,ne,G,W,P)),512&F.flags&&(F.check=s(F.check,ne,W,G)),q-=W,G+=W,F.length-=W),F.length))break e;F.length=0,F.mode=7;case 7:if(2048&F.flags){if(q===0)break e;for(W=0;P=ne[G+W++],F.head&&P&&F.length<65536&&(F.head.name+=String.fromCharCode(P)),P&&W<q;);if(512&F.flags&&(F.check=s(F.check,ne,W,G)),q-=W,G+=W,P)break e}else F.head&&(F.head.name=null);F.length=0,F.mode=8;case 8:if(4096&F.flags){if(q===0)break e;for(W=0;P=ne[G+W++],F.head&&P&&F.length<65536&&(F.head.comment+=String.fromCharCode(P)),P&&W<q;);if(512&F.flags&&(F.check=s(F.check,ne,W,G)),q-=W,G+=W,P)break e}else F.head&&(F.head.comment=null);F.mode=9;case 9:if(512&F.flags){for(;E<16;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}if(ie!==(65535&F.check)){S.msg="header crc mismatch",F.mode=30;break}E=ie=0}F.head&&(F.head.hcrc=F.flags>>9&1,F.head.done=!0),S.adler=F.check=0,F.mode=12;break;case 10:for(;E<32;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}S.adler=F.check=g(ie),E=ie=0,F.mode=11;case 11:if(F.havedict===0)return S.next_out=oe,S.avail_out=he,S.next_in=G,S.avail_in=q,F.hold=ie,F.bits=E,2;S.adler=F.check=1,F.mode=12;case 12:if(K===5||K===6)break e;case 13:if(F.last){ie>>>=7&E,E-=7&E,F.mode=27;break}for(;E<3;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}switch(F.last=1&ie,E-=1,3&(ie>>>=1)){case 0:F.mode=14;break;case 1:if(J(F),F.mode=20,K!==6)break;ie>>>=2,E-=2;break e;case 2:F.mode=17;break;case 3:S.msg="invalid block type",F.mode=30}ie>>>=2,E-=2;break;case 14:for(ie>>>=7&E,E-=7&E;E<32;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}if((65535&ie)!=(ie>>>16^65535)){S.msg="invalid stored block lengths",F.mode=30;break}if(F.length=65535&ie,E=ie=0,F.mode=15,K===6)break e;case 15:F.mode=16;case 16:if(W=F.length){if(q<W&&(W=q),he<W&&(W=he),W===0)break e;i.arraySet(ee,ne,G,W,oe),q-=W,G+=W,he-=W,oe+=W,F.length-=W;break}F.mode=12;break;case 17:for(;E<14;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}if(F.nlen=257+(31&ie),ie>>>=5,E-=5,F.ndist=1+(31&ie),ie>>>=5,E-=5,F.ncode=4+(15&ie),ie>>>=4,E-=4,286<F.nlen||30<F.ndist){S.msg="too many length or distance symbols",F.mode=30;break}F.have=0,F.mode=18;case 18:for(;F.have<F.ncode;){for(;E<3;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}F.lens[ae[F.have++]]=7&ie,ie>>>=3,E-=3}for(;F.have<19;)F.lens[ae[F.have++]]=0;if(F.lencode=F.lendyn,F.lenbits=7,U={bits:F.lenbits},de=l(0,F.lens,0,19,F.lencode,0,F.work,U),F.lenbits=U.bits,de){S.msg="invalid code lengths set",F.mode=30;break}F.have=0,F.mode=19;case 19:for(;F.have<F.nlen+F.ndist;){for(;Z=(x=F.lencode[ie&(1<<F.lenbits)-1])>>>16&255,se=65535&x,!((L=x>>>24)<=E);){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}if(se<16)ie>>>=L,E-=L,F.lens[F.have++]=se;else{if(se===16){for(b=L+2;E<b;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}if(ie>>>=L,E-=L,F.have===0){S.msg="invalid bit length repeat",F.mode=30;break}P=F.lens[F.have-1],W=3+(3&ie),ie>>>=2,E-=2}else if(se===17){for(b=L+3;E<b;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}E-=L,P=0,W=3+(7&(ie>>>=L)),ie>>>=3,E-=3}else{for(b=L+7;E<b;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}E-=L,P=0,W=11+(127&(ie>>>=L)),ie>>>=7,E-=7}if(F.have+W>F.nlen+F.ndist){S.msg="invalid bit length repeat",F.mode=30;break}for(;W--;)F.lens[F.have++]=P}}if(F.mode===30)break;if(F.lens[256]===0){S.msg="invalid code -- missing end-of-block",F.mode=30;break}if(F.lenbits=9,U={bits:F.lenbits},de=l(u,F.lens,0,F.nlen,F.lencode,0,F.work,U),F.lenbits=U.bits,de){S.msg="invalid literal/lengths set",F.mode=30;break}if(F.distbits=6,F.distcode=F.distdyn,U={bits:F.distbits},de=l(h,F.lens,F.nlen,F.ndist,F.distcode,0,F.work,U),F.distbits=U.bits,de){S.msg="invalid distances set",F.mode=30;break}if(F.mode=20,K===6)break e;case 20:F.mode=21;case 21:if(6<=q&&258<=he){S.next_out=oe,S.avail_out=he,S.next_in=G,S.avail_in=q,F.hold=ie,F.bits=E,o(S,V),oe=S.next_out,ee=S.output,he=S.avail_out,G=S.next_in,ne=S.input,q=S.avail_in,ie=F.hold,E=F.bits,F.mode===12&&(F.back=-1);break}for(F.back=0;Z=(x=F.lencode[ie&(1<<F.lenbits)-1])>>>16&255,se=65535&x,!((L=x>>>24)<=E);){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}if(Z&&!(240&Z)){for($=L,te=Z,me=se;Z=(x=F.lencode[me+((ie&(1<<$+te)-1)>>$)])>>>16&255,se=65535&x,!($+(L=x>>>24)<=E);){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}ie>>>=$,E-=$,F.back+=$}if(ie>>>=L,E-=L,F.back+=L,F.length=se,Z===0){F.mode=26;break}if(32&Z){F.back=-1,F.mode=12;break}if(64&Z){S.msg="invalid literal/length code",F.mode=30;break}F.extra=15&Z,F.mode=22;case 22:if(F.extra){for(b=F.extra;E<b;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}F.length+=ie&(1<<F.extra)-1,ie>>>=F.extra,E-=F.extra,F.back+=F.extra}F.was=F.length,F.mode=23;case 23:for(;Z=(x=F.distcode[ie&(1<<F.distbits)-1])>>>16&255,se=65535&x,!((L=x>>>24)<=E);){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}if(!(240&Z)){for($=L,te=Z,me=se;Z=(x=F.distcode[me+((ie&(1<<$+te)-1)>>$)])>>>16&255,se=65535&x,!($+(L=x>>>24)<=E);){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}ie>>>=$,E-=$,F.back+=$}if(ie>>>=L,E-=L,F.back+=L,64&Z){S.msg="invalid distance code",F.mode=30;break}F.offset=se,F.extra=15&Z,F.mode=24;case 24:if(F.extra){for(b=F.extra;E<b;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}F.offset+=ie&(1<<F.extra)-1,ie>>>=F.extra,E-=F.extra,F.back+=F.extra}if(F.offset>F.dmax){S.msg="invalid distance too far back",F.mode=30;break}F.mode=25;case 25:if(he===0)break e;if(W=V-he,F.offset>W){if((W=F.offset-W)>F.whave&&F.sane){S.msg="invalid distance too far back",F.mode=30;break}z=W>F.wnext?(W-=F.wnext,F.wsize-W):F.wnext-W,W>F.length&&(W=F.length),_=F.window}else _=ee,z=oe-F.offset,W=F.length;for(he<W&&(W=he),he-=W,F.length-=W;ee[oe++]=_[z++],--W;);F.length===0&&(F.mode=21);break;case 26:if(he===0)break e;ee[oe++]=F.length,he--,F.mode=21;break;case 27:if(F.wrap){for(;E<32;){if(q===0)break e;q--,ie|=ne[G++]<<E,E+=8}if(V-=he,S.total_out+=V,F.total+=V,V&&(S.adler=F.check=F.flags?s(F.check,ee,V,oe-V):a(F.check,ee,V,oe-V)),V=he,(F.flags?ie:g(ie))!==F.check){S.msg="incorrect data check",F.mode=30;break}E=ie=0}F.mode=28;case 28:if(F.wrap&&F.flags){for(;E<32;){if(q===0)break e;q--,ie+=ne[G++]<<E,E+=8}if(ie!==(4294967295&F.total)){S.msg="incorrect length check",F.mode=30;break}E=ie=0}F.mode=29;case 29:de=1;break e;case 30:de=-3;break e;case 31:return-4;case 32:default:return c}return S.next_out=oe,S.avail_out=he,S.next_in=G,S.avail_in=q,F.hold=ie,F.bits=E,(F.wsize||V!==S.avail_out&&F.mode<30&&(F.mode<27||K!==4))&&M(S,S.output,S.next_out,V-S.avail_out)?(F.mode=31,-4):(k-=S.avail_in,V-=S.avail_out,S.total_in+=k,S.total_out+=V,F.total+=V,F.wrap&&V&&(S.adler=F.check=F.flags?s(F.check,ee,V,S.next_out-V):a(F.check,ee,V,S.next_out-V)),S.data_type=F.bits+(F.last?64:0)+(F.mode===12?128:0)+(F.mode===20||F.mode===15?256:0),(k==0&&V===0||K===4)&&de===d&&(de=-5),de)},A.inflateEnd=function(S){if(!S||!S.state)return c;var K=S.state;return K.window&&(K.window=null),S.state=null,d},A.inflateGetHeader=function(S,K){var F;return S&&S.state&&2&(F=S.state).wrap?((F.head=K).done=!1,d):c},A.inflateSetDictionary=function(S,K){var F,ne=K.length;return S&&S.state?(F=S.state).wrap!==0&&F.mode!==11?c:F.mode===11&&a(1,K,ne,0)!==F.check?-3:M(S,K,ne,ne)?(F.mode=31,-4):(F.havedict=1,d):c},A.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,n,A){var i=t("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];n.exports=function(u,h,d,c,p,m,y,g){var w,B,I,O,j,R,D,Q,J,M=g.bits,S=0,K=0,F=0,ne=0,ee=0,G=0,oe=0,q=0,he=0,ie=0,E=null,k=0,V=new i.Buf16(16),W=new i.Buf16(16),z=null,_=0;for(S=0;S<=15;S++)V[S]=0;for(K=0;K<c;K++)V[h[d+K]]++;for(ee=M,ne=15;1<=ne&&V[ne]===0;ne--);if(ne<ee&&(ee=ne),ne===0)return p[m++]=20971520,p[m++]=20971520,g.bits=1,0;for(F=1;F<ne&&V[F]===0;F++);for(ee<F&&(ee=F),S=q=1;S<=15;S++)if(q<<=1,(q-=V[S])<0)return-1;if(0<q&&(u===0||ne!==1))return-1;for(W[1]=0,S=1;S<15;S++)W[S+1]=W[S]+V[S];for(K=0;K<c;K++)h[d+K]!==0&&(y[W[h[d+K]]++]=K);if(R=u===0?(E=z=y,19):u===1?(E=a,k-=257,z=s,_-=257,256):(E=o,z=l,-1),S=F,j=m,oe=K=ie=0,I=-1,O=(he=1<<(G=ee))-1,u===1&&852<he||u===2&&592<he)return 1;for(;;){for(D=S-oe,J=y[K]<R?(Q=0,y[K]):y[K]>R?(Q=z[_+y[K]],E[k+y[K]]):(Q=96,0),w=1<<S-oe,F=B=1<<G;p[j+(ie>>oe)+(B-=w)]=D<<24|Q<<16|J|0,B!==0;);for(w=1<<S-1;ie&w;)w>>=1;if(w!==0?(ie&=w-1,ie+=w):ie=0,K++,--V[S]==0){if(S===ne)break;S=h[d+y[K]]}if(ee<S&&(ie&O)!==I){for(oe===0&&(oe=ee),j+=F,q=1<<(G=S-oe);G+oe<ne&&!((q-=V[G+oe])<=0);)G++,q<<=1;if(he+=1<<G,u===1&&852<he||u===2&&592<he)return 1;p[I=ie&O]=ee<<24|G<<16|j-m|0}}return ie!==0&&(p[j+ie]=S-oe<<24|64<<16|0),g.bits=ee,0}},{"../utils/common":41}],51:[function(t,n,A){n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,n,A){var i=t("../utils/common"),a=0,s=1;function o(x){for(var N=x.length;0<=--N;)x[N]=0}var l=0,u=29,h=256,d=h+1+u,c=30,p=19,m=2*d+1,y=15,g=16,w=7,B=256,I=16,O=17,j=18,R=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Q=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],J=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],M=new Array(2*(d+2));o(M);var S=new Array(2*c);o(S);var K=new Array(512);o(K);var F=new Array(256);o(F);var ne=new Array(u);o(ne);var ee,G,oe,q=new Array(c);function he(x,N,ae,fe,ue){this.static_tree=x,this.extra_bits=N,this.extra_base=ae,this.elems=fe,this.max_length=ue,this.has_stree=x&&x.length}function ie(x,N){this.dyn_tree=x,this.max_code=0,this.stat_desc=N}function E(x){return x<256?K[x]:K[256+(x>>>7)]}function k(x,N){x.pending_buf[x.pending++]=255&N,x.pending_buf[x.pending++]=N>>>8&255}function V(x,N,ae){x.bi_valid>g-ae?(x.bi_buf|=N<<x.bi_valid&65535,k(x,x.bi_buf),x.bi_buf=N>>g-x.bi_valid,x.bi_valid+=ae-g):(x.bi_buf|=N<<x.bi_valid&65535,x.bi_valid+=ae)}function W(x,N,ae){V(x,ae[2*N],ae[2*N+1])}function z(x,N){for(var ae=0;ae|=1&x,x>>>=1,ae<<=1,0<--N;);return ae>>>1}function _(x,N,ae){var fe,ue,be=new Array(y+1),Fe=0;for(fe=1;fe<=y;fe++)be[fe]=Fe=Fe+ae[fe-1]<<1;for(ue=0;ue<=N;ue++){var Se=x[2*ue+1];Se!==0&&(x[2*ue]=z(be[Se]++,Se))}}function L(x){var N;for(N=0;N<d;N++)x.dyn_ltree[2*N]=0;for(N=0;N<c;N++)x.dyn_dtree[2*N]=0;for(N=0;N<p;N++)x.bl_tree[2*N]=0;x.dyn_ltree[2*B]=1,x.opt_len=x.static_len=0,x.last_lit=x.matches=0}function Z(x){8<x.bi_valid?k(x,x.bi_buf):0<x.bi_valid&&(x.pending_buf[x.pending++]=x.bi_buf),x.bi_buf=0,x.bi_valid=0}function se(x,N,ae,fe){var ue=2*N,be=2*ae;return x[ue]<x[be]||x[ue]===x[be]&&fe[N]<=fe[ae]}function $(x,N,ae){for(var fe=x.heap[ae],ue=ae<<1;ue<=x.heap_len&&(ue<x.heap_len&&se(N,x.heap[ue+1],x.heap[ue],x.depth)&&ue++,!se(N,fe,x.heap[ue],x.depth));)x.heap[ae]=x.heap[ue],ae=ue,ue<<=1;x.heap[ae]=fe}function te(x,N,ae){var fe,ue,be,Fe,Se=0;if(x.last_lit!==0)for(;fe=x.pending_buf[x.d_buf+2*Se]<<8|x.pending_buf[x.d_buf+2*Se+1],ue=x.pending_buf[x.l_buf+Se],Se++,fe===0?W(x,ue,N):(W(x,(be=F[ue])+h+1,N),(Fe=R[be])!==0&&V(x,ue-=ne[be],Fe),W(x,be=E(--fe),ae),(Fe=D[be])!==0&&V(x,fe-=q[be],Fe)),Se<x.last_lit;);W(x,B,N)}function me(x,N){var ae,fe,ue,be=N.dyn_tree,Fe=N.stat_desc.static_tree,Se=N.stat_desc.has_stree,Pe=N.stat_desc.elems,je=-1;for(x.heap_len=0,x.heap_max=m,ae=0;ae<Pe;ae++)be[2*ae]!==0?(x.heap[++x.heap_len]=je=ae,x.depth[ae]=0):be[2*ae+1]=0;for(;x.heap_len<2;)be[2*(ue=x.heap[++x.heap_len]=je<2?++je:0)]=1,x.depth[ue]=0,x.opt_len--,Se&&(x.static_len-=Fe[2*ue+1]);for(N.max_code=je,ae=x.heap_len>>1;1<=ae;ae--)$(x,be,ae);for(ue=Pe;ae=x.heap[1],x.heap[1]=x.heap[x.heap_len--],$(x,be,1),fe=x.heap[1],x.heap[--x.heap_max]=ae,x.heap[--x.heap_max]=fe,be[2*ue]=be[2*ae]+be[2*fe],x.depth[ue]=(x.depth[ae]>=x.depth[fe]?x.depth[ae]:x.depth[fe])+1,be[2*ae+1]=be[2*fe+1]=ue,x.heap[1]=ue++,$(x,be,1),2<=x.heap_len;);x.heap[--x.heap_max]=x.heap[1],function($e,et){var ut,We,kt,st,ur,Et,gt=et.dyn_tree,cr=et.max_code,St=et.stat_desc.static_tree,qr=et.stat_desc.has_stree,Ht=et.stat_desc.extra_bits,nr=et.stat_desc.extra_base,Dt=et.stat_desc.max_length,Gt=0;for(st=0;st<=y;st++)$e.bl_count[st]=0;for(gt[2*$e.heap[$e.heap_max]+1]=0,ut=$e.heap_max+1;ut<m;ut++)Dt<(st=gt[2*gt[2*(We=$e.heap[ut])+1]+1]+1)&&(st=Dt,Gt++),gt[2*We+1]=st,cr<We||($e.bl_count[st]++,ur=0,nr<=We&&(ur=Ht[We-nr]),Et=gt[2*We],$e.opt_len+=Et*(st+ur),qr&&($e.static_len+=Et*(St[2*We+1]+ur)));if(Gt!==0){do{for(st=Dt-1;$e.bl_count[st]===0;)st--;$e.bl_count[st]--,$e.bl_count[st+1]+=2,$e.bl_count[Dt]--,Gt-=2}while(0<Gt);for(st=Dt;st!==0;st--)for(We=$e.bl_count[st];We!==0;)cr<(kt=$e.heap[--ut])||(gt[2*kt+1]!==st&&($e.opt_len+=(st-gt[2*kt+1])*gt[2*kt],gt[2*kt+1]=st),We--)}}(x,N),_(be,je,x.bl_count)}function P(x,N,ae){var fe,ue,be=-1,Fe=N[1],Se=0,Pe=7,je=4;for(Fe===0&&(Pe=138,je=3),N[2*(ae+1)+1]=65535,fe=0;fe<=ae;fe++)ue=Fe,Fe=N[2*(fe+1)+1],++Se<Pe&&ue===Fe||(Se<je?x.bl_tree[2*ue]+=Se:ue!==0?(ue!==be&&x.bl_tree[2*ue]++,x.bl_tree[2*I]++):Se<=10?x.bl_tree[2*O]++:x.bl_tree[2*j]++,be=ue,je=(Se=0)===Fe?(Pe=138,3):ue===Fe?(Pe=6,3):(Pe=7,4))}function de(x,N,ae){var fe,ue,be=-1,Fe=N[1],Se=0,Pe=7,je=4;for(Fe===0&&(Pe=138,je=3),fe=0;fe<=ae;fe++)if(ue=Fe,Fe=N[2*(fe+1)+1],!(++Se<Pe&&ue===Fe)){if(Se<je)for(;W(x,ue,x.bl_tree),--Se!=0;);else ue!==0?(ue!==be&&(W(x,ue,x.bl_tree),Se--),W(x,I,x.bl_tree),V(x,Se-3,2)):Se<=10?(W(x,O,x.bl_tree),V(x,Se-3,3)):(W(x,j,x.bl_tree),V(x,Se-11,7));be=ue,je=(Se=0)===Fe?(Pe=138,3):ue===Fe?(Pe=6,3):(Pe=7,4)}}o(q);var U=!1;function b(x,N,ae,fe){V(x,(l<<1)+(fe?1:0),3),function(ue,be,Fe,Se){Z(ue),k(ue,Fe),k(ue,~Fe),i.arraySet(ue.pending_buf,ue.window,be,Fe,ue.pending),ue.pending+=Fe}(x,N,ae)}A._tr_init=function(x){U||(function(){var N,ae,fe,ue,be,Fe=new Array(y+1);for(ue=fe=0;ue<u-1;ue++)for(ne[ue]=fe,N=0;N<1<<R[ue];N++)F[fe++]=ue;for(F[fe-1]=ue,ue=be=0;ue<16;ue++)for(q[ue]=be,N=0;N<1<<D[ue];N++)K[be++]=ue;for(be>>=7;ue<c;ue++)for(q[ue]=be<<7,N=0;N<1<<D[ue]-7;N++)K[256+be++]=ue;for(ae=0;ae<=y;ae++)Fe[ae]=0;for(N=0;N<=143;)M[2*N+1]=8,N++,Fe[8]++;for(;N<=255;)M[2*N+1]=9,N++,Fe[9]++;for(;N<=279;)M[2*N+1]=7,N++,Fe[7]++;for(;N<=287;)M[2*N+1]=8,N++,Fe[8]++;for(_(M,d+1,Fe),N=0;N<c;N++)S[2*N+1]=5,S[2*N]=z(N,5);ee=new he(M,R,h+1,d,y),G=new he(S,D,0,c,y),oe=new he(new Array(0),Q,0,p,w)}(),U=!0),x.l_desc=new ie(x.dyn_ltree,ee),x.d_desc=new ie(x.dyn_dtree,G),x.bl_desc=new ie(x.bl_tree,oe),x.bi_buf=0,x.bi_valid=0,L(x)},A._tr_stored_block=b,A._tr_flush_block=function(x,N,ae,fe){var ue,be,Fe=0;0<x.level?(x.strm.data_type===2&&(x.strm.data_type=function(Se){var Pe,je=4093624447;for(Pe=0;Pe<=31;Pe++,je>>>=1)if(1&je&&Se.dyn_ltree[2*Pe]!==0)return a;if(Se.dyn_ltree[18]!==0||Se.dyn_ltree[20]!==0||Se.dyn_ltree[26]!==0)return s;for(Pe=32;Pe<h;Pe++)if(Se.dyn_ltree[2*Pe]!==0)return s;return a}(x)),me(x,x.l_desc),me(x,x.d_desc),Fe=function(Se){var Pe;for(P(Se,Se.dyn_ltree,Se.l_desc.max_code),P(Se,Se.dyn_dtree,Se.d_desc.max_code),me(Se,Se.bl_desc),Pe=p-1;3<=Pe&&Se.bl_tree[2*J[Pe]+1]===0;Pe--);return Se.opt_len+=3*(Pe+1)+5+5+4,Pe}(x),ue=x.opt_len+3+7>>>3,(be=x.static_len+3+7>>>3)<=ue&&(ue=be)):ue=be=ae+5,ae+4<=ue&&N!==-1?b(x,N,ae,fe):x.strategy===4||be===ue?(V(x,2+(fe?1:0),3),te(x,M,S)):(V(x,4+(fe?1:0),3),function(Se,Pe,je,$e){var et;for(V(Se,Pe-257,5),V(Se,je-1,5),V(Se,$e-4,4),et=0;et<$e;et++)V(Se,Se.bl_tree[2*J[et]+1],3);de(Se,Se.dyn_ltree,Pe-1),de(Se,Se.dyn_dtree,je-1)}(x,x.l_desc.max_code+1,x.d_desc.max_code+1,Fe+1),te(x,x.dyn_ltree,x.dyn_dtree)),L(x),fe&&Z(x)},A._tr_tally=function(x,N,ae){return x.pending_buf[x.d_buf+2*x.last_lit]=N>>>8&255,x.pending_buf[x.d_buf+2*x.last_lit+1]=255&N,x.pending_buf[x.l_buf+x.last_lit]=255&ae,x.last_lit++,N===0?x.dyn_ltree[2*ae]++:(x.matches++,N--,x.dyn_ltree[2*(F[ae]+h+1)]++,x.dyn_dtree[2*E(N)]++),x.last_lit===x.lit_bufsize-1},A._tr_align=function(x){V(x,2,3),W(x,B,M),function(N){N.bi_valid===16?(k(N,N.bi_buf),N.bi_buf=0,N.bi_valid=0):8<=N.bi_valid&&(N.pending_buf[N.pending++]=255&N.bi_buf,N.bi_buf>>=8,N.bi_valid-=8)}(x)}},{"../utils/common":41}],53:[function(t,n,A){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,n,A){(function(i){(function(a,s){if(!a.setImmediate){var o,l,u,h,d=1,c={},p=!1,m=a.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(a);y=y&&y.setTimeout?y:a,o={}.toString.call(a.process)==="[object process]"?function(I){Ut.nextTick(function(){w(I)})}:function(){if(a.postMessage&&!a.importScripts){var I=!0,O=a.onmessage;return a.onmessage=function(){I=!1},a.postMessage("","*"),a.onmessage=O,I}}()?(h="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",B,!1):a.attachEvent("onmessage",B),function(I){a.postMessage(h+I,"*")}):a.MessageChannel?((u=new MessageChannel).port1.onmessage=function(I){w(I.data)},function(I){u.port2.postMessage(I)}):m&&"onreadystatechange"in m.createElement("script")?(l=m.documentElement,function(I){var O=m.createElement("script");O.onreadystatechange=function(){w(I),O.onreadystatechange=null,l.removeChild(O),O=null},l.appendChild(O)}):function(I){setTimeout(w,0,I)},y.setImmediate=function(I){typeof I!="function"&&(I=new Function(""+I));for(var O=new Array(arguments.length-1),j=0;j<O.length;j++)O[j]=arguments[j+1];var R={callback:I,args:O};return c[d]=R,o(d),d++},y.clearImmediate=g}function g(I){delete c[I]}function w(I){if(p)setTimeout(w,0,I);else{var O=c[I];if(O){p=!0;try{(function(j){var R=j.callback,D=j.args;switch(D.length){case 0:R();break;case 1:R(D[0]);break;case 2:R(D[0],D[1]);break;case 3:R(D[0],D[1],D[2]);break;default:R.apply(s,D)}})(O)}finally{g(I),p=!1}}}}function B(I){I.source===a&&typeof I.data=="string"&&I.data.indexOf(h)===0&&w(+I.data.slice(h.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof GA<"u"?GA:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(qy);var P_=qy.exports;const R_=_w(P_);var Ju={exports:{}},D_={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};function k_(r){return r&&r.replace?r.replace(/([&"<>'])/g,function(e,t){return D_[t]}):r}var H_=k_,bp=H_,Xy=np.Stream,M_=" ";function K_(r,e){typeof e!="object"&&(e={indent:e});var t=e.stream?new Xy:null,n="",A=!1,i=e.indent?e.indent===!0?M_:e.indent:"",a=!0;function s(d){a?Ut.nextTick(d):d()}function o(d,c){if(c!==void 0&&(n+=c),d&&!A&&(t=t||new Xy,A=!0),d&&A){var p=n;s(function(){t.emit("data",p)}),n=""}}function l(d,c){xp(o,Zu(d,i,i?1:0),c)}function u(){if(t){var d=n;s(function(){t.emit("data",d),t.emit("end"),t.readable=!1,t.emit("close")})}}function h(d){var c=d.encoding||"UTF-8",p={version:"1.0",encoding:c};d.standalone&&(p.standalone=d.standalone),l({"?xml":{_attr:p}}),n=n.replace("/>","?>")}return s(function(){a=!1}),e.declaration&&h(e.declaration),r&&r.forEach?r.forEach(function(d,c){var p;c+1===r.length&&(p=u),l(d,p)}):l(r,u),t?(t.readable=!0,t):n}function j_(){var r=Array.prototype.slice.call(arguments),e={_elem:Zu(r)};return e.push=function(t){if(!this.append)throw new Error("not assigned to a parent!");var n=this,A=this._elem.indent;xp(this.append,Zu(t,A,this._elem.icount+(A?1:0)),function(){n.append(!0)})},e.close=function(t){t!==void 0&&this.push(t),this.end&&this.end()},e}function V_(r,e){return new Array(e||0).join(r||"")}function Zu(r,e,t){t=t||0;var n=V_(e,t),A,i=r,a=!1;if(typeof r=="object"){var s=Object.keys(r);if(A=s[0],i=r[A],i&&i._elem)return i._elem.name=A,i._elem.icount=t,i._elem.indent=e,i._elem.indents=n,i._elem.interrupt=i,i._elem}var o=[],l=[],u;function h(d){var c=Object.keys(d);c.forEach(function(p){o.push(G_(p,d[p]))})}switch(typeof i){case"object":if(i===null)break;i._attr&&h(i._attr),i._cdata&&l.push(("<![CDATA["+i._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),i.forEach&&(u=!1,l.push(""),i.forEach(function(d){if(typeof d=="object"){var c=Object.keys(d)[0];c=="_attr"?h(d._attr):l.push(Zu(d,e,t+1))}else l.pop(),u=!0,l.push(bp(d))}),u||l.push(""));break;default:l.push(bp(i))}return{name:A,interrupt:a,attributes:o,content:l,icount:t,indents:n,indent:e}}function xp(r,e,t){if(typeof e!="object")return r(!1,e);var n=e.interrupt?1:e.content.length;function A(){for(;e.content.length;){var a=e.content.shift();if(a!==void 0){if(i(a))return;xp(r,a)}}r(!1,(n>1?e.indents:"")+(e.name?"</"+e.name+">":"")+(e.indent&&!t?`
51
+ `:"")),t&&t()}function i(a){return a.interrupt?(a.interrupt.append=r,a.interrupt.end=A,a.interrupt=!1,r(!0),!0):!1}if(r(!1,e.indents+(e.name?"<"+e.name:"")+(e.attributes.length?" "+e.attributes.join(" "):"")+(n?e.name?">":"":e.name?"/>":"")+(e.indent&&n>1?`
52
+ `:"")),!n)return r(!1,e.indent?`
53
+ `:"");i(e)||A()}function G_(r,e){return r+'="'+bp(e)+'"'}Ju.exports=K_,Ju.exports.element=Ju.exports.Element=j_;var z_=Ju.exports;const Er=_w(z_),Yy=0,Jy=32,W_=32,$_=(r,e)=>{const t=e.replace(/-/g,"");if(t.length!==W_)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);const A=t.replace(/(..)/g,"$1 ").trim().split(" ").map(o=>parseInt(o,16));A.reverse();const a=r.slice(Yy,Jy).map((o,l)=>o^A[l%A.length]);return Buffer.concat([r.slice(0,Yy),a,r.slice(Jy)])};class q_{format(e,t={stack:[]}){const n=e.prepForXml(t);if(n)return n;throw Error("XMLComponent did not format correctly")}}class X_{replace(e,t,n){let A=e;return t.forEach((i,a)=>{A=A.replace(new RegExp(`{${i.fileName}}`,"g"),(n+a).toString())}),A}getMediaData(e,t){return t.Array.filter(n=>e.search(`{${n.fileName}}`)>0)}}class Y_{replace(e,t){let n=e;for(const A of t)n=n.replace(new RegExp(`{${A.reference}-${A.instance}}`,"g"),A.numId.toString());return n}}class J_{constructor(){_e(this,"formatter"),_e(this,"imageReplacer"),_e(this,"numberingReplacer"),this.formatter=new q_,this.imageReplacer=new X_,this.numberingReplacer=new Y_}compile(e,t){const n=new R_,A=this.xmlifyFile(e,t),i=new Map(Object.entries(A));for(const[,a]of i)if(Array.isArray(a))for(const s of a)n.file(s.path,s.data);else n.file(a.path,a.data);for(const{stream:a,fileName:s}of e.Media.Array)n.file(`word/media/${s}`,a);for(const{data:a,name:s,fontKey:o}of e.FontTable.fontOptionsWithKey){const[l]=s.split(".");n.file(`word/fonts/${l}.odttf`,$_(a,o))}return n}xmlifyFile(e,t){const n=e.Document.Relationships.RelationshipCount+1,A=Er(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),i=this.imageReplacer.getMediaData(A,e.Media);return{Relationships:{data:(i.forEach((a,s)=>{e.Document.Relationships.createRelationship(n+s,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${a.fileName}`)}),Er(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const a=this.imageReplacer.replace(A,i,n);return this.numberingReplacer.replace(a,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const a=Er(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(a,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Er(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Er(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Er(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((a,s)=>{const o=Er(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(o,e.Media).forEach((u,h)=>{a.Relationships.createRelationship(h,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${u.fileName}`)}),{data:Er(this.formatter.format(a.Relationships,{viewWrapper:a,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${s+1}.xml.rels`}}),FooterRelationships:e.Footers.map((a,s)=>{const o=Er(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(o,e.Media).forEach((u,h)=>{a.Relationships.createRelationship(h,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${u.fileName}`)}),{data:Er(this.formatter.format(a.Relationships,{viewWrapper:a,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${s+1}.xml.rels`}}),Headers:e.Headers.map((a,s)=>{const o=Er(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),l=this.imageReplacer.getMediaData(o,e.Media),u=this.imageReplacer.replace(o,l,0);return{data:this.numberingReplacer.replace(u,e.Numbering.ConcreteNumbering),path:`word/header${s+1}.xml`}}),Footers:e.Footers.map((a,s)=>{const o=Er(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),l=this.imageReplacer.getMediaData(o,e.Media),u=this.imageReplacer.replace(o,l,0);return{data:this.numberingReplacer.replace(u,e.Numbering.ConcreteNumbering),path:`word/footer${s+1}.xml`}}),ContentTypes:{data:Er(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Er(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Er(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Er(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Er(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Er(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:Er(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:Er(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:Er(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}const Z_={WITH_2_BLANKS:" "},Wo=r=>r===!0?Z_.WITH_2_BLANKS:r===!1?void 0:r;class Zy{static toString(e,t){return Uu(this,null,function*(){return yield this.compiler.compile(e,Wo(t)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(e,t){return Uu(this,null,function*(){return yield this.compiler.compile(e,Wo(t)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(e,t){return Uu(this,null,function*(){return yield this.compiler.compile(e,Wo(t)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(e,t){return Uu(this,null,function*(){return yield this.compiler.compile(e,Wo(t)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(e,t){const n=new np.Stream;return this.compiler.compile(e,Wo(t)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(i=>{n.emit("data",i),n.emit("end")}),n}}_e(Zy,"compiler",new J_);class Cp{constructor(){ze(this,"name","Word 导出器");ze(this,"format","word");ze(this,"extension","docx");ze(this,"mimeType","application/vnd.openxmlformats-officedocument.wordprocessingml.document")}async export(e,t){const n=new O_({sections:[{properties:{},children:[...this.createCover(e),...this.createTableOfContents(e),...e.flatMap((i,a)=>this.createBugSection(i,a+1))]}]});return await Zy.toBlob(n)}async exportSingle(e,t){return this.export([e],t)}createCover(e){return[new Xt({spacing:{before:2e3}}),new Xt({alignment:$n.CENTER,children:[new gr({text:"Bug 报告",bold:!0,size:56})]}),new Xt({alignment:$n.CENTER,spacing:{before:400},children:[new gr({text:`导出时间:${new Date().toLocaleString("zh-CN")}`,size:24})]}),new Xt({alignment:$n.CENTER,spacing:{before:200},children:[new gr({text:`Bug 总数:${e.length}`,size:24})]}),new Xt({spacing:{before:1e3}})]}createTableOfContents(e){const t=[new Xt({heading:Ki.HEADING_1,children:[new gr({text:"目录"})]})];return e.forEach((n,A)=>{t.push(new Xt({children:[new gr({text:`${A+1}. ${n.description.title}`,size:24})]}))}),t.push(new Xt({spacing:{before:400}})),t}createBugSection(e,t){const n=[new Xt({heading:Ki.HEADING_1,children:[new gr({text:`${t}. ${e.description.title}`})]}),new Xt({heading:Ki.HEADING_2,children:[new gr({text:"基础信息"})]}),this.createInfoTable([["ID",e.id],["来源",this.getSourceLabel(e.source)],["严重程度",this.getSeverityLabel(e.severity)],["创建时间",new Date(e.createdAt).toLocaleString("zh-CN")]]),new Xt({heading:Ki.HEADING_2,children:[new gr({text:"环境信息"})]}),this.createInfoTable([["子系统",e.environment.system],["页面 URL",e.environment.url],["路由",e.environment.route],["浏览器",e.environment.userAgent],["屏幕分辨率",`${e.environment.screenWidth} × ${e.environment.screenHeight}`]])];return e.httpInfo&&n.push(new Xt({heading:Ki.HEADING_2,children:[new gr({text:"接口信息"})]}),this.createInfoTable([["接口地址",`${e.httpInfo.requestMethod} ${e.httpInfo.requestUrl}`],["请求入参",JSON.stringify(e.httpInfo.requestParams)],["响应状态",String(e.httpInfo.responseStatus)],["业务错误码",e.httpInfo.responseCode||"-"],["错误信息",e.httpInfo.errorMessage],["请求耗时",`${e.httpInfo.duration}ms`]])),n.push(new Xt({heading:Ki.HEADING_2,children:[new gr({text:"Bug 描述"})]})),e.description.autoDescribe&&n.push(new Xt({children:[new gr({text:"自动描述:",bold:!0}),new gr({text:e.description.autoDescribe})]})),e.description.manualDescribe&&n.push(new Xt({children:[new gr({text:"手动描述:",bold:!0}),new gr({text:e.description.manualDescribe})]})),e.screenshots&&e.screenshots.length>0&&(n.push(new Xt({heading:Ki.HEADING_2,children:[new gr({text:"截图"})]})),e.screenshots.forEach((A,i)=>{if(A.url.startsWith("data:image"))try{const a=A.url.split(",")[1],s=this.base64ToBuffer(a);n.push(new Xt({children:[new rI({data:s,transformation:{width:600,height:400}})]}))}catch{n.push(new Xt({children:[new gr({text:`[截图 ${i+1} 加载失败]`})]}))}})),e.metadata.tags.length>0&&n.push(new Xt({heading:Ki.HEADING_2,children:[new gr({text:"标签"})]}),new Xt({children:[new gr({text:e.metadata.tags.join("、")})]})),n.push(new Xt({spacing:{before:400},border:{bottom:{style:Du.SINGLE,size:6,color:"CCCCCC"}}})),n}createInfoTable(e){return new lT({width:{size:100,type:Qs.PERCENTAGE},rows:e.map(([t,n])=>new fT({children:[new Wu({width:{size:20,type:Qs.PERCENTAGE},children:[new Xt({children:[new gr({text:t,bold:!0})]})]}),new Wu({width:{size:80,type:Qs.PERCENTAGE},children:[new Xt({children:[new gr({text:n})]})]})]}))})}base64ToBuffer(e){const t=atob(e),n=new Uint8Array(t.length);for(let A=0;A<t.length;A++)n[A]=t.charCodeAt(A);return n}getSourceLabel(e){return{"http-error":"接口错误",manual:"手动创建","dom-error":"DOM 异常"}[e]||e}getSeverityLabel(e){return{critical:"致命",major:"严重",minor:"一般",suggestion:"建议"}[e]||e}}function Rt(r){"@babel/helpers - typeof";return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(r)}var gn=Uint8Array,qn=Uint16Array,Ep=Int32Array,ec=new gn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),tc=new gn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Sp=new gn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),eB=function(r,e){for(var t=new qn(31),n=0;n<31;++n)t[n]=e+=1<<r[n-1];for(var A=new Ep(t[30]),n=1;n<30;++n)for(var i=t[n];i<t[n+1];++i)A[i]=i-t[n]<<5|n;return{b:t,r:A}},tB=eB(ec,2),rB=tB.b,Fp=tB.r;rB[28]=258,Fp[258]=28;for(var nB=eB(tc,0),eL=nB.b,AB=nB.r,Up=new qn(32768),ar=0;ar<32768;++ar){var Gi=(ar&43690)>>1|(ar&21845)<<1;Gi=(Gi&52428)>>2|(Gi&13107)<<2,Gi=(Gi&61680)>>4|(Gi&3855)<<4,Up[ar]=((Gi&65280)>>8|(Gi&255)<<8)>>1}for(var qA=function(r,e,t){for(var n=r.length,A=0,i=new qn(e);A<n;++A)r[A]&&++i[r[A]-1];var a=new qn(e);for(A=1;A<e;++A)a[A]=a[A-1]+i[A-1]<<1;var s;if(t){s=new qn(1<<e);var o=15-e;for(A=0;A<n;++A)if(r[A])for(var l=A<<4|r[A],u=e-r[A],h=a[r[A]-1]++<<u,d=h|(1<<u)-1;h<=d;++h)s[Up[h]>>o]=l}else for(s=new qn(n),A=0;A<n;++A)r[A]&&(s[A]=Up[a[r[A]-1]++]>>15-r[A]);return s},zi=new gn(288),ar=0;ar<144;++ar)zi[ar]=8;for(var ar=144;ar<256;++ar)zi[ar]=9;for(var ar=256;ar<280;++ar)zi[ar]=7;for(var ar=280;ar<288;++ar)zi[ar]=8;for(var $o=new gn(32),ar=0;ar<32;++ar)$o[ar]=5;var tL=qA(zi,9,0),rL=qA(zi,9,1),nL=qA($o,5,0),AL=qA($o,5,1),Ip=function(r){for(var e=r[0],t=1;t<r.length;++t)r[t]>e&&(e=r[t]);return e},CA=function(r,e,t){var n=e/8|0;return(r[n]|r[n+1]<<8)>>(e&7)&t},Tp=function(r,e){var t=e/8|0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>(e&7)},_p=function(r){return(r+7)/8|0},iB=function(r,e,t){return(t==null||t>r.length)&&(t=r.length),new gn(r.subarray(e,t))},iL=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],EA=function(r,e,t){var n=new Error(e||iL[r]);if(n.code=r,Error.captureStackTrace&&Error.captureStackTrace(n,EA),!t)throw n;return n},aL=function(r,e,t,n){var A=r.length,i=0;if(!A||e.f&&!e.l)return t||new gn(0);var a=!t,s=a||e.i!=2,o=e.i;a&&(t=new gn(A*3));var l=function($){var te=t.length;if($>te){var me=new gn(Math.max(te*2,$));me.set(t),t=me}},u=e.f||0,h=e.p||0,d=e.b||0,c=e.l,p=e.d,m=e.m,y=e.n,g=A*8;do{if(!c){u=CA(r,h,1);var w=CA(r,h+1,3);if(h+=3,w)if(w==1)c=rL,p=AL,m=9,y=5;else if(w==2){var j=CA(r,h,31)+257,R=CA(r,h+10,15)+4,D=j+CA(r,h+5,31)+1;h+=14;for(var Q=new gn(D),J=new gn(19),M=0;M<R;++M)J[Sp[M]]=CA(r,h+M*3,7);h+=R*3;for(var S=Ip(J),K=(1<<S)-1,F=qA(J,S,1),M=0;M<D;){var ne=F[CA(r,h,K)];h+=ne&15;var B=ne>>4;if(B<16)Q[M++]=B;else{var ee=0,G=0;for(B==16?(G=3+CA(r,h,3),h+=2,ee=Q[M-1]):B==17?(G=3+CA(r,h,7),h+=3):B==18&&(G=11+CA(r,h,127),h+=7);G--;)Q[M++]=ee}}var oe=Q.subarray(0,j),q=Q.subarray(j);m=Ip(oe),y=Ip(q),c=qA(oe,m,1),p=qA(q,y,1)}else EA(1);else{var B=_p(h)+4,I=r[B-4]|r[B-3]<<8,O=B+I;if(O>A){o&&EA(0);break}s&&l(d+I),t.set(r.subarray(B,O),d),e.b=d+=I,e.p=h=O*8,e.f=u;continue}if(h>g){o&&EA(0);break}}s&&l(d+131072);for(var he=(1<<m)-1,ie=(1<<y)-1,E=h;;E=h){var ee=c[Tp(r,h)&he],k=ee>>4;if(h+=ee&15,h>g){o&&EA(0);break}if(ee||EA(2),k<256)t[d++]=k;else if(k==256){E=h,c=null;break}else{var V=k-254;if(k>264){var M=k-257,W=ec[M];V=CA(r,h,(1<<W)-1)+rB[M],h+=W}var z=p[Tp(r,h)&ie],_=z>>4;z||EA(3),h+=z&15;var q=eL[_];if(_>3){var W=tc[_];q+=Tp(r,h)&(1<<W)-1,h+=W}if(h>g){o&&EA(0);break}s&&l(d+131072);var L=d+V;if(d<q){var Z=i-q,se=Math.min(q,L);for(Z+d<0&&EA(3);d<se;++d)t[d]=n[Z+d]}for(;d<L;++d)t[d]=t[d-q]}}e.l=c,e.p=E,e.b=d,e.f=u,c&&(u=1,e.m=m,e.d=p,e.n=y)}while(!u);return d!=t.length&&a?iB(t,0,d):t.subarray(0,d)},pi=function(r,e,t){t<<=e&7;var n=e/8|0;r[n]|=t,r[n+1]|=t>>8},qo=function(r,e,t){t<<=e&7;var n=e/8|0;r[n]|=t,r[n+1]|=t>>8,r[n+2]|=t>>16},Lp=function(r,e){for(var t=[],n=0;n<r.length;++n)r[n]&&t.push({s:n,f:r[n]});var A=t.length,i=t.slice();if(!A)return{t:lB,l:0};if(A==1){var a=new gn(t[0].s+1);return a[t[0].s]=1,{t:a,l:1}}t.sort(function(O,j){return O.f-j.f}),t.push({s:-1,f:25001});var s=t[0],o=t[1],l=0,u=1,h=2;for(t[0]={s:-1,f:s.f+o.f,l:s,r:o};u!=A-1;)s=t[t[l].f<t[h].f?l++:h++],o=t[l!=u&&t[l].f<t[h].f?l++:h++],t[u++]={s:-1,f:s.f+o.f,l:s,r:o};for(var d=i[0].s,n=1;n<A;++n)i[n].s>d&&(d=i[n].s);var c=new qn(d+1),p=Qp(t[u-1],c,0);if(p>e){var n=0,m=0,y=p-e,g=1<<y;for(i.sort(function(j,R){return c[R.s]-c[j.s]||j.f-R.f});n<A;++n){var w=i[n].s;if(c[w]>e)m+=g-(1<<p-c[w]),c[w]=e;else break}for(m>>=y;m>0;){var B=i[n].s;c[B]<e?m-=1<<e-c[B]++-1:++n}for(;n>=0&&m;--n){var I=i[n].s;c[I]==e&&(--c[I],++m)}p=e}return{t:new gn(c),l:p}},Qp=function(r,e,t){return r.s==-1?Math.max(Qp(r.l,e,t+1),Qp(r.r,e,t+1)):e[r.s]=t},aB=function(r){for(var e=r.length;e&&!r[--e];);for(var t=new qn(++e),n=0,A=r[0],i=1,a=function(o){t[n++]=o},s=1;s<=e;++s)if(r[s]==A&&s!=e)++i;else{if(!A&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(A),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(A);i=1,A=r[s]}return{c:t.subarray(0,n),n:e}},Xo=function(r,e){for(var t=0,n=0;n<e.length;++n)t+=r[n]*e[n];return t},sB=function(r,e,t){var n=t.length,A=_p(e+2);r[A]=n&255,r[A+1]=n>>8,r[A+2]=r[A]^255,r[A+3]=r[A+1]^255;for(var i=0;i<n;++i)r[A+i+4]=t[i];return(A+4+n)*8},oB=function(r,e,t,n,A,i,a,s,o,l,u){pi(e,u++,t),++A[256];for(var h=Lp(A,15),d=h.t,c=h.l,p=Lp(i,15),m=p.t,y=p.l,g=aB(d),w=g.c,B=g.n,I=aB(m),O=I.c,j=I.n,R=new qn(19),D=0;D<w.length;++D)++R[w[D]&31];for(var D=0;D<O.length;++D)++R[O[D]&31];for(var Q=Lp(R,7),J=Q.t,M=Q.l,S=19;S>4&&!J[Sp[S-1]];--S);var K=l+5<<3,F=Xo(A,zi)+Xo(i,$o)+a,ne=Xo(A,d)+Xo(i,m)+a+14+3*S+Xo(R,J)+2*R[16]+3*R[17]+7*R[18];if(o>=0&&K<=F&&K<=ne)return sB(e,u,r.subarray(o,o+l));var ee,G,oe,q;if(pi(e,u,1+(ne<F)),u+=2,ne<F){ee=qA(d,c,0),G=d,oe=qA(m,y,0),q=m;var he=qA(J,M,0);pi(e,u,B-257),pi(e,u+5,j-1),pi(e,u+10,S-4),u+=14;for(var D=0;D<S;++D)pi(e,u+3*D,J[Sp[D]]);u+=3*S;for(var ie=[w,O],E=0;E<2;++E)for(var k=ie[E],D=0;D<k.length;++D){var V=k[D]&31;pi(e,u,he[V]),u+=J[V],V>15&&(pi(e,u,k[D]>>5&127),u+=k[D]>>12)}}else ee=tL,G=zi,oe=nL,q=$o;for(var D=0;D<s;++D){var W=n[D];if(W>255){var V=W>>18&31;qo(e,u,ee[V+257]),u+=G[V+257],V>7&&(pi(e,u,W>>23&31),u+=ec[V]);var z=W&31;qo(e,u,oe[z]),u+=q[z],z>3&&(qo(e,u,W>>5&8191),u+=tc[z])}else qo(e,u,ee[W]),u+=G[W]}return qo(e,u,ee[256]),u+G[256]},sL=new Ep([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),lB=new gn(0),oL=function(r,e,t,n,A,i){var a=i.z||r.length,s=new gn(n+a+5*(1+Math.ceil(a/7e3))+A),o=s.subarray(n,s.length-A),l=i.l,u=(i.r||0)&7;if(e){u&&(o[0]=i.r>>3);for(var h=sL[e-1],d=h>>13,c=h&8191,p=(1<<t)-1,m=i.p||new qn(32768),y=i.h||new qn(p+1),g=Math.ceil(t/3),w=2*g,B=function(P){return(r[P]^r[P+1]<<g^r[P+2]<<w)&p},I=new Ep(25e3),O=new qn(288),j=new qn(32),R=0,D=0,Q=i.i||0,J=0,M=i.w||0,S=0;Q+2<a;++Q){var K=B(Q),F=Q&32767,ne=y[K];if(m[F]=ne,y[K]=F,M<=Q){var ee=a-Q;if((R>7e3||J>24576)&&(ee>423||!l)){u=oB(r,o,0,I,O,j,D,J,S,Q-S,u),J=R=D=0,S=Q;for(var G=0;G<286;++G)O[G]=0;for(var G=0;G<30;++G)j[G]=0}var oe=2,q=0,he=c,ie=F-ne&32767;if(ee>2&&K==B(Q-ie))for(var E=Math.min(d,ee)-1,k=Math.min(32767,Q),V=Math.min(258,ee);ie<=k&&--he&&F!=ne;){if(r[Q+oe]==r[Q+oe-ie]){for(var W=0;W<V&&r[Q+W]==r[Q+W-ie];++W);if(W>oe){if(oe=W,q=ie,W>E)break;for(var z=Math.min(ie,W-2),_=0,G=0;G<z;++G){var L=Q-ie+G&32767,Z=m[L],se=L-Z&32767;se>_&&(_=se,ne=L)}}}F=ne,ne=m[F],ie+=F-ne&32767}if(q){I[J++]=268435456|Fp[oe]<<18|AB[q];var $=Fp[oe]&31,te=AB[q]&31;D+=ec[$]+tc[te],++O[257+$],++j[te],M=Q+oe,++R}else I[J++]=r[Q],++O[r[Q]]}}for(Q=Math.max(Q,M);Q<a;++Q)I[J++]=r[Q],++O[r[Q]];u=oB(r,o,l,I,O,j,D,J,S,Q-S,u),l||(i.r=u&7|o[u/8|0]<<3,u-=7,i.h=y,i.p=m,i.i=Q,i.w=M)}else{for(var Q=i.w||0;Q<a+l;Q+=65535){var me=Q+65535;me>=a&&(o[u/8|0]=l,me=a),u=sB(o,u+1,r.subarray(Q,me))}i.i=a}return iB(s,0,n+_p(u)+A)},uB=function(){var r=1,e=0;return{p:function(t){for(var n=r,A=e,i=t.length|0,a=0;a!=i;){for(var s=Math.min(a+2655,i);a<s;++a)A+=n+=t[a];n=(n&65535)+15*(n>>16),A=(A&65535)+15*(A>>16)}r=n,e=A},d:function(){return r%=65521,e%=65521,(r&255)<<24|(r&65280)<<8|(e&255)<<8|e>>8}}},lL=function(r,e,t,n,A){if(!A&&(A={l:1},e.dictionary)){var i=e.dictionary.subarray(-32768),a=new gn(i.length+r.length);a.set(i),a.set(r,i.length),r=a,A.w=i.length}return oL(r,e.level==null?6:e.level,e.mem==null?A.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+e.mem,t,n,A)},cB=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8},uL=function(r,e){var t=e.level,n=t==0?0:t<6?1:t==9?3:2;if(r[0]=120,r[1]=n<<6|(e.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,e.dictionary){var A=uB();A.p(e.dictionary),cB(r,2,A.d())}},cL=function(r,e){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&EA(6,"invalid zlib data"),(r[1]>>5&1)==1&&EA(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function Np(r,e){e||(e={});var t=uB();t.p(r);var n=lL(r,e,e.dictionary?6:2,4);return uL(n,e),cB(n,n.length-4,t.d()),n}function hL(r,e){return aL(r.subarray(cL(r),-4),{i:2},e,e)}var fL=typeof TextDecoder<"u"&&new TextDecoder,dL=0;try{fL.decode(lB,{stream:!0}),dL=1}catch{}/** @license
54
+ *
55
+ * jsPDF - PDF Document creation from JavaScript
56
+ * Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
57
+ * CommitID 00000000
58
+ *
59
+ * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
60
+ * 2015-2021 yWorks GmbH, http://www.yworks.com
61
+ * 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
62
+ * 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
63
+ * 2010 Aaron Spike, https://github.com/acspike
64
+ * 2012 Willow Systems Corporation, https://github.com/willowsystems
65
+ * 2012 Pablo Hess, https://github.com/pablohess
66
+ * 2012 Florian Jenett, https://github.com/fjenett
67
+ * 2013 Warren Weckesser, https://github.com/warrenweckesser
68
+ * 2013 Youssef Beddad, https://github.com/lifof
69
+ * 2013 Lee Driscoll, https://github.com/lsdriscoll
70
+ * 2013 Stefan Slonevskiy, https://github.com/stefslon
71
+ * 2013 Jeremy Morel, https://github.com/jmorel
72
+ * 2013 Christoph Hartmann, https://github.com/chris-rock
73
+ * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
74
+ * 2014 James Makes, https://github.com/dollaruw
75
+ * 2014 Diego Casorran, https://github.com/diegocr
76
+ * 2014 Steven Spungin, https://github.com/Flamenco
77
+ * 2014 Kenneth Glassey, https://github.com/Gavvers
78
+ *
79
+ * Permission is hereby granted, free of charge, to any person obtaining
80
+ * a copy of this software and associated documentation files (the
81
+ * "Software"), to deal in the Software without restriction, including
82
+ * without limitation the rights to use, copy, modify, merge, publish,
83
+ * distribute, sublicense, and/or sell copies of the Software, and to
84
+ * permit persons to whom the Software is furnished to do so, subject to
85
+ * the following conditions:
86
+ *
87
+ * The above copyright notice and this permission notice shall be
88
+ * included in all copies or substantial portions of the Software.
89
+ *
90
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
91
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
92
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
93
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
94
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
95
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
96
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
97
+ *
98
+ * Contributor(s):
99
+ * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
100
+ * kim3er, mfo, alnorth, Flamenco
101
+ */var pt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Op(){pt.console&&typeof pt.console.log=="function"&&pt.console.log.apply(pt.console,arguments)}var Zt={log:Op,warn:function(r){pt.console&&(typeof pt.console.warn=="function"?pt.console.warn.apply(pt.console,arguments):Op.call(null,arguments))},error:function(r){pt.console&&(typeof pt.console.error=="function"?pt.console.error.apply(pt.console,arguments):Op(r))}};function Pp(r,e,t){var n=new XMLHttpRequest;n.open("GET",r),n.responseType="blob",n.onload=function(){Na(n.response,e,t)},n.onerror=function(){Zt.error("could not download file")},n.send()}function hB(r){var e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function rc(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(e)}}var Yo,Rp,Na=pt.saveAs||((typeof window>"u"?"undefined":Rt(window))!=="object"||window!==pt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,e,t){var n=pt.URL||pt.webkitURL,A=document.createElement("a");e=e||r.name||"download",A.download=e,A.rel="noopener",typeof r=="string"?(A.href=r,A.origin!==location.origin?hB(A.href)?Pp(r,e,t):rc(A,A.target="_blank"):rc(A)):(A.href=n.createObjectURL(r),setTimeout(function(){n.revokeObjectURL(A.href)},4e4),setTimeout(function(){rc(A)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,t){if(e=e||r.name||"download",typeof r=="string")if(hB(r))Pp(r,e,t);else{var n=document.createElement("a");n.href=r,n.target="_blank",setTimeout(function(){rc(n)})}else navigator.msSaveOrOpenBlob(function(A,i){return i===void 0?i={autoBom:!1}:Rt(i)!=="object"&&(Zt.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob(["\uFEFF",A],{type:A.type}):A}(r,t),e)}:function(r,e,t,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof r=="string")return Pp(r,e,t);var A=r.type==="application/octet-stream",i=/constructor/i.test(pt.HTMLElement)||pt.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||A&&i)&&(typeof FileReader>"u"?"undefined":Rt(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=a?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=u:location=u,n=null},s.readAsDataURL(r)}else{var o=pt.URL||pt.webkitURL,l=o.createObjectURL(r);n?n.location=l:location.href=l,n=null,setTimeout(function(){o.revokeObjectURL(l)},4e4)}});/**
102
+ * A class to parse color values
103
+ * @author Stoyan Stefanov <sstoo@gmail.com>
104
+ * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
105
+ * @license Use it if you like it
106
+ */function fB(r){var e;r=r||"",this.ok=!1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],n=0;n<t.length;n++){var A=t[n].re,i=t[n].process,a=A.exec(r);a&&(e=i(a),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),o=this.g.toString(16),l=this.b.toString(16);return s.length==1&&(s="0"+s),o.length==1&&(o="0"+o),l.length==1&&(l="0"+l),"#"+s+o+l}}/**
107
+ * @license
108
+ * Joseph Myers does not specify a particular license for his work.
109
+ *
110
+ * Author: Joseph Myers
111
+ * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
112
+ *
113
+ * Modified by: Owen Leong
114
+ */function Dp(r,e){var t=r[0],n=r[1],A=r[2],i=r[3];t=mn(t,n,A,i,e[0],7,-680876936),i=mn(i,t,n,A,e[1],12,-389564586),A=mn(A,i,t,n,e[2],17,606105819),n=mn(n,A,i,t,e[3],22,-1044525330),t=mn(t,n,A,i,e[4],7,-176418897),i=mn(i,t,n,A,e[5],12,1200080426),A=mn(A,i,t,n,e[6],17,-1473231341),n=mn(n,A,i,t,e[7],22,-45705983),t=mn(t,n,A,i,e[8],7,1770035416),i=mn(i,t,n,A,e[9],12,-1958414417),A=mn(A,i,t,n,e[10],17,-42063),n=mn(n,A,i,t,e[11],22,-1990404162),t=mn(t,n,A,i,e[12],7,1804603682),i=mn(i,t,n,A,e[13],12,-40341101),A=mn(A,i,t,n,e[14],17,-1502002290),t=vn(t,n=mn(n,A,i,t,e[15],22,1236535329),A,i,e[1],5,-165796510),i=vn(i,t,n,A,e[6],9,-1069501632),A=vn(A,i,t,n,e[11],14,643717713),n=vn(n,A,i,t,e[0],20,-373897302),t=vn(t,n,A,i,e[5],5,-701558691),i=vn(i,t,n,A,e[10],9,38016083),A=vn(A,i,t,n,e[15],14,-660478335),n=vn(n,A,i,t,e[4],20,-405537848),t=vn(t,n,A,i,e[9],5,568446438),i=vn(i,t,n,A,e[14],9,-1019803690),A=vn(A,i,t,n,e[3],14,-187363961),n=vn(n,A,i,t,e[8],20,1163531501),t=vn(t,n,A,i,e[13],5,-1444681467),i=vn(i,t,n,A,e[2],9,-51403784),A=vn(A,i,t,n,e[7],14,1735328473),t=wn(t,n=vn(n,A,i,t,e[12],20,-1926607734),A,i,e[5],4,-378558),i=wn(i,t,n,A,e[8],11,-2022574463),A=wn(A,i,t,n,e[11],16,1839030562),n=wn(n,A,i,t,e[14],23,-35309556),t=wn(t,n,A,i,e[1],4,-1530992060),i=wn(i,t,n,A,e[4],11,1272893353),A=wn(A,i,t,n,e[7],16,-155497632),n=wn(n,A,i,t,e[10],23,-1094730640),t=wn(t,n,A,i,e[13],4,681279174),i=wn(i,t,n,A,e[0],11,-358537222),A=wn(A,i,t,n,e[3],16,-722521979),n=wn(n,A,i,t,e[6],23,76029189),t=wn(t,n,A,i,e[9],4,-640364487),i=wn(i,t,n,A,e[12],11,-421815835),A=wn(A,i,t,n,e[15],16,530742520),t=yn(t,n=wn(n,A,i,t,e[2],23,-995338651),A,i,e[0],6,-198630844),i=yn(i,t,n,A,e[7],10,1126891415),A=yn(A,i,t,n,e[14],15,-1416354905),n=yn(n,A,i,t,e[5],21,-57434055),t=yn(t,n,A,i,e[12],6,1700485571),i=yn(i,t,n,A,e[3],10,-1894986606),A=yn(A,i,t,n,e[10],15,-1051523),n=yn(n,A,i,t,e[1],21,-2054922799),t=yn(t,n,A,i,e[8],6,1873313359),i=yn(i,t,n,A,e[15],10,-30611744),A=yn(A,i,t,n,e[6],15,-1560198380),n=yn(n,A,i,t,e[13],21,1309151649),t=yn(t,n,A,i,e[4],6,-145523070),i=yn(i,t,n,A,e[11],10,-1120210379),A=yn(A,i,t,n,e[2],15,718787259),n=yn(n,A,i,t,e[9],21,-343485551),r[0]=Wi(t,r[0]),r[1]=Wi(n,r[1]),r[2]=Wi(A,r[2]),r[3]=Wi(i,r[3])}function nc(r,e,t,n,A,i){return e=Wi(Wi(e,r),Wi(n,i)),Wi(e<<A|e>>>32-A,t)}function mn(r,e,t,n,A,i,a){return nc(e&t|~e&n,r,e,A,i,a)}function vn(r,e,t,n,A,i,a){return nc(e&n|t&~n,r,e,A,i,a)}function wn(r,e,t,n,A,i,a){return nc(e^t^n,r,e,A,i,a)}function yn(r,e,t,n,A,i,a){return nc(t^(e|~n),r,e,A,i,a)}function dB(r){var e,t=r.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=r.length;e+=64)Dp(n,pL(r.substring(e-64,e)));r=r.substring(e-64);var A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<r.length;e++)A[e>>2]|=r.charCodeAt(e)<<(e%4<<3);if(A[e>>2]|=128<<(e%4<<3),e>55)for(Dp(n,A),e=0;e<16;e++)A[e]=0;return A[14]=8*t,Dp(n,A),n}function pL(r){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=r.charCodeAt(e)+(r.charCodeAt(e+1)<<8)+(r.charCodeAt(e+2)<<16)+(r.charCodeAt(e+3)<<24);return t}Yo=pt.atob.bind(pt),Rp=pt.btoa.bind(pt);var pB="0123456789abcdef".split("");function gL(r){for(var e="",t=0;t<4;t++)e+=pB[r>>8*t+4&15]+pB[r>>8*t&15];return e}function mL(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function kp(r){return dB(r).map(mL).join("")}var vL=function(r){for(var e=0;e<r.length;e++)r[e]=gL(r[e]);return r.join("")}(dB("hello"))!="5d41402abc4b2a76b9719d911017c592";function Wi(r,e){if(vL){var t=(65535&r)+(65535&e);return(r>>16)+(e>>16)+(t>>16)<<16|65535&t}return r+e&4294967295}/**
115
+ * @license
116
+ * FPDF is released under a permissive license: there is no usage restriction.
117
+ * You may embed it freely in your application (commercial or not), with or
118
+ * without modifications.
119
+ *
120
+ * Reference: http://www.fpdf.org/en/script/script37.php
121
+ */function Hp(r,e){var t,n,A,i;if(r!==t){for(var a=(A=r,i=1+(256/r.length>>0),new Array(i+1).join(A)),s=[],o=0;o<256;o++)s[o]=o;var l=0;for(o=0;o<256;o++){var u=s[o];l=(l+u+a.charCodeAt(o))%256,s[o]=s[l],s[l]=u}t=r,n=s}else s=n;var h=e.length,d=0,c=0,p="";for(o=0;o<h;o++)c=(c+(u=s[d=(d+1)%256]))%256,s[d]=s[c],s[c]=u,a=s[(s[d]+s[c])%256],p+=String.fromCharCode(e.charCodeAt(o)^a);return p}/**
122
+ * @license
123
+ * Licensed under the MIT License.
124
+ * http://opensource.org/licenses/mit-license
125
+ * Author: Owen Leong (@owenl131)
126
+ * Date: 15 Oct 2020
127
+ * References:
128
+ * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
129
+ * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
130
+ * http://www.fpdf.org/en/script/script37.php
131
+ */var gB={print:4,modify:8,copy:16,"annot-forms":32};function Ps(r,e,t,n){this.v=1,this.r=2;var A=192;r.forEach(function(s){if(gB.perm!==void 0)throw new Error("Invalid permission: "+s);A+=gB[s]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var i=(e+this.padding).substr(0,32),a=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,a),this.P=-(1+(255^A)),this.encryptionKey=kp(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=Hp(this.encryptionKey,this.padding)}function Rs(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var e="",t=r.length,n=0;n<t;n++){var A=r.charCodeAt(n);A<33||A===35||A===37||A===40||A===41||A===47||A===60||A===62||A===91||A===93||A===123||A===125||A>126?e+="#"+("0"+A.toString(16)).slice(-2):e+=r[n]}return e}function mB(r){if(Rt(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,A){if(A=A||!1,typeof t!="string"||typeof n!="function"||typeof A!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!A],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],Object.keys(e[n]).length===0&&delete e[n],!0;return!1},this.publish=function(t){if(e.hasOwnProperty(t)){var n=Array.prototype.slice.call(arguments,1),A=[];for(var i in e[t]){var a=e[t][i];try{a[0].apply(r,n)}catch(s){pt.console&&Zt.error("jsPDF PubSub Error",s.message,s)}a[1]&&A.push(i)}A.length&&A.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Jo(r){if(!(this instanceof Jo))return new Jo(r);var e="opacity,stroke-opacity".split(",");for(var t in r)r.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=r[t]);this.id="",this.objectNumber=-1}function vB(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function $i(r,e,t,n,A){if(!(this instanceof $i))return new $i(r,e,t,n,A);this.type=r==="axial"?2:3,this.coords=e,this.colors=t,vB.call(this,n,A)}function Oa(r,e,t,n,A){if(!(this instanceof Oa))return new Oa(r,e,t,n,A);this.boundingBox=r,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,vB.call(this,n,A)}function ht(r){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],A=arguments[2],i=arguments[3],a=[],s=1,o=16,l="S",u=null;Rt(r=r||{})==="object"&&(t=r.orientation,n=r.unit||n,A=r.format||A,i=r.compress||r.compressPdf||i,(u=r.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(e=r.precision),r.floatPrecision!==void 0&&(o=r.floatPrecision),l=r.defaultPathOperation||"S"),a=r.filters||(i===!0?["FlateEncode"]:a),n=n||"mm",t=(""+(t||"P")).toLowerCase();var h=r.putOnlyUsedFonts||!1,d={},c={internal:{},__private__:{}};c.__private__.PubSub=mB;var p="1.3",m=c.__private__.getPdfVersion=function(){return p};c.__private__.setPdfVersion=function(C){p=C};var y={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};c.__private__.getPageFormats=function(){return y};var g=c.__private__.getPageFormat=function(C){return y[C]};A=A||"a4";var w={COMPAT:"compat",ADVANCED:"advanced"},B=w.COMPAT;function I(){this.saveGraphicsState(),U(new ct(We,0,0,-We,0,pa()*We).toString()+" cm"),this.setFontSize(this.getFontSize()/We),l="n",B=w.ADVANCED}function O(){this.restoreGraphicsState(),l="S",B=w.COMPAT}var j=c.__private__.combineFontStyleAndFontWeight=function(C,Y){if(C=="bold"&&Y=="normal"||C=="bold"&&Y==400||C=="normal"&&Y=="italic"||C=="bold"&&Y=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Y&&(C=Y==400||Y==="normal"?C==="italic"?"italic":"normal":Y!=700&&Y!=="bold"||C!=="normal"?(Y==700?"bold":Y)+""+C:"bold"),C};c.advancedAPI=function(C){var Y=B===w.COMPAT;return Y&&I.call(this),typeof C!="function"||(C(this),Y&&O.call(this)),this},c.compatAPI=function(C){var Y=B===w.ADVANCED;return Y&&O.call(this),typeof C!="function"||(C(this),Y&&I.call(this)),this},c.isAdvancedAPI=function(){return B===w.ADVANCED};var R,D=function(C){if(B!==w.ADVANCED)throw new Error(C+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Q=c.roundToPrecision=c.__private__.roundToPrecision=function(C,Y){var ge=e||Y;if(isNaN(C)||isNaN(ge))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return C.toFixed(ge).replace(/0+$/,"")};R=c.hpf=c.__private__.hpf=typeof o=="number"?function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(C,o)}:o==="smart"?function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(C,C>-1&&C<1?16:5)}:function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(C,16)};var J=c.f2=c.__private__.f2=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.f2");return Q(C,2)},M=c.__private__.f3=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.f3");return Q(C,3)},S=c.scale=c.__private__.scale=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.scale");return B===w.COMPAT?C*We:B===w.ADVANCED?C:void 0},K=function(C){return B===w.COMPAT?pa()-C:B===w.ADVANCED?C:void 0},F=function(C){return S(K(C))};c.__private__.setPrecision=c.setPrecision=function(C){typeof parseInt(C,10)=="number"&&(e=parseInt(C,10))};var ne,ee="00000000000000000000000000000000",G=c.__private__.getFileId=function(){return ee},oe=c.__private__.setFileId=function(C){return ee=C!==void 0&&/^[a-fA-F0-9]{32}$/.test(C)?C.toUpperCase():ee.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(Cn=new Ps(u.userPermissions,u.userPassword,u.ownerPassword,ee)),ee};c.setFileId=function(C){return oe(C),this},c.getFileId=function(){return G()};var q=c.__private__.convertDateToPDFDate=function(C){var Y=C.getTimezoneOffset(),ge=Y<0?"+":"-",ve=Math.floor(Math.abs(Y/60)),Ee=Math.abs(Y%60),Oe=[ge,V(ve),"'",V(Ee),"'"].join("");return["D:",C.getFullYear(),V(C.getMonth()+1),V(C.getDate()),V(C.getHours()),V(C.getMinutes()),V(C.getSeconds()),Oe].join("")},he=c.__private__.convertPDFDateToDate=function(C){var Y=parseInt(C.substr(2,4),10),ge=parseInt(C.substr(6,2),10)-1,ve=parseInt(C.substr(8,2),10),Ee=parseInt(C.substr(10,2),10),Oe=parseInt(C.substr(12,2),10),Ve=parseInt(C.substr(14,2),10);return new Date(Y,ge,ve,Ee,Oe,Ve,0)},ie=c.__private__.setCreationDate=function(C){var Y;if(C===void 0&&(C=new Date),C instanceof Date)Y=q(C);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(C))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Y=C}return ne=Y},E=c.__private__.getCreationDate=function(C){var Y=ne;return C==="jsDate"&&(Y=he(ne)),Y};c.setCreationDate=function(C){return ie(C),this},c.getCreationDate=function(C){return E(C)};var k,V=c.__private__.padd2=function(C){return("0"+parseInt(C)).slice(-2)},W=c.__private__.padd2Hex=function(C){return("00"+(C=C.toString())).substr(C.length)},z=0,_=[],L=[],Z=0,se=[],$=[],te=!1,me=L,P=function(){z=0,Z=0,L=[],_=[],se=[],pA=Ot(),_n=Ot()};c.__private__.setCustomOutputDestination=function(C){te=!0,me=C};var de=function(C){te||(me=C)};c.__private__.resetCustomOutputDestination=function(){te=!1,me=L};var U=c.__private__.out=function(C){return C=C.toString(),Z+=C.length+1,me.push(C),me},b=c.__private__.write=function(C){return U(arguments.length===1?C.toString():Array.prototype.join.call(arguments," "))},x=c.__private__.getArrayBuffer=function(C){for(var Y=C.length,ge=new ArrayBuffer(Y),ve=new Uint8Array(ge);Y--;)ve[Y]=C.charCodeAt(Y);return ge},N=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];c.__private__.getStandardFonts=function(){return N};var ae=r.fontSize||16;c.__private__.setFontSize=c.setFontSize=function(C){return ae=B===w.ADVANCED?C/We:C,this};var fe,ue=c.__private__.getFontSize=c.getFontSize=function(){return B===w.COMPAT?ae:ae*We},be=r.R2L||!1;c.__private__.setR2L=c.setR2L=function(C){return be=C,this},c.__private__.getR2L=c.getR2L=function(){return be};var Fe,Se=c.__private__.setZoomMode=function(C){var Y=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(C))fe=C;else if(isNaN(C)){if(Y.indexOf(C)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+C+'" is not recognized.');fe=C}else fe=parseInt(C,10)};c.__private__.getZoomMode=function(){return fe};var Pe,je=c.__private__.setPageMode=function(C){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(C)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+C+'" is not recognized.');Fe=C};c.__private__.getPageMode=function(){return Fe};var $e=c.__private__.setLayoutMode=function(C){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(C)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+C+'" is not recognized.');Pe=C};c.__private__.getLayoutMode=function(){return Pe},c.__private__.setDisplayMode=c.setDisplayMode=function(C,Y,ge){return Se(C),$e(Y),je(ge),this};var et={title:"",subject:"",author:"",keywords:"",creator:""};c.__private__.getDocumentProperty=function(C){if(Object.keys(et).indexOf(C)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return et[C]},c.__private__.getDocumentProperties=function(){return et},c.__private__.setDocumentProperties=c.setProperties=c.setDocumentProperties=function(C){for(var Y in et)et.hasOwnProperty(Y)&&C[Y]&&(et[Y]=C[Y]);return this},c.__private__.setDocumentProperty=function(C,Y){if(Object.keys(et).indexOf(C)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return et[C]=Y};var ut,We,kt,st,ur,Et={},gt={},cr=[],St={},qr={},Ht={},nr={},Dt=null,Gt=0,it=[],It=new mB(c),Ii=r.hotfixes||[],Hr={},Mn={},Jn=[],ct=function C(Y,ge,ve,Ee,Oe,Ve){if(!(this instanceof C))return new C(Y,ge,ve,Ee,Oe,Ve);isNaN(Y)&&(Y=1),isNaN(ge)&&(ge=0),isNaN(ve)&&(ve=0),isNaN(Ee)&&(Ee=1),isNaN(Oe)&&(Oe=0),isNaN(Ve)&&(Ve=0),this._matrix=[Y,ge,ve,Ee,Oe,Ve]};Object.defineProperty(ct.prototype,"sx",{get:function(){return this._matrix[0]},set:function(C){this._matrix[0]=C}}),Object.defineProperty(ct.prototype,"shy",{get:function(){return this._matrix[1]},set:function(C){this._matrix[1]=C}}),Object.defineProperty(ct.prototype,"shx",{get:function(){return this._matrix[2]},set:function(C){this._matrix[2]=C}}),Object.defineProperty(ct.prototype,"sy",{get:function(){return this._matrix[3]},set:function(C){this._matrix[3]=C}}),Object.defineProperty(ct.prototype,"tx",{get:function(){return this._matrix[4]},set:function(C){this._matrix[4]=C}}),Object.defineProperty(ct.prototype,"ty",{get:function(){return this._matrix[5]},set:function(C){this._matrix[5]=C}}),Object.defineProperty(ct.prototype,"a",{get:function(){return this._matrix[0]},set:function(C){this._matrix[0]=C}}),Object.defineProperty(ct.prototype,"b",{get:function(){return this._matrix[1]},set:function(C){this._matrix[1]=C}}),Object.defineProperty(ct.prototype,"c",{get:function(){return this._matrix[2]},set:function(C){this._matrix[2]=C}}),Object.defineProperty(ct.prototype,"d",{get:function(){return this._matrix[3]},set:function(C){this._matrix[3]=C}}),Object.defineProperty(ct.prototype,"e",{get:function(){return this._matrix[4]},set:function(C){this._matrix[4]=C}}),Object.defineProperty(ct.prototype,"f",{get:function(){return this._matrix[5]},set:function(C){this._matrix[5]=C}}),Object.defineProperty(ct.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ct.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ct.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ct.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ct.prototype.join=function(C){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(R).join(C)},ct.prototype.multiply=function(C){var Y=C.sx*this.sx+C.shy*this.shx,ge=C.sx*this.shy+C.shy*this.sy,ve=C.shx*this.sx+C.sy*this.shx,Ee=C.shx*this.shy+C.sy*this.sy,Oe=C.tx*this.sx+C.ty*this.shx+this.tx,Ve=C.tx*this.shy+C.ty*this.sy+this.ty;return new ct(Y,ge,ve,Ee,Oe,Ve)},ct.prototype.decompose=function(){var C=this.sx,Y=this.shy,ge=this.shx,ve=this.sy,Ee=this.tx,Oe=this.ty,Ve=Math.sqrt(C*C+Y*Y),tt=(C/=Ve)*ge+(Y/=Ve)*ve;ge-=C*tt,ve-=Y*tt;var lt=Math.sqrt(ge*ge+ve*ve);return tt/=lt,C*(ve/=lt)<Y*(ge/=lt)&&(C=-C,Y=-Y,tt=-tt,Ve=-Ve),{scale:new ct(Ve,0,0,lt,0,0),translate:new ct(1,0,0,1,Ee,Oe),rotate:new ct(C,Y,-Y,C,0,0),skew:new ct(1,0,tt,1,0,0)}},ct.prototype.toString=function(C){return this.join(" ")},ct.prototype.inversed=function(){var C=this.sx,Y=this.shy,ge=this.shx,ve=this.sy,Ee=this.tx,Oe=this.ty,Ve=1/(C*ve-Y*ge),tt=ve*Ve,lt=-Y*Ve,bt=-ge*Ve,yt=C*Ve;return new ct(tt,lt,bt,yt,-tt*Ee-bt*Oe,-lt*Ee-yt*Oe)},ct.prototype.applyToPoint=function(C){var Y=C.x*this.sx+C.y*this.shx+this.tx,ge=C.x*this.shy+C.y*this.sy+this.ty;return new xo(Y,ge)},ct.prototype.applyToRectangle=function(C){var Y=this.applyToPoint(C),ge=this.applyToPoint(new xo(C.x+C.w,C.y+C.h));return new Au(Y.x,Y.y,ge.x-Y.x,ge.y-Y.y)},ct.prototype.clone=function(){var C=this.sx,Y=this.shy,ge=this.shx,ve=this.sy,Ee=this.tx,Oe=this.ty;return new ct(C,Y,ge,ve,Ee,Oe)},c.Matrix=ct;var Zn=c.matrixMult=function(C,Y){return Y.multiply(C)},Tn=new ct(1,0,0,1,0,0);c.unitMatrix=c.identityMatrix=Tn;var Xr=function(C,Y){if(!qr[C]){var ge=(Y instanceof $i?"Sh":"P")+(Object.keys(St).length+1).toString(10);Y.id=ge,qr[C]=ge,St[ge]=Y,It.publish("addPattern",Y)}};c.ShadingPattern=$i,c.TilingPattern=Oa,c.addShadingPattern=function(C,Y){return D("addShadingPattern()"),Xr(C,Y),this},c.beginTilingPattern=function(C){D("beginTilingPattern()"),xf(C.boundingBox[0],C.boundingBox[1],C.boundingBox[2]-C.boundingBox[0],C.boundingBox[3]-C.boundingBox[1],C.matrix)},c.endTilingPattern=function(C,Y){D("endTilingPattern()"),Y.stream=$[k].join(`
132
+ `),Xr(C,Y),It.publish("endTilingPattern",Y),Jn.pop().restore()};var Lr=c.__private__.newObject=function(){var C=Ot();return Yr(C,!0),C},Ot=c.__private__.newObjectDeferred=function(){return z++,_[z]=function(){return Z},z},Yr=function(C,Y){return Y=typeof Y=="boolean"&&Y,_[C]=Z,Y&&U(C+" 0 obj"),C},Ti=c.__private__.newAdditionalObject=function(){var C={objId:Ot(),content:""};return se.push(C),C},pA=Ot(),_n=Ot(),on=c.__private__.decodeColorString=function(C){var Y=C.split(" ");if(Y.length!==2||Y[1]!=="g"&&Y[1]!=="G")Y.length===5&&(Y[4]==="k"||Y[4]==="K")&&(Y=[(1-Y[0])*(1-Y[3]),(1-Y[1])*(1-Y[3]),(1-Y[2])*(1-Y[3]),"r"]);else{var ge=parseFloat(Y[0]);Y=[ge,ge,ge,"r"]}for(var ve="#",Ee=0;Ee<3;Ee++)ve+=("0"+Math.floor(255*parseFloat(Y[Ee])).toString(16)).slice(-2);return ve},Qr=c.__private__.encodeColorString=function(C){var Y;typeof C=="string"&&(C={ch1:C});var ge=C.ch1,ve=C.ch2,Ee=C.ch3,Oe=C.ch4,Ve=C.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ge=="string"&&ge.charAt(0)!=="#"){var tt=new fB(ge);if(tt.ok)ge=tt.toHex();else if(!/^\d*\.?\d*$/.test(ge))throw new Error('Invalid color "'+ge+'" passed to jsPDF.encodeColorString.')}if(typeof ge=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ge)&&(ge="#"+ge[1]+ge[1]+ge[2]+ge[2]+ge[3]+ge[3]),typeof ge=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ge)){var lt=parseInt(ge.substr(1),16);ge=lt>>16&255,ve=lt>>8&255,Ee=255&lt}if(ve===void 0||Oe===void 0&&ge===ve&&ve===Ee)if(typeof ge=="string")Y=ge+" "+Ve[0];else switch(C.precision){case 2:Y=J(ge/255)+" "+Ve[0];break;case 3:default:Y=M(ge/255)+" "+Ve[0]}else if(Oe===void 0||Rt(Oe)==="object"){if(Oe&&!isNaN(Oe.a)&&Oe.a===0)return Y=["1.","1.","1.",Ve[1]].join(" ");if(typeof ge=="string")Y=[ge,ve,Ee,Ve[1]].join(" ");else switch(C.precision){case 2:Y=[J(ge/255),J(ve/255),J(Ee/255),Ve[1]].join(" ");break;default:case 3:Y=[M(ge/255),M(ve/255),M(Ee/255),Ve[1]].join(" ")}}else if(typeof ge=="string")Y=[ge,ve,Ee,Oe,Ve[2]].join(" ");else switch(C.precision){case 2:Y=[J(ge),J(ve),J(Ee),J(Oe),Ve[2]].join(" ");break;case 3:default:Y=[M(ge),M(ve),M(Ee),M(Oe),Ve[2]].join(" ")}return Y},eA=c.__private__.getFilters=function(){return a},Ln=c.__private__.putStream=function(C){var Y=(C=C||{}).data||"",ge=C.filters||eA(),ve=C.alreadyAppliedFilters||[],Ee=C.addLength1||!1,Oe=Y.length,Ve=C.objectId,tt=function(En){return En};if(u!==null&&Ve===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(tt=Cn.encryptor(Ve,0));var lt={};ge===!0&&(ge=["FlateEncode"]);var bt=C.additionalKeyValues||[],yt=(lt=ht.API.processDataByFilters!==void 0?ht.API.processDataByFilters(Y,ge):{data:Y,reverseChain:[]}).reverseChain+(Array.isArray(ve)?ve.join(" "):ve.toString());if(lt.data.length!==0&&(bt.push({key:"Length",value:lt.data.length}),Ee===!0&&bt.push({key:"Length1",value:Oe})),yt.length!=0)if(yt.split("/").length-1==1)bt.push({key:"Filter",value:yt});else{bt.push({key:"Filter",value:"["+yt+"]"});for(var Qt=0;Qt<bt.length;Qt+=1)if(bt[Qt].key==="DecodeParms"){for(var dr=[],br=0;br<lt.reverseChain.split("/").length-1;br+=1)dr.push("null");dr.push(bt[Qt].value),bt[Qt].value="["+dr.join(" ")+"]"}}U("<<");for(var Mr=0;Mr<bt.length;Mr++)U("/"+bt[Mr].key+" "+bt[Mr].value);U(">>"),lt.data.length!==0&&(U("stream"),U(tt(lt.data)),U("endstream"))},tA=c.__private__.putPage=function(C){var Y=C.number,ge=C.data,ve=C.objId,Ee=C.contentsObjId;Yr(ve,!0),U("<</Type /Page"),U("/Parent "+C.rootDictionaryObjId+" 0 R"),U("/Resources "+C.resourceDictionaryObjId+" 0 R"),U("/MediaBox ["+parseFloat(R(C.mediaBox.bottomLeftX))+" "+parseFloat(R(C.mediaBox.bottomLeftY))+" "+R(C.mediaBox.topRightX)+" "+R(C.mediaBox.topRightY)+"]"),C.cropBox!==null&&U("/CropBox ["+R(C.cropBox.bottomLeftX)+" "+R(C.cropBox.bottomLeftY)+" "+R(C.cropBox.topRightX)+" "+R(C.cropBox.topRightY)+"]"),C.bleedBox!==null&&U("/BleedBox ["+R(C.bleedBox.bottomLeftX)+" "+R(C.bleedBox.bottomLeftY)+" "+R(C.bleedBox.topRightX)+" "+R(C.bleedBox.topRightY)+"]"),C.trimBox!==null&&U("/TrimBox ["+R(C.trimBox.bottomLeftX)+" "+R(C.trimBox.bottomLeftY)+" "+R(C.trimBox.topRightX)+" "+R(C.trimBox.topRightY)+"]"),C.artBox!==null&&U("/ArtBox ["+R(C.artBox.bottomLeftX)+" "+R(C.artBox.bottomLeftY)+" "+R(C.artBox.topRightX)+" "+R(C.artBox.topRightY)+"]"),typeof C.userUnit=="number"&&C.userUnit!==1&&U("/UserUnit "+C.userUnit),It.publish("putPage",{objId:ve,pageContext:it[Y],pageNumber:Y,page:ge}),U("/Contents "+Ee+" 0 R"),U(">>"),U("endobj");var Oe=ge.join(`
133
+ `);return B===w.ADVANCED&&(Oe+=`
134
+ Q`),Yr(Ee,!0),Ln({data:Oe,filters:eA(),objectId:Ee}),U("endobj"),ve},Ai=c.__private__.putPages=function(){var C,Y,ge=[];for(C=1;C<=Gt;C++)it[C].objId=Ot(),it[C].contentsObjId=Ot();for(C=1;C<=Gt;C++)ge.push(tA({number:C,data:$[C],objId:it[C].objId,contentsObjId:it[C].contentsObjId,mediaBox:it[C].mediaBox,cropBox:it[C].cropBox,bleedBox:it[C].bleedBox,trimBox:it[C].trimBox,artBox:it[C].artBox,userUnit:it[C].userUnit,rootDictionaryObjId:pA,resourceDictionaryObjId:_n}));Yr(pA,!0),U("<</Type /Pages");var ve="/Kids [";for(Y=0;Y<Gt;Y++)ve+=ge[Y]+" 0 R ";U(ve+"]"),U("/Count "+Gt),U(">>"),U("endobj"),It.publish("postPutPages")},ha=function(C){It.publish("putFont",{font:C,out:U,newObject:Lr,putStream:Ln}),C.isAlreadyPutted!==!0&&(C.objectNumber=Lr(),U("<<"),U("/Type /Font"),U("/BaseFont /"+Rs(C.postScriptName)),U("/Subtype /Type1"),typeof C.encoding=="string"&&U("/Encoding /"+C.encoding),U("/FirstChar 32"),U("/LastChar 255"),U(">>"),U("endobj"))},at=function(){for(var C in Et)Et.hasOwnProperty(C)&&(h===!1||h===!0&&d.hasOwnProperty(C))&&ha(Et[C])},we=function(C){C.objectNumber=Lr();var Y=[];Y.push({key:"Type",value:"/XObject"}),Y.push({key:"Subtype",value:"/Form"}),Y.push({key:"BBox",value:"["+[R(C.x),R(C.y),R(C.x+C.width),R(C.y+C.height)].join(" ")+"]"}),Y.push({key:"Matrix",value:"["+C.matrix.toString()+"]"});var ge=C.pages[1].join(`
135
+ `);Ln({data:ge,additionalKeyValues:Y,objectId:C.objectNumber}),U("endobj")},Ge=function(){for(var C in Hr)Hr.hasOwnProperty(C)&&we(Hr[C])},qe=function(C,Y){var ge,ve=[],Ee=1/(Y-1);for(ge=0;ge<1;ge+=Ee)ve.push(ge);if(ve.push(1),C[0].offset!=0){var Oe={offset:0,color:C[0].color};C.unshift(Oe)}if(C[C.length-1].offset!=1){var Ve={offset:1,color:C[C.length-1].color};C.push(Ve)}for(var tt="",lt=0,bt=0;bt<ve.length;bt++){for(ge=ve[bt];ge>C[lt+1].offset;)lt++;var yt=C[lt].offset,Qt=(ge-yt)/(C[lt+1].offset-yt),dr=C[lt].color,br=C[lt+1].color;tt+=W(Math.round((1-Qt)*dr[0]+Qt*br[0]).toString(16))+W(Math.round((1-Qt)*dr[1]+Qt*br[1]).toString(16))+W(Math.round((1-Qt)*dr[2]+Qt*br[2]).toString(16))}return tt.trim()},Lt=function(C,Y){Y||(Y=21);var ge=Lr(),ve=qe(C.colors,Y),Ee=[];Ee.push({key:"FunctionType",value:"0"}),Ee.push({key:"Domain",value:"[0.0 1.0]"}),Ee.push({key:"Size",value:"["+Y+"]"}),Ee.push({key:"BitsPerSample",value:"8"}),Ee.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ee.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ln({data:ve,additionalKeyValues:Ee,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ge}),U("endobj"),C.objectNumber=Lr(),U("<< /ShadingType "+C.type),U("/ColorSpace /DeviceRGB");var Oe="/Coords ["+R(parseFloat(C.coords[0]))+" "+R(parseFloat(C.coords[1]))+" ";C.type===2?Oe+=R(parseFloat(C.coords[2]))+" "+R(parseFloat(C.coords[3])):Oe+=R(parseFloat(C.coords[2]))+" "+R(parseFloat(C.coords[3]))+" "+R(parseFloat(C.coords[4]))+" "+R(parseFloat(C.coords[5])),U(Oe+="]"),C.matrix&&U("/Matrix ["+C.matrix.toString()+"]"),U("/Function "+ge+" 0 R"),U("/Extend [true true]"),U(">>"),U("endobj")},Jr=function(C,Y){var ge=Ot(),ve=Lr();Y.push({resourcesOid:ge,objectOid:ve}),C.objectNumber=ve;var Ee=[];Ee.push({key:"Type",value:"/Pattern"}),Ee.push({key:"PatternType",value:"1"}),Ee.push({key:"PaintType",value:"1"}),Ee.push({key:"TilingType",value:"1"}),Ee.push({key:"BBox",value:"["+C.boundingBox.map(R).join(" ")+"]"}),Ee.push({key:"XStep",value:R(C.xStep)}),Ee.push({key:"YStep",value:R(C.yStep)}),Ee.push({key:"Resources",value:ge+" 0 R"}),C.matrix&&Ee.push({key:"Matrix",value:"["+C.matrix.toString()+"]"}),Ln({data:C.stream,additionalKeyValues:Ee,objectId:C.objectNumber}),U("endobj")},fr=function(C){var Y;for(Y in St)St.hasOwnProperty(Y)&&(St[Y]instanceof $i?Lt(St[Y]):St[Y]instanceof Oa&&Jr(St[Y],C))},Br=function(C){for(var Y in C.objectNumber=Lr(),U("<<"),C)switch(Y){case"opacity":U("/ca "+J(C[Y]));break;case"stroke-opacity":U("/CA "+J(C[Y]))}U(">>"),U("endobj")},kA=function(){var C;for(C in Ht)Ht.hasOwnProperty(C)&&Br(Ht[C])},sr=function(){for(var C in U("/XObject <<"),Hr)Hr.hasOwnProperty(C)&&Hr[C].objectNumber>=0&&U("/"+C+" "+Hr[C].objectNumber+" 0 R");It.publish("putXobjectDict"),U(">>")},as=function(){Cn.oid=Lr(),U("<<"),U("/Filter /Standard"),U("/V "+Cn.v),U("/R "+Cn.r),U("/U <"+Cn.toHexString(Cn.U)+">"),U("/O <"+Cn.toHexString(Cn.O)+">"),U("/P "+Cn.P),U(">>"),U("endobj")},ss=function(){for(var C in U("/Font <<"),Et)Et.hasOwnProperty(C)&&(h===!1||h===!0&&d.hasOwnProperty(C))&&U("/"+C+" "+Et[C].objectNumber+" 0 R");U(">>")},sf=function(){if(Object.keys(St).length>0){for(var C in U("/Shading <<"),St)St.hasOwnProperty(C)&&St[C]instanceof $i&&St[C].objectNumber>=0&&U("/"+C+" "+St[C].objectNumber+" 0 R");It.publish("putShadingPatternDict"),U(">>")}},go=function(C){if(Object.keys(St).length>0){for(var Y in U("/Pattern <<"),St)St.hasOwnProperty(Y)&&St[Y]instanceof c.TilingPattern&&St[Y].objectNumber>=0&&St[Y].objectNumber<C&&U("/"+Y+" "+St[Y].objectNumber+" 0 R");It.publish("putTilingPatternDict"),U(">>")}},Sv=function(){if(Object.keys(Ht).length>0){var C;for(C in U("/ExtGState <<"),Ht)Ht.hasOwnProperty(C)&&Ht[C].objectNumber>=0&&U("/"+C+" "+Ht[C].objectNumber+" 0 R");It.publish("putGStateDict"),U(">>")}},Nr=function(C){Yr(C.resourcesOid,!0),U("<<"),U("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ss(),sf(),go(C.objectOid),Sv(),sr(),U(">>"),U("endobj")},of=function(){var C=[];at(),kA(),Ge(),fr(C),It.publish("putResources"),C.forEach(Nr),Nr({resourcesOid:_n,objectOid:Number.MAX_SAFE_INTEGER}),It.publish("postPutResources")},lf=function(){It.publish("putAdditionalObjects");for(var C=0;C<se.length;C++){var Y=se[C];Yr(Y.objId,!0),U(Y.content),U("endobj")}It.publish("postPutAdditionalObjects")},uf=function(C){gt[C.fontName]=gt[C.fontName]||{},gt[C.fontName][C.fontStyle]=C.id},ql=function(C,Y,ge,ve,Ee){var Oe={id:"F"+(Object.keys(Et).length+1).toString(10),postScriptName:C,fontName:Y,fontStyle:ge,encoding:ve,isStandardFont:Ee||!1,metadata:{}};return It.publish("addFont",{font:Oe,instance:this}),Et[Oe.id]=Oe,uf(Oe),Oe.id},Fv=function(C){for(var Y=0,ge=N.length;Y<ge;Y++){var ve=ql.call(this,C[Y][0],C[Y][1],C[Y][2],N[Y][3],!0);h===!1&&(d[ve]=!0);var Ee=C[Y][0].split("-");uf({id:ve,fontName:Ee[0],fontStyle:Ee[1]||""})}It.publish("addFonts",{fonts:Et,dictionary:gt})},HA=function(C){return C.foo=function(){try{return C.apply(this,arguments)}catch(ve){var Y=ve.stack||"";~Y.indexOf(" at ")&&(Y=Y.split(" at ")[1]);var ge="Error in function "+Y.split(`
136
+ `)[0].split("<")[0]+": "+ve.message;if(!pt.console)throw new Error(ge);pt.console.error(ge,ve),pt.alert&&alert(ge)}},C.foo.bar=C,C.foo},mo=function(C,Y){var ge,ve,Ee,Oe,Ve,tt,lt,bt,yt;if(Ee=(Y=Y||{}).sourceEncoding||"Unicode",Ve=Y.outputEncoding,(Y.autoencode||Ve)&&Et[ut].metadata&&Et[ut].metadata[Ee]&&Et[ut].metadata[Ee].encoding&&(Oe=Et[ut].metadata[Ee].encoding,!Ve&&Et[ut].encoding&&(Ve=Et[ut].encoding),!Ve&&Oe.codePages&&(Ve=Oe.codePages[0]),typeof Ve=="string"&&(Ve=Oe[Ve]),Ve)){for(lt=!1,tt=[],ge=0,ve=C.length;ge<ve;ge++)(bt=Ve[C.charCodeAt(ge)])?tt.push(String.fromCharCode(bt)):tt.push(C[ge]),tt[ge].charCodeAt(0)>>8&&(lt=!0);C=tt.join("")}for(ge=C.length;lt===void 0&&ge!==0;)C.charCodeAt(ge-1)>>8&&(lt=!0),ge--;if(!lt)return C;for(tt=Y.noBOM?[]:[254,255],ge=0,ve=C.length;ge<ve;ge++){if((yt=(bt=C.charCodeAt(ge))>>8)>>8)throw new Error("Character at position "+ge+" of string '"+C+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");tt.push(yt),tt.push(bt-(yt<<8))}return String.fromCharCode.apply(void 0,tt)},Kn=c.__private__.pdfEscape=c.pdfEscape=function(C,Y){return mo(C,Y).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Xl=c.__private__.beginPage=function(C){$[++Gt]=[],it[Gt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(C[0]),topRightY:Number(C[1])}},hf(Gt),de($[k])},cf=function(C,Y){var ge,ve,Ee;switch(t=Y||t,typeof C=="string"&&(ge=g(C.toLowerCase()),Array.isArray(ge)&&(ve=ge[0],Ee=ge[1])),Array.isArray(C)&&(ve=C[0]*We,Ee=C[1]*We),isNaN(ve)&&(ve=A[0],Ee=A[1]),(ve>14400||Ee>14400)&&(Zt.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ve=Math.min(14400,ve),Ee=Math.min(14400,Ee)),A=[ve,Ee],t.substr(0,1)){case"l":Ee>ve&&(A=[Ee,ve]);break;case"p":ve>Ee&&(A=[Ee,ve])}Xl(A),vf(eu),U(MA),ru!==0&&U(ru+" J"),nu!==0&&U(nu+" j"),It.publish("addPage",{pageNumber:Gt})},Uv=function(C){C>0&&C<=Gt&&($.splice(C,1),it.splice(C,1),Gt--,k>Gt&&(k=Gt),this.setPage(k))},hf=function(C){C>0&&C<=Gt&&(k=C)},Iv=c.__private__.getNumberOfPages=c.getNumberOfPages=function(){return $.length-1},ff=function(C,Y,ge){var ve,Ee=void 0;return ge=ge||{},C=C!==void 0?C:Et[ut].fontName,Y=Y!==void 0?Y:Et[ut].fontStyle,ve=C.toLowerCase(),gt[ve]!==void 0&&gt[ve][Y]!==void 0?Ee=gt[ve][Y]:gt[C]!==void 0&&gt[C][Y]!==void 0?Ee=gt[C][Y]:ge.disableWarning===!1&&Zt.warn("Unable to look up font label for font '"+C+"', '"+Y+"'. Refer to getFontList() for available fonts."),Ee||ge.noFallback||(Ee=gt.times[Y])==null&&(Ee=gt.times.normal),Ee},Tv=c.__private__.putInfo=function(){var C=Lr(),Y=function(ve){return ve};for(var ge in u!==null&&(Y=Cn.encryptor(C,0)),U("<<"),U("/Producer ("+Kn(Y("jsPDF "+ht.version))+")"),et)et.hasOwnProperty(ge)&&et[ge]&&U("/"+ge.substr(0,1).toUpperCase()+ge.substr(1)+" ("+Kn(Y(et[ge]))+")");U("/CreationDate ("+Kn(Y(ne))+")"),U(">>"),U("endobj")},Yl=c.__private__.putCatalog=function(C){var Y=(C=C||{}).rootDictionaryObjId||pA;switch(Lr(),U("<<"),U("/Type /Catalog"),U("/Pages "+Y+" 0 R"),fe||(fe="fullwidth"),fe){case"fullwidth":U("/OpenAction [3 0 R /FitH null]");break;case"fullheight":U("/OpenAction [3 0 R /FitV null]");break;case"fullpage":U("/OpenAction [3 0 R /Fit]");break;case"original":U("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ge=""+fe;ge.substr(ge.length-1)==="%"&&(fe=parseInt(fe)/100),typeof fe=="number"&&U("/OpenAction [3 0 R /XYZ null null "+J(fe)+"]")}switch(Pe||(Pe="continuous"),Pe){case"continuous":U("/PageLayout /OneColumn");break;case"single":U("/PageLayout /SinglePage");break;case"two":case"twoleft":U("/PageLayout /TwoColumnLeft");break;case"tworight":U("/PageLayout /TwoColumnRight")}Fe&&U("/PageMode /"+Fe),It.publish("putCatalog"),U(">>"),U("endobj")},_v=c.__private__.putTrailer=function(){U("trailer"),U("<<"),U("/Size "+(z+1)),U("/Root "+z+" 0 R"),U("/Info "+(z-1)+" 0 R"),u!==null&&U("/Encrypt "+Cn.oid+" 0 R"),U("/ID [ <"+ee+"> <"+ee+"> ]"),U(">>")},Lv=c.__private__.putHeader=function(){U("%PDF-"+p),U("%ºß¬à")},Qv=c.__private__.putXRef=function(){var C="0000000000";U("xref"),U("0 "+(z+1)),U("0000000000 65535 f ");for(var Y=1;Y<=z;Y++)typeof _[Y]=="function"?U((C+_[Y]()).slice(-10)+" 00000 n "):_[Y]!==void 0?U((C+_[Y]).slice(-10)+" 00000 n "):U("0000000000 00000 n ")},_i=c.__private__.buildDocument=function(){P(),de(L),It.publish("buildDocument"),Lv(),Ai(),lf(),of(),u!==null&&as(),Tv(),Yl();var C=Z;return Qv(),_v(),U("startxref"),U(""+C),U("%%EOF"),de($[k]),L.join(`
137
+ `)},vo=c.__private__.getBlob=function(C){return new Blob([x(C)],{type:"application/pdf"})},wo=c.output=c.__private__.output=HA(function(C,Y){switch(typeof(Y=Y||{})=="string"?Y={filename:Y}:Y.filename=Y.filename||"generated.pdf",C){case void 0:return _i();case"save":c.save(Y.filename);break;case"arraybuffer":return x(_i());case"blob":return vo(_i());case"bloburi":case"bloburl":if(pt.URL!==void 0&&typeof pt.URL.createObjectURL=="function")return pt.URL&&pt.URL.createObjectURL(vo(_i()))||void 0;Zt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ge="",ve=_i();try{ge=Rp(ve)}catch{ge=Rp(unescape(encodeURIComponent(ve)))}return"data:application/pdf;filename="+Y.filename+";base64,"+ge;case"pdfobjectnewwindow":if(Object.prototype.toString.call(pt)==="[object Window]"){var Ee="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Oe=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Y.pdfObjectUrl&&(Ee=Y.pdfObjectUrl,Oe="");var Ve='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Ee+'"'+Oe+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Y)+");<\/script></body></html>",tt=pt.open();return tt!==null&&tt.document.write(Ve),tt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(pt)==="[object Window]"){var lt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Y.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Y.filename+'" width="500px" height="400px" /></body></html>',bt=pt.open();if(bt!==null){bt.document.write(lt);var yt=this;bt.document.documentElement.querySelector("#pdfViewer").onload=function(){bt.document.title=Y.filename,bt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(yt.output("bloburl"))}}return bt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(pt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Qt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Y)+'"></iframe></body></html>',dr=pt.open();if(dr!==null&&(dr.document.write(Qt),dr.document.title=Y.filename),dr||typeof safari>"u")return dr;break;case"datauri":case"dataurl":return pt.document.location.href=this.output("datauristring",Y);default:return null}}),df=function(C){return Array.isArray(Ii)===!0&&Ii.indexOf(C)>-1};switch(n){case"pt":We=1;break;case"mm":We=72/25.4;break;case"cm":We=72/2.54;break;case"in":We=72;break;case"px":We=df("px_scaling")==1?.75:96/72;break;case"pc":case"em":We=12;break;case"ex":We=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);We=n}var Cn=null;ie(),oe();var Nv=function(C){return u!==null?Cn.encryptor(C,0):function(Y){return Y}},pf=c.__private__.getPageInfo=c.getPageInfo=function(C){if(isNaN(C)||C%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:it[C].objId,pageNumber:C,pageContext:it[C]}},vt=c.__private__.getPageInfoByObjId=function(C){if(isNaN(C)||C%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Y in it)if(it[Y].objId===C)break;return pf(Y)},Ov=c.__private__.getCurrentPageInfo=c.getCurrentPageInfo=function(){return{objId:it[k].objId,pageNumber:k,pageContext:it[k]}};c.addPage=function(){return cf.apply(this,arguments),this},c.setPage=function(){return hf.apply(this,arguments),de.call(this,$[k]),this},c.insertPage=function(C){return this.addPage(),this.movePage(k,C),this},c.movePage=function(C,Y){var ge,ve;if(C>Y){ge=$[C],ve=it[C];for(var Ee=C;Ee>Y;Ee--)$[Ee]=$[Ee-1],it[Ee]=it[Ee-1];$[Y]=ge,it[Y]=ve,this.setPage(Y)}else if(C<Y){ge=$[C],ve=it[C];for(var Oe=C;Oe<Y;Oe++)$[Oe]=$[Oe+1],it[Oe]=it[Oe+1];$[Y]=ge,it[Y]=ve,this.setPage(Y)}return this},c.deletePage=function(){return Uv.apply(this,arguments),this},c.__private__.text=c.text=function(C,Y,ge,ve,Ee){var Oe,Ve,tt,lt,bt,yt,Qt,dr,br,Mr=(ve=ve||{}).scope||this;if(typeof C=="number"&&typeof Y=="number"&&(typeof ge=="string"||Array.isArray(ge))){var En=ge;ge=Y,Y=C,C=En}if(arguments[3]instanceof ct?(D("The transform parameter of text() with a Matrix value"),br=Ee):(tt=arguments[4],lt=arguments[5],Rt(Qt=arguments[3])==="object"&&Qt!==null||(typeof tt=="string"&&(lt=tt,tt=null),typeof Qt=="string"&&(lt=Qt,Qt=null),typeof Qt=="number"&&(tt=Qt,Qt=null),ve={flags:Qt,angle:tt,align:lt})),isNaN(Y)||isNaN(ge)||C==null)throw new Error("Invalid arguments passed to jsPDF.text");if(C.length===0)return Mr;var Zr="",KA=!1,rA=typeof ve.lineHeightFactor=="number"?ve.lineHeightFactor:ls,si=Mr.internal.scaleFactor;function Cf(Ar){return Ar=Ar.split(" ").join(Array(ve.TabLen||9).join(" ")),Kn(Ar,Qt)}function ou(Ar){for(var ir,Pr=Ar.concat(),zr=[],Pi=Pr.length;Pi--;)typeof(ir=Pr.shift())=="string"?zr.push(ir):Array.isArray(Ar)&&(ir.length===1||ir[1]===void 0&&ir[2]===void 0)?zr.push(ir[0]):zr.push([ir[0],ir[1],ir[2]]);return zr}function lu(Ar,ir){var Pr;if(typeof Ar=="string")Pr=ir(Ar)[0];else if(Array.isArray(Ar)){for(var zr,Pi,mu=Ar.concat(),No=[],If=mu.length;If--;)typeof(zr=mu.shift())=="string"?No.push(ir(zr)[0]):Array.isArray(zr)&&typeof zr[0]=="string"&&(Pi=ir(zr[0],zr[1],zr[2]),No.push([Pi[0],Pi[1],Pi[2]]));Pr=No}return Pr}var Eo=!1,uu=!0;if(typeof C=="string")Eo=!0;else if(Array.isArray(C)){var cu=C.concat();Ve=[];for(var So,ln=cu.length;ln--;)(typeof(So=cu.shift())!="string"||Array.isArray(So)&&typeof So[0]!="string")&&(uu=!1);Eo=uu}if(Eo===!1)throw new Error('Type of text must be string or Array. "'+C+'" is not recognized.');typeof C=="string"&&(C=C.match(/[\r?\n]/)?C.split(/\r\n|\r|\n/g):[C]);var Fo=ae/Mr.internal.scaleFactor,Uo=Fo*(rA-1);switch(ve.baseline){case"bottom":ge-=Uo;break;case"top":ge+=Fo-Uo;break;case"hanging":ge+=Fo-2*Uo;break;case"middle":ge+=Fo/2-Uo}if((yt=ve.maxWidth||0)>0&&(typeof C=="string"?C=Mr.splitTextToSize(C,yt):Object.prototype.toString.call(C)==="[object Array]"&&(C=C.reduce(function(Ar,ir){return Ar.concat(Mr.splitTextToSize(ir,yt))},[]))),Oe={text:C,x:Y,y:ge,options:ve,mutex:{pdfEscape:Kn,activeFontKey:ut,fonts:Et,activeFontSize:ae}},It.publish("preProcessText",Oe),C=Oe.text,tt=(ve=Oe.options).angle,!(br instanceof ct)&&tt&&typeof tt=="number"){tt*=Math.PI/180,ve.rotationDirection===0&&(tt=-tt),B===w.ADVANCED&&(tt=-tt);var Io=Math.cos(tt),hu=Math.sin(tt);br=new ct(Io,hu,-hu,Io,0,0)}else tt&&tt instanceof ct&&(br=tt);B!==w.ADVANCED||br||(br=Tn),(bt=ve.charSpace||bo)!==void 0&&(Zr+=R(S(bt))+` Tc
138
+ `,this.setCharSpace(this.getCharSpace()||0)),(dr=ve.horizontalScale)!==void 0&&(Zr+=R(100*dr)+` Tz
139
+ `),ve.lang;var jn=-1,Gv=ve.renderingMode!==void 0?ve.renderingMode:ve.stroke,fu=Mr.internal.getCurrentPageInfo().pageContext;switch(Gv){case 0:case!1:case"fill":jn=0;break;case 1:case!0:case"stroke":jn=1;break;case 2:case"fillThenStroke":jn=2;break;case 3:case"invisible":jn=3;break;case 4:case"fillAndAddForClipping":jn=4;break;case 5:case"strokeAndAddPathForClipping":jn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":jn=6;break;case 7:case"addToPathForClipping":jn=7}var Ef=fu.usedRenderingMode!==void 0?fu.usedRenderingMode:-1;jn!==-1?Zr+=jn+` Tr
140
+ `:Ef!==-1&&(Zr+=`0 Tr
141
+ `),jn!==-1&&(fu.usedRenderingMode=jn),lt=ve.align||"left";var gA,To=ae*rA,Sf=Mr.internal.pageSize.getWidth(),Ff=Et[ut];bt=ve.charSpace||bo,yt=ve.maxWidth||0,Qt=Object.assign({autoencode:!0,noBOM:!0},ve.flags);var ga=[],hs=function(Ar){return Mr.getStringUnitWidth(Ar,{font:Ff,charSpace:bt,fontSize:ae,doKerning:!1})*ae/si};if(Object.prototype.toString.call(C)==="[object Array]"){var Vn;Ve=ou(C),lt!=="left"&&(gA=Ve.map(hs));var Qn,ma=0;if(lt==="right"){Y-=gA[0],C=[],ln=Ve.length;for(var Qi=0;Qi<ln;Qi++)Qi===0?(Qn=ai(Y),Vn=Li(ge)):(Qn=S(ma-gA[Qi]),Vn=-To),C.push([Ve[Qi],Qn,Vn]),ma=gA[Qi]}else if(lt==="center"){Y-=gA[0]/2,C=[],ln=Ve.length;for(var Ni=0;Ni<ln;Ni++)Ni===0?(Qn=ai(Y),Vn=Li(ge)):(Qn=S((ma-gA[Ni])/2),Vn=-To),C.push([Ve[Ni],Qn,Vn]),ma=gA[Ni]}else if(lt==="left"){C=[],ln=Ve.length;for(var _o=0;_o<ln;_o++)C.push(Ve[_o])}else if(lt==="justify"&&Ff.encoding==="Identity-H"){C=[],ln=Ve.length,yt=yt!==0?yt:Sf;for(var Oi=0,Or=0;Or<ln;Or++)if(Vn=Or===0?Li(ge):-To,Qn=Or===0?ai(Y):Oi,Or<ln-1){var du=S((yt-gA[Or])/(Ve[Or].split(" ").length-1)),Nn=Ve[Or].split(" ");C.push([Nn[0]+" ",Qn,Vn]),Oi=0;for(var mA=1;mA<Nn.length;mA++){var Lo=(hs(Nn[mA-1]+" "+Nn[mA])-hs(Nn[mA]))*si+du;mA==Nn.length-1?C.push([Nn[mA],Lo,0]):C.push([Nn[mA]+" ",Lo,0]),Oi-=Lo}}else C.push([Ve[Or],Qn,Vn]);C.push(["",Oi,0])}else{if(lt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(C=[],ln=Ve.length,yt=yt!==0?yt:Sf,Or=0;Or<ln;Or++)Vn=Or===0?Li(ge):-To,Qn=Or===0?ai(Y):0,Or<ln-1?ga.push(R(S((yt-gA[Or])/(Ve[Or].split(" ").length-1)))):ga.push(0),C.push([Ve[Or],Qn,Vn])}}var Uf=typeof ve.R2L=="boolean"?ve.R2L:be;Uf===!0&&(C=lu(C,function(Ar,ir,Pr){return[Ar.split("").reverse().join(""),ir,Pr]})),Oe={text:C,x:Y,y:ge,options:ve,mutex:{pdfEscape:Kn,activeFontKey:ut,fonts:Et,activeFontSize:ae}},It.publish("postProcessText",Oe),C=Oe.text,KA=Oe.mutex.isHex||!1;var pu=Et[ut].encoding;pu!=="WinAnsiEncoding"&&pu!=="StandardEncoding"||(C=lu(C,function(Ar,ir,Pr){return[Cf(Ar),ir,Pr]})),Ve=ou(C),C=[];for(var fs,ds,va,ps=0,Qo=1,gs=Array.isArray(Ve[0])?Qo:ps,wa="",gu=function(Ar,ir,Pr){var zr="";return Pr instanceof ct?(Pr=typeof ve.angle=="number"?Zn(Pr,new ct(1,0,0,1,Ar,ir)):Zn(new ct(1,0,0,1,Ar,ir),Pr),B===w.ADVANCED&&(Pr=Zn(new ct(1,0,0,-1,0,0),Pr)),zr=Pr.join(" ")+` Tm
142
+ `):zr=R(Ar)+" "+R(ir)+` Td
143
+ `,zr},vA=0;vA<Ve.length;vA++){switch(wa="",gs){case Qo:va=(KA?"<":"(")+Ve[vA][0]+(KA?">":")"),fs=parseFloat(Ve[vA][1]),ds=parseFloat(Ve[vA][2]);break;case ps:va=(KA?"<":"(")+Ve[vA]+(KA?">":")"),fs=ai(Y),ds=Li(ge)}ga!==void 0&&ga[vA]!==void 0&&(wa=ga[vA]+` Tw
144
+ `),vA===0?C.push(wa+gu(fs,ds,br)+va):gs===ps?C.push(wa+va):gs===Qo&&C.push(wa+gu(fs,ds,br)+va)}C=gs===ps?C.join(` Tj
145
+ T* `):C.join(` Tj
146
+ `),C+=` Tj
147
+ `;var wA=`BT
148
+ /`;return wA+=ut+" "+ae+` Tf
149
+ `,wA+=R(ae*rA)+` TL
150
+ `,wA+=us+`
151
+ `,wA+=Zr,wA+=C,U(wA+="ET"),d[ut]=!0,Mr};var Pv=c.__private__.clip=c.clip=function(C){return U(C==="evenodd"?"W*":"W"),this};c.clipEvenOdd=function(){return Pv("evenodd")},c.__private__.discardPath=c.discardPath=function(){return U("n"),this};var ii=c.__private__.isValidStyle=function(C){var Y=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(C)!==-1&&(Y=!0),Y};c.__private__.setDefaultPathOperation=c.setDefaultPathOperation=function(C){return ii(C)&&(l=C),this};var gf=c.__private__.getStyle=c.getStyle=function(C){var Y=l;switch(C){case"D":case"S":Y="S";break;case"F":Y="f";break;case"FD":case"DF":Y="B";break;case"f":case"f*":case"B":case"B*":Y=C}return Y},mf=c.close=function(){return U("h"),this};c.stroke=function(){return U("S"),this},c.fill=function(C){return yo("f",C),this},c.fillEvenOdd=function(C){return yo("f*",C),this},c.fillStroke=function(C){return yo("B",C),this},c.fillStrokeEvenOdd=function(C){return yo("B*",C),this};var yo=function(C,Y){Rt(Y)==="object"?Dv(Y,C):U(C)},Jl=function(C){C===null||B===w.ADVANCED&&C===void 0||(C=gf(C),U(C))};function Rv(C,Y,ge,ve,Ee){var Oe=new Oa(Y||this.boundingBox,ge||this.xStep,ve||this.yStep,this.gState,Ee||this.matrix);Oe.stream=this.stream;var Ve=C+"$$"+this.cloneIndex+++"$$";return Xr(Ve,Oe),Oe}var Dv=function(C,Y){var ge=qr[C.key],ve=St[ge];if(ve instanceof $i)U("q"),U(kv(Y)),ve.gState&&c.setGState(ve.gState),U(C.matrix.toString()+" cm"),U("/"+ge+" sh"),U("Q");else if(ve instanceof Oa){var Ee=new ct(1,0,0,-1,0,pa());C.matrix&&(Ee=Ee.multiply(C.matrix||Tn),ge=Rv.call(ve,C.key,C.boundingBox,C.xStep,C.yStep,Ee).id),U("q"),U("/Pattern cs"),U("/"+ge+" scn"),ve.gState&&c.setGState(ve.gState),U(Y),U("Q")}},kv=function(C){switch(C){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Zl=c.moveTo=function(C,Y){return U(R(S(C))+" "+R(F(Y))+" m"),this},os=c.lineTo=function(C,Y){return U(R(S(C))+" "+R(F(Y))+" l"),this},fa=c.curveTo=function(C,Y,ge,ve,Ee,Oe){return U([R(S(C)),R(F(Y)),R(S(ge)),R(F(ve)),R(S(Ee)),R(F(Oe)),"c"].join(" ")),this};c.__private__.line=c.line=function(C,Y,ge,ve,Ee){if(isNaN(C)||isNaN(Y)||isNaN(ge)||isNaN(ve)||!ii(Ee))throw new Error("Invalid arguments passed to jsPDF.line");return B===w.COMPAT?this.lines([[ge-C,ve-Y]],C,Y,[1,1],Ee||"S"):this.lines([[ge-C,ve-Y]],C,Y,[1,1]).stroke()},c.__private__.lines=c.lines=function(C,Y,ge,ve,Ee,Oe){var Ve,tt,lt,bt,yt,Qt,dr,br,Mr,En,Zr,KA;if(typeof C=="number"&&(KA=ge,ge=Y,Y=C,C=KA),ve=ve||[1,1],Oe=Oe||!1,isNaN(Y)||isNaN(ge)||!Array.isArray(C)||!Array.isArray(ve)||!ii(Ee)||typeof Oe!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Zl(Y,ge),Ve=ve[0],tt=ve[1],bt=C.length,En=Y,Zr=ge,lt=0;lt<bt;lt++)(yt=C[lt]).length===2?(En=yt[0]*Ve+En,Zr=yt[1]*tt+Zr,os(En,Zr)):(Qt=yt[0]*Ve+En,dr=yt[1]*tt+Zr,br=yt[2]*Ve+En,Mr=yt[3]*tt+Zr,En=yt[4]*Ve+En,Zr=yt[5]*tt+Zr,fa(Qt,dr,br,Mr,En,Zr));return Oe&&mf(),Jl(Ee),this},c.path=function(C){for(var Y=0;Y<C.length;Y++){var ge=C[Y],ve=ge.c;switch(ge.op){case"m":Zl(ve[0],ve[1]);break;case"l":os(ve[0],ve[1]);break;case"c":fa.apply(this,ve);break;case"h":mf()}}return this},c.__private__.rect=c.rect=function(C,Y,ge,ve,Ee){if(isNaN(C)||isNaN(Y)||isNaN(ge)||isNaN(ve)||!ii(Ee))throw new Error("Invalid arguments passed to jsPDF.rect");return B===w.COMPAT&&(ve=-ve),U([R(S(C)),R(F(Y)),R(S(ge)),R(S(ve)),"re"].join(" ")),Jl(Ee),this},c.__private__.triangle=c.triangle=function(C,Y,ge,ve,Ee,Oe,Ve){if(isNaN(C)||isNaN(Y)||isNaN(ge)||isNaN(ve)||isNaN(Ee)||isNaN(Oe)||!ii(Ve))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ge-C,ve-Y],[Ee-ge,Oe-ve],[C-Ee,Y-Oe]],C,Y,[1,1],Ve,!0),this},c.__private__.roundedRect=c.roundedRect=function(C,Y,ge,ve,Ee,Oe,Ve){if(isNaN(C)||isNaN(Y)||isNaN(ge)||isNaN(ve)||isNaN(Ee)||isNaN(Oe)||!ii(Ve))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var tt=4/3*(Math.SQRT2-1);return Ee=Math.min(Ee,.5*ge),Oe=Math.min(Oe,.5*ve),this.lines([[ge-2*Ee,0],[Ee*tt,0,Ee,Oe-Oe*tt,Ee,Oe],[0,ve-2*Oe],[0,Oe*tt,-Ee*tt,Oe,-Ee,Oe],[2*Ee-ge,0],[-Ee*tt,0,-Ee,-Oe*tt,-Ee,-Oe],[0,2*Oe-ve],[0,-Oe*tt,Ee*tt,-Oe,Ee,-Oe]],C+Ee,Y,[1,1],Ve,!0),this},c.__private__.ellipse=c.ellipse=function(C,Y,ge,ve,Ee){if(isNaN(C)||isNaN(Y)||isNaN(ge)||isNaN(ve)||!ii(Ee))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Oe=4/3*(Math.SQRT2-1)*ge,Ve=4/3*(Math.SQRT2-1)*ve;return Zl(C+ge,Y),fa(C+ge,Y-Ve,C+Oe,Y-ve,C,Y-ve),fa(C-Oe,Y-ve,C-ge,Y-Ve,C-ge,Y),fa(C-ge,Y+Ve,C-Oe,Y+ve,C,Y+ve),fa(C+Oe,Y+ve,C+ge,Y+Ve,C+ge,Y),Jl(Ee),this},c.__private__.circle=c.circle=function(C,Y,ge,ve){if(isNaN(C)||isNaN(Y)||isNaN(ge)||!ii(ve))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(C,Y,ge,ge,ve)},c.setFont=function(C,Y,ge){return ge&&(Y=j(Y,ge)),ut=ff(C,Y,{disableWarning:!1}),this};var Hv=c.__private__.getFont=c.getFont=function(){return Et[ff.apply(c,arguments)]};c.__private__.getFontList=c.getFontList=function(){var C,Y,ge={};for(C in gt)if(gt.hasOwnProperty(C))for(Y in ge[C]=[],gt[C])gt[C].hasOwnProperty(Y)&&ge[C].push(Y);return ge},c.addFont=function(C,Y,ge,ve,Ee){var Oe=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Oe.indexOf(arguments[3])!==-1?Ee=arguments[3]:arguments[3]&&Oe.indexOf(arguments[3])==-1&&(ge=j(ge,ve)),Ee=Ee||"Identity-H",ql.call(this,C,Y,ge,Ee)};var ls,eu=r.lineWidth||.200025,Bo=c.__private__.getLineWidth=c.getLineWidth=function(){return eu},vf=c.__private__.setLineWidth=c.setLineWidth=function(C){return eu=C,U(R(S(C))+" w"),this};c.__private__.setLineDash=ht.API.setLineDash=ht.API.setLineDashPattern=function(C,Y){if(C=C||[],Y=Y||0,isNaN(Y)||!Array.isArray(C))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return C=C.map(function(ge){return R(S(ge))}).join(" "),Y=R(S(Y)),U("["+C+"] "+Y+" d"),this};var wf=c.__private__.getLineHeight=c.getLineHeight=function(){return ae*ls};c.__private__.getLineHeight=c.getLineHeight=function(){return ae*ls};var yf=c.__private__.setLineHeightFactor=c.setLineHeightFactor=function(C){return typeof(C=C||1.15)=="number"&&(ls=C),this},Bf=c.__private__.getLineHeightFactor=c.getLineHeightFactor=function(){return ls};yf(r.lineHeight);var ai=c.__private__.getHorizontalCoordinate=function(C){return S(C)},Li=c.__private__.getVerticalCoordinate=function(C){return B===w.ADVANCED?C:it[k].mediaBox.topRightY-it[k].mediaBox.bottomLeftY-S(C)},Mv=c.__private__.getHorizontalCoordinateString=c.getHorizontalCoordinateString=function(C){return R(ai(C))},da=c.__private__.getVerticalCoordinateString=c.getVerticalCoordinateString=function(C){return R(Li(C))},MA=r.strokeColor||"0 G";c.__private__.getStrokeColor=c.getDrawColor=function(){return on(MA)},c.__private__.setStrokeColor=c.setDrawColor=function(C,Y,ge,ve){return MA=Qr({ch1:C,ch2:Y,ch3:ge,ch4:ve,pdfColorType:"draw",precision:2}),U(MA),this};var tu=r.fillColor||"0 g";c.__private__.getFillColor=c.getFillColor=function(){return on(tu)},c.__private__.setFillColor=c.setFillColor=function(C,Y,ge,ve){return tu=Qr({ch1:C,ch2:Y,ch3:ge,ch4:ve,pdfColorType:"fill",precision:2}),U(tu),this};var us=r.textColor||"0 g",Kv=c.__private__.getTextColor=c.getTextColor=function(){return on(us)};c.__private__.setTextColor=c.setTextColor=function(C,Y,ge,ve){return us=Qr({ch1:C,ch2:Y,ch3:ge,ch4:ve,pdfColorType:"text",precision:3}),this};var bo=r.charSpace,jv=c.__private__.getCharSpace=c.getCharSpace=function(){return parseFloat(bo||0)};c.__private__.setCharSpace=c.setCharSpace=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return bo=C,this};var ru=0;c.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},c.__private__.setLineCap=c.setLineCap=function(C){var Y=c.CapJoinStyles[C];if(Y===void 0)throw new Error("Line cap style of '"+C+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ru=Y,U(Y+" J"),this};var nu=0;c.__private__.setLineJoin=c.setLineJoin=function(C){var Y=c.CapJoinStyles[C];if(Y===void 0)throw new Error("Line join style of '"+C+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return nu=Y,U(Y+" j"),this},c.__private__.setLineMiterLimit=c.__private__.setMiterLimit=c.setLineMiterLimit=c.setMiterLimit=function(C){if(C=C||0,isNaN(C))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return U(R(S(C))+" M"),this},c.GState=Jo,c.setGState=function(C){(C=typeof C=="string"?Ht[nr[C]]:bf(null,C)).equals(Dt)||(U("/"+C.id+" gs"),Dt=C)};var bf=function(C,Y){if(!C||!nr[C]){var ge=!1;for(var ve in Ht)if(Ht.hasOwnProperty(ve)&&Ht[ve].equals(Y)){ge=!0;break}if(ge)Y=Ht[ve];else{var Ee="GS"+(Object.keys(Ht).length+1).toString(10);Ht[Ee]=Y,Y.id=Ee}return C&&(nr[C]=Y.id),It.publish("addGState",Y),Y}};c.addGState=function(C,Y){return bf(C,Y),this},c.saveGraphicsState=function(){return U("q"),cr.push({key:ut,size:ae,color:us}),this},c.restoreGraphicsState=function(){U("Q");var C=cr.pop();return ut=C.key,ae=C.size,us=C.color,Dt=null,this},c.setCurrentTransformationMatrix=function(C){return U(C.toString()+" cm"),this},c.comment=function(C){return U("#"+C),this};var xo=function(C,Y){var ge=C||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ge},set:function(Oe){isNaN(Oe)||(ge=parseFloat(Oe))}});var ve=Y||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ve},set:function(Oe){isNaN(Oe)||(ve=parseFloat(Oe))}});var Ee="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Ee},set:function(Oe){Ee=Oe.toString()}}),this},Au=function(C,Y,ge,ve){xo.call(this,C,Y),this.type="rect";var Ee=ge||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Ee},set:function(Ve){isNaN(Ve)||(Ee=parseFloat(Ve))}});var Oe=ve||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Oe},set:function(Ve){isNaN(Ve)||(Oe=parseFloat(Ve))}}),this},iu=function(){this.page=Gt,this.currentPage=k,this.pages=$.slice(0),this.pagesContext=it.slice(0),this.x=kt,this.y=st,this.matrix=ur,this.width=cs(k),this.height=pa(k),this.outputDestination=me,this.id="",this.objectNumber=-1};iu.prototype.restore=function(){Gt=this.page,k=this.currentPage,it=this.pagesContext,$=this.pages,kt=this.x,st=this.y,ur=this.matrix,au(k,this.width),su(k,this.height),me=this.outputDestination};var xf=function(C,Y,ge,ve,Ee){Jn.push(new iu),Gt=k=0,$=[],kt=C,st=Y,ur=Ee,Xl([ge,ve])},Vv=function(C){if(Mn[C])Jn.pop().restore();else{var Y=new iu,ge="Xo"+(Object.keys(Hr).length+1).toString(10);Y.id=ge,Mn[C]=ge,Hr[ge]=Y,It.publish("addFormObject",Y),Jn.pop().restore()}};for(var Co in c.beginFormObject=function(C,Y,ge,ve,Ee){return xf(C,Y,ge,ve,Ee),this},c.endFormObject=function(C){return Vv(C),this},c.doFormObject=function(C,Y){var ge=Hr[Mn[C]];return U("q"),U(Y.toString()+" cm"),U("/"+ge.id+" Do"),U("Q"),this},c.getFormObject=function(C){var Y=Hr[Mn[C]];return{x:Y.x,y:Y.y,width:Y.width,height:Y.height,matrix:Y.matrix}},c.save=function(C,Y){return C=C||"generated.pdf",(Y=Y||{}).returnPromise=Y.returnPromise||!1,Y.returnPromise===!1?(Na(vo(_i()),C),typeof Na.unload=="function"&&pt.setTimeout&&setTimeout(Na.unload,911),this):new Promise(function(ge,ve){try{var Ee=Na(vo(_i()),C);typeof Na.unload=="function"&&pt.setTimeout&&setTimeout(Na.unload,911),ge(Ee)}catch(Oe){ve(Oe.message)}})},ht.API)ht.API.hasOwnProperty(Co)&&(Co==="events"&&ht.API.events.length?function(C,Y){var ge,ve,Ee;for(Ee=Y.length-1;Ee!==-1;Ee--)ge=Y[Ee][0],ve=Y[Ee][1],C.subscribe.apply(C,[ge].concat(typeof ve=="function"?[ve]:ve))}(It,ht.API.events):c[Co]=ht.API[Co]);var cs=c.getPageWidth=function(C){return(it[C=C||k].mediaBox.topRightX-it[C].mediaBox.bottomLeftX)/We},au=c.setPageWidth=function(C,Y){it[C].mediaBox.topRightX=Y*We+it[C].mediaBox.bottomLeftX},pa=c.getPageHeight=function(C){return(it[C=C||k].mediaBox.topRightY-it[C].mediaBox.bottomLeftY)/We},su=c.setPageHeight=function(C,Y){it[C].mediaBox.topRightY=Y*We+it[C].mediaBox.bottomLeftY};return c.internal={pdfEscape:Kn,getStyle:gf,getFont:Hv,getFontSize:ue,getCharSpace:jv,getTextColor:Kv,getLineHeight:wf,getLineHeightFactor:Bf,getLineWidth:Bo,write:b,getHorizontalCoordinate:ai,getVerticalCoordinate:Li,getCoordinateString:Mv,getVerticalCoordinateString:da,collections:{},newObject:Lr,newAdditionalObject:Ti,newObjectDeferred:Ot,newObjectDeferredBegin:Yr,getFilters:eA,putStream:Ln,events:It,scaleFactor:We,pageSize:{getWidth:function(){return cs(k)},setWidth:function(C){au(k,C)},getHeight:function(){return pa(k)},setHeight:function(C){su(k,C)}},encryptionOptions:u,encryption:Cn,getEncryptor:Nv,output:wo,getNumberOfPages:Iv,pages:$,out:U,f2:J,f3:M,getPageInfo:pf,getPageInfoByObjId:vt,getCurrentPageInfo:Ov,getPDFVersion:m,Point:xo,Rectangle:Au,Matrix:ct,hasHotfix:df},Object.defineProperty(c.internal.pageSize,"width",{get:function(){return cs(k)},set:function(C){au(k,C)},enumerable:!0,configurable:!0}),Object.defineProperty(c.internal.pageSize,"height",{get:function(){return pa(k)},set:function(C){su(k,C)},enumerable:!0,configurable:!0}),Fv.call(c,N),ut="F1",cf(A,t),It.publish("initialized"),c}Ps.prototype.lsbFirstWord=function(r){return String.fromCharCode(r>>0&255,r>>8&255,r>>16&255,r>>24&255)},Ps.prototype.toHexString=function(r){return r.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ps.prototype.hexToBytes=function(r){for(var e=[],t=0;t<r.length;t+=2)e.push(String.fromCharCode(parseInt(r.substr(t,2),16)));return e.join("")},Ps.prototype.processOwnerPassword=function(r,e){return Hp(kp(e).substr(0,5),r)},Ps.prototype.encryptor=function(r,e){var t=kp(this.encryptionKey+String.fromCharCode(255&r,r>>8&255,r>>16&255,255&e,e>>8&255)).substr(0,10);return function(n){return Hp(t,n)}},Jo.prototype.equals=function(r){var e,t="id,objectNumber,equals";if(!r||Rt(r)!==Rt(this))return!1;var n=0;for(e in this)if(!(t.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!r.hasOwnProperty(e)||this[e]!==r[e])return!1;n++}for(e in r)r.hasOwnProperty(e)&&t.indexOf(e)<0&&n--;return n===0},ht.API={events:[]},ht.version="2.5.2";var mr=ht.API,Mp=1,Pa=function(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ds=function(r){return r.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},wt=function(r){return r.toFixed(2)},qi=function(r){return r.toFixed(5)};mr.__acroform__={};var Rn=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r},wB=function(r){return r*Mp},XA=function(r){var e=new BB,t=At.internal.getHeight(r)||0,n=At.internal.getWidth(r)||0;return e.BBox=[0,0,Number(wt(n)),Number(wt(t))],e},wL=mr.__acroform__.setBit=function(r,e){if(r=r||0,e=e||0,isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return r|=1<<e},yL=mr.__acroform__.clearBit=function(r,e){if(r=r||0,e=e||0,isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return r&=~(1<<e)},BL=mr.__acroform__.getBit=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return r&1<<e?1:0},Sr=mr.__acroform__.getBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return BL(r,e-1)},Fr=mr.__acroform__.setBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return wL(r,e-1)},Ur=mr.__acroform__.clearBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return yL(r,e-1)},bL=mr.__acroform__.calculateCoordinates=function(r,e){var t=e.internal.getHorizontalCoordinate,n=e.internal.getVerticalCoordinate,A=r[0],i=r[1],a=r[2],s=r[3],o={};return o.lowerLeft_X=t(A)||0,o.lowerLeft_Y=n(i+s)||0,o.upperRight_X=t(A+a)||0,o.upperRight_Y=n(i)||0,[Number(wt(o.lowerLeft_X)),Number(wt(o.lowerLeft_Y)),Number(wt(o.upperRight_X)),Number(wt(o.upperRight_Y))]},xL=function(r){if(r.appearanceStreamContent)return r.appearanceStreamContent;if(r.V||r.DV){var e=[],t=r._V||r.DV,n=Kp(r,t),A=r.scope.internal.getFont(r.fontName,r.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(r.scope.__private__.encodeColorString(r.color)),e.push("/"+A+" "+wt(n.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(n.text),e.push("ET"),e.push("Q"),e.push("EMC");var i=XA(r);return i.scope=r.scope,i.stream=e.join(`
152
+ `),i}},Kp=function(r,e){var t=r.fontSize===0?r.maxFontSize:r.fontSize,n={text:"",fontSize:""},A=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");A=r.multiline?A.map(function(M){return M.split(`
153
+ `)}):A.map(function(M){return[M]});var i=t,a=At.internal.getHeight(r)||0;a=a<0?-a:a;var s=At.internal.getWidth(r)||0;s=s<0?-s:s;var o=function(M,S,K){if(M+1<A.length){var F=S+" "+A[M+1][0];return Ac(F,r,K).width<=s-4}return!1};i++;e:for(;i>0;){e="",i--;var l,u,h=Ac("3",r,i).height,d=r.multiline?a-i:(a-h)/2,c=d+=2,p=0,m=0,y=0;if(i<=0){e=`(...) Tj
154
+ `,e+="% Width of Text: "+Ac(e,r,i=12).width+", FieldWidth:"+s+`
155
+ `;break}for(var g="",w=0,B=0;B<A.length;B++)if(A.hasOwnProperty(B)){var I=!1;if(A[B].length!==1&&y!==A[B].length-1){if((h+2)*(w+2)+2>a)continue e;g+=A[B][y],I=!0,m=B,B--}else{g=(g+=A[B][y]+" ").substr(g.length-1)==" "?g.substr(0,g.length-1):g;var O=parseInt(B),j=o(O,g,i),R=B>=A.length-1;if(j&&!R){g+=" ",y=0;continue}if(j||R){if(R)m=O;else if(r.multiline&&(h+2)*(w+2)+2>a)continue e}else{if(!r.multiline||(h+2)*(w+2)+2>a)continue e;m=O}}for(var D="",Q=p;Q<=m;Q++){var J=A[Q];if(r.multiline){if(Q===m){D+=J[y]+" ",y=(y+1)%J.length;continue}if(Q===p){D+=J[J.length-1]+" ";continue}}D+=J[0]+" "}switch(D=D.substr(D.length-1)==" "?D.substr(0,D.length-1):D,u=Ac(D,r,i).width,r.textAlign){case"right":l=s-u-2;break;case"center":l=(s-u)/2;break;case"left":default:l=2}e+=wt(l)+" "+wt(c)+` Td
156
+ `,e+="("+Pa(D)+`) Tj
157
+ `,e+=-wt(l)+` 0 Td
158
+ `,c=-(i+2),u=0,p=I?m:m+1,w++,g=""}break}return n.text=e,n.fontSize=i,n},Ac=function(r,e,t){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),A=e.scope.getStringUnitWidth(r,{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:e.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:A}},CL={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},EL=function(r,e){var t={type:"reference",object:r};e.internal.getPageInfo(r.page).pageContext.annotations.find(function(n){return n.type===t.type&&n.object===t.object})===void 0&&e.internal.getPageInfo(r.page).pageContext.annotations.push(t)},SL=function(r,e){for(var t in r)if(r.hasOwnProperty(t)){var n=t,A=r[t];e.internal.newObjectDeferredBegin(A.objId,!0),Rt(A)==="object"&&typeof A.putStream=="function"&&A.putStream(),delete r[n]}},FL=function(r,e){if(e.scope=r,r.internal!==void 0&&(r.internal.acroformPlugin===void 0||r.internal.acroformPlugin.isInitialized===!1)){if(SA.FieldNum=0,r.internal.acroformPlugin=JSON.parse(JSON.stringify(CL)),r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Mp=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new bB,r.internal.acroformPlugin.acroFormDictionaryRoot.scope=r,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(r)}),r.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var A in n)if(n.hasOwnProperty(A)){var i=n[A];i.objId=void 0,i.hasAnnotation&&EL(i,t)}})(r)}),r.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(r)}),r.internal.events.subscribe("postPutPages",function(t){(function(n,A){var i=!n;for(var a in n||(A.internal.newObjectDeferredBegin(A.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),A.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||A.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(a)){var s=n[a],o=[],l=s.Rect;if(s.Rect&&(s.Rect=bL(s.Rect,A)),A.internal.newObjectDeferredBegin(s.objId,!0),s.DA=At.createDefaultAppearanceStream(s),Rt(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(o=s.getKeyValueListForStream()),s.Rect=l,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=xL(s);o.push({key:"AP",value:"<</N "+u+">>"}),A.internal.acroformPlugin.xForms.push(u)}if(s.appearanceStreamContent){var h="";for(var d in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(d)){var c=s.appearanceStreamContent[d];if(h+="/"+d+" ",h+="<<",Object.keys(c).length>=1||Array.isArray(c)){for(var a in c)if(c.hasOwnProperty(a)){var p=c[a];typeof p=="function"&&(p=p.call(A,s)),h+="/"+a+" "+p+" ",A.internal.acroformPlugin.xForms.indexOf(p)>=0||A.internal.acroformPlugin.xForms.push(p)}}else typeof(p=c)=="function"&&(p=p.call(A,s)),h+="/"+a+" "+p,A.internal.acroformPlugin.xForms.indexOf(p)>=0||A.internal.acroformPlugin.xForms.push(p);h+=">>"}o.push({key:"AP",value:`<<
159
+ `+h+">>"})}A.internal.putStream({additionalKeyValues:o,objectId:s.objId}),A.internal.out("endobj")}i&&SL(A.internal.acroformPlugin.xForms,A)})(t,r)}),r.internal.acroformPlugin.isInitialized=!0}},yB=mr.__acroform__.arrayToPdfArray=function(r,e,t){var n=function(a){return a};if(Array.isArray(r)){for(var A="[",i=0;i<r.length;i++)switch(i!==0&&(A+=" "),Rt(r[i])){case"boolean":case"number":case"object":A+=r[i].toString();break;case"string":r[i].substr(0,1)!=="/"?(e!==void 0&&t&&(n=t.internal.getEncryptor(e)),A+="("+Pa(n(r[i].toString()))+")"):A+=r[i].toString()}return A+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},jp=function(r,e,t){var n=function(A){return A};return e!==void 0&&t&&(n=t.internal.getEncryptor(e)),(r=r||"").toString(),r="("+Pa(n(r))+")"},YA=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(r){this._objId=r}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};YA.prototype.toString=function(){return this.objId+" 0 R"},YA.prototype.putStream=function(){var r=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:r,objectId:this.objId}),this.scope.internal.out("endobj")},YA.prototype.getKeyValueListForStream=function(){var r=[],e=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var t in e)if(Object.getOwnPropertyDescriptor(this,e[t]).configurable===!1){var n=e[t],A=this[n];A&&(Array.isArray(A)?r.push({key:n,value:yB(A,this.objId,this.scope)}):A instanceof YA?(A.scope=this.scope,r.push({key:n,value:A.objId+" 0 R"})):typeof A!="function"&&r.push({key:n,value:A}))}return r};var BB=function(){YA.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var r,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){r=t.trim()},get:function(){return r||null}})};Rn(BB,YA);var bB=function(){YA.call(this);var r,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(r){var t=function(n){return n};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Pa(t(r))+")"}},set:function(t){r=t}})};Rn(bB,YA);var SA=function r(){YA.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(g){if(isNaN(g))throw new Error('Invalid value "'+g+'" for attribute F supplied.');e=g}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Sr(e,3)},set:function(g){g?this.F=Fr(e,3):this.F=Ur(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(g){if(isNaN(g))throw new Error('Invalid value "'+g+'" for attribute Ff supplied.');t=g}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(g){n=g!==void 0?g:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(g){n[0]=g}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(g){n[1]=g}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(g){n[2]=g}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(g){n[3]=g}});var A="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return A},set:function(g){switch(g){case"/Btn":case"/Tx":case"/Ch":case"/Sig":A=g;break;default:throw new Error('Invalid value "'+g+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof ic)return;i="FieldObject"+r.FieldNum++}var g=function(w){return w};return this.scope&&(g=this.scope.internal.getEncryptor(this.objId)),"("+Pa(g(i))+")"},set:function(g){i=g.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(g){i=g}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(g){a=g}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(g){s=g}});var o=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(g){o=g}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/Mp:l},set:function(g){l=g}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(g){u=g}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof ic||this instanceof Xi))return jp(h,this.objId,this.scope)},set:function(g){g=g.toString(),h=g}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof Vr?d:jp(d,this.objId,this.scope)},set:function(g){g=g.toString(),d=this instanceof Vr?g:g.substr(0,1)==="("?Ds(g.substr(1,g.length-2)):Ds(g)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Vr?Ds(d.substr(1,d.length-1)):d},set:function(g){g=g.toString(),d=this instanceof Vr?"/"+g:g}});var c=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(c)return c},set:function(g){this.V=g}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(c)return this instanceof Vr?c:jp(c,this.objId,this.scope)},set:function(g){g=g.toString(),c=this instanceof Vr?g:g.substr(0,1)==="("?Ds(g.substr(1,g.length-2)):Ds(g)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Vr?Ds(c.substr(1,c.length-1)):c},set:function(g){g=g.toString(),c=this instanceof Vr?"/"+g:g}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,m=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return m},set:function(g){g=!!g,m=g}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(g){p=g}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,1)},set:function(g){g?this.Ff=Fr(this.Ff,1):this.Ff=Ur(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,2)},set:function(g){g?this.Ff=Fr(this.Ff,2):this.Ff=Ur(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,3)},set:function(g){g?this.Ff=Fr(this.Ff,3):this.Ff=Ur(this.Ff,3)}});var y=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(y!==null)return y},set:function(g){if([0,1,2].indexOf(g)===-1)throw new Error('Invalid value "'+g+'" for attribute Q supplied.');y=g}}),Object.defineProperty(this,"textAlign",{get:function(){var g;switch(y){case 0:default:g="left";break;case 1:g="center";break;case 2:g="right"}return g},configurable:!0,enumerable:!0,set:function(g){switch(g){case"right":case 2:y=2;break;case"center":case 1:y=1;break;case"left":case 0:default:y=0}}})};Rn(SA,YA);var Ra=function(){SA.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var r=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return r},set:function(t){r=t}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return yB(e,this.objId,this.scope)},set:function(t){var n,A;A=[],typeof(n=t)=="string"&&(A=function(i,a,s){s||(s=1);for(var o,l=[];o=a.exec(i);)l.push(o[s]);return l}(n,/\((.*?)\)/g)),e=A}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();e.indexOf(t)!==-1&&(e.splice(e.indexOf(t),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,18)},set:function(t){t?this.Ff=Fr(this.Ff,18):this.Ff=Ur(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=Fr(this.Ff,19):this.Ff=Ur(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,20)},set:function(t){t?(this.Ff=Fr(this.Ff,20),e.sort()):this.Ff=Ur(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,22)},set:function(t){t?this.Ff=Fr(this.Ff,22):this.Ff=Ur(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,23)},set:function(t){t?this.Ff=Fr(this.Ff,23):this.Ff=Ur(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,27)},set:function(t){t?this.Ff=Fr(this.Ff,27):this.Ff=Ur(this.Ff,27)}}),this.hasAppearanceStream=!1};Rn(Ra,SA);var Da=function(){Ra.call(this),this.fontName="helvetica",this.combo=!1};Rn(Da,Ra);var ka=function(){Da.call(this),this.combo=!0};Rn(ka,Da);var Zo=function(){ka.call(this),this.edit=!0};Rn(Zo,ka);var Vr=function(){SA.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,15)},set:function(t){t?this.Ff=Fr(this.Ff,15):this.Ff=Ur(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,16)},set:function(t){t?this.Ff=Fr(this.Ff,16):this.Ff=Ur(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,17)},set:function(t){t?this.Ff=Fr(this.Ff,17):this.Ff=Ur(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,26)},set:function(t){t?this.Ff=Fr(this.Ff,26):this.Ff=Ur(this.Ff,26)}});var r,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(i){return i};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var n,A=[];for(n in A.push("<<"),e)A.push("/"+n+" ("+Pa(t(e[n]))+")");return A.push(">>"),A.join(`
160
+ `)}},set:function(t){Rt(t)==="object"&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){typeof t=="string"&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(t){r="/"+t}})};Rn(Vr,SA);var el=function(){Vr.call(this),this.pushButton=!0};Rn(el,Vr);var Ha=function(){Vr.call(this),this.radio=!0,this.pushButton=!1;var r=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){r=e!==void 0?e:[]}})};Rn(Ha,Vr);var ic=function(){var r,e;SA.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return r},set:function(A){r=A}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(A){e=A}});var t,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(s){return s};this.scope&&(A=this.scope.internal.getEncryptor(this.objId));var i,a=[];for(i in a.push("<<"),n)a.push("/"+i+" ("+Pa(A(n[i]))+")");return a.push(">>"),a.join(`
161
+ `)},set:function(A){Rt(A)==="object"&&(n=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(A){typeof A=="string"&&(n.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(A){t="/"+A}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=At.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Rn(ic,SA),Ha.prototype.setAppearance=function(r){if(!("createAppearanceStream"in r)||!("getCA"in r))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var t=this.Kids[e];t.appearanceStreamContent=r.createAppearanceStream(t.optionName),t.caption=r.getCA()}},Ha.prototype.createOption=function(r){var e=new ic;return e.Parent=this,e.optionName=r,this.Kids.push(e),UL.call(this.scope,e),e};var tl=function(){Vr.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=At.CheckBox.createAppearanceStream()};Rn(tl,Vr);var Xi=function(){SA.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,13)},set:function(e){e?this.Ff=Fr(this.Ff,13):this.Ff=Ur(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,21)},set:function(e){e?this.Ff=Fr(this.Ff,21):this.Ff=Ur(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,23)},set:function(e){e?this.Ff=Fr(this.Ff,23):this.Ff=Ur(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,24)},set:function(e){e?this.Ff=Fr(this.Ff,24):this.Ff=Ur(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,25)},set:function(e){e?this.Ff=Fr(this.Ff,25):this.Ff=Ur(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,26)},set:function(e){e?this.Ff=Fr(this.Ff,26):this.Ff=Ur(this.Ff,26)}});var r=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return r},set:function(e){Number.isInteger(e)&&(r=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Rn(Xi,SA);var rl=function(){Xi.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Sr(this.Ff,14)},set:function(r){r?this.Ff=Fr(this.Ff,14):this.Ff=Ur(this.Ff,14)}}),this.password=!0};Rn(rl,Xi);var At={CheckBox:{createAppearanceStream:function(){return{N:{On:At.CheckBox.YesNormal},D:{On:At.CheckBox.YesPushDown,Off:At.CheckBox.OffPushDown}}},YesPushDown:function(r){var e=XA(r);e.scope=r.scope;var t=[],n=r.scope.internal.getFont(r.fontName,r.fontStyle).id,A=r.scope.__private__.encodeColorString(r.color),i=Kp(r,r.caption);return t.push("0.749023 g"),t.push("0 0 "+wt(At.internal.getWidth(r))+" "+wt(At.internal.getHeight(r))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+n+" "+wt(i.fontSize)+" Tf "+A),t.push("BT"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC"),e.stream=t.join(`
162
+ `),e},YesNormal:function(r){var e=XA(r);e.scope=r.scope;var t=r.scope.internal.getFont(r.fontName,r.fontStyle).id,n=r.scope.__private__.encodeColorString(r.color),A=[],i=At.internal.getHeight(r),a=At.internal.getWidth(r),s=Kp(r,r.caption);return A.push("1 g"),A.push("0 0 "+wt(a)+" "+wt(i)+" re"),A.push("f"),A.push("q"),A.push("0 0 1 rg"),A.push("0 0 "+wt(a-1)+" "+wt(i-1)+" re"),A.push("W"),A.push("n"),A.push("0 g"),A.push("BT"),A.push("/"+t+" "+wt(s.fontSize)+" Tf "+n),A.push(s.text),A.push("ET"),A.push("Q"),e.stream=A.join(`
163
+ `),e},OffPushDown:function(r){var e=XA(r);e.scope=r.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+wt(At.internal.getWidth(r))+" "+wt(At.internal.getHeight(r))+" re"),t.push("f"),e.stream=t.join(`
164
+ `),e}},RadioButton:{Circle:{createAppearanceStream:function(r){var e={D:{Off:At.RadioButton.Circle.OffPushDown},N:{}};return e.N[r]=At.RadioButton.Circle.YesNormal,e.D[r]=At.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(r){var e=XA(r);e.scope=r.scope;var t=[],n=At.internal.getWidth(r)<=At.internal.getHeight(r)?At.internal.getWidth(r)/4:At.internal.getHeight(r)/4;n=Number((.9*n).toFixed(5));var A=At.internal.Bezier_C,i=Number((n*A).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+qi(At.internal.getWidth(r)/2)+" "+qi(At.internal.getHeight(r)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
165
+ `),e},YesPushDown:function(r){var e=XA(r);e.scope=r.scope;var t=[],n=At.internal.getWidth(r)<=At.internal.getHeight(r)?At.internal.getWidth(r)/4:At.internal.getHeight(r)/4;n=Number((.9*n).toFixed(5));var A=Number((2*n).toFixed(5)),i=Number((A*At.internal.Bezier_C).toFixed(5)),a=Number((n*At.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+qi(At.internal.getWidth(r)/2)+" "+qi(At.internal.getHeight(r)/2)+" cm"),t.push(A+" 0 m"),t.push(A+" "+i+" "+i+" "+A+" 0 "+A+" c"),t.push("-"+i+" "+A+" -"+A+" "+i+" -"+A+" 0 c"),t.push("-"+A+" -"+i+" -"+i+" -"+A+" 0 -"+A+" c"),t.push(i+" -"+A+" "+A+" -"+i+" "+A+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+qi(At.internal.getWidth(r)/2)+" "+qi(At.internal.getHeight(r)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),t.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),t.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),t.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
166
+ `),e},OffPushDown:function(r){var e=XA(r);e.scope=r.scope;var t=[],n=At.internal.getWidth(r)<=At.internal.getHeight(r)?At.internal.getWidth(r)/4:At.internal.getHeight(r)/4;n=Number((.9*n).toFixed(5));var A=Number((2*n).toFixed(5)),i=Number((A*At.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+qi(At.internal.getWidth(r)/2)+" "+qi(At.internal.getHeight(r)/2)+" cm"),t.push(A+" 0 m"),t.push(A+" "+i+" "+i+" "+A+" 0 "+A+" c"),t.push("-"+i+" "+A+" -"+A+" "+i+" -"+A+" 0 c"),t.push("-"+A+" -"+i+" -"+i+" -"+A+" 0 -"+A+" c"),t.push(i+" -"+A+" "+A+" -"+i+" "+A+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
167
+ `),e}},Cross:{createAppearanceStream:function(r){var e={D:{Off:At.RadioButton.Cross.OffPushDown},N:{}};return e.N[r]=At.RadioButton.Cross.YesNormal,e.D[r]=At.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(r){var e=XA(r);e.scope=r.scope;var t=[],n=At.internal.calculateCross(r);return t.push("q"),t.push("1 1 "+wt(At.internal.getWidth(r)-2)+" "+wt(At.internal.getHeight(r)-2)+" re"),t.push("W"),t.push("n"),t.push(wt(n.x1.x)+" "+wt(n.x1.y)+" m"),t.push(wt(n.x2.x)+" "+wt(n.x2.y)+" l"),t.push(wt(n.x4.x)+" "+wt(n.x4.y)+" m"),t.push(wt(n.x3.x)+" "+wt(n.x3.y)+" l"),t.push("s"),t.push("Q"),e.stream=t.join(`
168
+ `),e},YesPushDown:function(r){var e=XA(r);e.scope=r.scope;var t=At.internal.calculateCross(r),n=[];return n.push("0.749023 g"),n.push("0 0 "+wt(At.internal.getWidth(r))+" "+wt(At.internal.getHeight(r))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+wt(At.internal.getWidth(r)-2)+" "+wt(At.internal.getHeight(r)-2)+" re"),n.push("W"),n.push("n"),n.push(wt(t.x1.x)+" "+wt(t.x1.y)+" m"),n.push(wt(t.x2.x)+" "+wt(t.x2.y)+" l"),n.push(wt(t.x4.x)+" "+wt(t.x4.y)+" m"),n.push(wt(t.x3.x)+" "+wt(t.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join(`
169
+ `),e},OffPushDown:function(r){var e=XA(r);e.scope=r.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+wt(At.internal.getWidth(r))+" "+wt(At.internal.getHeight(r))+" re"),t.push("f"),e.stream=t.join(`
170
+ `),e}}},createDefaultAppearanceStream:function(r){var e=r.scope.internal.getFont(r.fontName,r.fontStyle).id,t=r.scope.__private__.encodeColorString(r.color);return"/"+e+" "+r.fontSize+" Tf "+t}};At.internal={Bezier_C:.551915024494,calculateCross:function(r){var e=At.internal.getWidth(r),t=At.internal.getHeight(r),n=Math.min(e,t);return{x1:{x:(e-n)/2,y:(t-n)/2+n},x2:{x:(e-n)/2+n,y:(t-n)/2},x3:{x:(e-n)/2,y:(t-n)/2},x4:{x:(e-n)/2+n,y:(t-n)/2+n}}}},At.internal.getWidth=function(r){var e=0;return Rt(r)==="object"&&(e=wB(r.Rect[2])),e},At.internal.getHeight=function(r){var e=0;return Rt(r)==="object"&&(e=wB(r.Rect[3])),e};var UL=mr.addField=function(r){if(FL(this,r),!(r instanceof SA))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=r).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),r.page=r.scope.internal.getCurrentPageInfo().pageNumber,this};mr.AcroFormChoiceField=Ra,mr.AcroFormListBox=Da,mr.AcroFormComboBox=ka,mr.AcroFormEditBox=Zo,mr.AcroFormButton=Vr,mr.AcroFormPushButton=el,mr.AcroFormRadioButton=Ha,mr.AcroFormCheckBox=tl,mr.AcroFormTextField=Xi,mr.AcroFormPasswordField=rl,mr.AcroFormAppearance=At,mr.AcroForm={ChoiceField:Ra,ListBox:Da,ComboBox:ka,EditBox:Zo,Button:Vr,PushButton:el,RadioButton:Ha,CheckBox:tl,TextField:Xi,PasswordField:rl,Appearance:At},ht.AcroForm={ChoiceField:Ra,ListBox:Da,ComboBox:ka,EditBox:Zo,Button:Vr,PushButton:el,RadioButton:Ha,CheckBox:tl,TextField:Xi,PasswordField:rl,Appearance:At};var IL=ht.AcroForm;function xB(r){return r.reduce(function(e,t,n){return e[t]=n,e},{})}(function(r){r.__addimage__={};var e="UNKNOWN",t={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=r.__addimage__.getImageFileTypeByImageData=function(M,S){var K,F,ne,ee,G,oe=e;if((S=S||e)==="RGBA"||M.data!==void 0&&M.data instanceof Uint8ClampedArray&&"height"in M&&"width"in M)return"RGBA";if(j(M))for(G in t)for(ne=t[G],K=0;K<ne.length;K+=1){for(ee=!0,F=0;F<ne[K].length;F+=1)if(ne[K][F]!==void 0&&ne[K][F]!==M[F]){ee=!1;break}if(ee===!0){oe=G;break}}else for(G in t)for(ne=t[G],K=0;K<ne.length;K+=1){for(ee=!0,F=0;F<ne[K].length;F+=1)if(ne[K][F]!==void 0&&ne[K][F]!==M.charCodeAt(F)){ee=!1;break}if(ee===!0){oe=G;break}}return oe===e&&S!==e&&(oe=S),oe},A=function M(S){for(var K=this.internal.write,F=this.internal.putStream,ne=(0,this.internal.getFilters)();ne.indexOf("FlateEncode")!==-1;)ne.splice(ne.indexOf("FlateEncode"),1);S.objectId=this.internal.newObject();var ee=[];if(ee.push({key:"Type",value:"/XObject"}),ee.push({key:"Subtype",value:"/Image"}),ee.push({key:"Width",value:S.width}),ee.push({key:"Height",value:S.height}),S.colorSpace===y.INDEXED?ee.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(S.palette.length/3-1)+" "+("sMask"in S&&S.sMask!==void 0?S.objectId+2:S.objectId+1)+" 0 R]"}):(ee.push({key:"ColorSpace",value:"/"+S.colorSpace}),S.colorSpace===y.DEVICE_CMYK&&ee.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ee.push({key:"BitsPerComponent",value:S.bitsPerComponent}),"decodeParameters"in S&&S.decodeParameters!==void 0&&ee.push({key:"DecodeParms",value:"<<"+S.decodeParameters+">>"}),"transparency"in S&&Array.isArray(S.transparency)){for(var G="",oe=0,q=S.transparency.length;oe<q;oe++)G+=S.transparency[oe]+" "+S.transparency[oe]+" ";ee.push({key:"Mask",value:"["+G+"]"})}S.sMask!==void 0&&ee.push({key:"SMask",value:S.objectId+1+" 0 R"});var he=S.filter!==void 0?["/"+S.filter]:void 0;if(F({data:S.data,additionalKeyValues:ee,alreadyAppliedFilters:he,objectId:S.objectId}),K("endobj"),"sMask"in S&&S.sMask!==void 0){var ie="/Predictor "+S.predictor+" /Colors 1 /BitsPerComponent "+S.bitsPerComponent+" /Columns "+S.width,E={width:S.width,height:S.height,colorSpace:"DeviceGray",bitsPerComponent:S.bitsPerComponent,decodeParameters:ie,data:S.sMask};"filter"in S&&(E.filter=S.filter),M.call(this,E)}if(S.colorSpace===y.INDEXED){var k=this.internal.newObject();F({data:D(new Uint8Array(S.palette)),objectId:k}),K("endobj")}},i=function(){var M=this.internal.collections.addImage_images;for(var S in M)A.call(this,M[S])},a=function(){var M,S=this.internal.collections.addImage_images,K=this.internal.write;for(var F in S)K("/I"+(M=S[F]).index,M.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",a))},o=function(){var M=this.internal.collections.addImage_images;return s.call(this),M},l=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(M){return typeof r["process"+M.toUpperCase()]=="function"},h=function(M){return Rt(M)==="object"&&M.nodeType===1},d=function(M,S){if(M.nodeName==="IMG"&&M.hasAttribute("src")){var K=""+M.getAttribute("src");if(K.indexOf("data:image/")===0)return Yo(unescape(K).split("base64,").pop());var F=r.loadFile(K,!0);if(F!==void 0)return F}if(M.nodeName==="CANVAS"){if(M.width===0||M.height===0)throw new Error("Given canvas must have data. Canvas width: "+M.width+", height: "+M.height);var ne;switch(S){case"PNG":ne="image/png";break;case"WEBP":ne="image/webp";break;case"JPEG":case"JPG":default:ne="image/jpeg"}return Yo(M.toDataURL(ne,1).split("base64,").pop())}},c=function(M){var S=this.internal.collections.addImage_images;if(S){for(var K in S)if(M===S[K].alias)return S[K]}},p=function(M,S,K){return M||S||(M=-96,S=-96),M<0&&(M=-1*K.width*72/M/this.internal.scaleFactor),S<0&&(S=-1*K.height*72/S/this.internal.scaleFactor),M===0&&(M=S*K.width/K.height),S===0&&(S=M*K.height/K.width),[M,S]},m=function(M,S,K,F,ne,ee){var G=p.call(this,K,F,ne),oe=this.internal.getCoordinateString,q=this.internal.getVerticalCoordinateString,he=o.call(this);if(K=G[0],F=G[1],he[ne.index]=ne,ee){ee*=Math.PI/180;var ie=Math.cos(ee),E=Math.sin(ee),k=function(W){return W.toFixed(4)},V=[k(ie),k(E),k(-1*E),k(ie),0,0,"cm"]}this.internal.write("q"),ee?(this.internal.write([1,"0","0",1,oe(M),q(S+F),"cm"].join(" ")),this.internal.write(V.join(" ")),this.internal.write([oe(K),"0","0",oe(F),"0","0","cm"].join(" "))):this.internal.write([oe(K),"0","0",oe(F),oe(M),q(S+F),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ne.index+" Do"),this.internal.write("Q")},y=r.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};r.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var g=r.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=r.__addimage__.sHashCode=function(M){var S,K,F=0;if(typeof M=="string")for(K=M.length,S=0;S<K;S++)F=(F<<5)-F+M.charCodeAt(S),F|=0;else if(j(M))for(K=M.byteLength/2,S=0;S<K;S++)F=(F<<5)-F+M[S],F|=0;return F},B=r.__addimage__.validateStringAsBase64=function(M){(M=M||"").toString().trim();var S=!0;return M.length===0&&(S=!1),M.length%4!=0&&(S=!1),/^[A-Za-z0-9+/]+$/.test(M.substr(0,M.length-2))===!1&&(S=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(M.substr(-2))===!1&&(S=!1),S},I=r.__addimage__.extractImageFromDataUrl=function(M){var S=(M=M||"").split("base64,"),K=null;if(S.length===2){var F=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(S[0]);Array.isArray(F)&&(K={mimeType:F[1],charset:F[2],data:S[1]})}return K},O=r.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};r.__addimage__.isArrayBuffer=function(M){return O()&&M instanceof ArrayBuffer};var j=r.__addimage__.isArrayBufferView=function(M){return O()&&typeof Uint32Array<"u"&&(M instanceof Int8Array||M instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&M instanceof Uint8ClampedArray||M instanceof Int16Array||M instanceof Uint16Array||M instanceof Int32Array||M instanceof Uint32Array||M instanceof Float32Array||M instanceof Float64Array)},R=r.__addimage__.binaryStringToUint8Array=function(M){for(var S=M.length,K=new Uint8Array(S),F=0;F<S;F++)K[F]=M.charCodeAt(F);return K},D=r.__addimage__.arrayBufferToBinaryString=function(M){for(var S="",K=j(M)?M:new Uint8Array(M),F=0;F<K.length;F+=8192)S+=String.fromCharCode.apply(null,K.subarray(F,F+8192));return S};r.addImage=function(){var M,S,K,F,ne,ee,G,oe,q;if(typeof arguments[1]=="number"?(S=e,K=arguments[1],F=arguments[2],ne=arguments[3],ee=arguments[4],G=arguments[5],oe=arguments[6],q=arguments[7]):(S=arguments[1],K=arguments[2],F=arguments[3],ne=arguments[4],ee=arguments[5],G=arguments[6],oe=arguments[7],q=arguments[8]),Rt(M=arguments[0])==="object"&&!h(M)&&"imageData"in M){var he=M;M=he.imageData,S=he.format||S||e,K=he.x||K||0,F=he.y||F||0,ne=he.w||he.width||ne,ee=he.h||he.height||ee,G=he.alias||G,oe=he.compression||oe,q=he.rotation||he.angle||q}var ie=this.internal.getFilters();if(oe===void 0&&ie.indexOf("FlateEncode")!==-1&&(oe="SLOW"),isNaN(K)||isNaN(F))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var E=Q.call(this,M,S,G,oe);return m.call(this,K,F,ne,ee,E,q),this};var Q=function(M,S,K,F){var ne,ee,G;if(typeof M=="string"&&n(M)===e){M=unescape(M);var oe=J(M,!1);(oe!==""||(oe=r.loadFile(M,!0))!==void 0)&&(M=oe)}if(h(M)&&(M=d(M,S)),S=n(M,S),!u(S))throw new Error("addImage does not support files of type '"+S+"', please ensure that a plugin for '"+S+"' support is added.");if(((G=K)==null||G.length===0)&&(K=function(q){return typeof q=="string"||j(q)?w(q):j(q.data)?w(q.data):null}(M)),(ne=c.call(this,K))||(O()&&(M instanceof Uint8Array||S==="RGBA"||(ee=M,M=R(M))),ne=this["process"+S.toUpperCase()](M,l.call(this),K,function(q){return q&&typeof q=="string"&&(q=q.toUpperCase()),q in r.image_compression?q:g.NONE}(F),ee)),!ne)throw new Error("An unknown error occurred whilst processing the image.");return ne},J=r.__addimage__.convertBase64ToBinaryString=function(M,S){var K;S=typeof S!="boolean"||S;var F,ne="";if(typeof M=="string"){F=(K=I(M))!==null?K.data:M;try{ne=Yo(F)}catch(ee){if(S)throw B(F)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ee.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ne};r.getImageProperties=function(M){var S,K,F="";if(h(M)&&(M=d(M)),typeof M=="string"&&n(M)===e&&((F=J(M,!1))===""&&(F=r.loadFile(M)||""),M=F),K=n(M),!u(K))throw new Error("addImage does not support files of type '"+K+"', please ensure that a plugin for '"+K+"' support is added.");if(!O()||M instanceof Uint8Array||(M=R(M)),!(S=this["process"+K.toUpperCase()](M)))throw new Error("An unknown error occurred whilst processing the image");return S.fileType=K,S}})(ht.API),function(r){var e=function(t){if(t!==void 0&&t!="")return!0};ht.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),r.events.push(["putPage",function(t){for(var n,A,i,a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(t.objId),l=t.pageContext.annotations,u=!1,h=0;h<l.length&&!u;h++)switch((n=l[h]).type){case"link":(e(n.options.url)||e(n.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var d=0;d<l.length;d++){n=l[d];var c=this.internal.pdfEscape,p=this.internal.getEncryptor(t.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var m=this.internal.newAdditionalObject(),y=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(m.objId),w=n.title||"Note";i="<</Type /Annot /Subtype /Text "+(A="/Rect ["+a(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+a(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+c(g(n.contents))+")",i+=" /Popup "+y.objId+" 0 R",i+=" /P "+o.objId+" 0 R",i+=" /T ("+c(g(w))+") >>",m.content=i;var B=m.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(A="/Rect ["+a(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+a(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+B,n.open&&(i+=" /Open true"),i+=" >>",y.content=i,this.internal.write(m.objId,"0 R",y.objId,"0 R");break;case"freetext":A="/Rect ["+a(n.bounds.x)+" "+s(n.bounds.y)+" "+a(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var I=n.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+A+"/Contents ("+c(p(n.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+I+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(n.options.name){var O=this.annotations._nameMap[n.options.name];n.options.pageNumber=O.page,n.options.top=O.y}else n.options.top||(n.options.top=0);if(A="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",i="",n.options.url)i="<</Type /Annot /Subtype /Link "+A+"/Border [0 0 0] /A <</S /URI /URI ("+c(p(n.options.url))+") >>";else if(n.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+A+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,i+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var j=s(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),i+=" /XYZ "+n.options.left+" "+j+" "+n.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),r.createAnnotation=function(t){var n=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":n.pageContext.annotations.push(t)}},r.link=function(t,n,A,i,a){var s=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:o(t),y:l(n),w:o(t+A),h:l(n+i)},options:a,type:"link"})},r.textWithLink=function(t,n,A,i){var a,s,o=this.getTextWidth(t),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){s=i.maxWidth;var u=this.splitTextToSize(t,s).length;a=Math.ceil(l*u)}else s=o,a=l;return this.text(t,n,A,i),A+=.2*l,i.align==="center"&&(n-=o/2),i.align==="right"&&(n-=o),this.link(n,A-l,s,a,i),o},r.getTextWidth=function(t){var n=this.internal.getFontSize();return this.getStringUnitWidth(t)*n/this.internal.scaleFactor}}(ht.API),function(r){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},t={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},A=[1570,1571,1573,1575];r.__arabicParser__={};var i=r.__arabicParser__.isInArabicSubstitutionA=function(m){return e[m.charCodeAt(0)]!==void 0},a=r.__arabicParser__.isArabicLetter=function(m){return typeof m=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(m)},s=r.__arabicParser__.isArabicEndLetter=function(m){return a(m)&&i(m)&&e[m.charCodeAt(0)].length<=2},o=r.__arabicParser__.isArabicAlfLetter=function(m){return a(m)&&A.indexOf(m.charCodeAt(0))>=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(m){return a(m)&&i(m)&&e[m.charCodeAt(0)].length>=1};var l=r.__arabicParser__.arabicLetterHasFinalForm=function(m){return a(m)&&i(m)&&e[m.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(m){return a(m)&&i(m)&&e[m.charCodeAt(0)].length>=3};var u=r.__arabicParser__.arabicLetterHasMedialForm=function(m){return a(m)&&i(m)&&e[m.charCodeAt(0)].length==4},h=r.__arabicParser__.resolveLigatures=function(m){var y=0,g=t,w="",B=0;for(y=0;y<m.length;y+=1)g[m.charCodeAt(y)]!==void 0?(B++,typeof(g=g[m.charCodeAt(y)])=="number"&&(w+=String.fromCharCode(g),g=t,B=0),y===m.length-1&&(g=t,w+=m.charAt(y-(B-1)),y-=B-1,B=0)):(g=t,w+=m.charAt(y-B),y-=B,B=0);return w};r.__arabicParser__.isArabicDiacritic=function(m){return m!==void 0&&n[m.charCodeAt(0)]!==void 0};var d=r.__arabicParser__.getCorrectForm=function(m,y,g){return a(m)?i(m)===!1?-1:!l(m)||!a(y)&&!a(g)||!a(g)&&s(y)||s(m)&&!a(y)||s(m)&&o(y)||s(m)&&s(y)?0:u(m)&&a(y)&&!s(y)&&a(g)&&l(g)?3:s(m)||!a(g)?1:2:-1},c=function(m){var y=0,g=0,w=0,B="",I="",O="",j=(m=m||"").split("\\s+"),R=[];for(y=0;y<j.length;y+=1){for(R.push(""),g=0;g<j[y].length;g+=1)B=j[y][g],I=j[y][g-1],O=j[y][g+1],a(B)?(w=d(B,I,O),R[y]+=w!==-1?String.fromCharCode(e[B.charCodeAt(0)][w]):B):R[y]+=B;R[y]=h(R[y])}return R.join(" ")},p=r.__arabicParser__.processArabic=r.processArabic=function(){var m,y=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,g=[];if(Array.isArray(y)){var w=0;for(g=[],w=0;w<y.length;w+=1)Array.isArray(y[w])?g.push([c(y[w][0]),y[w][1],y[w][2]]):g.push([c(y[w])]);m=g}else m=c(y);return typeof arguments[0]=="string"?m:(arguments[0].text=m,arguments[0])};r.events.push(["preProcessText",p])}(ht.API),ht.API.autoPrint=function(r){var e;switch((r=r||{}).variant=r.variant||"non-conform",r.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},function(r){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(s){t=s}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var A=300;Object.defineProperty(this,"height",{get:function(){return A},set:function(s){A=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=A+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(s){i=s}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(s){a=s}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,n){var A;if((t=t||"2d")!=="2d")return null;for(A in n)this.pdf.context2d.hasOwnProperty(A)&&(this.pdf.context2d[A]=n[A]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},r.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(ht.API),function(r){var e={left:0,top:0,bottom:0,right:0},t=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),A.call(this))},A=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var o=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return o},set:function(m){o=m}});var l=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return l},set:function(m){l=m}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(m){u=m}});var h=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return h},set:function(m){h=m}});var d=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return d},set:function(m){d=m}});var c=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return c},set:function(m){c=m}});var p=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return p},set:function(m){p=m}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},r.setHeaderFunction=function(o){return n.call(this),this.internal.__cell__.headerFunction=typeof o=="function"?o:void 0,this},r.getTextDimensions=function(o,l){n.call(this);var u=(l=l||{}).fontSize||this.getFontSize(),h=l.font||this.getFont(),d=l.scaleFactor||this.internal.scaleFactor,c=0,p=0,m=0,y=this;if(!Array.isArray(o)&&typeof o!="string"){if(typeof o!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");o=String(o)}var g=l.maxWidth;g>0?typeof o=="string"?o=this.splitTextToSize(o,g):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce(function(B,I){return B.concat(y.splitTextToSize(I,g))},[])):o=Array.isArray(o)?o:[o];for(var w=0;w<o.length;w++)c<(m=this.getStringUnitWidth(o[w],{font:h})*u)&&(c=m);return c!==0&&(p=o.length),{w:c/=d,h:Math.max((p*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/d,0)}},r.cellAddPage=function(){n.call(this),this.addPage();var o=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new i(o.left,o.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=r.cell=function(){var o;o=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var l=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,h=this.internal.__cell__.margins||e,d=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return l.lineNumber!==void 0&&(l.lineNumber===o.lineNumber?(o.x=(l.x||0)+(l.width||0),o.y=l.y||0):l.y+l.height+o.height+h.bottom>this.getPageHeight()?(this.cellAddPage(),o.y=h.top,c&&d&&(this.printHeaderRow(o.lineNumber,!0),o.y+=d[0].height)):o.y=l.y+l.height||o.y),o.text[0]!==void 0&&(this.rect(o.x,o.y,o.width,o.height,t===!0?"FD":void 0),o.align==="right"?this.text(o.text,o.x+o.width-u,o.y+u,{align:"right",baseline:"top"}):o.align==="center"?this.text(o.text,o.x+o.width/2,o.y+u,{align:"center",baseline:"top",maxWidth:o.width-u-u}):this.text(o.text,o.x+u,o.y+u,{align:"left",baseline:"top",maxWidth:o.width-u-u})),this.internal.__cell__.lastCell=o,this};r.table=function(o,l,u,h,d){if(n.call(this),!u)throw new Error("No data for PDF table.");var c,p,m,y,g=[],w=[],B=[],I={},O={},j=[],R=[],D=(d=d||{}).autoSize||!1,Q=d.printHeaders!==!1,J=d.css&&d.css["font-size"]!==void 0?16*d.css["font-size"]:d.fontSize||12,M=d.margins||Object.assign({width:this.getPageWidth()},e),S=typeof d.padding=="number"?d.padding:3,K=d.headerBackgroundColor||"#c8c8c8",F=d.headerTextColor||"#000";if(A.call(this),this.internal.__cell__.printHeaders=Q,this.internal.__cell__.margins=M,this.internal.__cell__.table_font_size=J,this.internal.__cell__.padding=S,this.internal.__cell__.headerBackgroundColor=K,this.internal.__cell__.headerTextColor=F,this.setFontSize(J),h==null)w=g=Object.keys(u[0]),B=g.map(function(){return"left"});else if(Array.isArray(h)&&Rt(h[0])==="object")for(g=h.map(function(he){return he.name}),w=h.map(function(he){return he.prompt||he.name||""}),B=h.map(function(he){return he.align||"left"}),c=0;c<h.length;c+=1)O[h[c].name]=h[c].width*(19.049976/25.4);else Array.isArray(h)&&typeof h[0]=="string"&&(w=g=h,B=g.map(function(){return"left"}));if(D||Array.isArray(h)&&typeof h[0]=="string")for(c=0;c<g.length;c+=1){for(I[y=g[c]]=u.map(function(he){return he[y]}),this.setFont(void 0,"bold"),j.push(this.getTextDimensions(w[c],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),p=I[y],this.setFont(void 0,"normal"),m=0;m<p.length;m+=1)j.push(this.getTextDimensions(p[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);O[y]=Math.max.apply(null,j)+S+S,j=[]}if(Q){var ne={};for(c=0;c<g.length;c+=1)ne[g[c]]={},ne[g[c]].text=w[c],ne[g[c]].align=B[c];var ee=s.call(this,ne,O);R=g.map(function(he){return new i(o,l,O[he],ee,ne[he].text,void 0,ne[he].align)}),this.setTableHeaderRow(R),this.printHeaderRow(1,!1)}var G=h.reduce(function(he,ie){return he[ie.name]=ie.align,he},{});for(c=0;c<u.length;c+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:c,data:u[c]},this);var oe=s.call(this,u[c],O);for(m=0;m<g.length;m+=1){var q=u[c][g[m]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:c,col:m,data:q},this),a.call(this,new i(o,l,O[g[m]],oe,q,c+2,G[g[m]]))}}return this.internal.__cell__.table_x=o,this.internal.__cell__.table_y=l,this};var s=function(o,l){var u=this.internal.__cell__.padding,h=this.internal.__cell__.table_font_size,d=this.internal.scaleFactor;return Object.keys(o).map(function(c){var p=o[c];return this.splitTextToSize(p.hasOwnProperty("text")?p.text:p,l[c]-u-u)},this).map(function(c){return this.getLineHeightFactor()*c.length*h/d+u+u},this).reduce(function(c,p){return Math.max(c,p)},0)};r.setTableHeaderRow=function(o){n.call(this),this.internal.__cell__.tableHeaderRow=o},r.printHeaderRow=function(o,l){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var h=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(h[0],h[1],h[2],h[3],void 0,-1)}this.setFont(void 0,"bold");for(var d=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){u=this.internal.__cell__.tableHeaderRow[c].clone(),l&&(u.y=this.internal.__cell__.margins.top||0,d.push(u)),u.lineNumber=o;var p=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,u),this.setTextColor(p)}d.length>0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),t=!1}}(ht.API);var CB={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},EB=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Vp=xB(EB),SB=[100,200,300,400,500,600,700,800,900],TL=xB(SB);function Gp(r){var e=r.family.replace(/"|'/g,"").toLowerCase(),t=function(i){return CB[i=i||"normal"]?i:"normal"}(r.style),n=function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}}(r.weight),A=function(i){return typeof Vp[i=i||"normal"]=="number"?i:"normal"}(r.stretch);return{family:e,style:t,weight:n,stretch:A,src:r.src||[],ref:r.ref||{name:e,style:[A,t,n].join(" ")}}}function FB(r,e,t,n){var A;for(A=t;A>=0&&A<e.length;A+=n)if(r[e[A]])return r[e[A]];for(A=t;A>=0&&A<e.length;A-=n)if(r[e[A]])return r[e[A]]}var _L={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},UB={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function IB(r){return[r.stretch,r.style,r.weight,r.family].join(" ")}function LL(r,e,t){for(var n=(t=t||{}).defaultFontFamily||"times",A=Object.assign({},_L,t.genericFontFamilies||{}),i=null,a=null,s=0;s<e.length;++s)if(A[(i=Gp(e[s])).family]&&(i.family=A[i.family]),r.hasOwnProperty(i.family)){a=r[i.family];break}if(!(a=a||r[n]))throw new Error("Could not find a font-family for the rule '"+IB(i)+"' and default family '"+n+"'.");if(a=function(o,l){if(l[o])return l[o];var u=Vp[o],h=u<=Vp.normal?-1:1,d=FB(l,EB,u,h);if(!d)throw new Error("Could not find a matching font-stretch value for "+o);return d}(i.stretch,a),a=function(o,l){if(l[o])return l[o];for(var u=CB[o],h=0;h<u.length;++h)if(l[u[h]])return l[u[h]];throw new Error("Could not find a matching font-style for "+o)}(i.style,a),!(a=function(o,l){if(l[o])return l[o];if(o===400&&l[500])return l[500];if(o===500&&l[400])return l[400];var u=TL[o],h=FB(l,SB,u,o<400?-1:1);if(!h)throw new Error("Could not find a matching font-weight for value "+o);return h}(i.weight,a)))throw new Error("Failed to resolve a font for the rule '"+IB(i)+"'.");return a}function TB(r){return r.trimLeft()}function QL(r,e){for(var t=0;t<r.length;){if(r.charAt(t)===e)return[r.substring(0,t),r.substring(t+1)];t+=1}return null}function NL(r){var e=r.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],r.substring(e[0].length)]}var ac,_B,LB,zp=["times"];(function(r){var e,t,n,A,i,a,s,o,l,u=function(E){return E=E||{},this.isStrokeTransparent=E.isStrokeTransparent||!1,this.strokeOpacity=E.strokeOpacity||1,this.strokeStyle=E.strokeStyle||"#000000",this.fillStyle=E.fillStyle||"#000000",this.isFillTransparent=E.isFillTransparent||!1,this.fillOpacity=E.fillOpacity||1,this.font=E.font||"10px sans-serif",this.textBaseline=E.textBaseline||"alphabetic",this.textAlign=E.textAlign||"left",this.lineWidth=E.lineWidth||1,this.lineJoin=E.lineJoin||"miter",this.lineCap=E.lineCap||"butt",this.path=E.path||[],this.transform=E.transform!==void 0?E.transform.clone():new o,this.globalCompositeOperation=E.globalCompositeOperation||"normal",this.globalAlpha=E.globalAlpha||1,this.clip_path=E.clip_path||[],this.currentPoint=E.currentPoint||new a,this.miterLimit=E.miterLimit||10,this.lastPoint=E.lastPoint||new a,this.lineDashOffset=E.lineDashOffset||0,this.lineDash=E.lineDash||[],this.margin=E.margin||[0,0,0,0],this.prevPageLastElemOffset=E.prevPageLastElemOffset||0,this.ignoreClearRect=typeof E.ignoreClearRect!="boolean"||E.ignoreClearRect,this};r.events.push(["initialized",function(){this.context2d=new h(this),e=this.internal.f2,t=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,A=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,a=this.internal.Point,s=this.internal.Rectangle,o=this.internal.Matrix,l=new u}]);var h=function(E){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var k=E;Object.defineProperty(this,"pdf",{get:function(){return k}});var V=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return V},set:function(de){V=!!de}});var W=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return W},set:function(de){W=!!de}});var z=0;Object.defineProperty(this,"posX",{get:function(){return z},set:function(de){isNaN(de)||(z=de)}});var _=0;Object.defineProperty(this,"posY",{get:function(){return _},set:function(de){isNaN(de)||(_=de)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(de){var U;typeof de=="number"?U=[de,de,de,de]:((U=new Array(4))[0]=de[0],U[1]=de.length>=2?de[1]:U[0],U[2]=de.length>=3?de[2]:U[0],U[3]=de.length>=4?de[3]:U[1]),l.margin=U}});var L=!1;Object.defineProperty(this,"autoPaging",{get:function(){return L},set:function(de){L=de}});var Z=0;Object.defineProperty(this,"lastBreak",{get:function(){return Z},set:function(de){Z=de}});var se=[];Object.defineProperty(this,"pageBreaks",{get:function(){return se},set:function(de){se=de}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(de){de instanceof u&&(l=de)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(de){l.path=de}});var $=[];Object.defineProperty(this,"ctxStack",{get:function(){return $},set:function(de){$=de}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(de){var U;U=d(de),this.ctx.fillStyle=U.style,this.ctx.isFillTransparent=U.a===0,this.ctx.fillOpacity=U.a,this.pdf.setFillColor(U.r,U.g,U.b,{a:U.a}),this.pdf.setTextColor(U.r,U.g,U.b,{a:U.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(de){var U=d(de);this.ctx.strokeStyle=U.style,this.ctx.isStrokeTransparent=U.a===0,this.ctx.strokeOpacity=U.a,U.a===0?this.pdf.setDrawColor(255,255,255):(U.a,this.pdf.setDrawColor(U.r,U.g,U.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(de){["butt","round","square"].indexOf(de)!==-1&&(this.ctx.lineCap=de,this.pdf.setLineCap(de))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(de){isNaN(de)||(this.ctx.lineWidth=de,this.pdf.setLineWidth(de))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(de){["bevel","round","miter"].indexOf(de)!==-1&&(this.ctx.lineJoin=de,this.pdf.setLineJoin(de))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(de){isNaN(de)||(this.ctx.miterLimit=de,this.pdf.setMiterLimit(de))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(de){this.ctx.textBaseline=de}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(de){["right","end","center","left","start"].indexOf(de)!==-1&&(this.ctx.textAlign=de)}});var te=null;function me(de,U){if(te===null){var b=function(x){var N=[];return Object.keys(x).forEach(function(ae){x[ae].forEach(function(fe){var ue=null;switch(fe){case"bold":ue={family:ae,weight:"bold"};break;case"italic":ue={family:ae,style:"italic"};break;case"bolditalic":ue={family:ae,weight:"bold",style:"italic"};break;case"":case"normal":ue={family:ae}}ue!==null&&(ue.ref={name:ae,style:fe},N.push(ue))})}),N}(de.getFontList());te=function(x){for(var N={},ae=0;ae<x.length;++ae){var fe=Gp(x[ae]),ue=fe.family,be=fe.stretch,Fe=fe.style,Se=fe.weight;N[ue]=N[ue]||{},N[ue][be]=N[ue][be]||{},N[ue][be][Fe]=N[ue][be][Fe]||{},N[ue][be][Fe][Se]=fe}return N}(b.concat(U))}return te}var P=null;Object.defineProperty(this,"fontFaces",{get:function(){return P},set:function(de){te=null,P=de}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(de){var U;if(this.ctx.font=de,(U=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(de))!==null){var b=U[1],x=(U[2],U[3]),N=U[4],ae=(U[5],U[6]),fe=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(N)[2];N=Math.floor(fe==="px"?parseFloat(N)*this.pdf.internal.scaleFactor:fe==="em"?parseFloat(N)*this.pdf.getFontSize():parseFloat(N)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(N);var ue=function(et){var ut,We,kt=[],st=et.trim();if(st==="")return zp;if(st in UB)return[UB[st]];for(;st!=="";){switch(We=null,ut=(st=TB(st)).charAt(0)){case'"':case"'":We=QL(st.substring(1),ut);break;default:We=NL(st)}if(We===null||(kt.push(We[0]),(st=TB(We[1]))!==""&&st.charAt(0)!==","))return zp;st=st.replace(/^,/,"")}return kt}(ae);if(this.fontFaces){var be=LL(me(this.pdf,this.fontFaces),ue.map(function(et){return{family:et,stretch:"normal",weight:x,style:b}}));this.pdf.setFont(be.ref.name,be.ref.style)}else{var Fe="";(x==="bold"||parseInt(x,10)>=700||b==="bold")&&(Fe="bold"),b==="italic"&&(Fe+="italic"),Fe.length===0&&(Fe="normal");for(var Se="",Pe={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},je=0;je<ue.length;je++){if(this.pdf.internal.getFont(ue[je],Fe,{noFallback:!0,disableWarning:!0})!==void 0){Se=ue[je];break}if(Fe==="bolditalic"&&this.pdf.internal.getFont(ue[je],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Se=ue[je],Fe="bold";else if(this.pdf.internal.getFont(ue[je],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Se=ue[je],Fe="normal";break}}if(Se===""){for(var $e=0;$e<ue.length;$e++)if(Pe[ue[$e]]){Se=Pe[ue[$e]];break}}Se=Se===""?"Times":Se,this.pdf.setFont(Se,Fe)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(de){this.ctx.globalCompositeOperation=de}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(de){this.ctx.globalAlpha=de}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(de){this.ctx.lineDashOffset=de,ie.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(de){this.ctx.lineDash=de,ie.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(de){this.ctx.ignoreClearRect=!!de}})};h.prototype.setLineDash=function(E){this.lineDash=E},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){I.call(this,"fill",!1)},h.prototype.stroke=function(){I.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(E,k){if(isNaN(E)||isNaN(k))throw Zt.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var V=this.ctx.transform.applyToPoint(new a(E,k));this.path.push({type:"mt",x:V.x,y:V.y}),this.ctx.lastPoint=new a(E,k)},h.prototype.closePath=function(){var E=new a(0,0),k=0;for(k=this.path.length-1;k!==-1;k--)if(this.path[k].type==="begin"&&Rt(this.path[k+1])==="object"&&typeof this.path[k+1].x=="number"){E=new a(this.path[k+1].x,this.path[k+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(E.x,E.y)},h.prototype.lineTo=function(E,k){if(isNaN(E)||isNaN(k))throw Zt.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var V=this.ctx.transform.applyToPoint(new a(E,k));this.path.push({type:"lt",x:V.x,y:V.y}),this.ctx.lastPoint=new a(V.x,V.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),I.call(this,null,!0)},h.prototype.quadraticCurveTo=function(E,k,V,W){if(isNaN(V)||isNaN(W)||isNaN(E)||isNaN(k))throw Zt.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var z=this.ctx.transform.applyToPoint(new a(V,W)),_=this.ctx.transform.applyToPoint(new a(E,k));this.path.push({type:"qct",x1:_.x,y1:_.y,x:z.x,y:z.y}),this.ctx.lastPoint=new a(z.x,z.y)},h.prototype.bezierCurveTo=function(E,k,V,W,z,_){if(isNaN(z)||isNaN(_)||isNaN(E)||isNaN(k)||isNaN(V)||isNaN(W))throw Zt.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var L=this.ctx.transform.applyToPoint(new a(z,_)),Z=this.ctx.transform.applyToPoint(new a(E,k)),se=this.ctx.transform.applyToPoint(new a(V,W));this.path.push({type:"bct",x1:Z.x,y1:Z.y,x2:se.x,y2:se.y,x:L.x,y:L.y}),this.ctx.lastPoint=new a(L.x,L.y)},h.prototype.arc=function(E,k,V,W,z,_){if(isNaN(E)||isNaN(k)||isNaN(V)||isNaN(W)||isNaN(z))throw Zt.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(_=!!_,!this.ctx.transform.isIdentity){var L=this.ctx.transform.applyToPoint(new a(E,k));E=L.x,k=L.y;var Z=this.ctx.transform.applyToPoint(new a(0,V)),se=this.ctx.transform.applyToPoint(new a(0,0));V=Math.sqrt(Math.pow(Z.x-se.x,2)+Math.pow(Z.y-se.y,2))}Math.abs(z-W)>=2*Math.PI&&(W=0,z=2*Math.PI),this.path.push({type:"arc",x:E,y:k,radius:V,startAngle:W,endAngle:z,counterclockwise:_})},h.prototype.arcTo=function(E,k,V,W,z){throw new Error("arcTo not implemented.")},h.prototype.rect=function(E,k,V,W){if(isNaN(E)||isNaN(k)||isNaN(V)||isNaN(W))throw Zt.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(E,k),this.lineTo(E+V,k),this.lineTo(E+V,k+W),this.lineTo(E,k+W),this.lineTo(E,k),this.lineTo(E+V,k),this.lineTo(E,k)},h.prototype.fillRect=function(E,k,V,W){if(isNaN(E)||isNaN(k)||isNaN(V)||isNaN(W))throw Zt.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!c.call(this)){var z={};this.lineCap!=="butt"&&(z.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(z.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(E,k,V,W),this.fill(),z.hasOwnProperty("lineCap")&&(this.lineCap=z.lineCap),z.hasOwnProperty("lineJoin")&&(this.lineJoin=z.lineJoin)}},h.prototype.strokeRect=function(E,k,V,W){if(isNaN(E)||isNaN(k)||isNaN(V)||isNaN(W))throw Zt.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");p.call(this)||(this.beginPath(),this.rect(E,k,V,W),this.stroke())},h.prototype.clearRect=function(E,k,V,W){if(isNaN(E)||isNaN(k)||isNaN(V)||isNaN(W))throw Zt.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(E,k,V,W))},h.prototype.save=function(E){E=typeof E!="boolean"||E;for(var k=this.pdf.internal.getCurrentPageInfo().pageNumber,V=0;V<this.pdf.internal.getNumberOfPages();V++)this.pdf.setPage(V+1),this.pdf.internal.out("q");if(this.pdf.setPage(k),E){this.ctx.fontSize=this.pdf.internal.getFontSize();var W=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=W}},h.prototype.restore=function(E){E=typeof E!="boolean"||E;for(var k=this.pdf.internal.getCurrentPageInfo().pageNumber,V=0;V<this.pdf.internal.getNumberOfPages();V++)this.pdf.setPage(V+1),this.pdf.internal.out("Q");this.pdf.setPage(k),E&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(E){var k,V,W,z;if(E.isCanvasGradient===!0&&(E=E.getColor()),!E)return{r:0,g:0,b:0,a:0,style:E};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(E))k=0,V=0,W=0,z=0;else{var _=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(E);if(_!==null)k=parseInt(_[1]),V=parseInt(_[2]),W=parseInt(_[3]),z=1;else if((_=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(E))!==null)k=parseInt(_[1]),V=parseInt(_[2]),W=parseInt(_[3]),z=parseFloat(_[4]);else{if(z=1,typeof E=="string"&&E.charAt(0)!=="#"){var L=new fB(E);E=L.ok?L.toHex():"#000000"}E.length===4?(k=E.substring(1,2),k+=k,V=E.substring(2,3),V+=V,W=E.substring(3,4),W+=W):(k=E.substring(1,3),V=E.substring(3,5),W=E.substring(5,7)),k=parseInt(k,16),V=parseInt(V,16),W=parseInt(W,16)}}return{r:k,g:V,b:W,a:z,style:E}},c=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},p=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};h.prototype.fillText=function(E,k,V,W){if(isNaN(k)||isNaN(V)||typeof E!="string")throw Zt.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(W=isNaN(W)?void 0:W,!c.call(this)){var z=oe(this.ctx.transform.rotation),_=this.ctx.transform.scaleX;S.call(this,{text:E,x:k,y:V,scale:_,angle:z,align:this.textAlign,maxWidth:W})}},h.prototype.strokeText=function(E,k,V,W){if(isNaN(k)||isNaN(V)||typeof E!="string")throw Zt.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!p.call(this)){W=isNaN(W)?void 0:W;var z=oe(this.ctx.transform.rotation),_=this.ctx.transform.scaleX;S.call(this,{text:E,x:k,y:V,scale:_,renderingMode:"stroke",angle:z,align:this.textAlign,maxWidth:W})}},h.prototype.measureText=function(E){if(typeof E!="string")throw Zt.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var k=this.pdf,V=this.pdf.internal.scaleFactor,W=k.internal.getFontSize(),z=k.getStringUnitWidth(E)*W/k.internal.scaleFactor,_=function(L){var Z=(L=L||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Z}}),this};return new _({width:z*=Math.round(96*V/72*1e4)/1e4})},h.prototype.scale=function(E,k){if(isNaN(E)||isNaN(k))throw Zt.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var V=new o(E,0,0,k,0,0);this.ctx.transform=this.ctx.transform.multiply(V)},h.prototype.rotate=function(E){if(isNaN(E))throw Zt.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var k=new o(Math.cos(E),Math.sin(E),-Math.sin(E),Math.cos(E),0,0);this.ctx.transform=this.ctx.transform.multiply(k)},h.prototype.translate=function(E,k){if(isNaN(E)||isNaN(k))throw Zt.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var V=new o(1,0,0,1,E,k);this.ctx.transform=this.ctx.transform.multiply(V)},h.prototype.transform=function(E,k,V,W,z,_){if(isNaN(E)||isNaN(k)||isNaN(V)||isNaN(W)||isNaN(z)||isNaN(_))throw Zt.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var L=new o(E,k,V,W,z,_);this.ctx.transform=this.ctx.transform.multiply(L)},h.prototype.setTransform=function(E,k,V,W,z,_){E=isNaN(E)?1:E,k=isNaN(k)?0:k,V=isNaN(V)?0:V,W=isNaN(W)?1:W,z=isNaN(z)?0:z,_=isNaN(_)?0:_,this.ctx.transform=new o(E,k,V,W,z,_)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(E,k,V,W,z,_,L,Z,se){var $=this.pdf.getImageProperties(E),te=1,me=1,P=1,de=1;W!==void 0&&Z!==void 0&&(P=Z/W,de=se/z,te=$.width/W*Z/W,me=$.height/z*se/z),_===void 0&&(_=k,L=V,k=0,V=0),W!==void 0&&Z===void 0&&(Z=W,se=z),W===void 0&&Z===void 0&&(Z=$.width,se=$.height);for(var U,b=this.ctx.transform.decompose(),x=oe(b.rotate.shx),N=new o,ae=(N=(N=(N=N.multiply(b.translate)).multiply(b.skew)).multiply(b.scale)).applyToRectangle(new s(_-k*P,L-V*de,W*te,z*me)),fe=y.call(this,ae),ue=[],be=0;be<fe.length;be+=1)ue.indexOf(fe[be])===-1&&ue.push(fe[be]);if(B(ue),this.autoPaging)for(var Fe=ue[0],Se=ue[ue.length-1],Pe=Fe;Pe<Se+1;Pe++){this.pdf.setPage(Pe);var je=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],$e=Pe===1?this.posY+this.margin[0]:this.margin[0],et=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ut=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],We=Pe===1?0:et+(Pe-2)*ut;if(this.ctx.clip_path.length!==0){var kt=this.path;U=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(U,this.posX+this.margin[3],-We+$e+this.ctx.prevPageLastElemOffset),O.call(this,"fill",!0),this.path=kt}var st=JSON.parse(JSON.stringify(ae));st=w([st],this.posX+this.margin[3],-We+$e+this.ctx.prevPageLastElemOffset)[0];var ur=(Pe>Fe||Pe<Se)&&m.call(this);ur&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],je,ut,null).clip().discardPath()),this.pdf.addImage(E,"JPEG",st.x,st.y,st.w,st.h,null,null,x),ur&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(E,"JPEG",ae.x,ae.y,ae.w,ae.h,null,null,x)};var y=function(E,k,V){var W=[];k=k||this.pdf.internal.pageSize.width,V=V||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var z=this.posY+this.ctx.prevPageLastElemOffset;switch(E.type){default:case"mt":case"lt":W.push(Math.floor((E.y+z)/V)+1);break;case"arc":W.push(Math.floor((E.y+z-E.radius)/V)+1),W.push(Math.floor((E.y+z+E.radius)/V)+1);break;case"qct":var _=q(this.ctx.lastPoint.x,this.ctx.lastPoint.y,E.x1,E.y1,E.x,E.y);W.push(Math.floor((_.y+z)/V)+1),W.push(Math.floor((_.y+_.h+z)/V)+1);break;case"bct":var L=he(this.ctx.lastPoint.x,this.ctx.lastPoint.y,E.x1,E.y1,E.x2,E.y2,E.x,E.y);W.push(Math.floor((L.y+z)/V)+1),W.push(Math.floor((L.y+L.h+z)/V)+1);break;case"rect":W.push(Math.floor((E.y+z)/V)+1),W.push(Math.floor((E.y+E.h+z)/V)+1)}for(var Z=0;Z<W.length;Z+=1)for(;this.pdf.internal.getNumberOfPages()<W[Z];)g.call(this);return W},g=function(){var E=this.fillStyle,k=this.strokeStyle,V=this.font,W=this.lineCap,z=this.lineWidth,_=this.lineJoin;this.pdf.addPage(),this.fillStyle=E,this.strokeStyle=k,this.font=V,this.lineCap=W,this.lineWidth=z,this.lineJoin=_},w=function(E,k,V){for(var W=0;W<E.length;W++)switch(E[W].type){case"bct":E[W].x2+=k,E[W].y2+=V;case"qct":E[W].x1+=k,E[W].y1+=V;case"mt":case"lt":case"arc":default:E[W].x+=k,E[W].y+=V}return E},B=function(E){return E.sort(function(k,V){return k-V})},I=function(E,k){for(var V,W,z=this.fillStyle,_=this.strokeStyle,L=this.lineCap,Z=this.lineWidth,se=Math.abs(Z*this.ctx.transform.scaleX),$=this.lineJoin,te=JSON.parse(JSON.stringify(this.path)),me=JSON.parse(JSON.stringify(this.path)),P=[],de=0;de<me.length;de++)if(me[de].x!==void 0)for(var U=y.call(this,me[de]),b=0;b<U.length;b+=1)P.indexOf(U[b])===-1&&P.push(U[b]);for(var x=0;x<P.length;x++)for(;this.pdf.internal.getNumberOfPages()<P[x];)g.call(this);if(B(P),this.autoPaging)for(var N=P[0],ae=P[P.length-1],fe=N;fe<ae+1;fe++){this.pdf.setPage(fe),this.fillStyle=z,this.strokeStyle=_,this.lineCap=L,this.lineWidth=se,this.lineJoin=$;var ue=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],be=fe===1?this.posY+this.margin[0]:this.margin[0],Fe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Se=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Pe=fe===1?0:Fe+(fe-2)*Se;if(this.ctx.clip_path.length!==0){var je=this.path;V=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(V,this.posX+this.margin[3],-Pe+be+this.ctx.prevPageLastElemOffset),O.call(this,E,!0),this.path=je}if(W=JSON.parse(JSON.stringify(te)),this.path=w(W,this.posX+this.margin[3],-Pe+be+this.ctx.prevPageLastElemOffset),k===!1||fe===0){var $e=(fe>N||fe<ae)&&m.call(this);$e&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ue,Se,null).clip().discardPath()),O.call(this,E,k),$e&&this.pdf.restoreGraphicsState()}this.lineWidth=Z}else this.lineWidth=se,O.call(this,E,k),this.lineWidth=Z;this.path=te},O=function(E,k){if((E!=="stroke"||k||!p.call(this))&&(E==="stroke"||k||!c.call(this))){for(var V,W,z=[],_=this.path,L=0;L<_.length;L++){var Z=_[L];switch(Z.type){case"begin":z.push({begin:!0});break;case"close":z.push({close:!0});break;case"mt":z.push({start:Z,deltas:[],abs:[]});break;case"lt":var se=z.length;if(_[L-1]&&!isNaN(_[L-1].x)&&(V=[Z.x-_[L-1].x,Z.y-_[L-1].y],se>0)){for(;se>=0;se--)if(z[se-1].close!==!0&&z[se-1].begin!==!0){z[se-1].deltas.push(V),z[se-1].abs.push(Z);break}}break;case"bct":V=[Z.x1-_[L-1].x,Z.y1-_[L-1].y,Z.x2-_[L-1].x,Z.y2-_[L-1].y,Z.x-_[L-1].x,Z.y-_[L-1].y],z[z.length-1].deltas.push(V);break;case"qct":var $=_[L-1].x+2/3*(Z.x1-_[L-1].x),te=_[L-1].y+2/3*(Z.y1-_[L-1].y),me=Z.x+2/3*(Z.x1-Z.x),P=Z.y+2/3*(Z.y1-Z.y),de=Z.x,U=Z.y;V=[$-_[L-1].x,te-_[L-1].y,me-_[L-1].x,P-_[L-1].y,de-_[L-1].x,U-_[L-1].y],z[z.length-1].deltas.push(V);break;case"arc":z.push({deltas:[],abs:[],arc:!0}),Array.isArray(z[z.length-1].abs)&&z[z.length-1].abs.push(Z)}}W=k?null:E==="stroke"?"stroke":"fill";for(var b=!1,x=0;x<z.length;x++)if(z[x].arc)for(var N=z[x].abs,ae=0;ae<N.length;ae++){var fe=N[ae];fe.type==="arc"?D.call(this,fe.x,fe.y,fe.radius,fe.startAngle,fe.endAngle,fe.counterclockwise,void 0,k,!b):K.call(this,fe.x,fe.y),b=!0}else if(z[x].close===!0)this.pdf.internal.out("h"),b=!1;else if(z[x].begin!==!0){var ue=z[x].start.x,be=z[x].start.y;F.call(this,z[x].deltas,ue,be),b=!0}W&&Q.call(this,W),k&&J.call(this)}},j=function(E){var k=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,V=k*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return E-V;case"top":return E+k-V;case"hanging":return E+k-2*V;case"middle":return E+k/2-V;case"ideographic":return E;case"alphabetic":default:return E}},R=function(E){return E+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var E=function(){};return E.colorStops=[],E.addColorStop=function(k,V){this.colorStops.push([k,V])},E.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},E.isCanvasGradient=!0,E},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var D=function(E,k,V,W,z,_,L,Z,se){for(var $=ee.call(this,V,W,z,_),te=0;te<$.length;te++){var me=$[te];te===0&&(se?M.call(this,me.x1+E,me.y1+k):K.call(this,me.x1+E,me.y1+k)),ne.call(this,E,k,me.x2,me.y2,me.x3,me.y3,me.x4,me.y4)}Z?J.call(this):Q.call(this,L)},Q=function(E){switch(E){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},J=function(){this.pdf.clip(),this.pdf.discardPath()},M=function(E,k){this.pdf.internal.out(t(E)+" "+n(k)+" m")},S=function(E){var k;switch(E.align){case"right":case"end":k="right";break;case"center":k="center";break;case"left":case"start":default:k="left"}var V=this.pdf.getTextDimensions(E.text),W=j.call(this,E.y),z=R.call(this,W)-V.h,_=this.ctx.transform.applyToPoint(new a(E.x,W)),L=this.ctx.transform.decompose(),Z=new o;Z=(Z=(Z=Z.multiply(L.translate)).multiply(L.skew)).multiply(L.scale);for(var se,$,te,me=this.ctx.transform.applyToRectangle(new s(E.x,W,V.w,V.h)),P=Z.applyToRectangle(new s(E.x,z,V.w,V.h)),de=y.call(this,P),U=[],b=0;b<de.length;b+=1)U.indexOf(de[b])===-1&&U.push(de[b]);if(B(U),this.autoPaging)for(var x=U[0],N=U[U.length-1],ae=x;ae<N+1;ae++){this.pdf.setPage(ae);var fe=ae===1?this.posY+this.margin[0]:this.margin[0],ue=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],be=this.pdf.internal.pageSize.height-this.margin[2],Fe=be-this.margin[0],Se=this.pdf.internal.pageSize.width-this.margin[1],Pe=Se-this.margin[3],je=ae===1?0:ue+(ae-2)*Fe;if(this.ctx.clip_path.length!==0){var $e=this.path;se=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(se,this.posX+this.margin[3],-1*je+fe),O.call(this,"fill",!0),this.path=$e}var et=w([JSON.parse(JSON.stringify(P))],this.posX+this.margin[3],-je+fe+this.ctx.prevPageLastElemOffset)[0];E.scale>=.01&&($=this.pdf.internal.getFontSize(),this.pdf.setFontSize($*E.scale),te=this.lineWidth,this.lineWidth=te*E.scale);var ut=this.autoPaging!=="text";if(ut||et.y+et.h<=be){if(ut||et.y>=fe&&et.x<=Se){var We=ut?E.text:this.pdf.splitTextToSize(E.text,E.maxWidth||Se-et.x)[0],kt=w([JSON.parse(JSON.stringify(me))],this.posX+this.margin[3],-je+fe+this.ctx.prevPageLastElemOffset)[0],st=ut&&(ae>x||ae<N)&&m.call(this);st&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Pe,Fe,null).clip().discardPath()),this.pdf.text(We,kt.x,kt.y,{angle:E.angle,align:k,renderingMode:E.renderingMode}),st&&this.pdf.restoreGraphicsState()}}else et.y<be&&(this.ctx.prevPageLastElemOffset+=be-et.y);E.scale>=.01&&(this.pdf.setFontSize($),this.lineWidth=te)}else E.scale>=.01&&($=this.pdf.internal.getFontSize(),this.pdf.setFontSize($*E.scale),te=this.lineWidth,this.lineWidth=te*E.scale),this.pdf.text(E.text,_.x+this.posX,_.y+this.posY,{angle:E.angle,align:k,renderingMode:E.renderingMode,maxWidth:E.maxWidth}),E.scale>=.01&&(this.pdf.setFontSize($),this.lineWidth=te)},K=function(E,k,V,W){V=V||0,W=W||0,this.pdf.internal.out(t(E+V)+" "+n(k+W)+" l")},F=function(E,k,V){return this.pdf.lines(E,k,V,null,null)},ne=function(E,k,V,W,z,_,L,Z){this.pdf.internal.out([e(A(V+E)),e(i(W+k)),e(A(z+E)),e(i(_+k)),e(A(L+E)),e(i(Z+k)),"c"].join(" "))},ee=function(E,k,V,W){for(var z=2*Math.PI,_=Math.PI/2;k>V;)k-=z;var L=Math.abs(V-k);L<z&&W&&(L=z-L);for(var Z=[],se=W?-1:1,$=k;L>1e-5;){var te=$+se*Math.min(L,_);Z.push(G.call(this,E,$,te)),L-=Math.abs(te-$),$=te}return Z},G=function(E,k,V){var W=(V-k)/2,z=E*Math.cos(W),_=E*Math.sin(W),L=z,Z=-_,se=L*L+Z*Z,$=se+L*z+Z*_,te=4/3*(Math.sqrt(2*se*$)-$)/(L*_-Z*z),me=L-te*Z,P=Z+te*L,de=me,U=-P,b=W+k,x=Math.cos(b),N=Math.sin(b);return{x1:E*Math.cos(k),y1:E*Math.sin(k),x2:me*x-P*N,y2:me*N+P*x,x3:de*x-U*N,y3:de*N+U*x,x4:E*Math.cos(V),y4:E*Math.sin(V)}},oe=function(E){return 180*E/Math.PI},q=function(E,k,V,W,z,_){var L=E+.5*(V-E),Z=k+.5*(W-k),se=z+.5*(V-z),$=_+.5*(W-_),te=Math.min(E,z,L,se),me=Math.max(E,z,L,se),P=Math.min(k,_,Z,$),de=Math.max(k,_,Z,$);return new s(te,P,me-te,de-P)},he=function(E,k,V,W,z,_,L,Z){var se,$,te,me,P,de,U,b,x,N,ae,fe,ue,be,Fe=V-E,Se=W-k,Pe=z-V,je=_-W,$e=L-z,et=Z-_;for($=0;$<41;$++)x=(U=(te=E+(se=$/40)*Fe)+se*((P=V+se*Pe)-te))+se*(P+se*(z+se*$e-P)-U),N=(b=(me=k+se*Se)+se*((de=W+se*je)-me))+se*(de+se*(_+se*et-de)-b),$==0?(ae=x,fe=N,ue=x,be=N):(ae=Math.min(ae,x),fe=Math.min(fe,N),ue=Math.max(ue,x),be=Math.max(be,N));return new s(Math.round(ae),Math.round(fe),Math.round(ue-ae),Math.round(be-fe))},ie=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var E,k,V=(E=this.ctx.lineDash,k=this.ctx.lineDashOffset,JSON.stringify({lineDash:E,lineDashOffset:k}));this.prevLineDash!==V&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=V)}}})(ht.API),function(r){var e=function(i){var a,s,o,l,u,h,d,c,p,m;for(s=[],o=0,l=(i+=a="\0\0\0\0".slice(i.length%4||4)).length;l>o;o+=4)(u=(i.charCodeAt(o)<<24)+(i.charCodeAt(o+1)<<16)+(i.charCodeAt(o+2)<<8)+i.charCodeAt(o+3))!==0?(h=(u=((u=((u=((u=(u-(m=u%85))/85)-(p=u%85))/85)-(c=u%85))/85)-(d=u%85))/85)%85,s.push(h+33,d+33,c+33,p+33,m+33)):s.push(122);return function(y,g){for(var w=g;w>0;w--)y.pop()}(s,a.length),String.fromCharCode.apply(String,s)+"~>"},t=function(i){var a,s,o,l,u,h=String,d="length",c=255,p="charCodeAt",m="slice",y="replace";for(i[m](-2),i=i[m](0,-2)[y](/\s/g,"")[y]("z","!!!!!"),o=[],l=0,u=(i+=a="uuuuu"[m](i[d]%5||5))[d];u>l;l+=5)s=52200625*(i[p](l)-33)+614125*(i[p](l+1)-33)+7225*(i[p](l+2)-33)+85*(i[p](l+3)-33)+(i[p](l+4)-33),o.push(c&s>>24,c&s>>16,c&s>>8,c&s);return function(g,w){for(var B=w;B>0;B--)g.pop()}(o,a[d]),h.fromCharCode.apply(h,o)},n=function(i){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),a.test(i)===!1)return"";for(var s="",o=0;o<i.length;o+=2)s+=String.fromCharCode("0x"+(i[o]+i[o+1]));return s},A=function(i){for(var a=new Uint8Array(i.length),s=i.length;s--;)a[s]=i.charCodeAt(s);return i=(a=Np(a)).reduce(function(o,l){return o+String.fromCharCode(l)},"")};r.processDataByFilters=function(i,a){var s=0,o=i||"",l=[];for(typeof(a=a||[])=="string"&&(a=[a]),s=0;s<a.length;s+=1)switch(a[s]){case"ASCII85Decode":case"/ASCII85Decode":o=t(o),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":o=e(o),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":o=n(o),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":o=o.split("").map(function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)}).join("")+">",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":o=A(o),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[s]+'" is not implemented')}return{data:o,reverseChain:l.reverse().join(" ")}}}(ht.API),function(r){r.loadFile=function(e,t,n){return function(A,i,a){i=i!==!1,a=typeof a=="function"?a:function(){};var s=void 0;try{s=function(o,l,u){var h=new XMLHttpRequest,d=0,c=function(p){var m=p.length,y=[],g=String.fromCharCode;for(d=0;d<m;d+=1)y.push(g(255&p.charCodeAt(d)));return y.join("")};if(h.open("GET",o,!l),h.overrideMimeType("text/plain; charset=x-user-defined"),l===!1&&(h.onload=function(){h.status===200?u(c(this.responseText)):u(void 0)}),h.send(null),l&&h.status===200)return c(h.responseText)}(A,i,a)}catch{}return s}(e,t,n)},r.loadImageFile=r.loadFile}(ht.API),function(r){function e(){return(pt.html2canvas?Promise.resolve(pt.html2canvas):Promise.resolve().then(()=>W2)).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function t(){return(pt.DOMPurify?Promise.resolve(pt.DOMPurify):Promise.resolve().then(()=>cR)).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var n=function(a){var s=Rt(a);return s==="undefined"?"undefined":s==="string"||a instanceof String?"string":s==="number"||a instanceof Number?"number":s==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":s==="object"?"object":"unknown"},A=function(a,s){var o=document.createElement(a);for(var l in s.className&&(o.className=s.className),s.innerHTML&&s.dompurify&&(o.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)o.style[l]=s.style[l];return o},i=function a(s){var o=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),l=a.convert(Promise.resolve(),o);return l=(l=l.setProgress(1,a,1,[a])).set(s)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(a,s){return a.__proto__=s||i.prototype,a},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(a,s){return this.then(function(){switch(s=s||function(o){switch(n(o)){case"string":return"string";case"element":return o.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a)){case"string":return this.then(t).then(function(o){return this.set({src:A("div",{innerHTML:a,dompurify:o})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},i.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},s=function o(l,u){for(var h=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),d=l.firstChild;d;d=d.nextSibling)u!==!0&&d.nodeType===1&&d.nodeName==="SCRIPT"||h.appendChild(o(d,u));return l.nodeType===1&&(l.nodeName==="CANVAS"?(h.width=l.width,h.height=l.height,h.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(h.value=l.value),h.addEventListener("load",function(){h.scrollTop=l.scrollTop,h.scrollLeft=l.scrollLeft},!0)),h}(this.prop.src,this.opt.html2canvas.javascriptEnabled);s.tagName==="BODY"&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=A("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=A("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(s),this.prop.container.firstChild.appendChild(A("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(e).then(function(s){var o=Object.assign({},this.opt.html2canvas);return delete o.onrendered,s(this.prop.container,o)}).then(function(s){(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(e).then(function(s){var o=this.opt.jsPDF,l=this.opt.fontFaces,u=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,h=Object.assign({async:!0,allowTaint:!0,scale:u,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete h.onrendered,o.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,o.context2d.posX=this.opt.x,o.context2d.posY=this.opt.y,o.context2d.margin=this.opt.margin,o.context2d.fontFaces=l,l)for(var d=0;d<l.length;++d){var c=l[d],p=c.src.find(function(m){return m.format==="truetype"});p&&o.addFont(p.url,c.ref.name,c.ref.style)}return h.windowHeight=h.windowHeight||0,h.windowHeight=h.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):h.windowHeight,o.context2d.save(!0),s(this.prop.container,h)}).then(function(s){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(a,s,o){return(o=o||"pdf").toLowerCase()==="img"||o.toLowerCase()==="image"?this.outputImg(a,s):this.outputPdf(a,s)},i.prototype.outputPdf=function(a,s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,s)})},i.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+a+'" is not supported.'}})},i.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(a){if(n(a)!=="object")return this;var s=Object.keys(a||{}).map(function(o){if(o in i.template.prop)return function(){this.prop[o]=a[o]};switch(o){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[o]=a[o]}}},this);return this.then(function(){return this.thenList(s)})},i.prototype.get=function(a,s){return this.then(function(){var o=a in i.template.prop?this.prop[a]:this.opt[a];return s?s(o):o})},i.prototype.setMargin=function(a){return this.then(function(){switch(n(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},i.prototype.setPageSize=function(a){function s(o,l){return Math.floor(o*l/72*96)}return this.then(function(){(a=a||ht.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:s(a.inner.width,a.k),height:s(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},i.prototype.setProgress=function(a,s,o,l){return a!=null&&(this.progress.val=a),s!=null&&(this.progress.state=s),o!=null&&(this.progress.n=o),l!=null&&(this.progress.stack=l),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(a,s,o,l){return this.setProgress(a?this.progress.val+a:null,s||null,o?this.progress.n+o:null,l?this.progress.stack.concat(l):null)},i.prototype.then=function(a,s){var o=this;return this.thenCore(a,s,function(l,u){return o.updateProgress(null,null,1,[l]),Promise.prototype.then.call(this,function(h){return o.updateProgress(null,l),h}).then(l,u).then(function(h){return o.updateProgress(1),h})})},i.prototype.thenCore=function(a,s,o){o=o||Promise.prototype.then,a&&(a=a.bind(this)),s&&(s=s.bind(this));var l=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),u=o.call(l,a,s);return i.convert(u,this.__proto__)},i.prototype.thenExternal=function(a,s){return Promise.prototype.then.call(this,a,s)},i.prototype.thenList=function(a){var s=this;return a.forEach(function(o){s=s.thenCore(o)}),s},i.prototype.catch=function(a){a&&(a=a.bind(this));var s=Promise.prototype.catch.call(this,a);return i.convert(s,this)},i.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},i.prototype.error=function(a){return this.then(function(){throw new Error(a)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,ht.getPageSize=function(a,s,o){if(Rt(a)==="object"){var l=a;a=l.orientation,s=l.unit||s,o=l.format||o}s=s||"mm",o=o||"a4",a=(""+(a||"P")).toLowerCase();var u,h=(""+o).toLowerCase(),d={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(s){case"pt":u=1;break;case"mm":u=72/25.4;break;case"cm":u=72/2.54;break;case"in":u=72;break;case"px":u=.75;break;case"pc":case"em":u=12;break;case"ex":u=6;break;default:throw"Invalid unit: "+s}var c,p=0,m=0;if(d.hasOwnProperty(h))p=d[h][1]/u,m=d[h][0]/u;else try{p=o[1],m=o[0]}catch{throw new Error("Invalid format: "+o)}if(a==="p"||a==="portrait")a="p",m>p&&(c=m,m=p,p=c);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",p>m&&(c=m,m=p,p=c)}return{width:m,height:p,unit:s,k:u,orientation:a}},r.html=function(a,s){(s=s||{}).callback=s.callback||function(){},s.html2canvas=s.html2canvas||{},s.html2canvas.canvas=s.html2canvas.canvas||this.canvas,s.jsPDF=s.jsPDF||this,s.fontFaces=s.fontFaces?s.fontFaces.map(Gp):null;var o=new i(s);return s.worker?o:o.from(a).doCallback()}}(ht.API),ht.API.addJS=function(r){return LB=r,this.internal.events.subscribe("postPutResources",function(){ac=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(ac+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),_B=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+LB+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){ac!==void 0&&_B!==void 0&&this.internal.out("/Names <</JavaScript "+ac+" 0 R>>")}),this},function(r){var e;r.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var A=t.outline.render().split(/\r\n/),i=0;i<A.length;i++){var a=A[i],s=n.exec(a);if(s!=null){var o=s[1];t.internal.newObjectDeferredBegin(o,!1)}t.internal.write(a)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,u=[];for(i=0;i<l;i++){var h=t.internal.newObject();u.push(h);var d=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var c=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<u.length;i++)t.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+c+" 0 R"),t.internal.write(">>","endobj")}}]),r.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),r.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(n,A,i){var a={title:A,options:i,children:[]};return n==null&&(n=this.root),n.children.push(a),a},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(n){n.id=t.internal.newObjectDeferred();for(var A=0;A<n.children.length;A++)this.genIds_r(n.children[A])},t.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},t.outline.renderItems=function(n){for(var A=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<n.children.length;i++){var a=n.children[i];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(n)),i>0&&this.line("/Prev "+this.makeRef(n.children[i-1])),i<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[i+1])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var s=this.count=this.count_r({count:0},a);if(s>0&&this.line("/Count "+s),a.options&&a.options.pageNumber){var o=t.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+A(0)+" 0]")}this.objEnd()}for(var l=0;l<n.children.length;l++)this.renderItems(n.children[l])},t.outline.line=function(n){this.ctx.val+=n+`\r
171
+ `},t.outline.makeRef=function(n){return n.id+" 0 R"},t.outline.makeString=function(n){return"("+t.internal.pdfEscape(n)+")"},t.outline.objStart=function(n){this.ctx.val+=`\r
172
+ `+n.id+` 0 obj\r
173
+ <<\r
174
+ `},t.outline.objEnd=function(){this.ctx.val+=`>> \r
175
+ endobj\r
176
+ `},t.outline.count_r=function(n,A){for(var i=0;i<A.children.length;i++)n.count++,this.count_r(n,A.children[i]);return n.count}}])}(ht.API),function(r){var e=[192,193,194,195,196,197,198,199];r.processJPEG=function(t,n,A,i,a,s){var o,l=this.decode.DCT_DECODE,u=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=a||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(o=function(h){for(var d,c=256*h.charCodeAt(4)+h.charCodeAt(5),p=h.length,m={width:0,height:0,numcomponents:1},y=4;y<p;y+=2){if(y+=c,e.indexOf(h.charCodeAt(y+1))!==-1){d=256*h.charCodeAt(y+5)+h.charCodeAt(y+6),m={width:256*h.charCodeAt(y+7)+h.charCodeAt(y+8),height:d,numcomponents:h.charCodeAt(y+9)};break}c=256*h.charCodeAt(y+2)+h.charCodeAt(y+3)}return m}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:t,width:o.width,height:o.height,colorSpace:s,bitsPerComponent:8,filter:l,index:n,alias:A}}return u}}(ht.API);var ks,sc,QB,NB,OB,OL=function(){var r,e,t;function n(i){var a,s,o,l,u,h,d,c,p,m,y,g,w,B;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},h=null;;){switch(a=this.readUInt32(),p=(function(){var I,O;for(O=[],I=0;I<4;++I)O.push(String.fromCharCode(this.data[this.pos++]));return O}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(a);break;case"fcTL":h&&this.animation.frames.push(h),this.pos+=4,h={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},u=this.readUInt16(),l=this.readUInt16()||100,h.delay=1e3*u/l,h.disposeOp=this.data[this.pos++],h.blendOp=this.data[this.pos++],h.data=[];break;case"IDAT":case"fdAT":for(p==="fdAT"&&(this.pos+=4,a-=4),i=(h!=null?h.data:void 0)||this.imgData,g=0;0<=a?g<a:g>a;0<=a?++g:--g)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(o=this.palette.length/3,this.transparency.indexed=this.read(a),this.transparency.indexed.length>o)throw new Error("More transparent colors than palette size");if((m=o-this.transparency.indexed.length)>0)for(w=0;0<=m?w<m:w>m;0<=m?++w:--w)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(a)[0];break;case 2:this.transparency.rgb=this.read(a)}break;case"tEXt":d=(y=this.read(a)).indexOf(0),c=String.fromCharCode.apply(String,y.slice(0,d)),this.text[c]=String.fromCharCode.apply(String,y.slice(d+1));break;case"IEND":return h&&this.animation.frames.push(h),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(B=this.colorType)===4||B===6,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=a}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(i){var a,s;for(s=[],a=0;0<=i?a<i:a>i;0<=i?++a:--a)s.push(this.data[this.pos++]);return s},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(i){var a=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*a),o=0,l=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function u(h,d,c,p){var m,y,g,w,B,I,O,j,R,D,Q,J,M,S,K,F,ne,ee,G,oe,q,he=Math.ceil((l.width-h)/c),ie=Math.ceil((l.height-d)/p),E=l.width==he&&l.height==ie;for(S=a*he,J=E?s:new Uint8Array(S*ie),I=i.length,M=0,y=0;M<ie&&o<I;){switch(i[o++]){case 0:for(w=ne=0;ne<S;w=ne+=1)J[y++]=i[o++];break;case 1:for(w=ee=0;ee<S;w=ee+=1)m=i[o++],B=w<a?0:J[y-a],J[y++]=(m+B)%256;break;case 2:for(w=G=0;G<S;w=G+=1)m=i[o++],g=(w-w%a)/a,K=M&&J[(M-1)*S+g*a+w%a],J[y++]=(K+m)%256;break;case 3:for(w=oe=0;oe<S;w=oe+=1)m=i[o++],g=(w-w%a)/a,B=w<a?0:J[y-a],K=M&&J[(M-1)*S+g*a+w%a],J[y++]=(m+Math.floor((B+K)/2))%256;break;case 4:for(w=q=0;q<S;w=q+=1)m=i[o++],g=(w-w%a)/a,B=w<a?0:J[y-a],M===0?K=F=0:(K=J[(M-1)*S+g*a+w%a],F=g&&J[(M-1)*S+(g-1)*a+w%a]),O=B+K-F,j=Math.abs(O-B),D=Math.abs(O-K),Q=Math.abs(O-F),R=j<=D&&j<=Q?B:D<=Q?K:F,J[y++]=(m+R)%256;break;default:throw new Error("Invalid filter algorithm: "+i[o-1])}if(!E){var k=((d+M*p)*l.width+h)*a,V=M*S;for(w=0;w<he;w+=1){for(var W=0;W<a;W+=1)s[k++]=J[V++];k+=(c-1)*a}}M++}}return i=hL(i),l.interlaceMethod==1?(u(0,0,8,8),u(4,0,8,8),u(0,4,4,8),u(2,0,4,4),u(0,2,2,4),u(1,0,2,2),u(0,1,1,2)):u(0,0,1,1),s},n.prototype.decodePalette=function(){var i,a,s,o,l,u,h,d,c;for(s=this.palette,u=this.transparency.indexed||[],l=new Uint8Array((u.length||0)+s.length),o=0,i=0,a=h=0,d=s.length;h<d;a=h+=3)l[o++]=s[a],l[o++]=s[a+1],l[o++]=s[a+2],l[o++]=(c=u[i++])!=null?c:255;return l},n.prototype.copyToImageData=function(i,a){var s,o,l,u,h,d,c,p,m,y,g;if(o=this.colors,m=null,s=this.hasAlphaChannel,this.palette.length&&(m=(g=this._decodedPalette)!=null?g:this._decodedPalette=this.decodePalette(),o=4,s=!0),p=(l=i.data||i).length,h=m||a,u=d=0,o===1)for(;u<p;)c=m?4*a[u/4]:d,y=h[c++],l[u++]=y,l[u++]=y,l[u++]=y,l[u++]=s?h[c++]:255,d=c;else for(;u<p;)c=m?4*a[u/4]:d,l[u++]=h[c++],l[u++]=h[c++],l[u++]=h[c++],l[u++]=s?h[c++]:255,d=c},n.prototype.decode=function(){var i;return i=new Uint8Array(this.width*this.height*4),this.copyToImageData(i,this.decodePixels()),i};var A=function(){if(Object.prototype.toString.call(pt)==="[object Window]"){try{e=pt.document.createElement("canvas"),t=e.getContext("2d")}catch{return!1}return!0}return!1};return A(),r=function(i){var a;if(A()===!0)return t.width=i.width,t.height=i.height,t.clearRect(0,0,i.width,i.height),t.putImageData(i,0,0),(a=new Image).src=e.toDataURL(),a;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(i){var a,s,o,l,u,h,d,c;if(this.animation){for(c=[],s=u=0,h=(d=this.animation.frames).length;u<h;s=++u)a=d[s],o=i.createImageData(a.width,a.height),l=this.decodePixels(new Uint8Array(a.data)),this.copyToImageData(o,l),a.imageData=o,c.push(a.image=r(o));return c}},n.prototype.renderFrame=function(i,a){var s,o,l;return s=(o=this.animation.frames)[a],l=o[a-1],a===0&&i.clearRect(0,0,this.width,this.height),(l!=null?l.disposeOp:void 0)===1?i.clearRect(l.xOffset,l.yOffset,l.width,l.height):(l!=null?l.disposeOp:void 0)===2&&i.putImageData(l.imageData,l.xOffset,l.yOffset),s.blendOp===0&&i.clearRect(s.xOffset,s.yOffset,s.width,s.height),i.drawImage(s.image,s.xOffset,s.yOffset)},n.prototype.animate=function(i){var a,s,o,l,u,h,d=this;return s=0,h=this.animation,l=h.numFrames,o=h.frames,u=h.numPlays,(a=function(){var c,p;if(c=s++%l,p=o[c],d.renderFrame(i,c),l>1&&s/l<u)return d.animation._timeout=setTimeout(a,p.delay)})()},n.prototype.stopAnimation=function(){var i;return clearTimeout((i=this.animation)!=null?i._timeout:void 0)},n.prototype.render=function(i){var a,s;return i._png&&i._png.stopAnimation(),i._png=this,i.width=this.width,i.height=this.height,a=i.getContext("2d"),this.animation?(this.decodeFrames(a),this.animate(a)):(s=a.createImageData(this.width,this.height),this.copyToImageData(s,this.decodePixels()),a.putImageData(s,0,0))},n}();/**
177
+ * @license
178
+ *
179
+ * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
180
+ *
181
+ * Permission is hereby granted, free of charge, to any person obtaining
182
+ * a copy of this software and associated documentation files (the
183
+ * "Software"), to deal in the Software without restriction, including
184
+ * without limitation the rights to use, copy, modify, merge, publish,
185
+ * distribute, sublicense, and/or sell copies of the Software, and to
186
+ * permit persons to whom the Software is furnished to do so, subject to
187
+ * the following conditions:
188
+ *
189
+ * The above copyright notice and this permission notice shall be
190
+ * included in all copies or substantial portions of the Software.
191
+ *
192
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
193
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
194
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
195
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
196
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
197
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
198
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
199
+ * ====================================================================
200
+ *//**
201
+ * @license
202
+ * (c) Dean McNamee <dean@gmail.com>, 2013.
203
+ *
204
+ * https://github.com/deanm/omggif
205
+ *
206
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
207
+ * of this software and associated documentation files (the "Software"), to
208
+ * deal in the Software without restriction, including without limitation the
209
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
210
+ * sell copies of the Software, and to permit persons to whom the Software is
211
+ * furnished to do so, subject to the following conditions:
212
+ *
213
+ * The above copyright notice and this permission notice shall be included in
214
+ * all copies or substantial portions of the Software.
215
+ *
216
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
217
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
218
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
219
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
220
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
221
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
222
+ * IN THE SOFTWARE.
223
+ *
224
+ * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
225
+ * including animation and compression. It does not rely on any specific
226
+ * underlying system, so should run in the browser, Node, or Plask.
227
+ */function PL(r){var e=0;if(r[e++]!==71||r[e++]!==73||r[e++]!==70||r[e++]!==56||(r[e++]+1&253)!=56||r[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=r[e++]|r[e++]<<8,n=r[e++]|r[e++]<<8,A=r[e++],i=A>>7,a=1<<(7&A)+1;r[e++],r[e++];var s=null,o=null;i&&(s=e,o=a,e+=3*a);var l=!0,u=[],h=0,d=null,c=0,p=null;for(this.width=t,this.height=n;l&&e<r.length;)switch(r[e++]){case 33:switch(r[e++]){case 255:if(r[e]!==11||r[e+1]==78&&r[e+2]==69&&r[e+3]==84&&r[e+4]==83&&r[e+5]==67&&r[e+6]==65&&r[e+7]==80&&r[e+8]==69&&r[e+9]==50&&r[e+10]==46&&r[e+11]==48&&r[e+12]==3&&r[e+13]==1&&r[e+16]==0)e+=14,p=r[e++]|r[e++]<<8,e++;else for(e+=12;;){if(!((M=r[e++])>=0))throw Error("Invalid block size");if(M===0)break;e+=M}break;case 249:if(r[e++]!==4||r[e+4]!==0)throw new Error("Invalid graphics extension block.");var m=r[e++];h=r[e++]|r[e++]<<8,d=r[e++],!(1&m)&&(d=null),c=m>>2&7,e++;break;case 254:for(;;){if(!((M=r[e++])>=0))throw Error("Invalid block size");if(M===0)break;e+=M}break;default:throw new Error("Unknown graphic control label: 0x"+r[e-1].toString(16))}break;case 44:var y=r[e++]|r[e++]<<8,g=r[e++]|r[e++]<<8,w=r[e++]|r[e++]<<8,B=r[e++]|r[e++]<<8,I=r[e++],O=I>>6&1,j=1<<(7&I)+1,R=s,D=o,Q=!1;I>>7&&(Q=!0,R=e,D=j,e+=3*j);var J=e;for(e++;;){var M;if(!((M=r[e++])>=0))throw Error("Invalid block size");if(M===0)break;e+=M}u.push({x:y,y:g,width:w,height:B,has_local_palette:Q,palette_offset:R,palette_size:D,data_offset:J,data_length:e-J,transparent_index:d,interlaced:!!O,delay:h,disposal:c});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+r[e-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return p},this.frameInfo=function(S){if(S<0||S>=u.length)throw new Error("Frame index out of range.");return u[S]},this.decodeAndBlitFrameBGRA=function(S,K){var F=this.frameInfo(S),ne=F.width*F.height,ee=new Uint8Array(ne);PB(r,F.data_offset,ee,ne);var G=F.palette_offset,oe=F.transparent_index;oe===null&&(oe=256);var q=F.width,he=t-q,ie=q,E=4*(F.y*t+F.x),k=4*((F.y+F.height)*t+F.x),V=E,W=4*he;F.interlaced===!0&&(W+=4*t*7);for(var z=8,_=0,L=ee.length;_<L;++_){var Z=ee[_];if(ie===0&&(ie=q,(V+=W)>=k&&(W=4*he+4*t*(z-1),V=E+(q+he)*(z<<1),z>>=1)),Z===oe)V+=4;else{var se=r[G+3*Z],$=r[G+3*Z+1],te=r[G+3*Z+2];K[V++]=te,K[V++]=$,K[V++]=se,K[V++]=255}--ie}},this.decodeAndBlitFrameRGBA=function(S,K){var F=this.frameInfo(S),ne=F.width*F.height,ee=new Uint8Array(ne);PB(r,F.data_offset,ee,ne);var G=F.palette_offset,oe=F.transparent_index;oe===null&&(oe=256);var q=F.width,he=t-q,ie=q,E=4*(F.y*t+F.x),k=4*((F.y+F.height)*t+F.x),V=E,W=4*he;F.interlaced===!0&&(W+=4*t*7);for(var z=8,_=0,L=ee.length;_<L;++_){var Z=ee[_];if(ie===0&&(ie=q,(V+=W)>=k&&(W=4*he+4*t*(z-1),V=E+(q+he)*(z<<1),z>>=1)),Z===oe)V+=4;else{var se=r[G+3*Z],$=r[G+3*Z+1],te=r[G+3*Z+2];K[V++]=se,K[V++]=$,K[V++]=te,K[V++]=255}--ie}}}function PB(r,e,t,n){for(var A=r[e++],i=1<<A,a=i+1,s=a+1,o=A+1,l=(1<<o)-1,u=0,h=0,d=0,c=r[e++],p=new Int32Array(4096),m=null;;){for(;u<16&&c!==0;)h|=r[e++]<<u,u+=8,c===1?c=r[e++]:--c;if(u<o)break;var y=h&l;if(h>>=o,u-=o,y!==i){if(y===a)break;for(var g=y<s?y:m,w=0,B=g;B>i;)B=p[B]>>8,++w;var I=B;if(d+w+(g!==y?1:0)>n)return void Zt.log("Warning, gif stream longer than expected.");t[d++]=I;var O=d+=w;for(g!==y&&(t[d++]=I),B=g;w--;)B=p[B],t[--O]=255&B,B>>=8;m!==null&&s<4096&&(p[s++]=m<<8|I,s>=l+1&&o<12&&(++o,l=l<<1|1)),m=y}else s=a+1,l=(1<<(o=A+1))-1,m=null}return d!==n&&Zt.log("Warning, gif stream shorter than expected."),t}/**
228
+ * @license
229
+ Copyright (c) 2008, Adobe Systems Incorporated
230
+ All rights reserved.
231
+
232
+ Redistribution and use in source and binary forms, with or without
233
+ modification, are permitted provided that the following conditions are
234
+ met:
235
+
236
+ * Redistributions of source code must retain the above copyright notice,
237
+ this list of conditions and the following disclaimer.
238
+
239
+ * Redistributions in binary form must reproduce the above copyright
240
+ notice, this list of conditions and the following disclaimer in the
241
+ documentation and/or other materials provided with the distribution.
242
+
243
+ * Neither the name of Adobe Systems Incorporated nor the names of its
244
+ contributors may be used to endorse or promote products derived from
245
+ this software without specific prior written permission.
246
+
247
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
248
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
249
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
250
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
251
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
252
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
253
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
254
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
255
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
256
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
257
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
258
+ */function Wp(r){var e,t,n,A,i,a=Math.floor,s=new Array(64),o=new Array(64),l=new Array(64),u=new Array(64),h=new Array(65535),d=new Array(65535),c=new Array(64),p=new Array(64),m=[],y=0,g=7,w=new Array(64),B=new Array(64),I=new Array(64),O=new Array(256),j=new Array(2048),R=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],D=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Q=[0,1,2,3,4,5,6,7,8,9,10,11],J=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],M=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],S=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],K=[0,1,2,3,4,5,6,7,8,9,10,11],F=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],ne=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function ee(E,k){for(var V=0,W=0,z=new Array,_=1;_<=16;_++){for(var L=1;L<=E[_];L++)z[k[W]]=[],z[k[W]][0]=V,z[k[W]][1]=_,W++,V++;V*=2}return z}function G(E){for(var k=E[0],V=E[1]-1;V>=0;)k&1<<V&&(y|=1<<g),V--,--g<0&&(y==255?(oe(255),oe(0)):oe(y),g=7,y=0)}function oe(E){m.push(E)}function q(E){oe(E>>8&255),oe(255&E)}function he(E,k,V,W,z){for(var _,L=z[0],Z=z[240],se=function(N,ae){var fe,ue,be,Fe,Se,Pe,je,$e,et,ut,We=0;for(et=0;et<8;++et){fe=N[We],ue=N[We+1],be=N[We+2],Fe=N[We+3],Se=N[We+4],Pe=N[We+5],je=N[We+6];var kt=fe+($e=N[We+7]),st=fe-$e,ur=ue+je,Et=ue-je,gt=be+Pe,cr=be-Pe,St=Fe+Se,qr=Fe-Se,Ht=kt+St,nr=kt-St,Dt=ur+gt,Gt=ur-gt;N[We]=Ht+Dt,N[We+4]=Ht-Dt;var it=.707106781*(Gt+nr);N[We+2]=nr+it,N[We+6]=nr-it;var It=.382683433*((Ht=qr+cr)-(Gt=Et+st)),Ii=.5411961*Ht+It,Hr=1.306562965*Gt+It,Mn=.707106781*(Dt=cr+Et),Jn=st+Mn,ct=st-Mn;N[We+5]=ct+Ii,N[We+3]=ct-Ii,N[We+1]=Jn+Hr,N[We+7]=Jn-Hr,We+=8}for(We=0,et=0;et<8;++et){fe=N[We],ue=N[We+8],be=N[We+16],Fe=N[We+24],Se=N[We+32],Pe=N[We+40],je=N[We+48];var Zn=fe+($e=N[We+56]),Tn=fe-$e,Xr=ue+je,Lr=ue-je,Ot=be+Pe,Yr=be-Pe,Ti=Fe+Se,pA=Fe-Se,_n=Zn+Ti,on=Zn-Ti,Qr=Xr+Ot,eA=Xr-Ot;N[We]=_n+Qr,N[We+32]=_n-Qr;var Ln=.707106781*(eA+on);N[We+16]=on+Ln,N[We+48]=on-Ln;var tA=.382683433*((_n=pA+Yr)-(eA=Lr+Tn)),Ai=.5411961*_n+tA,ha=1.306562965*eA+tA,at=.707106781*(Qr=Yr+Lr),we=Tn+at,Ge=Tn-at;N[We+40]=Ge+Ai,N[We+24]=Ge-Ai,N[We+8]=we+ha,N[We+56]=we-ha,We++}for(et=0;et<64;++et)ut=N[et]*ae[et],c[et]=ut>0?ut+.5|0:ut-.5|0;return c}(E,k),$=0;$<64;++$)p[R[$]]=se[$];var te=p[0]-V;V=p[0],te==0?G(W[0]):(G(W[d[_=32767+te]]),G(h[_]));for(var me=63;me>0&&p[me]==0;)me--;if(me==0)return G(L),V;for(var P,de=1;de<=me;){for(var U=de;p[de]==0&&de<=me;)++de;var b=de-U;if(b>=16){P=b>>4;for(var x=1;x<=P;++x)G(Z);b&=15}_=32767+p[de],G(z[(b<<4)+d[_]]),G(h[_]),de++}return me!=63&&G(L),V}function ie(E){E=Math.min(Math.max(E,1),100),i!=E&&(function(k){for(var V=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],W=0;W<64;W++){var z=a((V[W]*k+50)/100);z=Math.min(Math.max(z,1),255),s[R[W]]=z}for(var _=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],L=0;L<64;L++){var Z=a((_[L]*k+50)/100);Z=Math.min(Math.max(Z,1),255),o[R[L]]=Z}for(var se=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],$=0,te=0;te<8;te++)for(var me=0;me<8;me++)l[$]=1/(s[R[$]]*se[te]*se[me]*8),u[$]=1/(o[R[$]]*se[te]*se[me]*8),$++}(E<50?Math.floor(5e3/E):Math.floor(200-2*E)),i=E)}this.encode=function(E,k){k&&ie(k),m=new Array,y=0,g=7,q(65496),q(65504),q(16),oe(74),oe(70),oe(73),oe(70),oe(0),oe(1),oe(1),oe(0),q(1),q(1),oe(0),oe(0),function(){q(65499),q(132),oe(0);for(var ue=0;ue<64;ue++)oe(s[ue]);oe(1);for(var be=0;be<64;be++)oe(o[be])}(),function(ue,be){q(65472),q(17),oe(8),q(be),q(ue),oe(3),oe(1),oe(17),oe(0),oe(2),oe(17),oe(1),oe(3),oe(17),oe(1)}(E.width,E.height),function(){q(65476),q(418),oe(0);for(var ue=0;ue<16;ue++)oe(D[ue+1]);for(var be=0;be<=11;be++)oe(Q[be]);oe(16);for(var Fe=0;Fe<16;Fe++)oe(J[Fe+1]);for(var Se=0;Se<=161;Se++)oe(M[Se]);oe(1);for(var Pe=0;Pe<16;Pe++)oe(S[Pe+1]);for(var je=0;je<=11;je++)oe(K[je]);oe(17);for(var $e=0;$e<16;$e++)oe(F[$e+1]);for(var et=0;et<=161;et++)oe(ne[et])}(),q(65498),q(12),oe(3),oe(1),oe(0),oe(2),oe(17),oe(3),oe(17),oe(0),oe(63),oe(0);var V=0,W=0,z=0;y=0,g=7,this.encode.displayName="_encode_";for(var _,L,Z,se,$,te,me,P,de,U=E.data,b=E.width,x=E.height,N=4*b,ae=0;ae<x;){for(_=0;_<N;){for($=N*ae+_,me=-1,P=0,de=0;de<64;de++)te=$+(P=de>>3)*N+(me=4*(7&de)),ae+P>=x&&(te-=N*(ae+1+P-x)),_+me>=N&&(te-=_+me-N+4),L=U[te++],Z=U[te++],se=U[te++],w[de]=(j[L]+j[Z+256>>0]+j[se+512>>0]>>16)-128,B[de]=(j[L+768>>0]+j[Z+1024>>0]+j[se+1280>>0]>>16)-128,I[de]=(j[L+1280>>0]+j[Z+1536>>0]+j[se+1792>>0]>>16)-128;V=he(w,l,V,e,n),W=he(B,u,W,t,A),z=he(I,u,z,t,A),_+=32}ae+=8}if(g>=0){var fe=[];fe[1]=g+1,fe[0]=(1<<g+1)-1,G(fe)}return q(65497),new Uint8Array(m)},r=r||50,function(){for(var E=String.fromCharCode,k=0;k<256;k++)O[k]=E(k)}(),e=ee(D,Q),t=ee(S,K),n=ee(J,M),A=ee(F,ne),function(){for(var E=1,k=2,V=1;V<=15;V++){for(var W=E;W<k;W++)d[32767+W]=V,h[32767+W]=[],h[32767+W][1]=V,h[32767+W][0]=W;for(var z=-(k-1);z<=-E;z++)d[32767+z]=V,h[32767+z]=[],h[32767+z][1]=V,h[32767+z][0]=k-1+z;E<<=1,k<<=1}}(),function(){for(var E=0;E<256;E++)j[E]=19595*E,j[E+256>>0]=38470*E,j[E+512>>0]=7471*E+32768,j[E+768>>0]=-11059*E,j[E+1024>>0]=-21709*E,j[E+1280>>0]=32768*E+8421375,j[E+1536>>0]=-27439*E,j[E+1792>>0]=-5329*E}(),ie(r)}/**
259
+ * @license
260
+ * Copyright (c) 2017 Aras Abbasi
261
+ *
262
+ * Licensed under the MIT License.
263
+ * http://opensource.org/licenses/mit-license
264
+ */function FA(r,e){if(this.pos=0,this.buffer=r,this.datav=new DataView(r.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function RB(r){function e(D){if(!D)throw Error("assert :P")}function t(D,Q,J){for(var M=0;4>M;M++)if(D[Q+M]!=J.charCodeAt(M))return!0;return!1}function n(D,Q,J,M,S){for(var K=0;K<S;K++)D[Q+K]=J[M+K]}function A(D,Q,J,M){for(var S=0;S<M;S++)D[Q+S]=J}function i(D){return new Int32Array(D)}function a(D,Q){for(var J=[],M=0;M<D;M++)J.push(new Q);return J}function s(D,Q){var J=[];return function M(S,K,F){for(var ne=F[K],ee=0;ee<ne&&(S.push(F.length>K+1?[]:new Q),!(F.length<K+1));ee++)M(S[ee],K+1,F)}(J,0,D),J}var o=function(){var D=this;function Q(f,v){for(var T=1<<v-1>>>0;f&T;)T>>>=1;return T?(f&T-1)+T:f}function J(f,v,T,H,X){e(!(H%T));do f[v+(H-=T)]=X;while(0<H)}function M(f,v,T,H,X){if(e(2328>=X),512>=X)var re=i(512);else if((re=i(X))==null)return 0;return function(Ae,le,ce,pe,ye,Ue){var Ie,Ce,ke=le,Ne=1<<ce,Be=i(16),xe=i(16);for(e(ye!=0),e(pe!=null),e(Ae!=null),e(0<ce),Ce=0;Ce<ye;++Ce){if(15<pe[Ce])return 0;++Be[pe[Ce]]}if(Be[0]==ye)return 0;for(xe[1]=0,Ie=1;15>Ie;++Ie){if(Be[Ie]>1<<Ie)return 0;xe[Ie+1]=xe[Ie]+Be[Ie]}for(Ce=0;Ce<ye;++Ce)Ie=pe[Ce],0<pe[Ce]&&(Ue[xe[Ie]++]=Ce);if(xe[15]==1)return(pe=new S).g=0,pe.value=Ue[0],J(Ae,ke,1,Ne,pe),Ne;var Re,He=-1,De=Ne-1,rt=0,Xe=1,ft=1,Ye=1<<ce;for(Ce=0,Ie=1,ye=2;Ie<=ce;++Ie,ye<<=1){if(Xe+=ft<<=1,0>(ft-=Be[Ie]))return 0;for(;0<Be[Ie];--Be[Ie])(pe=new S).g=Ie,pe.value=Ue[Ce++],J(Ae,ke+rt,ye,Ye,pe),rt=Q(rt,Ie)}for(Ie=ce+1,ye=2;15>=Ie;++Ie,ye<<=1){if(Xe+=ft<<=1,0>(ft-=Be[Ie]))return 0;for(;0<Be[Ie];--Be[Ie]){if(pe=new S,(rt&De)!=He){for(ke+=Ye,Re=1<<(He=Ie)-ce;15>He&&!(0>=(Re-=Be[He]));)++He,Re<<=1;Ne+=Ye=1<<(Re=He-ce),Ae[le+(He=rt&De)].g=Re+ce,Ae[le+He].value=ke-le-He}pe.g=Ie-ce,pe.value=Ue[Ce++],J(Ae,ke+(rt>>ce),ye,Ye,pe),rt=Q(rt,Ie)}}return Xe!=2*xe[15]-1?0:Ne}(f,v,T,H,X,re)}function S(){this.value=this.g=0}function K(){this.value=this.g=0}function F(){this.G=a(5,S),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(ln,K)}function ne(f,v,T,H){e(f!=null),e(v!=null),e(2147483648>H),f.Ca=254,f.I=0,f.b=-8,f.Ka=0,f.oa=v,f.pa=T,f.Jd=v,f.Yc=T+H,f.Zc=4<=H?T+H-4+1:T,_(f)}function ee(f,v){for(var T=0;0<v--;)T|=Z(f,128)<<v;return T}function G(f,v){var T=ee(f,v);return L(f)?-T:T}function oe(f,v,T,H){var X,re=0;for(e(f!=null),e(v!=null),e(4294967288>H),f.Sb=H,f.Ra=0,f.u=0,f.h=0,4<H&&(H=4),X=0;X<H;++X)re+=v[T+X]<<8*X;f.Ra=re,f.bb=H,f.oa=v,f.pa=T}function q(f){for(;8<=f.u&&f.bb<f.Sb;)f.Ra>>>=8,f.Ra+=f.oa[f.pa+f.bb]<<Io-8>>>0,++f.bb,f.u-=8;V(f)&&(f.h=1,f.u=0)}function he(f,v){if(e(0<=v),!f.h&&v<=Uo){var T=k(f)&Fo[v];return f.u+=v,q(f),T}return f.h=1,f.u=0}function ie(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function E(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function k(f){return f.Ra>>>(f.u&Io-1)>>>0}function V(f){return e(f.bb<=f.Sb),f.h||f.bb==f.Sb&&f.u>Io}function W(f,v){f.u=v,f.h=V(f)}function z(f){f.u>=hu&&(e(f.u>=hu),q(f))}function _(f){e(f!=null&&f.oa!=null),f.pa<f.Zc?(f.I=(f.oa[f.pa++]|f.I<<8)>>>0,f.b+=8):(e(f!=null&&f.oa!=null),f.pa<f.Yc?(f.b+=8,f.I=f.oa[f.pa++]|f.I<<8):f.Ka?f.b=0:(f.I<<=8,f.b+=8,f.Ka=1))}function L(f){return ee(f,1)}function Z(f,v){var T=f.Ca;0>f.b&&_(f);var H=f.b,X=T*v>>>8,re=(f.I>>>H>X)+0;for(re?(T-=X,f.I-=X+1<<H>>>0):T=X+1,H=T,X=0;256<=H;)X+=8,H>>=8;return H=7^X+jn[H],f.b-=H,f.Ca=(T<<H)-1,re}function se(f,v,T){f[v+0]=T>>24&255,f[v+1]=T>>16&255,f[v+2]=T>>8&255,f[v+3]=T>>0&255}function $(f,v){return f[v+0]<<0|f[v+1]<<8}function te(f,v){return $(f,v)|f[v+2]<<16}function me(f,v){return $(f,v)|$(f,v+2)<<16}function P(f,v){var T=1<<v;return e(f!=null),e(0<v),f.X=i(T),f.X==null?0:(f.Mb=32-v,f.Xa=v,1)}function de(f,v){e(f!=null),e(v!=null),e(f.Xa==v.Xa),n(v.X,0,f.X,0,1<<v.Xa)}function U(){this.X=[],this.Xa=this.Mb=0}function b(f,v,T,H){e(T!=null),e(H!=null);var X=T[0],re=H[0];return X==0&&(X=(f*re+v/2)/v),re==0&&(re=(v*X+f/2)/f),0>=X||0>=re?0:(T[0]=X,H[0]=re,1)}function x(f,v){return f+(1<<v)-1>>>v}function N(f,v){return((4278255360&f)+(4278255360&v)>>>0&4278255360)+((16711935&f)+(16711935&v)>>>0&16711935)>>>0}function ae(f,v){D[v]=function(T,H,X,re,Ae,le,ce){var pe;for(pe=0;pe<Ae;++pe){var ye=D[f](le[ce+pe-1],X,re+pe);le[ce+pe]=N(T[H+pe],ye)}}}function fe(){this.ud=this.hd=this.jd=0}function ue(f,v){return((4278124286&(f^v))>>>1)+(f&v)>>>0}function be(f){return 0<=f&&256>f?f:0>f?0:255<f?255:void 0}function Fe(f,v){return be(f+(f-v+.5>>1))}function Se(f,v,T){return Math.abs(v-T)-Math.abs(f-T)}function Pe(f,v,T,H,X,re,Ae){for(H=re[Ae-1],T=0;T<X;++T)re[Ae+T]=H=N(f[v+T],H)}function je(f,v,T,H,X){var re;for(re=0;re<T;++re){var Ae=f[v+re],le=Ae>>8&255,ce=16711935&(ce=(ce=16711935&Ae)+((le<<16)+le));H[X+re]=(4278255360&Ae)+ce>>>0}}function $e(f,v){v.jd=f>>0&255,v.hd=f>>8&255,v.ud=f>>16&255}function et(f,v,T,H,X,re){var Ae;for(Ae=0;Ae<H;++Ae){var le=v[T+Ae],ce=le>>>8,pe=le,ye=255&(ye=(ye=le>>>16)+((f.jd<<24>>24)*(ce<<24>>24)>>>5));pe=255&(pe=(pe=pe+((f.hd<<24>>24)*(ce<<24>>24)>>>5))+((f.ud<<24>>24)*(ye<<24>>24)>>>5)),X[re+Ae]=(4278255360&le)+(ye<<16)+pe}}function ut(f,v,T,H,X){D[v]=function(re,Ae,le,ce,pe,ye,Ue,Ie,Ce){for(ce=Ue;ce<Ie;++ce)for(Ue=0;Ue<Ce;++Ue)pe[ye++]=X(le[H(re[Ae++])])},D[f]=function(re,Ae,le,ce,pe,ye,Ue){var Ie=8>>re.b,Ce=re.Ea,ke=re.K[0],Ne=re.w;if(8>Ie)for(re=(1<<re.b)-1,Ne=(1<<Ie)-1;Ae<le;++Ae){var Be,xe=0;for(Be=0;Be<Ce;++Be)Be&re||(xe=H(ce[pe++])),ye[Ue++]=X(ke[xe&Ne]),xe>>=Ie}else D["VP8LMapColor"+T](ce,pe,ke,Ne,ye,Ue,Ae,le,Ce)}}function We(f,v,T,H,X){for(T=v+T;v<T;){var re=f[v++];H[X++]=re>>16&255,H[X++]=re>>8&255,H[X++]=re>>0&255}}function kt(f,v,T,H,X){for(T=v+T;v<T;){var re=f[v++];H[X++]=re>>16&255,H[X++]=re>>8&255,H[X++]=re>>0&255,H[X++]=re>>24&255}}function st(f,v,T,H,X){for(T=v+T;v<T;){var re=(Ae=f[v++])>>16&240|Ae>>12&15,Ae=Ae>>0&240|Ae>>28&15;H[X++]=re,H[X++]=Ae}}function ur(f,v,T,H,X){for(T=v+T;v<T;){var re=(Ae=f[v++])>>16&248|Ae>>13&7,Ae=Ae>>5&224|Ae>>3&31;H[X++]=re,H[X++]=Ae}}function Et(f,v,T,H,X){for(T=v+T;v<T;){var re=f[v++];H[X++]=re>>0&255,H[X++]=re>>8&255,H[X++]=re>>16&255}}function gt(f,v,T,H,X,re){if(re==0)for(T=v+T;v<T;)se(H,((re=f[v++])[0]>>24|re[1]>>8&65280|re[2]<<8&16711680|re[3]<<24)>>>0),X+=32;else n(H,X,f,v,T)}function cr(f,v){D[v][0]=D[f+"0"],D[v][1]=D[f+"1"],D[v][2]=D[f+"2"],D[v][3]=D[f+"3"],D[v][4]=D[f+"4"],D[v][5]=D[f+"5"],D[v][6]=D[f+"6"],D[v][7]=D[f+"7"],D[v][8]=D[f+"8"],D[v][9]=D[f+"9"],D[v][10]=D[f+"10"],D[v][11]=D[f+"11"],D[v][12]=D[f+"12"],D[v][13]=D[f+"13"],D[v][14]=D[f+"0"],D[v][15]=D[f+"0"]}function St(f){return f==$v||f==qv||f==Of||f==Xv}function qr(){this.eb=[],this.size=this.A=this.fb=0}function Ht(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function nr(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new qr,this.f.kb=new Ht,this.sd=null}function Dt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Gt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function it(f){return alert("todo:WebPSamplerProcessPlane"),f.T}function It(f,v){var T=f.T,H=v.ba.f.RGBA,X=H.eb,re=H.fb+f.ka*H.A,Ae=BA[v.ba.S],le=f.y,ce=f.O,pe=f.f,ye=f.N,Ue=f.ea,Ie=f.W,Ce=v.cc,ke=v.dc,Ne=v.Mc,Be=v.Nc,xe=f.ka,Re=f.ka+f.T,He=f.U,De=He+1>>1;for(xe==0?Ae(le,ce,null,null,pe,ye,Ue,Ie,pe,ye,Ue,Ie,X,re,null,null,He):(Ae(v.ec,v.fc,le,ce,Ce,ke,Ne,Be,pe,ye,Ue,Ie,X,re-H.A,X,re,He),++T);xe+2<Re;xe+=2)Ce=pe,ke=ye,Ne=Ue,Be=Ie,ye+=f.Rc,Ie+=f.Rc,re+=2*H.A,Ae(le,(ce+=2*f.fa)-f.fa,le,ce,Ce,ke,Ne,Be,pe,ye,Ue,Ie,X,re-H.A,X,re,He);return ce+=f.fa,f.j+Re<f.o?(n(v.ec,v.fc,le,ce,He),n(v.cc,v.dc,pe,ye,De),n(v.Mc,v.Nc,Ue,Ie,De),T--):1&Re||Ae(le,ce,null,null,pe,ye,Ue,Ie,pe,ye,Ue,Ie,X,re+H.A,null,null,He),T}function Ii(f,v,T){var H=f.F,X=[f.J];if(H!=null){var re=f.U,Ae=v.ba.S,le=Ae==Nf||Ae==Of;v=v.ba.f.RGBA;var ce=[0],pe=f.ka;ce[0]=f.T,f.Kb&&(pe==0?--ce[0]:(--pe,X[0]-=f.width),f.j+f.ka+f.T==f.o&&(ce[0]=f.o-f.j-pe));var ye=v.eb;pe=v.fb+pe*v.A,f=ir(H,X[0],f.width,re,ce,ye,pe+(le?0:3),v.A),e(T==ce),f&&St(Ae)&&wA(ye,pe,le,re,ce,v.A)}return 0}function Hr(f){var v=f.ma,T=v.ba.S,H=11>T,X=T==Lf||T==Qf||T==Nf||T==Wv||T==12||St(T);if(v.memory=null,v.Ib=null,v.Jb=null,v.Nd=null,!uu(v.Oa,f,X?11:12))return 0;if(X&&St(T)&&Ve(),f.da)alert("todo:use_scaling");else{if(H){if(v.Ib=it,f.Kb){if(T=f.U+1>>1,v.memory=i(f.U+2*T),v.memory==null)return 0;v.ec=v.memory,v.fc=0,v.cc=v.ec,v.dc=v.fc+f.U,v.Mc=v.cc,v.Nc=v.dc+T,v.Ib=It,Ve()}}else alert("todo:EmitYUV");X&&(v.Jb=Ii,H&&Ee())}if(H&&!G4){for(f=0;256>f;++f)QW[f]=89858*(f-128)+Rf>>Pf,PW[f]=-22014*(f-128)+Rf,OW[f]=-45773*(f-128),NW[f]=113618*(f-128)+Rf>>Pf;for(f=wu;f<Zv;++f)v=76283*(f-16)+Rf>>Pf,RW[f-wu]=rA(v,255),DW[f-wu]=rA(v+8>>4,15);G4=1}return 1}function Mn(f){var v=f.ma,T=f.U,H=f.T;return e(!(1&f.ka)),0>=T||0>=H?0:(T=v.Ib(f,v),v.Jb!=null&&v.Jb(f,v,T),v.Dc+=T,1)}function Jn(f){f.ma.memory=null}function ct(f,v,T,H){return he(f,8)!=47?0:(v[0]=he(f,14)+1,T[0]=he(f,14)+1,H[0]=he(f,1),he(f,3)!=0?0:!f.h)}function Zn(f,v){if(4>f)return f+1;var T=f-2>>1;return(2+(1&f)<<T)+he(v,T)+1}function Tn(f,v){return 120<v?v-120:1<=(T=((T=wW[v-1])>>4)*f+(8-(15&T)))?T:1;var T}function Xr(f,v,T){var H=k(T),X=f[v+=255&H].g-8;return 0<X&&(W(T,T.u+8),H=k(T),v+=f[v].value,v+=H&(1<<X)-1),W(T,T.u+f[v].g),f[v].value}function Lr(f,v,T){return T.g+=f.g,T.value+=f.value<<v>>>0,e(8>=T.g),f.g}function Ot(f,v,T){var H=f.xc;return e((v=H==0?0:f.vc[f.md*(T>>H)+(v>>H)])<f.Wb),f.Ya[v]}function Yr(f,v,T,H){var X=f.ab,re=f.c*v,Ae=f.C;v=Ae+v;var le=T,ce=H;for(H=f.Ta,T=f.Ua;0<X--;){var pe=f.gc[X],ye=Ae,Ue=v,Ie=le,Ce=ce,ke=(ce=H,le=T,pe.Ea);switch(e(ye<Ue),e(Ue<=pe.nc),pe.hc){case 2:Ef(Ie,Ce,(Ue-ye)*ke,ce,le);break;case 0:var Ne=ye,Be=Ue,xe=ce,Re=le,He=(Ye=pe).Ea;Ne==0&&(Gv(Ie,Ce,null,null,1,xe,Re),Pe(Ie,Ce+1,0,0,He-1,xe,Re+1),Ce+=He,Re+=He,++Ne);for(var De=1<<Ye.b,rt=De-1,Xe=x(He,Ye.b),ft=Ye.K,Ye=Ye.w+(Ne>>Ye.b)*Xe;Ne<Be;){var Mt=ft,zt=Ye,Pt=1;for(fu(Ie,Ce,xe,Re-He,1,xe,Re);Pt<He;){var _t=(Pt&~rt)+De;_t>He&&(_t=He),(0,ga[Mt[zt++]>>8&15])(Ie,Ce+ +Pt,xe,Re+Pt-He,_t-Pt,xe,Re+Pt),Pt=_t}Ce+=He,Re+=He,++Ne&rt||(Ye+=Xe)}Ue!=pe.nc&&n(ce,le-ke,ce,le+(Ue-ye-1)*ke,ke);break;case 1:for(ke=Ie,Be=Ce,He=(Ie=pe.Ea)-(Re=Ie&~(xe=(Ce=1<<pe.b)-1)),Ne=x(Ie,pe.b),De=pe.K,pe=pe.w+(ye>>pe.b)*Ne;ye<Ue;){for(rt=De,Xe=pe,ft=new fe,Ye=Be+Re,Mt=Be+Ie;Be<Ye;)$e(rt[Xe++],ft),hs(ft,ke,Be,Ce,ce,le),Be+=Ce,le+=Ce;Be<Mt&&($e(rt[Xe++],ft),hs(ft,ke,Be,He,ce,le),Be+=He,le+=He),++ye&xe||(pe+=Ne)}break;case 3:if(Ie==ce&&Ce==le&&0<pe.b){for(Be=ce,Ie=ke=le+(Ue-ye)*ke-(Re=(Ue-ye)*x(pe.Ea,pe.b)),Ce=ce,xe=le,Ne=[],Re=(He=Re)-1;0<=Re;--Re)Ne[Re]=Ce[xe+Re];for(Re=He-1;0<=Re;--Re)Be[Ie+Re]=Ne[Re];gA(pe,ye,Ue,ce,ke,ce,le)}else gA(pe,ye,Ue,Ie,Ce,ce,le)}le=H,ce=T}ce!=T&&n(H,T,le,ce,re)}function Ti(f,v){var T=f.V,H=f.Ba+f.c*f.C,X=v-f.C;if(e(v<=f.l.o),e(16>=X),0<X){var re=f.l,Ae=f.Ta,le=f.Ua,ce=re.width;if(Yr(f,X,T,H),X=le=[le],e((T=f.C)<(H=v)),e(re.v<re.va),H>re.o&&(H=re.o),T<re.j){var pe=re.j-T;T=re.j,X[0]+=pe*ce}if(T>=H?T=0:(X[0]+=4*re.v,re.ka=T-re.j,re.U=re.va-re.v,re.T=H-T,T=1),T){if(le=le[0],11>(T=f.ca).S){var ye=T.f.RGBA,Ue=(H=T.S,X=re.U,re=re.T,pe=ye.eb,ye.A),Ie=re;for(ye=ye.fb+f.Ma*ye.A;0<Ie--;){var Ce=Ae,ke=le,Ne=X,Be=pe,xe=ye;switch(H){case _f:Vn(Ce,ke,Ne,Be,xe);break;case Lf:Qn(Ce,ke,Ne,Be,xe);break;case $v:Qn(Ce,ke,Ne,Be,xe),wA(Be,xe,0,Ne,1,0);break;case P4:Ni(Ce,ke,Ne,Be,xe);break;case Qf:gt(Ce,ke,Ne,Be,xe,1);break;case qv:gt(Ce,ke,Ne,Be,xe,1),wA(Be,xe,0,Ne,1,0);break;case Nf:gt(Ce,ke,Ne,Be,xe,0);break;case Of:gt(Ce,ke,Ne,Be,xe,0),wA(Be,xe,1,Ne,1,0);break;case Wv:ma(Ce,ke,Ne,Be,xe);break;case Xv:ma(Ce,ke,Ne,Be,xe),Ar(Be,xe,Ne,1,0);break;case R4:Qi(Ce,ke,Ne,Be,xe);break;default:e(0)}le+=ce,ye+=Ue}f.Ma+=re}else alert("todo:EmitRescaledRowsYUVA");e(f.Ma<=T.height)}}f.C=v,e(f.C<=f.i)}function pA(f){var v;if(0<f.ua)return 0;for(v=0;v<f.Wb;++v){var T=f.Ya[v].G,H=f.Ya[v].H;if(0<T[1][H[1]+0].g||0<T[2][H[2]+0].g||0<T[3][H[3]+0].g)return 0}return 1}function _n(f,v,T,H,X,re){if(f.Z!=0){var Ae=f.qd,le=f.rd;for(e(Ba[f.Z]!=null);v<T;++v)Ba[f.Z](Ae,le,H,X,H,X,re),Ae=H,le=X,X+=re;f.qd=Ae,f.rd=le}}function on(f,v){var T=f.l.ma,H=T.Z==0||T.Z==1?f.l.j:f.C;if(H=f.C<H?H:f.C,e(v<=f.l.o),v>H){var X=f.l.width,re=T.ca,Ae=T.tb+X*H,le=f.V,ce=f.Ba+f.c*H,pe=f.gc;e(f.ab==1),e(pe[0].hc==3),Sf(pe[0],H,v,le,ce,re,Ae),_n(T,H,v,re,Ae,X)}f.C=f.Ma=v}function Qr(f,v,T,H,X,re,Ae){var le=f.$/H,ce=f.$%H,pe=f.m,ye=f.s,Ue=T+f.$,Ie=Ue;X=T+H*X;var Ce=T+H*re,ke=280+ye.ua,Ne=f.Pb?le:16777216,Be=0<ye.ua?ye.Wa:null,xe=ye.wc,Re=Ue<Ce?Ot(ye,ce,le):null;e(f.C<re),e(Ce<=X);var He=!1;e:for(;;){for(;He||Ue<Ce;){var De=0;if(le>=Ne){var rt=Ue-T;e((Ne=f).Pb),Ne.wd=Ne.m,Ne.xd=rt,0<Ne.s.ua&&de(Ne.s.Wa,Ne.s.vb),Ne=le+BW}if(ce&xe||(Re=Ot(ye,ce,le)),e(Re!=null),Re.Qb&&(v[Ue]=Re.qb,He=!0),!He)if(z(pe),Re.jc){De=pe,rt=v;var Xe=Ue,ft=Re.pd[k(De)&ln-1];e(Re.jc),256>ft.g?(W(De,De.u+ft.g),rt[Xe]=ft.value,De=0):(W(De,De.u+ft.g-256),e(256<=ft.value),De=ft.value),De==0&&(He=!0)}else De=Xr(Re.G[0],Re.H[0],pe);if(pe.h)break;if(He||256>De){if(!He)if(Re.nd)v[Ue]=(Re.qb|De<<8)>>>0;else{if(z(pe),He=Xr(Re.G[1],Re.H[1],pe),z(pe),rt=Xr(Re.G[2],Re.H[2],pe),Xe=Xr(Re.G[3],Re.H[3],pe),pe.h)break;v[Ue]=(Xe<<24|He<<16|De<<8|rt)>>>0}if(He=!1,++Ue,++ce>=H&&(ce=0,++le,Ae!=null&&le<=re&&!(le%16)&&Ae(f,le),Be!=null))for(;Ie<Ue;)De=v[Ie++],Be.X[(506832829*De&4294967295)>>>Be.Mb]=De}else if(280>De){if(De=Zn(De-256,pe),rt=Xr(Re.G[4],Re.H[4],pe),z(pe),rt=Tn(H,rt=Zn(rt,pe)),pe.h)break;if(Ue-T<rt||X-Ue<De)break e;for(Xe=0;Xe<De;++Xe)v[Ue+Xe]=v[Ue+Xe-rt];for(Ue+=De,ce+=De;ce>=H;)ce-=H,++le,Ae!=null&&le<=re&&!(le%16)&&Ae(f,le);if(e(Ue<=X),ce&xe&&(Re=Ot(ye,ce,le)),Be!=null)for(;Ie<Ue;)De=v[Ie++],Be.X[(506832829*De&4294967295)>>>Be.Mb]=De}else{if(!(De<ke))break e;for(He=De-280,e(Be!=null);Ie<Ue;)De=v[Ie++],Be.X[(506832829*De&4294967295)>>>Be.Mb]=De;De=Ue,e(!(He>>>(rt=Be).Xa)),v[De]=rt.X[He],He=!0}He||e(pe.h==V(pe))}if(f.Pb&&pe.h&&Ue<X)e(f.m.h),f.a=5,f.m=f.wd,f.$=f.xd,0<f.s.ua&&de(f.s.vb,f.s.Wa);else{if(pe.h)break e;Ae!=null&&Ae(f,le>re?re:le),f.a=0,f.$=Ue-T}return 1}return f.a=3,0}function eA(f){e(f!=null),f.vc=null,f.yc=null,f.Ya=null;var v=f.Wa;v!=null&&(v.X=null),f.vb=null,e(f!=null)}function Ln(){var f=new Vv;return f==null?null:(f.a=0,f.xb=H4,cr("Predictor","VP8LPredictors"),cr("Predictor","VP8LPredictors_C"),cr("PredictorAdd","VP8LPredictorsAdd"),cr("PredictorAdd","VP8LPredictorsAdd_C"),Ef=je,hs=et,Vn=We,Qn=kt,ma=st,Qi=ur,Ni=Et,D.VP8LMapColor32b=To,D.VP8LMapColor8b=Ff,f)}function tA(f,v,T,H,X){var re=1,Ae=[f],le=[v],ce=H.m,pe=H.s,ye=null,Ue=0;e:for(;;){if(T)for(;re&&he(ce,1);){var Ie=Ae,Ce=le,ke=H,Ne=1,Be=ke.m,xe=ke.gc[ke.ab],Re=he(Be,2);if(ke.Oc&1<<Re)re=0;else{switch(ke.Oc|=1<<Re,xe.hc=Re,xe.Ea=Ie[0],xe.nc=Ce[0],xe.K=[null],++ke.ab,e(4>=ke.ab),Re){case 0:case 1:xe.b=he(Be,3)+2,Ne=tA(x(xe.Ea,xe.b),x(xe.nc,xe.b),0,ke,xe.K),xe.K=xe.K[0];break;case 3:var He,De=he(Be,8)+1,rt=16<De?0:4<De?1:2<De?2:3;if(Ie[0]=x(xe.Ea,rt),xe.b=rt,He=Ne=tA(De,1,0,ke,xe.K)){var Xe,ft=De,Ye=xe,Mt=1<<(8>>Ye.b),zt=i(Mt);if(zt==null)He=0;else{var Pt=Ye.K[0],_t=Ye.w;for(zt[0]=Ye.K[0][0],Xe=1;Xe<1*ft;++Xe)zt[Xe]=N(Pt[_t+Xe],zt[Xe-1]);for(;Xe<4*Mt;++Xe)zt[Xe]=0;Ye.K[0]=null,Ye.K[0]=zt,He=1}}Ne=He;break;case 2:break;default:e(0)}re=Ne}}if(Ae=Ae[0],le=le[0],re&&he(ce,1)&&!(re=1<=(Ue=he(ce,4))&&11>=Ue)){H.a=3;break e}var er;if(er=re)t:{var Jt,xt,Kr,Gn=H,jr=Ae,zn=le,Wt=Ue,AA=T,iA=Gn.m,en=Gn.s,un=[null],On=1,bA=0,oi=yW[Wt];r:for(;;){if(AA&&he(iA,1)){var tn=he(iA,3)+2,Di=x(jr,tn),ms=x(zn,tn),Oo=Di*ms;if(!tA(Di,ms,0,Gn,un))break r;for(un=un[0],en.xc=tn,Jt=0;Jt<Oo;++Jt){var ba=un[Jt]>>8&65535;un[Jt]=ba,ba>=On&&(On=ba+1)}}if(iA.h)break r;for(xt=0;5>xt;++xt){var xr=D4[xt];!xt&&0<Wt&&(xr+=1<<Wt),bA<xr&&(bA=xr)}var ew=a(On*oi,S),$4=On,q4=a($4,F);if(q4==null)var kf=null;else e(65536>=$4),kf=q4;var yu=i(bA);if(kf==null||yu==null||ew==null){Gn.a=1;break r}var Hf=ew;for(Jt=Kr=0;Jt<On;++Jt){var VA=kf[Jt],Po=VA.G,Ro=VA.H,X4=0,Mf=1,Y4=0;for(xt=0;5>xt;++xt){xr=D4[xt],Po[xt]=Hf,Ro[xt]=Kr,!xt&&0<Wt&&(xr+=1<<Wt);A:{var Kf,tw=xr,jf=Gn,Bu=yu,MW=Hf,KW=Kr,rw=0,xa=jf.m,jW=he(xa,1);if(A(Bu,0,0,tw),jW){var VW=he(xa,1)+1,GW=he(xa,1),J4=he(xa,GW==0?1:8);Bu[J4]=1,VW==2&&(Bu[J4=he(xa,8)]=1);var Vf=1}else{var Z4=i(19),eS=he(xa,4)+4;if(19<eS){jf.a=3;var Gf=0;break A}for(Kf=0;Kf<eS;++Kf)Z4[vW[Kf]]=he(xa,3);var nw=void 0,bu=void 0,tS=jf,zW=Z4,zf=tw,rS=Bu,Aw=0,Ca=tS.m,nS=8,AS=a(128,S);n:for(;M(AS,0,7,zW,19);){if(he(Ca,1)){var WW=2+2*he(Ca,3);if((nw=2+he(Ca,WW))>zf)break n}else nw=zf;for(bu=0;bu<zf&&nw--;){z(Ca);var iS=AS[0+(127&k(Ca))];W(Ca,Ca.u+iS.g);var Do=iS.value;if(16>Do)rS[bu++]=Do,Do!=0&&(nS=Do);else{var $W=Do==16,aS=Do-16,qW=gW[aS],sS=he(Ca,pW[aS])+qW;if(bu+sS>zf)break n;for(var XW=$W?nS:0;0<sS--;)rS[bu++]=XW}}Aw=1;break n}Aw||(tS.a=3),Vf=Aw}(Vf=Vf&&!xa.h)&&(rw=M(MW,KW,8,Bu,tw)),Vf&&rw!=0?Gf=rw:(jf.a=3,Gf=0)}if(Gf==0)break r;if(Mf&&mW[xt]==1&&(Mf=Hf[Kr].g==0),X4+=Hf[Kr].g,Kr+=Gf,3>=xt){var xu,iw=yu[0];for(xu=1;xu<xr;++xu)yu[xu]>iw&&(iw=yu[xu]);Y4+=iw}}if(VA.nd=Mf,VA.Qb=0,Mf&&(VA.qb=(Po[3][Ro[3]+0].value<<24|Po[1][Ro[1]+0].value<<16|Po[2][Ro[2]+0].value)>>>0,X4==0&&256>Po[0][Ro[0]+0].value&&(VA.Qb=1,VA.qb+=Po[0][Ro[0]+0].value<<8)),VA.jc=!VA.Qb&&6>Y4,VA.jc){var Wf,ki=VA;for(Wf=0;Wf<ln;++Wf){var Ea=Wf,Sa=ki.pd[Ea],$f=ki.G[0][ki.H[0]+Ea];256<=$f.value?(Sa.g=$f.g+256,Sa.value=$f.value):(Sa.g=0,Sa.value=0,Ea>>=Lr($f,8,Sa),Ea>>=Lr(ki.G[1][ki.H[1]+Ea],16,Sa),Ea>>=Lr(ki.G[2][ki.H[2]+Ea],0,Sa),Lr(ki.G[3][ki.H[3]+Ea],24,Sa))}}}en.vc=un,en.Wb=On,en.Ya=kf,en.yc=ew,er=1;break t}er=0}if(!(re=er)){H.a=3;break e}if(0<Ue){if(pe.ua=1<<Ue,!P(pe.Wa,Ue)){H.a=1,re=0;break e}}else pe.ua=0;var aw=H,oS=Ae,YW=le,sw=aw.s,ow=sw.xc;if(aw.c=oS,aw.i=YW,sw.md=x(oS,ow),sw.wc=ow==0?-1:(1<<ow)-1,T){H.xb=UW;break e}if((ye=i(Ae*le))==null){H.a=1,re=0;break e}re=(re=Qr(H,ye,0,Ae,le,le,null))&&!ce.h;break e}return re?(X!=null?X[0]=ye:(e(ye==null),e(T)),H.$=0,T||eA(pe)):eA(pe),re}function Ai(f,v){var T=f.c*f.i,H=T+v+16*v;return e(f.c<=v),f.V=i(H),f.V==null?(f.Ta=null,f.Ua=0,f.a=1,0):(f.Ta=f.V,f.Ua=f.Ba+T+v,1)}function ha(f,v){var T=f.C,H=v-T,X=f.V,re=f.Ba+f.c*T;for(e(v<=f.l.o);0<H;){var Ae=16<H?16:H,le=f.l.ma,ce=f.l.width,pe=ce*Ae,ye=le.ca,Ue=le.tb+ce*T,Ie=f.Ta,Ce=f.Ua;Yr(f,Ae,X,re),Pr(Ie,Ce,ye,Ue,pe),_n(le,T,T+Ae,ye,Ue,ce),H-=Ae,X+=Ae*f.c,T+=Ae}e(T==v),f.C=f.Ma=v}function at(){this.ub=this.yd=this.td=this.Rb=0}function we(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ge(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function qe(){this.Yb=function(){var f=[];return function v(T,H,X){for(var re=X[H],Ae=0;Ae<re&&(T.push(X.length>H+1?[]:0),!(X.length<H+1));Ae++)v(T[Ae],H+1,X)}(f,0,[3,11]),f}()}function Lt(){this.jb=i(3),this.Wc=s([4,8],qe),this.Xc=s([4,17],qe)}function Jr(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function fr(){this.ld=this.La=this.dd=this.tc=0}function Br(){this.Na=this.la=0}function kA(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function sr(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function as(){this.uc=this.M=this.Nb=0,this.wa=Array(new fr),this.Y=0,this.ya=Array(new sr),this.aa=0,this.l=new go}function ss(){this.y=i(16),this.f=i(8),this.ea=i(8)}function sf(){this.cb=this.a=0,this.sc="",this.m=new ie,this.Od=new at,this.Kc=new we,this.ed=new Jr,this.Qa=new Ge,this.Ic=this.$c=this.Aa=0,this.D=new as,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,ie),this.ia=0,this.pb=a(4,kA),this.Pa=new Lt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ss),this.Hd=0,this.rb=Array(new Br),this.sb=0,this.wa=Array(new fr),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new sr),this.L=this.aa=0,this.gd=s([4,2],fr),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function go(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Sv(){var f=new sf;return f!=null&&(f.a=0,f.sc="OK",f.cb=0,f.Xb=0,vu||(vu=uf)),f}function Nr(f,v,T){return f.a==0&&(f.a=v,f.sc=T,f.cb=0),0}function of(f,v,T){return 3<=T&&f[v+0]==157&&f[v+1]==1&&f[v+2]==42}function lf(f,v){if(f==null)return 0;if(f.a=0,f.sc="OK",v==null)return Nr(f,2,"null VP8Io passed to VP8GetHeaders()");var T=v.data,H=v.w,X=v.ha;if(4>X)return Nr(f,7,"Truncated header.");var re=T[H+0]|T[H+1]<<8|T[H+2]<<16,Ae=f.Od;if(Ae.Rb=!(1&re),Ae.td=re>>1&7,Ae.yd=re>>4&1,Ae.ub=re>>5,3<Ae.td)return Nr(f,3,"Incorrect keyframe parameters.");if(!Ae.yd)return Nr(f,4,"Frame not displayable.");H+=3,X-=3;var le=f.Kc;if(Ae.Rb){if(7>X)return Nr(f,7,"cannot parse picture header");if(!of(T,H,X))return Nr(f,3,"Bad code word");le.c=16383&(T[H+4]<<8|T[H+3]),le.Td=T[H+4]>>6,le.i=16383&(T[H+6]<<8|T[H+5]),le.Ud=T[H+6]>>6,H+=7,X-=7,f.za=le.c+15>>4,f.Ub=le.i+15>>4,v.width=le.c,v.height=le.i,v.Da=0,v.j=0,v.v=0,v.va=v.width,v.o=v.height,v.da=0,v.ib=v.width,v.hb=v.height,v.U=v.width,v.T=v.height,A((re=f.Pa).jb,0,255,re.jb.length),e((re=f.Qa)!=null),re.Cb=0,re.Bb=0,re.Fb=1,A(re.Zb,0,0,re.Zb.length),A(re.Lb,0,0,re.Lb)}if(Ae.ub>X)return Nr(f,7,"bad partition length");ne(re=f.m,T,H,Ae.ub),H+=Ae.ub,X-=Ae.ub,Ae.Rb&&(le.Ld=L(re),le.Kd=L(re)),le=f.Qa;var ce,pe=f.Pa;if(e(re!=null),e(le!=null),le.Cb=L(re),le.Cb){if(le.Bb=L(re),L(re)){for(le.Fb=L(re),ce=0;4>ce;++ce)le.Zb[ce]=L(re)?G(re,7):0;for(ce=0;4>ce;++ce)le.Lb[ce]=L(re)?G(re,6):0}if(le.Bb)for(ce=0;3>ce;++ce)pe.jb[ce]=L(re)?ee(re,8):255}else le.Bb=0;if(re.Ka)return Nr(f,3,"cannot parse segment header");if((le=f.ed).zd=L(re),le.Tb=ee(re,6),le.wb=ee(re,3),le.Pc=L(re),le.Pc&&L(re)){for(pe=0;4>pe;++pe)L(re)&&(le.vd[pe]=G(re,6));for(pe=0;4>pe;++pe)L(re)&&(le.od[pe]=G(re,6))}if(f.L=le.Tb==0?0:le.zd?1:2,re.Ka)return Nr(f,3,"cannot parse filter header");var ye=X;if(X=ce=H,H=ce+ye,le=ye,f.Xb=(1<<ee(f.m,2))-1,ye<3*(pe=f.Xb))T=7;else{for(ce+=3*pe,le-=3*pe,ye=0;ye<pe;++ye){var Ue=T[X+0]|T[X+1]<<8|T[X+2]<<16;Ue>le&&(Ue=le),ne(f.Jc[+ye],T,ce,Ue),ce+=Ue,le-=Ue,X+=3}ne(f.Jc[+pe],T,ce,le),T=ce<H?0:5}if(T!=0)return Nr(f,T,"cannot parse partitions");for(T=ee(ce=f.m,7),X=L(ce)?G(ce,4):0,H=L(ce)?G(ce,4):0,le=L(ce)?G(ce,4):0,pe=L(ce)?G(ce,4):0,ce=L(ce)?G(ce,4):0,ye=f.Qa,Ue=0;4>Ue;++Ue){if(ye.Cb){var Ie=ye.Zb[Ue];ye.Fb||(Ie+=T)}else{if(0<Ue){f.pb[Ue]=f.pb[0];continue}Ie=T}var Ce=f.pb[Ue];Ce.Sc[0]=Yv[rA(Ie+X,127)],Ce.Sc[1]=Jv[rA(Ie+0,127)],Ce.Eb[0]=2*Yv[rA(Ie+H,127)],Ce.Eb[1]=101581*Jv[rA(Ie+le,127)]>>16,8>Ce.Eb[1]&&(Ce.Eb[1]=8),Ce.Qc[0]=Yv[rA(Ie+pe,117)],Ce.Qc[1]=Jv[rA(Ie+ce,127)],Ce.lc=Ie+ce}if(!Ae.Rb)return Nr(f,4,"Not a key frame.");for(L(re),Ae=f.Pa,T=0;4>T;++T){for(X=0;8>X;++X)for(H=0;3>H;++H)for(le=0;11>le;++le)pe=Z(re,SW[T][X][H][le])?ee(re,8):CW[T][X][H][le],Ae.Wc[T][X].Yb[H][le]=pe;for(X=0;17>X;++X)Ae.Xc[T][X]=Ae.Wc[T][FW[X]]}return f.kc=L(re),f.kc&&(f.Bd=ee(re,8)),f.cb=1}function uf(f,v,T,H,X,re,Ae){var le=v[X].Yb[T];for(T=0;16>X;++X){if(!Z(f,le[T+0]))return X;for(;!Z(f,le[T+1]);)if(le=v[++X].Yb[0],T=0,X==16)return 16;var ce=v[X+1].Yb;if(Z(f,le[T+2])){var pe=f,ye=0;if(Z(pe,(Ie=le)[(Ue=T)+3]))if(Z(pe,Ie[Ue+6])){for(le=0,Ue=2*(ye=Z(pe,Ie[Ue+8]))+(Ie=Z(pe,Ie[Ue+9+ye])),ye=0,Ie=bW[Ue];Ie[le];++le)ye+=ye+Z(pe,Ie[le]);ye+=3+(8<<Ue)}else Z(pe,Ie[Ue+7])?(ye=7+2*Z(pe,165),ye+=Z(pe,145)):ye=5+Z(pe,159);else ye=Z(pe,Ie[Ue+4])?3+Z(pe,Ie[Ue+5]):2;le=ce[2]}else ye=1,le=ce[1];ce=Ae+xW[X],0>(pe=f).b&&_(pe);var Ue,Ie=pe.b,Ce=(Ue=pe.Ca>>1)-(pe.I>>Ie)>>31;--pe.b,pe.Ca+=Ce,pe.Ca|=1,pe.I-=(Ue+1&Ce)<<Ie,re[ce]=((ye^Ce)-Ce)*H[(0<X)+0]}return 16}function ql(f){var v=f.rb[f.sb-1];v.la=0,v.Na=0,A(f.zc,0,0,f.zc.length),f.ja=0}function Fv(f,v){if(f==null)return 0;if(v==null)return Nr(f,2,"NULL VP8Io parameter in VP8Decode().");if(!f.cb&&!lf(f,v))return 0;if(e(f.cb),v.ac==null||v.ac(v)){v.ob&&(f.L=0);var T=Df[f.L];if(f.L==2?(f.yb=0,f.zb=0):(f.yb=v.v-T>>4,f.zb=v.j-T>>4,0>f.yb&&(f.yb=0),0>f.zb&&(f.zb=0)),f.Va=v.o+15+T>>4,f.Hb=v.va+15+T>>4,f.Hb>f.za&&(f.Hb=f.za),f.Va>f.Ub&&(f.Va=f.Ub),0<f.L){var H=f.ed;for(T=0;4>T;++T){var X;if(f.Qa.Cb){var re=f.Qa.Lb[T];f.Qa.Fb||(re+=H.Tb)}else re=H.Tb;for(X=0;1>=X;++X){var Ae=f.gd[T][X],le=re;if(H.Pc&&(le+=H.vd[0],X&&(le+=H.od[0])),0<(le=0>le?0:63<le?63:le)){var ce=le;0<H.wb&&(ce=4<H.wb?ce>>2:ce>>1)>9-H.wb&&(ce=9-H.wb),1>ce&&(ce=1),Ae.dd=ce,Ae.tc=2*le+ce,Ae.ld=40<=le?2:15<=le?1:0}else Ae.tc=0;Ae.La=X}}}T=0}else Nr(f,6,"Frame setup failed"),T=f.a;if(T=T==0){if(T){f.$c=0,0<f.Aa||(f.Ic=HW);e:{T=f.Ic,H=4*(ce=f.za);var pe=32*ce,ye=ce+1,Ue=0<f.L?ce*(0<f.Aa?2:1):0,Ie=(f.Aa==2?2:1)*ce;if((Ae=H+832+(X=3*(16*T+Df[f.L])/2*pe)+(re=f.Fa!=null&&0<f.Fa.length?f.Kc.c*f.Kc.i:0))!=Ae)T=0;else{if(Ae>f.Vb){if(f.Vb=0,f.Ec=i(Ae),f.Fc=0,f.Ec==null){T=Nr(f,1,"no memory during frame initialization.");break e}f.Vb=Ae}Ae=f.Ec,le=f.Fc,f.Ac=Ae,f.Bc=le,le+=H,f.Gd=a(pe,ss),f.Hd=0,f.rb=a(ye+1,Br),f.sb=1,f.wa=Ue?a(Ue,fr):null,f.Y=0,f.D.Nb=0,f.D.wa=f.wa,f.D.Y=f.Y,0<f.Aa&&(f.D.Y+=ce),e(!0),f.oc=Ae,f.pc=le,le+=832,f.ya=a(Ie,sr),f.aa=0,f.D.ya=f.ya,f.D.aa=f.aa,f.Aa==2&&(f.D.aa+=ce),f.R=16*ce,f.B=8*ce,ce=(pe=Df[f.L])*f.R,pe=pe/2*f.B,f.sa=Ae,f.ta=le+ce,f.qa=f.sa,f.ra=f.ta+16*T*f.R+pe,f.Ha=f.qa,f.Ia=f.ra+8*T*f.B+pe,f.$c=0,le+=X,f.mb=re?Ae:null,f.nb=re?le:null,e(le+re<=f.Fc+f.Vb),ql(f),A(f.Ac,f.Bc,0,H),T=1}}if(T){if(v.ka=0,v.y=f.sa,v.O=f.ta,v.f=f.qa,v.N=f.ra,v.ea=f.Ha,v.Vd=f.Ia,v.fa=f.R,v.Rc=f.B,v.F=null,v.J=0,!If){for(T=-255;255>=T;++T)zr[255+T]=0>T?-T:T;for(T=-1020;1020>=T;++T)Pi[1020+T]=-128>T?-128:127<T?127:T;for(T=-112;112>=T;++T)mu[112+T]=-16>T?-16:15<T?15:T;for(T=-255;510>=T;++T)No[255+T]=0>T?0:255<T?255:T;If=1}_o=Tv,Oi=Uv,du=hf,Nn=Iv,mA=ff,Or=cf,Lo=tu,Uf=us,pu=jv,fs=ru,ds=Kv,va=bo,ps=nu,Qo=bf,gs=Bf,wa=ai,gu=Li,vA=Mv,jA[0]=ii,jA[1]=_v,jA[2]=Ov,jA[3]=Pv,jA[4]=gf,jA[5]=yo,jA[6]=mf,jA[7]=Jl,jA[8]=Dv,jA[9]=Rv,ya[0]=df,ya[1]=Qv,ya[2]=_i,ya[3]=vo,ya[4]=Cn,ya[5]=Nv,ya[6]=pf,Ri[0]=fa,Ri[1]=Lv,Ri[2]=kv,Ri[3]=Zl,Ri[4]=ls,Ri[5]=Hv,Ri[6]=eu,T=1}else T=0}T&&(T=function(Ce,ke){for(Ce.M=0;Ce.M<Ce.Va;++Ce.M){var Ne,Be=Ce.Jc[Ce.M&Ce.Xb],xe=Ce.m,Re=Ce;for(Ne=0;Ne<Re.za;++Ne){var He=xe,De=Re,rt=De.Ac,Xe=De.Bc+4*Ne,ft=De.zc,Ye=De.ya[De.aa+Ne];if(De.Qa.Bb?Ye.$b=Z(He,De.Pa.jb[0])?2+Z(He,De.Pa.jb[2]):Z(He,De.Pa.jb[1]):Ye.$b=0,De.kc&&(Ye.Ad=Z(He,De.Bd)),Ye.Za=!Z(He,145)+0,Ye.Za){var Mt=Ye.Ob,zt=0;for(De=0;4>De;++De){var Pt,_t=ft[0+De];for(Pt=0;4>Pt;++Pt){_t=EW[rt[Xe+Pt]][_t];for(var er=k4[Z(He,_t[0])];0<er;)er=k4[2*er+Z(He,_t[er])];_t=-er,rt[Xe+Pt]=_t}n(Mt,zt,rt,Xe,4),zt+=4,ft[0+De]=_t}}else _t=Z(He,156)?Z(He,128)?1:3:Z(He,163)?2:0,Ye.Ob[0]=_t,A(rt,Xe,_t,4),A(ft,0,_t,4);Ye.Dd=Z(He,142)?Z(He,114)?Z(He,183)?1:3:2:0}if(Re.m.Ka)return Nr(Ce,7,"Premature end-of-partition0 encountered.");for(;Ce.ja<Ce.za;++Ce.ja){if(Re=Be,He=(xe=Ce).rb[xe.sb-1],rt=xe.rb[xe.sb+xe.ja],Ne=xe.ya[xe.aa+xe.ja],Xe=xe.kc?Ne.Ad:0)He.la=rt.la=0,Ne.Za||(He.Na=rt.Na=0),Ne.Hc=0,Ne.Gc=0,Ne.ia=0;else{var Jt,xt;if(He=rt,rt=Re,Xe=xe.Pa.Xc,ft=xe.ya[xe.aa+xe.ja],Ye=xe.pb[ft.$b],De=ft.ad,Mt=0,zt=xe.rb[xe.sb-1],_t=Pt=0,A(De,Mt,0,384),ft.Za)var Kr=0,Gn=Xe[3];else{er=i(16);var jr=He.Na+zt.Na;if(jr=vu(rt,Xe[1],jr,Ye.Eb,0,er,0),He.Na=zt.Na=(0<jr)+0,1<jr)_o(er,0,De,Mt);else{var zn=er[0]+3>>3;for(er=0;256>er;er+=16)De[Mt+er]=zn}Kr=1,Gn=Xe[0]}var Wt=15&He.la,AA=15&zt.la;for(er=0;4>er;++er){var iA=1&AA;for(zn=xt=0;4>zn;++zn)Wt=Wt>>1|(iA=(jr=vu(rt,Gn,jr=iA+(1&Wt),Ye.Sc,Kr,De,Mt))>Kr)<<7,xt=xt<<2|(3<jr?3:1<jr?2:De[Mt+0]!=0),Mt+=16;Wt>>=4,AA=AA>>1|iA<<7,Pt=(Pt<<8|xt)>>>0}for(Gn=Wt,Kr=AA>>4,Jt=0;4>Jt;Jt+=2){for(xt=0,Wt=He.la>>4+Jt,AA=zt.la>>4+Jt,er=0;2>er;++er){for(iA=1&AA,zn=0;2>zn;++zn)jr=iA+(1&Wt),Wt=Wt>>1|(iA=0<(jr=vu(rt,Xe[2],jr,Ye.Qc,0,De,Mt)))<<3,xt=xt<<2|(3<jr?3:1<jr?2:De[Mt+0]!=0),Mt+=16;Wt>>=2,AA=AA>>1|iA<<5}_t|=xt<<4*Jt,Gn|=Wt<<4<<Jt,Kr|=(240&AA)<<Jt}He.la=Gn,zt.la=Kr,ft.Hc=Pt,ft.Gc=_t,ft.ia=43690&_t?0:Ye.ia,Xe=!(Pt|_t)}if(0<xe.L&&(xe.wa[xe.Y+xe.ja]=xe.gd[Ne.$b][Ne.Za],xe.wa[xe.Y+xe.ja].La|=!Xe),Re.Ka)return Nr(Ce,7,"Premature end-of-file encountered.")}if(ql(Ce),xe=ke,Re=1,Ne=(Be=Ce).D,He=0<Be.L&&Be.M>=Be.zb&&Be.M<=Be.Va,Be.Aa==0)e:{if(Ne.M=Be.M,Ne.uc=He,lu(Be,Ne),Re=1,Ne=(xt=Be.D).Nb,He=(_t=Df[Be.L])*Be.R,rt=_t/2*Be.B,er=16*Ne*Be.R,zn=8*Ne*Be.B,Xe=Be.sa,ft=Be.ta-He+er,Ye=Be.qa,De=Be.ra-rt+zn,Mt=Be.Ha,zt=Be.Ia-rt+zn,AA=(Wt=xt.M)==0,Pt=Wt>=Be.Va-1,Be.Aa==2&&lu(Be,xt),xt.uc)for(iA=(jr=Be).D.M,e(jr.D.uc),xt=jr.yb;xt<jr.Hb;++xt){Kr=xt,Gn=iA;var en=(un=(xr=jr).D).Nb;Jt=xr.R;var un=un.wa[un.Y+Kr],On=xr.sa,bA=xr.ta+16*en*Jt+16*Kr,oi=un.dd,tn=un.tc;if(tn!=0)if(e(3<=tn),xr.L==1)0<Kr&&wa(On,bA,Jt,tn+4),un.La&&vA(On,bA,Jt,tn),0<Gn&&gs(On,bA,Jt,tn+4),un.La&&gu(On,bA,Jt,tn);else{var Di=xr.B,ms=xr.qa,Oo=xr.ra+8*en*Di+8*Kr,ba=xr.Ha,xr=xr.Ia+8*en*Di+8*Kr;en=un.ld,0<Kr&&(Uf(On,bA,Jt,tn+4,oi,en),fs(ms,Oo,ba,xr,Di,tn+4,oi,en)),un.La&&(va(On,bA,Jt,tn,oi,en),Qo(ms,Oo,ba,xr,Di,tn,oi,en)),0<Gn&&(Lo(On,bA,Jt,tn+4,oi,en),pu(ms,Oo,ba,xr,Di,tn+4,oi,en)),un.La&&(ds(On,bA,Jt,tn,oi,en),ps(ms,Oo,ba,xr,Di,tn,oi,en))}}if(Be.ia&&alert("todo:DitherRow"),xe.put!=null){if(xt=16*Wt,Wt=16*(Wt+1),AA?(xe.y=Be.sa,xe.O=Be.ta+er,xe.f=Be.qa,xe.N=Be.ra+zn,xe.ea=Be.Ha,xe.W=Be.Ia+zn):(xt-=_t,xe.y=Xe,xe.O=ft,xe.f=Ye,xe.N=De,xe.ea=Mt,xe.W=zt),Pt||(Wt-=_t),Wt>xe.o&&(Wt=xe.o),xe.F=null,xe.J=null,Be.Fa!=null&&0<Be.Fa.length&&xt<Wt&&(xe.J=su(Be,xe,xt,Wt-xt),xe.F=Be.mb,xe.F==null&&xe.F.length==0)){Re=Nr(Be,3,"Could not decode alpha data.");break e}xt<xe.j&&(_t=xe.j-xt,xt=xe.j,e(!(1&_t)),xe.O+=Be.R*_t,xe.N+=Be.B*(_t>>1),xe.W+=Be.B*(_t>>1),xe.F!=null&&(xe.J+=xe.width*_t)),xt<Wt&&(xe.O+=xe.v,xe.N+=xe.v>>1,xe.W+=xe.v>>1,xe.F!=null&&(xe.J+=xe.v),xe.ka=xt-xe.j,xe.U=xe.va-xe.v,xe.T=Wt-xt,Re=xe.put(xe))}Ne+1!=Be.Ic||Pt||(n(Be.sa,Be.ta-He,Xe,ft+16*Be.R,He),n(Be.qa,Be.ra-rt,Ye,De+8*Be.B,rt),n(Be.Ha,Be.Ia-rt,Mt,zt+8*Be.B,rt))}if(!Re)return Nr(Ce,6,"Output aborted.")}return 1}(f,v)),v.bc!=null&&v.bc(v),T&=1}return T?(f.cb=0,T):0}function HA(f,v,T,H,X){X=f[v+T+32*H]+(X>>3),f[v+T+32*H]=-256&X?0>X?0:255:X}function mo(f,v,T,H,X,re){HA(f,v,0,T,H+X),HA(f,v,1,T,H+re),HA(f,v,2,T,H-re),HA(f,v,3,T,H-X)}function Kn(f){return(20091*f>>16)+f}function Xl(f,v,T,H){var X,re=0,Ae=i(16);for(X=0;4>X;++X){var le=f[v+0]+f[v+8],ce=f[v+0]-f[v+8],pe=(35468*f[v+4]>>16)-Kn(f[v+12]),ye=Kn(f[v+4])+(35468*f[v+12]>>16);Ae[re+0]=le+ye,Ae[re+1]=ce+pe,Ae[re+2]=ce-pe,Ae[re+3]=le-ye,re+=4,v++}for(X=re=0;4>X;++X)le=(f=Ae[re+0]+4)+Ae[re+8],ce=f-Ae[re+8],pe=(35468*Ae[re+4]>>16)-Kn(Ae[re+12]),HA(T,H,0,0,le+(ye=Kn(Ae[re+4])+(35468*Ae[re+12]>>16))),HA(T,H,1,0,ce+pe),HA(T,H,2,0,ce-pe),HA(T,H,3,0,le-ye),re++,H+=32}function cf(f,v,T,H){var X=f[v+0]+4,re=35468*f[v+4]>>16,Ae=Kn(f[v+4]),le=35468*f[v+1]>>16;mo(T,H,0,X+Ae,f=Kn(f[v+1]),le),mo(T,H,1,X+re,f,le),mo(T,H,2,X-re,f,le),mo(T,H,3,X-Ae,f,le)}function Uv(f,v,T,H,X){Xl(f,v,T,H),X&&Xl(f,v+16,T,H+4)}function hf(f,v,T,H){Oi(f,v+0,T,H,1),Oi(f,v+32,T,H+128,1)}function Iv(f,v,T,H){var X;for(f=f[v+0]+4,X=0;4>X;++X)for(v=0;4>v;++v)HA(T,H,v,X,f)}function ff(f,v,T,H){f[v+0]&&Nn(f,v+0,T,H),f[v+16]&&Nn(f,v+16,T,H+4),f[v+32]&&Nn(f,v+32,T,H+128),f[v+48]&&Nn(f,v+48,T,H+128+4)}function Tv(f,v,T,H){var X,re=i(16);for(X=0;4>X;++X){var Ae=f[v+0+X]+f[v+12+X],le=f[v+4+X]+f[v+8+X],ce=f[v+4+X]-f[v+8+X],pe=f[v+0+X]-f[v+12+X];re[0+X]=Ae+le,re[8+X]=Ae-le,re[4+X]=pe+ce,re[12+X]=pe-ce}for(X=0;4>X;++X)Ae=(f=re[0+4*X]+3)+re[3+4*X],le=re[1+4*X]+re[2+4*X],ce=re[1+4*X]-re[2+4*X],pe=f-re[3+4*X],T[H+0]=Ae+le>>3,T[H+16]=pe+ce>>3,T[H+32]=Ae-le>>3,T[H+48]=pe-ce>>3,H+=64}function Yl(f,v,T){var H,X=v-32,re=nA,Ae=255-f[X-1];for(H=0;H<T;++H){var le,ce=re,pe=Ae+f[v-1];for(le=0;le<T;++le)f[v+le]=ce[pe+f[X+le]];v+=32}}function _v(f,v){Yl(f,v,4)}function Lv(f,v){Yl(f,v,8)}function Qv(f,v){Yl(f,v,16)}function _i(f,v){var T;for(T=0;16>T;++T)n(f,v+32*T,f,v-32,16)}function vo(f,v){var T;for(T=16;0<T;--T)A(f,v,f[v-1],16),v+=32}function wo(f,v,T){var H;for(H=0;16>H;++H)A(v,T+32*H,f,16)}function df(f,v){var T,H=16;for(T=0;16>T;++T)H+=f[v-1+32*T]+f[v+T-32];wo(H>>5,f,v)}function Cn(f,v){var T,H=8;for(T=0;16>T;++T)H+=f[v-1+32*T];wo(H>>4,f,v)}function Nv(f,v){var T,H=8;for(T=0;16>T;++T)H+=f[v+T-32];wo(H>>4,f,v)}function pf(f,v){wo(128,f,v)}function vt(f,v,T){return f+2*v+T+2>>2}function Ov(f,v){var T,H=v-32;for(H=new Uint8Array([vt(f[H-1],f[H+0],f[H+1]),vt(f[H+0],f[H+1],f[H+2]),vt(f[H+1],f[H+2],f[H+3]),vt(f[H+2],f[H+3],f[H+4])]),T=0;4>T;++T)n(f,v+32*T,H,0,H.length)}function Pv(f,v){var T=f[v-1],H=f[v-1+32],X=f[v-1+64],re=f[v-1+96];se(f,v+0,16843009*vt(f[v-1-32],T,H)),se(f,v+32,16843009*vt(T,H,X)),se(f,v+64,16843009*vt(H,X,re)),se(f,v+96,16843009*vt(X,re,re))}function ii(f,v){var T,H=4;for(T=0;4>T;++T)H+=f[v+T-32]+f[v-1+32*T];for(H>>=3,T=0;4>T;++T)A(f,v+32*T,H,4)}function gf(f,v){var T=f[v-1+0],H=f[v-1+32],X=f[v-1+64],re=f[v-1-32],Ae=f[v+0-32],le=f[v+1-32],ce=f[v+2-32],pe=f[v+3-32];f[v+0+96]=vt(H,X,f[v-1+96]),f[v+1+96]=f[v+0+64]=vt(T,H,X),f[v+2+96]=f[v+1+64]=f[v+0+32]=vt(re,T,H),f[v+3+96]=f[v+2+64]=f[v+1+32]=f[v+0+0]=vt(Ae,re,T),f[v+3+64]=f[v+2+32]=f[v+1+0]=vt(le,Ae,re),f[v+3+32]=f[v+2+0]=vt(ce,le,Ae),f[v+3+0]=vt(pe,ce,le)}function mf(f,v){var T=f[v+1-32],H=f[v+2-32],X=f[v+3-32],re=f[v+4-32],Ae=f[v+5-32],le=f[v+6-32],ce=f[v+7-32];f[v+0+0]=vt(f[v+0-32],T,H),f[v+1+0]=f[v+0+32]=vt(T,H,X),f[v+2+0]=f[v+1+32]=f[v+0+64]=vt(H,X,re),f[v+3+0]=f[v+2+32]=f[v+1+64]=f[v+0+96]=vt(X,re,Ae),f[v+3+32]=f[v+2+64]=f[v+1+96]=vt(re,Ae,le),f[v+3+64]=f[v+2+96]=vt(Ae,le,ce),f[v+3+96]=vt(le,ce,ce)}function yo(f,v){var T=f[v-1+0],H=f[v-1+32],X=f[v-1+64],re=f[v-1-32],Ae=f[v+0-32],le=f[v+1-32],ce=f[v+2-32],pe=f[v+3-32];f[v+0+0]=f[v+1+64]=re+Ae+1>>1,f[v+1+0]=f[v+2+64]=Ae+le+1>>1,f[v+2+0]=f[v+3+64]=le+ce+1>>1,f[v+3+0]=ce+pe+1>>1,f[v+0+96]=vt(X,H,T),f[v+0+64]=vt(H,T,re),f[v+0+32]=f[v+1+96]=vt(T,re,Ae),f[v+1+32]=f[v+2+96]=vt(re,Ae,le),f[v+2+32]=f[v+3+96]=vt(Ae,le,ce),f[v+3+32]=vt(le,ce,pe)}function Jl(f,v){var T=f[v+0-32],H=f[v+1-32],X=f[v+2-32],re=f[v+3-32],Ae=f[v+4-32],le=f[v+5-32],ce=f[v+6-32],pe=f[v+7-32];f[v+0+0]=T+H+1>>1,f[v+1+0]=f[v+0+64]=H+X+1>>1,f[v+2+0]=f[v+1+64]=X+re+1>>1,f[v+3+0]=f[v+2+64]=re+Ae+1>>1,f[v+0+32]=vt(T,H,X),f[v+1+32]=f[v+0+96]=vt(H,X,re),f[v+2+32]=f[v+1+96]=vt(X,re,Ae),f[v+3+32]=f[v+2+96]=vt(re,Ae,le),f[v+3+64]=vt(Ae,le,ce),f[v+3+96]=vt(le,ce,pe)}function Rv(f,v){var T=f[v-1+0],H=f[v-1+32],X=f[v-1+64],re=f[v-1+96];f[v+0+0]=T+H+1>>1,f[v+2+0]=f[v+0+32]=H+X+1>>1,f[v+2+32]=f[v+0+64]=X+re+1>>1,f[v+1+0]=vt(T,H,X),f[v+3+0]=f[v+1+32]=vt(H,X,re),f[v+3+32]=f[v+1+64]=vt(X,re,re),f[v+3+64]=f[v+2+64]=f[v+0+96]=f[v+1+96]=f[v+2+96]=f[v+3+96]=re}function Dv(f,v){var T=f[v-1+0],H=f[v-1+32],X=f[v-1+64],re=f[v-1+96],Ae=f[v-1-32],le=f[v+0-32],ce=f[v+1-32],pe=f[v+2-32];f[v+0+0]=f[v+2+32]=T+Ae+1>>1,f[v+0+32]=f[v+2+64]=H+T+1>>1,f[v+0+64]=f[v+2+96]=X+H+1>>1,f[v+0+96]=re+X+1>>1,f[v+3+0]=vt(le,ce,pe),f[v+2+0]=vt(Ae,le,ce),f[v+1+0]=f[v+3+32]=vt(T,Ae,le),f[v+1+32]=f[v+3+64]=vt(H,T,Ae),f[v+1+64]=f[v+3+96]=vt(X,H,T),f[v+1+96]=vt(re,X,H)}function kv(f,v){var T;for(T=0;8>T;++T)n(f,v+32*T,f,v-32,8)}function Zl(f,v){var T;for(T=0;8>T;++T)A(f,v,f[v-1],8),v+=32}function os(f,v,T){var H;for(H=0;8>H;++H)A(v,T+32*H,f,8)}function fa(f,v){var T,H=8;for(T=0;8>T;++T)H+=f[v+T-32]+f[v-1+32*T];os(H>>4,f,v)}function Hv(f,v){var T,H=4;for(T=0;8>T;++T)H+=f[v+T-32];os(H>>3,f,v)}function ls(f,v){var T,H=4;for(T=0;8>T;++T)H+=f[v-1+32*T];os(H>>3,f,v)}function eu(f,v){os(128,f,v)}function Bo(f,v,T){var H=f[v-T],X=f[v+0],re=3*(X-H)+zv[1020+f[v-2*T]-f[v+T]],Ae=Tf[112+(re+4>>3)];f[v-T]=nA[255+H+Tf[112+(re+3>>3)]],f[v+0]=nA[255+X-Ae]}function vf(f,v,T,H){var X=f[v+0],re=f[v+T];return yA[255+f[v-2*T]-f[v-T]]>H||yA[255+re-X]>H}function wf(f,v,T,H){return 4*yA[255+f[v-T]-f[v+0]]+yA[255+f[v-2*T]-f[v+T]]<=H}function yf(f,v,T,H,X){var re=f[v-3*T],Ae=f[v-2*T],le=f[v-T],ce=f[v+0],pe=f[v+T],ye=f[v+2*T],Ue=f[v+3*T];return 4*yA[255+le-ce]+yA[255+Ae-pe]>H?0:yA[255+f[v-4*T]-re]<=X&&yA[255+re-Ae]<=X&&yA[255+Ae-le]<=X&&yA[255+Ue-ye]<=X&&yA[255+ye-pe]<=X&&yA[255+pe-ce]<=X}function Bf(f,v,T,H){var X=2*H+1;for(H=0;16>H;++H)wf(f,v+H,T,X)&&Bo(f,v+H,T)}function ai(f,v,T,H){var X=2*H+1;for(H=0;16>H;++H)wf(f,v+H*T,1,X)&&Bo(f,v+H*T,1)}function Li(f,v,T,H){var X;for(X=3;0<X;--X)Bf(f,v+=4*T,T,H)}function Mv(f,v,T,H){var X;for(X=3;0<X;--X)ai(f,v+=4,T,H)}function da(f,v,T,H,X,re,Ae,le){for(re=2*re+1;0<X--;){if(yf(f,v,T,re,Ae))if(vf(f,v,T,le))Bo(f,v,T);else{var ce=f,pe=v,ye=T,Ue=ce[pe-2*ye],Ie=ce[pe-ye],Ce=ce[pe+0],ke=ce[pe+ye],Ne=ce[pe+2*ye],Be=27*(Re=zv[1020+3*(Ce-Ie)+zv[1020+Ue-ke]])+63>>7,xe=18*Re+63>>7,Re=9*Re+63>>7;ce[pe-3*ye]=nA[255+ce[pe-3*ye]+Re],ce[pe-2*ye]=nA[255+Ue+xe],ce[pe-ye]=nA[255+Ie+Be],ce[pe+0]=nA[255+Ce-Be],ce[pe+ye]=nA[255+ke-xe],ce[pe+2*ye]=nA[255+Ne-Re]}v+=H}}function MA(f,v,T,H,X,re,Ae,le){for(re=2*re+1;0<X--;){if(yf(f,v,T,re,Ae))if(vf(f,v,T,le))Bo(f,v,T);else{var ce=f,pe=v,ye=T,Ue=ce[pe-ye],Ie=ce[pe+0],Ce=ce[pe+ye],ke=Tf[112+((Ne=3*(Ie-Ue))+4>>3)],Ne=Tf[112+(Ne+3>>3)],Be=ke+1>>1;ce[pe-2*ye]=nA[255+ce[pe-2*ye]+Be],ce[pe-ye]=nA[255+Ue+Ne],ce[pe+0]=nA[255+Ie-ke],ce[pe+ye]=nA[255+Ce-Be]}v+=H}}function tu(f,v,T,H,X,re){da(f,v,T,1,16,H,X,re)}function us(f,v,T,H,X,re){da(f,v,1,T,16,H,X,re)}function Kv(f,v,T,H,X,re){var Ae;for(Ae=3;0<Ae;--Ae)MA(f,v+=4*T,T,1,16,H,X,re)}function bo(f,v,T,H,X,re){var Ae;for(Ae=3;0<Ae;--Ae)MA(f,v+=4,1,T,16,H,X,re)}function jv(f,v,T,H,X,re,Ae,le){da(f,v,X,1,8,re,Ae,le),da(T,H,X,1,8,re,Ae,le)}function ru(f,v,T,H,X,re,Ae,le){da(f,v,1,X,8,re,Ae,le),da(T,H,1,X,8,re,Ae,le)}function nu(f,v,T,H,X,re,Ae,le){MA(f,v+4*X,X,1,8,re,Ae,le),MA(T,H+4*X,X,1,8,re,Ae,le)}function bf(f,v,T,H,X,re,Ae,le){MA(f,v+4,1,X,8,re,Ae,le),MA(T,H+4,1,X,8,re,Ae,le)}function xo(){this.ba=new nr,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Gt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Au(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function iu(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function xf(){this.ua=0,this.Wa=new U,this.vb=new U,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new F,this.yc=new S}function Vv(){this.xb=this.a=0,this.l=new go,this.ca=new nr,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new E,this.Pb=0,this.wd=new E,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new xf,this.ab=0,this.gc=a(4,iu),this.Oc=0}function Co(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new go,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cs(f,v,T,H,X,re,Ae){for(f=f==null?0:f[v+0],v=0;v<Ae;++v)X[re+v]=f+T[H+v]&255,f=X[re+v]}function au(f,v,T,H,X,re,Ae){var le;if(f==null)cs(null,null,T,H,X,re,Ae);else for(le=0;le<Ae;++le)X[re+le]=f[v+le]+T[H+le]&255}function pa(f,v,T,H,X,re,Ae){if(f==null)cs(null,null,T,H,X,re,Ae);else{var le,ce=f[v+0],pe=ce,ye=ce;for(le=0;le<Ae;++le)pe=ye+(ce=f[v+le])-pe,ye=T[H+le]+(-256&pe?0>pe?0:255:pe)&255,pe=ce,X[re+le]=ye}}function su(f,v,T,H){var X=v.width,re=v.o;if(e(f!=null&&v!=null),0>T||0>=H||T+H>re)return null;if(!f.Cc){if(f.ga==null){var Ae;if(f.ga=new Co,(Ae=f.ga==null)||(Ae=v.width*v.o,e(f.Gb.length==0),f.Gb=i(Ae),f.Uc=0,f.Gb==null?Ae=0:(f.mb=f.Gb,f.nb=f.Uc,f.rc=null,Ae=1),Ae=!Ae),!Ae){Ae=f.ga;var le=f.Fa,ce=f.P,pe=f.qc,ye=f.mb,Ue=f.nb,Ie=ce+1,Ce=pe-1,ke=Ae.l;if(e(le!=null&&ye!=null&&v!=null),Ba[0]=null,Ba[1]=cs,Ba[2]=au,Ba[3]=pa,Ae.ca=ye,Ae.tb=Ue,Ae.c=v.width,Ae.i=v.height,e(0<Ae.c&&0<Ae.i),1>=pe)v=0;else if(Ae.$a=le[ce+0]>>0&3,Ae.Z=le[ce+0]>>2&3,Ae.Lc=le[ce+0]>>4&3,ce=le[ce+0]>>6&3,0>Ae.$a||1<Ae.$a||4<=Ae.Z||1<Ae.Lc||ce)v=0;else if(ke.put=Mn,ke.ac=Hr,ke.bc=Jn,ke.ma=Ae,ke.width=v.width,ke.height=v.height,ke.Da=v.Da,ke.v=v.v,ke.va=v.va,ke.j=v.j,ke.o=v.o,Ae.$a)e:{e(Ae.$a==1),v=Ln();t:for(;;){if(v==null){v=0;break e}if(e(Ae!=null),Ae.mc=v,v.c=Ae.c,v.i=Ae.i,v.l=Ae.l,v.l.ma=Ae,v.l.width=Ae.c,v.l.height=Ae.i,v.a=0,oe(v.m,le,Ie,Ce),!tA(Ae.c,Ae.i,1,v,null)||(v.ab==1&&v.gc[0].hc==3&&pA(v.s)?(Ae.ic=1,le=v.c*v.i,v.Ta=null,v.Ua=0,v.V=i(le),v.Ba=0,v.V==null?(v.a=1,v=0):v=1):(Ae.ic=0,v=Ai(v,Ae.c)),!v))break t;v=1;break e}Ae.mc=null,v=0}else v=Ce>=Ae.c*Ae.i;Ae=!v}if(Ae)return null;f.ga.Lc!=1?f.Ga=0:H=re-T}e(f.ga!=null),e(T+H<=re);e:{if(v=(le=f.ga).c,re=le.l.o,le.$a==0){if(Ie=f.rc,Ce=f.Vc,ke=f.Fa,ce=f.P+1+T*v,pe=f.mb,ye=f.nb+T*v,e(ce<=f.P+f.qc),le.Z!=0)for(e(Ba[le.Z]!=null),Ae=0;Ae<H;++Ae)Ba[le.Z](Ie,Ce,ke,ce,pe,ye,v),Ie=pe,Ce=ye,ye+=v,ce+=v;else for(Ae=0;Ae<H;++Ae)n(pe,ye,ke,ce,v),Ie=pe,Ce=ye,ye+=v,ce+=v;f.rc=Ie,f.Vc=Ce}else{if(e(le.mc!=null),v=T+H,e((Ae=le.mc)!=null),e(v<=Ae.i),Ae.C>=v)v=1;else if(le.ic||Ee(),le.ic){le=Ae.V,Ie=Ae.Ba,Ce=Ae.c;var Ne=Ae.i,Be=(ke=1,ce=Ae.$/Ce,pe=Ae.$%Ce,ye=Ae.m,Ue=Ae.s,Ae.$),xe=Ce*Ne,Re=Ce*v,He=Ue.wc,De=Be<Re?Ot(Ue,pe,ce):null;e(Be<=xe),e(v<=Ne),e(pA(Ue));t:for(;;){for(;!ye.h&&Be<Re;){if(pe&He||(De=Ot(Ue,pe,ce)),e(De!=null),z(ye),256>(Ne=Xr(De.G[0],De.H[0],ye)))le[Ie+Be]=Ne,++Be,++pe>=Ce&&(pe=0,++ce<=v&&!(ce%16)&&on(Ae,ce));else{if(!(280>Ne)){ke=0;break t}Ne=Zn(Ne-256,ye);var rt,Xe=Xr(De.G[4],De.H[4],ye);if(z(ye),!(Be>=(Xe=Tn(Ce,Xe=Zn(Xe,ye)))&&xe-Be>=Ne)){ke=0;break t}for(rt=0;rt<Ne;++rt)le[Ie+Be+rt]=le[Ie+Be+rt-Xe];for(Be+=Ne,pe+=Ne;pe>=Ce;)pe-=Ce,++ce<=v&&!(ce%16)&&on(Ae,ce);Be<Re&&pe&He&&(De=Ot(Ue,pe,ce))}e(ye.h==V(ye))}on(Ae,ce>v?v:ce);break t}!ke||ye.h&&Be<xe?(ke=0,Ae.a=ye.h?5:3):Ae.$=Be,v=ke}else v=Qr(Ae,Ae.V,Ae.Ba,Ae.c,Ae.i,v,ha);if(!v){H=0;break e}}T+H>=re&&(f.Cc=1),H=1}if(!H)return null;if(f.Cc&&((H=f.ga)!=null&&(H.mc=null),f.ga=null,0<f.Ga))return alert("todo:WebPDequantizeLevels"),null}return f.nb+T*X}function C(f,v,T,H,X,re){for(;0<X--;){var Ae,le=f,ce=v+(T?1:0),pe=f,ye=v+(T?0:3);for(Ae=0;Ae<H;++Ae){var Ue=pe[ye+4*Ae];Ue!=255&&(Ue*=32897,le[ce+4*Ae+0]=le[ce+4*Ae+0]*Ue>>23,le[ce+4*Ae+1]=le[ce+4*Ae+1]*Ue>>23,le[ce+4*Ae+2]=le[ce+4*Ae+2]*Ue>>23)}v+=re}}function Y(f,v,T,H,X){for(;0<H--;){var re;for(re=0;re<T;++re){var Ae=f[v+2*re+0],le=15&(pe=f[v+2*re+1]),ce=4369*le,pe=(240&pe|pe>>4)*ce>>16;f[v+2*re+0]=(240&Ae|Ae>>4)*ce>>16&240|(15&Ae|Ae<<4)*ce>>16>>4&15,f[v+2*re+1]=240&pe|le}v+=X}}function ge(f,v,T,H,X,re,Ae,le){var ce,pe,ye=255;for(pe=0;pe<X;++pe){for(ce=0;ce<H;++ce){var Ue=f[v+ce];re[Ae+4*ce]=Ue,ye&=Ue}v+=T,Ae+=le}return ye!=255}function ve(f,v,T,H,X){var re;for(re=0;re<X;++re)T[H+re]=f[v+re]>>8}function Ee(){wA=C,Ar=Y,ir=ge,Pr=ve}function Oe(f,v,T){D[f]=function(H,X,re,Ae,le,ce,pe,ye,Ue,Ie,Ce,ke,Ne,Be,xe,Re,He){var De,rt=He-1>>1,Xe=le[ce+0]|pe[ye+0]<<16,ft=Ue[Ie+0]|Ce[ke+0]<<16;e(H!=null);var Ye=3*Xe+ft+131074>>2;for(v(H[X+0],255&Ye,Ye>>16,Ne,Be),re!=null&&(Ye=3*ft+Xe+131074>>2,v(re[Ae+0],255&Ye,Ye>>16,xe,Re)),De=1;De<=rt;++De){var Mt=le[ce+De]|pe[ye+De]<<16,zt=Ue[Ie+De]|Ce[ke+De]<<16,Pt=Xe+Mt+ft+zt+524296,_t=Pt+2*(Mt+ft)>>3;Ye=_t+Xe>>1,Xe=(Pt=Pt+2*(Xe+zt)>>3)+Mt>>1,v(H[X+2*De-1],255&Ye,Ye>>16,Ne,Be+(2*De-1)*T),v(H[X+2*De-0],255&Xe,Xe>>16,Ne,Be+(2*De-0)*T),re!=null&&(Ye=Pt+ft>>1,Xe=_t+zt>>1,v(re[Ae+2*De-1],255&Ye,Ye>>16,xe,Re+(2*De-1)*T),v(re[Ae+2*De+0],255&Xe,Xe>>16,xe,Re+(2*De+0)*T)),Xe=Mt,ft=zt}1&He||(Ye=3*Xe+ft+131074>>2,v(H[X+He-1],255&Ye,Ye>>16,Ne,Be+(He-1)*T),re!=null&&(Ye=3*ft+Xe+131074>>2,v(re[Ae+He-1],255&Ye,Ye>>16,xe,Re+(He-1)*T)))}}function Ve(){BA[_f]=IW,BA[Lf]=M4,BA[P4]=TW,BA[Qf]=K4,BA[Nf]=j4,BA[Wv]=V4,BA[R4]=_W,BA[$v]=M4,BA[qv]=K4,BA[Of]=j4,BA[Xv]=V4}function tt(f){return f&-16384?0>f?0:255:f>>LW}function lt(f,v){return tt((19077*f>>8)+(26149*v>>8)-14234)}function bt(f,v,T){return tt((19077*f>>8)-(6419*v>>8)-(13320*T>>8)+8708)}function yt(f,v){return tt((19077*f>>8)+(33050*v>>8)-17685)}function Qt(f,v,T,H,X){H[X+0]=lt(f,T),H[X+1]=bt(f,v,T),H[X+2]=yt(f,v)}function dr(f,v,T,H,X){H[X+0]=yt(f,v),H[X+1]=bt(f,v,T),H[X+2]=lt(f,T)}function br(f,v,T,H,X){var re=bt(f,v,T);v=re<<3&224|yt(f,v)>>3,H[X+0]=248&lt(f,T)|re>>5,H[X+1]=v}function Mr(f,v,T,H,X){var re=240&yt(f,v)|15;H[X+0]=240&lt(f,T)|bt(f,v,T)>>4,H[X+1]=re}function En(f,v,T,H,X){H[X+0]=255,Qt(f,v,T,H,X+1)}function Zr(f,v,T,H,X){dr(f,v,T,H,X),H[X+3]=255}function KA(f,v,T,H,X){Qt(f,v,T,H,X),H[X+3]=255}function rA(f,v){return 0>f?0:f>v?v:f}function si(f,v,T){D[f]=function(H,X,re,Ae,le,ce,pe,ye,Ue){for(var Ie=ye+(-2&Ue)*T;ye!=Ie;)v(H[X+0],re[Ae+0],le[ce+0],pe,ye),v(H[X+1],re[Ae+0],le[ce+0],pe,ye+T),X+=2,++Ae,++ce,ye+=2*T;1&Ue&&v(H[X+0],re[Ae+0],le[ce+0],pe,ye)}}function Cf(f,v,T){return T==0?f==0?v==0?6:5:v==0?4:0:T}function ou(f,v,T,H,X){switch(f>>>30){case 3:Oi(v,T,H,X,0);break;case 2:Or(v,T,H,X);break;case 1:Nn(v,T,H,X)}}function lu(f,v){var T,H,X=v.M,re=v.Nb,Ae=f.oc,le=f.pc+40,ce=f.oc,pe=f.pc+584,ye=f.oc,Ue=f.pc+600;for(T=0;16>T;++T)Ae[le+32*T-1]=129;for(T=0;8>T;++T)ce[pe+32*T-1]=129,ye[Ue+32*T-1]=129;for(0<X?Ae[le-1-32]=ce[pe-1-32]=ye[Ue-1-32]=129:(A(Ae,le-32-1,127,21),A(ce,pe-32-1,127,9),A(ye,Ue-32-1,127,9)),H=0;H<f.za;++H){var Ie=v.ya[v.aa+H];if(0<H){for(T=-1;16>T;++T)n(Ae,le+32*T-4,Ae,le+32*T+12,4);for(T=-1;8>T;++T)n(ce,pe+32*T-4,ce,pe+32*T+4,4),n(ye,Ue+32*T-4,ye,Ue+32*T+4,4)}var Ce=f.Gd,ke=f.Hd+H,Ne=Ie.ad,Be=Ie.Hc;if(0<X&&(n(Ae,le-32,Ce[ke].y,0,16),n(ce,pe-32,Ce[ke].f,0,8),n(ye,Ue-32,Ce[ke].ea,0,8)),Ie.Za){var xe=Ae,Re=le-32+16;for(0<X&&(H>=f.za-1?A(xe,Re,Ce[ke].y[15],4):n(xe,Re,Ce[ke+1].y,0,4)),T=0;4>T;T++)xe[Re+128+T]=xe[Re+256+T]=xe[Re+384+T]=xe[Re+0+T];for(T=0;16>T;++T,Be<<=2)xe=Ae,Re=le+z4[T],jA[Ie.Ob[T]](xe,Re),ou(Be,Ne,16*+T,xe,Re)}else if(xe=Cf(H,X,Ie.Ob[0]),ya[xe](Ae,le),Be!=0)for(T=0;16>T;++T,Be<<=2)ou(Be,Ne,16*+T,Ae,le+z4[T]);for(T=Ie.Gc,xe=Cf(H,X,Ie.Dd),Ri[xe](ce,pe),Ri[xe](ye,Ue),Be=Ne,xe=ce,Re=pe,255&(Ie=T>>0)&&(170&Ie?du(Be,256,xe,Re):mA(Be,256,xe,Re)),Ie=ye,Be=Ue,255&(T>>=8)&&(170&T?du(Ne,320,Ie,Be):mA(Ne,320,Ie,Be)),X<f.Ub-1&&(n(Ce[ke].y,0,Ae,le+480,16),n(Ce[ke].f,0,ce,pe+224,8),n(Ce[ke].ea,0,ye,Ue+224,8)),T=8*re*f.B,Ce=f.sa,ke=f.ta+16*H+16*re*f.R,Ne=f.qa,Ie=f.ra+8*H+T,Be=f.Ha,xe=f.Ia+8*H+T,T=0;16>T;++T)n(Ce,ke+T*f.R,Ae,le+32*T,16);for(T=0;8>T;++T)n(Ne,Ie+T*f.B,ce,pe+32*T,8),n(Be,xe+T*f.B,ye,Ue+32*T,8)}}function Eo(f,v,T,H,X,re,Ae,le,ce){var pe=[0],ye=[0],Ue=0,Ie=ce!=null?ce.kd:0,Ce=ce??new Au;if(f==null||12>T)return 7;Ce.data=f,Ce.w=v,Ce.ha=T,v=[v],T=[T],Ce.gb=[Ce.gb];e:{var ke=v,Ne=T,Be=Ce.gb;if(e(f!=null),e(Ne!=null),e(Be!=null),Be[0]=0,12<=Ne[0]&&!t(f,ke[0],"RIFF")){if(t(f,ke[0]+8,"WEBP")){Be=3;break e}var xe=me(f,ke[0]+4);if(12>xe||4294967286<xe){Be=3;break e}if(Ie&&xe>Ne[0]-8){Be=7;break e}Be[0]=xe,ke[0]+=12,Ne[0]-=12}Be=0}if(Be!=0)return Be;for(xe=0<Ce.gb[0],T=T[0];;){e:{var Re=f;Ne=v,Be=T;var He=pe,De=ye,rt=ke=[0];if((Ye=Ue=[Ue])[0]=0,8>Be[0])Be=7;else{if(!t(Re,Ne[0],"VP8X")){if(me(Re,Ne[0]+4)!=10){Be=3;break e}if(18>Be[0]){Be=7;break e}var Xe=me(Re,Ne[0]+8),ft=1+te(Re,Ne[0]+12);if(2147483648<=ft*(Re=1+te(Re,Ne[0]+15))){Be=3;break e}rt!=null&&(rt[0]=Xe),He!=null&&(He[0]=ft),De!=null&&(De[0]=Re),Ne[0]+=18,Be[0]-=18,Ye[0]=1}Be=0}}if(Ue=Ue[0],ke=ke[0],Be!=0)return Be;if(Ne=!!(2&ke),!xe&&Ue)return 3;if(re!=null&&(re[0]=!!(16&ke)),Ae!=null&&(Ae[0]=Ne),le!=null&&(le[0]=0),Ae=pe[0],ke=ye[0],Ue&&Ne&&ce==null){Be=0;break}if(4>T){Be=7;break}if(xe&&Ue||!xe&&!Ue&&!t(f,v[0],"ALPH")){T=[T],Ce.na=[Ce.na],Ce.P=[Ce.P],Ce.Sa=[Ce.Sa];e:{Xe=f,Be=v,xe=T;var Ye=Ce.gb;He=Ce.na,De=Ce.P,rt=Ce.Sa,ft=22,e(Xe!=null),e(xe!=null),Re=Be[0];var Mt=xe[0];for(e(He!=null),e(rt!=null),He[0]=null,De[0]=null,rt[0]=0;;){if(Be[0]=Re,xe[0]=Mt,8>Mt){Be=7;break e}var zt=me(Xe,Re+4);if(4294967286<zt){Be=3;break e}var Pt=8+zt+1&-2;if(ft+=Pt,0<Ye&&ft>Ye){Be=3;break e}if(!t(Xe,Re,"VP8 ")||!t(Xe,Re,"VP8L")){Be=0;break e}if(Mt[0]<Pt){Be=7;break e}t(Xe,Re,"ALPH")||(He[0]=Xe,De[0]=Re+8,rt[0]=zt),Re+=Pt,Mt-=Pt}}if(T=T[0],Ce.na=Ce.na[0],Ce.P=Ce.P[0],Ce.Sa=Ce.Sa[0],Be!=0)break}T=[T],Ce.Ja=[Ce.Ja],Ce.xa=[Ce.xa];e:if(Ye=f,Be=v,xe=T,He=Ce.gb[0],De=Ce.Ja,rt=Ce.xa,Xe=Be[0],Re=!t(Ye,Xe,"VP8 "),ft=!t(Ye,Xe,"VP8L"),e(Ye!=null),e(xe!=null),e(De!=null),e(rt!=null),8>xe[0])Be=7;else{if(Re||ft){if(Ye=me(Ye,Xe+4),12<=He&&Ye>He-12){Be=3;break e}if(Ie&&Ye>xe[0]-8){Be=7;break e}De[0]=Ye,Be[0]+=8,xe[0]-=8,rt[0]=ft}else rt[0]=5<=xe[0]&&Ye[Xe+0]==47&&!(Ye[Xe+4]>>5),De[0]=xe[0];Be=0}if(T=T[0],Ce.Ja=Ce.Ja[0],Ce.xa=Ce.xa[0],v=v[0],Be!=0)break;if(4294967286<Ce.Ja)return 3;if(le==null||Ne||(le[0]=Ce.xa?2:1),Ae=[Ae],ke=[ke],Ce.xa){if(5>T){Be=7;break}le=Ae,Ie=ke,Ne=re,f==null||5>T?f=0:5<=T&&f[v+0]==47&&!(f[v+4]>>5)?(xe=[0],Ye=[0],He=[0],oe(De=new E,f,v,T),ct(De,xe,Ye,He)?(le!=null&&(le[0]=xe[0]),Ie!=null&&(Ie[0]=Ye[0]),Ne!=null&&(Ne[0]=He[0]),f=1):f=0):f=0}else{if(10>T){Be=7;break}le=ke,f==null||10>T||!of(f,v+3,T-3)?f=0:(Ie=f[v+0]|f[v+1]<<8|f[v+2]<<16,Ne=16383&(f[v+7]<<8|f[v+6]),f=16383&(f[v+9]<<8|f[v+8]),1&Ie||3<(Ie>>1&7)||!(Ie>>4&1)||Ie>>5>=Ce.Ja||!Ne||!f?f=0:(Ae&&(Ae[0]=Ne),le&&(le[0]=f),f=1))}if(!f||(Ae=Ae[0],ke=ke[0],Ue&&(pe[0]!=Ae||ye[0]!=ke)))return 3;ce!=null&&(ce[0]=Ce,ce.offset=v-ce.w,e(4294967286>v-ce.w),e(ce.offset==ce.ha-T));break}return Be==0||Be==7&&Ue&&ce==null?(re!=null&&(re[0]|=Ce.na!=null&&0<Ce.na.length),H!=null&&(H[0]=Ae),X!=null&&(X[0]=ke),0):Be}function uu(f,v,T){var H=v.width,X=v.height,re=0,Ae=0,le=H,ce=X;if(v.Da=f!=null&&0<f.Da,v.Da&&(le=f.cd,ce=f.bd,re=f.v,Ae=f.j,11>T||(re&=-2,Ae&=-2),0>re||0>Ae||0>=le||0>=ce||re+le>H||Ae+ce>X))return 0;if(v.v=re,v.j=Ae,v.va=re+le,v.o=Ae+ce,v.U=le,v.T=ce,v.da=f!=null&&0<f.da,v.da){if(!b(le,ce,T=[f.ib],re=[f.hb]))return 0;v.ib=T[0],v.hb=re[0]}return v.ob=f!=null&&f.ob,v.Kb=f==null||!f.Sd,v.da&&(v.ob=v.ib<3*H/4&&v.hb<3*X/4,v.Kb=0),1}function cu(f){if(f==null)return 2;if(11>f.S){var v=f.f.RGBA;v.fb+=(f.height-1)*v.A,v.A=-v.A}else v=f.f.kb,f=f.height,v.O+=(f-1)*v.fa,v.fa=-v.fa,v.N+=(f-1>>1)*v.Ab,v.Ab=-v.Ab,v.W+=(f-1>>1)*v.Db,v.Db=-v.Db,v.F!=null&&(v.J+=(f-1)*v.lb,v.lb=-v.lb);return 0}function So(f,v,T,H){if(H==null||0>=f||0>=v)return 2;if(T!=null){if(T.Da){var X=T.cd,re=T.bd,Ae=-2&T.v,le=-2&T.j;if(0>Ae||0>le||0>=X||0>=re||Ae+X>f||le+re>v)return 2;f=X,v=re}if(T.da){if(!b(f,v,X=[T.ib],re=[T.hb]))return 2;f=X[0],v=re[0]}}H.width=f,H.height=v;e:{var ce=H.width,pe=H.height;if(f=H.S,0>=ce||0>=pe||!(f>=_f&&13>f))f=2;else{if(0>=H.Rd&&H.sd==null){Ae=re=X=v=0;var ye=(le=ce*W4[f])*pe;if(11>f||(re=(pe+1)/2*(v=(ce+1)/2),f==12&&(Ae=(X=ce)*pe)),(pe=i(ye+2*re+Ae))==null){f=1;break e}H.sd=pe,11>f?((ce=H.f.RGBA).eb=pe,ce.fb=0,ce.A=le,ce.size=ye):((ce=H.f.kb).y=pe,ce.O=0,ce.fa=le,ce.Fd=ye,ce.f=pe,ce.N=0+ye,ce.Ab=v,ce.Cd=re,ce.ea=pe,ce.W=0+ye+re,ce.Db=v,ce.Ed=re,f==12&&(ce.F=pe,ce.J=0+ye+2*re),ce.Tc=Ae,ce.lb=X)}if(v=1,X=H.S,re=H.width,Ae=H.height,X>=_f&&13>X)if(11>X)f=H.f.RGBA,v&=(le=Math.abs(f.A))*(Ae-1)+re<=f.size,v&=le>=re*W4[X],v&=f.eb!=null;else{f=H.f.kb,le=(re+1)/2,ye=(Ae+1)/2,ce=Math.abs(f.fa),pe=Math.abs(f.Ab);var Ue=Math.abs(f.Db),Ie=Math.abs(f.lb),Ce=Ie*(Ae-1)+re;v&=ce*(Ae-1)+re<=f.Fd,v&=pe*(ye-1)+le<=f.Cd,v=(v&=Ue*(ye-1)+le<=f.Ed)&ce>=re&pe>=le&Ue>=le,v&=f.y!=null,v&=f.f!=null,v&=f.ea!=null,X==12&&(v&=Ie>=re,v&=Ce<=f.Tc,v&=f.F!=null)}else v=0;f=v?0:2}}return f!=0||T!=null&&T.fd&&(f=cu(H)),f}var ln=64,Fo=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Uo=24,Io=32,hu=8,jn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];ae("Predictor0","PredictorAdd0"),D.Predictor0=function(){return 4278190080},D.Predictor1=function(f){return f},D.Predictor2=function(f,v,T){return v[T+0]},D.Predictor3=function(f,v,T){return v[T+1]},D.Predictor4=function(f,v,T){return v[T-1]},D.Predictor5=function(f,v,T){return ue(ue(f,v[T+1]),v[T+0])},D.Predictor6=function(f,v,T){return ue(f,v[T-1])},D.Predictor7=function(f,v,T){return ue(f,v[T+0])},D.Predictor8=function(f,v,T){return ue(v[T-1],v[T+0])},D.Predictor9=function(f,v,T){return ue(v[T+0],v[T+1])},D.Predictor10=function(f,v,T){return ue(ue(f,v[T-1]),ue(v[T+0],v[T+1]))},D.Predictor11=function(f,v,T){var H=v[T+0];return 0>=Se(H>>24&255,f>>24&255,(v=v[T-1])>>24&255)+Se(H>>16&255,f>>16&255,v>>16&255)+Se(H>>8&255,f>>8&255,v>>8&255)+Se(255&H,255&f,255&v)?H:f},D.Predictor12=function(f,v,T){var H=v[T+0];return(be((f>>24&255)+(H>>24&255)-((v=v[T-1])>>24&255))<<24|be((f>>16&255)+(H>>16&255)-(v>>16&255))<<16|be((f>>8&255)+(H>>8&255)-(v>>8&255))<<8|be((255&f)+(255&H)-(255&v)))>>>0},D.Predictor13=function(f,v,T){var H=v[T-1];return(Fe((f=ue(f,v[T+0]))>>24&255,H>>24&255)<<24|Fe(f>>16&255,H>>16&255)<<16|Fe(f>>8&255,H>>8&255)<<8|Fe(f>>0&255,H>>0&255))>>>0};var Gv=D.PredictorAdd0;D.PredictorAdd1=Pe,ae("Predictor2","PredictorAdd2"),ae("Predictor3","PredictorAdd3"),ae("Predictor4","PredictorAdd4"),ae("Predictor5","PredictorAdd5"),ae("Predictor6","PredictorAdd6"),ae("Predictor7","PredictorAdd7"),ae("Predictor8","PredictorAdd8"),ae("Predictor9","PredictorAdd9"),ae("Predictor10","PredictorAdd10"),ae("Predictor11","PredictorAdd11"),ae("Predictor12","PredictorAdd12"),ae("Predictor13","PredictorAdd13");var fu=D.PredictorAdd2;ut("ColorIndexInverseTransform","MapARGB","32b",function(f){return f>>8&255},function(f){return f}),ut("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(f){return f},function(f){return f>>8&255});var Ef,gA=D.ColorIndexInverseTransform,To=D.MapARGB,Sf=D.VP8LColorIndexInverseTransformAlpha,Ff=D.MapAlpha,ga=D.VP8LPredictorsAdd=[];ga.length=16,(D.VP8LPredictors=[]).length=16,(D.VP8LPredictorsAdd_C=[]).length=16,(D.VP8LPredictors_C=[]).length=16;var hs,Vn,Qn,ma,Qi,Ni,_o,Oi,Or,du,Nn,mA,Lo,Uf,pu,fs,ds,va,ps,Qo,gs,wa,gu,vA,wA,Ar,ir,Pr,zr=i(511),Pi=i(2041),mu=i(225),No=i(767),If=0,zv=Pi,Tf=mu,nA=No,yA=zr,_f=0,Lf=1,P4=2,Qf=3,Nf=4,Wv=5,R4=6,$v=7,qv=8,Of=9,Xv=10,pW=[2,3,7],gW=[3,3,11],D4=[280,256,256,256,40],mW=[0,1,1,1,0],vW=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],wW=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],yW=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],BW=8,Yv=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Jv=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],vu=null,bW=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],xW=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],k4=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],CW=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],EW=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],SW=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],FW=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ya=[],jA=[],Ri=[],UW=1,H4=2,Ba=[],BA=[];Oe("UpsampleRgbLinePair",Qt,3),Oe("UpsampleBgrLinePair",dr,3),Oe("UpsampleRgbaLinePair",KA,4),Oe("UpsampleBgraLinePair",Zr,4),Oe("UpsampleArgbLinePair",En,4),Oe("UpsampleRgba4444LinePair",Mr,2),Oe("UpsampleRgb565LinePair",br,2);var IW=D.UpsampleRgbLinePair,TW=D.UpsampleBgrLinePair,M4=D.UpsampleRgbaLinePair,K4=D.UpsampleBgraLinePair,j4=D.UpsampleArgbLinePair,V4=D.UpsampleRgba4444LinePair,_W=D.UpsampleRgb565LinePair,Pf=16,Rf=1<<Pf-1,wu=-227,Zv=482,LW=6,G4=0,QW=i(256),NW=i(256),OW=i(256),PW=i(256),RW=i(Zv-wu),DW=i(Zv-wu);si("YuvToRgbRow",Qt,3),si("YuvToBgrRow",dr,3),si("YuvToRgbaRow",KA,4),si("YuvToBgraRow",Zr,4),si("YuvToArgbRow",En,4),si("YuvToRgba4444Row",Mr,2),si("YuvToRgb565Row",br,2);var z4=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Df=[0,2,8],kW=[8,7,6,4,4,2,2,2,1,1,1,1],HW=1;this.WebPDecodeRGBA=function(f,v,T,H,X){var re=Lf,Ae=new xo,le=new nr;Ae.ba=le,le.S=re,le.width=[le.width],le.height=[le.height];var ce=le.width,pe=le.height,ye=new Dt;if(ye==null||f==null)var Ue=2;else e(ye!=null),Ue=Eo(f,v,T,ye.width,ye.height,ye.Pd,ye.Qd,ye.format,null);if(Ue!=0?ce=0:(ce!=null&&(ce[0]=ye.width[0]),pe!=null&&(pe[0]=ye.height[0]),ce=1),ce){le.width=le.width[0],le.height=le.height[0],H!=null&&(H[0]=le.width),X!=null&&(X[0]=le.height);e:{if(H=new go,(X=new Au).data=f,X.w=v,X.ha=T,X.kd=1,v=[0],e(X!=null),((f=Eo(X.data,X.w,X.ha,null,null,null,v,null,X))==0||f==7)&&v[0]&&(f=4),(v=f)==0){if(e(Ae!=null),H.data=X.data,H.w=X.w+X.offset,H.ha=X.ha-X.offset,H.put=Mn,H.ac=Hr,H.bc=Jn,H.ma=Ae,X.xa){if((f=Ln())==null){Ae=1;break e}if(function(Ie,Ce){var ke=[0],Ne=[0],Be=[0];t:for(;;){if(Ie==null)return 0;if(Ce==null)return Ie.a=2,0;if(Ie.l=Ce,Ie.a=0,oe(Ie.m,Ce.data,Ce.w,Ce.ha),!ct(Ie.m,ke,Ne,Be)){Ie.a=3;break t}if(Ie.xb=H4,Ce.width=ke[0],Ce.height=Ne[0],!tA(ke[0],Ne[0],1,Ie,null))break t;return 1}return e(Ie.a!=0),0}(f,H)){if(H=(v=So(H.width,H.height,Ae.Oa,Ae.ba))==0){t:{H=f;r:for(;;){if(H==null){H=0;break t}if(e(H.s.yc!=null),e(H.s.Ya!=null),e(0<H.s.Wb),e((T=H.l)!=null),e((X=T.ma)!=null),H.xb!=0){if(H.ca=X.ba,H.tb=X.tb,e(H.ca!=null),!uu(X.Oa,T,Qf)){H.a=2;break r}if(!Ai(H,T.width)||T.da)break r;if((T.da||St(H.ca.S))&&Ee(),11>H.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),H.ca.f.kb.F!=null&&Ee()),H.Pb&&0<H.s.ua&&H.s.vb.X==null&&!P(H.s.vb,H.s.Wa.Xa)){H.a=1;break r}H.xb=0}if(!Qr(H,H.V,H.Ba,H.c,H.i,T.o,Ti))break r;X.Dc=H.Ma,H=1;break t}e(H.a!=0),H=0}H=!H}H&&(v=f.a)}else v=f.a}else{if((f=new Sv)==null){Ae=1;break e}if(f.Fa=X.na,f.P=X.P,f.qc=X.Sa,lf(f,H)){if((v=So(H.width,H.height,Ae.Oa,Ae.ba))==0){if(f.Aa=0,T=Ae.Oa,e((X=f)!=null),T!=null){if(0<(ce=0>(ce=T.Md)?0:100<ce?255:255*ce/100)){for(pe=ye=0;4>pe;++pe)12>(Ue=X.pb[pe]).lc&&(Ue.ia=ce*kW[0>Ue.lc?0:Ue.lc]>>3),ye|=Ue.ia;ye&&(alert("todo:VP8InitRandom"),X.ia=1)}X.Ga=T.Id,100<X.Ga?X.Ga=100:0>X.Ga&&(X.Ga=0)}Fv(f,H)||(v=f.a)}}else v=f.a}v==0&&Ae.Oa!=null&&Ae.Oa.fd&&(v=cu(Ae.ba))}Ae=v}re=Ae!=0?null:11>re?le.f.RGBA.eb:le.f.kb.y}else re=null;return re};var W4=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(D,Q){for(var J="",M=0;M<4;M++)J+=String.fromCharCode(D[Q++]);return J}function u(D,Q){return(D[Q+0]<<0|D[Q+1]<<8|D[Q+2]<<16)>>>0}function h(D,Q){return(D[Q+0]<<0|D[Q+1]<<8|D[Q+2]<<16|D[Q+3]<<24)>>>0}new o;var d=[0],c=[0],p=[],m=new o,y=r,g=function(D,Q){var J={},M=0,S=!1,K=0,F=0;if(J.frames=[],!function(k,V,W,z){for(var _=0;_<z;_++)if(k[V+_]!=W.charCodeAt(_))return!0;return!1}(D,Q,"RIFF",4)){var ne,ee;for(h(D,Q+=4),Q+=8;Q<D.length;){var G=l(D,Q),oe=h(D,Q+=4);Q+=4;var q=oe+(1&oe);switch(G){case"VP8 ":case"VP8L":J.frames[M]===void 0&&(J.frames[M]={}),(E=J.frames[M]).src_off=S?F:Q-8,E.src_size=K+oe+8,M++,S&&(S=!1,K=0,F=0);break;case"VP8X":(E=J.header={}).feature_flags=D[Q];var he=Q+4;E.canvas_width=1+u(D,he),he+=3,E.canvas_height=1+u(D,he),he+=3;break;case"ALPH":S=!0,K=q+8,F=Q-8;break;case"ANIM":(E=J.header).bgcolor=h(D,Q),he=Q+4,E.loop_count=(ne=D)[(ee=he)+0]<<0|ne[ee+1]<<8,he+=2;break;case"ANMF":var ie,E;(E=J.frames[M]={}).offset_x=2*u(D,Q),Q+=3,E.offset_y=2*u(D,Q),Q+=3,E.width=1+u(D,Q),Q+=3,E.height=1+u(D,Q),Q+=3,E.duration=u(D,Q),Q+=3,ie=D[Q++],E.dispose=1&ie,E.blend=ie>>1&1}G!="ANMF"&&(Q+=q)}return J}}(y,0);g.response=y,g.rgbaoutput=!0,g.dataurl=!1;var w=g.header?g.header:null,B=g.frames?g.frames:null;if(w){w.loop_counter=w.loop_count,d=[w.canvas_height],c=[w.canvas_width];for(var I=0;I<B.length&&B[I].blend!=0;I++);}var O=B[0],j=m.WebPDecodeRGBA(y,O.src_off,O.src_size,c,d);O.rgba=j,O.imgwidth=c[0],O.imgheight=d[0];for(var R=0;R<c[0]*d[0]*4;R++)p[R]=j[R];return this.width=c,this.height=d,this.data=p,this}(function(r){var e=function(){return typeof Np=="function"},t=function(d,c,p,m){var y=4,g=a;switch(m){case r.image_compression.FAST:y=1,g=i;break;case r.image_compression.MEDIUM:y=6,g=s;break;case r.image_compression.SLOW:y=9,g=o}d=n(d,c,p,g);var w=Np(d,{level:y});return r.__addimage__.arrayBufferToBinaryString(w)},n=function(d,c,p,m){for(var y,g,w,B=d.length/c,I=new Uint8Array(d.length+B),O=u(),j=0;j<B;j+=1){if(w=j*c,y=d.subarray(w,w+c),m)I.set(m(y,p,g),w+j);else{for(var R,D=O.length,Q=[];R<D;R+=1)Q[R]=O[R](y,p,g);var J=h(Q.concat());I.set(Q[J],w+j)}g=y}return I},A=function(d){var c=Array.apply([],d);return c.unshift(0),c},i=function(d,c){var p,m=[],y=d.length;m[0]=1;for(var g=0;g<y;g+=1)p=d[g-c]||0,m[g+1]=d[g]-p+256&255;return m},a=function(d,c,p){var m,y=[],g=d.length;y[0]=2;for(var w=0;w<g;w+=1)m=p&&p[w]||0,y[w+1]=d[w]-m+256&255;return y},s=function(d,c,p){var m,y,g=[],w=d.length;g[0]=3;for(var B=0;B<w;B+=1)m=d[B-c]||0,y=p&&p[B]||0,g[B+1]=d[B]+256-(m+y>>>1)&255;return g},o=function(d,c,p){var m,y,g,w,B=[],I=d.length;B[0]=4;for(var O=0;O<I;O+=1)m=d[O-c]||0,y=p&&p[O]||0,g=p&&p[O-c]||0,w=l(m,y,g),B[O+1]=d[O]-w+256&255;return B},l=function(d,c,p){if(d===c&&c===p)return d;var m=Math.abs(c-p),y=Math.abs(d-p),g=Math.abs(d+c-p-p);return m<=y&&m<=g?d:y<=g?c:p},u=function(){return[A,i,a,s,o]},h=function(d){var c=d.map(function(p){return p.reduce(function(m,y){return m+Math.abs(y)},0)});return c.indexOf(Math.min.apply(null,c))};r.processPNG=function(d,c,p,m){var y,g,w,B,I,O,j,R,D,Q,J,M,S,K,F,ne=this.decode.FLATE_DECODE,ee="";if(this.__addimage__.isArrayBuffer(d)&&(d=new Uint8Array(d)),this.__addimage__.isArrayBufferView(d)){if(d=(w=new OL(d)).imgData,g=w.bits,y=w.colorSpace,I=w.colors,[4,6].indexOf(w.colorType)!==-1){if(w.bits===8){D=(R=w.pixelBitlength==32?new Uint32Array(w.decodePixels().buffer):w.pixelBitlength==16?new Uint16Array(w.decodePixels().buffer):new Uint8Array(w.decodePixels().buffer)).length,J=new Uint8Array(D*w.colors),Q=new Uint8Array(D);var G,oe=w.pixelBitlength-w.bits;for(K=0,F=0;K<D;K++){for(S=R[K],G=0;G<oe;)J[F++]=S>>>G&255,G+=w.bits;Q[K]=S>>>G&255}}if(w.bits===16){D=(R=new Uint32Array(w.decodePixels().buffer)).length,J=new Uint8Array(D*(32/w.pixelBitlength)*w.colors),Q=new Uint8Array(D*(32/w.pixelBitlength)),M=w.colors>1,K=0,F=0;for(var q=0;K<D;)S=R[K++],J[F++]=S>>>0&255,M&&(J[F++]=S>>>16&255,S=R[K++],J[F++]=S>>>0&255),Q[q++]=S>>>16&255;g=8}m!==r.image_compression.NONE&&e()?(d=t(J,w.width*w.colors,w.colors,m),j=t(Q,w.width,1,m)):(d=J,j=Q,ne=void 0)}if(w.colorType===3&&(y=this.color_spaces.INDEXED,O=w.palette,w.transparency.indexed)){var he=w.transparency.indexed,ie=0;for(K=0,D=he.length;K<D;++K)ie+=he[K];if((ie/=255)===D-1&&he.indexOf(0)!==-1)B=[he.indexOf(0)];else if(ie!==D){for(R=w.decodePixels(),Q=new Uint8Array(R.length),K=0,D=R.length;K<D;K++)Q[K]=he[R[K]];j=t(Q,w.width,1)}}var E=function(k){var V;switch(k){case r.image_compression.FAST:V=11;break;case r.image_compression.MEDIUM:V=13;break;case r.image_compression.SLOW:V=14;break;default:V=12}return V}(m);return ne===this.decode.FLATE_DECODE&&(ee="/Predictor "+E+" "),ee+="/Colors "+I+" /BitsPerComponent "+g+" /Columns "+w.width,(this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),(j&&this.__addimage__.isArrayBuffer(j)||this.__addimage__.isArrayBufferView(j))&&(j=this.__addimage__.arrayBufferToBinaryString(j)),{alias:p,data:d,index:c,filter:ne,decodeParameters:ee,transparency:B,palette:O,sMask:j,predictor:E,width:w.width,height:w.height,bitsPerComponent:g,colorSpace:y}}}})(ht.API),function(r){r.processGIF89A=function(e,t,n,A){var i=new PL(e),a=i.width,s=i.height,o=[];i.decodeAndBlitFrameRGBA(0,o);var l={data:o,width:a,height:s},u=new Wp(100).encode(l,100);return r.processJPEG.call(this,u,t,n,A)},r.processGIF87A=r.processGIF89A}(ht.API),FA.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var r=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(r);for(var e=0;e<r;e++){var t=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:A,green:n,blue:t,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},FA.prototype.parseBGR=function(){this.pos=this.offset;try{var r="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[r]()}catch(t){Zt.log("bit decode error:"+t)}},FA.prototype.bit1=function(){var r,e=Math.ceil(this.width/8),t=e%4;for(r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,A=0;A<e;A++)for(var i=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+8*A*4,s=0;s<8&&8*A+s<this.width;s++){var o=this.palette[i>>7-s&1];this.data[a+4*s]=o.blue,this.data[a+4*s+1]=o.green,this.data[a+4*s+2]=o.red,this.data[a+4*s+3]=255}t!==0&&(this.pos+=4-t)}},FA.prototype.bit4=function(){for(var r=Math.ceil(this.width/2),e=r%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,A=0;A<r;A++){var i=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+2*A*4,s=i>>4,o=15&i,l=this.palette[s];if(this.data[a]=l.blue,this.data[a+1]=l.green,this.data[a+2]=l.red,this.data[a+3]=255,2*A+1>=this.width)break;l=this.palette[o],this.data[a+4]=l.blue,this.data[a+4+1]=l.green,this.data[a+4+2]=l.red,this.data[a+4+3]=255}e!==0&&(this.pos+=4-e)}},FA.prototype.bit8=function(){for(var r=this.width%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var A=this.datav.getUint8(this.pos++,!0),i=t*this.width*4+4*n;if(A<this.palette.length){var a=this.palette[A];this.data[i]=a.red,this.data[i+1]=a.green,this.data[i+2]=a.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}r!==0&&(this.pos+=4-r)}},FA.prototype.bit15=function(){for(var r=this.width%3,e=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,A=0;A<this.width;A++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(i&e)/e*255|0,s=(i>>5&e)/e*255|0,o=(i>>10&e)/e*255|0,l=i>>15?255:0,u=n*this.width*4+4*A;this.data[u]=o,this.data[u+1]=s,this.data[u+2]=a,this.data[u+3]=l}this.pos+=r}},FA.prototype.bit16=function(){for(var r=this.width%3,e=parseInt("11111",2),t=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var A=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,o=(a>>5&t)/t*255|0,l=(a>>11)/e*255|0,u=A*this.width*4+4*i;this.data[u]=l,this.data[u+1]=o,this.data[u+2]=s,this.data[u+3]=255}this.pos+=r}},FA.prototype.bit24=function(){for(var r=this.height-1;r>=0;r--){for(var e=this.bottom_up?r:this.height-1-r,t=0;t<this.width;t++){var n=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*t;this.data[a]=i,this.data[a+1]=A,this.data[a+2]=n,this.data[a+3]=255}this.pos+=this.width%4}},FA.prototype.bit32=function(){for(var r=this.height-1;r>=0;r--)for(var e=this.bottom_up?r:this.height-1-r,t=0;t<this.width;t++){var n=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*t;this.data[s]=i,this.data[s+1]=A,this.data[s+2]=n,this.data[s+3]=a}},FA.prototype.getData=function(){return this.data},function(r){r.processBMP=function(e,t,n,A){var i=new FA(e,!1),a=i.width,s=i.height,o={data:i.getData(),width:a,height:s},l=new Wp(100).encode(o,100);return r.processJPEG.call(this,l,t,n,A)}}(ht.API),RB.prototype.getData=function(){return this.data},function(r){r.processWEBP=function(e,t,n,A){var i=new RB(e),a=i.width,s=i.height,o={data:i.getData(),width:a,height:s},l=new Wp(100).encode(o,100);return r.processJPEG.call(this,l,t,n,A)}}(ht.API),ht.API.processRGBA=function(r,e,t){for(var n=r.data,A=n.length,i=new Uint8Array(A/4*3),a=new Uint8Array(A/4),s=0,o=0,l=0;l<A;l+=4){var u=n[l],h=n[l+1],d=n[l+2],c=n[l+3];i[s++]=u,i[s++]=h,i[s++]=d,a[o++]=c}var p=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:p,index:e,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:r.width,height:r.height}},ht.API.setLanguage=function(r){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[r]!==void 0&&(this.internal.languageSettings.languageCode=r,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},ks=ht.API,sc=ks.getCharWidthsArray=function(r,e){var t,n,A=(e=e||{}).font||this.internal.getFont(),i=e.fontSize||this.internal.getFontSize(),a=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:A.metadata.Unicode.widths,o=s.fof?s.fof:1,l=e.kerning?e.kerning:A.metadata.Unicode.kerning,u=l.fof?l.fof:1,h=e.doKerning!==!1,d=0,c=r.length,p=0,m=s[0]||o,y=[];for(t=0;t<c;t++)n=r.charCodeAt(t),typeof A.metadata.widthOfString=="function"?y.push((A.metadata.widthOfGlyph(A.metadata.characterToGlyph(n))+a*(1e3/i)||0)/1e3):(d=h&&Rt(l[n])==="object"&&!isNaN(parseInt(l[n][p],10))?l[n][p]/u:0,y.push((s[n]||m)/o+d)),p=n;return y},QB=ks.getStringUnitWidth=function(r,e){var t=(e=e||{}).fontSize||this.internal.getFontSize(),n=e.font||this.internal.getFont(),A=e.charSpace||this.internal.getCharSpace();return ks.processArabic&&(r=ks.processArabic(r)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(r,t,A)/t:sc.apply(this,arguments).reduce(function(i,a){return i+a},0)},NB=function(r,e,t,n){for(var A=[],i=0,a=r.length,s=0;i!==a&&s+e[i]<t;)s+=e[i],i++;A.push(r.slice(0,i));var o=i;for(s=0;i!==a;)s+e[i]>n&&(A.push(r.slice(o,i)),s=0,o=i),s+=e[i],i++;return o!==i&&A.push(r.slice(o,i)),A},OB=function(r,e,t){t||(t={});var n,A,i,a,s,o,l,u=[],h=[u],d=t.textIndent||0,c=0,p=0,m=r.split(" "),y=sc.apply(this,[" ",t])[0];if(o=t.lineIndent===-1?m[0].length+2:t.lineIndent||0){var g=Array(o).join(" "),w=[];m.map(function(I){(I=I.split(/\s*\n/)).length>1?w=w.concat(I.map(function(O,j){return(j&&O.length?`
265
+ `:"")+O})):w.push(I[0])}),m=w,o=QB.apply(this,[g,t])}for(i=0,a=m.length;i<a;i++){var B=0;if(n=m[i],o&&n[0]==`
266
+ `&&(n=n.substr(1),B=1),d+c+(p=(A=sc.apply(this,[n,t])).reduce(function(I,O){return I+O},0))>e||B){if(p>e){for(s=NB.apply(this,[n,A,e-(d+c),e]),u.push(s.shift()),u=[s.pop()];s.length;)h.push([s.shift()]);p=A.slice(n.length-(u[0]?u[0].length:0)).reduce(function(I,O){return I+O},0)}else u=[n];h.push(u),d=p+o,c=y}else u.push(n),d+=c+p,c=y}return l=o?function(I,O){return(O?g:"")+I.join(" ")}:function(I){return I.join(" ")},h.map(l)},ks.splitTextToSize=function(r,e,t){var n,A=(t=t||{}).fontSize||this.internal.getFontSize(),i=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var h=this.internal.getFont(u.fontName,u.fontStyle);return h.metadata.Unicode?{widths:h.metadata.Unicode.widths||{0:1},kerning:h.metadata.Unicode.kerning||{}}:{font:h.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);n=Array.isArray(r)?r:String(r).split(/\r?\n/);var a=1*this.internal.scaleFactor*e/A;i.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/A:0,i.lineIndent=t.lineIndent;var s,o,l=[];for(s=0,o=n.length;s<o;s++)l=l.concat(OB.apply(this,[n[s],a,i]));return l},function(r){r.__fontmetrics__=r.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",t={},n={},A=0;A<e.length;A++)t[e[A]]="0123456789abcdef"[A],n["0123456789abcdef"[A]]=e[A];var i=function(h){return"0x"+parseInt(h,10).toString(16)},a=r.__fontmetrics__.compress=function(h){var d,c,p,m,y=["{"];for(var g in h){if(d=h[g],isNaN(parseInt(g,10))?c="'"+g+"'":(g=parseInt(g,10),c=(c=i(g).slice(2)).slice(0,-1)+n[c.slice(-1)]),typeof d=="number")d<0?(p=i(d).slice(3),m="-"):(p=i(d).slice(2),m=""),p=m+p.slice(0,-1)+n[p.slice(-1)];else{if(Rt(d)!=="object")throw new Error("Don't know what to do with value type "+Rt(d)+".");p=a(d)}y.push(c+p)}return y.push("}"),y.join("")},s=r.__fontmetrics__.uncompress=function(h){if(typeof h!="string")throw new Error("Invalid argument passed to uncompress.");for(var d,c,p,m,y={},g=1,w=y,B=[],I="",O="",j=h.length-1,R=1;R<j;R+=1)(m=h[R])=="'"?d?(p=d.join(""),d=void 0):d=[]:d?d.push(m):m=="{"?(B.push([w,p]),w={},p=void 0):m=="}"?((c=B.pop())[0][c[1]]=w,p=void 0,w=c[0]):m=="-"?g=-1:p===void 0?t.hasOwnProperty(m)?(I+=t[m],p=parseInt(I,16)*g,g=1,I=""):I+=m:t.hasOwnProperty(m)?(O+=t[m],w[p]=parseInt(O,16)*g,g=1,p=void 0,O=""):O+=m;return y},o={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},l={Unicode:{Courier:o,"Courier-Bold":o,"Courier-BoldOblique":o,"Courier-Oblique":o,Helvetica:o,"Helvetica-Bold":o,"Helvetica-BoldOblique":o,"Helvetica-Oblique":o,"Times-Roman":o,"Times-Bold":o,"Times-BoldItalic":o,"Times-Italic":o}},u={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};r.events.push(["addFont",function(h){var d=h.font,c=u.Unicode[d.postScriptName];c&&(d.metadata.Unicode={},d.metadata.Unicode.widths=c.widths,d.metadata.Unicode.kerning=c.kerning);var p=l.Unicode[d.postScriptName];p&&(d.metadata.Unicode.encoding=p,d.encoding=p.codePages[0])}])}(ht.API),function(r){var e=function(t){for(var n=t.length,A=new Uint8Array(n),i=0;i<n;i++)A[i]=t.charCodeAt(i);return A};r.API.events.push(["addFont",function(t){var n=void 0,A=t.font,i=t.instance;if(!A.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+A.postScriptName+"').");if(typeof(n=i.existsFileInVFS(A.postScriptName)===!1?i.loadFile(A.postScriptName):i.getFileFromVFS(A.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+A.postScriptName+"').");(function(a,s){s=/^\x00\x01\x00\x00/.test(s)?e(s):e(Yo(s)),a.metadata=r.API.TTFFont.open(s),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(A,n)}}])}(ht),function(r){function e(){return(pt.canvg?Promise.resolve(pt.canvg):Promise.resolve().then(()=>dW)).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}ht.API.addSvgAsImage=function(t,n,A,i,a,s,o,l){if(isNaN(n)||isNaN(A))throw Zt.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw Zt.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=i,u.height=a;var h=u.getContext("2d");h.fillStyle="#fff",h.fillRect(0,0,u.width,u.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},c=this;return e().then(function(p){return p.fromString(h,t,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(p){return p.render(d)}).then(function(){c.addImage(u.toDataURL("image/jpeg",1),n,A,i,a,o,l)})}}(),ht.API.putTotalPages=function(r){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(r,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(r,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var A=0;A<this.internal.pages[n].length;A++)this.internal.pages[n][A]=this.internal.pages[n][A].replace(e,t);return this},ht.API.viewerPreferences=function(r,e){var t;r=r||{},e=e||!1;var n,A,i,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(a),o=[],l=0,u=0,h=0;function d(p,m){var y,g=!1;for(y=0;y<p.length;y+=1)p[y]===m&&(g=!0);return g}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,r==="reset"||e===!0){var c=s.length;for(h=0;h<c;h+=1)t[s[h]].value=t[s[h]].defaultValue,t[s[h]].explicitSet=!1}if(Rt(r)==="object"){for(A in r)if(i=r[A],d(s,A)&&i!==void 0){if(t[A].type==="boolean"&&typeof i=="boolean")t[A].value=i;else if(t[A].type==="name"&&d(t[A].valueSet,i))t[A].value=i;else if(t[A].type==="integer"&&Number.isInteger(i))t[A].value=i;else if(t[A].type==="array"){for(l=0;l<i.length;l+=1)if(n=!0,i[l].length===1&&typeof i[l][0]=="number")o.push(String(i[l]-1));else if(i[l].length>1){for(u=0;u<i[l].length;u+=1)typeof i[l][u]!="number"&&(n=!1);n===!0&&o.push([i[l][0]-1,i[l][1]-1].join(" "))}t[A].value="["+o.join(" ")+"]"}else t[A].value=t[A].defaultValue;t[A].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var p,m=[];for(p in t)t[p].explicitSet===!0&&(t[p].type==="name"?m.push("/"+p+" /"+t[p].value):m.push("/"+p+" "+t[p].value));m.length!==0&&this.internal.write(`/ViewerPreferences
267
+ <<
268
+ `+m.join(`
269
+ `)+`
270
+ >>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},function(r){var e=function(){var n='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',A=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(n)),a=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),l=i.length+a.length+s.length+A.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+l+" >>"),this.internal.write("stream"),this.internal.write(A+i+a+s+o),this.internal.write("endstream"),this.internal.write("endobj")},t=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};r.addMetadata=function(n,A){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:A||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",t),this.internal.events.subscribe("postPutResources",e)),this}}(ht.API),function(r){var e=r.API,t=e.pdfEscape16=function(i,a){for(var s,o=a.metadata.Unicode.widths,l=["","0","00","000","0000"],u=[""],h=0,d=i.length;h<d;++h){if(s=a.metadata.characterToGlyph(i.charCodeAt(h)),a.metadata.glyIdsUsed.push(s),a.metadata.toUnicode[s]=i.charCodeAt(h),o.indexOf(s)==-1&&(o.push(s),o.push([parseInt(a.metadata.widthOfGlyph(s),10)])),s=="0")return u.join("");s=s.toString(16),u.push(l[4-s.length],s)}return u.join("")},n=function(i){var a,s,o,l,u,h,d;for(u=`/CIDInit /ProcSet findresource begin
271
+ 12 dict begin
272
+ begincmap
273
+ /CIDSystemInfo <<
274
+ /Registry (Adobe)
275
+ /Ordering (UCS)
276
+ /Supplement 0
277
+ >> def
278
+ /CMapName /Adobe-Identity-UCS def
279
+ /CMapType 2 def
280
+ 1 begincodespacerange
281
+ <0000><ffff>
282
+ endcodespacerange`,o=[],h=0,d=(s=Object.keys(i).sort(function(c,p){return c-p})).length;h<d;h++)a=s[h],o.length>=100&&(u+=`
283
+ `+o.length+` beginbfchar
284
+ `+o.join(`
285
+ `)+`
286
+ endbfchar`,o=[]),i[a]!==void 0&&i[a]!==null&&typeof i[a].toString=="function"&&(l=("0000"+i[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),o.push("<"+a+"><"+l+">"));return o.length&&(u+=`
287
+ `+o.length+` beginbfchar
288
+ `+o.join(`
289
+ `)+`
290
+ endbfchar
291
+ `),u+=`endcmap
292
+ CMapName currentdict /CMap defineresource pop
293
+ end
294
+ end`};e.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,l=a.newObject,u=a.putStream;if(s.metadata instanceof r.API.TTFFont&&s.encoding==="Identity-H"){for(var h=s.metadata.Unicode.widths,d=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),c="",p=0;p<d.length;p++)c+=String.fromCharCode(d[p]);var m=l();u({data:c,addLength1:!0,objectId:m}),o("endobj");var y=l();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:y}),o("endobj");var g=l();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+Rs(s.fontName)),o("/FontFile2 "+m+" 0 R"),o("/FontBBox "+r.API.PDFObject.convert(s.metadata.bbox)),o("/Flags "+s.metadata.flags),o("/StemV "+s.metadata.stemV),o("/ItalicAngle "+s.metadata.italicAngle),o("/Ascent "+s.metadata.ascender),o("/Descent "+s.metadata.decender),o("/CapHeight "+s.metadata.capHeight),o(">>"),o("endobj");var w=l();o("<<"),o("/Type /Font"),o("/BaseFont /"+Rs(s.fontName)),o("/FontDescriptor "+g+" 0 R"),o("/W "+r.API.PDFObject.convert(h)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+s.encoding+")"),o(">>"),o(">>"),o("endobj"),s.objectNumber=l(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+y+" 0 R"),o("/BaseFont /"+Rs(s.fontName)),o("/Encoding /"+s.encoding),o("/DescendantFonts ["+w+" 0 R]"),o(">>"),o("endobj"),s.isAlreadyPutted=!0}})(i)}]),e.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,l=a.newObject,u=a.putStream;if(s.metadata instanceof r.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var h=s.metadata.rawData,d="",c=0;c<h.length;c++)d+=String.fromCharCode(h[c]);var p=l();u({data:d,addLength1:!0,objectId:p}),o("endobj");var m=l();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:m}),o("endobj");var y=l();o("<<"),o("/Descent "+s.metadata.decender),o("/CapHeight "+s.metadata.capHeight),o("/StemV "+s.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+p+" 0 R"),o("/Flags 96"),o("/FontBBox "+r.API.PDFObject.convert(s.metadata.bbox)),o("/FontName /"+Rs(s.fontName)),o("/ItalicAngle "+s.metadata.italicAngle),o("/Ascent "+s.metadata.ascender),o(">>"),o("endobj"),s.objectNumber=l();for(var g=0;g<s.metadata.hmtx.widths.length;g++)s.metadata.hmtx.widths[g]=parseInt(s.metadata.hmtx.widths[g]*(1e3/s.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+m+" 0 R/BaseFont/"+Rs(s.fontName)+"/FontDescriptor "+y+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+r.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),o("endobj"),s.isAlreadyPutted=!0}})(i)}]);var A=function(i){var a,s=i.text||"",o=i.x,l=i.y,u=i.options||{},h=i.mutex||{},d=h.pdfEscape,c=h.activeFontKey,p=h.fonts,m=c,y="",g=0,w="",B=p[m].encoding;if(p[m].encoding!=="Identity-H")return{text:s,x:o,y:l,options:u,mutex:h};for(w=s,m=c,Array.isArray(s)&&(w=s[0]),g=0;g<w.length;g+=1)p[m].metadata.hasOwnProperty("cmap")&&(a=p[m].metadata.cmap.unicode.codeMap[w[g].charCodeAt(0)]),a||w[g].charCodeAt(0)<256&&p[m].metadata.hasOwnProperty("Unicode")?y+=w[g]:y+="";var I="";return parseInt(m.slice(1))<14||B==="WinAnsiEncoding"?I=d(y,m).split("").map(function(O){return O.charCodeAt(0).toString(16)}).join(""):B==="Identity-H"&&(I=t(y,p[m])),h.isHex=!0,{text:I,x:o,y:l,options:u,mutex:h}};e.events.push(["postProcessText",function(i){var a=i.text||"",s=[],o={text:a,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(a)){var l=0;for(l=0;l<a.length;l+=1)Array.isArray(a[l])&&a[l].length===3?s.push([A(Object.assign({},o,{text:a[l][0]})).text,a[l][1],a[l][2]]):s.push(A(Object.assign({},o,{text:a[l]})).text);i.text=s}else i.text=A(Object.assign({},o,{text:a})).text}])}(ht),function(r){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};r.existsFileInVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0},r.addFileToVFS=function(t,n){return e.call(this),this.internal.vFS[t]=n,this},r.getFileFromVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}}(ht.API),function(r){r.__bidiEngine__=r.prototype.__bidiEngine__=function(n){var A,i,a,s,o,l,u,h=e,d=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],p={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},m={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},y=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),w=!1,B=0;this.__bidiEngine__={};var I=function(M){var S=M.charCodeAt(),K=S>>8,F=m[K];return F!==void 0?h[256*F+(255&S)]:K===252||K===253?"AL":g.test(K)?"L":K===8?"R":"N"},O=function(M){for(var S,K=0;K<M.length;K++){if((S=I(M.charAt(K)))==="L")return!1;if(S==="R")return!0}return!1},j=function(M,S,K,F){var ne,ee,G,oe,q=S[F];switch(q){case"L":case"R":w=!1;break;case"N":case"AN":break;case"EN":w&&(q="AN");break;case"AL":w=!0,q="R";break;case"WS":q="N";break;case"CS":F<1||F+1>=S.length||(ne=K[F-1])!=="EN"&&ne!=="AN"||(ee=S[F+1])!=="EN"&&ee!=="AN"?q="N":w&&(ee="AN"),q=ee===ne?ee:"N";break;case"ES":q=(ne=F>0?K[F-1]:"B")==="EN"&&F+1<S.length&&S[F+1]==="EN"?"EN":"N";break;case"ET":if(F>0&&K[F-1]==="EN"){q="EN";break}if(w){q="N";break}for(G=F+1,oe=S.length;G<oe&&S[G]==="ET";)G++;q=G<oe&&S[G]==="EN"?"EN":"N";break;case"NSM":if(a&&!s){for(oe=S.length,G=F+1;G<oe&&S[G]==="NSM";)G++;if(G<oe){var he=M[F],ie=he>=1425&&he<=2303||he===64286;if(ne=S[G],ie&&(ne==="R"||ne==="AL")){q="R";break}}}q=F<1||(ne=S[F-1])==="B"?"N":K[F-1];break;case"B":w=!1,A=!0,q=B;break;case"S":i=!0,q="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":w=!1;break;case"BN":q="N"}return q},R=function(M,S,K){var F=M.split("");return K&&D(F,K,{hiLevel:B}),F.reverse(),S&&S.reverse(),F.join("")},D=function(M,S,K){var F,ne,ee,G,oe,q=-1,he=M.length,ie=0,E=[],k=B?c:d,V=[];for(w=!1,A=!1,i=!1,ne=0;ne<he;ne++)V[ne]=I(M[ne]);for(ee=0;ee<he;ee++){if(oe=ie,E[ee]=j(M,V,E,ee),F=240&(ie=k[oe][p[E[ee]]]),ie&=15,S[ee]=G=k[ie][5],F>0)if(F===16){for(ne=q;ne<ee;ne++)S[ne]=1;q=-1}else q=-1;if(k[ie][6])q===-1&&(q=ee);else if(q>-1){for(ne=q;ne<ee;ne++)S[ne]=G;q=-1}V[ee]==="B"&&(S[ee]=0),K.hiLevel|=G}i&&function(W,z,_){for(var L=0;L<_;L++)if(W[L]==="S"){z[L]=B;for(var Z=L-1;Z>=0&&W[Z]==="WS";Z--)z[Z]=B}}(V,S,he)},Q=function(M,S,K,F,ne){if(!(ne.hiLevel<M)){if(M===1&&B===1&&!A)return S.reverse(),void(K&&K.reverse());for(var ee,G,oe,q,he=S.length,ie=0;ie<he;){if(F[ie]>=M){for(oe=ie+1;oe<he&&F[oe]>=M;)oe++;for(q=ie,G=oe-1;q<G;q++,G--)ee=S[q],S[q]=S[G],S[G]=ee,K&&(ee=K[q],K[q]=K[G],K[G]=ee);ie=oe}ie++}}},J=function(M,S,K){var F=M.split(""),ne={hiLevel:B};return K||(K=[]),D(F,K,ne),function(ee,G,oe){if(oe.hiLevel!==0&&u)for(var q,he=0;he<ee.length;he++)G[he]===1&&(q=y.indexOf(ee[he]))>=0&&(ee[he]=y[q+1])}(F,K,ne),Q(2,F,S,K,ne),Q(1,F,S,K,ne),F.join("")};return this.__bidiEngine__.doBidiReorder=function(M,S,K){if(function(ne,ee){if(ee)for(var G=0;G<ne.length;G++)ee[G]=G;s===void 0&&(s=O(ne)),l===void 0&&(l=O(ne))}(M,S),a||!o||l)if(a&&o&&s^l)B=s?1:0,M=R(M,S,K);else if(!a&&o&&l)B=s?1:0,M=J(M,S,K),M=R(M,S);else if(!a||s||o||l){if(a&&!o&&s^l)M=R(M,S),s?(B=0,M=J(M,S,K)):(B=1,M=J(M,S,K),M=R(M,S));else if(a&&s&&!o&&l)B=1,M=J(M,S,K),M=R(M,S);else if(!a&&!o&&s^l){var F=u;s?(B=1,M=J(M,S,K),B=0,u=!1,M=J(M,S,K),u=F):(B=0,M=J(M,S,K),M=R(M,S),B=1,u=!1,M=J(M,S,K),u=F,M=R(M,S))}}else B=0,M=J(M,S,K);else B=s?1:0,M=J(M,S,K);return M},this.__bidiEngine__.setOptions=function(M){M&&(a=M.isInputVisual,o=M.isOutputVisual,s=M.isInputRtl,l=M.isOutputRtl,u=M.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],t=new r.__bidiEngine__({isInputVisual:!0});r.API.events.push(["postProcessText",function(n){var A=n.text,i=(n.x,n.y,n.options||{}),a=(n.mutex,i.lang,[]);if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,t.setOptions(i),Object.prototype.toString.call(A)==="[object Array]"){var s=0;for(a=[],s=0;s<A.length;s+=1)Object.prototype.toString.call(A[s])==="[object Array]"?a.push([t.doBidiReorder(A[s][0]),A[s][1],A[s][2]]):a.push([t.doBidiReorder(A[s])]);n.text=a}else n.text=t.doBidiReorder(A);t.setOptions({isInputVisual:!0})}])}(ht),ht.API.TTFFont=function(){function r(e){var t;if(this.rawData=e,t=this.contents=new Yi(e),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new YL(this),this.registerTTF()}return r.open=function(e){return new r(e)},r.prototype.parse=function(){return this.directory=new RL(this.contents),this.head=new kL(this),this.name=new VL(this),this.cmap=new kB(this),this.toUnicode={},this.hhea=new HL(this),this.maxp=new GL(this),this.hmtx=new zL(this),this.post=new KL(this),this.os2=new ML(this),this.loca=new XL(this),this.glyf=new WL(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},r.prototype.registerTTF=function(){var e,t,n,A,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var a,s,o,l;for(l=[],a=0,s=(o=this.bbox).length;a<s;a++)e=o[a],l.push(Math.round(e*this.scaleFactor));return l}).call(this),this.stemV=0,this.post.exists?(n=255&(A=this.post.italic_angle),32768&(t=A>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},r.prototype.characterToGlyph=function(e){var t;return((t=this.cmap.unicode)!=null?t.codeMap[e]:void 0)||0},r.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},r.prototype.widthOfString=function(e,t,n){var A,i,a,s;for(a=0,i=0,s=(e=""+e).length;0<=s?i<s:i>s;i=0<=s?++i:--i)A=e.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(A))+n*(1e3/t)||0;return a*(t/1e3)},r.prototype.lineHeight=function(e,t){var n;return t==null&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},r}();var UA,Yi=function(){function r(e){this.data=e??[],this.pos=0,this.length=this.data.length}return r.prototype.readByte=function(){return this.data[this.pos++]},r.prototype.writeByte=function(e){return this.data[this.pos++]=e},r.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},r.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},r.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},r.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},r.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},r.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},r.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},r.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},r.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},r.prototype.writeString=function(e){var t,n,A;for(A=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)A.push(this.writeByte(e.charCodeAt(t)));return A},r.prototype.readShort=function(){return this.readInt16()},r.prototype.writeShort=function(e){return this.writeInt16(e)},r.prototype.readLongLong=function(){var e,t,n,A,i,a,s,o;return e=this.readByte(),t=this.readByte(),n=this.readByte(),A=this.readByte(),i=this.readByte(),a=this.readByte(),s=this.readByte(),o=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^A)+16777216*(255^i)+65536*(255^a)+256*(255^s)+(255^o)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*A+16777216*i+65536*a+256*s+o},r.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},r.prototype.readInt=function(){return this.readInt32()},r.prototype.writeInt=function(e){return this.writeInt32(e)},r.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},r.prototype.write=function(e){var t,n,A,i;for(i=[],n=0,A=e.length;n<A;n++)t=e[n],i.push(this.writeByte(t));return i},r}(),RL=function(){var r;function e(t){var n,A,i;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},A=0,i=this.tableCount;0<=i?A<i:A>i;A=0<=i?++A:--A)n={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[n.tag]=n}return e.prototype.encode=function(t){var n,A,i,a,s,o,l,u,h,d,c,p,m;for(m in c=Object.keys(t).length,o=Math.log(2),h=16*Math.floor(Math.log(c)/o),a=Math.floor(h/o),u=16*c-h,(A=new Yi).writeInt(this.scalarType),A.writeShort(c),A.writeShort(h),A.writeShort(a),A.writeShort(u),i=16*c,l=A.pos+i,s=null,p=[],t)for(d=t[m],A.writeString(m),A.writeInt(r(d)),A.writeInt(l),A.writeInt(d.length),p=p.concat(d),m==="head"&&(s=l),l+=d.length;l%4;)p.push(0),l++;return A.write(p),n=2981146554-r(A.data),A.pos=s+8,A.writeUInt32(n),A.data},r=function(t){var n,A,i,a;for(t=HB.call(t);t.length%4;)t.push(0);for(i=new Yi(t),A=0,n=0,a=t.length;n<a;n=n+=4)A+=i.readUInt32();return 4294967295&A},e}(),DL={}.hasOwnProperty,JA=function(r,e){for(var t in e)DL.call(e,t)&&(r[t]=e[t]);function n(){this.constructor=r}return n.prototype=e.prototype,r.prototype=new n,r.__super__=e.prototype,r};UA=function(){function r(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return r.prototype.parse=function(){},r.prototype.encode=function(){},r.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},r}();var kL=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return JA(e,UA),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var n;return(n=new Yi).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(t),n.writeShort(this.glyphDataFormat),n.data},e}(),DB=function(){function r(e,t){var n,A,i,a,s,o,l,u,h,d,c,p,m,y,g,w,B;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),h=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(o=0;o<256;++o)this.codeMap[o]=e.readByte();break;case 4:for(c=e.readUInt16(),d=c/2,e.pos+=6,i=function(){var I,O;for(O=[],o=I=0;0<=d?I<d:I>d;o=0<=d?++I:--I)O.push(e.readUInt16());return O}(),e.pos+=2,m=function(){var I,O;for(O=[],o=I=0;0<=d?I<d:I>d;o=0<=d?++I:--I)O.push(e.readUInt16());return O}(),l=function(){var I,O;for(O=[],o=I=0;0<=d?I<d:I>d;o=0<=d?++I:--I)O.push(e.readUInt16());return O}(),u=function(){var I,O;for(O=[],o=I=0;0<=d?I<d:I>d;o=0<=d?++I:--I)O.push(e.readUInt16());return O}(),A=(this.length-e.pos+this.offset)/2,s=function(){var I,O;for(O=[],o=I=0;0<=A?I<A:I>A;o=0<=A?++I:--I)O.push(e.readUInt16());return O}(),o=g=0,B=i.length;g<B;o=++g)for(y=i[o],n=w=p=m[o];p<=y?w<=y:w>=y;n=p<=y?++w:--w)u[o]===0?a=n+l[o]:(a=s[u[o]/2+(n-p)-(d-o)]||0)!==0&&(a+=l[o]),this.codeMap[n]=65535&a}e.pos=h}return r.encode=function(e,t){var n,A,i,a,s,o,l,u,h,d,c,p,m,y,g,w,B,I,O,j,R,D,Q,J,M,S,K,F,ne,ee,G,oe,q,he,ie,E,k,V,W,z,_,L,Z,se,$,te;switch(F=new Yi,a=Object.keys(e).sort(function(me,P){return me-P}),t){case"macroman":for(m=0,y=function(){var me=[];for(p=0;p<256;++p)me.push(0);return me}(),w={0:0},i={},ne=0,q=a.length;ne<q;ne++)w[Z=e[A=a[ne]]]==null&&(w[Z]=++m),i[A]={old:e[A],new:w[e[A]]},y[A]=w[e[A]];return F.writeUInt16(1),F.writeUInt16(0),F.writeUInt32(12),F.writeUInt16(0),F.writeUInt16(262),F.writeUInt16(0),F.write(y),{charMap:i,subtable:F.data,maxGlyphID:m+1};case"unicode":for(S=[],h=[],B=0,w={},n={},g=l=null,ee=0,he=a.length;ee<he;ee++)w[O=e[A=a[ee]]]==null&&(w[O]=++B),n[A]={old:O,new:w[O]},s=w[O]-A,g!=null&&s===l||(g&&h.push(g),S.push(A),l=s),g=A;for(g&&h.push(g),h.push(65535),S.push(65535),J=2*(Q=S.length),D=2*Math.pow(Math.log(Q)/Math.LN2,2),d=Math.log(D/2)/Math.LN2,R=2*Q-D,o=[],j=[],c=[],p=G=0,ie=S.length;G<ie;p=++G){if(M=S[p],u=h[p],M===65535){o.push(0),j.push(0);break}if(M-(K=n[M].new)>=32768)for(o.push(0),j.push(2*(c.length+Q-p)),A=oe=M;M<=u?oe<=u:oe>=u;A=M<=u?++oe:--oe)c.push(n[A].new);else o.push(K-M),j.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*Q+2*c.length),F.writeUInt16(0),F.writeUInt16(J),F.writeUInt16(D),F.writeUInt16(d),F.writeUInt16(R),_=0,E=h.length;_<E;_++)A=h[_],F.writeUInt16(A);for(F.writeUInt16(0),L=0,k=S.length;L<k;L++)A=S[L],F.writeUInt16(A);for(se=0,V=o.length;se<V;se++)s=o[se],F.writeUInt16(s);for($=0,W=j.length;$<W;$++)I=j[$],F.writeUInt16(I);for(te=0,z=c.length;te<z;te++)m=c[te],F.writeUInt16(m);return{charMap:n,subtable:F.data,maxGlyphID:B+1}}},r}(),kB=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return JA(e,UA),e.prototype.tag="cmap",e.prototype.parse=function(t){var n,A,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,A=0;0<=i?A<i:A>i;A=0<=i?++A:--A)n=new DB(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var A,i;return n==null&&(n="macroman"),A=DB.encode(t,n),(i=new Yi).writeUInt16(0),i.writeUInt16(1),A.table=i.data.concat(A.subtable),A},e}(),HL=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return JA(e,UA),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),ML=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return JA(e,UA),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var n,A;for(A=[],n=0;n<10;++n)A.push(t.readByte());return A}(),this.charRange=function(){var n,A;for(A=[],n=0;n<4;++n)A.push(t.readInt());return A}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var n,A;for(A=[],n=0;n<2;n=++n)A.push(t.readInt());return A}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),KL=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return JA(e,UA),e.prototype.tag="post",e.prototype.parse=function(t){var n,A,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var a;for(A=t.readUInt16(),this.glyphNameIndex=[],a=0;0<=A?a<A:a>A;a=0<=A?++a:--a)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)n=t.readByte(),i.push(this.names.push(t.readString(n)));return i;case 151552:return A=t.readUInt16(),this.offsets=t.read(A);case 196608:break;case 262144:return this.map=(function(){var s,o,l;for(l=[],a=s=0,o=this.file.maxp.numGlyphs;0<=o?s<o:s>o;a=0<=o?++s:--s)l.push(t.readUInt32());return l}).call(this)}},e}(),jL=function(r,e){this.raw=r,this.length=r.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},VL=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return JA(e,UA),e.prototype.tag="name",e.prototype.parse=function(t){var n,A,i,a,s,o,l,u,h,d,c;for(t.pos=this.offset,t.readShort(),n=t.readShort(),o=t.readShort(),A=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)A.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(l={},a=h=0,d=A.length;h<d;a=++h)i=A[a],t.pos=i.offset,u=t.readString(i.length),s=new jL(u,i),l[c=i.nameID]==null&&(l[c]=[]),l[i.nameID].push(s);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e}(),GL=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return JA(e,UA),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),zL=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return JA(e,UA),e.prototype.tag="hmtx",e.prototype.parse=function(t){var n,A,i,a,s,o,l;for(t.pos=this.offset,this.metrics=[],n=0,o=this.file.hhea.numberOfMetrics;0<=o?n<o:n>o;n=0<=o?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,h;for(h=[],n=u=0;0<=i?u<i:u>i;n=0<=i?++u:--u)h.push(t.readInt16());return h}(),this.widths=(function(){var u,h,d,c;for(c=[],u=0,h=(d=this.metrics).length;u<h;u++)a=d[u],c.push(a.advance);return c}).call(this),A=this.widths[this.widths.length-1],l=[],n=s=0;0<=i?s<i:s>i;n=0<=i?++s:--s)l.push(this.widths.push(A));return l},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),HB=[].slice,WL=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return JA(e,UA),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,A,i,a,s,o,l,u,h,d;return t in this.cache?this.cache[t]:(a=this.file.loca,n=this.file.contents,A=a.indexOf(t),(i=a.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+A,s=(o=new Yi(n.read(i))).readShort(),u=o.readShort(),d=o.readShort(),l=o.readShort(),h=o.readShort(),this.cache[t]=s===-1?new qL(o,u,d,l,h):new $L(o,s,u,d,l,h),this.cache[t]))},e.prototype.encode=function(t,n,A){var i,a,s,o,l;for(s=[],a=[],o=0,l=n.length;o<l;o++)i=t[n[o]],a.push(s.length),i&&(s=s.concat(i.encode(A)));return a.push(s.length),{table:s,offsets:a}},e}(),$L=function(){function r(e,t,n,A,i,a){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=A,this.xMax=i,this.yMax=a,this.compound=!1}return r.prototype.encode=function(){return this.raw.data},r}(),qL=function(){function r(e,t,n,A,i){var a,s;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=A,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;s=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&s;)a.pos+=1&s?4:2,128&s?a.pos+=8:64&s?a.pos+=4:8&s&&(a.pos+=2)}return r.prototype.encode=function(){var e,t,n;for(t=new Yi(HB.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},r}(),XL=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return JA(e,UA),e.prototype.tag="loca",e.prototype.parse=function(t){var n,A;return t.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var i,a;for(a=[],A=0,i=this.length;A<i;A+=2)a.push(2*t.readUInt16());return a}).call(this):(function(){var i,a;for(a=[],A=0,i=this.length;A<i;A+=4)a.push(t.readUInt32());return a}).call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,n){for(var A=new Uint32Array(this.offsets.length),i=0,a=0,s=0;s<A.length;++s)if(A[s]=i,a<n.length&&n[a]==s){++a,A[s]=i;var o=this.offsets[s],l=this.offsets[s+1]-o;l>0&&(i+=l)}for(var u=new Array(4*A.length),h=0;h<A.length;++h)u[4*h+3]=255&A[h],u[4*h+2]=(65280&A[h])>>8,u[4*h+1]=(16711680&A[h])>>16,u[4*h]=(4278190080&A[h])>>24;return u},e}(),YL=function(){function r(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return r.prototype.generateCmap=function(){var e,t,n,A,i;for(t in A=this.font.cmap.tables[0].codeMap,e={},i=this.subset)n=i[t],e[t]=A[n];return e},r.prototype.glyphsFor=function(e){var t,n,A,i,a,s,o;for(A={},a=0,s=e.length;a<s;a++)A[i=e[a]]=this.font.glyf.glyphFor(i);for(i in t=[],A)(n=A[i])!=null&&n.compound&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(i in o=this.glyphsFor(t))n=o[i],A[i]=n;return A},r.prototype.encode=function(e,t){var n,A,i,a,s,o,l,u,h,d,c,p,m,y,g;for(A in n=kB.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(e),c={0:0},g=n.charMap)c[(o=g[A]).old]=o.new;for(p in d=n.maxGlyphID,a)p in c||(c[p]=d++);return u=function(w){var B,I;for(B in I={},w)I[w[B]]=B;return I}(c),h=Object.keys(u).sort(function(w,B){return w-B}),m=function(){var w,B,I;for(I=[],w=0,B=h.length;w<B;w++)s=h[w],I.push(u[s]);return I}(),i=this.font.glyf.encode(a,m,c),l=this.font.loca.encode(i.offsets,m),y={cmap:this.font.cmap.raw(),glyf:i.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(y["OS/2"]=this.font.os2.raw()),this.font.directory.encode(y)},r}();ht.API.PDFObject=function(){var r;function e(){}return r=function(t,n){return(Array(n+1).join("0")+t).slice(-n)},e.convert=function(t){var n,A,i,a;if(Array.isArray(t))return"["+function(){var s,o,l;for(l=[],s=0,o=t.length;s<o;s++)n=t[s],l.push(e.convert(n));return l}().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t!=null&&t.isString)return"("+t+")";if(t instanceof Date)return"(D:"+r(t.getUTCFullYear(),4)+r(t.getUTCMonth(),2)+r(t.getUTCDate(),2)+r(t.getUTCHours(),2)+r(t.getUTCMinutes(),2)+r(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(A in i=["<<"],t)a=t[A],i.push("/"+A+" "+e.convert(a));return i.push(">>"),i.join(`
295
+ `)}return""+t},e}();const JL=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:IL,AcroFormAppearance:At,AcroFormButton:Vr,AcroFormCheckBox:tl,AcroFormChoiceField:Ra,AcroFormComboBox:ka,AcroFormEditBox:Zo,AcroFormListBox:Da,AcroFormPasswordField:rl,AcroFormPushButton:el,AcroFormRadioButton:Ha,AcroFormTextField:Xi,GState:Jo,ShadingPattern:$i,TilingPattern:Oa,default:ht,jsPDF:ht},Symbol.toStringTag,{value:"Module"}));var gi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $p(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ZL(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var A=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,A.get?A:{enumerable:!0,get:function(){return r[n]}})}),t}var MB={exports:{}};const e6=ZL(JL);/*!
296
+ *
297
+ * jsPDF AutoTable plugin v3.8.4
298
+ *
299
+ * Copyright (c) 2024 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable
300
+ * Licensed under the MIT License.
301
+ * http://opensource.org/licenses/mit-license
302
+ *
303
+ */(function(r,e){(function(n,A){r.exports=A(function(){try{return e6}catch{}}())})(typeof globalThis<"u"?globalThis:typeof gi<"u"?gi:typeof window<"u"?window:typeof self<"u"?self:gi,function(t){return function(){var n={172:function(s,o){var l=this&&this.__extends||function(){var d=function(c,p){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var g in y)Object.prototype.hasOwnProperty.call(y,g)&&(m[g]=y[g])},d(c,p)};return function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");d(c,p);function m(){this.constructor=c}c.prototype=p===null?Object.create(p):(m.prototype=p.prototype,new m)}}();Object.defineProperty(o,"__esModule",{value:!0}),o.CellHookData=o.HookData=void 0;var u=function(){function d(c,p,m){this.table=p,this.pageNumber=p.pageNumber,this.pageCount=this.pageNumber,this.settings=p.settings,this.cursor=m,this.doc=c.getDocument()}return d}();o.HookData=u;var h=function(d){l(c,d);function c(p,m,y,g,w,B){var I=d.call(this,p,m,B)||this;return I.cell=y,I.row=g,I.column=w,I.section=g.section,I}return c}(u);o.CellHookData=h},340:function(s,o,l){Object.defineProperty(o,"__esModule",{value:!0});var u=l(4),h=l(136),d=l(744),c=l(776),p=l(664),m=l(972);function y(g){g.API.autoTable=function(){for(var w=[],B=0;B<arguments.length;B++)w[B]=arguments[B];var I;w.length===1?I=w[0]:(console.error("Use of deprecated autoTable initiation"),I=w[2]||{},I.columns=w[0],I.body=w[1]);var O=(0,c.parseInput)(this,I),j=(0,m.createTable)(this,O);return(0,p.drawTable)(this,j),this},g.API.lastAutoTable=!1,g.API.previousAutoTable=!1,g.API.autoTable.previous=!1,g.API.autoTableText=function(w,B,I,O){(0,h.default)(w,B,I,O,this)},g.API.autoTableSetDefaults=function(w){return d.DocHandler.setDefaults(w,this),this},g.autoTableSetDefaults=function(w,B){d.DocHandler.setDefaults(w,B)},g.API.autoTableHtmlToJson=function(w,B){var I;if(B===void 0&&(B=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var O=new d.DocHandler(this),j=(0,u.parseHtml)(O,w,window,B,!1),R=j.head,D=j.body,Q=((I=R[0])===null||I===void 0?void 0:I.map(function(J){return J.content}))||[];return{columns:Q,rows:D,data:D}},g.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var w=this.lastAutoTable;return w&&w.finalY?w.finalY:0},g.API.autoTableAddPageContent=function(w){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),g.API.autoTable.globalDefaults||(g.API.autoTable.globalDefaults={}),g.API.autoTable.globalDefaults.addPageContent=w,this},g.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}o.default=y},136:function(s,o){Object.defineProperty(o,"__esModule",{value:!0});function l(u,h,d,c,p){c=c||{};var m=1.15,y=p.internal.scaleFactor,g=p.internal.getFontSize()/y,w=p.getLineHeightFactor?p.getLineHeightFactor():m,B=g*w,I=/\r\n|\r|\n/g,O="",j=1;if((c.valign==="middle"||c.valign==="bottom"||c.halign==="center"||c.halign==="right")&&(O=typeof u=="string"?u.split(I):u,j=O.length||1),d+=g*(2-m),c.valign==="middle"?d-=j/2*B:c.valign==="bottom"&&(d-=j*B),c.halign==="center"||c.halign==="right"){var R=g;if(c.halign==="center"&&(R*=.5),O&&j>=1){for(var D=0;D<O.length;D++)p.text(O[D],h-p.getStringUnitWidth(O[D])*R,d),d+=B;return p}h-=p.getStringUnitWidth(u)*R}return c.halign==="justify"?p.text(u,h,d,{maxWidth:c.maxWidth||100,align:"justify"}):p.text(u,h,d),p}o.default=l},420:function(s,o){Object.defineProperty(o,"__esModule",{value:!0}),o.getPageAvailableWidth=o.parseSpacing=o.getFillStyle=o.addTableBorder=o.getStringWidth=void 0;function l(p,m,y){y.applyStyles(m,!0);var g=Array.isArray(p)?p:[p],w=g.map(function(B){return y.getTextWidth(B)}).reduce(function(B,I){return Math.max(B,I)},0);return w}o.getStringWidth=l;function u(p,m,y,g){var w=m.settings.tableLineWidth,B=m.settings.tableLineColor;p.applyStyles({lineWidth:w,lineColor:B});var I=h(w,!1);I&&p.rect(y.x,y.y,m.getWidth(p.pageSize().width),g.y-y.y,I)}o.addTableBorder=u;function h(p,m){var y=p>0,g=m||m===0;return y&&g?"DF":y?"S":g?"F":null}o.getFillStyle=h;function d(p,m){var y,g,w,B;if(p=p||m,Array.isArray(p)){if(p.length>=4)return{top:p[0],right:p[1],bottom:p[2],left:p[3]};if(p.length===3)return{top:p[0],right:p[1],bottom:p[2],left:p[1]};if(p.length===2)return{top:p[0],right:p[1],bottom:p[0],left:p[1]};p.length===1?p=p[0]:p=m}return typeof p=="object"?(typeof p.vertical=="number"&&(p.top=p.vertical,p.bottom=p.vertical),typeof p.horizontal=="number"&&(p.right=p.horizontal,p.left=p.horizontal),{left:(y=p.left)!==null&&y!==void 0?y:m,top:(g=p.top)!==null&&g!==void 0?g:m,right:(w=p.right)!==null&&w!==void 0?w:m,bottom:(B=p.bottom)!==null&&B!==void 0?B:m}):(typeof p!="number"&&(p=m),{top:p,right:p,bottom:p,left:p})}o.parseSpacing=d;function c(p,m){var y=d(m.settings.margin,0);return p.pageSize().width-(y.left+y.right)}o.getPageAvailableWidth=c},796:function(s,o){var l=this&&this.__extends||function(){var c=function(p,m){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,g){y.__proto__=g}||function(y,g){for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(y[w]=g[w])},c(p,m)};return function(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");c(p,m);function y(){this.constructor=p}p.prototype=m===null?Object.create(m):(y.prototype=m.prototype,new y)}}();Object.defineProperty(o,"__esModule",{value:!0}),o.getTheme=o.defaultStyles=o.HtmlRowInput=void 0;var u=function(c){l(p,c);function p(m){var y=c.call(this)||this;return y._element=m,y}return p}(Array);o.HtmlRowInput=u;function h(c){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/c,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}o.defaultStyles=h;function d(c){var p={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return p[c]}o.getTheme=d},903:function(s,o,l){Object.defineProperty(o,"__esModule",{value:!0}),o.parseCss=void 0;var u=l(420);function h(y,g,w,B,I){var O={},j=1.3333333333333333,R=c(g,function(q){return I.getComputedStyle(q).backgroundColor});R!=null&&(O.fillColor=R);var D=c(g,function(q){return I.getComputedStyle(q).color});D!=null&&(O.textColor=D);var Q=m(B,w);Q&&(O.cellPadding=Q);var J="borderTopColor",M=j*w,S=B.borderTopWidth;if(B.borderBottomWidth===S&&B.borderRightWidth===S&&B.borderLeftWidth===S){var K=(parseFloat(S)||0)/M;K&&(O.lineWidth=K)}else O.lineWidth={top:(parseFloat(B.borderTopWidth)||0)/M,right:(parseFloat(B.borderRightWidth)||0)/M,bottom:(parseFloat(B.borderBottomWidth)||0)/M,left:(parseFloat(B.borderLeftWidth)||0)/M},O.lineWidth.top||(O.lineWidth.right?J="borderRightColor":O.lineWidth.bottom?J="borderBottomColor":O.lineWidth.left&&(J="borderLeftColor"));var F=c(g,function(q){return I.getComputedStyle(q)[J]});F!=null&&(O.lineColor=F);var ne=["left","right","center","justify"];ne.indexOf(B.textAlign)!==-1&&(O.halign=B.textAlign),ne=["middle","bottom","top"],ne.indexOf(B.verticalAlign)!==-1&&(O.valign=B.verticalAlign);var ee=parseInt(B.fontSize||"");isNaN(ee)||(O.fontSize=ee/j);var G=d(B);G&&(O.fontStyle=G);var oe=(B.fontFamily||"").toLowerCase();return y.indexOf(oe)!==-1&&(O.font=oe),O}o.parseCss=h;function d(y){var g="";return(y.fontWeight==="bold"||y.fontWeight==="bolder"||parseInt(y.fontWeight)>=700)&&(g="bold"),(y.fontStyle==="italic"||y.fontStyle==="oblique")&&(g+="italic"),g}function c(y,g){var w=p(y,g);if(!w)return null;var B=w.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!B||!Array.isArray(B))return null;var I=[parseInt(B[1]),parseInt(B[2]),parseInt(B[3])],O=parseInt(B[4]);return O===0||isNaN(I[0])||isNaN(I[1])||isNaN(I[2])?null:I}function p(y,g){var w=g(y);return w==="rgba(0, 0, 0, 0)"||w==="transparent"||w==="initial"||w==="inherit"?y.parentElement==null?null:p(y.parentElement,g):w}function m(y,g){var w=[y.paddingTop,y.paddingRight,y.paddingBottom,y.paddingLeft],B=96/(72/g),I=(parseInt(y.lineHeight)-parseInt(y.fontSize))/g/2,O=w.map(function(R){return parseInt(R||"0")/B}),j=(0,u.parseSpacing)(O,0);return I>j.top&&(j.top=I),I>j.bottom&&(j.bottom=I),j}},744:function(s,o){Object.defineProperty(o,"__esModule",{value:!0}),o.DocHandler=void 0;var l={},u=function(){function h(d){this.jsPDFDocument=d,this.userStyles={textColor:d.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:d.internal.getFontSize(),fontStyle:d.internal.getFont().fontStyle,font:d.internal.getFont().fontName,lineWidth:d.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:d.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return h.setDefaults=function(d,c){c===void 0&&(c=null),c?c.__autoTableDocumentDefaults=d:l=d},h.unifyColor=function(d){return Array.isArray(d)?d:typeof d=="number"?[d,d,d]:typeof d=="string"?[d]:null},h.prototype.applyStyles=function(d,c){var p,m,y;c===void 0&&(c=!1),d.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(d.fontStyle);var g=this.jsPDFDocument.internal.getFont(),w=g.fontStyle,B=g.fontName;if(d.font&&(B=d.font),d.fontStyle){w=d.fontStyle;var I=this.getFontList()[B];I&&I.indexOf(w)===-1&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(I[0]),w=I[0])}if(this.jsPDFDocument.setFont(B,w),d.fontSize&&this.jsPDFDocument.setFontSize(d.fontSize),!c){var O=h.unifyColor(d.fillColor);O&&(p=this.jsPDFDocument).setFillColor.apply(p,O),O=h.unifyColor(d.textColor),O&&(m=this.jsPDFDocument).setTextColor.apply(m,O),O=h.unifyColor(d.lineColor),O&&(y=this.jsPDFDocument).setDrawColor.apply(y,O),typeof d.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(d.lineWidth)}},h.prototype.splitTextToSize=function(d,c,p){return this.jsPDFDocument.splitTextToSize(d,c,p)},h.prototype.rect=function(d,c,p,m,y){return this.jsPDFDocument.rect(d,c,p,m,y)},h.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},h.prototype.getTextWidth=function(d){return this.jsPDFDocument.getTextWidth(d)},h.prototype.getDocument=function(){return this.jsPDFDocument},h.prototype.setPage=function(d){this.jsPDFDocument.setPage(d)},h.prototype.addPage=function(){return this.jsPDFDocument.addPage()},h.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},h.prototype.getGlobalOptions=function(){return l||{}},h.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},h.prototype.pageSize=function(){var d=this.jsPDFDocument.internal.pageSize;return d.width==null&&(d={width:d.getWidth(),height:d.getHeight()}),d},h.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},h.prototype.getLineHeightFactor=function(){var d=this.jsPDFDocument;return d.getLineHeightFactor?d.getLineHeightFactor():1.15},h.prototype.getLineHeight=function(d){return d/this.scaleFactor()*this.getLineHeightFactor()},h.prototype.pageNumber=function(){var d=this.jsPDFDocument.internal.getCurrentPageInfo();return d?d.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},h}();o.DocHandler=u},4:function(s,o,l){Object.defineProperty(o,"__esModule",{value:!0}),o.parseHtml=void 0;var u=l(903),h=l(796);function d(m,y,g,w,B){var I,O;w===void 0&&(w=!1),B===void 0&&(B=!1);var j;typeof y=="string"?j=g.document.querySelector(y):j=y;var R=Object.keys(m.getFontList()),D=m.scaleFactor(),Q=[],J=[],M=[];if(!j)return console.error("Html table could not be found with input: ",y),{head:Q,body:J,foot:M};for(var S=0;S<j.rows.length;S++){var K=j.rows[S],F=(O=(I=K==null?void 0:K.parentElement)===null||I===void 0?void 0:I.tagName)===null||O===void 0?void 0:O.toLowerCase(),ne=c(R,D,g,K,w,B);ne&&(F==="thead"?Q.push(ne):F==="tfoot"?M.push(ne):J.push(ne))}return{head:Q,body:J,foot:M}}o.parseHtml=d;function c(m,y,g,w,B,I){for(var O=new h.HtmlRowInput(w),j=0;j<w.cells.length;j++){var R=w.cells[j],D=g.getComputedStyle(R);if(B||D.display!=="none"){var Q=void 0;I&&(Q=(0,u.parseCss)(m,R,y,D,g)),O.push({rowSpan:R.rowSpan,colSpan:R.colSpan,styles:Q,_element:R,content:p(R)})}}var J=g.getComputedStyle(w);if(O.length>0&&(B||J.display!=="none"))return O}function p(m){var y=m.cloneNode(!0);return y.innerHTML=y.innerHTML.replace(/\n/g,"").replace(/ +/g," "),y.innerHTML=y.innerHTML.split(/<br.*?>/).map(function(g){return g.trim()}).join(`
304
+ `),y.innerText||y.textContent||""}},776:function(s,o,l){Object.defineProperty(o,"__esModule",{value:!0}),o.parseInput=void 0;var u=l(4),h=l(356),d=l(420),c=l(744),p=l(792);function m(j,R){var D=new c.DocHandler(j),Q=D.getDocumentOptions(),J=D.getGlobalOptions();(0,p.default)(D,J,Q,R);var M=(0,h.assign)({},J,Q,R),S;typeof window<"u"&&(S=window);var K=y(J,Q,R),F=g(J,Q,R),ne=w(D,M),ee=I(D,M,S);return{id:R.tableId,content:ee,hooks:F,styles:K,settings:ne}}o.parseInput=m;function y(j,R,D){for(var Q={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},J=function(F){if(F==="columnStyles"){var ne=j[F],ee=R[F],G=D[F];Q.columnStyles=(0,h.assign)({},ne,ee,G)}else{var oe=[j,R,D],q=oe.map(function(he){return he[F]||{}});Q[F]=(0,h.assign)({},q[0],q[1],q[2])}},M=0,S=Object.keys(Q);M<S.length;M++){var K=S[M];J(K)}return Q}function g(j,R,D){for(var Q=[j,R,D],J={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},M=0,S=Q;M<S.length;M++){var K=S[M];K.didParseCell&&J.didParseCell.push(K.didParseCell),K.willDrawCell&&J.willDrawCell.push(K.willDrawCell),K.didDrawCell&&J.didDrawCell.push(K.didDrawCell),K.willDrawPage&&J.willDrawPage.push(K.willDrawPage),K.didDrawPage&&J.didDrawPage.push(K.didDrawPage)}return J}function w(j,R){var D,Q,J,M,S,K,F,ne,ee,G,oe,q,he=(0,d.parseSpacing)(R.margin,40/j.scaleFactor()),ie=(D=B(j,R.startY))!==null&&D!==void 0?D:he.top,E;R.showFoot===!0?E="everyPage":R.showFoot===!1?E="never":E=(Q=R.showFoot)!==null&&Q!==void 0?Q:"everyPage";var k;R.showHead===!0?k="everyPage":R.showHead===!1?k="never":k=(J=R.showHead)!==null&&J!==void 0?J:"everyPage";var V=(M=R.useCss)!==null&&M!==void 0?M:!1,W=R.theme||(V?"plain":"striped"),z=!!R.horizontalPageBreak,_=(S=R.horizontalPageBreakRepeat)!==null&&S!==void 0?S:null;return{includeHiddenHtml:(K=R.includeHiddenHtml)!==null&&K!==void 0?K:!1,useCss:V,theme:W,startY:ie,margin:he,pageBreak:(F=R.pageBreak)!==null&&F!==void 0?F:"auto",rowPageBreak:(ne=R.rowPageBreak)!==null&&ne!==void 0?ne:"auto",tableWidth:(ee=R.tableWidth)!==null&&ee!==void 0?ee:"auto",showHead:k,showFoot:E,tableLineWidth:(G=R.tableLineWidth)!==null&&G!==void 0?G:0,tableLineColor:(oe=R.tableLineColor)!==null&&oe!==void 0?oe:200,horizontalPageBreak:z,horizontalPageBreakRepeat:_,horizontalPageBreakBehaviour:(q=R.horizontalPageBreakBehaviour)!==null&&q!==void 0?q:"afterAllRows"}}function B(j,R){var D=j.getLastAutoTable(),Q=j.scaleFactor(),J=j.pageNumber(),M=!1;if(D&&D.startPageNumber){var S=D.startPageNumber+D.pageNumber-1;M=S===J}return typeof R=="number"?R:(R==null||R===!1)&&M&&(D==null?void 0:D.finalY)!=null?D.finalY+20/Q:null}function I(j,R,D){var Q=R.head||[],J=R.body||[],M=R.foot||[];if(R.html){var S=R.includeHiddenHtml;if(D){var K=(0,u.parseHtml)(j,R.html,D,S,R.useCss)||{};Q=K.head||Q,J=K.body||Q,M=K.foot||Q}else console.error("Cannot parse html in non browser environment")}var F=R.columns||O(Q,J,M);return{columns:F,head:Q,body:J,foot:M}}function O(j,R,D){var Q=j[0]||R[0]||D[0]||[],J=[];return Object.keys(Q).filter(function(M){return M!=="_element"}).forEach(function(M){var S=1,K;Array.isArray(Q)?K=Q[parseInt(M)]:K=Q[M],typeof K=="object"&&!Array.isArray(K)&&(S=(K==null?void 0:K.colSpan)||1);for(var F=0;F<S;F++){var ne=void 0;Array.isArray(Q)?ne=J.length:ne=M+(F>0?"_".concat(F):"");var ee={dataKey:ne};J.push(ee)}}),J}},792:function(s,o){Object.defineProperty(o,"__esModule",{value:!0});function l(h,d,c,p){for(var m=function(B){B&&typeof B!="object"&&console.error("The options parameter should be of type object, is: "+typeof B),typeof B.extendWidth<"u"&&(B.tableWidth=B.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),typeof B.margins<"u"&&(typeof B.margin>"u"&&(B.margin=B.margins),console.error("Use of deprecated option: margins, use margin instead.")),B.startY&&typeof B.startY!="number"&&(console.error("Invalid value for startY option",B.startY),delete B.startY),!B.didDrawPage&&(B.afterPageContent||B.beforePageContent||B.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),B.didDrawPage=function(M){h.applyStyles(h.userStyles),B.beforePageContent&&B.beforePageContent(M),h.applyStyles(h.userStyles),B.afterPageContent&&B.afterPageContent(M),h.applyStyles(h.userStyles),B.afterPageAdd&&M.pageNumber>1&&M.afterPageAdd(M),h.applyStyles(h.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach(function(M){B[M]&&console.error('The "'.concat(M,'" hook has changed in version 3.0, check the changelog for how to migrate.'))}),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach(function(M){var S=M[0],K=M[1];B[K]&&(console.error("Use of deprecated option ".concat(K,". Use ").concat(S," instead")),B[S]=B[K])}),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(M){var S=typeof M=="string"?M:M[0],K=typeof M=="string"?M:M[1];typeof B[S]<"u"&&(typeof B.styles[K]>"u"&&(B.styles[K]=B[S]),console.error("Use of deprecated option: "+S+", use the style "+K+" instead."))});for(var I=0,O=["styles","bodyStyles","headStyles","footStyles"];I<O.length;I++){var j=O[I];u(B[j]||{})}for(var R=B.columnStyles||{},D=0,Q=Object.keys(R);D<Q.length;D++){var J=Q[D];u(R[J]||{})}},y=0,g=[d,c,p];y<g.length;y++){var w=g[y];m(w)}}o.default=l;function u(h){h.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),h.minCellHeight||(h.minCellHeight=h.rowHeight)):h.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),h.cellWidth||(h.cellWidth=h.columnWidth))}},260:function(s,o,l){Object.defineProperty(o,"__esModule",{value:!0}),o.Column=o.Cell=o.Row=o.Table=void 0;var u=l(796),h=l(172),d=l(420),c=function(){function g(w,B){this.pageNumber=1,this.pageCount=1,this.id=w.id,this.settings=w.settings,this.styles=w.styles,this.hooks=w.hooks,this.columns=B.columns,this.head=B.head,this.body=B.body,this.foot=B.foot}return g.prototype.getHeadHeight=function(w){return this.head.reduce(function(B,I){return B+I.getMaxCellHeight(w)},0)},g.prototype.getFootHeight=function(w){return this.foot.reduce(function(B,I){return B+I.getMaxCellHeight(w)},0)},g.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},g.prototype.callCellHooks=function(w,B,I,O,j,R){for(var D=0,Q=B;D<Q.length;D++){var J=Q[D],M=new h.CellHookData(w,this,I,O,j,R),S=J(M)===!1;if(I.text=Array.isArray(I.text)?I.text:[I.text],S)return!1}return!0},g.prototype.callEndPageHooks=function(w,B){w.applyStyles(w.userStyles);for(var I=0,O=this.hooks.didDrawPage;I<O.length;I++){var j=O[I];j(new h.HookData(w,this,B))}},g.prototype.callWillDrawPageHooks=function(w,B){for(var I=0,O=this.hooks.willDrawPage;I<O.length;I++){var j=O[I];j(new h.HookData(w,this,B))}},g.prototype.getWidth=function(w){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var B=this.columns.reduce(function(O,j){return O+j.wrappedWidth},0);return B}else{var I=this.settings.margin;return w-I.left-I.right}},g}();o.Table=c;var p=function(){function g(w,B,I,O,j){j===void 0&&(j=!1),this.height=0,this.raw=w,w instanceof u.HtmlRowInput&&(this.raw=w._element,this.element=w._element),this.index=B,this.section=I,this.cells=O,this.spansMultiplePages=j}return g.prototype.getMaxCellHeight=function(w){var B=this;return w.reduce(function(I,O){var j;return Math.max(I,((j=B.cells[O.index])===null||j===void 0?void 0:j.height)||0)},0)},g.prototype.hasRowSpan=function(w){var B=this;return w.filter(function(I){var O=B.cells[I.index];return O?O.rowSpan>1:!1}).length>0},g.prototype.canEntireRowFit=function(w,B){return this.getMaxCellHeight(B)<=w},g.prototype.getMinimumRowHeight=function(w,B){var I=this;return w.reduce(function(O,j){var R=I.cells[j.index];if(!R)return 0;var D=B.getLineHeight(R.styles.fontSize),Q=R.padding("vertical"),J=Q+D;return J>O?J:O},0)},g}();o.Row=p;var m=function(){function g(w,B,I){var O,j;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=B,this.section=I,this.raw=w;var R=w;w!=null&&typeof w=="object"&&!Array.isArray(w)?(this.rowSpan=w.rowSpan||1,this.colSpan=w.colSpan||1,R=(j=(O=w.content)!==null&&O!==void 0?O:w.title)!==null&&j!==void 0?j:w,w._element&&(this.raw=w._element)):(this.rowSpan=1,this.colSpan=1);var D=R!=null?""+R:"",Q=/\r\n|\r|\n/g;this.text=D.split(Q)}return g.prototype.getTextPos=function(){var w;if(this.styles.valign==="top")w=this.y+this.padding("top");else if(this.styles.valign==="bottom")w=this.y+this.height-this.padding("bottom");else{var B=this.height-this.padding("vertical");w=this.y+B/2+this.padding("top")}var I;if(this.styles.halign==="right")I=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var O=this.width-this.padding("horizontal");I=this.x+O/2+this.padding("left")}else I=this.x+this.padding("left");return{x:I,y:w}},g.prototype.getContentHeight=function(w,B){B===void 0&&(B=1.15);var I=Array.isArray(this.text)?this.text.length:1,O=this.styles.fontSize/w*B,j=I*O+this.padding("vertical");return Math.max(j,this.styles.minCellHeight)},g.prototype.padding=function(w){var B=(0,d.parseSpacing)(this.styles.cellPadding,0);return w==="vertical"?B.top+B.bottom:w==="horizontal"?B.left+B.right:B[w]},g}();o.Cell=m;var y=function(){function g(w,B,I){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=w,this.raw=B,this.index=I}return g.prototype.getMaxCustomCellWidth=function(w){for(var B=0,I=0,O=w.allRows();I<O.length;I++){var j=O[I],R=j.cells[this.index];R&&typeof R.styles.cellWidth=="number"&&(B=Math.max(B,R.styles.cellWidth))}return B},g}();o.Column=y},356:function(s,o){Object.defineProperty(o,"__esModule",{value:!0}),o.assign=void 0;function l(u,h,d,c,p){if(u==null)throw new TypeError("Cannot convert undefined or null to object");for(var m=Object(u),y=1;y<arguments.length;y++){var g=arguments[y];if(g!=null)for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(m[w]=g[w])}return m}o.assign=l},972:function(s,o,l){Object.defineProperty(o,"__esModule",{value:!0}),o.createTable=void 0;var u=l(744),h=l(260),d=l(324),c=l(796),p=l(356);function m(j,R){var D=new u.DocHandler(j),Q=y(R,D.scaleFactor()),J=new h.Table(R,Q);return(0,d.calculateWidths)(D,J),D.applyStyles(D.userStyles),J}o.createTable=m;function y(j,R){var D=j.content,Q=I(D.columns);if(D.head.length===0){var J=w(Q,"head");J&&D.head.push(J)}if(D.foot.length===0){var J=w(Q,"foot");J&&D.foot.push(J)}var M=j.settings.theme,S=j.styles;return{columns:Q,head:g("head",D.head,Q,S,M,R),body:g("body",D.body,Q,S,M,R),foot:g("foot",D.foot,Q,S,M,R)}}function g(j,R,D,Q,J,M){var S={},K=R.map(function(F,ne){for(var ee=0,G={},oe=0,q=0,he=0,ie=D;he<ie.length;he++){var E=ie[he];if(S[E.index]==null||S[E.index].left===0)if(q===0){var k=void 0;Array.isArray(F)?k=F[E.index-oe-ee]:k=F[E.dataKey];var V={};typeof k=="object"&&!Array.isArray(k)&&(V=(k==null?void 0:k.styles)||{});var W=O(j,E,ne,J,Q,M,V),z=new h.Cell(k,W,j);G[E.dataKey]=z,G[E.index]=z,q=z.colSpan-1,S[E.index]={left:z.rowSpan-1,times:q}}else q--,oe++;else S[E.index].left--,q=S[E.index].times,ee++}return new h.Row(F,ne,j,G)});return K}function w(j,R){var D={};return j.forEach(function(Q){if(Q.raw!=null){var J=B(R,Q.raw);J!=null&&(D[Q.dataKey]=J)}}),Object.keys(D).length>0?D:null}function B(j,R){if(j==="head"){if(typeof R=="object")return R.header||R.title||null;if(typeof R=="string"||typeof R=="number")return R}else if(j==="foot"&&typeof R=="object")return R.footer;return null}function I(j){return j.map(function(R,D){var Q,J,M;return typeof R=="object"?M=(J=(Q=R.dataKey)!==null&&Q!==void 0?Q:R.key)!==null&&J!==void 0?J:D:M=D,new h.Column(M,R,D)})}function O(j,R,D,Q,J,M,S){var K=(0,c.getTheme)(Q),F;j==="head"?F=J.headStyles:j==="body"?F=J.bodyStyles:j==="foot"&&(F=J.footStyles);var ne=(0,p.assign)({},K.table,K[j],J.styles,F),ee=J.columnStyles[R.dataKey]||J.columnStyles[R.index]||{},G=j==="body"?ee:{},oe=j==="body"&&D%2===0?(0,p.assign)({},K.alternateRow,J.alternateRowStyles):{},q=(0,c.defaultStyles)(M),he=(0,p.assign)({},q,ne,oe,G);return(0,p.assign)(he,S)}},664:function(s,o,l){Object.defineProperty(o,"__esModule",{value:!0}),o.addPage=o.drawTable=void 0;var u=l(420),h=l(260),d=l(744),c=l(356),p=l(136),m=l(224);function y(ee,G){var oe=G.settings,q=oe.startY,he=oe.margin,ie={x:he.left,y:q},E=G.getHeadHeight(G.columns)+G.getFootHeight(G.columns),k=q+he.bottom+E;if(oe.pageBreak==="avoid"){var V=G.body,W=V.reduce(function(L,Z){return L+Z.height},0);k+=W}var z=new d.DocHandler(ee);(oe.pageBreak==="always"||oe.startY!=null&&k>z.pageSize().height)&&(ne(z),ie.y=he.top),G.callWillDrawPageHooks(z,ie);var _=(0,c.assign)({},ie);G.startPageNumber=z.pageNumber(),oe.horizontalPageBreak?g(z,G,_,ie):(z.applyStyles(z.userStyles),(oe.showHead==="firstPage"||oe.showHead==="everyPage")&&G.head.forEach(function(L){return J(z,G,L,ie,G.columns)}),z.applyStyles(z.userStyles),G.body.forEach(function(L,Z){var se=Z===G.body.length-1;Q(z,G,L,se,_,ie,G.columns)}),z.applyStyles(z.userStyles),(oe.showFoot==="lastPage"||oe.showFoot==="everyPage")&&G.foot.forEach(function(L){return J(z,G,L,ie,G.columns)})),(0,u.addTableBorder)(z,G,_,ie),G.callEndPageHooks(z,ie),G.finalY=ie.y,ee.lastAutoTable=G,ee.previousAutoTable=G,ee.autoTable&&(ee.autoTable.previous=G),z.applyStyles(z.userStyles)}o.drawTable=y;function g(ee,G,oe,q){var he=(0,m.calculateAllColumnsCanFitInPage)(ee,G),ie=G.settings;if(ie.horizontalPageBreakBehaviour==="afterAllRows")he.forEach(function(W,z){ee.applyStyles(ee.userStyles),z>0?F(ee,G,oe,q,W.columns,!0):w(ee,G,q,W.columns),B(ee,G,oe,q,W.columns),O(ee,G,q,W.columns)});else for(var E=-1,k=he[0],V=function(){var W=E;if(k){ee.applyStyles(ee.userStyles);var z=k.columns;E>=0?F(ee,G,oe,q,z,!0):w(ee,G,q,z),W=I(ee,G,E+1,q,z),O(ee,G,q,z)}var _=W-E;he.slice(1).forEach(function(L){ee.applyStyles(ee.userStyles),F(ee,G,oe,q,L.columns,!0),I(ee,G,E+1,q,L.columns,_),O(ee,G,q,L.columns)}),E=W};E<G.body.length-1;)V()}function w(ee,G,oe,q){var he=G.settings;ee.applyStyles(ee.userStyles),(he.showHead==="firstPage"||he.showHead==="everyPage")&&G.head.forEach(function(ie){return J(ee,G,ie,oe,q)})}function B(ee,G,oe,q,he){ee.applyStyles(ee.userStyles),G.body.forEach(function(ie,E){var k=E===G.body.length-1;Q(ee,G,ie,k,oe,q,he)})}function I(ee,G,oe,q,he,ie){ee.applyStyles(ee.userStyles),ie=ie??G.body.length;var E=Math.min(oe+ie,G.body.length),k=-1;return G.body.slice(oe,E).forEach(function(V,W){var z=oe+W===G.body.length-1,_=K(ee,G,z,q);V.canEntireRowFit(_,he)&&(J(ee,G,V,q,he),k=oe+W)}),k}function O(ee,G,oe,q){var he=G.settings;ee.applyStyles(ee.userStyles),(he.showFoot==="lastPage"||he.showFoot==="everyPage")&&G.foot.forEach(function(ie){return J(ee,G,ie,oe,q)})}function j(ee,G,oe){var q=oe.getLineHeight(ee.styles.fontSize),he=ee.padding("vertical"),ie=Math.floor((G-he)/q);return Math.max(0,ie)}function R(ee,G,oe,q){var he={};ee.spansMultiplePages=!0,ee.height=0;for(var ie=0,E=0,k=oe.columns;E<k.length;E++){var V=k[E],W=ee.cells[V.index];if(W){Array.isArray(W.text)||(W.text=[W.text]);var z=new h.Cell(W.raw,W.styles,W.section);z=(0,c.assign)(z,W),z.text=[];var _=j(W,G,q);W.text.length>_&&(z.text=W.text.splice(_,W.text.length));var L=q.scaleFactor(),Z=q.getLineHeightFactor();W.contentHeight=W.getContentHeight(L,Z),W.contentHeight>=G&&(W.contentHeight=G,z.styles.minCellHeight-=G),W.contentHeight>ee.height&&(ee.height=W.contentHeight),z.contentHeight=z.getContentHeight(L,Z),z.contentHeight>ie&&(ie=z.contentHeight),he[V.index]=z}}var se=new h.Row(ee.raw,-1,ee.section,he,!0);se.height=ie;for(var $=0,te=oe.columns;$<te.length;$++){var V=te[$],z=se.cells[V.index];z&&(z.height=se.height);var W=ee.cells[V.index];W&&(W.height=ee.height)}return se}function D(ee,G,oe,q){var he=ee.pageSize().height,ie=q.settings.margin,E=ie.top+ie.bottom,k=he-E;G.section==="body"&&(k-=q.getHeadHeight(q.columns)+q.getFootHeight(q.columns));var V=G.getMinimumRowHeight(q.columns,ee),W=V<oe;if(V>k)return console.error("Will not be able to print row ".concat(G.index," correctly since it's minimum height is larger than page height")),!0;if(!W)return!1;var z=G.hasRowSpan(q.columns),_=G.getMaxCellHeight(q.columns)>k;return _?(z&&console.error("The content of row ".concat(G.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(z||q.settings.rowPageBreak==="avoid")}function Q(ee,G,oe,q,he,ie,E){var k=K(ee,G,q,ie);if(oe.canEntireRowFit(k,E))J(ee,G,oe,ie,E);else if(D(ee,oe,k,G)){var V=R(oe,k,G,ee);J(ee,G,oe,ie,E),F(ee,G,he,ie,E),Q(ee,G,V,q,he,ie,E)}else F(ee,G,he,ie,E),Q(ee,G,oe,q,he,ie,E)}function J(ee,G,oe,q,he){q.x=G.settings.margin.left;for(var ie=0,E=he;ie<E.length;ie++){var k=E[ie],V=oe.cells[k.index];if(!V){q.x+=k.width;continue}ee.applyStyles(V.styles),V.x=q.x,V.y=q.y;var W=G.callCellHooks(ee,G.hooks.willDrawCell,V,oe,k,q);if(W===!1){q.x+=k.width;continue}M(ee,V,q);var z=V.getTextPos();(0,p.default)(V.text,z.x,z.y,{halign:V.styles.halign,valign:V.styles.valign,maxWidth:Math.ceil(V.width-V.padding("left")-V.padding("right"))},ee.getDocument()),G.callCellHooks(ee,G.hooks.didDrawCell,V,oe,k,q),q.x+=k.width}q.y+=oe.height}function M(ee,G,oe){var q=G.styles;if(ee.getDocument().setFillColor(ee.getDocument().getFillColor()),typeof q.lineWidth=="number"){var he=(0,u.getFillStyle)(q.lineWidth,q.fillColor);he&&ee.rect(G.x,oe.y,G.width,G.height,he)}else typeof q.lineWidth=="object"&&(q.fillColor&&ee.rect(G.x,oe.y,G.width,G.height,"F"),S(ee,G,oe,q.lineWidth))}function S(ee,G,oe,q){var he,ie,E,k;q.top&&(he=oe.x,ie=oe.y,E=oe.x+G.width,k=oe.y,q.right&&(E+=.5*q.right),q.left&&(he-=.5*q.left),V(q.top,he,ie,E,k)),q.bottom&&(he=oe.x,ie=oe.y+G.height,E=oe.x+G.width,k=oe.y+G.height,q.right&&(E+=.5*q.right),q.left&&(he-=.5*q.left),V(q.bottom,he,ie,E,k)),q.left&&(he=oe.x,ie=oe.y,E=oe.x,k=oe.y+G.height,q.top&&(ie-=.5*q.top),q.bottom&&(k+=.5*q.bottom),V(q.left,he,ie,E,k)),q.right&&(he=oe.x+G.width,ie=oe.y,E=oe.x+G.width,k=oe.y+G.height,q.top&&(ie-=.5*q.top),q.bottom&&(k+=.5*q.bottom),V(q.right,he,ie,E,k));function V(W,z,_,L,Z){ee.getDocument().setLineWidth(W),ee.getDocument().line(z,_,L,Z,"S")}}function K(ee,G,oe,q){var he=G.settings.margin.bottom,ie=G.settings.showFoot;return(ie==="everyPage"||ie==="lastPage"&&oe)&&(he+=G.getFootHeight(G.columns)),ee.pageSize().height-q.y-he}function F(ee,G,oe,q,he,ie){he===void 0&&(he=[]),ie===void 0&&(ie=!1),ee.applyStyles(ee.userStyles),G.settings.showFoot==="everyPage"&&!ie&&G.foot.forEach(function(k){return J(ee,G,k,q,he)}),G.callEndPageHooks(ee,q);var E=G.settings.margin;(0,u.addTableBorder)(ee,G,oe,q),ne(ee),G.pageNumber++,G.pageCount++,q.x=E.left,q.y=E.top,oe.y=E.top,G.callWillDrawPageHooks(ee,q),G.settings.showHead==="everyPage"&&(G.head.forEach(function(k){return J(ee,G,k,q,he)}),ee.applyStyles(ee.userStyles))}o.addPage=F;function ne(ee){var G=ee.pageNumber();ee.setPage(G+1);var oe=ee.pageNumber();return oe===G?(ee.addPage(),!0):!1}},224:function(s,o,l){Object.defineProperty(o,"__esModule",{value:!0}),o.calculateAllColumnsCanFitInPage=void 0;var u=l(420);function h(c,p,m){var y;m===void 0&&(m={});var g=(0,u.getPageAvailableWidth)(c,p),w=new Map,B=[],I=[],O=[];p.settings.horizontalPageBreakRepeat,Array.isArray(p.settings.horizontalPageBreakRepeat)?O=p.settings.horizontalPageBreakRepeat:(typeof p.settings.horizontalPageBreakRepeat=="string"||typeof p.settings.horizontalPageBreakRepeat=="number")&&(O=[p.settings.horizontalPageBreakRepeat]),O.forEach(function(Q){var J=p.columns.find(function(M){return M.dataKey===Q||M.index===Q});J&&!w.has(J.index)&&(w.set(J.index,!0),B.push(J.index),I.push(p.columns[J.index]),g-=J.wrappedWidth)});for(var j=!0,R=(y=m==null?void 0:m.start)!==null&&y!==void 0?y:0;R<p.columns.length;){if(w.has(R)){R++;continue}var D=p.columns[R].wrappedWidth;if(j||g>=D)j=!1,B.push(R),I.push(p.columns[R]),g-=D;else break;R++}return{colIndexes:B,columns:I,lastIndex:R-1}}function d(c,p){for(var m=[],y=0;y<p.columns.length;y++){var g=h(c,p,{start:y});g.columns.length&&(m.push(g),y=g.lastIndex)}return m}o.calculateAllColumnsCanFitInPage=d},324:function(s,o,l){Object.defineProperty(o,"__esModule",{value:!0}),o.ellipsize=o.resizeColumns=o.calculateWidths=void 0;var u=l(420);function h(B,I){d(B,I);var O=[],j=0;I.columns.forEach(function(D){var Q=D.getMaxCustomCellWidth(I);Q?D.width=Q:(D.width=D.wrappedWidth,O.push(D)),j+=D.width});var R=I.getWidth(B.pageSize().width)-j;R&&(R=c(O,R,function(D){return Math.max(D.minReadableWidth,D.minWidth)})),R&&(R=c(O,R,function(D){return D.minWidth})),R=Math.abs(R),!I.settings.horizontalPageBreak&&R>.1/B.scaleFactor()&&(R=R<1?R:Math.round(R),console.warn("Of the table content, ".concat(R," units width could not fit page"))),m(I),y(I,B),p(I)}o.calculateWidths=h;function d(B,I){var O=B.scaleFactor(),j=I.settings.horizontalPageBreak,R=(0,u.getPageAvailableWidth)(B,I);I.allRows().forEach(function(D){for(var Q=0,J=I.columns;Q<J.length;Q++){var M=J[Q],S=D.cells[M.index];if(S){var K=I.hooks.didParseCell;I.callCellHooks(B,K,S,D,M,null);var F=S.padding("horizontal");S.contentWidth=(0,u.getStringWidth)(S.text,S.styles,B)+F;var ne=(0,u.getStringWidth)(S.text.join(" ").split(/[^\S\u00A0]+/),S.styles,B);if(S.minReadableWidth=ne+S.padding("horizontal"),typeof S.styles.cellWidth=="number")S.minWidth=S.styles.cellWidth,S.wrappedWidth=S.styles.cellWidth;else if(S.styles.cellWidth==="wrap"||j===!0)S.contentWidth>R?(S.minWidth=R,S.wrappedWidth=R):(S.minWidth=S.contentWidth,S.wrappedWidth=S.contentWidth);else{var ee=10/O;S.minWidth=S.styles.minCellWidth||ee,S.wrappedWidth=S.contentWidth,S.minWidth>S.wrappedWidth&&(S.wrappedWidth=S.minWidth)}}}}),I.allRows().forEach(function(D){for(var Q=0,J=I.columns;Q<J.length;Q++){var M=J[Q],S=D.cells[M.index];if(S&&S.colSpan===1)M.wrappedWidth=Math.max(M.wrappedWidth,S.wrappedWidth),M.minWidth=Math.max(M.minWidth,S.minWidth),M.minReadableWidth=Math.max(M.minReadableWidth,S.minReadableWidth);else{var K=I.styles.columnStyles[M.dataKey]||I.styles.columnStyles[M.index]||{},F=K.cellWidth||K.minCellWidth;F&&typeof F=="number"&&(M.minWidth=F,M.wrappedWidth=F)}S&&(S.colSpan>1&&!M.minWidth&&(M.minWidth=S.minWidth),S.colSpan>1&&!M.wrappedWidth&&(M.wrappedWidth=S.minWidth))}})}function c(B,I,O){for(var j=I,R=B.reduce(function(ee,G){return ee+G.wrappedWidth},0),D=0;D<B.length;D++){var Q=B[D],J=Q.wrappedWidth/R,M=j*J,S=Q.width+M,K=O(Q),F=S<K?K:S;I-=F-Q.width,Q.width=F}if(I=Math.round(I*1e10)/1e10,I){var ne=B.filter(function(ee){return I<0?ee.width>O(ee):!0});ne.length&&(I=c(ne,I,O))}return I}o.resizeColumns=c;function p(B){for(var I={},O=1,j=B.allRows(),R=0;R<j.length;R++)for(var D=j[R],Q=0,J=B.columns;Q<J.length;Q++){var M=J[Q],S=I[M.index];if(O>1)O--,delete D.cells[M.index];else if(S)S.cell.height+=D.height,O=S.cell.colSpan,delete D.cells[M.index],S.left--,S.left<=1&&delete I[M.index];else{var K=D.cells[M.index];if(!K)continue;if(K.height=D.height,K.rowSpan>1){var F=j.length-R,ne=K.rowSpan>F?F:K.rowSpan;I[M.index]={cell:K,left:ne,row:D}}}}}function m(B){for(var I=B.allRows(),O=0;O<I.length;O++)for(var j=I[O],R=null,D=0,Q=0,J=0;J<B.columns.length;J++){var M=B.columns[J];if(Q-=1,Q>1&&B.columns[J+1])D+=M.width,delete j.cells[M.index];else if(R){var S=R;delete j.cells[M.index],R=null,S.width=M.width+D}else{var S=j.cells[M.index];if(!S)continue;if(Q=S.colSpan,D=0,S.colSpan>1){R=S,D+=M.width;continue}S.width=M.width+D}}}function y(B,I){for(var O={count:0,height:0},j=0,R=B.allRows();j<R.length;j++){for(var D=R[j],Q=0,J=B.columns;Q<J.length;Q++){var M=J[Q],S=D.cells[M.index];if(S){I.applyStyles(S.styles,!0);var K=S.width-S.padding("horizontal");if(S.styles.overflow==="linebreak")S.text=I.splitTextToSize(S.text,K+1/I.scaleFactor(),{fontSize:S.styles.fontSize});else if(S.styles.overflow==="ellipsize")S.text=g(S.text,K,S.styles,I,"...");else if(S.styles.overflow==="hidden")S.text=g(S.text,K,S.styles,I,"");else if(typeof S.styles.overflow=="function"){var F=S.styles.overflow(S.text,K);typeof F=="string"?S.text=[F]:S.text=F}S.contentHeight=S.getContentHeight(I.scaleFactor(),I.getLineHeightFactor());var ne=S.contentHeight/S.rowSpan;S.rowSpan>1&&O.count*O.height<ne*S.rowSpan?O={height:ne,count:S.rowSpan}:O&&O.count>0&&O.height>ne&&(ne=O.height),ne>D.height&&(D.height=ne)}}O.count--}}function g(B,I,O,j,R){return B.map(function(D){return w(D,I,O,j,R)})}o.ellipsize=g;function w(B,I,O,j,R){var D=1e4*j.scaleFactor();if(I=Math.ceil(I*D)/D,I>=(0,u.getStringWidth)(B,O,j))return B;for(;I<(0,u.getStringWidth)(B+R,O,j)&&!(B.length<=1);)B=B.substring(0,B.length-1);return B.trim()+R}},964:function(s){if(typeof t>"u"){var o=new Error("Cannot find module 'undefined'");throw o.code="MODULE_NOT_FOUND",o}s.exports=t}},A={};function i(s){var o=A[s];if(o!==void 0)return o.exports;var l=A[s]={exports:{}};return n[s].call(l.exports,l,l.exports,i),l.exports}var a={};return function(){var s=a;Object.defineProperty(s,"__esModule",{value:!0}),s.Cell=s.Column=s.Row=s.Table=s.CellHookData=s.__drawTable=s.__createTable=s.applyPlugin=void 0;var o=i(340),l=i(776),u=i(664),h=i(972),d=i(260);Object.defineProperty(s,"Table",{enumerable:!0,get:function(){return d.Table}});var c=i(172);Object.defineProperty(s,"CellHookData",{enumerable:!0,get:function(){return c.CellHookData}});var p=i(260);Object.defineProperty(s,"Cell",{enumerable:!0,get:function(){return p.Cell}}),Object.defineProperty(s,"Column",{enumerable:!0,get:function(){return p.Column}}),Object.defineProperty(s,"Row",{enumerable:!0,get:function(){return p.Row}});function m(I){(0,o.default)(I)}s.applyPlugin=m;function y(I,O){var j=(0,l.parseInput)(I,O),R=(0,h.createTable)(I,j);(0,u.drawTable)(I,R)}function g(I,O){var j=(0,l.parseInput)(I,O);return(0,h.createTable)(I,j)}s.__createTable=g;function w(I,O){(0,u.drawTable)(I,O)}s.__drawTable=w;try{var B=i(964);B.jsPDF&&(B=B.jsPDF),m(B)}catch{}s.default=y}(),a}()})})(MB);var t6=MB.exports;const qp=$p(t6);class Xp{constructor(){ze(this,"name","PDF 导出器");ze(this,"format","pdf");ze(this,"extension","pdf");ze(this,"mimeType","application/pdf")}async export(e,t){const n=new ht;return this.addCover(n,e),e.forEach((A,i)=>{n.addPage(),this.addBugPage(n,A,i+1)}),n.output("blob")}async exportSingle(e,t){return this.export([e],t)}addCover(e,t){e.setFontSize(32),e.text("Bug Report",105,80,{align:"center"}),e.setFontSize(16),e.text(`Exported: ${new Date().toLocaleString()}`,105,110,{align:"center"}),e.text(`Total Bugs: ${t.length}`,105,130,{align:"center"}),e.setDrawColor(66,133,244),e.setLineWidth(2),e.line(30,90,180,90)}addBugPage(e,t,n){let A=20;if(e.setFontSize(18),e.text(`${n}. ${t.description.title}`,20,A),A+=15,e.setFontSize(14),e.text("Basic Info",20,A),A+=8,qp(e,{startY:A,head:[["Field","Value"]],body:[["ID",t.id],["Source",this.getSourceLabel(t.source)],["Severity",this.getSeverityLabel(t.severity)],["Created",new Date(t.createdAt).toLocaleString()]],theme:"striped",headStyles:{fillColor:[66,133,244]}}),A=e.lastAutoTable.finalY+10,e.setFontSize(14),e.text("Environment",20,A),A+=8,qp(e,{startY:A,head:[["Field","Value"]],body:[["System",t.environment.system],["URL",t.environment.url],["Route",t.environment.route],["Screen",`${t.environment.screenWidth} x ${t.environment.screenHeight}`]],theme:"striped",headStyles:{fillColor:[66,133,244]}}),A=e.lastAutoTable.finalY+10,t.httpInfo&&(e.setFontSize(14),e.text("HTTP Info",20,A),A+=8,qp(e,{startY:A,head:[["Field","Value"]],body:[["Method",`${t.httpInfo.requestMethod} ${t.httpInfo.requestUrl}`],["Params",JSON.stringify(t.httpInfo.requestParams)],["Status",String(t.httpInfo.responseStatus)],["Error Code",t.httpInfo.responseCode||"-"],["Error Message",t.httpInfo.errorMessage],["Duration",`${t.httpInfo.duration}ms`]],theme:"striped",headStyles:{fillColor:[66,133,244]}}),A=e.lastAutoTable.finalY+10),e.setFontSize(14),e.text("Description",20,A),A+=8,e.setFontSize(10),t.description.autoDescribe){const a=e.splitTextToSize(`Auto: ${t.description.autoDescribe}`,170);e.text(a,20,A),A+=a.length*5+5}if(t.description.manualDescribe){const a=e.splitTextToSize(`Manual: ${t.description.manualDescribe}`,170);e.text(a,20,A),A+=a.length*5+5}t.metadata.tags.length>0&&(A+=5,e.setFontSize(14),e.text("Tags",20,A),A+=8,e.setFontSize(10),e.text(t.metadata.tags.join(", "),20,A));const i=e.getNumberOfPages();for(let a=1;a<=i;a++)e.setPage(a),e.setFontSize(8),e.text(`Page ${a} of ${i}`,105,290,{align:"center"})}getSourceLabel(e){return{"http-error":"HTTP Error",manual:"Manual","dom-error":"DOM Error"}[e]||e}getSeverityLabel(e){return{critical:"Critical",major:"Major",minor:"Minor",suggestion:"Suggestion"}[e]||e}}function Le(r,e){const t=document.createElement(r);return e!=null&&e.class&&(Array.isArray(e.class)?t.classList.add(...e.class):t.className=e.class),e!=null&&e.style&&Object.assign(t.style,e.style),e!=null&&e.attrs&&Object.entries(e.attrs).forEach(([n,A])=>{t.setAttribute(n,A)}),e!=null&&e.text&&(t.textContent=e.text),e!=null&&e.html&&(t.innerHTML=e.html),t}function dt(r,e,t,n){return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}function r6(r){return r.forEach(({el:e,event:t,handler:n,options:A})=>{e.addEventListener(t,n,A)}),()=>{r.forEach(({el:e,event:t,handler:n,options:A})=>{e.removeEventListener(t,n,A)})}}function n6(r,e,t,n){const A=r.getBoundingClientRect();let i=e,a=t;n&&(i=Math.max(0,Math.min(n.width-A.width,e)),a=Math.max(0,Math.min(n.height-A.height,t))),r.style.left=`${i}px`,r.style.top=`${a}px`}function A6(r,e,t){t===void 0?r.classList.toggle(e):r.classList.toggle(e,t)}function i6(r,e){r.style.display=e?"":"none"}function a6(r,e){const{from:t={},to:n={},duration:A=300,onDone:i}=e;Object.entries(t).forEach(([a,s])=>{r.style[a]=s}),r.offsetHeight,r.style.transition=`all ${A}ms ease`,Object.entries(n).forEach(([a,s])=>{r.style[a]=s}),setTimeout(()=>{r.style.transition="",i==null||i()},A)}function KB(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function s6(r,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>r(...n),e)}}function o6(r,e){let t=0;return(...n)=>{const A=Date.now();A-t>=e&&(t=A,r(...n))}}class jB{constructor(e={}){ze(this,"container",null);ze(this,"toolbarRef",null);ze(this,"isExpanded",!1);ze(this,"isDragging",!1);ze(this,"localBugCount",0);ze(this,"position",{x:0,y:0});ze(this,"dragOffset",{x:0,y:0});ze(this,"hasDragged",!1);ze(this,"cleanupFns",[]);ze(this,"config");this.config={bugCount:0,...e},this.localBugCount=this.config.bugCount||0}mount(){if(this.container)return;this.container=Le("div",{class:"bug-extractor-toolbar",style:{position:"fixed",zIndex:"99999",display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"10px",userSelect:"none",right:"20px",bottom:"20px"}});const e=this.createBall();this.container.appendChild(e);const t=this.createPanel();this.container.appendChild(t),document.body.appendChild(this.container);const n=A=>{const i=A;this.localBugCount=i.detail??0,this.updateBadge()};window.addEventListener("bug-extractor:count-changed",n),this.cleanupFns.push(()=>{window.removeEventListener("bug-extractor:count-changed",n)})}unmount(){this.cleanupFns.forEach(e=>e()),this.cleanupFns=[],this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.container=null,this.toolbarRef=null}setBugCount(e){this.localBugCount=e,this.updateBadge()}createBall(){const e=Le("div",{class:"floating-ball",style:{position:"relative",width:"60px",height:"60px",borderRadius:"50%",background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",boxShadow:"0 4px 15px rgba(102, 126, 234, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.3s ease",color:"white"}}),t=Le("div",{class:"ball-icon",html:'<svg viewBox="0 0 24 24" width="28" height="28"><path fill="currentColor" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>'});e.appendChild(t);const n=Le("div",{class:"badge",text:this.localBugCount>99?"99+":String(this.localBugCount),style:{position:"absolute",top:"-4px",right:"-4px",minWidth:"20px",height:"20px",padding:"0 6px",borderRadius:"10px",background:"#f56c6c",color:"white",fontSize:"12px",fontWeight:"bold",display:this.localBugCount>0?"flex":"none",alignItems:"center",justifyContent:"center",boxShadow:"0 2px 4px rgba(245, 108, 108, 0.4)",zIndex:"3"}});n.dataset.id="badge",e.appendChild(n);const A=Le("div",{class:"ball-ring",style:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",border:"2px solid rgba(255, 255, 255, 0.3)",animation:"ring-rotate 3s linear infinite",zIndex:"1"}});e.appendChild(A);const i=dt(e,"mousedown",l=>{if(!l.target.closest(".floating-ball"))return;this.isDragging=!0,this.hasDragged=!1;const h=e.getBoundingClientRect();this.position.x===0&&this.position.y===0&&(this.position.x=h.left,this.position.y=h.top),this.dragOffset.x=l.clientX-this.position.x,this.dragOffset.y=l.clientY-this.position.y,document.addEventListener("mousemove",a),document.addEventListener("mouseup",s)}),a=l=>{if(!this.isDragging)return;this.hasDragged=!0,this.position.x=l.clientX-this.dragOffset.x,this.position.y=l.clientY-this.dragOffset.y;const u=60,h=window.innerWidth-u,d=window.innerHeight-u;this.position.x=Math.max(0,Math.min(h,this.position.x)),this.position.y=Math.max(0,Math.min(d,this.position.y)),this.container&&(this.container.style.right="auto",this.container.style.bottom="auto",this.container.style.left=`${this.position.x}px`,this.container.style.top=`${this.position.y}px`)},s=()=>{this.isDragging=!1,document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",s)},o=dt(e,"click",()=>{this.hasDragged||(this.isExpanded=!this.isExpanded,this.togglePanel(),this.updateBallState(e))});return this.cleanupFns.push(i,o),this.toolbarRef=e,e}createPanel(){const e=Le("div",{class:"toolbar-panel",style:{display:"none",flexDirection:"column",gap:"8px",background:"white",padding:"12px",borderRadius:"12px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.15)",minWidth:"80px",opacity:"0",transform:"translateY(10px)",transition:"all 0.3s ease"}});return e.appendChild(this.createButton("创建","M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",()=>{var t,n;(n=(t=this.config).onCreate)==null||n.call(t),this.closePanel()})),e.appendChild(this.createButton("列表","M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z",()=>{var t,n;(n=(t=this.config).onViewList)==null||n.call(t),this.closePanel()})),e}createButton(e,t,n){const A=Le("button",{class:"toolbar-btn",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"4px",padding:"10px 16px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",transition:"all 0.2s ease",color:"#606266",fontSize:"12px"}}),i=Le("div",{html:`<svg viewBox="0 0 24 24" width="20" height="20"><path fill="currentColor" d="${t}"/></svg>`});A.appendChild(i);const a=Le("span",{text:e});A.appendChild(a);const s=dt(A,"mouseenter",()=>{A.style.background="#f5f7fa",A.style.color="#667eea"}),o=dt(A,"mouseleave",()=>{A.style.background="transparent",A.style.color="#606266"}),l=dt(A,"click",n);return this.cleanupFns.push(s,o,l),A}togglePanel(){if(!this.container)return;const e=this.container.querySelector(".toolbar-panel");e&&(this.isExpanded?(e.style.display="flex",e.offsetHeight,e.style.opacity="1",e.style.transform="translateY(0)"):(e.style.opacity="0",e.style.transform="translateY(10px)",setTimeout(()=>{this.isExpanded||(e.style.display="none")},300)))}closePanel(){this.isExpanded=!1,this.togglePanel(),this.updateBallState()}updateBallState(e){const t=e||this.toolbarRef;t&&(this.isExpanded?(t.style.background="linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",t.style.boxShadow="0 4px 15px rgba(245, 87, 108, 0.5)"):(t.style.background="linear-gradient(135deg, #667eea 0%, #764ba2 100%)",t.style.boxShadow="0 4px 15px rgba(102, 126, 234, 0.5)"))}updateBadge(){if(!this.container)return;const e=this.container.querySelector('[data-id="badge"]');e&&(this.localBugCount>0?(e.style.display="flex",e.textContent=this.localBugCount>99?"99+":String(this.localBugCount)):e.style.display="none")}}class Yp{constructor(e={}){ze(this,"container",null);ze(this,"canvas",null);ze(this,"ctx",null);ze(this,"toolbar",null);ze(this,"currentTool","rect");ze(this,"currentColor","#ff0000");ze(this,"isDrawing",!1);ze(this,"startPos",{x:0,y:0});ze(this,"annotations",[]);ze(this,"history",[]);ze(this,"historyIndex",-1);ze(this,"config");ze(this,"image",null);this.config=e}async open(e){const t=e||this.config.screenshotUrl;if(!t){console.error("[AnnotationCanvas] 没有截图数据");return}this.mount(),await this.loadImage(t)}mount(){if(this.container)return;this.container=Le("div",{class:"annotation-canvas-container",style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",zIndex:"100002",background:"rgba(0, 0, 0, 0.9)",display:"flex",flexDirection:"column"}}),this.toolbar=this.createToolbar(),this.container.appendChild(this.toolbar);const e=Le("div",{class:"annotation-canvas-wrapper",style:{flex:"1",display:"flex",alignItems:"center",justifyContent:"center",overflow:"auto",padding:"20px"}});this.canvas=Le("canvas",{class:"annotation-canvas",style:{background:"white",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.3)",cursor:"crosshair"}}),this.ctx=this.canvas.getContext("2d"),e.appendChild(this.canvas),this.container.appendChild(e);const t=this.createFooter();this.container.appendChild(t),document.body.appendChild(this.container),this.bindCanvasEvents()}unmount(){this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.container=null,this.canvas=null,this.ctx=null,this.toolbar=null,this.image=null}async loadImage(e){return new Promise((t,n)=>{this.image=new Image,this.image.onload=()=>{this.canvas&&this.image&&(this.canvas.width=this.image.width,this.canvas.height=this.image.height,this.redraw()),t()},this.image.onerror=n,this.image.src=e})}createToolbar(){const e=Le("div",{class:"annotation-toolbar",style:{display:"flex",alignItems:"center",gap:"8px",padding:"12px 20px",background:"white",borderBottom:"1px solid #e4e7ed",flexShrink:"0"}});[{type:"rect",label:"矩形",icon:"□"},{type:"arrow",label:"箭头",icon:"→"},{type:"text",label:"文字",icon:"T"},{type:"mosaic",label:"马赛克",icon:"▓"}].forEach(i=>{const a=Le("button",{class:`annotation-tool-btn ${i.type===this.currentTool?"active":""}`,text:i.label,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",border:"1px solid #dcdfe6",borderRadius:"6px",background:i.type===this.currentTool?"#667eea":"white",color:i.type===this.currentTool?"white":"#606266",cursor:"pointer",fontSize:"14px",fontWeight:"500"}});dt(a,"click",()=>{this.currentTool=i.type,e.querySelectorAll(".annotation-tool-btn").forEach(s=>{s.style.background="white",s.style.color="#606266"}),a.style.background="#667eea",a.style.color="white"}),e.appendChild(a)});const n=Le("div",{class:"annotation-tool-divider",style:{width:"1px",height:"24px",background:"#e4e7ed",margin:"0 4px"}});return e.appendChild(n),["#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#000000"].forEach(i=>{const a=Le("button",{style:{width:"24px",height:"24px",borderRadius:"50%",border:this.currentColor===i?"2px solid #303133":"2px solid transparent",background:i,cursor:"pointer"}});dt(a,"click",()=>{this.currentColor=i,e.querySelectorAll("button").forEach(s=>{s.style.width==="24px"&&(s.style.border="2px solid transparent")}),a.style.border="2px solid #303133"}),e.appendChild(a)}),e}createFooter(){const e=Le("div",{class:"annotation-footer",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 20px",background:"white",borderTop:"1px solid #e4e7ed",flexShrink:"0"}}),t=Le("div",{style:{display:"flex",gap:"8px"}}),n=Le("button",{text:"撤销",style:{padding:"8px 16px",border:"1px solid #dcdfe6",background:"white",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});dt(n,"click",()=>this.undo()),t.appendChild(n);const A=Le("button",{text:"重做",style:{padding:"8px 16px",border:"1px solid #dcdfe6",background:"white",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});dt(A,"click",()=>this.redo()),t.appendChild(A);const i=Le("button",{text:"清空",style:{padding:"8px 16px",border:"1px solid #f56c6c",background:"#fef0f0",color:"#f56c6c",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});dt(i,"click",()=>{confirm("确定要清空所有标注吗?")&&(this.annotations=[],this.saveHistory(),this.redraw())}),t.appendChild(i),e.appendChild(t);const a=Le("div",{style:{display:"flex",gap:"8px"}}),s=Le("button",{text:"取消",style:{padding:"8px 16px",border:"1px solid #dcdfe6",background:"white",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});dt(s,"click",()=>{var l,u;(u=(l=this.config).onCancel)==null||u.call(l),this.unmount()}),a.appendChild(s);const o=Le("button",{text:"完成",style:{padding:"8px 16px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});return dt(o,"click",()=>{var l,u;if(this.canvas){const h=this.canvas.toDataURL("image/png");(u=(l=this.config).onComplete)==null||u.call(l,this.annotations,h)}this.unmount()}),a.appendChild(o),e.appendChild(a),e}bindCanvasEvents(){this.canvas&&(dt(this.canvas,"mousedown",e=>{const t=this.canvas.getBoundingClientRect();this.isDrawing=!0,this.startPos={x:e.clientX-t.left,y:e.clientY-t.top}}),dt(this.canvas,"mousemove",e=>{if(!this.isDrawing)return;const t=this.canvas.getBoundingClientRect(),n={x:e.clientX-t.left,y:e.clientY-t.top};this.redraw(),this.drawAnnotation({type:this.currentTool,x:this.startPos.x,y:this.startPos.y,endX:n.x,endY:n.y,color:this.currentColor})}),dt(this.canvas,"mouseup",e=>{if(!this.isDrawing)return;this.isDrawing=!1;const t=this.canvas.getBoundingClientRect(),n={x:e.clientX-t.left,y:e.clientY-t.top};if(this.currentTool==="text"){const A=prompt("请输入文字:");A&&this.annotations.push({type:"text",x:this.startPos.x,y:this.startPos.y,text:A,color:this.currentColor})}else this.annotations.push({type:this.currentTool,x:this.startPos.x,y:this.startPos.y,endX:n.x,endY:n.y,color:this.currentColor});this.saveHistory(),this.redraw()}))}redraw(){!this.ctx||!this.canvas||!this.image||(this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.ctx.drawImage(this.image,0,0),this.annotations.forEach(e=>{this.drawAnnotation(e)}))}drawAnnotation(e){if(this.ctx)switch(this.ctx.strokeStyle=e.color||"#ff0000",this.ctx.fillStyle=e.color||"#ff0000",this.ctx.lineWidth=2,e.type){case"rect":if(e.endX!==void 0&&e.endY!==void 0){const t=e.endX-e.x,n=e.endY-e.y;this.ctx.strokeRect(e.x,e.y,t,n)}break;case"arrow":e.endX!==void 0&&e.endY!==void 0&&this.drawArrow(e.x,e.y,e.endX,e.endY);break;case"text":e.text&&(this.ctx.font="16px sans-serif",this.ctx.fillText(e.text,e.x,e.y));break;case"mosaic":if(e.endX!==void 0&&e.endY!==void 0){const t=Math.abs(e.endX-e.x),n=Math.abs(e.endY-e.y),A=Math.min(e.x,e.endX),i=Math.min(e.y,e.endY);this.ctx.fillStyle="rgba(128, 128, 128, 0.8)";const a=8;for(let s=A;s<A+t;s+=a)for(let o=i;o<i+n;o+=a){const l=Math.random()*255;this.ctx.fillStyle=`rgb(${l}, ${l}, ${l})`,this.ctx.fillRect(s,o,a,a)}}break}}drawArrow(e,t,n,A){if(!this.ctx)return;const i=10,a=Math.atan2(A-t,n-e);this.ctx.beginPath(),this.ctx.moveTo(e,t),this.ctx.lineTo(n,A),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(n,A),this.ctx.lineTo(n-i*Math.cos(a-Math.PI/6),A-i*Math.sin(a-Math.PI/6)),this.ctx.lineTo(n-i*Math.cos(a+Math.PI/6),A-i*Math.sin(a+Math.PI/6)),this.ctx.closePath(),this.ctx.fill()}saveHistory(){this.history=this.history.slice(0,this.historyIndex+1),this.history.push([...this.annotations]),this.historyIndex++}undo(){this.historyIndex>0&&(this.historyIndex--,this.annotations=[...this.history[this.historyIndex]],this.redraw())}redo(){this.historyIndex<this.history.length-1&&(this.historyIndex++,this.annotations=[...this.history[this.historyIndex]],this.redraw())}}class VB{constructor(e={}){ze(this,"container",null);ze(this,"overlay",null);ze(this,"dialog",null);ze(this,"content",null);ze(this,"isVisible",!1);ze(this,"currentMode","list");ze(this,"cleanupFns",[]);ze(this,"config");ze(this,"store");ze(this,"exportService");ze(this,"selectedBugs",new Set);ze(this,"currentDetailBug",null);ze(this,"annotationCanvas",null);ze(this,"createFormData",{title:"",severity:"minor",description:"",screenshot:null,annotations:[],tags:[]});ze(this,"isEditing",!1);ze(this,"dataChangeHandler",null);this.config={mode:"list",...e},this.currentMode=this.config.mode||"list",this.store=this.config.store||new Fu,this.exportService=new Ho,this.exportService.register(new rd),this.exportService.register(new nd),this.exportService.register(new Ad),this.exportService.register(new Cp),this.exportService.register(new Xp)}mount(){if(this.container)return;this.overlay=Le("div",{class:"bug-dialog-overlay",style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",zIndex:"100000",display:"none",opacity:"0",transition:"opacity 0.3s ease"}}),this.dialog=Le("div",{class:"bug-dialog",style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(0.95)",width:"960px",maxWidth:"95vw",maxHeight:"90vh",background:"white",borderRadius:"12px",boxShadow:"0 20px 60px rgba(0, 0, 0, 0.3)",zIndex:"100001",display:"none",opacity:"0",transition:"all 0.3s ease",overflow:"hidden"}}),this.dialog.style.display="none",this.dialog.style.flexDirection="column";const e=Le("div",{class:"bug-dialog-header",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 20px",borderBottom:"1px solid #e4e7ed",background:"#f5f7fa",flexShrink:"0"}}),t=Le("h3",{class:"bug-dialog-title",text:"Bug 管理",style:{margin:"0",fontSize:"18px",fontWeight:"600",color:"#303133"}});e.appendChild(t);const n=Le("button",{class:"bug-dialog-close",html:'<svg viewBox="0 0 24 24" width="20" height="20"><path fill="currentColor" d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',style:{border:"none",background:"transparent",cursor:"pointer",color:"#909399",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"}});e.appendChild(n),this.dialog.appendChild(e),this.content=Le("div",{class:"bug-dialog-content",style:{padding:"20px",overflow:"auto",flex:"1"}}),this.dialog.appendChild(this.content),document.body.appendChild(this.overlay),document.body.appendChild(this.dialog);const A=dt(this.overlay,"click",()=>this.close()),i=dt(n,"click",()=>this.close()),a=s=>{s.key==="Escape"&&this.close()};document.addEventListener("keydown",a),this.dataChangeHandler=s=>{console.log("[BugDialog] 收到数据变化事件,当前数量:",s.detail),this.currentMode==="list"&&this.isVisible&&this.content&&this.updateContent()},window.addEventListener("bug-extractor:count-changed",this.dataChangeHandler),this.cleanupFns.push(A,i,()=>{document.removeEventListener("keydown",a),this.dataChangeHandler&&(window.removeEventListener("bug-extractor:count-changed",this.dataChangeHandler),this.dataChangeHandler=null)})}unmount(){this.cleanupFns.forEach(e=>e()),this.cleanupFns=[],this.overlay&&this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay),this.dialog&&this.dialog.parentNode&&this.dialog.parentNode.removeChild(this.dialog),this.overlay=null,this.dialog=null,this.content=null}open(e){e&&(this.currentMode=e),(!this.overlay||!this.dialog)&&this.mount(),this.isVisible=!0,this.overlay.style.display="block",this.dialog.style.display="flex",this.overlay.offsetHeight,this.dialog.offsetHeight,this.overlay.style.opacity="1",this.dialog.style.opacity="1",this.dialog.style.transform="translate(-50%, -50%) scale(1)",this.updateContent()}close(){var e,t;this.isVisible&&(this.isVisible=!1,this.overlay.style.opacity="0",this.dialog.style.opacity="0",this.dialog.style.transform="translate(-50%, -50%) scale(0.95)",setTimeout(()=>{this.isVisible||(this.overlay.style.display="none",this.dialog.style.display="none")},300),(t=(e=this.config).onClose)==null||t.call(e))}switchMode(e){this.currentMode=e,this.updateContent()}updateContent(){var t;if(!this.content)return;KB(this.content);const e=(t=this.dialog)==null?void 0:t.querySelector(".bug-dialog-title");if(e){const n={list:`Bug 列表 (${this.store.getAll().length})`,create:"创建 Bug",export:"导出 Bug",detail:"Bug 详情"};e.textContent=n[this.currentMode]}switch(this.currentMode){case"list":this.renderListContent();break;case"create":this.renderCreateContent();break;case"export":this.renderExportContent();break;case"detail":this.renderDetailContent();break}}renderListContent(){if(!this.content)return;const e=this.store.getAll();if(e.length===0){this.content.innerHTML=`
305
+ <div style="text-align: center; padding: 40px 20px; color: #909399;">
306
+ <svg viewBox="0 0 24 24" width="48" height="48" style="margin-bottom: 12px; opacity: 0.5;">
307
+ <path fill="currentColor" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
308
+ </svg>
309
+ <p>暂无 Bug 记录</p>
310
+ <p style="font-size: 12px; margin-top: 8px;">当系统捕获到错误时,会自动记录在这里</p>
311
+ </div>
312
+ `;return}const t=Le("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px",gap:"12px"}}),n=Le("input",{attrs:{type:"text",placeholder:"搜索 Bug..."},style:{flex:"1",maxWidth:"300px",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px"}});t.appendChild(n);const A=Le("div",{style:{display:"flex",gap:"8px"}}),i=Le("button",{text:"导出选中",style:{padding:"6px 12px",border:"1px solid #67c23a",background:"#f0f9ff",color:"#67c23a",borderRadius:"4px",cursor:"pointer",fontSize:"13px"}});A.appendChild(i);const a=Le("button",{text:"全选",style:{padding:"6px 12px",border:"1px solid #dcdfe6",background:"white",borderRadius:"4px",cursor:"pointer",fontSize:"13px"}});A.appendChild(a);const s=Le("button",{text:"删除选中",style:{padding:"6px 12px",border:"1px solid #f56c6c",background:"#fef0f0",color:"#f56c6c",borderRadius:"4px",cursor:"pointer",fontSize:"13px"}});A.appendChild(s),t.appendChild(A),this.content.appendChild(t);const o=Le("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:"14px"}}),l=Le("thead"),u=Le("tr"),h=["","标题","严重程度","来源","时间","操作"];let d=null;h.forEach((p,m)=>{const y=Le("th",{text:m===0?"":p,style:{padding:"12px 16px",textAlign:m===0?"center":"left",borderBottom:"1px solid #e4e7ed",background:"#f5f7fa",fontWeight:"600",color:"#303133",fontSize:"13px"}});m===0&&(d=Le("input",{attrs:{type:"checkbox"},style:{cursor:"pointer"}}),y.appendChild(d)),u.appendChild(y)}),l.appendChild(u),o.appendChild(l);const c=Le("tbody");e.forEach(p=>{const m=Le("tr",{style:{cursor:"pointer",transition:"background 0.2s"}});dt(m,"mouseenter",()=>{m.style.background="#f5f7fa"}),dt(m,"mouseleave",()=>{m.style.background="transparent"});const y=Le("td",{style:{padding:"12px 16px",textAlign:"center",borderBottom:"1px solid #e4e7ed"}}),g=Le("input",{attrs:{type:"checkbox"},style:{cursor:"pointer"}});this.selectedBugs.has(p.id)&&(g.checked=!0),dt(g,"change",S=>{if(S.stopPropagation(),g.checked?this.selectedBugs.add(p.id):this.selectedBugs.delete(p.id),d){const K=c.querySelectorAll('input[type="checkbox"]'),F=Array.from(K).every(ne=>ne.checked);d.checked=F}}),dt(g,"click",S=>{S.stopPropagation()}),y.appendChild(g),m.appendChild(y);const w=Le("td",{style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed",maxWidth:"200px"}}),B=Le("div",{text:p.description.title,style:{fontWeight:"500",color:"#303133",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});w.appendChild(B);const I=Le("div",{text:p.description.autoDescribe.slice(0,50)+"...",style:{fontSize:"12px",color:"#909399",marginTop:"4px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});w.appendChild(I),m.appendChild(w);const O=Le("td",{style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed"}}),j=Le("span",{text:this.getSeverityLabel(p.severity),style:{display:"inline-block",padding:"2px 8px",borderRadius:"4px",fontSize:"12px",fontWeight:"500",...this.getSeverityStyle(p.severity)}});O.appendChild(j),m.appendChild(O);const R=Le("td",{text:p.source==="http-error"?"接口错误":"手动创建",style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed",color:"#606266",fontSize:"13px"}});m.appendChild(R);const D=Le("td",{text:new Date(p.createdAt).toLocaleString("zh-CN"),style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed",color:"#909399",fontSize:"12px",whiteSpace:"nowrap"}});m.appendChild(D);const Q=Le("td",{style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed"}}),J=Le("button",{text:"详情",style:{padding:"4px 8px",border:"1px solid #667eea",background:"white",color:"#667eea",borderRadius:"4px",cursor:"pointer",fontSize:"12px",marginRight:"4px"}});dt(J,"click",S=>{S.stopPropagation(),this.currentDetailBug=p,this.switchMode("detail")}),Q.appendChild(J);const M=Le("button",{text:"导出",style:{padding:"4px 8px",border:"1px solid #67c23a",background:"white",color:"#67c23a",borderRadius:"4px",cursor:"pointer",fontSize:"12px",marginRight:"4px"}});dt(M,"click",S=>{S.stopPropagation(),this.handleExportBugs([p])}),Q.appendChild(M),m.appendChild(Q),dt(m,"click",S=>{const K=S.target;K.tagName==="INPUT"||K.tagName==="BUTTON"||K.closest("button")||(this.currentDetailBug=p,this.switchMode("detail"))}),c.appendChild(m)}),o.appendChild(c),this.content.appendChild(o),dt(i,"click",()=>{if(this.selectedBugs.size===0){alert("请先选择要导出的 Bug");return}const p=e.filter(m=>this.selectedBugs.has(m.id));this.handleExportBugs(p)}),dt(a,"click",()=>{const p=this.content.querySelectorAll('tbody input[type="checkbox"]'),m=Array.from(p).every(y=>y.checked);p.forEach(y=>{y.checked=!m}),m?this.selectedBugs.clear():e.forEach(y=>this.selectedBugs.add(y.id)),d&&(d.checked=!m)}),d&&dt(d,"change",()=>{const p=this.content.querySelectorAll('tbody input[type="checkbox"]'),m=d.checked;p.forEach(y=>{y.checked=m}),m?e.forEach(y=>this.selectedBugs.add(y.id)):this.selectedBugs.clear()}),dt(s,"click",()=>{if(this.selectedBugs.size===0){alert("请先选择要删除的 Bug");return}confirm(`确定要删除选中的 ${this.selectedBugs.size} 个 Bug 吗?`)&&(this.selectedBugs.forEach(p=>this.store.delete(p)),this.selectedBugs.clear(),this.updateBugCount(),this.updateContent())}),dt(n,"input",()=>{const p=n.value.toLowerCase();c.querySelectorAll("tr").forEach((y,g)=>{const w=e[g],B=w.description.title.toLowerCase().includes(p)||w.description.autoDescribe.toLowerCase().includes(p);y.style.display=B?"":"none"})})}async handleExportBugs(e){if(e.length===0){alert("没有可导出的 Bug");return}const t=Le("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",zIndex:"100002",display:"flex",alignItems:"center",justifyContent:"center"}}),n=Le("div",{style:{background:"white",borderRadius:"12px",padding:"24px",width:"400px",maxWidth:"90vw",boxShadow:"0 20px 60px rgba(0, 0, 0, 0.3)"}}),A=Le("h3",{text:`导出 ${e.length} 个 Bug`,style:{margin:"0 0 20px 0",fontSize:"18px",fontWeight:"600",color:"#303133"}});n.appendChild(A);const i=Le("label",{text:"选择导出格式:",style:{fontSize:"14px",color:"#606266",display:"block",marginBottom:"12px"}});n.appendChild(i);const a=[{value:"json",label:"JSON",color:"#409eff"},{value:"markdown",label:"Markdown",color:"#67c23a"},{value:"csv",label:"CSV",color:"#e6a23c"},{value:"word",label:"Word",color:"#f56c6c"},{value:"pdf",label:"PDF",color:"#909399"}];let s="json";const o=Le("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"12px",marginBottom:"20px"}});a.forEach(p=>{const m=Le("div",{style:{padding:"16px",border:"2px solid #e4e7ed",borderRadius:"8px",cursor:"pointer",textAlign:"center",transition:"all 0.2s ease"}}),y=Le("div",{text:p.label,style:{fontSize:"24px",fontWeight:"bold",color:p.color,marginBottom:"8px"}});m.appendChild(y);const g=Le("div",{text:p.label,style:{fontSize:"14px",color:"#606266"}});m.appendChild(g),dt(m,"click",()=>{s=p.value,o.querySelectorAll(":scope > div").forEach(w=>{w.style.borderColor="#e4e7ed"(w).style.background="white"}),m.style.borderColor=p.color,m.style.background=`${p.color}10`}),o.appendChild(m)});const l=o.children[0];l&&(l.style.borderColor="#409eff",l.style.background="#409eff10"),n.appendChild(o);const u=Le("div",{style:{display:"flex",gap:"12px",justifyContent:"flex-end"}}),h=Le("button",{text:"导出",style:{padding:"8px 20px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}}),d=Le("button",{text:"取消",style:{padding:"8px 20px",background:"white",color:"#606266",border:"1px solid #dcdfe6",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});u.appendChild(h),u.appendChild(d),n.appendChild(u),t.appendChild(n),document.body.appendChild(t);const c=()=>{t.parentNode&&t.parentNode.removeChild(t)};dt(t,"click",p=>{p.target===t&&c()}),dt(d,"click",c),dt(h,"click",async()=>{try{const p=this.exportService.getExporter(s);if(!p){alert("未找到对应的导出器");return}const m=await p.export(e);if(m){let y;typeof m=="string"?y=new Blob([m],{type:p.mimeType}):y=m;const g=URL.createObjectURL(y),w=Le("a",{attrs:{href:g,download:`bug-report-${Date.now()}.${p.extension}`}});document.body.appendChild(w),w.click(),document.body.removeChild(w),URL.revokeObjectURL(g)}c()}catch(p){console.error("导出失败:",p),alert("导出失败: "+(p instanceof Error?p.message:"未知错误"))}})}renderCreateContent(){if(!this.content)return;const e=Le("div",{style:{display:"flex",flexDirection:"column",gap:"16px"}}),t=Le("div",{style:{display:"flex",flexDirection:"column",gap:"16px",padding:"16px",background:"#fafafa",borderRadius:"8px"}}),n=Le("div",{style:{display:"flex",flexDirection:"column",gap:"6px"}}),A=Le("label",{html:'标题 <span style="color: #f56c6c;">*</span>',style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});n.appendChild(A);const i=Le("input",{attrs:{type:"text",placeholder:"请输入 Bug 标题,简要描述问题"},style:{width:"100%",padding:"10px 12px",border:"1px solid #dcdfe6",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box",transition:"border-color 0.2s"}});this.createFormData.title&&(i.value=this.createFormData.title),n.appendChild(i);const a=Le("div",{text:"请输入标题",style:{color:"#f56c6c",fontSize:"12px",display:"none"}});n.appendChild(a),t.appendChild(n);const s=Le("div",{style:{display:"flex",flexDirection:"column",gap:"6px"}}),o=Le("label",{text:"严重程度",style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});s.appendChild(o);const l=Le("select",{style:{width:"100%",padding:"10px 12px",border:"1px solid #dcdfe6",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box",background:"white"}});[{value:"critical",label:"严重 - 系统崩溃或核心功能不可用"},{value:"major",label:"主要 - 重要功能异常"},{value:"minor",label:"次要 - 一般功能问题"},{value:"suggestion",label:"建议 - 优化建议"}].forEach(oe=>{const q=Le("option",{attrs:{value:oe.value},text:oe.label});l.appendChild(q)}),l.value=this.createFormData.severity||"minor",s.appendChild(l),t.appendChild(s);const h=Le("div",{style:{display:"flex",flexDirection:"column",gap:"6px"}}),d=Le("label",{text:"详细描述",style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});h.appendChild(d);const c=Le("textarea",{attrs:{placeholder:"请描述 Bug 的复现步骤、预期结果和实际结果...",rows:"5"},style:{width:"100%",padding:"10px 12px",border:"1px solid #dcdfe6",borderRadius:"6px",fontSize:"14px",resize:"vertical",boxSizing:"border-box",transition:"border-color 0.2s",fontFamily:"inherit"}});this.createFormData.description&&(c.value=this.createFormData.description),h.appendChild(c),t.appendChild(h);const p=Le("div",{style:{display:"flex",flexDirection:"column",gap:"6px"}}),m=Le("label",{text:"标签",style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});p.appendChild(m);const y=Le("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px",padding:"8px",border:"1px solid #dcdfe6",borderRadius:"6px",background:"white",minHeight:"40px",alignItems:"center"}});let g=this.createFormData.tags||[];const w=()=>{y.querySelectorAll(".tag-item").forEach(q=>q.remove()),g.forEach((q,he)=>{const ie=Le("span",{class:"tag-item",text:q,style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",background:"#e6f7ff",color:"#1890ff",borderRadius:"4px",fontSize:"12px",cursor:"pointer"}}),E=Le("span",{text:"×",style:{fontSize:"14px",lineHeight:"1",marginLeft:"2px"}});dt(E,"click",k=>{k.stopPropagation(),g.splice(he,1),w()}),ie.appendChild(E),y.insertBefore(ie,B)})},B=Le("input",{attrs:{placeholder:"输入标签按回车添加..."},style:{border:"none",outline:"none",fontSize:"14px",flex:"1",minWidth:"120px",padding:"4px"}});dt(B,"keydown",oe=>{if(oe.key==="Enter"){oe.preventDefault();const q=B.value.trim();q&&!g.includes(q)&&(g.push(q),B.value="",w())}oe.key==="Backspace"&&!B.value&&g.length>0&&(g.pop(),w())}),y.appendChild(B),p.appendChild(y),t.appendChild(p),w(),e.appendChild(t);const I=Le("div",{style:{display:"flex",flexDirection:"column",gap:"8px"}}),O=Le("label",{text:"页面截图",style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});I.appendChild(O);const j=Le("div",{style:{width:"100%",minHeight:"180px",border:"2px dashed #dcdfe6",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",background:"#f5f7fa",overflow:"hidden",position:"relative",transition:"all 0.3s ease"}}),R=Le("img",{style:{maxWidth:"100%",maxHeight:"280px",objectFit:"contain",display:"none"}});R.style.cursor="zoom-in",j.appendChild(R),dt(R,"click",()=>{K&&this.showImagePreview(K)});const D=Le("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",color:"#909399",fontSize:"14px",textAlign:"center",padding:"40px 20px"}});D.innerHTML=`
313
+ <svg viewBox="0 0 24 24" width="40" height="40" style="opacity: 0.4;">
314
+ <path fill="currentColor" d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/>
315
+ </svg>
316
+ <span>暂无截图,请先截取页面</span>
317
+ `,j.appendChild(D);const Q=Le("div",{style:{display:"flex",gap:"8px",marginTop:"4px"}}),J=Le("button",{text:"📷 截取页面",style:{padding:"8px 16px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"13px",display:"flex",alignItems:"center",gap:"4px"}}),M=Le("button",{text:"✏️ 标注",style:{padding:"8px 16px",background:"white",color:"#606266",border:"1px solid #dcdfe6",borderRadius:"6px",cursor:"pointer",fontSize:"13px",display:"none",alignItems:"center",gap:"4px"}}),S=Le("button",{text:"🗑️ 删除",style:{padding:"8px 16px",background:"white",color:"#f56c6c",border:"1px solid #f56c6c",borderRadius:"6px",cursor:"pointer",fontSize:"13px",display:"none",alignItems:"center",gap:"4px"}});Q.appendChild(J),Q.appendChild(M),Q.appendChild(S);let K=this.createFormData.screenshot,F=this.createFormData.annotations;K&&(R.src=K,R.style.display="block",D.style.display="none",j.style.border="2px solid #67c23a",M.style.display="flex",S.style.display="flex",J.textContent="📷 重新截取"),dt(J,"click",async()=>{J.textContent="截图中...",J.style.opacity="0.7",J.disabled=!0;try{const oe=await this.captureScreenshot();oe&&(K=oe,F=[],R.src=oe,R.style.display="block",D.style.display="none",j.style.border="2px solid #67c23a",M.style.display="flex",S.style.display="flex",J.textContent="📷 重新截取")}catch(oe){console.error("截图失败:",oe),alert("截图失败,请重试")}finally{J.style.opacity="1",J.disabled=!1}}),dt(M,"click",()=>{K&&(this.annotationCanvas=new Yp({screenshotUrl:K,onComplete:(oe,q)=>{F=oe,K=q,R.src=q,R.style.display="block"},onCancel:()=>{}}),this.annotationCanvas.open(K))}),dt(S,"click",()=>{confirm("确定要删除当前截图吗?")&&(K=null,F=[],R.style.display="none",D.style.display="flex",j.style.border="2px dashed #dcdfe6",M.style.display="none",S.style.display="none",J.textContent="📷 截取页面")}),I.appendChild(j),I.appendChild(Q),e.appendChild(I);const ne=Le("div",{style:{display:"flex",gap:"12px",marginTop:"8px"}}),ee=Le("button",{text:"创建 Bug",style:{padding:"12px 24px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"14px",fontWeight:"500",flex:"1",transition:"all 0.2s"}});dt(ee,"click",()=>{var oe,q;if(!i.value.trim()){a.style.display="block",i.style.borderColor="#f56c6c",i.focus();return}a.style.display="none",i.style.borderColor="#dcdfe6",(q=(oe=this.config).onCreate)==null||q.call(oe,{title:i.value,severity:l.value,description:c.value,tags:g,screenshots:K?[{url:K,annotations:F}]:void 0}),this.createFormData={title:"",severity:"minor",description:"",screenshot:null,annotations:[],tags:[]}}),ne.appendChild(ee);const G=Le("button",{text:"取消",style:{padding:"12px 24px",background:"white",color:"#606266",border:"1px solid #dcdfe6",borderRadius:"6px",cursor:"pointer",fontSize:"14px",fontWeight:"500",transition:"all 0.2s"}});dt(G,"click",()=>{this.createFormData={title:i.value,severity:l.value,description:c.value,screenshot:K,annotations:F,tags:g},this.switchMode("list")}),ne.appendChild(G),e.appendChild(ne),this.content.appendChild(e)}showImagePreview(e){const t=Le("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.85)",zIndex:"100003",display:"flex",alignItems:"center",justifyContent:"center",cursor:"zoom-out"}}),n=Le("img",{attrs:{src:e},style:{maxWidth:"90%",maxHeight:"90%",objectFit:"contain",borderRadius:"4px",boxShadow:"0 4px 20px rgba(0,0,0,0.5)"}});t.appendChild(n),document.body.appendChild(t);const A=()=>{t.parentNode&&t.parentNode.removeChild(t)};dt(t,"click",A);const i=a=>{a.key==="Escape"&&(A(),document.removeEventListener("keydown",i))};document.addEventListener("keydown",i)}renderExportContent(){if(!this.content)return;const e=this.store.getAll();if(e.length===0){this.content.innerHTML='<p style="text-align: center; color: #909399; padding: 40px;">暂无 Bug 可导出</p>';return}const t=Le("div",{style:{display:"flex",flexDirection:"column",gap:"20px"}}),n=Le("div",{style:{display:"flex",flexDirection:"column",gap:"8px"}}),A=Le("label",{text:"导出范围",style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});n.appendChild(A);const i=Le("select",{style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px"}});[{value:"all",label:`全部 Bug (${e.length})`},{value:"selected",label:"选中的 Bug"}].forEach(d=>{const c=Le("option",{attrs:{value:d.value},text:d.label});i.appendChild(c)}),n.appendChild(i),t.appendChild(n);const a=Le("div",{style:{display:"flex",flexDirection:"column",gap:"8px"}}),s=Le("label",{text:"导出格式",style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});a.appendChild(s);const o=[{value:"json",label:"JSON",color:"#409eff"},{value:"markdown",label:"Markdown",color:"#67c23a"},{value:"csv",label:"CSV",color:"#e6a23c"},{value:"word",label:"Word",color:"#f56c6c"},{value:"pdf",label:"PDF",color:"#909399"}],l=Le("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"12px"}});let u="word";o.forEach((d,c)=>{const p=Le("div",{style:{padding:"16px",border:"2px solid #e4e7ed",borderRadius:"8px",cursor:"pointer",textAlign:"center",transition:"all 0.2s ease"}}),m=Le("div",{text:d.label,style:{fontSize:"24px",fontWeight:"bold",color:d.color,marginBottom:"8px"}});p.appendChild(m);const y=Le("div",{text:d.label,style:{fontSize:"14px",color:"#606266"}});p.appendChild(y),dt(p,"click",()=>{u=d.value,Array.from(l.children).forEach((g,w)=>{const B=g;B.style.borderColor="#e4e7ed",B.style.background="white"}),p.style.borderColor=d.color,p.style.background=`${d.color}10`}),l.appendChild(p),d.value==="word"&&(p.style.borderColor=d.color,p.style.background=`${d.color}10`)}),a.appendChild(l),t.appendChild(a);const h=Le("button",{text:"导出",style:{padding:"12px 24px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"14px",fontWeight:"500",marginTop:"12px"}});dt(h,"click",async()=>{const c=i.value==="all"?e:e.filter(p=>this.selectedBugs.has(p.id));if(c.length===0){alert("没有选中的 Bug");return}try{const p=this.exportService.getExporter(u);if(!p){alert("未找到对应的导出器");return}const m=await p.export(c);if(m){let y;typeof m=="string"?y=new Blob([m],{type:p.mimeType}):y=m;const g=URL.createObjectURL(y),w=Le("a",{attrs:{href:g,download:`bug-report-${Date.now()}.${p.extension}`}});document.body.appendChild(w),w.click(),document.body.removeChild(w),URL.revokeObjectURL(g)}}catch(p){console.error("导出失败:",p),alert("导出失败: "+(p instanceof Error?p.message:"未知错误"))}}),t.appendChild(h),this.content.appendChild(t)}renderDetailContent(){if(!this.content)return;const e=this.currentDetailBug;if(!e){this.content.innerHTML='<p style="text-align: center; color: #909399;">未选择 Bug</p>';return}const t=Le("div",{style:{display:"flex",flexDirection:"column",gap:"16px"}}),n=Le("button",{text:"← 返回列表",style:{padding:"6px 12px",background:"white",border:"1px solid #dcdfe6",borderRadius:"4px",cursor:"pointer",fontSize:"13px",color:"#606266",alignSelf:"flex-start"}});dt(n,"click",()=>this.switchMode("list")),t.appendChild(n);const A=Le("div",{style:{background:"#f5f7fa",padding:"16px",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px"}}),i=Le("h4",{text:"基本信息",style:{margin:"0 0 4px 0",fontSize:"15px",fontWeight:"600",color:"#303133"}});A.appendChild(i);const a=Le("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px"}}),s=this.createFormGroup("ID","input",{attrs:{type:"text",value:e.id,readonly:"readonly"},style:{width:"100%",padding:"8px 12px",border:"1px solid #e4e7ed",borderRadius:"4px",fontSize:"13px",background:"#f0f0f0",color:"#909399",boxSizing:"border-box"}});a.appendChild(s);const o=this.createFormGroup("来源","input",{attrs:{type:"text",value:e.source==="http-error"?"接口错误":"手动创建",readonly:"readonly"},style:{width:"100%",padding:"8px 12px",border:"1px solid #e4e7ed",borderRadius:"4px",fontSize:"13px",background:"#f0f0f0",color:"#909399",boxSizing:"border-box"}});a.appendChild(o),A.appendChild(a);const l=Le("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px"}}),u=this.createFormGroup("严重程度","select",{style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px",background:"white",boxSizing:"border-box"}}),h=u.querySelector("select");[{value:"critical",label:"严重 - 系统崩溃或核心功能不可用"},{value:"major",label:"主要 - 重要功能异常"},{value:"minor",label:"次要 - 一般功能问题"},{value:"suggestion",label:"建议 - 优化建议"}].forEach(ie=>{const E=Le("option",{attrs:{value:ie.value},text:ie.label});h.appendChild(E)}),h.value=e.severity,l.appendChild(u);const c=this.createFormGroup("创建时间","input",{attrs:{type:"text",value:new Date(e.createdAt).toLocaleString("zh-CN"),readonly:"readonly"},style:{width:"100%",padding:"8px 12px",border:"1px solid #e4e7ed",borderRadius:"4px",fontSize:"13px",background:"#f0f0f0",color:"#909399",boxSizing:"border-box"}});l.appendChild(c),A.appendChild(l);const p=this.createFormGroup("标题","input",{attrs:{type:"text",value:e.description.title},style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px",boxSizing:"border-box"}});A.appendChild(p);const m=p.querySelector("input");t.appendChild(A);const y=Le("div",{style:{background:"#f5f7fa",padding:"16px",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px"}}),g=Le("h4",{text:"环境信息",style:{margin:"0 0 4px 0",fontSize:"15px",fontWeight:"600",color:"#303133"}});y.appendChild(g);const w=Le("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px"}}),B=this.createFormGroup("页面 URL","input",{attrs:{type:"text",value:e.environment.url},style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px",boxSizing:"border-box"}});w.appendChild(B);const I=B.querySelector("input"),O=this.createFormGroup("路由路径","input",{attrs:{type:"text",value:e.environment.route},style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px",boxSizing:"border-box"}});w.appendChild(O);const j=O.querySelector("input");y.appendChild(w);const R=Le("div",{style:{display:"grid",gridTemplateColumns:"2fr 1fr",gap:"12px"}}),D=this.createFormGroup("浏览器","input",{attrs:{type:"text",value:e.environment.userAgent},style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px",boxSizing:"border-box"}});R.appendChild(D);const Q=D.querySelector("input"),J=this.createFormGroup("分辨率","input",{attrs:{type:"text",value:`${e.environment.screenWidth}x${e.environment.screenHeight}`},style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px",boxSizing:"border-box"}});R.appendChild(J);const M=J.querySelector("input");y.appendChild(R);const S=this.createFormGroup("子系统","input",{attrs:{type:"text",value:e.environment.system},style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px",boxSizing:"border-box"}});y.appendChild(S);const K=S.querySelector("input");t.appendChild(y);const F=Le("div",{style:{background:"#f5f7fa",padding:"16px",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px"}}),ne=Le("h4",{text:"描述信息",style:{margin:"0 0 4px 0",fontSize:"15px",fontWeight:"600",color:"#303133"}});if(F.appendChild(ne),e.description.autoDescribe){const ie=this.createFormGroup("自动描述","textarea",{attrs:{rows:"4"},style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"13px",resize:"vertical",boxSizing:"border-box",fontFamily:"inherit"}}),E=ie.querySelector("textarea");E.value=e.description.autoDescribe,F.appendChild(ie)}const ee=this.createFormGroup("手动描述","textarea",{attrs:{placeholder:"请输入手动描述...",rows:"4"},style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"13px",resize:"vertical",boxSizing:"border-box",fontFamily:"inherit"}}),G=ee.querySelector("textarea");if(G.value=e.description.manualDescribe||"",F.appendChild(ee),t.appendChild(F),e.httpInfo){const ie=Le("div",{style:{background:"#f5f7fa",padding:"16px",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px"}}),E=Le("h4",{text:"接口信息",style:{margin:"0 0 4px 0",fontSize:"15px",fontWeight:"600",color:"#303133"}});ie.appendChild(E);const k=this.createFormGroup("请求 URL","input",{attrs:{type:"text",value:e.httpInfo.requestUrl},style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px",boxSizing:"border-box"}});ie.appendChild(k),k.querySelector("input");const V=Le("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px"}}),W=this.createFormGroup("请求方法","input",{attrs:{type:"text",value:e.httpInfo.requestMethod},style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px",boxSizing:"border-box"}});V.appendChild(W),W.querySelector("input");const z=this.createFormGroup("状态码","input",{attrs:{type:"text",value:String(e.httpInfo.responseStatus)},style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px",boxSizing:"border-box"}});V.appendChild(z),z.querySelector("input"),ie.appendChild(V);const _=this.createFormGroup("错误信息","textarea",{attrs:{rows:"3"},style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"13px",resize:"vertical",boxSizing:"border-box",fontFamily:"inherit"}}),L=_.querySelector("textarea");L.value=e.httpInfo.errorMessage,ie.appendChild(_);const Z=this.createFormGroup("请求参数","textarea",{attrs:{rows:"4",placeholder:"无请求参数"},style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"13px",resize:"vertical",boxSizing:"border-box",fontFamily:"inherit"}}),se=Z.querySelector("textarea"),$=e.httpInfo.requestParams?typeof e.httpInfo.requestParams=="object"?JSON.stringify(e.httpInfo.requestParams,null,2):String(e.httpInfo.requestParams):"";se.value=$,ie.appendChild(Z),t.appendChild(ie)}if(e.screenshots&&e.screenshots.length>0){const ie=Le("div",{style:{display:"flex",flexDirection:"column",gap:"12px"}}),E=Le("h4",{text:"截图",style:{margin:"0",fontSize:"15px",fontWeight:"600",color:"#303133"}});ie.appendChild(E),e.screenshots.forEach((k,V)=>{const W=Le("div",{style:{position:"relative",border:"1px solid #e4e7ed",borderRadius:"8px",overflow:"hidden",background:"#f5f7fa"}}),z=Le("img",{attrs:{src:k.url,alt:"Bug 截图"},style:{maxWidth:"100%",display:"block"}}),_=Le("div",{style:{position:"absolute",top:"8px",right:"8px",display:"flex",gap:"8px"}}),L=Le("button",{text:"✏️ 标注",style:{padding:"6px 12px",background:"rgba(102, 126, 234, 0.9)",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px",backdropFilter:"blur(4px)"}});dt(L,"click",se=>{se.stopPropagation(),this.annotationCanvas=new Yp({screenshotUrl:k.url,onComplete:($,te)=>{e.screenshots[V]={...k,url:te,annotations:$},z.src=te,this.annotationCanvas=null},onCancel:()=>{this.annotationCanvas=null}}),this.annotationCanvas.open(k.url)}),_.appendChild(L);const Z=Le("button",{text:"🗑️ 删除",style:{padding:"6px 12px",background:"rgba(245, 108, 108, 0.9)",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px",backdropFilter:"blur(4px)"}});dt(Z,"click",se=>{se.stopPropagation(),confirm("确定要删除这张截图吗?")&&(e.screenshots.splice(V,1),W.remove(),e.screenshots.length===0&&ie.remove())}),_.appendChild(Z),W.appendChild(z),W.appendChild(_),ie.appendChild(W)}),t.appendChild(ie)}const oe=Le("div",{style:{display:"flex",gap:"12px",marginTop:"8px",padding:"16px 0",borderTop:"1px solid #e4e7ed"}}),q=Le("button",{text:"💾 保存修改",style:{padding:"12px 24px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"14px",fontWeight:"500",flex:"1"}});dt(q,"click",()=>{var W;if(!m.value.trim()){alert("请输入标题"),m.focus();return}const ie=M.value.split("x"),E=parseInt(ie[0])||e.environment.screenWidth,k=parseInt(ie[1])||e.environment.screenHeight,V={description:{...e.description,title:m.value.trim(),autoDescribe:e.description.autoDescribe?((W=this.content.querySelector("textarea"))==null?void 0:W.value)||e.description.autoDescribe:"",manualDescribe:G.value},severity:h.value,environment:{...e.environment,url:I.value,route:j.value,userAgent:Q.value,screenWidth:E,screenHeight:k,system:K.value}};if(e.httpInfo){const z=this.content.querySelector('[data-field="http-url"]'),_=this.content.querySelector('[data-field="http-method"]'),L=this.content.querySelector('[data-field="http-status"]'),Z=this.content.querySelector('[data-field="http-error"]');V.httpInfo={...e.httpInfo,requestUrl:(z==null?void 0:z.value)||e.httpInfo.requestUrl,requestMethod:(_==null?void 0:_.value)||e.httpInfo.requestMethod,responseStatus:parseInt(L==null?void 0:L.value)||e.httpInfo.responseStatus,errorMessage:(Z==null?void 0:Z.value)||e.httpInfo.errorMessage}}this.store.update(e.id,V),this.updateBugCount(),this.currentDetailBug={...e,...V},alert("修改已保存")}),oe.appendChild(q);const he=Le("button",{text:"↩️ 取消修改",style:{padding:"12px 24px",background:"white",color:"#606266",border:"1px solid #dcdfe6",borderRadius:"6px",cursor:"pointer",fontSize:"14px",fontWeight:"500"}});dt(he,"click",()=>{this.renderDetailContent()}),oe.appendChild(he),t.appendChild(oe),this.content.appendChild(t)}createFormGroup(e,t,n){const A=Le("div",{style:{display:"flex",flexDirection:"column",gap:"8px"}}),i=Le("label",{text:e,style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});A.appendChild(i);const a=Le(t,n);return A.appendChild(a),A}getSeverityLabel(e){return{critical:"严重",major:"主要",minor:"次要",suggestion:"建议"}[e]||e}getSeverityStyle(e){return{critical:{background:"#fde2e2",color:"#f56c6c"},major:{background:"#faecd8",color:"#e6a23c"},minor:{background:"#e1f3d8",color:"#67c23a"},suggestion:{background:"#e4e7ed",color:"#909399"}}[e]||{background:"#e4e7ed",color:"#909399"}}updateBugCount(){const e=this.store.getAll().length;window.dispatchEvent(new CustomEvent("bug-extractor:count-changed",{detail:e}))}async captureScreenshot(){try{let e=null;try{const{toPng:t}=await Promise.resolve().then(()=>rF);e=await t(document.body,{cacheBust:!0,pixelRatio:1,skipFonts:!0,imagePlaceholder:{width:1,height:1,src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},filter:n=>{if(n instanceof HTMLElement){const A=n.className||"";if(typeof A=="string"&&(A.includes("bug-extractor")||A.includes("bug-dialog")||A.includes("bug-dialog-overlay")||A.includes("floating-toolbar")||A.includes("toolbar-panel")||A.includes("annotation-canvas")||A.includes("el-message")||A.includes("el-notification"))||n.closest&&n.closest(".bug-dialog, .bug-dialog-overlay, .bug-extractor-toolbar"))return!1}return!(n instanceof HTMLImageElement&&n.src&&!n.src.startsWith(window.location.origin)&&!n.src.startsWith("data:"))}})}catch(t){console.warn("[BugDialog] html-to-image 截图失败,尝试降级方案:",t),e=await this.captureScreenshotFallback()}return e}catch(e){return console.error("[BugDialog] 截图失败:",e),null}}async captureScreenshotFallback(){return new Promise(e=>{try{const t=document.createElement("canvas");t.width=window.innerWidth,t.height=window.innerHeight;const n=t.getContext("2d");if(!n){e(null);return}n.fillStyle="#ffffff",n.fillRect(0,0,t.width,t.height),n.fillStyle="#333333",n.font="bold 16px sans-serif",n.textAlign="center",n.fillText("截图降级方案 - 页面信息",t.width/2,40),n.textAlign="left",n.font="14px sans-serif",n.fillStyle="#666666";const A=[`页面标题: ${document.title||"N/A"}`,`页面 URL: ${window.location.href}`,`分辨率: ${window.innerWidth}x${window.innerHeight}`,`截图时间: ${new Date().toLocaleString("zh-CN")}`,"","说明: html-to-image 截图失败,已使用降级方案。","建议检查页面是否包含跨域图片或特殊字体。"];let i=80;A.forEach(a=>{n.fillText(a,50,i),i+=28}),e(t.toDataURL("image/png"))}catch(t){console.error("[BugDialog] 降级截图也失败:",t),e(null)}})}}class Jp{constructor(e){ze(this,"config");ze(this,"interceptor");ze(this,"classifier");ze(this,"screenshotService");ze(this,"bugBuilder");ze(this,"store");ze(this,"exportService");ze(this,"isInitialized",!1);ze(this,"toolbar",null);ze(this,"dialog",null);ze(this,"annotationCanvas",null);ze(this,"eventListeners",new Map);const t=e.delay,n=e.screenshot;this.config={enabled:!0,autoScreenshot:!0,screenshotOptions:{quality:.6,maxSize:300*1024,delay:500,showFlash:!1},ignore:{},pluginUrl:"",onBugCaptured:()=>{},...e},t!==void 0&&typeof t=="number"&&(this.config.screenshotOptions.delay=t),n&&typeof n=="object"&&(n.quality!==void 0&&(this.config.screenshotOptions.quality=n.quality),n.maxSize!==void 0&&(this.config.screenshotOptions.maxSize=n.maxSize),n.delay!==void 0&&(this.config.screenshotOptions.delay=n.delay),n.showFlash!==void 0&&(this.config.screenshotOptions.showFlash=n.showFlash)),this.interceptor=new Hi(this.config),this.classifier=new cn(this.config.ignore),this.screenshotService=new Iw,this.bugBuilder=new ed(e.system),this.store=new Fu,this.exportService=new Ho,this.exportService.register(new rd),this.exportService.register(new nd),this.exportService.register(new Ad),this.exportService.register(new Cp),this.exportService.register(new Xp)}setAxiosInstance(e){this.interceptor.setAxiosInstance(e),console.log("[BugExtractor] axios 实例已设置")}init(){this.isInitialized||!this.config.enabled||(this.isInitialized=!0,this.interceptor.start(e=>{this.handleHttpError(e)}),console.log("[BugExtractor] npm 模式已初始化"))}mount(){this.init(),this.toolbar&&this.unmount(),this.dialog=new VB({store:this.store,onClose:()=>{console.log("[BugExtractor] 弹窗已关闭")},onCreate:e=>{this.createBug(e).then(()=>{this.dialog&&this.dialog.switchMode("list")})},onDelete:e=>{e.forEach(t=>this.store.delete(t)),this.updateBugCount()}}),this.dialog.mount(),this.toolbar=new jB({bugCount:this.store.getAll().length,onCreate:()=>this.handleCreateBug(),onViewList:()=>this.handleViewList()}),this.toolbar.mount(),console.log("[BugExtractor] UI 已挂载")}unmount(){this.toolbar&&(this.toolbar.unmount(),this.toolbar=null),this.dialog&&(this.dialog.unmount(),this.dialog=null),console.log("[BugExtractor] UI 已卸载")}on(e,t){this.eventListeners.has(e)||this.eventListeners.set(e,[]),this.eventListeners.get(e).push(t)}emit(e,t){const n=this.eventListeners.get(e);n&&n.forEach(A=>A(t))}destroy(){this.unmount(),this.isInitialized&&(this.interceptor.stop(),this.isInitialized=!1,console.log("[BugExtractor] npm 模式已销毁"))}updateBugCount(){var t;const e=this.store.getAll().length;(t=this.toolbar)==null||t.setBugCount(e),window.dispatchEvent(new CustomEvent("bug-extractor:count-changed",{detail:e}))}async handleHttpError(e){console.log("[BugExtractor] 收到 HTTP 错误:",e.url,e.status);const t=e.classified;if(console.log("[BugExtractor] 错误分类结果:",t),t.isIgnored){console.log("[BugExtractor] 错误被忽略");return}let n;if(this.config.autoScreenshot){console.log("[BugExtractor] 开始自动截图,使用配置:",this.config.screenshotOptions);try{n=await this.screenshotService.capture({...this.config.screenshotOptions,delay:this.config.screenshotOptions.delay,showFlash:!1}),console.log("[BugExtractor] 截图成功:",n.width,"x",n.height,",",Math.round(n.size/1024),"KB")}catch(i){console.warn("[BugExtractor] 截图失败:",i)}}else console.log("[BugExtractor] 自动截图已禁用");console.log("[BugExtractor] 开始构建 Bug 报告");const A=this.bugBuilder.buildFromHttpError(e,n?{url:n.url,annotations:[]}:void 0);console.log("[BugExtractor] Bug 报告构建完成:",A.id),console.log("[BugExtractor] 开始存储 Bug"),this.store.add(A),console.log("[BugExtractor] Bug 存储完成,当前数量:",this.store.getAll().length),this.updateBugCount(),this.config.onBugCaptured&&this.config.onBugCaptured(A),this.emit("bugCaptured",A),console.log("[BugExtractor] Bug 处理完成")}async createBug(e){let t=e.screenshots;(!t||t.length===0)&&(t=[{url:(await this.screenshotService.capture({delay:0,showFlash:!1})).url,annotations:[]}]);const n=this.bugBuilder.buildFromManual({title:e.title,severity:e.severity,manualDescribe:e.description,tags:e.tags},t);return this.store.add(n),this.updateBugCount(),this.config.onBugCaptured&&this.config.onBugCaptured(n),this.emit("bugCreated",n),n}async captureScreenshot(e){return this.screenshotService.capture(e)}getAllBugs(){return this.store.getAll()}async exportBugs(e,t){const n=this.exportService.getExporter(e);if(!n)throw new Error(`不支持的导出格式: ${e}`);const A=t||this.store.getAll();return n.export(A)}getExportService(){return this.exportService}getStore(){return this.store}handleCreateBug(){var e;console.log("[BugExtractor] 打开创建 Bug 弹窗"),(e=this.dialog)==null||e.open("create")}handleViewList(){var e;console.log("[BugExtractor] 打开 Bug 列表"),(e=this.dialog)==null||e.open("list")}handleScreenshot(){console.log("[BugExtractor] 开始截图标注"),this.annotationCanvas=new Yp({onComplete:(e,t)=>{console.log("[BugExtractor] 截图标注完成",e.length)},onCancel:()=>{console.log("[BugExtractor] 截图标注取消")}}),this.screenshotService.capture({delay:0,showFlash:!1}).then(e=>{var t;(t=this.annotationCanvas)==null||t.open(e.url)}).catch(e=>{console.error("[BugExtractor] 截图失败:",e)})}handleExport(){var e;console.log("[BugExtractor] 打开导出面板"),(e=this.dialog)==null||e.open("export")}handleSettings(){console.log("[BugExtractor] 打开设置")}}class Zp{constructor(e){ze(this,"config");ze(this,"interceptor");ze(this,"classifier");ze(this,"bugBuilder");ze(this,"store");ze(this,"exportService");ze(this,"isInitialized",!1);ze(this,"messageHandlers",new Map);ze(this,"pendingRequests",new Map);this.config={enabled:!0,autoScreenshot:!1,screenshotOptions:{quality:.6,maxSize:300*1024,delay:500,showFlash:!1},ignore:{},pluginUrl:"",onBugCaptured:()=>{},...e},this.interceptor=new Hi,this.classifier=new cn(this.config.ignore),this.bugBuilder=new ed(e.system),this.store=new Fu,this.exportService=new Ho}init(){this.isInitialized||!this.config.enabled||(this.isInitialized=!0,this.interceptor.start(e=>{this.handleHttpError(e)}),window.addEventListener("message",this.handleMessage.bind(this)),this.postMessage("init",{ready:!0}),console.log("[BugExtractor] iframe 模式已初始化"))}destroy(){this.isInitialized&&(this.interceptor.stop(),window.removeEventListener("message",this.handleMessage.bind(this)),this.isInitialized=!1,console.log("[BugExtractor] iframe 模式已销毁"))}handleMessage(e){if(this.config.pluginUrl&&e.origin!==new URL(this.config.pluginUrl).origin)return;const t=e.data;if(!(!t||!t.type))switch(t.type){case"captureScreenshot":this.handleScreenshotRequest(t);break;case"exportRequest":this.handleExportRequest(t);break;case"getBugs":this.handleGetBugs(t);break;case"deleteBug":this.handleDeleteBug(t);break;case"clearBugs":this.handleClearBugs(t);break;default:t.id&&this.pendingRequests.has(t.id)&&(this.pendingRequests.get(t.id).resolve(t.payload),this.pendingRequests.delete(t.id))}}async handleScreenshotRequest(e){try{const t=await this.requestScreenshotFromHost();this.postMessage("screenshotResult",{id:e.id,success:!0,url:t})}catch(t){this.postMessage("screenshotResult",{id:e.id,success:!1,error:String(t)})}}async handleExportRequest(e){try{const{format:t,bugIds:n}=e.payload||{},A=n?this.store.getAll().filter(s=>n.includes(s.id)):this.store.getAll(),i=this.exportService.getExporter(t);if(!i)throw new Error(`不支持的导出格式: ${t}`);const a=await i.export(A);this.postMessage("exportResult",{id:e.id,success:!0,data:a})}catch(t){this.postMessage("exportResult",{id:e.id,success:!1,error:String(t)})}}handleGetBugs(e){this.postMessage("bugsResult",{id:e.id,bugs:this.store.getAll()})}handleDeleteBug(e){const{id:t}=e.payload||{};t&&this.store.delete(t)}handleClearBugs(){this.store.clear()}postMessage(e,t){const n=window.parent;if(n&&n!==window){const A=this.config.pluginUrl||"*";n.postMessage({type:e,payload:t},A)}}requestScreenshotFromHost(){return new Promise((e,t)=>{const n=`screenshot-${Date.now()}`,A=setTimeout(()=>{this.pendingRequests.delete(n),t(new Error("截图请求超时"))},1e4);this.pendingRequests.set(n,{resolve:i=>{clearTimeout(A),i&&i.success?e(i.url):t(new Error((i==null?void 0:i.error)||"截图失败"))},reject:i=>{clearTimeout(A),t(i)}}),this.postMessage("captureScreenshot",{id:n})})}async handleHttpError(e){console.log("error",e);const t=this.classifier.classify(e);if(t.ignored)return;let n;if(this.config.autoScreenshot)try{n=await this.requestScreenshotFromHost()}catch(i){console.warn("[BugExtractor] 从宿主获取截图失败:",i)}const A=this.bugBuilder.buildFromHttpError(e,t,n?{url:n,annotations:[]}:void 0);this.store.add(A),this.postMessage("bugCaptured",{bug:A}),this.config.onBugCaptured&&this.config.onBugCaptured(A)}async createBug(e){let t;try{t=await this.requestScreenshotFromHost()}catch(A){console.warn("[BugExtractor] 从宿主获取截图失败:",A)}const n=this.bugBuilder.buildFromManual({title:e.title,severity:e.severity,manualDescribe:e.description,screenshots:e.screenshots||(t?[{url:t,annotations:[]}]:[])});return this.store.add(n),this.postMessage("bugCaptured",{bug:n}),this.config.onBugCaptured&&this.config.onBugCaptured(n),n}getAllBugs(){return this.store.getAll()}async exportBugs(e,t){const n=this.exportService.getExporter(e);if(!n)throw new Error(`不支持的导出格式: ${e}`);const A=t||this.store.getAll();return n.export(A)}getExportService(){return this.exportService}getStore(){return this.store}}function l6(r,e){switch(r){case"npm":return new Jp(e);case"iframe":return new Zp(e);default:throw new Error(`不支持的适配器类型: ${r}`)}}function u6(r){return window.self!==window.top?new Zp(r):new Jp(r)}/*!
318
+ * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
319
+ * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
320
+ * Released under MIT License
321
+ *//*! *****************************************************************************
322
+ Copyright (c) Microsoft Corporation.
323
+
324
+ Permission to use, copy, modify, and/or distribute this software for any
325
+ purpose with or without fee is hereby granted.
326
+
327
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
328
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
329
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
330
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
331
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
332
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
333
+ PERFORMANCE OF THIS SOFTWARE.
334
+ ***************************************************************************** */var eg=function(r,e){return eg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var A in n)Object.prototype.hasOwnProperty.call(n,A)&&(t[A]=n[A])},eg(r,e)};function IA(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");eg(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var tg=function(){return tg=Object.assign||function(e){for(var t,n=1,A=arguments.length;n<A;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},tg.apply(this,arguments)};function Sn(r,e,t,n){function A(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function o(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):A(u.value).then(s,o)}l((n=n.apply(r,[])).next())})}function Bn(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,A,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return o([l,u])}}function o(l){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,A&&(i=l[0]&2?A.return:l[0]?A.throw||((i=A.return)&&i.call(A),0):A.next)&&!(i=i.call(A,l[1])).done)return i;switch(A=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,A=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1],i=l;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(l);break}i[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(u){l=[6,u],A=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function oc(r,e,t){if(arguments.length===2)for(var n=0,A=e.length,i;n<A;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||e)}for(var mi=function(){function r(e,t,n,A){this.left=e,this.top=t,this.width=n,this.height=A}return r.prototype.add=function(e,t,n,A){return new r(this.left+e,this.top+t,this.width+n,this.height+A)},r.fromClientRect=function(e,t){return new r(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},r.fromDOMRectList=function(e,t){var n=Array.from(t).find(function(A){return A.width!==0});return n?new r(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height):r.EMPTY},r.EMPTY=new r(0,0,0,0),r}(),lc=function(r,e){return mi.fromClientRect(r,e.getBoundingClientRect())},c6=function(r){var e=r.body,t=r.documentElement;if(!e||!t)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),A=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new mi(0,0,n,A)},uc=function(r){for(var e=[],t=0,n=r.length;t<n;){var A=r.charCodeAt(t++);if(A>=55296&&A<=56319&&t<n){var i=r.charCodeAt(t++);(i&64512)===56320?e.push(((A&1023)<<10)+(i&1023)+65536):(e.push(A),t--)}else e.push(A)}return e},Ir=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,r);var t=r.length;if(!t)return"";for(var n=[],A=-1,i="";++A<t;){var a=r[A];a<=65535?n.push(a):(a-=65536,n.push((a>>10)+55296,a%1024+56320)),(A+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},GB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h6=typeof Uint8Array>"u"?[]:new Uint8Array(256),cc=0;cc<GB.length;cc++)h6[GB.charCodeAt(cc)]=cc;for(var zB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nl=typeof Uint8Array>"u"?[]:new Uint8Array(256),hc=0;hc<zB.length;hc++)nl[zB.charCodeAt(hc)]=hc;for(var f6=function(r){var e=r.length*.75,t=r.length,n,A=0,i,a,s,o;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<t;n+=4)i=nl[r.charCodeAt(n)],a=nl[r.charCodeAt(n+1)],s=nl[r.charCodeAt(n+2)],o=nl[r.charCodeAt(n+3)],u[A++]=i<<2|a>>4,u[A++]=(a&15)<<4|s>>2,u[A++]=(s&3)<<6|o&63;return l},d6=function(r){for(var e=r.length,t=[],n=0;n<e;n+=2)t.push(r[n+1]<<8|r[n]);return t},p6=function(r){for(var e=r.length,t=[],n=0;n<e;n+=4)t.push(r[n+3]<<24|r[n+2]<<16|r[n+1]<<8|r[n]);return t},Ma=5,rg=11,ng=2,g6=rg-Ma,WB=65536>>Ma,m6=1<<Ma,Ag=m6-1,v6=1024>>Ma,w6=WB+v6,y6=w6,B6=32,b6=y6+B6,x6=65536>>rg,C6=1<<g6,E6=C6-1,$B=function(r,e,t){return r.slice?r.slice(e,t):new Uint16Array(Array.prototype.slice.call(r,e,t))},S6=function(r,e,t){return r.slice?r.slice(e,t):new Uint32Array(Array.prototype.slice.call(r,e,t))},F6=function(r,e){var t=f6(r),n=Array.isArray(t)?p6(t):new Uint32Array(t),A=Array.isArray(t)?d6(t):new Uint16Array(t),i=24,a=$B(A,i/2,n[4]/2),s=n[5]===2?$B(A,(i+n[4])/2):S6(n,Math.ceil((i+n[4])/4));return new U6(n[0],n[1],n[2],n[3],a,s)},U6=function(){function r(e,t,n,A,i,a){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=A,this.index=i,this.data=a}return r.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Ma],t=(t<<ng)+(e&Ag),this.data[t];if(e<=65535)return t=this.index[WB+(e-55296>>Ma)],t=(t<<ng)+(e&Ag),this.data[t];if(e<this.highStart)return t=b6-x6+(e>>rg),t=this.index[t],t+=e>>Ma&E6,t=this.index[t],t=(t<<ng)+(e&Ag),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},r}(),qB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I6=typeof Uint8Array>"u"?[]:new Uint8Array(256),fc=0;fc<qB.length;fc++)I6[qB.charCodeAt(fc)]=fc;var T6="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",XB=50,_6=1,YB=2,JB=3,L6=4,Q6=5,ZB=7,eb=8,tb=9,Ji=10,ig=11,rb=12,ag=13,N6=14,Al=15,sg=16,dc=17,il=18,O6=19,nb=20,og=21,al=22,lg=23,Hs=24,Xn=25,sl=26,ol=27,Ms=28,P6=29,Ka=30,R6=31,pc=32,gc=33,ug=34,cg=35,hg=36,ll=37,fg=38,mc=39,vc=40,dg=41,Ab=42,D6=43,k6=[9001,65288],ib="!",Tt="×",wc="÷",pg=F6(T6),vi=[Ka,hg],gg=[_6,YB,JB,Q6],ab=[Ji,eb],sb=[ol,sl],H6=gg.concat(ab),ob=[fg,mc,vc,ug,cg],M6=[Al,ag],K6=function(r,e){e===void 0&&(e="strict");var t=[],n=[],A=[];return r.forEach(function(i,a){var s=pg.get(i);if(s>XB?(A.push(!0),s-=XB):A.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(a),t.push(sg);if(s===L6||s===ig){if(a===0)return n.push(a),t.push(Ka);var o=t[a-1];return H6.indexOf(o)===-1?(n.push(n[a-1]),t.push(o)):(n.push(a),t.push(Ka))}if(n.push(a),s===R6)return t.push(e==="strict"?og:ll);if(s===Ab||s===P6)return t.push(Ka);if(s===D6)return i>=131072&&i<=196605||i>=196608&&i<=262141?t.push(ll):t.push(Ka);t.push(s)}),[n,t,A]},mg=function(r,e,t,n){var A=n[t];if(Array.isArray(r)?r.indexOf(A)!==-1:r===A)for(var i=t;i<=n.length;){i++;var a=n[i];if(a===e)return!0;if(a!==Ji)break}if(A===Ji)for(var i=t;i>0;){i--;var s=n[i];if(Array.isArray(r)?r.indexOf(s)!==-1:r===s)for(var o=t;o<=n.length;){o++;var a=n[o];if(a===e)return!0;if(a!==Ji)break}if(s!==Ji)break}return!1},lb=function(r,e){for(var t=r;t>=0;){var n=e[t];if(n===Ji)t--;else return n}return 0},j6=function(r,e,t,n,A){if(t[n]===0)return Tt;var i=n-1;if(Array.isArray(A)&&A[i]===!0)return Tt;var a=i-1,s=i+1,o=e[i],l=a>=0?e[a]:0,u=e[s];if(o===YB&&u===JB)return Tt;if(gg.indexOf(o)!==-1)return ib;if(gg.indexOf(u)!==-1||ab.indexOf(u)!==-1)return Tt;if(lb(i,e)===eb)return wc;if(pg.get(r[i])===ig||(o===pc||o===gc)&&pg.get(r[s])===ig||o===ZB||u===ZB||o===tb||[Ji,ag,Al].indexOf(o)===-1&&u===tb||[dc,il,O6,Hs,Ms].indexOf(u)!==-1||lb(i,e)===al||mg(lg,al,i,e)||mg([dc,il],og,i,e)||mg(rb,rb,i,e))return Tt;if(o===Ji)return wc;if(o===lg||u===lg)return Tt;if(u===sg||o===sg)return wc;if([ag,Al,og].indexOf(u)!==-1||o===N6||l===hg&&M6.indexOf(o)!==-1||o===Ms&&u===hg||u===nb||vi.indexOf(u)!==-1&&o===Xn||vi.indexOf(o)!==-1&&u===Xn||o===ol&&[ll,pc,gc].indexOf(u)!==-1||[ll,pc,gc].indexOf(o)!==-1&&u===sl||vi.indexOf(o)!==-1&&sb.indexOf(u)!==-1||sb.indexOf(o)!==-1&&vi.indexOf(u)!==-1||[ol,sl].indexOf(o)!==-1&&(u===Xn||[al,Al].indexOf(u)!==-1&&e[s+1]===Xn)||[al,Al].indexOf(o)!==-1&&u===Xn||o===Xn&&[Xn,Ms,Hs].indexOf(u)!==-1)return Tt;if([Xn,Ms,Hs,dc,il].indexOf(u)!==-1)for(var h=i;h>=0;){var d=e[h];if(d===Xn)return Tt;if([Ms,Hs].indexOf(d)!==-1)h--;else break}if([ol,sl].indexOf(u)!==-1)for(var h=[dc,il].indexOf(o)!==-1?a:i;h>=0;){var d=e[h];if(d===Xn)return Tt;if([Ms,Hs].indexOf(d)!==-1)h--;else break}if(fg===o&&[fg,mc,ug,cg].indexOf(u)!==-1||[mc,ug].indexOf(o)!==-1&&[mc,vc].indexOf(u)!==-1||[vc,cg].indexOf(o)!==-1&&u===vc||ob.indexOf(o)!==-1&&[nb,sl].indexOf(u)!==-1||ob.indexOf(u)!==-1&&o===ol||vi.indexOf(o)!==-1&&vi.indexOf(u)!==-1||o===Hs&&vi.indexOf(u)!==-1||vi.concat(Xn).indexOf(o)!==-1&&u===al&&k6.indexOf(r[s])===-1||vi.concat(Xn).indexOf(u)!==-1&&o===il)return Tt;if(o===dg&&u===dg){for(var c=t[i],p=1;c>0&&(c--,e[c]===dg);)p++;if(p%2!==0)return Tt}return o===pc&&u===gc?Tt:wc},V6=function(r,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=K6(r,e.lineBreak),n=t[0],A=t[1],i=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(A=A.map(function(s){return[Xn,Ka,Ab].indexOf(s)!==-1?ll:s}));var a=e.wordBreak==="keep-all"?i.map(function(s,o){return s&&r[o]>=19968&&r[o]<=40959}):void 0;return[n,A,a]},G6=function(){function r(e,t,n,A){this.codePoints=e,this.required=t===ib,this.start=n,this.end=A}return r.prototype.slice=function(){return Ir.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),z6=function(r,e){var t=uc(r),n=V6(t,e),A=n[0],i=n[1],a=n[2],s=t.length,o=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};for(var u=Tt;l<s&&(u=j6(t,i,A,++l,a))===Tt;);if(u!==Tt||l===s){var h=new G6(t,u,o,l);return o=l,{value:h,done:!1}}return{done:!0,value:null}}}},W6=1,$6=2,ul=4,ub=8,yc=10,cb=47,cl=92,q6=9,X6=32,Bc=34,hl=61,Y6=35,J6=36,Z6=37,bc=39,xc=40,fl=41,eQ=95,Dn=45,tQ=33,rQ=60,nQ=62,AQ=64,iQ=91,aQ=93,sQ=61,oQ=123,Cc=63,lQ=125,hb=124,uQ=126,cQ=128,fb=65533,vg=42,ja=43,hQ=44,fQ=58,dQ=59,dl=46,pQ=0,gQ=8,mQ=11,vQ=14,wQ=31,yQ=127,ZA=-1,db=48,pb=97,gb=101,BQ=102,bQ=117,xQ=122,mb=65,vb=69,wb=70,CQ=85,EQ=90,bn=function(r){return r>=db&&r<=57},SQ=function(r){return r>=55296&&r<=57343},Ks=function(r){return bn(r)||r>=mb&&r<=wb||r>=pb&&r<=BQ},FQ=function(r){return r>=pb&&r<=xQ},UQ=function(r){return r>=mb&&r<=EQ},IQ=function(r){return FQ(r)||UQ(r)},TQ=function(r){return r>=cQ},Ec=function(r){return r===yc||r===q6||r===X6},Sc=function(r){return IQ(r)||TQ(r)||r===eQ},yb=function(r){return Sc(r)||bn(r)||r===Dn},_Q=function(r){return r>=pQ&&r<=gQ||r===mQ||r>=vQ&&r<=wQ||r===yQ},Zi=function(r,e){return r!==cl?!1:e!==yc},Fc=function(r,e,t){return r===Dn?Sc(e)||Zi(e,t):Sc(r)?!0:!!(r===cl&&Zi(r,e))},wg=function(r,e,t){return r===ja||r===Dn?bn(e)?!0:e===dl&&bn(t):bn(r===dl?e:r)},LQ=function(r){var e=0,t=1;(r[e]===ja||r[e]===Dn)&&(r[e]===Dn&&(t=-1),e++);for(var n=[];bn(r[e]);)n.push(r[e++]);var A=n.length?parseInt(Ir.apply(void 0,n),10):0;r[e]===dl&&e++;for(var i=[];bn(r[e]);)i.push(r[e++]);var a=i.length,s=a?parseInt(Ir.apply(void 0,i),10):0;(r[e]===vb||r[e]===gb)&&e++;var o=1;(r[e]===ja||r[e]===Dn)&&(r[e]===Dn&&(o=-1),e++);for(var l=[];bn(r[e]);)l.push(r[e++]);var u=l.length?parseInt(Ir.apply(void 0,l),10):0;return t*(A+s*Math.pow(10,-a))*Math.pow(10,o*u)},QQ={type:2},NQ={type:3},OQ={type:4},PQ={type:13},RQ={type:8},DQ={type:21},kQ={type:9},HQ={type:10},MQ={type:11},KQ={type:12},jQ={type:14},Uc={type:23},VQ={type:1},GQ={type:25},zQ={type:24},WQ={type:26},$Q={type:27},qQ={type:28},XQ={type:29},YQ={type:31},yg={type:32},Bb=function(){function r(){this._value=[]}return r.prototype.write=function(e){this._value=this._value.concat(uc(e))},r.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==yg;)e.push(t),t=this.consumeToken();return e},r.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Bc:return this.consumeStringToken(Bc);case Y6:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),A=this.peekCodePoint(2);if(yb(t)||Zi(n,A)){var i=Fc(t,n,A)?$6:W6,a=this.consumeName();return{type:5,value:a,flags:i}}break;case J6:if(this.peekCodePoint(0)===hl)return this.consumeCodePoint(),PQ;break;case bc:return this.consumeStringToken(bc);case xc:return QQ;case fl:return NQ;case vg:if(this.peekCodePoint(0)===hl)return this.consumeCodePoint(),jQ;break;case ja:if(wg(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case hQ:return OQ;case Dn:var s=e,o=this.peekCodePoint(0),l=this.peekCodePoint(1);if(wg(s,o,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Fc(s,o,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(o===Dn&&l===nQ)return this.consumeCodePoint(),this.consumeCodePoint(),zQ;break;case dl:if(wg(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case cb:if(this.peekCodePoint(0)===vg)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===vg&&(u=this.consumeCodePoint(),u===cb))return this.consumeToken();if(u===ZA)return this.consumeToken()}break;case fQ:return WQ;case dQ:return $Q;case rQ:if(this.peekCodePoint(0)===tQ&&this.peekCodePoint(1)===Dn&&this.peekCodePoint(2)===Dn)return this.consumeCodePoint(),this.consumeCodePoint(),GQ;break;case AQ:var h=this.peekCodePoint(0),d=this.peekCodePoint(1),c=this.peekCodePoint(2);if(Fc(h,d,c)){var a=this.consumeName();return{type:7,value:a}}break;case iQ:return qQ;case cl:if(Zi(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case aQ:return XQ;case sQ:if(this.peekCodePoint(0)===hl)return this.consumeCodePoint(),RQ;break;case oQ:return MQ;case lQ:return KQ;case bQ:case CQ:var p=this.peekCodePoint(0),m=this.peekCodePoint(1);return p===ja&&(Ks(m)||m===Cc)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case hb:if(this.peekCodePoint(0)===hl)return this.consumeCodePoint(),kQ;if(this.peekCodePoint(0)===hb)return this.consumeCodePoint(),DQ;break;case uQ:if(this.peekCodePoint(0)===hl)return this.consumeCodePoint(),HQ;break;case ZA:return yg}return Ec(e)?(this.consumeWhiteSpace(),YQ):bn(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Sc(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Ir(e)}},r.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},r.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},r.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},r.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Ks(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===Cc&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var A=parseInt(Ir.apply(void 0,e.map(function(o){return o===Cc?db:o})),16),i=parseInt(Ir.apply(void 0,e.map(function(o){return o===Cc?wb:o})),16);return{type:30,start:A,end:i}}var a=parseInt(Ir.apply(void 0,e),16);if(this.peekCodePoint(0)===Dn&&Ks(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var s=[];Ks(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();var i=parseInt(Ir.apply(void 0,s),16);return{type:30,start:a,end:i}}else return{type:30,start:a,end:a}},r.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===xc?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===xc?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},r.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ZA)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===bc||t===Bc){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ZA||this.peekCodePoint(0)===fl)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Uc)}for(;;){var A=this.consumeCodePoint();if(A===ZA||A===fl)return{type:22,value:Ir.apply(void 0,e)};if(Ec(A))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ZA||this.peekCodePoint(0)===fl?(this.consumeCodePoint(),{type:22,value:Ir.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Uc);if(A===Bc||A===bc||A===xc||_Q(A))return this.consumeBadUrlRemnants(),Uc;if(A===cl)if(Zi(A,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Uc;else e.push(A)}},r.prototype.consumeWhiteSpace=function(){for(;Ec(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===fl||e===ZA)return;Zi(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(e){for(var t=5e4,n="";e>0;){var A=Math.min(t,e);n+=Ir.apply(void 0,this._value.splice(0,A)),e-=A}return this._value.shift(),n},r.prototype.consumeStringToken=function(e){var t="",n=0;do{var A=this._value[n];if(A===ZA||A===void 0||A===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(A===yc)return this._value.splice(0,n),VQ;if(A===cl){var i=this._value[n+1];i!==ZA&&i!==void 0&&(i===yc?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):Zi(A,i)&&(t+=this.consumeStringSlice(n),t+=Ir(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var e=[],t=ul,n=this.peekCodePoint(0);for((n===ja||n===Dn)&&e.push(this.consumeCodePoint());bn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var A=this.peekCodePoint(1);if(n===dl&&bn(A))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=ub;bn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),A=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===vb||n===gb)&&((A===ja||A===Dn)&&bn(i)||bn(A)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=ub;bn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[LQ(e),t]},r.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],A=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);if(Fc(A,i,a)){var s=this.consumeName();return{type:15,number:t,flags:n,unit:s}}return A===Z6?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Ks(e)){for(var t=Ir(e);Ks(this.peekCodePoint(0))&&t.length<6;)t+=Ir(this.consumeCodePoint());Ec(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return n===0||SQ(n)||n>1114111?fb:n}return e===ZA?fb:e},r.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(yb(t))e+=Ir(t);else if(Zi(t,this.peekCodePoint(0)))e+=Ir(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},r}(),bb=function(){function r(e){this._tokens=e}return r.create=function(e){var t=new Bb;return t.write(e),new r(t.read())},r.parseValue=function(e){return r.create(e).parseComponentValue()},r.parseValues=function(e){return r.create(e).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var 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")},r.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},r.prototype.consumeComponentValue=function(){var 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},r.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||ZQ(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},r.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?yg:e},r.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},r}(),pl=function(r){return r.type===15},js=function(r){return r.type===17},Yt=function(r){return r.type===20},JQ=function(r){return r.type===0},Bg=function(r,e){return Yt(r)&&r.value===e},xb=function(r){return r.type!==31},Vs=function(r){return r.type!==31&&r.type!==4},ei=function(r){var e=[],t=[];return r.forEach(function(n){if(n.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}n.type!==31&&t.push(n)}),t.length&&e.push(t),e},ZQ=function(r,e){return e===11&&r.type===12||e===28&&r.type===29?!0:e===2&&r.type===3},ea=function(r){return r.type===17||r.type===15},Rr=function(r){return r.type===16||ea(r)},Cb=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},nn={type:17,number:0,flags:ul},bg={type:16,number:50,flags:ul},ta={type:16,number:100,flags:ul},gl=function(r,e,t){var n=r[0],A=r[1];return[rr(n,e),rr(typeof A<"u"?A:n,t)]},rr=function(r,e){if(r.type===16)return r.number/100*e;if(pl(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},Eb="deg",Sb="grad",Fb="rad",Ub="turn",Ic={name:"angle",parse:function(r,e){if(e.type===15)switch(e.unit){case Eb:return Math.PI*e.number/180;case Sb:return Math.PI/200*e.number;case Fb:return e.number;case Ub:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Ib=function(r){return r.type===15&&(r.unit===Eb||r.unit===Sb||r.unit===Fb||r.unit===Ub)},Tb=function(r){var e=r.filter(Yt).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[nn,nn];case"to top":case"bottom":return oA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[nn,ta];case"to right":case"left":return oA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ta,ta];case"to bottom":case"top":return oA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ta,nn];case"to left":case"right":return oA(270)}return 0},oA=function(r){return Math.PI*r/180},ra={name:"color",parse:function(r,e){if(e.type===18){var t=eN[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(r,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),A=e.value.substring(1,2),i=e.value.substring(2,3);return Aa(parseInt(n+n,16),parseInt(A+A,16),parseInt(i+i,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),A=e.value.substring(1,2),i=e.value.substring(2,3),a=e.value.substring(3,4);return Aa(parseInt(n+n,16),parseInt(A+A,16),parseInt(i+i,16),parseInt(a+a,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),A=e.value.substring(2,4),i=e.value.substring(4,6);return Aa(parseInt(n,16),parseInt(A,16),parseInt(i,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),A=e.value.substring(2,4),i=e.value.substring(4,6),a=e.value.substring(6,8);return Aa(parseInt(n,16),parseInt(A,16),parseInt(i,16),parseInt(a,16)/255)}}if(e.type===20){var s=wi[e.value.toUpperCase()];if(typeof s<"u")return s}return wi.TRANSPARENT}},na=function(r){return(255&r)===0},Wr=function(r){var e=255&r,t=255&r>>8,n=255&r>>16,A=255&r>>24;return e<255?"rgba("+A+","+n+","+t+","+e/255+")":"rgb("+A+","+n+","+t+")"},Aa=function(r,e,t,n){return(r<<24|e<<16|t<<8|Math.round(n*255)<<0)>>>0},_b=function(r,e){if(r.type===17)return r.number;if(r.type===16){var t=e===3?1:255;return e===3?r.number/100*t:Math.round(r.number/100*t)}return 0},Lb=function(r,e){var t=e.filter(Vs);if(t.length===3){var n=t.map(_b),A=n[0],i=n[1],a=n[2];return Aa(A,i,a,1)}if(t.length===4){var s=t.map(_b),A=s[0],i=s[1],a=s[2],o=s[3];return Aa(A,i,a,o)}return 0};function xg(r,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-r)*t*6+r:t<1/2?e:t<2/3?(e-r)*6*(2/3-t)+r:r}var Qb=function(r,e){var t=e.filter(Vs),n=t[0],A=t[1],i=t[2],a=t[3],s=(n.type===17?oA(n.number):Ic.parse(r,n))/(Math.PI*2),o=Rr(A)?A.number/100:0,l=Rr(i)?i.number/100:0,u=typeof a<"u"&&Rr(a)?rr(a,1):1;if(o===0)return Aa(l*255,l*255,l*255,1);var h=l<=.5?l*(o+1):l+o-l*o,d=l*2-h,c=xg(d,h,s+1/3),p=xg(d,h,s),m=xg(d,h,s-1/3);return Aa(c*255,p*255,m*255,u)},eN={hsl:Qb,hsla:Qb,rgb:Lb,rgba:Lb},ml=function(r,e){return ra.parse(r,bb.create(e).parseComponentValue())},wi={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},tN={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(t){if(Yt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},rN={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Tc=function(r,e){var t=ra.parse(r,e[0]),n=e[1];return n&&Rr(n)?{color:t,stop:n}:{color:t,stop:null}},Nb=function(r,e){var t=r[0],n=r[r.length-1];t.stop===null&&(t.stop=nn),n.stop===null&&(n.stop=ta);for(var A=[],i=0,a=0;a<r.length;a++){var s=r[a].stop;if(s!==null){var o=rr(s,e);o>i?A.push(o):A.push(i),i=o}else A.push(null)}for(var l=null,a=0;a<A.length;a++){var u=A[a];if(u===null)l===null&&(l=a);else if(l!==null){for(var h=a-l,d=A[l-1],c=(u-d)/(h+1),p=1;p<=h;p++)A[l+p-1]=c*p;l=null}}return r.map(function(m,y){var g=m.color;return{color:g,stop:Math.max(Math.min(1,A[y]/e),0)}})},nN=function(r,e,t){var n=e/2,A=t/2,i=rr(r[0],e)-n,a=A-rr(r[1],t);return(Math.atan2(a,i)+Math.PI*2)%(Math.PI*2)},AN=function(r,e,t){var n=typeof r=="number"?r:nN(r,e,t),A=Math.abs(e*Math.sin(n))+Math.abs(t*Math.cos(n)),i=e/2,a=t/2,s=A/2,o=Math.sin(n-Math.PI/2)*s,l=Math.cos(n-Math.PI/2)*s;return[A,i-l,i+l,a-o,a+o]},TA=function(r,e){return Math.sqrt(r*r+e*e)},Ob=function(r,e,t,n,A){var i=[[0,0],[0,e],[r,0],[r,e]];return i.reduce(function(a,s){var o=s[0],l=s[1],u=TA(t-o,n-l);return(A?u<a.optimumDistance:u>a.optimumDistance)?{optimumCorner:s,optimumDistance:u}:a},{optimumDistance:A?1/0:-1/0,optimumCorner:null}).optimumCorner},iN=function(r,e,t,n,A){var i=0,a=0;switch(r.size){case 0:r.shape===0?i=a=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-A)):r.shape===1&&(i=Math.min(Math.abs(e),Math.abs(e-n)),a=Math.min(Math.abs(t),Math.abs(t-A)));break;case 2:if(r.shape===0)i=a=Math.min(TA(e,t),TA(e,t-A),TA(e-n,t),TA(e-n,t-A));else if(r.shape===1){var s=Math.min(Math.abs(t),Math.abs(t-A))/Math.min(Math.abs(e),Math.abs(e-n)),o=Ob(n,A,e,t,!0),l=o[0],u=o[1];i=TA(l-e,(u-t)/s),a=s*i}break;case 1:r.shape===0?i=a=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-A)):r.shape===1&&(i=Math.max(Math.abs(e),Math.abs(e-n)),a=Math.max(Math.abs(t),Math.abs(t-A)));break;case 3:if(r.shape===0)i=a=Math.max(TA(e,t),TA(e,t-A),TA(e-n,t),TA(e-n,t-A));else if(r.shape===1){var s=Math.max(Math.abs(t),Math.abs(t-A))/Math.max(Math.abs(e),Math.abs(e-n)),h=Ob(n,A,e,t,!1),l=h[0],u=h[1];i=TA(l-e,(u-t)/s),a=s*i}break}return Array.isArray(r.size)&&(i=rr(r.size[0],n),a=r.size.length===2?rr(r.size[1],A):i),[i,a]},aN=function(r,e){var t=oA(180),n=[];return ei(e).forEach(function(A,i){if(i===0){var a=A[0];if(a.type===20&&a.value==="to"){t=Tb(A);return}else if(Ib(a)){t=Ic.parse(r,a);return}}var s=Tc(r,A);n.push(s)}),{angle:t,stops:n,type:1}},_c=function(r,e){var t=oA(180),n=[];return ei(e).forEach(function(A,i){if(i===0){var a=A[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){t=Tb(A);return}else if(Ib(a)){t=(Ic.parse(r,a)+oA(270))%oA(360);return}}var s=Tc(r,A);n.push(s)}),{angle:t,stops:n,type:1}},sN=function(r,e){var t=oA(180),n=[],A=1,i=0,a=3,s=[];return ei(e).forEach(function(o,l){var u=o[0];if(l===0){if(Yt(u)&&u.value==="linear"){A=1;return}else if(Yt(u)&&u.value==="radial"){A=2;return}}if(u.type===18){if(u.name==="from"){var h=ra.parse(r,u.values[0]);n.push({stop:nn,color:h})}else if(u.name==="to"){var h=ra.parse(r,u.values[0]);n.push({stop:ta,color:h})}else if(u.name==="color-stop"){var d=u.values.filter(Vs);if(d.length===2){var h=ra.parse(r,d[1]),c=d[0];js(c)&&n.push({stop:{type:16,number:c.number*100,flags:c.flags},color:h})}}}}),A===1?{angle:(t+oA(180))%oA(360),stops:n,type:A}:{size:a,shape:i,stops:n,position:s,type:A}},Pb="closest-side",Rb="farthest-side",Db="closest-corner",kb="farthest-corner",Hb="circle",Mb="ellipse",Kb="cover",jb="contain",oN=function(r,e){var t=0,n=3,A=[],i=[];return ei(e).forEach(function(a,s){var o=!0;if(s===0){var l=!1;o=a.reduce(function(h,d){if(l)if(Yt(d))switch(d.value){case"center":return i.push(bg),h;case"top":case"left":return i.push(nn),h;case"right":case"bottom":return i.push(ta),h}else(Rr(d)||ea(d))&&i.push(d);else if(Yt(d))switch(d.value){case Hb:return t=0,!1;case Mb:return t=1,!1;case"at":return l=!0,!1;case Pb:return n=0,!1;case Kb:case Rb:return n=1,!1;case jb:case Db:return n=2,!1;case kb:return n=3,!1}else if(ea(d)||Rr(d))return Array.isArray(n)||(n=[]),n.push(d),!1;return h},o)}if(o){var u=Tc(r,a);A.push(u)}}),{size:n,shape:t,stops:A,position:i,type:2}},Lc=function(r,e){var t=0,n=3,A=[],i=[];return ei(e).forEach(function(a,s){var o=!0;if(s===0?o=a.reduce(function(u,h){if(Yt(h))switch(h.value){case"center":return i.push(bg),!1;case"top":case"left":return i.push(nn),!1;case"right":case"bottom":return i.push(ta),!1}else if(Rr(h)||ea(h))return i.push(h),!1;return u},o):s===1&&(o=a.reduce(function(u,h){if(Yt(h))switch(h.value){case Hb:return t=0,!1;case Mb:return t=1,!1;case jb:case Pb:return n=0,!1;case Rb:return n=1,!1;case Db:return n=2,!1;case Kb:case kb:return n=3,!1}else if(ea(h)||Rr(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return u},o)),o){var l=Tc(r,a);A.push(l)}}),{size:n,shape:t,stops:A,position:i,type:2}},lN=function(r){return r.type===1},uN=function(r){return r.type===2},Cg={name:"image",parse:function(r,e){if(e.type===22){var t={url:e.value,type:0};return r.cache.addImage(e.value),t}if(e.type===18){var n=Vb[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(r,e.values)}throw new Error("Unsupported image type "+e.type)}};function cN(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!Vb[r.name])}var Vb={"linear-gradient":aN,"-moz-linear-gradient":_c,"-ms-linear-gradient":_c,"-o-linear-gradient":_c,"-webkit-linear-gradient":_c,"radial-gradient":oN,"-moz-radial-gradient":Lc,"-ms-radial-gradient":Lc,"-o-radial-gradient":Lc,"-webkit-radial-gradient":Lc,"-webkit-gradient":sN},hN={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(n){return Vs(n)&&cN(n)}).map(function(n){return Cg.parse(r,n)})}},fN={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(t){if(Yt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},dN={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,e){return ei(e).map(function(t){return t.filter(Rr)}).map(Cb)}},pN={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,e){return ei(e).map(function(t){return t.filter(Yt).map(function(n){return n.value}).join(" ")}).map(gN)}},gN=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Gs;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(Gs||(Gs={}));var mN={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,e){return ei(e).map(function(t){return t.filter(vN)})}},vN=function(r){return Yt(r)||Rr(r)},Qc=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},wN=Qc("top"),yN=Qc("right"),BN=Qc("bottom"),bN=Qc("left"),Nc=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Cb(t.filter(Rr))}}},xN=Nc("top-left"),CN=Nc("top-right"),EN=Nc("bottom-right"),SN=Nc("bottom-left"),Oc=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},FN=Oc("top"),UN=Oc("right"),IN=Oc("bottom"),TN=Oc("left"),Pc=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return pl(t)?t.number:0}}},_N=Pc("top"),LN=Pc("right"),QN=Pc("bottom"),NN=Pc("left"),ON={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},PN={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},RN={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,e){return e.filter(Yt).reduce(function(t,n){return t|DN(n.value)},0)}},DN=function(r){switch(r){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},kN={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},HN={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Rc;(function(r){r.NORMAL="normal",r.STRICT="strict"})(Rc||(Rc={}));var MN={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"strict":return Rc.STRICT;case"normal":default:return Rc.NORMAL}}},KN={name:"line-height",initialValue:"normal",prefix:!1,type:4},Gb=function(r,e){return Yt(r)&&r.value==="normal"?1.2*e:r.type===17?e*r.number:Rr(r)?rr(r,e):e},jN={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,e){return e.type===20&&e.value==="none"?null:Cg.parse(r,e)}},VN={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Eg={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,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 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Dc=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},GN=Dc("top"),zN=Dc("right"),WN=Dc("bottom"),$N=Dc("left"),qN={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,e){return e.filter(Yt).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},XN={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},kc=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},YN=kc("top"),JN=kc("right"),ZN=kc("bottom"),eO=kc("left"),tO={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},rO={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},nO={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.length===1&&Bg(e[0],"none")?[]:ei(e).map(function(t){for(var n={color:wi.TRANSPARENT,offsetX:nn,offsetY:nn,blur:nn},A=0,i=0;i<t.length;i++){var a=t[i];ea(a)?(A===0?n.offsetX=a:A===1?n.offsetY=a:n.blur=a,A++):n.color=ra.parse(r,a)}return n})}},AO={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},iO={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(r,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var t=oO[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},aO=function(r){var e=r.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},sO=function(r){var e=r.filter(function(o){return o.type===17}).map(function(o){return o.number}),t=e[0],n=e[1];e[2],e[3];var A=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var a=e[12],s=e[13];return e[14],e[15],e.length===16?[t,n,A,i,a,s]:null},oO={matrix:aO,matrix3d:sO},zb={type:16,number:50,flags:ul},lO=[zb,zb],uO={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,e){var t=e.filter(Rr);return t.length!==2?lO:[t[0],t[1]]}},cO={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},vl;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(vl||(vl={}));for(var hO={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-all":return vl.BREAK_ALL;case"keep-all":return vl.KEEP_ALL;case"normal":default:return vl.NORMAL}}},fO={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,e){if(e.type===20)return{auto:!0,order:0};if(js(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Wb={name:"time",parse:function(r,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")}},dO={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,e){return js(e)?e.number:1}},pO={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gO={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,e){return e.filter(Yt).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},mO={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,e){var t=[],n=[];return e.forEach(function(A){switch(A.type){case 20:case 0:t.push(A.value);break;case 17:t.push(A.number.toString());break;case 4:n.push(t.join(" ")),t.length=0;break}}),t.length&&n.push(t.join(" ")),n.map(function(A){return A.indexOf(" ")===-1?A:"'"+A+"'"})}},vO={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},wO={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,e){if(js(e))return e.number;if(Yt(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},yO={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.filter(Yt).map(function(t){return t.value})}},BO={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Gr=function(r,e){return(r&e)!==0},bO={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(r,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},xO={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(r,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var n=[],A=e.filter(xb),i=0;i<A.length;i++){var a=A[i],s=A[i+1];if(a.type===20){var o=s&&js(s)?s.number:1;n.push({counter:a.value,increment:o})}}return n}},CO={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(r,e){if(e.length===0)return[];for(var t=[],n=e.filter(xb),A=0;A<n.length;A++){var i=n[A],a=n[A+1];if(Yt(i)&&i.value!=="none"){var s=a&&js(a)?a.number:0;t.push({counter:i.value,reset:s})}}return t}},EO={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(r,e){return e.filter(pl).map(function(t){return Wb.parse(r,t)})}},SO={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(r,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;var n=[],A=e.filter(JQ);if(A.length%2!==0)return null;for(var i=0;i<A.length;i+=2){var a=A[i].value,s=A[i+1].value;n.push({open:a,close:s})}return n}},$b=function(r,e,t){if(!r)return"";var n=r[Math.min(e,r.length-1)];return n?t?n.open:n.close:""},FO={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.length===1&&Bg(e[0],"none")?[]:ei(e).map(function(t){for(var n={color:255,offsetX:nn,offsetY:nn,blur:nn,spread:nn,inset:!1},A=0,i=0;i<t.length;i++){var a=t[i];Bg(a,"inset")?n.inset=!0:ea(a)?(A===0?n.offsetX=a:A===1?n.offsetY=a:A===2?n.blur=a:n.spread=a,A++):n.color=ra.parse(r,a)}return n})}},UO={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(r,e){var t=[0,1,2],n=[];return e.filter(Yt).forEach(function(A){switch(A.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),t.forEach(function(A){n.indexOf(A)===-1&&n.push(A)}),n}},IO={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},TO={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(r,e){return pl(e)?e.number:0}},_O=function(){function r(e,t){var n,A;this.animationDuration=nt(e,EO,t.animationDuration),this.backgroundClip=nt(e,tN,t.backgroundClip),this.backgroundColor=nt(e,rN,t.backgroundColor),this.backgroundImage=nt(e,hN,t.backgroundImage),this.backgroundOrigin=nt(e,fN,t.backgroundOrigin),this.backgroundPosition=nt(e,dN,t.backgroundPosition),this.backgroundRepeat=nt(e,pN,t.backgroundRepeat),this.backgroundSize=nt(e,mN,t.backgroundSize),this.borderTopColor=nt(e,wN,t.borderTopColor),this.borderRightColor=nt(e,yN,t.borderRightColor),this.borderBottomColor=nt(e,BN,t.borderBottomColor),this.borderLeftColor=nt(e,bN,t.borderLeftColor),this.borderTopLeftRadius=nt(e,xN,t.borderTopLeftRadius),this.borderTopRightRadius=nt(e,CN,t.borderTopRightRadius),this.borderBottomRightRadius=nt(e,EN,t.borderBottomRightRadius),this.borderBottomLeftRadius=nt(e,SN,t.borderBottomLeftRadius),this.borderTopStyle=nt(e,FN,t.borderTopStyle),this.borderRightStyle=nt(e,UN,t.borderRightStyle),this.borderBottomStyle=nt(e,IN,t.borderBottomStyle),this.borderLeftStyle=nt(e,TN,t.borderLeftStyle),this.borderTopWidth=nt(e,_N,t.borderTopWidth),this.borderRightWidth=nt(e,LN,t.borderRightWidth),this.borderBottomWidth=nt(e,QN,t.borderBottomWidth),this.borderLeftWidth=nt(e,NN,t.borderLeftWidth),this.boxShadow=nt(e,FO,t.boxShadow),this.color=nt(e,ON,t.color),this.direction=nt(e,PN,t.direction),this.display=nt(e,RN,t.display),this.float=nt(e,kN,t.cssFloat),this.fontFamily=nt(e,mO,t.fontFamily),this.fontSize=nt(e,vO,t.fontSize),this.fontStyle=nt(e,BO,t.fontStyle),this.fontVariant=nt(e,yO,t.fontVariant),this.fontWeight=nt(e,wO,t.fontWeight),this.letterSpacing=nt(e,HN,t.letterSpacing),this.lineBreak=nt(e,MN,t.lineBreak),this.lineHeight=nt(e,KN,t.lineHeight),this.listStyleImage=nt(e,jN,t.listStyleImage),this.listStylePosition=nt(e,VN,t.listStylePosition),this.listStyleType=nt(e,Eg,t.listStyleType),this.marginTop=nt(e,GN,t.marginTop),this.marginRight=nt(e,zN,t.marginRight),this.marginBottom=nt(e,WN,t.marginBottom),this.marginLeft=nt(e,$N,t.marginLeft),this.opacity=nt(e,dO,t.opacity);var i=nt(e,qN,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=nt(e,XN,t.overflowWrap),this.paddingTop=nt(e,YN,t.paddingTop),this.paddingRight=nt(e,JN,t.paddingRight),this.paddingBottom=nt(e,ZN,t.paddingBottom),this.paddingLeft=nt(e,eO,t.paddingLeft),this.paintOrder=nt(e,UO,t.paintOrder),this.position=nt(e,rO,t.position),this.textAlign=nt(e,tO,t.textAlign),this.textDecorationColor=nt(e,pO,(n=t.textDecorationColor)!==null&&n!==void 0?n:t.color),this.textDecorationLine=nt(e,gO,(A=t.textDecorationLine)!==null&&A!==void 0?A:t.textDecoration),this.textShadow=nt(e,nO,t.textShadow),this.textTransform=nt(e,AO,t.textTransform),this.transform=nt(e,iO,t.transform),this.transformOrigin=nt(e,uO,t.transformOrigin),this.visibility=nt(e,cO,t.visibility),this.webkitTextStrokeColor=nt(e,IO,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=nt(e,TO,t.webkitTextStrokeWidth),this.wordBreak=nt(e,hO,t.wordBreak),this.zIndex=nt(e,fO,t.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return na(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return Gr(this.display,4)||Gr(this.display,33554432)||Gr(this.display,268435456)||Gr(this.display,536870912)||Gr(this.display,67108864)||Gr(this.display,134217728)},r}(),LO=function(){function r(e,t){this.content=nt(e,bO,t.content),this.quotes=nt(e,SO,t.quotes)}return r}(),qb=function(){function r(e,t){this.counterIncrement=nt(e,xO,t.counterIncrement),this.counterReset=nt(e,CO,t.counterReset)}return r}(),nt=function(r,e,t){var n=new Bb,A=t!==null&&typeof t<"u"?t.toString():e.initialValue;n.write(A);var i=new bb(n.read());switch(e.type){case 2:var a=i.parseComponentValue();return e.parse(r,Yt(a)?a.value:e.initialValue);case 0:return e.parse(r,i.parseComponentValue());case 1:return e.parse(r,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return Ic.parse(r,i.parseComponentValue());case"color":return ra.parse(r,i.parseComponentValue());case"image":return Cg.parse(r,i.parseComponentValue());case"length":var s=i.parseComponentValue();return ea(s)?s:nn;case"length-percentage":var o=i.parseComponentValue();return Rr(o)?o:nn;case"time":return Wb.parse(r,i.parseComponentValue())}break}},QO="data-html2canvas-debug",NO=function(r){var e=r.getAttribute(QO);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Sg=function(r,e){var t=NO(r);return t===1||e===t},ti=function(){function r(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Sg(t,3))debugger;this.styles=new _O(e,window.getComputedStyle(t,null)),Hg(t)&&(this.styles.animationDuration.some(function(n){return n>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=lc(this.context,t),Sg(t,4)&&(this.flags|=16)}return r}(),OO="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Xb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wl=typeof Uint8Array>"u"?[]:new Uint8Array(256),Hc=0;Hc<Xb.length;Hc++)wl[Xb.charCodeAt(Hc)]=Hc;for(var PO=function(r){var e=r.length*.75,t=r.length,n,A=0,i,a,s,o;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<t;n+=4)i=wl[r.charCodeAt(n)],a=wl[r.charCodeAt(n+1)],s=wl[r.charCodeAt(n+2)],o=wl[r.charCodeAt(n+3)],u[A++]=i<<2|a>>4,u[A++]=(a&15)<<4|s>>2,u[A++]=(s&3)<<6|o&63;return l},RO=function(r){for(var e=r.length,t=[],n=0;n<e;n+=2)t.push(r[n+1]<<8|r[n]);return t},DO=function(r){for(var e=r.length,t=[],n=0;n<e;n+=4)t.push(r[n+3]<<24|r[n+2]<<16|r[n+1]<<8|r[n]);return t},Va=5,Fg=11,Ug=2,kO=Fg-Va,Yb=65536>>Va,HO=1<<Va,Ig=HO-1,MO=1024>>Va,KO=Yb+MO,jO=KO,VO=32,GO=jO+VO,zO=65536>>Fg,WO=1<<kO,$O=WO-1,Jb=function(r,e,t){return r.slice?r.slice(e,t):new Uint16Array(Array.prototype.slice.call(r,e,t))},qO=function(r,e,t){return r.slice?r.slice(e,t):new Uint32Array(Array.prototype.slice.call(r,e,t))},XO=function(r,e){var t=PO(r),n=Array.isArray(t)?DO(t):new Uint32Array(t),A=Array.isArray(t)?RO(t):new Uint16Array(t),i=24,a=Jb(A,i/2,n[4]/2),s=n[5]===2?Jb(A,(i+n[4])/2):qO(n,Math.ceil((i+n[4])/4));return new YO(n[0],n[1],n[2],n[3],a,s)},YO=function(){function r(e,t,n,A,i,a){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=A,this.index=i,this.data=a}return r.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Va],t=(t<<Ug)+(e&Ig),this.data[t];if(e<=65535)return t=this.index[Yb+(e-55296>>Va)],t=(t<<Ug)+(e&Ig),this.data[t];if(e<this.highStart)return t=GO-zO+(e>>Fg),t=this.index[t],t+=e>>Va&$O,t=this.index[t],t=(t<<Ug)+(e&Ig),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},r}(),Zb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",JO=typeof Uint8Array>"u"?[]:new Uint8Array(256),Mc=0;Mc<Zb.length;Mc++)JO[Zb.charCodeAt(Mc)]=Mc;var ZO=1,Tg=2,_g=3,e2=4,t2=5,e8=7,r2=8,Lg=9,Qg=10,n2=11,A2=12,i2=13,a2=14,Ng=15,t8=function(r){for(var e=[],t=0,n=r.length;t<n;){var A=r.charCodeAt(t++);if(A>=55296&&A<=56319&&t<n){var i=r.charCodeAt(t++);(i&64512)===56320?e.push(((A&1023)<<10)+(i&1023)+65536):(e.push(A),t--)}else e.push(A)}return e},r8=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,r);var t=r.length;if(!t)return"";for(var n=[],A=-1,i="";++A<t;){var a=r[A];a<=65535?n.push(a):(a-=65536,n.push((a>>10)+55296,a%1024+56320)),(A+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},n8=XO(OO),lA="×",Og="÷",A8=function(r){return n8.get(r)},i8=function(r,e,t){var n=t-2,A=e[n],i=e[t-1],a=e[t];if(i===Tg&&a===_g)return lA;if(i===Tg||i===_g||i===e2||a===Tg||a===_g||a===e2)return Og;if(i===r2&&[r2,Lg,n2,A2].indexOf(a)!==-1||(i===n2||i===Lg)&&(a===Lg||a===Qg)||(i===A2||i===Qg)&&a===Qg||a===i2||a===t2||a===e8||i===ZO)return lA;if(i===i2&&a===a2){for(;A===t2;)A=e[--n];if(A===a2)return lA}if(i===Ng&&a===Ng){for(var s=0;A===Ng;)s++,A=e[--n];if(s%2===0)return lA}return Og},a8=function(r){var e=t8(r),t=e.length,n=0,A=0,i=e.map(A8);return{next:function(){if(n>=t)return{done:!0,value:null};for(var a=lA;n<t&&(a=i8(e,i,++n))===lA;);if(a!==lA||n===t){var s=r8.apply(null,e.slice(A,n));return A=n,{value:s,done:!1}}return{done:!0,value:null}}}},s8=function(r){for(var e=a8(r),t=[],n;!(n=e.next()).done;)n.value&&t.push(n.value.slice());return t},o8=function(r){var e=123;if(r.createRange){var t=r.createRange();if(t.getBoundingClientRect){var n=r.createElement("boundtest");n.style.height=e+"px",n.style.display="block",r.body.appendChild(n),t.selectNode(n);var A=t.getBoundingClientRect(),i=Math.round(A.height);if(r.body.removeChild(n),i===e)return!0}}return!1},l8=function(r){var e=r.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",r.body.appendChild(e);var t=r.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var n=e.firstChild,A=uc(n.data).map(function(o){return Ir(o)}),i=0,a={},s=A.every(function(o,l){t.setStart(n,i),t.setEnd(n,i+o.length);var u=t.getBoundingClientRect();i+=o.length;var h=u.x>a.x||u.y>a.y;return a=u,l===0?!0:h});return r.body.removeChild(e),s},u8=function(){return typeof new Image().crossOrigin<"u"},c8=function(){return typeof new XMLHttpRequest().responseType=="string"},h8=function(r){var e=new Image,t=r.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{return!1}return!0},s2=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},f8=function(r){var e=r.createElement("canvas"),t=100;e.width=t,e.height=t;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);var A=new Image,i=e.toDataURL();A.src=i;var a=Pg(t,t,0,0,A);return n.fillStyle="red",n.fillRect(0,0,t,t),o2(a).then(function(s){n.drawImage(s,0,0);var o=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);var l=r.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=t+"px",s2(o)?o2(Pg(t,t,0,0,l)):Promise.reject(!1)}).then(function(s){return n.drawImage(s,0,0),s2(n.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Pg=function(r,e,t,n,A){var i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return a.setAttributeNS(null,"width",r.toString()),a.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(A),a},o2=function(r){return new Promise(function(e,t){var n=new Image;n.onload=function(){return e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},An={get SUPPORT_RANGE_BOUNDS(){var r=o8(document);return Object.defineProperty(An,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=An.SUPPORT_RANGE_BOUNDS&&l8(document);return Object.defineProperty(An,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=h8(document);return Object.defineProperty(An,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?f8(document):Promise.resolve(!1);return Object.defineProperty(An,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=u8();return Object.defineProperty(An,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=c8();return Object.defineProperty(An,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(An,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(An,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},yl=function(){function r(e,t){this.text=e,this.bounds=t}return r}(),d8=function(r,e,t,n){var A=m8(e,t),i=[],a=0;return A.forEach(function(s){if(t.textDecorationLine.length||s.trim().length>0)if(An.SUPPORT_RANGE_BOUNDS){var o=l2(n,a,s.length).getClientRects();if(o.length>1){var l=Rg(s),u=0;l.forEach(function(d){i.push(new yl(d,mi.fromDOMRectList(r,l2(n,u+a,d.length).getClientRects()))),u+=d.length})}else i.push(new yl(s,mi.fromDOMRectList(r,o)))}else{var h=n.splitText(s.length);i.push(new yl(s,p8(r,n))),n=h}else An.SUPPORT_RANGE_BOUNDS||(n=n.splitText(s.length));a+=s.length}),i},p8=function(r,e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var A=e.parentNode;if(A){A.replaceChild(n,e);var i=lc(r,n);return n.firstChild&&A.replaceChild(n.firstChild,n),i}}return mi.EMPTY},l2=function(r,e,t){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var A=n.createRange();return A.setStart(r,e),A.setEnd(r,e+t),A},Rg=function(r){if(An.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(r)).map(function(t){return t.segment})}return s8(r)},g8=function(r,e){if(An.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(r)).map(function(n){return n.segment})}return w8(r,e)},m8=function(r,e){return e.letterSpacing!==0?Rg(r):g8(r,e)},v8=[32,160,4961,65792,65793,4153,4241],w8=function(r,e){for(var t=z6(r,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],A,i=function(){if(A.value){var a=A.value.slice(),s=uc(a),o="";s.forEach(function(l){v8.indexOf(l)===-1?o+=Ir(l):(o.length&&n.push(o),n.push(Ir(l)),o="")}),o.length&&n.push(o)}};!(A=t.next()).done;)i();return n},y8=function(){function r(e,t,n){this.text=B8(t.data,n.textTransform),this.textBounds=d8(e,this.text,n,t)}return r}(),B8=function(r,e){switch(e){case 1:return r.toLowerCase();case 3:return r.replace(b8,x8);case 2:return r.toUpperCase();default:return r}},b8=/(^|\s|:|-|\(|\))([a-z])/g,x8=function(r,e,t){return r.length>0?e+t.toUpperCase():r},u2=function(r){IA(e,r);function e(t,n){var A=r.call(this,t,n)||this;return A.src=n.currentSrc||n.src,A.intrinsicWidth=n.naturalWidth,A.intrinsicHeight=n.naturalHeight,A.context.cache.addImage(A.src),A}return e}(ti),c2=function(r){IA(e,r);function e(t,n){var A=r.call(this,t,n)||this;return A.canvas=n,A.intrinsicWidth=n.width,A.intrinsicHeight=n.height,A}return e}(ti),h2=function(r){IA(e,r);function e(t,n){var A=r.call(this,t,n)||this,i=new XMLSerializer,a=lc(t,n);return n.setAttribute("width",a.width+"px"),n.setAttribute("height",a.height+"px"),A.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),A.intrinsicWidth=n.width.baseVal.value,A.intrinsicHeight=n.height.baseVal.value,A.context.cache.addImage(A.svg),A}return e}(ti),f2=function(r){IA(e,r);function e(t,n){var A=r.call(this,t,n)||this;return A.value=n.value,A}return e}(ti),Dg=function(r){IA(e,r);function e(t,n){var A=r.call(this,t,n)||this;return A.start=n.start,A.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,A}return e}(ti),C8=[{type:15,flags:0,unit:"px",number:3}],E8=[{type:16,flags:0,number:50}],S8=function(r){return r.width>r.height?new mi(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new mi(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r},F8=function(r){var e=r.type===U8?new Array(r.value.length+1).join("•"):r.value;return e.length===0?r.placeholder||"":e},Kc="checkbox",jc="radio",U8="password",d2=707406591,kg=function(r){IA(e,r);function e(t,n){var A=r.call(this,t,n)||this;switch(A.type=n.type.toLowerCase(),A.checked=n.checked,A.value=F8(n),(A.type===Kc||A.type===jc)&&(A.styles.backgroundColor=3739148031,A.styles.borderTopColor=A.styles.borderRightColor=A.styles.borderBottomColor=A.styles.borderLeftColor=2779096575,A.styles.borderTopWidth=A.styles.borderRightWidth=A.styles.borderBottomWidth=A.styles.borderLeftWidth=1,A.styles.borderTopStyle=A.styles.borderRightStyle=A.styles.borderBottomStyle=A.styles.borderLeftStyle=1,A.styles.backgroundClip=[0],A.styles.backgroundOrigin=[0],A.bounds=S8(A.bounds)),A.type){case Kc:A.styles.borderTopRightRadius=A.styles.borderTopLeftRadius=A.styles.borderBottomRightRadius=A.styles.borderBottomLeftRadius=C8;break;case jc:A.styles.borderTopRightRadius=A.styles.borderTopLeftRadius=A.styles.borderBottomRightRadius=A.styles.borderBottomLeftRadius=E8;break}return A}return e}(ti),p2=function(r){IA(e,r);function e(t,n){var A=r.call(this,t,n)||this,i=n.options[n.selectedIndex||0];return A.value=i&&i.text||"",A}return e}(ti),g2=function(r){IA(e,r);function e(t,n){var A=r.call(this,t,n)||this;return A.value=n.value,A}return e}(ti),m2=function(r){IA(e,r);function e(t,n){var A=r.call(this,t,n)||this;A.src=n.src,A.width=parseInt(n.width,10)||0,A.height=parseInt(n.height,10)||0,A.backgroundColor=A.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){A.tree=w2(t,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?ml(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):wi.TRANSPARENT,a=n.contentWindow.document.body?ml(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):wi.TRANSPARENT;A.backgroundColor=na(i)?na(a)?A.styles.backgroundColor:a:i}}catch{}return A}return e}(ti),I8=["OL","UL","MENU"],Vc=function(r,e,t,n){for(var A=e.firstChild,i=void 0;A;A=i)if(i=A.nextSibling,y2(A)&&A.data.trim().length>0)t.textNodes.push(new y8(r,A,t.styles));else if(zs(A))if(S2(A)&&A.assignedNodes)A.assignedNodes().forEach(function(s){return Vc(r,s,t,n)});else{var a=v2(r,A);a.styles.isVisible()&&(T8(A,a,n)?a.flags|=4:_8(a.styles)&&(a.flags|=2),I8.indexOf(A.tagName)!==-1&&(a.flags|=8),t.elements.push(a),A.slot,A.shadowRoot?Vc(r,A.shadowRoot,a,n):!zc(A)&&!B2(A)&&!Wc(A)&&Vc(r,A,a,n))}},v2=function(r,e){return Kg(e)?new u2(r,e):b2(e)?new c2(r,e):B2(e)?new h2(r,e):L8(e)?new f2(r,e):Q8(e)?new Dg(r,e):N8(e)?new kg(r,e):Wc(e)?new p2(r,e):zc(e)?new g2(r,e):C2(e)?new m2(r,e):new ti(r,e)},w2=function(r,e){var t=v2(r,e);return t.flags|=4,Vc(r,e,t,t),t},T8=function(r,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Mg(r)&&t.styles.isTransparent()},_8=function(r){return r.isPositioned()||r.isFloating()},y2=function(r){return r.nodeType===Node.TEXT_NODE},zs=function(r){return r.nodeType===Node.ELEMENT_NODE},Hg=function(r){return zs(r)&&typeof r.style<"u"&&!Gc(r)},Gc=function(r){return typeof r.className=="object"},L8=function(r){return r.tagName==="LI"},Q8=function(r){return r.tagName==="OL"},N8=function(r){return r.tagName==="INPUT"},O8=function(r){return r.tagName==="HTML"},B2=function(r){return r.tagName==="svg"},Mg=function(r){return r.tagName==="BODY"},b2=function(r){return r.tagName==="CANVAS"},x2=function(r){return r.tagName==="VIDEO"},Kg=function(r){return r.tagName==="IMG"},C2=function(r){return r.tagName==="IFRAME"},E2=function(r){return r.tagName==="STYLE"},P8=function(r){return r.tagName==="SCRIPT"},zc=function(r){return r.tagName==="TEXTAREA"},Wc=function(r){return r.tagName==="SELECT"},S2=function(r){return r.tagName==="SLOT"},F2=function(r){return r.tagName.indexOf("-")>0},R8=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},r.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},r.prototype.pop=function(e){var t=this;e.forEach(function(n){return t.counters[n].pop()})},r.prototype.parse=function(e){var t=this,n=e.counterIncrement,A=e.counterReset,i=!0;n!==null&&n.forEach(function(s){var o=t.counters[s.counter];o&&s.increment!==0&&(i=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=s.increment)});var a=[];return i&&A.forEach(function(s){var o=t.counters[s.counter];a.push(s.counter),o||(o=t.counters[s.counter]=[]),o.push(s.reset)}),a},r}(),U2={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"]},I2={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},D8={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},k8={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ws=function(r,e,t,n,A,i){return r<e||r>t?bl(r,A,i.length>0):n.integers.reduce(function(a,s,o){for(;r>=s;)r-=s,a+=n.values[o];return a},"")+i},T2=function(r,e,t,n){var A="";do t||r--,A=n(r)+A,r/=e;while(r*e>=e);return A},Tr=function(r,e,t,n,A){var i=t-e+1;return(r<0?"-":"")+(T2(Math.abs(r),i,n,function(a){return Ir(Math.floor(a%i)+e)})+A)},Ga=function(r,e,t){t===void 0&&(t=". ");var n=e.length;return T2(Math.abs(r),n,!1,function(A){return e[Math.floor(A%n)]})+t},$s=1,ia=2,aa=4,Bl=8,yi=function(r,e,t,n,A,i){if(r<-9999||r>9999)return bl(r,4,A.length>0);var a=Math.abs(r),s=A;if(a===0)return e[0]+s;for(var o=0;a>0&&o<=4;o++){var l=a%10;l===0&&Gr(i,$s)&&s!==""?s=e[l]+s:l>1||l===1&&o===0||l===1&&o===1&&Gr(i,ia)||l===1&&o===1&&Gr(i,aa)&&r>100||l===1&&o>1&&Gr(i,Bl)?s=e[l]+(o>0?t[o-1]:"")+s:l===1&&o>0&&(s=t[o-1]+s),a=Math.floor(a/10)}return(r<0?n:"")+s},_2="十百千萬",L2="拾佰仟萬",Q2="マイナス",jg="마이너스",bl=function(r,e,t){var n=t?". ":"",A=t?"、":"",i=t?", ":"",a=t?" ":"";switch(e){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=Tr(r,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return Ga(r,"〇一二三四五六七八九",A);case 6:return Ws(r,1,3999,U2,3,n).toLowerCase();case 7:return Ws(r,1,3999,U2,3,n);case 8:return Tr(r,945,969,!1,n);case 9:return Tr(r,97,122,!1,n);case 10:return Tr(r,65,90,!1,n);case 11:return Tr(r,1632,1641,!0,n);case 12:case 49:return Ws(r,1,9999,I2,3,n);case 35:return Ws(r,1,9999,I2,3,n).toLowerCase();case 13:return Tr(r,2534,2543,!0,n);case 14:case 30:return Tr(r,6112,6121,!0,n);case 15:return Ga(r,"子丑寅卯辰巳午未申酉戌亥",A);case 16:return Ga(r,"甲乙丙丁戊己庚辛壬癸",A);case 17:case 48:return yi(r,"零一二三四五六七八九",_2,"負",A,ia|aa|Bl);case 47:return yi(r,"零壹貳參肆伍陸柒捌玖",L2,"負",A,$s|ia|aa|Bl);case 42:return yi(r,"零一二三四五六七八九",_2,"负",A,ia|aa|Bl);case 41:return yi(r,"零壹贰叁肆伍陆柒捌玖",L2,"负",A,$s|ia|aa|Bl);case 26:return yi(r,"〇一二三四五六七八九","十百千万",Q2,A,0);case 25:return yi(r,"零壱弐参四伍六七八九","拾百千万",Q2,A,$s|ia|aa);case 31:return yi(r,"영일이삼사오육칠팔구","십백천만",jg,i,$s|ia|aa);case 33:return yi(r,"零一二三四五六七八九","十百千萬",jg,i,0);case 32:return yi(r,"零壹貳參四五六七八九","拾百千",jg,i,$s|ia|aa);case 18:return Tr(r,2406,2415,!0,n);case 20:return Ws(r,1,19999,k8,3,n);case 21:return Tr(r,2790,2799,!0,n);case 22:return Tr(r,2662,2671,!0,n);case 22:return Ws(r,1,10999,D8,3,n);case 23:return Ga(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ga(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Tr(r,3302,3311,!0,n);case 28:return Ga(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",A);case 29:return Ga(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",A);case 34:return Tr(r,3792,3801,!0,n);case 37:return Tr(r,6160,6169,!0,n);case 38:return Tr(r,4160,4169,!0,n);case 39:return Tr(r,2918,2927,!0,n);case 40:return Tr(r,1776,1785,!0,n);case 43:return Tr(r,3046,3055,!0,n);case 44:return Tr(r,3174,3183,!0,n);case 45:return Tr(r,3664,3673,!0,n);case 46:return Tr(r,3872,3881,!0,n);case 3:default:return Tr(r,48,57,!0,n)}},N2="data-html2canvas-ignore",O2=function(){function r(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new R8,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(e,t){var n=this,A=H8(e,t);if(!A.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,s=A.contentWindow,o=s.document,l=j8(A).then(function(){return Sn(n,void 0,void 0,function(){var u,h;return Bn(this,function(d){switch(d.label){case 0:return this.scrolledElements.forEach(W8),s&&(s.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==t.top||s.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-t.left,s.scrollY-t.top,0,0))),u=this.options.onclone,h=this.clonedReferenceElement,typeof h>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:d.sent(),d.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,K8(o)]:[3,4];case 3:d.sent(),d.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(o,h)}).then(function(){return A})]:[2,A]}})})});return o.open(),o.write(G8(document.doctype)+"<html></html>"),z8(this.referenceElement.ownerDocument,i,a),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),l},r.prototype.createElementClone=function(e){if(Sg(e,2))debugger;if(b2(e))return this.createCanvasClone(e);if(x2(e))return this.createVideoClone(e);if(E2(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Kg(t)&&(Kg(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),F2(t)?this.createCustomElementClone(t):t},r.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return Vg(e.style,t),t},r.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(i,a){return a&&typeof a.cssText=="string"?i+a.cssText:i},""),A=e.cloneNode(!1);return A.textContent=n,A}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return e.cloneNode(!1)},r.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var A=e.cloneNode(!1);try{A.width=e.width,A.height=e.height;var i=e.getContext("2d"),a=A.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var s=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(s){var o=s.getContextAttributes();(o==null?void 0:o.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}a.drawImage(e,0,0)}return A}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return A},r.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var A=e.ownerDocument.createElement("canvas");return A.width=e.offsetWidth,A.height=e.offsetHeight,A},r.prototype.appendChildNode=function(e,t,n){(!zs(t)||!P8(t)&&!t.hasAttribute(N2)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!zs(t)||!E2(t))&&e.appendChild(this.cloneNode(t,n))},r.prototype.cloneChildNodes=function(e,t,n){for(var A=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(zs(i)&&S2(i)&&typeof i.assignedNodes=="function"){var a=i.assignedNodes();a.length&&a.forEach(function(s){return A.appendChildNode(t,s,n)})}else this.appendChildNode(t,i,n)},r.prototype.cloneNode=function(e,t){if(y2(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&zs(e)&&(Hg(e)||Gc(e))){var A=this.createElementClone(e);A.style.transitionProperty="none";var i=n.getComputedStyle(e),a=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&Hg(A)&&(this.clonedReferenceElement=A),Mg(A)&&X8(A);var o=this.counters.parse(new qb(this.context,i)),l=this.resolvePseudoContent(e,A,a,xl.BEFORE);F2(e)&&(t=!0),x2(e)||this.cloneChildNodes(e,A,t),l&&A.insertBefore(l,A.firstChild);var u=this.resolvePseudoContent(e,A,s,xl.AFTER);return u&&A.appendChild(u),this.counters.pop(o),(i&&(this.options.copyStyles||Gc(e))&&!C2(e)||t)&&Vg(i,A),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([A,e.scrollLeft,e.scrollTop]),(zc(e)||Wc(e))&&(zc(A)||Wc(A))&&(A.value=e.value),A}return e.cloneNode(!1)},r.prototype.resolvePseudoContent=function(e,t,n,A){var i=this;if(n){var a=n.content,s=t.ownerDocument;if(!(!s||!a||a==="none"||a==="-moz-alt-content"||n.display==="none")){this.counters.parse(new qb(this.context,n));var o=new LO(this.context,n),l=s.createElement("html2canvaspseudoelement");Vg(n,l),o.content.forEach(function(h){if(h.type===0)l.appendChild(s.createTextNode(h.value));else if(h.type===22){var d=s.createElement("img");d.src=h.value,d.style.opacity="1",l.appendChild(d)}else if(h.type===18){if(h.name==="attr"){var c=h.values.filter(Yt);c.length&&l.appendChild(s.createTextNode(e.getAttribute(c[0].value)||""))}else if(h.name==="counter"){var p=h.values.filter(Vs),m=p[0],y=p[1];if(m&&Yt(m)){var g=i.counters.getCounterValue(m.value),w=y&&Yt(y)?Eg.parse(i.context,y.value):3;l.appendChild(s.createTextNode(bl(g,w,!1)))}}else if(h.name==="counters"){var B=h.values.filter(Vs),m=B[0],I=B[1],y=B[2];if(m&&Yt(m)){var O=i.counters.getCounterValues(m.value),j=y&&Yt(y)?Eg.parse(i.context,y.value):3,R=I&&I.type===0?I.value:"",D=O.map(function(M){return bl(M,j,!1)}).join(R);l.appendChild(s.createTextNode(D))}}}else if(h.type===20)switch(h.value){case"open-quote":l.appendChild(s.createTextNode($b(o.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(s.createTextNode($b(o.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(s.createTextNode(h.value))}}),l.className=Gg+" "+zg;var u=A===xl.BEFORE?" "+Gg:" "+zg;return Gc(t)?t.className.baseValue+=u:t.className+=u,l}}},r.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},r}(),xl;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(xl||(xl={}));var H8=function(r,e){var t=r.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(N2,"true"),r.body.appendChild(t),t},M8=function(r){return new Promise(function(e){if(r.complete){e();return}if(!r.src){e();return}r.onload=e,r.onerror=e})},K8=function(r){return Promise.all([].slice.call(r.images,0).map(M8))},j8=function(r){return new Promise(function(e,t){var n=r.contentWindow;if(!n)return t("No window assigned for iframe");var A=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var i=setInterval(function(){A.body.childNodes.length>0&&A.readyState==="complete"&&(clearInterval(i),e(r))},50)}})},V8=["all","d","content"],Vg=function(r,e){for(var t=r.length-1;t>=0;t--){var n=r.item(t);V8.indexOf(n)===-1&&e.style.setProperty(n,r.getPropertyValue(n))}return e},G8=function(r){var e="";return r&&(e+="<!DOCTYPE ",r.name&&(e+=r.name),r.internalSubset&&(e+=r.internalSubset),r.publicId&&(e+='"'+r.publicId+'"'),r.systemId&&(e+='"'+r.systemId+'"'),e+=">"),e},z8=function(r,e,t){r&&r.defaultView&&(e!==r.defaultView.pageXOffset||t!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(e,t)},W8=function(r){var e=r[0],t=r[1],n=r[2];e.scrollLeft=t,e.scrollTop=n},$8=":before",q8=":after",Gg="___html2canvas___pseudoelement_before",zg="___html2canvas___pseudoelement_after",P2=`{
335
+ content: "" !important;
336
+ display: none !important;
337
+ }`,X8=function(r){Y8(r,"."+Gg+$8+P2+`
338
+ .`+zg+q8+P2)},Y8=function(r,e){var t=r.ownerDocument;if(t){var n=t.createElement("style");n.textContent=e,r.appendChild(n)}},R2=function(){function r(){}return r.getOrigin=function(e){var t=r._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},r.isSameOrigin=function(e){return r.getOrigin(e)===r._origin},r.setContext=function(e){r._link=e.document.createElement("a"),r._origin=r.getOrigin(e.location.href)},r._origin="about:blank",r}(),J8=function(){function r(e,t){this.context=e,this._options=t,this._cache={}}return r.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||($g(e)||rP(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},r.prototype.match=function(e){return this._cache[e]},r.prototype.loadImage=function(e){return Sn(this,void 0,void 0,function(){var t,n,A,i,a=this;return Bn(this,function(s){switch(s.label){case 0:return t=R2.isSameOrigin(e),n=!Wg(e)&&this._options.useCORS===!0&&An.SUPPORT_CORS_IMAGES&&!t,A=!Wg(e)&&!t&&!$g(e)&&typeof this._options.proxy=="string"&&An.SUPPORT_CORS_XHR&&!n,!t&&this._options.allowTaint===!1&&!Wg(e)&&!$g(e)&&!A&&!n?[2]:(i=e,A?[4,this.proxy(i)]:[3,2]);case 1:i=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(o,l){var u=new Image;u.onload=function(){return o(u)},u.onerror=l,(nP(i)||n)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return o(u)},500),a._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},r.prototype.has=function(e){return typeof this._cache[e]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var A=e.substring(0,256);return new Promise(function(i,a){var s=An.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(o.status===200)if(s==="text")i(o.response);else{var h=new FileReader;h.addEventListener("load",function(){return i(h.result)},!1),h.addEventListener("error",function(d){return a(d)},!1),h.readAsDataURL(o.response)}else a("Failed to proxy resource "+A+" with status code "+o.status)},o.onerror=a;var l=n.indexOf("?")>-1?"&":"?";if(o.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+s),s!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=s),t._options.imageTimeout){var u=t._options.imageTimeout;o.timeout=u,o.ontimeout=function(){return a("Timed out ("+u+"ms) proxying "+A)}}o.send()})},r}(),Z8=/^data:image\/svg\+xml/i,eP=/^data:image\/.*;base64,/i,tP=/^data:image\/.*/i,rP=function(r){return An.SUPPORT_SVG_DRAWING||!AP(r)},Wg=function(r){return tP.test(r)},nP=function(r){return eP.test(r)},$g=function(r){return r.substr(0,4)==="blob"},AP=function(r){return r.substr(-3).toLowerCase()==="svg"||Z8.test(r)},Ze=function(){function r(e,t){this.type=0,this.x=e,this.y=t}return r.prototype.add=function(e,t){return new r(this.x+e,this.y+t)},r}(),qs=function(r,e,t){return new Ze(r.x+(e.x-r.x)*t,r.y+(e.y-r.y)*t)},$c=function(){function r(e,t,n,A){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=A}return r.prototype.subdivide=function(e,t){var n=qs(this.start,this.startControl,e),A=qs(this.startControl,this.endControl,e),i=qs(this.endControl,this.end,e),a=qs(n,A,e),s=qs(A,i,e),o=qs(a,s,e);return t?new r(this.start,n,a,o):new r(o,s,i,this.end)},r.prototype.add=function(e,t){return new r(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),uA=function(r){return r.type===1},iP=function(){function r(e){var t=e.styles,n=e.bounds,A=gl(t.borderTopLeftRadius,n.width,n.height),i=A[0],a=A[1],s=gl(t.borderTopRightRadius,n.width,n.height),o=s[0],l=s[1],u=gl(t.borderBottomRightRadius,n.width,n.height),h=u[0],d=u[1],c=gl(t.borderBottomLeftRadius,n.width,n.height),p=c[0],m=c[1],y=[];y.push((i+o)/n.width),y.push((p+h)/n.width),y.push((a+m)/n.height),y.push((l+d)/n.height);var g=Math.max.apply(Math,y);g>1&&(i/=g,a/=g,o/=g,l/=g,h/=g,d/=g,p/=g,m/=g);var w=n.width-o,B=n.height-d,I=n.width-h,O=n.height-m,j=t.borderTopWidth,R=t.borderRightWidth,D=t.borderBottomWidth,Q=t.borderLeftWidth,J=rr(t.paddingTop,e.bounds.width),M=rr(t.paddingRight,e.bounds.width),S=rr(t.paddingBottom,e.bounds.width),K=rr(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?or(n.left+Q/3,n.top+j/3,i-Q/3,a-j/3,Kt.TOP_LEFT):new Ze(n.left+Q/3,n.top+j/3),this.topRightBorderDoubleOuterBox=i>0||a>0?or(n.left+w,n.top+j/3,o-R/3,l-j/3,Kt.TOP_RIGHT):new Ze(n.left+n.width-R/3,n.top+j/3),this.bottomRightBorderDoubleOuterBox=h>0||d>0?or(n.left+I,n.top+B,h-R/3,d-D/3,Kt.BOTTOM_RIGHT):new Ze(n.left+n.width-R/3,n.top+n.height-D/3),this.bottomLeftBorderDoubleOuterBox=p>0||m>0?or(n.left+Q/3,n.top+O,p-Q/3,m-D/3,Kt.BOTTOM_LEFT):new Ze(n.left+Q/3,n.top+n.height-D/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?or(n.left+Q*2/3,n.top+j*2/3,i-Q*2/3,a-j*2/3,Kt.TOP_LEFT):new Ze(n.left+Q*2/3,n.top+j*2/3),this.topRightBorderDoubleInnerBox=i>0||a>0?or(n.left+w,n.top+j*2/3,o-R*2/3,l-j*2/3,Kt.TOP_RIGHT):new Ze(n.left+n.width-R*2/3,n.top+j*2/3),this.bottomRightBorderDoubleInnerBox=h>0||d>0?or(n.left+I,n.top+B,h-R*2/3,d-D*2/3,Kt.BOTTOM_RIGHT):new Ze(n.left+n.width-R*2/3,n.top+n.height-D*2/3),this.bottomLeftBorderDoubleInnerBox=p>0||m>0?or(n.left+Q*2/3,n.top+O,p-Q*2/3,m-D*2/3,Kt.BOTTOM_LEFT):new Ze(n.left+Q*2/3,n.top+n.height-D*2/3),this.topLeftBorderStroke=i>0||a>0?or(n.left+Q/2,n.top+j/2,i-Q/2,a-j/2,Kt.TOP_LEFT):new Ze(n.left+Q/2,n.top+j/2),this.topRightBorderStroke=i>0||a>0?or(n.left+w,n.top+j/2,o-R/2,l-j/2,Kt.TOP_RIGHT):new Ze(n.left+n.width-R/2,n.top+j/2),this.bottomRightBorderStroke=h>0||d>0?or(n.left+I,n.top+B,h-R/2,d-D/2,Kt.BOTTOM_RIGHT):new Ze(n.left+n.width-R/2,n.top+n.height-D/2),this.bottomLeftBorderStroke=p>0||m>0?or(n.left+Q/2,n.top+O,p-Q/2,m-D/2,Kt.BOTTOM_LEFT):new Ze(n.left+Q/2,n.top+n.height-D/2),this.topLeftBorderBox=i>0||a>0?or(n.left,n.top,i,a,Kt.TOP_LEFT):new Ze(n.left,n.top),this.topRightBorderBox=o>0||l>0?or(n.left+w,n.top,o,l,Kt.TOP_RIGHT):new Ze(n.left+n.width,n.top),this.bottomRightBorderBox=h>0||d>0?or(n.left+I,n.top+B,h,d,Kt.BOTTOM_RIGHT):new Ze(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=p>0||m>0?or(n.left,n.top+O,p,m,Kt.BOTTOM_LEFT):new Ze(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||a>0?or(n.left+Q,n.top+j,Math.max(0,i-Q),Math.max(0,a-j),Kt.TOP_LEFT):new Ze(n.left+Q,n.top+j),this.topRightPaddingBox=o>0||l>0?or(n.left+Math.min(w,n.width-R),n.top+j,w>n.width+R?0:Math.max(0,o-R),Math.max(0,l-j),Kt.TOP_RIGHT):new Ze(n.left+n.width-R,n.top+j),this.bottomRightPaddingBox=h>0||d>0?or(n.left+Math.min(I,n.width-Q),n.top+Math.min(B,n.height-D),Math.max(0,h-R),Math.max(0,d-D),Kt.BOTTOM_RIGHT):new Ze(n.left+n.width-R,n.top+n.height-D),this.bottomLeftPaddingBox=p>0||m>0?or(n.left+Q,n.top+Math.min(O,n.height-D),Math.max(0,p-Q),Math.max(0,m-D),Kt.BOTTOM_LEFT):new Ze(n.left+Q,n.top+n.height-D),this.topLeftContentBox=i>0||a>0?or(n.left+Q+K,n.top+j+J,Math.max(0,i-(Q+K)),Math.max(0,a-(j+J)),Kt.TOP_LEFT):new Ze(n.left+Q+K,n.top+j+J),this.topRightContentBox=o>0||l>0?or(n.left+Math.min(w,n.width+Q+K),n.top+j+J,w>n.width+Q+K?0:o-Q+K,l-(j+J),Kt.TOP_RIGHT):new Ze(n.left+n.width-(R+M),n.top+j+J),this.bottomRightContentBox=h>0||d>0?or(n.left+Math.min(I,n.width-(Q+K)),n.top+Math.min(B,n.height+j+J),Math.max(0,h-(R+M)),d-(D+S),Kt.BOTTOM_RIGHT):new Ze(n.left+n.width-(R+M),n.top+n.height-(D+S)),this.bottomLeftContentBox=p>0||m>0?or(n.left+Q+K,n.top+O,Math.max(0,p-(Q+K)),m-(D+S),Kt.BOTTOM_LEFT):new Ze(n.left+Q+K,n.top+n.height-(D+S))}return r}(),Kt;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Kt||(Kt={}));var or=function(r,e,t,n,A){var i=4*((Math.sqrt(2)-1)/3),a=t*i,s=n*i,o=r+t,l=e+n;switch(A){case Kt.TOP_LEFT:return new $c(new Ze(r,l),new Ze(r,l-s),new Ze(o-a,e),new Ze(o,e));case Kt.TOP_RIGHT:return new $c(new Ze(r,e),new Ze(r+a,e),new Ze(o,l-s),new Ze(o,l));case Kt.BOTTOM_RIGHT:return new $c(new Ze(o,e),new Ze(o,e+s),new Ze(r+a,l),new Ze(r,l));case Kt.BOTTOM_LEFT:default:return new $c(new Ze(o,l),new Ze(o-a,l),new Ze(r,e+s),new Ze(r,e))}},qc=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},aP=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},Xc=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},sP=function(){function r(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return r}(),Yc=function(){function r(e,t){this.path=e,this.target=t,this.type=1}return r}(),oP=function(){function r(e){this.opacity=e,this.type=2,this.target=6}return r}(),lP=function(r){return r.type===0},D2=function(r){return r.type===1},uP=function(r){return r.type===2},k2=function(r,e){return r.length===e.length?r.some(function(t,n){return t===e[n]}):!1},cP=function(r,e,t,n,A){return r.map(function(i,a){switch(a){case 0:return i.add(e,t);case 1:return i.add(e+n,t);case 2:return i.add(e+n,t+A);case 3:return i.add(e,t+A)}return i})},H2=function(){function r(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),M2=function(){function r(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new iP(this.container),this.container.styles.opacity<1&&this.effects.push(new oP(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,A=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new sP(n,A,i))}if(this.container.styles.overflowX!==0){var a=qc(this.curves),s=Xc(this.curves);k2(a,s)?this.effects.push(new Yc(a,6)):(this.effects.push(new Yc(a,2)),this.effects.push(new Yc(s,4)))}}return r.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,A=this.effects.slice(0);n;){var i=n.effects.filter(function(o){return!D2(o)});if(t||n.container.styles.position!==0||!n.parent){if(A.unshift.apply(A,i),t=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var a=qc(n.curves),s=Xc(n.curves);k2(a,s)||A.unshift(new Yc(s,6))}}else A.unshift.apply(A,i);n=n.parent}return A.filter(function(o){return Gr(o.target,e)})},r}(),qg=function(r,e,t,n){r.container.elements.forEach(function(A){var i=Gr(A.flags,4),a=Gr(A.flags,2),s=new M2(A,r);Gr(A.styles.display,2048)&&n.push(s);var o=Gr(A.flags,8)?[]:n;if(i||a){var l=i||A.styles.isPositioned()?t:e,u=new H2(s);if(A.styles.isPositioned()||A.styles.opacity<1||A.styles.isTransformed()){var h=A.styles.zIndex.order;if(h<0){var d=0;l.negativeZIndex.some(function(p,m){return h>p.element.container.styles.zIndex.order?(d=m,!1):d>0}),l.negativeZIndex.splice(d,0,u)}else if(h>0){var c=0;l.positiveZIndex.some(function(p,m){return h>=p.element.container.styles.zIndex.order?(c=m+1,!1):c>0}),l.positiveZIndex.splice(c,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else A.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);qg(s,u,i?u:t,o)}else A.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),qg(s,e,t,o);Gr(A.flags,8)&&K2(A,o)})},K2=function(r,e){for(var t=r instanceof Dg?r.start:1,n=r instanceof Dg?r.reversed:!1,A=0;A<e.length;A++){var i=e[A];i.container instanceof f2&&typeof i.container.value=="number"&&i.container.value!==0&&(t=i.container.value),i.listValue=bl(t,i.container.styles.listStyleType,!0),t+=n?-1:1}},hP=function(r){var e=new M2(r,null),t=new H2(e),n=[];return qg(e,t,t,n),K2(e.container,n),t},j2=function(r,e){switch(e){case 0:return cA(r.topLeftBorderBox,r.topLeftPaddingBox,r.topRightBorderBox,r.topRightPaddingBox);case 1:return cA(r.topRightBorderBox,r.topRightPaddingBox,r.bottomRightBorderBox,r.bottomRightPaddingBox);case 2:return cA(r.bottomRightBorderBox,r.bottomRightPaddingBox,r.bottomLeftBorderBox,r.bottomLeftPaddingBox);case 3:default:return cA(r.bottomLeftBorderBox,r.bottomLeftPaddingBox,r.topLeftBorderBox,r.topLeftPaddingBox)}},fP=function(r,e){switch(e){case 0:return cA(r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox,r.topRightBorderBox,r.topRightBorderDoubleOuterBox);case 1:return cA(r.topRightBorderBox,r.topRightBorderDoubleOuterBox,r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox);case 2:return cA(r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox,r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox);case 3:default:return cA(r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox,r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox)}},dP=function(r,e){switch(e){case 0:return cA(r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox,r.topRightBorderDoubleInnerBox,r.topRightPaddingBox);case 1:return cA(r.topRightBorderDoubleInnerBox,r.topRightPaddingBox,r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox);case 2:return cA(r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox,r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox);case 3:default:return cA(r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox,r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox)}},pP=function(r,e){switch(e){case 0:return Jc(r.topLeftBorderStroke,r.topRightBorderStroke);case 1:return Jc(r.topRightBorderStroke,r.bottomRightBorderStroke);case 2:return Jc(r.bottomRightBorderStroke,r.bottomLeftBorderStroke);case 3:default:return Jc(r.bottomLeftBorderStroke,r.topLeftBorderStroke)}},Jc=function(r,e){var t=[];return uA(r)?t.push(r.subdivide(.5,!1)):t.push(r),uA(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},cA=function(r,e,t,n){var A=[];return uA(r)?A.push(r.subdivide(.5,!1)):A.push(r),uA(t)?A.push(t.subdivide(.5,!0)):A.push(t),uA(n)?A.push(n.subdivide(.5,!0).reverse()):A.push(n),uA(e)?A.push(e.subdivide(.5,!1).reverse()):A.push(e),A},V2=function(r){var e=r.bounds,t=r.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Zc=function(r){var e=r.styles,t=r.bounds,n=rr(e.paddingLeft,t.width),A=rr(e.paddingRight,t.width),i=rr(e.paddingTop,t.width),a=rr(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+A),-(e.borderTopWidth+e.borderBottomWidth+i+a))},gP=function(r,e){return r===0?e.bounds:r===2?Zc(e):V2(e)},mP=function(r,e){return r===0?e.bounds:r===2?Zc(e):V2(e)},Xg=function(r,e,t){var n=gP(Ys(r.styles.backgroundOrigin,e),r),A=mP(Ys(r.styles.backgroundClip,e),r),i=vP(Ys(r.styles.backgroundSize,e),t,n),a=i[0],s=i[1],o=gl(Ys(r.styles.backgroundPosition,e),n.width-a,n.height-s),l=wP(Ys(r.styles.backgroundRepeat,e),o,i,n,A),u=Math.round(n.left+o[0]),h=Math.round(n.top+o[1]);return[l,u,h,a,s]},Xs=function(r){return Yt(r)&&r.value===Gs.AUTO},eh=function(r){return typeof r=="number"},vP=function(r,e,t){var n=e[0],A=e[1],i=e[2],a=r[0],s=r[1];if(!a)return[0,0];if(Rr(a)&&s&&Rr(s))return[rr(a,t.width),rr(s,t.height)];var o=eh(i);if(Yt(a)&&(a.value===Gs.CONTAIN||a.value===Gs.COVER)){if(eh(i)){var l=t.width/t.height;return l<i!=(a.value===Gs.COVER)?[t.width,t.width/i]:[t.height*i,t.height]}return[t.width,t.height]}var u=eh(n),h=eh(A),d=u||h;if(Xs(a)&&(!s||Xs(s))){if(u&&h)return[n,A];if(!o&&!d)return[t.width,t.height];if(d&&o){var c=u?n:A*i,p=h?A:n/i;return[c,p]}var m=u?n:t.width,y=h?A:t.height;return[m,y]}if(o){var g=0,w=0;return Rr(a)?g=rr(a,t.width):Rr(s)&&(w=rr(s,t.height)),Xs(a)?g=w*i:(!s||Xs(s))&&(w=g/i),[g,w]}var B=null,I=null;if(Rr(a)?B=rr(a,t.width):s&&Rr(s)&&(I=rr(s,t.height)),B!==null&&(!s||Xs(s))&&(I=u&&h?B/n*A:t.height),I!==null&&Xs(a)&&(B=u&&h?I/A*n:t.width),B!==null&&I!==null)return[B,I];throw new Error("Unable to calculate background-size for element")},Ys=function(r,e){var t=r[e];return typeof t>"u"?r[0]:t},wP=function(r,e,t,n,A){var i=e[0],a=e[1],s=t[0],o=t[1];switch(r){case 2:return[new Ze(Math.round(n.left),Math.round(n.top+a)),new Ze(Math.round(n.left+n.width),Math.round(n.top+a)),new Ze(Math.round(n.left+n.width),Math.round(o+n.top+a)),new Ze(Math.round(n.left),Math.round(o+n.top+a))];case 3:return[new Ze(Math.round(n.left+i),Math.round(n.top)),new Ze(Math.round(n.left+i+s),Math.round(n.top)),new Ze(Math.round(n.left+i+s),Math.round(n.height+n.top)),new Ze(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new Ze(Math.round(n.left+i),Math.round(n.top+a)),new Ze(Math.round(n.left+i+s),Math.round(n.top+a)),new Ze(Math.round(n.left+i+s),Math.round(n.top+a+o)),new Ze(Math.round(n.left+i),Math.round(n.top+a+o))];default:return[new Ze(Math.round(A.left),Math.round(A.top)),new Ze(Math.round(A.left+A.width),Math.round(A.top)),new Ze(Math.round(A.left+A.width),Math.round(A.height+A.top)),new Ze(Math.round(A.left),Math.round(A.height+A.top))]}},yP="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",G2="Hidden Text",BP=function(){function r(e){this._data={},this._document=e}return r.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),A=this._document.createElement("img"),i=this._document.createElement("span"),a=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",a.appendChild(n),A.src=yP,A.width=1,A.height=1,A.style.margin="0",A.style.padding="0",A.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(G2)),n.appendChild(i),n.appendChild(A);var s=A.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(G2)),n.style.lineHeight="normal",A.style.verticalAlign="super";var o=A.offsetTop-n.offsetTop+2;return a.removeChild(n),{baseline:s,middle:o}},r.prototype.getMetrics=function(e,t){var n=e+" "+t;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},r}(),z2=function(){function r(e,t){this.context=e,this.options=t}return r}(),bP=1e4,xP=function(r){IA(e,r);function e(t,n){var A=r.call(this,t,n)||this;return A._activeEffects=[],A.canvas=n.canvas?n.canvas:document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),n.canvas||(A.canvas.width=Math.floor(n.width*n.scale),A.canvas.height=Math.floor(n.height*n.scale),A.canvas.style.width=n.width+"px",A.canvas.style.height=n.height+"px"),A.fontMetrics=new BP(document),A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-n.x,-n.y),A.ctx.textBaseline="bottom",A._activeEffects=[],A.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),A}return e.prototype.applyEffects=function(t){for(var n=this;this._activeEffects.length;)this.popEffect();t.forEach(function(A){return n.applyEffect(A)})},e.prototype.applyEffect=function(t){this.ctx.save(),uP(t)&&(this.ctx.globalAlpha=t.opacity),lP(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),D2(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return Sn(this,void 0,void 0,function(){var n;return Bn(this,function(A){switch(A.label){case 0:return n=t.element.container.styles,n.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:A.sent(),A.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return Sn(this,void 0,void 0,function(){return Bn(this,function(n){switch(n.label){case 0:if(Gr(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(t)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,n,A){var i=this;if(n===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+A);else{var a=Rg(t.text);a.reduce(function(s,o){return i.ctx.fillText(o,s,t.bounds.top+A),s+i.ctx.measureText(o).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var n=t.fontVariant.filter(function(a){return a==="normal"||a==="small-caps"}).join(""),A=UP(t.fontFamily).join(", "),i=pl(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,n,t.fontWeight,i,A].join(" "),A,i]},e.prototype.renderTextNode=function(t,n){return Sn(this,void 0,void 0,function(){var A,i,a,s,o,l,u,h,d=this;return Bn(this,function(c){return A=this.createFontStyle(n),i=A[0],a=A[1],s=A[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(a,s),l=o.baseline,u=o.middle,h=n.paintOrder,t.textBounds.forEach(function(p){h.forEach(function(m){switch(m){case 0:d.ctx.fillStyle=Wr(n.color),d.renderTextWithLetterSpacing(p,n.letterSpacing,l);var y=n.textShadow;y.length&&p.text.trim().length&&(y.slice(0).reverse().forEach(function(g){d.ctx.shadowColor=Wr(g.color),d.ctx.shadowOffsetX=g.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=g.offsetY.number*d.options.scale,d.ctx.shadowBlur=g.blur.number,d.renderTextWithLetterSpacing(p,n.letterSpacing,l)}),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),n.textDecorationLine.length&&(d.ctx.fillStyle=Wr(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(g){switch(g){case 1:d.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top+l),p.bounds.width,1);break;case 2:d.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top),p.bounds.width,1);break;case 3:d.ctx.fillRect(p.bounds.left,Math.ceil(p.bounds.top+u),p.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&p.text.trim().length&&(d.ctx.strokeStyle=Wr(n.webkitTextStrokeColor),d.ctx.lineWidth=n.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(p.text,p.bounds.left,p.bounds.top+l)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,n,A){if(A&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=Zc(t),a=Xc(n);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(A,0,0,t.intrinsicWidth,t.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return Sn(this,void 0,void 0,function(){var n,A,i,a,s,o,w,w,l,u,h,d,I,c,p,O,m,y,g,w,B,I,O;return Bn(this,function(j){switch(j.label){case 0:this.applyEffects(t.getEffects(4)),n=t.container,A=t.curves,i=n.styles,a=0,s=n.textNodes,j.label=1;case 1:return a<s.length?(o=s[a],[4,this.renderTextNode(o,i)]):[3,4];case 2:j.sent(),j.label=3;case 3:return a++,[3,1];case 4:if(!(n instanceof u2))return[3,8];j.label=5;case 5:return j.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return w=j.sent(),this.renderReplacedElement(n,A,w),[3,8];case 7:return j.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof c2&&this.renderReplacedElement(n,A,n.canvas),!(n instanceof h2))return[3,12];j.label=9;case 9:return j.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return w=j.sent(),this.renderReplacedElement(n,A,w),[3,12];case 11:return j.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof m2&&n.tree?(l=new e(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,l.render(n.tree)]):[3,14];case 13:u=j.sent(),n.width&&n.height&&this.ctx.drawImage(u,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),j.label=14;case 14:if(n instanceof kg&&(h=Math.min(n.bounds.width,n.bounds.height),n.type===Kc?n.checked&&(this.ctx.save(),this.path([new Ze(n.bounds.left+h*.39363,n.bounds.top+h*.79),new Ze(n.bounds.left+h*.16,n.bounds.top+h*.5549),new Ze(n.bounds.left+h*.27347,n.bounds.top+h*.44071),new Ze(n.bounds.left+h*.39694,n.bounds.top+h*.5649),new Ze(n.bounds.left+h*.72983,n.bounds.top+h*.23),new Ze(n.bounds.left+h*.84,n.bounds.top+h*.34085),new Ze(n.bounds.left+h*.39363,n.bounds.top+h*.79)]),this.ctx.fillStyle=Wr(d2),this.ctx.fill(),this.ctx.restore()):n.type===jc&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+h/2,n.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=Wr(d2),this.ctx.fill(),this.ctx.restore())),CP(n)&&n.value.length){switch(d=this.createFontStyle(i),I=d[0],c=d[1],p=this.fontMetrics.getMetrics(I,c).baseline,this.ctx.font=I,this.ctx.fillStyle=Wr(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=SP(n.styles.textAlign),O=Zc(n),m=0,n.styles.textAlign){case 1:m+=O.width/2;break;case 2:m+=O.width;break}y=O.add(m,0,0,-O.height/2+1),this.ctx.save(),this.path([new Ze(O.left,O.top),new Ze(O.left+O.width,O.top),new Ze(O.left+O.width,O.top+O.height),new Ze(O.left,O.top+O.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new yl(n.value,y),i.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Gr(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(g=n.styles.listStyleImage,g.type!==0)return[3,18];w=void 0,B=g.url,j.label=15;case 15:return j.trys.push([15,17,,18]),[4,this.context.cache.match(B)];case 16:return w=j.sent(),this.ctx.drawImage(w,n.bounds.left-(w.width+10),n.bounds.top),[3,18];case 17:return j.sent(),this.context.logger.error("Error loading list-style-image "+B),[3,18];case 18:return[3,20];case 19:t.listValue&&n.styles.listStyleType!==-1&&(I=this.createFontStyle(i)[0],this.ctx.font=I,this.ctx.fillStyle=Wr(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",O=new mi(n.bounds.left,n.bounds.top+rr(n.styles.paddingTop,n.bounds.width),n.bounds.width,Gb(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new yl(t.listValue,O),i.letterSpacing,Gb(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),j.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return Sn(this,void 0,void 0,function(){var n,A,g,i,a,g,s,o,g,l,u,g,h,d,g,c,p,g,m,y,g;return Bn(this,function(w){switch(w.label){case 0:if(Gr(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:w.sent(),n=0,A=t.negativeZIndex,w.label=2;case 2:return n<A.length?(g=A[n],[4,this.renderStack(g)]):[3,5];case 3:w.sent(),w.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:w.sent(),i=0,a=t.nonInlineLevel,w.label=7;case 7:return i<a.length?(g=a[i],[4,this.renderNode(g)]):[3,10];case 8:w.sent(),w.label=9;case 9:return i++,[3,7];case 10:s=0,o=t.nonPositionedFloats,w.label=11;case 11:return s<o.length?(g=o[s],[4,this.renderStack(g)]):[3,14];case 12:w.sent(),w.label=13;case 13:return s++,[3,11];case 14:l=0,u=t.nonPositionedInlineLevel,w.label=15;case 15:return l<u.length?(g=u[l],[4,this.renderStack(g)]):[3,18];case 16:w.sent(),w.label=17;case 17:return l++,[3,15];case 18:h=0,d=t.inlineLevel,w.label=19;case 19:return h<d.length?(g=d[h],[4,this.renderNode(g)]):[3,22];case 20:w.sent(),w.label=21;case 21:return h++,[3,19];case 22:c=0,p=t.zeroOrAutoZIndexOrTransformedOrOpacity,w.label=23;case 23:return c<p.length?(g=p[c],[4,this.renderStack(g)]):[3,26];case 24:w.sent(),w.label=25;case 25:return c++,[3,23];case 26:m=0,y=t.positiveZIndex,w.label=27;case 27:return m<y.length?(g=y[m],[4,this.renderStack(g)]):[3,30];case 28:w.sent(),w.label=29;case 29:return m++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var n=this;t.forEach(function(A,i){var a=uA(A)?A.start:A;i===0?n.ctx.moveTo(a.x,a.y):n.ctx.lineTo(a.x,a.y),uA(A)&&n.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)})},e.prototype.renderRepeat=function(t,n,A,i){this.path(t),this.ctx.fillStyle=n,this.ctx.translate(A,i),this.ctx.fill(),this.ctx.translate(-A,-i)},e.prototype.resizeImage=function(t,n,A){var i;if(t.width===n&&t.height===A)return t;var a=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,s=a.createElement("canvas");s.width=Math.max(1,n),s.height=Math.max(1,A);var o=s.getContext("2d");return o.drawImage(t,0,0,t.width,t.height,0,0,n,A),s},e.prototype.renderBackgroundImage=function(t){return Sn(this,void 0,void 0,function(){var n,A,i,a,s,o;return Bn(this,function(l){switch(l.label){case 0:n=t.styles.backgroundImage.length-1,A=function(u){var h,d,c,J,ee,G,K,F,D,p,J,ee,G,K,F,m,y,g,w,B,I,O,j,R,D,Q,J,M,S,K,F,ne,ee,G,oe,q,he,ie,E,k,V,W;return Bn(this,function(z){switch(z.label){case 0:if(u.type!==0)return[3,5];h=void 0,d=u.url,z.label=1;case 1:return z.trys.push([1,3,,4]),[4,i.context.cache.match(d)];case 2:return h=z.sent(),[3,4];case 3:return z.sent(),i.context.logger.error("Error loading background-image "+d),[3,4];case 4:return h&&(c=Xg(t,n,[h.width,h.height,h.width/h.height]),J=c[0],ee=c[1],G=c[2],K=c[3],F=c[4],D=i.ctx.createPattern(i.resizeImage(h,K,F),"repeat"),i.renderRepeat(J,D,ee,G)),[3,6];case 5:lN(u)?(p=Xg(t,n,[null,null,null]),J=p[0],ee=p[1],G=p[2],K=p[3],F=p[4],m=AN(u.angle,K,F),y=m[0],g=m[1],w=m[2],B=m[3],I=m[4],O=document.createElement("canvas"),O.width=K,O.height=F,j=O.getContext("2d"),R=j.createLinearGradient(g,B,w,I),Nb(u.stops,y).forEach(function(_){return R.addColorStop(_.stop,Wr(_.color))}),j.fillStyle=R,j.fillRect(0,0,K,F),K>0&&F>0&&(D=i.ctx.createPattern(O,"repeat"),i.renderRepeat(J,D,ee,G))):uN(u)&&(Q=Xg(t,n,[null,null,null]),J=Q[0],M=Q[1],S=Q[2],K=Q[3],F=Q[4],ne=u.position.length===0?[bg]:u.position,ee=rr(ne[0],K),G=rr(ne[ne.length-1],F),oe=iN(u,ee,G,K,F),q=oe[0],he=oe[1],q>0&&he>0&&(ie=i.ctx.createRadialGradient(M+ee,S+G,0,M+ee,S+G,q),Nb(u.stops,q*2).forEach(function(_){return ie.addColorStop(_.stop,Wr(_.color))}),i.path(J),i.ctx.fillStyle=ie,q!==he?(E=t.bounds.left+.5*t.bounds.width,k=t.bounds.top+.5*t.bounds.height,V=he/q,W=1/V,i.ctx.save(),i.ctx.translate(E,k),i.ctx.transform(1,0,0,V,0,0),i.ctx.translate(-E,-k),i.ctx.fillRect(M,W*(S-k)+k,K,F*W),i.ctx.restore()):i.ctx.fill())),z.label=6;case 6:return n--,[2]}})},i=this,a=0,s=t.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return a<s.length?(o=s[a],[5,A(o)]):[3,4];case 2:l.sent(),l.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,n,A){return Sn(this,void 0,void 0,function(){return Bn(this,function(i){return this.path(j2(A,n)),this.ctx.fillStyle=Wr(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,n,A,i){return Sn(this,void 0,void 0,function(){var a,s;return Bn(this,function(o){switch(o.label){case 0:return n<3?[4,this.renderSolidBorder(t,A,i)]:[3,2];case 1:return o.sent(),[2];case 2:return a=fP(i,A),this.path(a),this.ctx.fillStyle=Wr(t),this.ctx.fill(),s=dP(i,A),this.path(s),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return Sn(this,void 0,void 0,function(){var n,A,i,a,s,o,l,u,h=this;return Bn(this,function(d){switch(d.label){case 0:return this.applyEffects(t.getEffects(2)),n=t.container.styles,A=!na(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],a=EP(Ys(n.backgroundClip,0),t.curves),A||n.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),na(n.backgroundColor)||(this.ctx.fillStyle=Wr(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:d.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(c){h.ctx.save();var p=qc(t.curves),m=c.inset?0:bP,y=cP(p,-m+(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?(h.path(p),h.ctx.clip(),h.mask(y)):(h.mask(p),h.ctx.clip(),h.path(y)),h.ctx.shadowOffsetX=c.offsetX.number+m,h.ctx.shadowOffsetY=c.offsetY.number,h.ctx.shadowColor=Wr(c.color),h.ctx.shadowBlur=c.blur.number,h.ctx.fillStyle=c.inset?Wr(c.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),d.label=2;case 2:s=0,o=0,l=i,d.label=3;case 3:return o<l.length?(u=l[o],u.style!==0&&!na(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,s,t.curves,2)]:[3,11]):[3,13];case 4:return d.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,s,t.curves,3)];case 6:return d.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,s,t.curves)];case 8:return d.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,s,t.curves)];case 10:d.sent(),d.label=11;case 11:s++,d.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,n,A,i,a){return Sn(this,void 0,void 0,function(){var s,o,l,u,h,d,c,p,m,y,g,w,B,I,O,j,O,j;return Bn(this,function(R){return this.ctx.save(),s=pP(i,A),o=j2(i,A),a===2&&(this.path(o),this.ctx.clip()),uA(o[0])?(l=o[0].start.x,u=o[0].start.y):(l=o[0].x,u=o[0].y),uA(o[1])?(h=o[1].end.x,d=o[1].end.y):(h=o[1].x,d=o[1].y),A===0||A===2?c=Math.abs(l-h):c=Math.abs(u-d),this.ctx.beginPath(),a===3?this.formatPath(s):this.formatPath(o.slice(0,2)),p=n<3?n*3:n*2,m=n<3?n*2:n,a===3&&(p=n,m=n),y=!0,c<=p*2?y=!1:c<=p*2+m?(g=c/(2*p+m),p*=g,m*=g):(w=Math.floor((c+m)/(p+m)),B=(c-w*p)/(w-1),I=(c-(w+1)*p)/w,m=I<=0||Math.abs(m-B)<Math.abs(m-I)?B:I),y&&(a===3?this.ctx.setLineDash([0,p+m]):this.ctx.setLineDash([p,m])),a===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=Wr(t),this.ctx.stroke(),this.ctx.setLineDash([]),a===2&&(uA(o[0])&&(O=o[3],j=o[0],this.ctx.beginPath(),this.formatPath([new Ze(O.end.x,O.end.y),new Ze(j.start.x,j.start.y)]),this.ctx.stroke()),uA(o[1])&&(O=o[1],j=o[2],this.ctx.beginPath(),this.formatPath([new Ze(O.end.x,O.end.y),new Ze(j.start.x,j.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return Sn(this,void 0,void 0,function(){var n;return Bn(this,function(A){switch(A.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Wr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=hP(t),[4,this.renderStack(n)];case 1:return A.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(z2),CP=function(r){return r instanceof g2||r instanceof p2?!0:r instanceof kg&&r.type!==jc&&r.type!==Kc},EP=function(r,e){switch(r){case 0:return qc(e);case 2:return aP(e);case 1:default:return Xc(e)}},SP=function(r){switch(r){case 1:return"center";case 2:return"right";case 0:default:return"left"}},FP=["-apple-system","system-ui"],UP=function(r){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?r.filter(function(e){return FP.indexOf(e)===-1}):r},IP=function(r){IA(e,r);function e(t,n){var A=r.call(this,t,n)||this;return A.canvas=n.canvas?n.canvas:document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),A.options=n,A.canvas.width=Math.floor(n.width*n.scale),A.canvas.height=Math.floor(n.height*n.scale),A.canvas.style.width=n.width+"px",A.canvas.style.height=n.height+"px",A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-n.x,-n.y),A.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),A}return e.prototype.render=function(t){return Sn(this,void 0,void 0,function(){var n,A;return Bn(this,function(i){switch(i.label){case 0:return n=Pg(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,TP(n)];case 1:return A=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Wr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(A,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(z2),TP=function(r){return new Promise(function(e,t){var n=new Image;n.onload=function(){e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},_P=function(){function r(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return r.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,oc([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.prototype.getTime=function(){return Date.now()-this.start},r.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,oc([this.id,this.getTime()+"ms"],e))},r.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,oc([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,oc([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.instances={},r}(),LP=function(){function r(e,t){var n;this.windowBounds=t,this.instanceName="#"+r.instanceCount++,this.logger=new _P({id:this.instanceName,enabled:e.logging}),this.cache=(n=e.cache)!==null&&n!==void 0?n:new J8(this,e)}return r.instanceCount=1,r}(),QP=function(r,e){return e===void 0&&(e={}),NP(r,e)};typeof window<"u"&&R2.setContext(window);var NP=function(r,e){return Sn(void 0,void 0,void 0,function(){var t,n,A,i,a,s,o,l,u,h,d,c,p,m,y,g,w,B,I,O,R,j,R,D,Q,J,M,S,K,F,ne,ee,G,oe,q,he,ie,E,k,V;return Bn(this,function(W){switch(W.label){case 0:if(!r||typeof r!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=r.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(n=t.defaultView,!n)throw new Error("Document is not attached to a Window");return A={allowTaint:(D=e.allowTaint)!==null&&D!==void 0?D:!1,imageTimeout:(Q=e.imageTimeout)!==null&&Q!==void 0?Q:15e3,proxy:e.proxy,useCORS:(J=e.useCORS)!==null&&J!==void 0?J:!1},i=tg({logging:(M=e.logging)!==null&&M!==void 0?M:!0,cache:e.cache},A),a={windowWidth:(S=e.windowWidth)!==null&&S!==void 0?S:n.innerWidth,windowHeight:(K=e.windowHeight)!==null&&K!==void 0?K:n.innerHeight,scrollX:(F=e.scrollX)!==null&&F!==void 0?F:n.pageXOffset,scrollY:(ne=e.scrollY)!==null&&ne!==void 0?ne:n.pageYOffset},s=new mi(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),o=new LP(i,s),l=(ee=e.foreignObjectRendering)!==null&&ee!==void 0?ee:!1,u={allowTaint:(G=e.allowTaint)!==null&&G!==void 0?G:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:l,copyStyles:l},o.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),h=new O2(o,r,u),d=h.clonedReferenceElement,d?[4,h.toIFrame(t,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return c=W.sent(),p=Mg(d)||O8(d)?c6(d.ownerDocument):lc(o,d),m=p.width,y=p.height,g=p.left,w=p.top,B=OP(o,d,e.backgroundColor),I={canvas:e.canvas,backgroundColor:B,scale:(q=(oe=e.scale)!==null&&oe!==void 0?oe:n.devicePixelRatio)!==null&&q!==void 0?q:1,x:((he=e.x)!==null&&he!==void 0?he:0)+g,y:((ie=e.y)!==null&&ie!==void 0?ie:0)+w,width:(E=e.width)!==null&&E!==void 0?E:Math.ceil(m),height:(k=e.height)!==null&&k!==void 0?k:Math.ceil(y)},l?(o.logger.debug("Document cloned, using foreign object rendering"),R=new IP(o,I),[4,R.render(d)]):[3,3];case 2:return O=W.sent(),[3,5];case 3:return o.logger.debug("Document cloned, element located at "+g+","+w+" with size "+m+"x"+y+" using computed rendering"),o.logger.debug("Starting DOM parsing"),j=w2(o,d),B===j.styles.backgroundColor&&(j.styles.backgroundColor=wi.TRANSPARENT),o.logger.debug("Starting renderer for element at "+I.x+","+I.y+" with size "+I.width+"x"+I.height),R=new xP(o,I),[4,R.render(j)];case 4:O=W.sent(),W.label=5;case 5:return(!((V=e.removeContainer)!==null&&V!==void 0)||V)&&(O2.destroy(c)||o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),o.logger.debug("Finished rendering"),[2,O]}})})},OP=function(r,e,t){var n=e.ownerDocument,A=n.documentElement?ml(r,getComputedStyle(n.documentElement).backgroundColor):wi.TRANSPARENT,i=n.body?ml(r,getComputedStyle(n.body).backgroundColor):wi.TRANSPARENT,a=typeof t=="string"?ml(r,t):t===null?wi.TRANSPARENT:4294967295;return e===n.documentElement?na(A)?na(i)?a:i:A:a};const W2=Object.freeze(Object.defineProperty({__proto__:null,default:QP},Symbol.toStringTag,{value:"Module"}));/*! @license DOMPurify 2.5.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.9/LICENSE */function sa(r){"@babel/helpers - typeof";return sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sa(r)}function Yg(r,e){return Yg=Object.setPrototypeOf||function(n,A){return n.__proto__=A,n},Yg(r,e)}function PP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function th(r,e,t){return PP()?th=Reflect.construct:th=function(A,i,a){var s=[null];s.push.apply(s,i);var o=Function.bind.apply(A,s),l=new o;return a&&Yg(l,a.prototype),l},th.apply(null,arguments)}function _A(r){return RP(r)||DP(r)||kP(r)||HP()}function RP(r){if(Array.isArray(r))return Jg(r)}function DP(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function kP(r,e){if(r){if(typeof r=="string")return Jg(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Jg(r,e)}}function Jg(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function HP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
339
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var MP=Object.hasOwnProperty,$2=Object.setPrototypeOf,KP=Object.isFrozen,jP=Object.getPrototypeOf,VP=Object.getOwnPropertyDescriptor,Fn=Object.freeze,hA=Object.seal,GP=Object.create,q2=typeof Reflect<"u"&&Reflect,rh=q2.apply,Zg=q2.construct;rh||(rh=function(e,t,n){return e.apply(t,n)}),Fn||(Fn=function(e){return e}),hA||(hA=function(e){return e}),Zg||(Zg=function(e,t){return th(e,_A(t))});var zP=fA(Array.prototype.forEach),X2=fA(Array.prototype.pop),Cl=fA(Array.prototype.push),nh=fA(String.prototype.toLowerCase),em=fA(String.prototype.toString),Y2=fA(String.prototype.match),LA=fA(String.prototype.replace),WP=fA(String.prototype.indexOf),$P=fA(String.prototype.trim),an=fA(RegExp.prototype.test),tm=qP(TypeError);function fA(r){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),A=1;A<t;A++)n[A-1]=arguments[A];return rh(r,e,n)}}function qP(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Zg(r,t)}}function Ct(r,e,t){var n;t=(n=t)!==null&&n!==void 0?n:nh,$2&&$2(r,null);for(var A=e.length;A--;){var i=e[A];if(typeof i=="string"){var a=t(i);a!==i&&(KP(e)||(e[A]=a),i=a)}r[i]=!0}return r}function za(r){var e=GP(null),t;for(t in r)rh(MP,r,[t])===!0&&(e[t]=r[t]);return e}function Ah(r,e){for(;r!==null;){var t=VP(r,e);if(t){if(t.get)return fA(t.get);if(typeof t.value=="function")return fA(t.value)}r=jP(r)}function n(A){return console.warn("fallback value for",A),null}return n}var J2=Fn(["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","section","select","shadow","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"]),rm=Fn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),nm=Fn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),XP=Fn(["animate","color-profile","cursor","discard","fedropshadow","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"]),Am=Fn(["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"]),YP=Fn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Z2=Fn(["#text"]),e5=Fn(["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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),im=Fn(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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","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"]),t5=Fn(["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"]),ih=Fn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),JP=hA(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ZP=hA(/<%[\w\W]*|[\w\W]*%>/gm),eR=hA(/\${[\w\W]*}/gm),tR=hA(/^data-[\-\w.\u00B7-\uFFFF]+$/),rR=hA(/^aria-[\-\w]+$/),nR=hA(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),AR=hA(/^(?:\w+script|data):/i),iR=hA(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),aR=hA(/^html$/i),sR=hA(/^[a-z][.\w]*(-[.\w]+)+$/i),oR=function(){return typeof window>"u"?null:window},lR=function(e,t){if(sa(e)!=="object"||typeof e.createPolicy!="function")return null;var n=null,A="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(A)&&(n=t.currentScript.getAttribute(A));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(s){return s},createScriptURL:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function r5(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oR(),e=function(we){return r5(we)};if(e.version="2.5.9",e.removed=[],!r||!r.document||r.document.nodeType!==9)return e.isSupported=!1,e;var t=r.document,n=r.document,A=r.DocumentFragment,i=r.HTMLTemplateElement,a=r.Node,s=r.Element,o=r.NodeFilter,l=r.NamedNodeMap,u=l===void 0?r.NamedNodeMap||r.MozNamedAttrMap:l,h=r.HTMLFormElement,d=r.DOMParser,c=r.trustedTypes,p=s.prototype,m=Ah(p,"cloneNode"),y=Ah(p,"nextSibling"),g=Ah(p,"childNodes"),w=Ah(p,"parentNode");if(typeof i=="function"){var B=n.createElement("template");B.content&&B.content.ownerDocument&&(n=B.content.ownerDocument)}var I=lR(c,t),O=I?I.createHTML(""):"",j=n,R=j.implementation,D=j.createNodeIterator,Q=j.createDocumentFragment,J=j.getElementsByTagName,M=t.importNode,S={};try{S=za(n).documentMode?n.documentMode:{}}catch{}var K={};e.isSupported=typeof w=="function"&&R&&R.createHTMLDocument!==void 0&&S!==9;var F=JP,ne=ZP,ee=eR,G=tR,oe=rR,q=AR,he=iR,ie=sR,E=nR,k=null,V=Ct({},[].concat(_A(J2),_A(rm),_A(nm),_A(Am),_A(Z2))),W=null,z=Ct({},[].concat(_A(e5),_A(im),_A(t5),_A(ih))),_=Object.seal(Object.create(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}})),L=null,Z=null,se=!0,$=!0,te=!1,me=!0,P=!1,de=!0,U=!1,b=!1,x=!1,N=!1,ae=!1,fe=!1,ue=!0,be=!1,Fe="user-content-",Se=!0,Pe=!1,je={},$e=null,et=Ct({},["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"]),ut=null,We=Ct({},["audio","video","img","source","image","track"]),kt=null,st=Ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ur="http://www.w3.org/1998/Math/MathML",Et="http://www.w3.org/2000/svg",gt="http://www.w3.org/1999/xhtml",cr=gt,St=!1,qr=null,Ht=Ct({},[ur,Et,gt],em),nr,Dt=["application/xhtml+xml","text/html"],Gt="text/html",it,It=null,Ii=n.createElement("form"),Hr=function(we){return we instanceof RegExp||we instanceof Function},Mn=function(we){It&&It===we||((!we||sa(we)!=="object")&&(we={}),we=za(we),nr=Dt.indexOf(we.PARSER_MEDIA_TYPE)===-1?nr=Gt:nr=we.PARSER_MEDIA_TYPE,it=nr==="application/xhtml+xml"?em:nh,k="ALLOWED_TAGS"in we?Ct({},we.ALLOWED_TAGS,it):V,W="ALLOWED_ATTR"in we?Ct({},we.ALLOWED_ATTR,it):z,qr="ALLOWED_NAMESPACES"in we?Ct({},we.ALLOWED_NAMESPACES,em):Ht,kt="ADD_URI_SAFE_ATTR"in we?Ct(za(st),we.ADD_URI_SAFE_ATTR,it):st,ut="ADD_DATA_URI_TAGS"in we?Ct(za(We),we.ADD_DATA_URI_TAGS,it):We,$e="FORBID_CONTENTS"in we?Ct({},we.FORBID_CONTENTS,it):et,L="FORBID_TAGS"in we?Ct({},we.FORBID_TAGS,it):{},Z="FORBID_ATTR"in we?Ct({},we.FORBID_ATTR,it):{},je="USE_PROFILES"in we?we.USE_PROFILES:!1,se=we.ALLOW_ARIA_ATTR!==!1,$=we.ALLOW_DATA_ATTR!==!1,te=we.ALLOW_UNKNOWN_PROTOCOLS||!1,me=we.ALLOW_SELF_CLOSE_IN_ATTR!==!1,P=we.SAFE_FOR_TEMPLATES||!1,de=we.SAFE_FOR_XML!==!1,U=we.WHOLE_DOCUMENT||!1,N=we.RETURN_DOM||!1,ae=we.RETURN_DOM_FRAGMENT||!1,fe=we.RETURN_TRUSTED_TYPE||!1,x=we.FORCE_BODY||!1,ue=we.SANITIZE_DOM!==!1,be=we.SANITIZE_NAMED_PROPS||!1,Se=we.KEEP_CONTENT!==!1,Pe=we.IN_PLACE||!1,E=we.ALLOWED_URI_REGEXP||E,cr=we.NAMESPACE||gt,_=we.CUSTOM_ELEMENT_HANDLING||{},we.CUSTOM_ELEMENT_HANDLING&&Hr(we.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=we.CUSTOM_ELEMENT_HANDLING.tagNameCheck),we.CUSTOM_ELEMENT_HANDLING&&Hr(we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),we.CUSTOM_ELEMENT_HANDLING&&typeof we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),P&&($=!1),ae&&(N=!0),je&&(k=Ct({},_A(Z2)),W=[],je.html===!0&&(Ct(k,J2),Ct(W,e5)),je.svg===!0&&(Ct(k,rm),Ct(W,im),Ct(W,ih)),je.svgFilters===!0&&(Ct(k,nm),Ct(W,im),Ct(W,ih)),je.mathMl===!0&&(Ct(k,Am),Ct(W,t5),Ct(W,ih))),we.ADD_TAGS&&(k===V&&(k=za(k)),Ct(k,we.ADD_TAGS,it)),we.ADD_ATTR&&(W===z&&(W=za(W)),Ct(W,we.ADD_ATTR,it)),we.ADD_URI_SAFE_ATTR&&Ct(kt,we.ADD_URI_SAFE_ATTR,it),we.FORBID_CONTENTS&&($e===et&&($e=za($e)),Ct($e,we.FORBID_CONTENTS,it)),Se&&(k["#text"]=!0),U&&Ct(k,["html","head","body"]),k.table&&(Ct(k,["tbody"]),delete L.tbody),Fn&&Fn(we),It=we)},Jn=Ct({},["mi","mo","mn","ms","mtext"]),ct=Ct({},["annotation-xml"]),Zn=Ct({},["title","style","font","a","script"]),Tn=Ct({},rm);Ct(Tn,nm),Ct(Tn,XP);var Xr=Ct({},Am);Ct(Xr,YP);var Lr=function(we){var Ge=w(we);(!Ge||!Ge.tagName)&&(Ge={namespaceURI:cr,tagName:"template"});var qe=nh(we.tagName),Lt=nh(Ge.tagName);return qr[we.namespaceURI]?we.namespaceURI===Et?Ge.namespaceURI===gt?qe==="svg":Ge.namespaceURI===ur?qe==="svg"&&(Lt==="annotation-xml"||Jn[Lt]):!!Tn[qe]:we.namespaceURI===ur?Ge.namespaceURI===gt?qe==="math":Ge.namespaceURI===Et?qe==="math"&&ct[Lt]:!!Xr[qe]:we.namespaceURI===gt?Ge.namespaceURI===Et&&!ct[Lt]||Ge.namespaceURI===ur&&!Jn[Lt]?!1:!Xr[qe]&&(Zn[qe]||!Tn[qe]):!!(nr==="application/xhtml+xml"&&qr[we.namespaceURI]):!1},Ot=function(we){Cl(e.removed,{element:we});try{we.parentNode.removeChild(we)}catch{try{we.outerHTML=O}catch{we.remove()}}},Yr=function(we,Ge){try{Cl(e.removed,{attribute:Ge.getAttributeNode(we),from:Ge})}catch{Cl(e.removed,{attribute:null,from:Ge})}if(Ge.removeAttribute(we),we==="is"&&!W[we])if(N||ae)try{Ot(Ge)}catch{}else try{Ge.setAttribute(we,"")}catch{}},Ti=function(we){var Ge,qe;if(x)we="<remove></remove>"+we;else{var Lt=Y2(we,/^[\r\n\t ]+/);qe=Lt&&Lt[0]}nr==="application/xhtml+xml"&&cr===gt&&(we='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+we+"</body></html>");var Jr=I?I.createHTML(we):we;if(cr===gt)try{Ge=new d().parseFromString(Jr,nr)}catch{}if(!Ge||!Ge.documentElement){Ge=R.createDocument(cr,"template",null);try{Ge.documentElement.innerHTML=St?O:Jr}catch{}}var fr=Ge.body||Ge.documentElement;return we&&qe&&fr.insertBefore(n.createTextNode(qe),fr.childNodes[0]||null),cr===gt?J.call(Ge,U?"html":"body")[0]:U?Ge.documentElement:fr},pA=function(we){return D.call(we.ownerDocument||we,we,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT|o.SHOW_PROCESSING_INSTRUCTION|o.SHOW_CDATA_SECTION,null,!1)},_n=function(we){return we instanceof h&&(typeof we.nodeName!="string"||typeof we.textContent!="string"||typeof we.removeChild!="function"||!(we.attributes instanceof u)||typeof we.removeAttribute!="function"||typeof we.setAttribute!="function"||typeof we.namespaceURI!="string"||typeof we.insertBefore!="function"||typeof we.hasChildNodes!="function")},on=function(we){return sa(a)==="object"?we instanceof a:we&&sa(we)==="object"&&typeof we.nodeType=="number"&&typeof we.nodeName=="string"},Qr=function(we,Ge,qe){K[we]&&zP(K[we],function(Lt){Lt.call(e,Ge,qe,It)})},eA=function(we){var Ge;if(Qr("beforeSanitizeElements",we,null),_n(we)||an(/[\u0080-\uFFFF]/,we.nodeName))return Ot(we),!0;var qe=it(we.nodeName);if(Qr("uponSanitizeElement",we,{tagName:qe,allowedTags:k}),we.hasChildNodes()&&!on(we.firstElementChild)&&(!on(we.content)||!on(we.content.firstElementChild))&&an(/<[/\w]/g,we.innerHTML)&&an(/<[/\w]/g,we.textContent)||qe==="select"&&an(/<template/i,we.innerHTML)||we.nodeType===7||de&&we.nodeType===8&&an(/<[/\w]/g,we.data))return Ot(we),!0;if(!k[qe]||L[qe]){if(!L[qe]&&tA(qe)&&(_.tagNameCheck instanceof RegExp&&an(_.tagNameCheck,qe)||_.tagNameCheck instanceof Function&&_.tagNameCheck(qe)))return!1;if(Se&&!$e[qe]){var Lt=w(we)||we.parentNode,Jr=g(we)||we.childNodes;if(Jr&&Lt)for(var fr=Jr.length,Br=fr-1;Br>=0;--Br){var kA=m(Jr[Br],!0);kA.__removalCount=(we.__removalCount||0)+1,Lt.insertBefore(kA,y(we))}}return Ot(we),!0}return we instanceof s&&!Lr(we)||(qe==="noscript"||qe==="noembed"||qe==="noframes")&&an(/<\/no(script|embed|frames)/i,we.innerHTML)?(Ot(we),!0):(P&&we.nodeType===3&&(Ge=we.textContent,Ge=LA(Ge,F," "),Ge=LA(Ge,ne," "),Ge=LA(Ge,ee," "),we.textContent!==Ge&&(Cl(e.removed,{element:we.cloneNode()}),we.textContent=Ge)),Qr("afterSanitizeElements",we,null),!1)},Ln=function(we,Ge,qe){if(ue&&(Ge==="id"||Ge==="name")&&(qe in n||qe in Ii))return!1;if(!($&&!Z[Ge]&&an(G,Ge))){if(!(se&&an(oe,Ge))){if(!W[Ge]||Z[Ge]){if(!(tA(we)&&(_.tagNameCheck instanceof RegExp&&an(_.tagNameCheck,we)||_.tagNameCheck instanceof Function&&_.tagNameCheck(we))&&(_.attributeNameCheck instanceof RegExp&&an(_.attributeNameCheck,Ge)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(Ge))||Ge==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&an(_.tagNameCheck,qe)||_.tagNameCheck instanceof Function&&_.tagNameCheck(qe))))return!1}else if(!kt[Ge]){if(!an(E,LA(qe,he,""))){if(!((Ge==="src"||Ge==="xlink:href"||Ge==="href")&&we!=="script"&&WP(qe,"data:")===0&&ut[we])){if(!(te&&!an(q,LA(qe,he,"")))){if(qe)return!1}}}}}}return!0},tA=function(we){return we!=="annotation-xml"&&Y2(we,ie)},Ai=function(we){var Ge,qe,Lt,Jr;Qr("beforeSanitizeAttributes",we,null);var fr=we.attributes;if(!(!fr||_n(we))){var Br={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W};for(Jr=fr.length;Jr--;){Ge=fr[Jr];var kA=Ge,sr=kA.name,as=kA.namespaceURI;if(qe=sr==="value"?Ge.value:$P(Ge.value),Lt=it(sr),Br.attrName=Lt,Br.attrValue=qe,Br.keepAttr=!0,Br.forceKeepAttr=void 0,Qr("uponSanitizeAttribute",we,Br),qe=Br.attrValue,!Br.forceKeepAttr&&(Yr(sr,we),!!Br.keepAttr)){if(!me&&an(/\/>/i,qe)){Yr(sr,we);continue}P&&(qe=LA(qe,F," "),qe=LA(qe,ne," "),qe=LA(qe,ee," "));var ss=it(we.nodeName);if(Ln(ss,Lt,qe)){if(be&&(Lt==="id"||Lt==="name")&&(Yr(sr,we),qe=Fe+qe),de&&an(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,qe)){Yr(sr,we);continue}if(I&&sa(c)==="object"&&typeof c.getAttributeType=="function"&&!as)switch(c.getAttributeType(ss,Lt)){case"TrustedHTML":{qe=I.createHTML(qe);break}case"TrustedScriptURL":{qe=I.createScriptURL(qe);break}}try{as?we.setAttributeNS(as,sr,qe):we.setAttribute(sr,qe),_n(we)?Ot(we):X2(e.removed)}catch{}}}}Qr("afterSanitizeAttributes",we,null)}},ha=function at(we){var Ge,qe=pA(we);for(Qr("beforeSanitizeShadowDOM",we,null);Ge=qe.nextNode();)Qr("uponSanitizeShadowNode",Ge,null),eA(Ge),Ai(Ge),Ge.content instanceof A&&at(Ge.content);Qr("afterSanitizeShadowDOM",we,null)};return e.sanitize=function(at){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ge,qe,Lt,Jr,fr;if(St=!at,St&&(at="<!-->"),typeof at!="string"&&!on(at))if(typeof at.toString=="function"){if(at=at.toString(),typeof at!="string")throw tm("dirty is not a string, aborting")}else throw tm("toString is not a function");if(!e.isSupported){if(sa(r.toStaticHTML)==="object"||typeof r.toStaticHTML=="function"){if(typeof at=="string")return r.toStaticHTML(at);if(on(at))return r.toStaticHTML(at.outerHTML)}return at}if(b||Mn(we),e.removed=[],typeof at=="string"&&(Pe=!1),Pe){if(at.nodeName){var Br=it(at.nodeName);if(!k[Br]||L[Br])throw tm("root node is forbidden and cannot be sanitized in-place")}}else if(at instanceof a)Ge=Ti("<!---->"),qe=Ge.ownerDocument.importNode(at,!0),qe.nodeType===1&&qe.nodeName==="BODY"||qe.nodeName==="HTML"?Ge=qe:Ge.appendChild(qe);else{if(!N&&!P&&!U&&at.indexOf("<")===-1)return I&&fe?I.createHTML(at):at;if(Ge=Ti(at),!Ge)return N?null:fe?O:""}Ge&&x&&Ot(Ge.firstChild);for(var kA=pA(Pe?at:Ge);Lt=kA.nextNode();)Lt.nodeType===3&&Lt===Jr||(eA(Lt),Ai(Lt),Lt.content instanceof A&&ha(Lt.content),Jr=Lt);if(Jr=null,Pe)return at;if(N){if(ae)for(fr=Q.call(Ge.ownerDocument);Ge.firstChild;)fr.appendChild(Ge.firstChild);else fr=Ge;return(W.shadowroot||W.shadowrootmod)&&(fr=M.call(t,fr,!0)),fr}var sr=U?Ge.outerHTML:Ge.innerHTML;return U&&k["!doctype"]&&Ge.ownerDocument&&Ge.ownerDocument.doctype&&Ge.ownerDocument.doctype.name&&an(aR,Ge.ownerDocument.doctype.name)&&(sr="<!DOCTYPE "+Ge.ownerDocument.doctype.name+`>
340
+ `+sr),P&&(sr=LA(sr,F," "),sr=LA(sr,ne," "),sr=LA(sr,ee," ")),I&&fe?I.createHTML(sr):sr},e.setConfig=function(at){Mn(at),b=!0},e.clearConfig=function(){It=null,b=!1},e.isValidAttribute=function(at,we,Ge){It||Mn({});var qe=it(at),Lt=it(we);return Ln(qe,Lt,Ge)},e.addHook=function(at,we){typeof we=="function"&&(K[at]=K[at]||[],Cl(K[at],we))},e.removeHook=function(at){if(K[at])return X2(K[at])},e.removeHooks=function(at){K[at]&&(K[at]=[])},e.removeAllHooks=function(){K={}},e}var uR=r5();const cR=Object.freeze(Object.defineProperty({__proto__:null,default:uR},Symbol.toStringTag,{value:"Module"}));var El=function(r){return r&&r.Math===Math&&r},lr=El(typeof globalThis=="object"&&globalThis)||El(typeof window=="object"&&window)||El(typeof self=="object"&&self)||El(typeof gi=="object"&&gi)||El(typeof gi=="object"&&gi)||function(){return this}()||Function("return this")(),Sl={},vr=function(r){try{return!!r()}catch{return!0}},hR=vr,QA=!hR(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),fR=vr,ah=!fR(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),dR=ah,sh=Function.prototype.call,sn=dR?sh.bind(sh):function(){return sh.apply(sh,arguments)},n5={},A5={}.propertyIsEnumerable,i5=Object.getOwnPropertyDescriptor,pR=i5&&!A5.call({1:2},1);n5.f=pR?function(e){var t=i5(this,e);return!!t&&t.enumerable}:A5;var am=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}},a5=ah,s5=Function.prototype,sm=s5.call,gR=a5&&s5.bind.bind(sm,sm),wr=a5?gR:function(r){return function(){return sm.apply(r,arguments)}},o5=wr,mR=o5({}.toString),vR=o5("".slice),Wa=function(r){return vR(mR(r),8,-1)},wR=wr,yR=vr,BR=Wa,om=Object,bR=wR("".split),l5=yR(function(){return!om("z").propertyIsEnumerable(0)})?function(r){return BR(r)==="String"?bR(r,""):om(r)}:om,oh=function(r){return r==null},xR=oh,CR=TypeError,NA=function(r){if(xR(r))throw new CR("Can't call method on "+r);return r},ER=l5,SR=NA,Fl=function(r){return ER(SR(r))},lm=typeof document=="object"&&document.all,_r=typeof lm>"u"&&lm!==void 0?function(r){return typeof r=="function"||r===lm}:function(r){return typeof r=="function"},FR=_r,kn=function(r){return typeof r=="object"?r!==null:FR(r)},um=lr,UR=_r,IR=function(r){return UR(r)?r:void 0},$a=function(r,e){return arguments.length<2?IR(um[r]):um[r]&&um[r][e]},TR=wr,lh=TR({}.isPrototypeOf),_R=lr,u5=_R.navigator,c5=u5&&u5.userAgent,Ul=c5?String(c5):"",h5=lr,cm=Ul,f5=h5.process,d5=h5.Deno,p5=f5&&f5.versions||d5&&d5.version,g5=p5&&p5.v8,OA,uh;g5&&(OA=g5.split("."),uh=OA[0]>0&&OA[0]<4?1:+(OA[0]+OA[1])),!uh&&cm&&(OA=cm.match(/Edge\/(\d+)/),(!OA||OA[1]>=74)&&(OA=cm.match(/Chrome\/(\d+)/),OA&&(uh=+OA[1])));var hm=uh,m5=hm,LR=vr,QR=lr,NR=QR.String,v5=!!Object.getOwnPropertySymbols&&!LR(function(){var r=Symbol("symbol detection");return!NR(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&m5&&m5<41}),OR=v5,w5=OR&&!Symbol.sham&&typeof Symbol.iterator=="symbol",PR=$a,RR=_r,DR=lh,kR=w5,HR=Object,y5=kR?function(r){return typeof r=="symbol"}:function(r){var e=PR("Symbol");return RR(e)&&DR(e.prototype,HR(r))},MR=String,ch=function(r){try{return MR(r)}catch{return"Object"}},KR=_r,jR=ch,VR=TypeError,Bi=function(r){if(KR(r))return r;throw new VR(jR(r)+" is not a function")},GR=Bi,zR=oh,Js=function(r,e){var t=r[e];return zR(t)?void 0:GR(t)},fm=sn,dm=_r,pm=kn,WR=TypeError,$R=function(r,e){var t,n;if(e==="string"&&dm(t=r.toString)&&!pm(n=fm(t,r))||dm(t=r.valueOf)&&!pm(n=fm(t,r))||e!=="string"&&dm(t=r.toString)&&!pm(n=fm(t,r)))return n;throw new WR("Can't convert object to primitive value")},B5={exports:{}},b5=lr,qR=Object.defineProperty,gm=function(r,e){try{qR(b5,r,{value:e,configurable:!0,writable:!0})}catch{b5[r]=e}return e},XR=lr,YR=gm,x5="__core-js_shared__",C5=B5.exports=XR[x5]||YR(x5,{});(C5.versions||(C5.versions=[])).push({version:"3.49.0",mode:"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"});var mm=B5.exports,E5=mm,vm=function(r,e){return E5[r]||(E5[r]=e||{})},JR=NA,ZR=Object,hh=function(r){return ZR(JR(r))},eD=wr,tD=hh,rD=eD({}.hasOwnProperty),PA=Object.hasOwn||function(e,t){return rD(tD(e),t)},nD=wr,AD=0,iD=Math.random(),aD=nD(1.1.toString),S5=function(r){return"Symbol("+(r===void 0?"":r)+")_"+aD(++AD+iD,36)},sD=lr,oD=vm,F5=PA,lD=S5,uD=v5,cD=w5,Zs=sD.Symbol,wm=oD("wks"),hD=cD?Zs.for||Zs:Zs&&Zs.withoutSetter||lD,$r=function(r){return F5(wm,r)||(wm[r]=uD&&F5(Zs,r)?Zs[r]:hD("Symbol."+r)),wm[r]},fD=sn,U5=kn,I5=y5,dD=Js,pD=$R,gD=$r,mD=TypeError,vD=gD("toPrimitive"),wD=function(r,e){if(!U5(r)||I5(r))return r;var t=dD(r,vD),n;if(t){if(e===void 0&&(e="default"),n=fD(t,r,e),!U5(n)||I5(n))return n;throw new mD("Can't convert object to primitive value")}return e===void 0&&(e="number"),pD(r,e)},yD=wD,BD=y5,T5=function(r){var e=yD(r,"string");return BD(e)?e:e+""},bD=lr,_5=kn,ym=bD.document,xD=_5(ym)&&_5(ym.createElement),fh=function(r){return xD?ym.createElement(r):{}},CD=QA,ED=vr,SD=fh,L5=!CD&&!ED(function(){return Object.defineProperty(SD("div"),"a",{get:function(){return 7}}).a!==7}),FD=QA,UD=sn,ID=n5,TD=am,_D=Fl,LD=T5,QD=PA,ND=L5,Q5=Object.getOwnPropertyDescriptor;Sl.f=FD?Q5:function(e,t){if(e=_D(e),t=LD(t),ND)try{return Q5(e,t)}catch{}if(QD(e,t))return TD(!UD(ID.f,e,t),e[t])};var bi={},OD=QA,PD=vr,N5=OD&&PD(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),RD=kn,DD=String,kD=TypeError,Un=function(r){if(RD(r))return r;throw new kD(DD(r)+" is not an object")},HD=QA,MD=L5,KD=N5,dh=Un,O5=T5,jD=TypeError,Bm=Object.defineProperty,VD=Object.getOwnPropertyDescriptor,bm="enumerable",xm="configurable",Cm="writable";bi.f=HD?KD?function(e,t,n){if(dh(e),t=O5(t),dh(n),typeof e=="function"&&t==="prototype"&&"value"in n&&Cm in n&&!n[Cm]){var A=VD(e,t);A&&A[Cm]&&(e[t]=n.value,n={configurable:xm in n?n[xm]:A[xm],enumerable:bm in n?n[bm]:A[bm],writable:!1})}return Bm(e,t,n)}:Bm:function(e,t,n){if(dh(e),t=O5(t),dh(n),MD)try{return Bm(e,t,n)}catch{}if("get"in n||"set"in n)throw new jD("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var GD=QA,zD=bi,WD=am,Il=GD?function(r,e,t){return zD.f(r,e,WD(1,t))}:function(r,e,t){return r[e]=t,r},P5={exports:{}},Em=QA,$D=PA,R5=Function.prototype,qD=Em&&Object.getOwnPropertyDescriptor,D5=$D(R5,"name"),XD=D5&&(function(){}).name==="something",YD=D5&&(!Em||Em&&qD(R5,"name").configurable),ph={PROPER:XD,CONFIGURABLE:YD},JD=wr,ZD=_r,Sm=mm,ek=JD(Function.toString);ZD(Sm.inspectSource)||(Sm.inspectSource=function(r){return ek(r)});var Fm=Sm.inspectSource,tk=lr,rk=_r,k5=tk.WeakMap,nk=rk(k5)&&/native code/.test(String(k5)),Ak=vm,ik=S5,H5=Ak("keys"),Um=function(r){return H5[r]||(H5[r]=ik(r))},Im={},ak=nk,M5=lr,sk=kn,ok=Il,Tm=PA,_m=mm,lk=Um,uk=Im,K5="Object already initialized",Lm=M5.TypeError,ck=M5.WeakMap,gh,Tl,mh,hk=function(r){return mh(r)?Tl(r):gh(r,{})},fk=function(r){return function(e){var t;if(!sk(e)||(t=Tl(e)).type!==r)throw new Lm("Incompatible receiver, "+r+" required");return t}};if(ak||_m.state){var ri=_m.state||(_m.state=new ck);ri.get=ri.get,ri.has=ri.has,ri.set=ri.set,gh=function(r,e){if(ri.has(r))throw new Lm(K5);return e.facade=r,ri.set(r,e),e},Tl=function(r){return ri.get(r)||{}},mh=function(r){return ri.has(r)}}else{var eo=lk("state");uk[eo]=!0,gh=function(r,e){if(Tm(r,eo))throw new Lm(K5);return e.facade=r,ok(r,eo,e),e},Tl=function(r){return Tm(r,eo)?r[eo]:{}},mh=function(r){return Tm(r,eo)}}var vh={set:gh,get:Tl,has:mh,enforce:hk,getterFor:fk},Qm=wr,dk=vr,pk=_r,wh=PA,Nm=QA,gk=ph.CONFIGURABLE,mk=Fm,j5=vh,vk=j5.enforce,wk=j5.get,V5=String,yh=Object.defineProperty,yk=Qm("".slice),Bk=Qm("".replace),bk=Qm([].join),xk=Nm&&!dk(function(){return yh(function(){},"length",{value:8}).length!==8}),Ck=String(String).split("String"),Ek=P5.exports=function(r,e,t){yk(V5(e),0,7)==="Symbol("&&(e="["+Bk(V5(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!wh(r,"name")||gk&&r.name!==e)&&(Nm?yh(r,"name",{value:e,configurable:!0}):r.name=e),xk&&t&&wh(t,"arity")&&r.length!==t.arity&&yh(r,"length",{value:t.arity});try{t&&wh(t,"constructor")&&t.constructor?Nm&&yh(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch{}var n=vk(r);return wh(n,"source")||(n.source=bk(Ck,typeof e=="string"?e:"")),r};Function.prototype.toString=Ek(function(){return pk(this)&&wk(this).source||mk(this)},"toString");var G5=P5.exports,Sk=_r,Fk=bi,Uk=G5,Ik=gm,qa=function(r,e,t,n){n||(n={});var A=n.enumerable,i=n.name!==void 0?n.name:e;if(Sk(t)&&Uk(t,i,n),n.global)A?r[e]=t:Ik(e,t);else{try{n.unsafe?r[e]&&(A=!0):delete r[e]}catch{}A?r[e]=t:Fk.f(r,e,{value:t,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return r},z5={},Tk=Math.ceil,_k=Math.floor,Lk=Math.trunc||function(e){var t=+e;return(t>0?_k:Tk)(t)},Qk=Lk,Bh=function(r){var e=+r;return e!==e||e===0?0:Qk(e)},Nk=Bh,Ok=Math.max,Pk=Math.min,Rk=function(r,e){var t=Nk(r);return t<0?Ok(t+e,0):Pk(t,e)},Dk=Bh,kk=Math.min,to=function(r){var e=Dk(r);return e>0?kk(e,9007199254740991):0},Hk=to,Om=function(r){return Hk(r.length)},Mk=Fl,Kk=Rk,jk=Om,Vk=function(r){return function(e,t,n){var A=Mk(e),i=jk(A);if(i===0)return!r&&-1;var a=Kk(n,i),s;if(r&&t!==t){for(;i>a;)if(s=A[a++],s!==s)return!0}else for(;i>a;a++)if((r||a in A)&&A[a]===t)return r||a||0;return!r&&-1}},W5={indexOf:Vk(!1)},Gk=wr,Pm=PA,zk=Fl,Wk=W5.indexOf,$k=Im,$5=Gk([].push),q5=function(r,e){var t=zk(r),n=0,A=[],i;for(i in t)!Pm($k,i)&&Pm(t,i)&&$5(A,i);for(;e.length>n;)Pm(t,i=e[n++])&&(~Wk(A,i)||$5(A,i));return A},Rm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qk=q5,Xk=Rm,Yk=Xk.concat("length","prototype");z5.f=Object.getOwnPropertyNames||function(e){return qk(e,Yk)};var X5={};X5.f=Object.getOwnPropertySymbols;var Jk=$a,Zk=wr,eH=z5,tH=X5,rH=Un,nH=Zk([].concat),AH=Jk("Reflect","ownKeys")||function(e){var t=eH.f(rH(e)),n=tH.f;return n?nH(t,n(e)):t},Y5=PA,iH=AH,aH=Sl,sH=bi,oH=function(r,e,t){for(var n=iH(e),A=sH.f,i=aH.f,a=0;a<n.length;a++){var s=n[a];!Y5(r,s)&&!(t&&Y5(t,s))&&A(r,s,i(e,s))}},lH=vr,uH=_r,cH=/#|\.prototype\./,_l=function(r,e){var t=fH[hH(r)];return t===pH?!0:t===dH?!1:uH(e)?lH(e):!!e},hH=_l.normalize=function(r){return String(r).replace(cH,".").toLowerCase()},fH=_l.data={},dH=_l.NATIVE="N",pH=_l.POLYFILL="P",J5=_l,bh=lr,gH=Sl.f,mH=Il,vH=qa,wH=gm,yH=oH,BH=J5,In=function(r,e){var t=r.target,n=r.global,A=r.stat,i,a,s,o,l,u;if(n?a=bh:A?a=bh[t]||wH(t,{}):a=bh[t]&&bh[t].prototype,a)for(s in e){if(l=e[s],r.dontCallGetSet?(u=gH(a,s),o=u&&u.value):o=a[s],i=BH(n?s:t+(A?".":"#")+s,r.forced),!i&&o!==void 0){if(typeof l==typeof o)continue;yH(l,o)}(r.sham||o&&o.sham)&&mH(l,"sham",!0),vH(a,s,l,r)}},Ll=lr,bH=Ul,xH=Wa,xh=function(r){return bH.slice(0,r.length)===r},Z5=function(){return xh("Bun/")?"BUN":xh("Cloudflare-Workers")?"CLOUDFLARE":xh("Deno/")?"DENO":xh("Node.js/")?"NODE":Ll.Bun&&typeof Bun.version=="string"?"BUN":Ll.Deno&&typeof Deno.version=="object"?"DENO":xH(Ll.process)==="process"?"NODE":Ll.window&&Ll.document?"BROWSER":"REST"}(),CH=Z5,Ch=CH==="NODE",EH=lr,SH=EH,FH=wr,UH=Bi,IH=function(r,e,t){try{return FH(UH(Object.getOwnPropertyDescriptor(r,e)[t]))}catch{}},TH=kn,_H=function(r){return TH(r)||r===null},LH=_H,QH=String,NH=TypeError,OH=function(r){if(LH(r))return r;throw new NH("Can't set "+QH(r)+" as a prototype")},PH=IH,RH=kn,DH=NA,kH=OH,ex=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,e={},t;try{t=PH(Object.prototype,"__proto__","set"),t(e,[]),r=e instanceof Array}catch{}return function(A,i){return DH(A),kH(i),RH(A)&&(r?t(A,i):A.__proto__=i),A}}():void 0),HH=bi.f,MH=PA,KH=$r,tx=KH("toStringTag"),Eh=function(r,e,t){r&&!t&&(r=r.prototype),r&&!MH(r,tx)&&HH(r,tx,{configurable:!0,value:e})},rx=G5,jH=bi,VH=function(r,e,t){return t.get&&rx(t.get,e,{getter:!0}),t.set&&rx(t.set,e,{setter:!0}),jH.f(r,e,t)},GH=$a,zH=VH,WH=$r,$H=QA,nx=WH("species"),qH=function(r){var e=GH(r);$H&&e&&!e[nx]&&zH(e,nx,{configurable:!0,get:function(){return this}})},XH=lh,YH=TypeError,JH=function(r,e){if(XH(e,r))return r;throw new YH("Incorrect invocation")},ZH=$r,eM=ZH("toStringTag"),Ax={};Ax[eM]="z";var tM=String(Ax)==="[object z]",rM=tM,nM=_r,Sh=Wa,AM=$r,iM=AM("toStringTag"),aM=Object,sM=Sh(function(){return arguments}())==="Arguments",oM=function(r,e){try{return r[e]}catch{}},Dm=rM?Sh:function(r){var e,t,n;return r===void 0?"Undefined":r===null?"Null":typeof(t=oM(e=aM(r),iM))=="string"?t:sM?Sh(e):(n=Sh(e))==="Object"&&nM(e.callee)?"Arguments":n},lM=wr,uM=vr,ix=_r,cM=Dm,hM=$a,fM=Fm,ax=function(){},sx=hM("Reflect","construct"),km=/^\s*(?:class|function)\b/,dM=lM(km.exec),pM=!km.test(ax),Ql=function(e){if(!ix(e))return!1;try{return sx(ax,[],e),!0}catch{return!1}},ox=function(e){if(!ix(e))return!1;switch(cM(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pM||!!dM(km,fM(e))}catch{return!0}};ox.sham=!0;var gM=!sx||uM(function(){var r;return Ql(Ql.call)||!Ql(Object)||!Ql(function(){r=!0})||r})?ox:Ql,mM=gM,vM=ch,wM=TypeError,yM=function(r){if(mM(r))return r;throw new wM(vM(r)+" is not a constructor")},lx=Un,BM=yM,bM=oh,xM=$r,CM=xM("species"),ux=function(r,e){var t=lx(r).constructor,n;return t===void 0||bM(n=lx(t)[CM])?e:BM(n)},EM=ah,cx=Function.prototype,hx=cx.apply,fx=cx.call,dx=typeof Reflect=="object"&&Reflect.apply||(EM?fx.bind(hx):function(){return fx.apply(hx,arguments)}),SM=Wa,FM=wr,Fh=function(r){if(SM(r)==="Function")return FM(r)},px=Fh,UM=Bi,IM=ah,TM=px(px.bind),Hm=function(r,e){return UM(r),e===void 0?r:IM?TM(r,e):function(){return r.apply(e,arguments)}},_M=$a,gx=_M("document","documentElement"),LM=wr,QM=LM([].slice),NM=TypeError,OM=function(r,e){if(r<e)throw new NM("Not enough arguments");return r},mx=Ul,vx=/ipad|iphone|ipod/i.test(mx)&&/applewebkit/i.test(mx),Yn=lr,PM=dx,RM=Hm,wx=_r,DM=PA,yx=vr,Bx=gx,kM=QM,bx=fh,HM=OM,MM=vx,KM=Ch,Mm=Yn.setImmediate,xx=Yn.clearImmediate,jM=Yn.process,Km=Yn.Dispatch,VM=Yn.Function,Cx=Yn.MessageChannel,GM=Yn.String,jm=0,Nl={},Ex="onreadystatechange",Ol,Xa,Vm,Gm;yx(function(){Ol=Yn.location});var zm=function(r){if(DM(Nl,r)){var e=Nl[r];delete Nl[r],e()}},Wm=function(r){return function(){zm(r)}},Sx=function(r){zm(r.data)},Fx=function(r){Yn.postMessage(GM(r),Ol.protocol+"//"+Ol.host)};(!Mm||!xx)&&(Mm=function(e){HM(arguments.length,1);var t=wx(e)?e:VM(e),n=kM(arguments,1);return Nl[++jm]=function(){PM(t,void 0,n)},Xa(jm),jm},xx=function(e){delete Nl[e]},KM?Xa=function(r){jM.nextTick(Wm(r))}:Km&&Km.now?Xa=function(r){Km.now(Wm(r))}:Cx&&!MM?(Vm=new Cx,Gm=Vm.port2,Vm.port1.onmessage=Sx,Xa=RM(Gm.postMessage,Gm)):Yn.addEventListener&&wx(Yn.postMessage)&&!Yn.importScripts&&Ol&&Ol.protocol!=="file:"&&!yx(Fx)?(Xa=Fx,Yn.addEventListener("message",Sx,!1)):Ex in bx("script")?Xa=function(r){Bx.appendChild(bx("script"))[Ex]=function(){Bx.removeChild(this),zm(r)}}:Xa=function(r){setTimeout(Wm(r),0)});var Ux={set:Mm},Ix=lr,zM=QA,WM=Object.getOwnPropertyDescriptor,$M=function(r){if(!zM)return Ix[r];var e=WM(Ix,r);return e&&e.value},Tx=function(){this.head=null,this.tail=null};Tx.prototype={add:function(r){var e={item:r,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var r=this.head;if(r){var e=this.head=r.next;return e===null&&(this.tail=null),r.item}}};var _x=Tx,qM=Ul,XM=/ipad|iphone|ipod/i.test(qM)&&typeof Pebble<"u",YM=Ul,JM=/web0s(?!.*chrome)/i.test(YM),ro=lr,ZM=$M,Lx=Hm,$m=Ux.set,e7=_x,t7=vx,r7=XM,n7=JM,qm=Ch,Qx=ro.MutationObserver||ro.WebKitMutationObserver,Nx=ro.document,Ox=ro.process,Uh=ro.Promise,Xm=ZM("queueMicrotask"),no,Ym,Jm,Ih,Px;if(!Xm){var Th=new e7,_h=function(){var r,e;for(qm&&(r=Ox.domain)&&r.exit();e=Th.get();)try{e()}catch(t){throw Th.head&&no(),t}r&&r.enter()};!t7&&!qm&&!n7&&Qx&&Nx?(Ym=!0,Jm=Nx.createTextNode(""),new Qx(_h).observe(Jm,{characterData:!0}),no=function(){Jm.data=Ym=!Ym}):!r7&&Uh&&Uh.resolve?(Ih=Uh.resolve(void 0),Ih.constructor=Uh,Px=Lx(Ih.then,Ih),no=function(){Px(_h)}):qm?no=function(){Ox.nextTick(_h)}:($m=Lx($m,ro),no=function(){$m(_h)}),Xm=function(r){Th.head||no(),Th.add(r)}}var A7=Xm,i7=function(r,e){try{arguments.length===1?console.error(r):console.error(r,e)}catch{}},Zm=function(r){try{return{error:!1,value:r()}}catch(e){return{error:!0,value:e}}},a7=lr,Lh=a7.Promise,s7=lr,Pl=Lh,o7=_r,l7=J5,u7=Fm,c7=$r,Rx=Z5,e0=hm;Pl&&Pl.prototype;var h7=c7("species"),t0=!1,Dx=o7(s7.PromiseRejectionEvent),f7=l7("Promise",function(){var r=u7(Pl),e=r!==String(Pl);if(!e&&e0===66)return!0;if(!e0||e0<51||!/native code/.test(r)){var t=new Pl(function(i){i(1)}),n=function(i){i(function(){},function(){})},A=t.constructor={};if(A[h7]=n,t0=t.then(function(){})instanceof n,!t0)return!0}return!e&&(Rx==="BROWSER"||Rx==="DENO")&&!Dx}),Rl={CONSTRUCTOR:f7,REJECTION_EVENT:Dx,SUBCLASSING:t0},Ao={},kx=Bi,d7=TypeError,p7=function(r){var e,t;this.promise=new r(function(n,A){if(e!==void 0||t!==void 0)throw new d7("Bad Promise constructor");e=n,t=A}),this.resolve=kx(e),this.reject=kx(t)};Ao.f=function(r){return new p7(r)};var g7=In,Qh=Ch,oa=lr,m7=SH,io=sn,Hx=qa,Mx=ex,v7=Eh,w7=qH,y7=Bi,Nh=_r,B7=kn,b7=JH,x7=ux,Kx=Ux.set,r0=A7,C7=i7,E7=Zm,S7=_x,jx=vh,Oh=Lh,n0=Rl,Vx=Ao,Ph="Promise",Gx=n0.CONSTRUCTOR,F7=n0.REJECTION_EVENT,U7=n0.SUBCLASSING,A0=jx.getterFor(Ph),I7=jx.set,ao=Oh&&Oh.prototype,Ya=Oh,Rh=ao,zx=oa.TypeError,i0=oa.document,a0=oa.process,s0=Vx.f,T7=s0,_7=!!(i0&&i0.createEvent&&oa.dispatchEvent),Wx="unhandledrejection",L7="rejectionhandled",$x=0,qx=1,Q7=2,o0=1,Xx=2,Dh,Yx,Jx,Zx,eC=function(r){var e;return B7(r)&&Nh(e=r.then)?e:!1},tC=function(r,e){var t=e.value,n=e.state===qx,A=n?r.ok:r.fail,i=r.resolve,a=r.reject,s=r.domain,o,l,u;try{A?(n||(e.rejection===Xx&&O7(e),e.rejection=o0),A===!0?o=t:(s&&s.enter(),o=A(t),s&&(s.exit(),u=!0)),o===r.promise?a(new zx("Promise-chain cycle")):(l=eC(o))?io(l,o,i,a):i(o)):a(t)}catch(h){s&&!u&&s.exit(),a(h)}},rC=function(r,e){r.notified||(r.notified=!0,r0(function(){for(var t=r.reactions,n;n=t.get();)tC(n,r);r.notified=!1,e&&!r.rejection&&N7(r)}))},nC=function(r,e,t){var n,A;_7?(n=i0.createEvent("Event"),n.promise=e,n.reason=t,n.initEvent(r,!1,!0),oa.dispatchEvent(n)):n={promise:e,reason:t},!F7&&(A=oa["on"+r])?A(n):r===Wx&&C7("Unhandled promise rejection",t)},N7=function(r){io(Kx,oa,function(){var e=r.facade,t=r.value,n=AC(r),A;if(n&&(A=E7(function(){Qh?a0.emit("unhandledRejection",t,e):nC(Wx,e,t)}),r.rejection=Qh||AC(r)?Xx:o0,A.error))throw A.value})},AC=function(r){return r.rejection!==o0&&!r.parent},O7=function(r){io(Kx,oa,function(){var e=r.facade;Qh?a0.emit("rejectionHandled",e):nC(L7,e,r.value)})},so=function(r,e,t){return function(n){r(e,n,t)}},oo=function(r,e,t){r.done||(r.done=!0,t&&(r=t),r.value=e,r.state=Q7,rC(r,!0))},l0=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw new zx("Promise can't be resolved itself");var n=eC(e);n?r0(function(){var A={done:!1};try{io(n,e,so(l0,A,r),so(oo,A,r))}catch(i){oo(A,i,r)}}):(r.value=e,r.state=qx,rC(r,!1))}catch(A){oo({done:!1},A,r)}}};if(Gx&&(Ya=function(e){b7(this,Rh),y7(e),io(Dh,this);var t=A0(this);try{e(so(l0,t),so(oo,t))}catch(n){oo(t,n)}},Rh=Ya.prototype,Dh=function(e){I7(this,{type:Ph,done:!1,notified:!1,parent:!1,reactions:new S7,rejection:!1,state:$x,value:null})},Dh.prototype=Hx(Rh,"then",function(e,t){var n=A0(this),A=s0(x7(this,Ya));return n.parent=!0,A.ok=Nh(e)?e:!0,A.fail=Nh(t)&&t,A.domain=Qh?a0.domain:void 0,n.state===$x?n.reactions.add(A):r0(function(){tC(A,n)}),A.promise}),Yx=function(){var r=new Dh,e=A0(r);this.promise=r,this.resolve=so(l0,e),this.reject=so(oo,e)},Vx.f=s0=function(r){return r===Ya||r===Jx?new Yx(r):T7(r)},Nh(Oh)&&ao!==Object.prototype)){Zx=ao.then,U7||Hx(ao,"then",function(e,t){var n=this;return new Ya(function(A,i){io(Zx,n,A,i)}).then(e,t)},{unsafe:!0});try{delete ao.constructor}catch{}Mx&&Mx(ao,Rh)}g7({global:!0,constructor:!0,wrap:!0,forced:Gx},{Promise:Ya}),Jx=m7.Promise,v7(Ya,Ph,!1),w7(Ph);var Dl={},P7=$r,R7=Dl,D7=P7("iterator"),k7=Array.prototype,H7=function(r){return r!==void 0&&(R7.Array===r||k7[D7]===r)},M7=Dm,iC=Js,K7=oh,j7=Dl,V7=$r,G7=V7("iterator"),aC=function(r){if(!K7(r))return iC(r,G7)||iC(r,"@@iterator")||j7[M7(r)]},z7=sn,W7=Bi,$7=Un,q7=ch,X7=aC,Y7=TypeError,J7=function(r,e){var t=arguments.length<2?X7(r):e;if(W7(t))return $7(z7(t,r));throw new Y7(q7(r)+" is not iterable")},Z7=sn,sC=Un,e9=Js,t9=function(r,e,t){var n,A;sC(r);try{if(n=e9(r,"return"),!n){if(e==="throw")throw t;return t}n=Z7(n,r)}catch(i){A=!0,n=i}if(e==="throw")throw t;if(A)throw n;return sC(n),t},r9=Hm,n9=sn,A9=Un,i9=ch,a9=H7,s9=Om,oC=lh,o9=J7,l9=aC,lC=t9,u9=TypeError,kh=function(r,e){this.stopped=r,this.result=e},uC=kh.prototype,cC=function(r,e,t){var n=t&&t.that,A=!!(t&&t.AS_ENTRIES),i=!!(t&&t.IS_RECORD),a=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),o=r9(e,n),l,u,h,d,c,p,m,y=function(B){var I=l;return l=void 0,I&&lC(I,"normal"),new kh(!0,B)},g=function(B){return A?(A9(B),s?o(B[0],B[1],y):o(B[0],B[1])):s?o(B,y):o(B)};if(i)l=r.iterator;else if(a)l=r;else{if(u=l9(r),!u)throw new u9(i9(r)+" is not iterable");if(a9(u)){for(h=0,d=s9(r);d>h;h++)if(c=g(r[h]),c&&oC(uC,c))return c;return new kh(!1)}l=o9(r,u)}for(p=i?r.next:l.next;!(m=n9(p,l)).done;){var w=m.value;try{c=g(w)}catch(B){if(l)lC(l,"throw",B);else throw B}if(typeof c=="object"&&c&&oC(uC,c))return c}return new kh(!1)},c9=$r,hC=c9("iterator"),fC=!1;try{var h9=0,dC={next:function(){return{done:!!h9++}},return:function(){fC=!0}};dC[hC]=function(){return this},Array.from(dC,function(){throw 2})}catch{}var f9=function(r,e){try{if(!e&&!fC)return!1}catch{return!1}var t=!1;try{var n={};n[hC]=function(){return{next:function(){return{done:t=!0}}}},r(n)}catch{}return t},d9=Lh,p9=f9,g9=Rl.CONSTRUCTOR,pC=g9||!p9(function(r){d9.all(r).then(void 0,function(){})}),m9=In,v9=sn,w9=Bi,y9=Ao,B9=Zm,b9=cC,x9=pC;m9({target:"Promise",stat:!0,forced:x9},{all:function(e){var t=this,n=y9.f(t),A=n.resolve,i=n.reject,a=B9(function(){var s=w9(t.resolve),o=[],l=0,u=1;b9(e,function(h){var d=l++,c=!1;u++,v9(s,t,h).then(function(p){c||(c=!0,o[d]=p,--u||A(o))},i)}),--u||A(o)});return a.error&&i(a.value),n.promise}});var C9=In,E9=Rl.CONSTRUCTOR,u0=Lh,S9=$a,F9=_r,U9=qa,gC=u0&&u0.prototype;if(C9({target:"Promise",proto:!0,forced:E9,real:!0},{catch:function(r){return this.then(void 0,r)}}),F9(u0)){var mC=S9("Promise").prototype.catch;gC.catch!==mC&&U9(gC,"catch",mC,{unsafe:!0})}var I9=In,T9=sn,_9=Bi,L9=Ao,Q9=Zm,N9=cC,O9=pC;I9({target:"Promise",stat:!0,forced:O9},{race:function(e){var t=this,n=L9.f(t),A=n.reject,i=Q9(function(){var a=_9(t.resolve);N9(e,function(s){T9(a,t,s).then(n.resolve,A)})});return i.error&&A(i.value),n.promise}});var P9=In,R9=Ao,D9=Rl.CONSTRUCTOR;P9({target:"Promise",stat:!0,forced:D9},{reject:function(e){var t=R9.f(this),n=t.reject;return n(e),t.promise}});var k9=Un,H9=kn,M9=Ao,K9=function(r,e){if(k9(r),H9(e)&&e.constructor===r)return e;var t=M9.f(r),n=t.resolve;return n(e),t.promise},j9=In,V9=$a,G9=Rl.CONSTRUCTOR,z9=K9;V9("Promise"),j9({target:"Promise",stat:!0,forced:G9},{resolve:function(e){return z9(this,e)}});function vC(r,e,t,n,A,i,a){try{var s=r[i](a),o=s.value}catch(l){return void t(l)}s.done?e(o):Promise.resolve(o).then(n,A)}function xi(r){return function(){var e=this,t=arguments;return new Promise(function(n,A){var i=r.apply(e,t);function a(o){vC(i,n,A,a,s,"next",o)}function s(o){vC(i,n,A,a,s,"throw",o)}a(void 0)})}}var W9=Dm,$9=String,ni=function(r){if(W9(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return $9(r)},q9=Un,wC=function(){var r=q9(this),e="";return r.hasIndices&&(e+="d"),r.global&&(e+="g"),r.ignoreCase&&(e+="i"),r.multiline&&(e+="m"),r.dotAll&&(e+="s"),r.unicode&&(e+="u"),r.unicodeSets&&(e+="v"),r.sticky&&(e+="y"),e},c0=vr,X9=lr,h0=X9.RegExp,f0=c0(function(){var r=h0("a","y");return r.lastIndex=2,r.exec("abcd")!==null});f0||c0(function(){return!h0("a","y").sticky});var Y9=f0||c0(function(){var r=h0("^r","gy");return r.lastIndex=2,r.exec("str")!==null}),yC={BROKEN_CARET:Y9,UNSUPPORTED_Y:f0},BC={},J9=q5,Z9=Rm,eK=Object.keys||function(e){return J9(e,Z9)},tK=QA,rK=N5,nK=bi,AK=Un,iK=Fl,aK=eK;BC.f=tK&&!rK?Object.defineProperties:function(e,t){AK(e);for(var n=iK(t),A=aK(t),i=A.length,a=0,s;i>a;)nK.f(e,s=A[a++],n[s]);return e};var sK=Un,oK=BC,bC=Rm,lK=Im,uK=gx,cK=fh,hK=Um,xC=">",CC="<",d0="prototype",p0="script",EC=hK("IE_PROTO"),g0=function(){},SC=function(r){return CC+p0+xC+r+CC+"/"+p0+xC},FC=function(r){r.write(SC("")),r.close();var e=r.parentWindow.Object;return r=null,e},fK=function(){var r=cK("iframe"),e="java"+p0+":",t;return r.style.display="none",uK.appendChild(r),r.src=String(e),t=r.contentWindow.document,t.open(),t.write(SC("document.F=Object")),t.close(),t.F},Hh,Mh=function(){try{Hh=new ActiveXObject("htmlfile")}catch{}Mh=typeof document<"u"?document.domain&&Hh?FC(Hh):fK():FC(Hh);for(var r=bC.length;r--;)delete Mh[d0][bC[r]];return Mh()};lK[EC]=!0;var m0=Object.create||function(e,t){var n;return e!==null?(g0[d0]=sK(e),n=new g0,g0[d0]=null,n[EC]=e):n=Mh(),t===void 0?n:oK.f(n,t)},dK=vr,pK=lr,gK=pK.RegExp,mK=dK(function(){var r=gK(".","s");return!(r.dotAll&&r.test(`
341
+ `)&&r.flags==="s")}),vK=vr,wK=lr,yK=wK.RegExp,BK=vK(function(){var r=yK("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"}),lo=sn,Kh=wr,bK=ni,xK=wC,CK=yC,EK=vm,SK=m0,FK=vh.get,UK=mK,IK=BK,TK=EK("native-string-replace",String.prototype.replace),jh=RegExp.prototype.exec,v0=jh,_K=Kh("".charAt),LK=Kh("".indexOf),QK=Kh("".replace),UC=Kh("".slice),w0=function(){var r=/a/,e=/b*/g;return lo(jh,r,"a"),lo(jh,e,"a"),r.lastIndex!==0||e.lastIndex!==0}(),IC=CK.BROKEN_CARET,y0=/()??/.exec("")[1]!==void 0,NK=w0||y0||IC||UK||IK,TC=function(r,e){for(var t=r.groups=SK(null),n=0;n<e.length;n++){var A=e[n];t[A[0]]=r[A[1]]}};NK&&(v0=function(e){var t=this,n=FK(t),A=bK(e),i=n.raw,a,s,o;if(i)return i.lastIndex=t.lastIndex,a=lo(v0,i,A),t.lastIndex=i.lastIndex,a&&n.groups&&TC(a,n.groups),a;var l=n.groups,u=IC&&t.sticky,h=lo(xK,t),d=t.source,c=0,p=A;if(u){h=QK(h,"y",""),LK(h,"g")===-1&&(h+="g"),p=UC(A,t.lastIndex);var m=t.lastIndex>0&&_K(A,t.lastIndex-1);t.lastIndex>0&&(!t.multiline||t.multiline&&m!==`
342
+ `&&m!=="\r"&&m!=="\u2028"&&m!=="\u2029")&&(d="(?: (?:"+d+"))",p=" "+p,c++),s=new RegExp("^(?:"+d+")",h)}y0&&(s=new RegExp("^"+d+"$(?!\\s)",h)),w0&&(o=t.lastIndex);var y=lo(jh,u?s:t,p);return u?y?(y.input=A,y[0]=UC(y[0],c),y.index=t.lastIndex,t.lastIndex+=y[0].length):t.lastIndex=0:w0&&y&&(t.lastIndex=t.global?y.index+y[0].length:o),y0&&y&&y.length>1&&lo(TK,y[0],s,function(){for(var g=1;g<arguments.length-2;g++)arguments[g]===void 0&&(y[g]=void 0)}),y&&l&&TC(y,l),y});var B0=v0,OK=In,_C=B0;OK({target:"RegExp",proto:!0,forced:/./.exec!==_C},{exec:_C});var LC=sn,QC=qa,PK=B0,NC=vr,OC=$r,RK=Il,DK=OC("species"),b0=RegExp.prototype,x0=function(r,e,t,n){var A=OC(r),i=!NC(function(){var l={};return l[A]=function(){return 7},""[r](l)!==7}),a=i&&!NC(function(){var l=!1,u=/a/;if(r==="split"){var h={};h[DK]=function(){return u},u={constructor:h,flags:""},u[A]=/./[A]}return u.exec=function(){return l=!0,null},u[A](""),!l});if(!i||!a||t){var s=/./[A],o=e(A,""[r],function(l,u,h,d,c){var p=u.exec;return p===PK||p===b0.exec?i&&!c?{done:!0,value:LC(s,u,h,d)}:{done:!0,value:LC(l,h,u,d)}:{done:!1}});QC(String.prototype,r,o[0]),QC(b0,A,o[1])}n&&RK(b0[A],"sham",!0)},C0=wr,kK=Bh,HK=ni,MK=NA,KK=C0("".charAt),PC=C0("".charCodeAt),jK=C0("".slice),VK=function(r){return function(e,t){var n=HK(MK(e)),A=kK(t),i=n.length,a,s;return A<0||A>=i?r?"":void 0:(a=PC(n,A),a<55296||a>56319||A+1===i||(s=PC(n,A+1))<56320||s>57343?r?KK(n,A):a:r?jK(n,A,A+2):(a-55296<<10)+(s-56320)+65536)}},GK={charAt:VK(!0)},zK=GK.charAt,E0=function(r,e,t){return e+(t&&zK(r,e).length||1)},WK=lr,$K=vr,RC=WK.RegExp,qK=!$K(function(){var r=!0;try{RC(".","d")}catch{r=!1}var e={},t="",n=r?"dgimsy":"gimsy",A=function(o,l){Object.defineProperty(e,o,{get:function(){return t+=l,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};r&&(i.hasIndices="d");for(var a in i)A(a,i[a]);var s=Object.getOwnPropertyDescriptor(RC.prototype,"flags").get.call(e);return s!==n||t!==n}),XK={correct:qK},YK=sn,JK=PA,ZK=lh,DC=XK,ej=wC,tj=RegExp.prototype,Vh=DC.correct?function(r){return r.flags}:function(r){return!DC.correct&&ZK(tj,r)&&!JK(r,"flags")?YK(ej,r):r.flags},kC=sn,rj=Un,nj=_r,Aj=Wa,ij=B0,aj=TypeError,S0=function(r,e){var t=r.exec;if(nj(t)){var n=kC(t,r,e);return n!==null&&rj(n),n}if(Aj(r)==="RegExp")return kC(ij,r,e);throw new aj("RegExp#exec called on incompatible receiver")},sj=sn,oj=wr,lj=x0,uj=Un,cj=kn,hj=to,Gh=ni,fj=NA,dj=Js,pj=E0,gj=Vh,HC=S0,F0=oj("".indexOf);lj("match",function(r,e,t){return[function(A){var i=fj(this),a=cj(A)?dj(A,r):void 0;return a?sj(a,A,i):new RegExp(A)[r](Gh(i))},function(n){var A=uj(this),i=Gh(n),a=t(e,A,i);if(a.done)return a.value;var s=Gh(gj(A));if(!~F0(s,"g"))return HC(A,i);var o=!!~F0(s,"u")||!!~F0(s,"v");A.lastIndex=0;for(var l=[],u=0,h;(h=HC(A,i))!==null;){var d=Gh(h[0]);l[u]=d,d===""&&(A.lastIndex=pj(i,hj(A.lastIndex),o)),u++}return u===0?null:l}]});var U0=wr,mj=hh,vj=Math.floor,I0=U0("".charAt),wj=U0("".replace),T0=U0("".slice),yj=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Bj=/\$([$&'`]|\d{1,2})/g,bj=function(r,e,t,n,A,i){var a=t+r.length,s=n.length,o=Bj;return A!==void 0&&(A=mj(A),o=yj),wj(i,o,function(l,u){var h;switch(I0(u,0)){case"$":return"$";case"&":return r;case"`":return T0(e,0,t);case"'":return T0(e,a);case"<":h=A[T0(u,1,-1)];break;default:var d=+u;if(d===0)return l;if(d>s){var c=vj(d/10);return c===0?l:c<=s?n[c-1]===void 0?I0(u,1):n[c-1]+I0(u,1):l}h=n[d-1]}return h===void 0?"":h})},xj=dx,MC=sn,zh=wr,Cj=x0,Ej=vr,Sj=Un,Fj=_r,Uj=kn,Ij=Bh,Tj=to,Ja=ni,_j=NA,Lj=E0,Qj=Js,Nj=bj,Oj=Vh,Pj=S0,Rj=$r,_0=Rj("replace"),Dj=Math.max,kj=Math.min,Hj=zh([].concat),L0=zh([].push),uo=zh("".indexOf),KC=zh("".slice),Mj=function(r){return r===void 0?r:String(r)},Kj=function(){return"a".replace(/./,"$0")==="$0"}(),jC=function(){return/./[_0]?/./[_0]("a","$0")==="":!1}(),jj=!Ej(function(){var r=/./;return r.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(r,"$<a>")!=="7"});Cj("replace",function(r,e,t){var n=jC?"$":"$0";return[function(i,a){var s=_j(this),o=Uj(i)?Qj(i,_0):void 0;return o?MC(o,i,s,a):MC(e,Ja(s),i,a)},function(A,i){var a=Sj(this),s=Ja(A),o=Fj(i);o||(i=Ja(i));var l=Ja(Oj(a));if(typeof i=="string"&&!~uo(i,n)&&!~uo(i,"$<")&&!~uo(l,"y")){var u=t(e,a,s,i);if(u.done)return u.value}var h=!!~uo(l,"g"),d;h&&(d=!!~uo(l,"u")||!!~uo(l,"v"),a.lastIndex=0);for(var c=[],p;p=Pj(a,s),!(p===null||(L0(c,p),!h));){var m=Ja(p[0]);m===""&&(a.lastIndex=Lj(s,Tj(a.lastIndex),d))}for(var y="",g=0,w=0;w<c.length;w++){p=c[w];for(var B=Ja(p[0]),I=Dj(kj(Ij(p.index),s.length),0),O=[],j,R=1;R<p.length;R++)L0(O,Mj(p[R]));var D=p.groups;if(o){var Q=Hj([B],O,I,s);D!==void 0&&L0(Q,D),j=Ja(xj(i,void 0,Q))}else j=Nj(B,s,I,O,D,i);I>=g&&(y+=KC(s,g,I)+j,g=I+B.length)}return y+KC(s,g)}]},!jj||!Kj||jC);var Vj=kn,Gj=Wa,zj=$r,Wj=zj("match"),$j=function(r){var e;return Vj(r)&&((e=r[Wj])!==void 0?!!e:Gj(r)==="RegExp")},qj=$j,Xj=TypeError,Q0=function(r){if(qj(r))throw new Xj("The method doesn't accept regular expressions");return r},Yj=$r,Jj=Yj("match"),N0=function(r){var e=/./;try{"/./"[r](e)}catch{try{return e[Jj]=!1,"/./"[r](e)}catch{}}return!1},Zj=In,eV=Fh,tV=Sl.f,rV=to,VC=ni,nV=Q0,AV=NA,iV=N0,aV=eV("".slice),sV=Math.min,GC=iV("startsWith"),oV=!GC&&!!function(){var r=tV(String.prototype,"startsWith");return r&&!r.writable}();Zj({target:"String",proto:!0,forced:!oV&&!GC},{startsWith:function(e){var t=VC(AV(this));nV(e);var n=VC(e),A=rV(sV(arguments.length>1?arguments[1]:void 0,t.length));return aV(t,A,A+n.length)===n}});var lV=$r,uV=m0,cV=bi.f,O0=lV("unscopables"),P0=Array.prototype;P0[O0]===void 0&&cV(P0,O0,{configurable:!0,value:uV(null)});var hV=function(r){P0[O0][r]=!0},fV=vr,dV=!fV(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}),pV=PA,gV=_r,mV=hh,vV=Um,wV=dV,zC=vV("IE_PROTO"),R0=Object,yV=R0.prototype,WC=wV?R0.getPrototypeOf:function(r){var e=mV(r);if(pV(e,zC))return e[zC];var t=e.constructor;return gV(t)&&e instanceof t?t.prototype:e instanceof R0?yV:null},BV=vr,bV=_r,xV=kn,$C=WC,CV=qa,EV=$r,D0=EV("iterator"),qC=!1,Za,k0,H0;[].keys&&(H0=[].keys(),"next"in H0?(k0=$C($C(H0)),k0!==Object.prototype&&(Za=k0)):qC=!0);var SV=!xV(Za)||BV(function(){var r={};return Za[D0].call(r)!==r});SV&&(Za={}),bV(Za[D0])||CV(Za,D0,function(){return this});var XC={IteratorPrototype:Za,BUGGY_SAFARI_ITERATORS:qC},FV=XC.IteratorPrototype,UV=m0,IV=am,TV=Eh,_V=Dl,LV=function(){return this},QV=function(r,e,t,n){var A=e+" Iterator";return r.prototype=UV(FV,{next:IV(+!n,t)}),TV(r,A,!1),_V[A]=LV,r},NV=In,OV=sn,YC=ph,PV=_r,RV=QV,JC=WC,ZC=ex,DV=Eh,kV=Il,M0=qa,HV=$r,MV=Dl,eE=XC,KV=YC.PROPER,jV=YC.CONFIGURABLE,tE=eE.IteratorPrototype,Wh=eE.BUGGY_SAFARI_ITERATORS,kl=HV("iterator"),rE="keys",Hl="values",nE="entries",VV=function(){return this},GV=function(r,e,t,n,A,i,a){RV(t,e,n);var s=function(g){if(g===A&&d)return d;if(!Wh&&g&&g in u)return u[g];switch(g){case rE:return function(){return new t(this,g)};case Hl:return function(){return new t(this,g)};case nE:return function(){return new t(this,g)}}return function(){return new t(this)}},o=e+" Iterator",l=!1,u=r.prototype,h=u[kl]||u["@@iterator"]||A&&u[A],d=!Wh&&h||s(A),c=e==="Array"&&u.entries||h,p,m,y;if(c&&(p=JC(c.call(new r)),p!==Object.prototype&&p.next&&(JC(p)!==tE&&(ZC?ZC(p,tE):PV(p[kl])||M0(p,kl,VV)),DV(p,o,!0))),KV&&A===Hl&&h&&h.name!==Hl&&(jV?kV(u,"name",Hl):(l=!0,d=function(){return OV(h,this)})),A)if(m={values:s(Hl),keys:i?d:s(rE),entries:s(nE)},a)for(y in m)(Wh||l||!(y in u))&&M0(u,y,m[y]);else NV({target:e,proto:!0,forced:Wh||l},m);return u[kl]!==d&&M0(u,kl,d,{name:A}),MV[e]=d,m},zV=function(r,e){return{value:r,done:e}},WV=Fl,K0=hV,AE=Dl,iE=vh,$V=bi.f,qV=GV,$h=zV,XV=QA,aE="Array Iterator",YV=iE.set,JV=iE.getterFor(aE),ZV=qV(Array,"Array",function(r,e){YV(this,{type:aE,target:WV(r),index:0,kind:e})},function(){var r=JV(this),e=r.target,t=r.index++;if(!e||t>=e.length)return r.target=null,$h(void 0,!0);switch(r.kind){case"keys":return $h(t,!1);case"values":return $h(e[t],!1)}return $h([t,e[t]],!1)},"values"),sE=AE.Arguments=AE.Array;if(K0("keys"),K0("values"),K0("entries"),XV&&sE.name!=="values")try{$V(sE,"name",{value:"values"})}catch{}var eG={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},tG=fh,j0=tG("span").classList,oE=j0&&j0.constructor&&j0.constructor.prototype,rG=oE===Object.prototype?void 0:oE,lE=lr,uE=eG,nG=rG,Ml=ZV,cE=Il,AG=Eh,iG=$r,V0=iG("iterator"),G0=Ml.values,hE=function(r,e){if(r){if(r[V0]!==G0)try{cE(r,V0,G0)}catch{r[V0]=G0}if(AG(r,e,!0),uE[e]){for(var t in Ml)if(r[t]!==Ml[t])try{cE(r,t,Ml[t])}catch{r[t]=Ml[t]}}}};for(var z0 in uE)hE(lE[z0]&&lE[z0].prototype,z0);hE(nG,"DOMTokenList");function aG(r,e){if(Rt(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(Rt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function sG(r){var e=aG(r,"string");return Rt(e)=="symbol"?e:e+""}function W0(r,e,t){return(e=sG(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var oG=Bi,lG=hh,uG=l5,cG=Om,fE=TypeError,dE="Reduce of empty array with no initial value",hG=function(r){return function(e,t,n,A){var i=lG(e),a=uG(i),s=cG(i);if(oG(t),s===0&&n<2)throw new fE(dE);var o=r?s-1:0,l=r?-1:1;if(n<2)for(;;){if(o in a){A=a[o],o+=l;break}if(o+=l,r?o<0:s<=o)throw new fE(dE)}for(;r?o>=0:s>o;o+=l)o in a&&(A=t(A,a[o],o,i));return A}},fG={left:hG(!1)},dG=vr,pE=function(r,e){var t=[][r];return!!t&&dG(function(){t.call(null,e||function(){return 1},1)})},pG=In,gG=fG.left,mG=pE,gE=hm,vG=Ch,wG=!vG&&gE>79&&gE<83,yG=wG||!mG("reduce");pG({target:"Array",proto:!0,forced:yG},{reduce:function(e){var t=arguments.length;return gG(this,e,t,t>1?arguments[1]:void 0)}});var BG=In,bG=Fh,xG=Sl.f,CG=to,mE=ni,EG=Q0,SG=NA,FG=N0,UG=bG("".slice),IG=Math.min,vE=FG("endsWith"),TG=!vE&&!!function(){var r=xG(String.prototype,"endsWith");return r&&!r.writable}();BG({target:"String",proto:!0,forced:!TG&&!vE},{endsWith:function(e){var t=mE(SG(this));EG(e);var n=mE(e),A=arguments.length>1?arguments[1]:void 0,i=t.length,a=A===void 0?i:IG(CG(A),i);return UG(t,a-n.length,a)===n}});var $0=sn,q0=wr,_G=x0,LG=Un,QG=kn,NG=NA,OG=ux,PG=E0,RG=to,X0=ni,DG=Js,kG=Vh,wE=S0,HG=yC,MG=vr,co=HG.UNSUPPORTED_Y,KG=4294967295,jG=Math.min,Y0=q0([].push),J0=q0("".slice),qh=q0("".indexOf),VG=!MG(function(){var r=/(?:)/,e=r.exec;r.exec=function(){return e.apply(this,arguments)};var t="ab".split(r);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),yE="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;_G("split",function(r,e,t){var n="0".split(void 0,0).length?function(A,i){return A===void 0&&i===0?[]:$0(e,this,A,i)}:e;return[function(i,a){var s=NG(this),o=QG(i)?DG(i,r):void 0;return o?$0(o,i,s,a):$0(n,X0(s),i,a)},function(A,i){var a=LG(this),s=X0(A);if(!yE){var o=t(n,a,s,i,n!==e);if(o.done)return o.value}var l=OG(a,RegExp),u=X0(kG(a)),h=!!~qh(u,"u")||!!~qh(u,"v");co?~qh(u,"g")||(u+="g"):~qh(u,"y")||(u+="y");var d=new l(co?"^(?:"+a.source+")":a,u),c=i===void 0?KG:i>>>0;if(c===0)return[];if(s.length===0)return wE(d,s)===null?[s]:[];for(var p=0,m=0,y=[];m<s.length;){d.lastIndex=co?0:m;var g=wE(d,co?J0(s,m):s),w;if(g===null||(w=jG(RG(d.lastIndex+(co?m:0)),s.length))===p)m=PG(s,m,h);else{if(Y0(y,J0(s,p,m)),y.length===c)return y;for(var B=1;B<=g.length-1;B++)if(Y0(y,g[B]),y.length===c)return y;m=p=w}}return Y0(y,J0(s,p)),y}]},yE||!VG,co);var Xh={exports:{}},Kl={exports:{}};(function(){var r,e,t,n,A,i;typeof performance<"u"&&performance!==null&&performance.now?Kl.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(Kl.exports=function(){return(r()-A)/1e6},e=process.hrtime,r=function(){var a;return a=e(),a[0]*1e9+a[1]},n=r(),i=process.uptime()*1e9,A=n-i):Date.now?(Kl.exports=function(){return Date.now()-t},t=Date.now()):(Kl.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(gi);for(var GG=Kl.exports,zG=GG,Ci=typeof window>"u"?gi:window,Yh=["moz","webkit"],ho="AnimationFrame",fo=Ci["request"+ho],jl=Ci["cancel"+ho]||Ci["cancelRequest"+ho],Vl=0;!fo&&Vl<Yh.length;Vl++)fo=Ci[Yh[Vl]+"Request"+ho],jl=Ci[Yh[Vl]+"Cancel"+ho]||Ci[Yh[Vl]+"CancelRequest"+ho];if(!fo||!jl){var Z0=0,BE=0,es=[],WG=1e3/60;fo=function(r){if(es.length===0){var e=zG(),t=Math.max(0,WG-(e-Z0));Z0=t+e,setTimeout(function(){var n=es.slice(0);es.length=0;for(var A=0;A<n.length;A++)if(!n[A].cancelled)try{n[A].callback(Z0)}catch(i){setTimeout(function(){throw i},0)}},Math.round(t))}return es.push({handle:++BE,callback:r,cancelled:!1}),BE},jl=function(r){for(var e=0;e<es.length;e++)es[e].handle===r&&(es[e].cancelled=!0)}}Xh.exports=function(r){return fo.call(Ci,r)},Xh.exports.cancel=function(){jl.apply(Ci,arguments)},Xh.exports.polyfill=function(r){r||(r=Ci),r.requestAnimationFrame=fo,r.cancelAnimationFrame=jl};var $G=Xh.exports;const ev=$p($G);var bE=`
343
+ \v\f\r                 \u2028\u2029\uFEFF`,qG=wr,XG=NA,YG=ni,tv=bE,xE=qG("".replace),JG=RegExp("^["+tv+"]+"),ZG=RegExp("(^|[^"+tv+"])["+tv+"]+$"),ez=function(r){return function(e){var t=YG(XG(e));return r&1&&(t=xE(t,JG,"")),r&2&&(t=xE(t,ZG,"$1")),t}},tz={trim:ez(3)},rz=ph.PROPER,nz=vr,CE=bE,EE="​…᠎",Az=function(r){return nz(function(){return!!CE[r]()||EE[r]()!==EE||rz&&CE[r].name!==r})},iz=In,az=tz.trim,sz=Az;iz({target:"String",proto:!0,forced:sz("trim")},{trim:function(){return az(this)}});var oz=function(r){this.ok=!1,this.alpha=1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r=r.replace(/ /g,""),r=r.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};r=e[r]||r;for(var t=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3]),parseFloat(o[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],n=0;n<t.length;n++){var A=t[n].re,i=t[n].process,a=A.exec(r);if(a){var s=i(a);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var o=this.r.toString(16),l=this.g.toString(16),u=this.b.toString(16);return o.length==1&&(o="0"+o),l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),"#"+o+l+u},this.getHelpXML=function(){for(var o=new Array,l=0;l<t.length;l++)for(var u=t[l].example,h=0;h<u.length;h++)o[o.length]=u[h];for(var d in e)o[o.length]=d;var c=document.createElement("ul");c.setAttribute("id","rgbcolor-examples");for(var l=0;l<o.length;l++)try{var p=document.createElement("li"),m=new RGBColor(o[l]),y=document.createElement("div");y.style.cssText="margin: 3px; border: 1px solid black; background:"+m.toHex()+"; color:"+m.toHex(),y.appendChild(document.createTextNode("test"));var g=document.createTextNode(" "+o[l]+" -> "+m.toRGB()+" -> "+m.toHex());p.appendChild(y),p.appendChild(g),c.appendChild(p)}catch{}return c}};const rv=$p(oz);var lz=In,uz=Fh,cz=W5.indexOf,hz=pE,nv=uz([].indexOf),SE=!!nv&&1/nv([1],1,-0)<0,fz=SE||!hz("indexOf");lz({target:"Array",proto:!0,forced:fz},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return SE?nv(this,e,t)||0:cz(this,e,t)}});var dz=In,pz=wr,gz=Q0,mz=NA,FE=ni,vz=N0,wz=pz("".indexOf);dz({target:"String",proto:!0,forced:!vz("includes")},{includes:function(e){return!!~wz(FE(mz(this)),FE(gz(e)),arguments.length>1?arguments[1]:void 0)}});var yz=Wa,Bz=Array.isArray||function(e){return yz(e)==="Array"},bz=In,xz=wr,Cz=Bz,Ez=xz([].reverse),UE=[1,2];bz({target:"Array",proto:!0,forced:String(UE)===String(UE.reverse())},{reverse:function(){return Cz(this)&&(this.length=this.length),Ez(this)}});/*! *****************************************************************************
344
+ Copyright (c) Microsoft Corporation.
345
+
346
+ Permission to use, copy, modify, and/or distribute this software for any
347
+ purpose with or without fee is hereby granted.
348
+
349
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
350
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
351
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
352
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
353
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
354
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
355
+ PERFORMANCE OF THIS SOFTWARE.
356
+ ***************************************************************************** */var IE=function(r,e){return(IE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var A in n)Object.prototype.hasOwnProperty.call(n,A)&&(t[A]=n[A])})(r,e)};function TE(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}IE(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Sz(r){var e="";Array.isArray(r)||(r=[r]);for(var t=0;t<r.length;t++){var n=r[t];if(n.type===Ke.CLOSE_PATH)e+="z";else if(n.type===Ke.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===Ke.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===Ke.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===Ke.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===Ke.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Ke.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Ke.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===Ke.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==Ke.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+t+".");e+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return e}function Av(r,e){var t=r[0],n=r[1];return[t*Math.cos(e)-n*Math.sin(e),t*Math.sin(e)+n*Math.cos(e)]}function RA(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0;t<r.length;t++)if(typeof r[t]!="number")throw new Error("assertNumbers arguments["+t+"] is not a number. "+typeof r[t]+" == typeof "+r[t]);return!0}var la=Math.PI;function iv(r,e,t){r.lArcFlag=r.lArcFlag===0?0:1,r.sweepFlag=r.sweepFlag===0?0:1;var n=r.rX,A=r.rY,i=r.x,a=r.y;n=Math.abs(r.rX),A=Math.abs(r.rY);var s=Av([(e-i)/2,(t-a)/2],-r.xRot/180*la),o=s[0],l=s[1],u=Math.pow(o,2)/Math.pow(n,2)+Math.pow(l,2)/Math.pow(A,2);1<u&&(n*=Math.sqrt(u),A*=Math.sqrt(u)),r.rX=n,r.rY=A;var h=Math.pow(n,2)*Math.pow(l,2)+Math.pow(A,2)*Math.pow(o,2),d=(r.lArcFlag!==r.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(A,2)-h)/h)),c=n*l/A*d,p=-A*o/n*d,m=Av([c,p],r.xRot/180*la);r.cX=m[0]+(e+i)/2,r.cY=m[1]+(t+a)/2,r.phi1=Math.atan2((l-p)/A,(o-c)/n),r.phi2=Math.atan2((-l-p)/A,(-o-c)/n),r.sweepFlag===0&&r.phi2>r.phi1&&(r.phi2-=2*la),r.sweepFlag===1&&r.phi2<r.phi1&&(r.phi2+=2*la),r.phi1*=180/la,r.phi2*=180/la}function _E(r,e,t){RA(r,e,t);var n=r*r+e*e-t*t;if(0>n)return[];if(n===0)return[[r*t/(r*r+e*e),e*t/(r*r+e*e)]];var A=Math.sqrt(n);return[[(r*t+e*A)/(r*r+e*e),(e*t-r*A)/(r*r+e*e)],[(r*t-e*A)/(r*r+e*e),(e*t+r*A)/(r*r+e*e)]]}var Dr,Ei=Math.PI/180;function LE(r,e,t){return(1-t)*r+t*e}function QE(r,e,t,n){return r+Math.cos(n/180*la)*e+Math.sin(n/180*la)*t}function NE(r,e,t,n){var A=1e-6,i=e-r,a=t-e,s=3*i+3*(n-t)-6*a,o=6*(a-i),l=3*i;return Math.abs(s)<A?[-l/o]:function(u,h,d){var c=u*u/4-h;if(c<-d)return[];if(c<=d)return[-u/2];var p=Math.sqrt(c);return[-u/2-p,-u/2+p]}(o/s,l/s,A)}function OE(r,e,t,n,A){var i=1-A;return r*(i*i*i)+e*(3*i*i*A)+t*(3*i*A*A)+n*(A*A*A)}(function(r){function e(){return A(function(s,o,l){return s.relative&&(s.x1!==void 0&&(s.x1+=o),s.y1!==void 0&&(s.y1+=l),s.x2!==void 0&&(s.x2+=o),s.y2!==void 0&&(s.y2+=l),s.x!==void 0&&(s.x+=o),s.y!==void 0&&(s.y+=l),s.relative=!1),s})}function t(){var s=NaN,o=NaN,l=NaN,u=NaN;return A(function(h,d,c){return h.type&Ke.SMOOTH_CURVE_TO&&(h.type=Ke.CURVE_TO,s=isNaN(s)?d:s,o=isNaN(o)?c:o,h.x1=h.relative?d-s:2*d-s,h.y1=h.relative?c-o:2*c-o),h.type&Ke.CURVE_TO?(s=h.relative?d+h.x2:h.x2,o=h.relative?c+h.y2:h.y2):(s=NaN,o=NaN),h.type&Ke.SMOOTH_QUAD_TO&&(h.type=Ke.QUAD_TO,l=isNaN(l)?d:l,u=isNaN(u)?c:u,h.x1=h.relative?d-l:2*d-l,h.y1=h.relative?c-u:2*c-u),h.type&Ke.QUAD_TO?(l=h.relative?d+h.x1:h.x1,u=h.relative?c+h.y1:h.y1):(l=NaN,u=NaN),h})}function n(){var s=NaN,o=NaN;return A(function(l,u,h){if(l.type&Ke.SMOOTH_QUAD_TO&&(l.type=Ke.QUAD_TO,s=isNaN(s)?u:s,o=isNaN(o)?h:o,l.x1=l.relative?u-s:2*u-s,l.y1=l.relative?h-o:2*h-o),l.type&Ke.QUAD_TO){s=l.relative?u+l.x1:l.x1,o=l.relative?h+l.y1:l.y1;var d=l.x1,c=l.y1;l.type=Ke.CURVE_TO,l.x1=((l.relative?0:u)+2*d)/3,l.y1=((l.relative?0:h)+2*c)/3,l.x2=(l.x+2*d)/3,l.y2=(l.y+2*c)/3}else s=NaN,o=NaN;return l})}function A(s){var o=0,l=0,u=NaN,h=NaN;return function(d){if(isNaN(u)&&!(d.type&Ke.MOVE_TO))throw new Error("path must start with moveto");var c=s(d,o,l,u,h);return d.type&Ke.CLOSE_PATH&&(o=u,l=h),d.x!==void 0&&(o=d.relative?o+d.x:d.x),d.y!==void 0&&(l=d.relative?l+d.y:d.y),d.type&Ke.MOVE_TO&&(u=o,h=l),c}}function i(s,o,l,u,h,d){return RA(s,o,l,u,h,d),A(function(c,p,m,y){var g=c.x1,w=c.x2,B=c.relative&&!isNaN(y),I=c.x!==void 0?c.x:B?0:p,O=c.y!==void 0?c.y:B?0:m;function j(E){return E*E}c.type&Ke.HORIZ_LINE_TO&&o!==0&&(c.type=Ke.LINE_TO,c.y=c.relative?0:m),c.type&Ke.VERT_LINE_TO&&l!==0&&(c.type=Ke.LINE_TO,c.x=c.relative?0:p),c.x!==void 0&&(c.x=c.x*s+O*l+(B?0:h)),c.y!==void 0&&(c.y=I*o+c.y*u+(B?0:d)),c.x1!==void 0&&(c.x1=c.x1*s+c.y1*l+(B?0:h)),c.y1!==void 0&&(c.y1=g*o+c.y1*u+(B?0:d)),c.x2!==void 0&&(c.x2=c.x2*s+c.y2*l+(B?0:h)),c.y2!==void 0&&(c.y2=w*o+c.y2*u+(B?0:d));var R=s*u-o*l;if(c.xRot!==void 0&&(s!==1||o!==0||l!==0||u!==1))if(R===0)delete c.rX,delete c.rY,delete c.xRot,delete c.lArcFlag,delete c.sweepFlag,c.type=Ke.LINE_TO;else{var D=c.xRot*Math.PI/180,Q=Math.sin(D),J=Math.cos(D),M=1/j(c.rX),S=1/j(c.rY),K=j(J)*M+j(Q)*S,F=2*Q*J*(M-S),ne=j(Q)*M+j(J)*S,ee=K*u*u-F*o*u+ne*o*o,G=F*(s*u+o*l)-2*(K*l*u+ne*s*o),oe=K*l*l-F*s*l+ne*s*s,q=(Math.atan2(G,ee-oe)+Math.PI)%Math.PI/2,he=Math.sin(q),ie=Math.cos(q);c.rX=Math.abs(R)/Math.sqrt(ee*j(ie)+G*he*ie+oe*j(he)),c.rY=Math.abs(R)/Math.sqrt(ee*j(he)-G*he*ie+oe*j(ie)),c.xRot=180*q/Math.PI}return c.sweepFlag!==void 0&&0>R&&(c.sweepFlag=+!c.sweepFlag),c})}function a(){return function(s){var o={};for(var l in s)o[l]=s[l];return o}}r.ROUND=function(s){function o(l){return Math.round(l*s)/s}return s===void 0&&(s=1e13),RA(s),function(l){return l.x1!==void 0&&(l.x1=o(l.x1)),l.y1!==void 0&&(l.y1=o(l.y1)),l.x2!==void 0&&(l.x2=o(l.x2)),l.y2!==void 0&&(l.y2=o(l.y2)),l.x!==void 0&&(l.x=o(l.x)),l.y!==void 0&&(l.y=o(l.y)),l.rX!==void 0&&(l.rX=o(l.rX)),l.rY!==void 0&&(l.rY=o(l.rY)),l}},r.TO_ABS=e,r.TO_REL=function(){return A(function(s,o,l){return s.relative||(s.x1!==void 0&&(s.x1-=o),s.y1!==void 0&&(s.y1-=l),s.x2!==void 0&&(s.x2-=o),s.y2!==void 0&&(s.y2-=l),s.x!==void 0&&(s.x-=o),s.y!==void 0&&(s.y-=l),s.relative=!0),s})},r.NORMALIZE_HVZ=function(s,o,l){return s===void 0&&(s=!0),o===void 0&&(o=!0),l===void 0&&(l=!0),A(function(u,h,d,c,p){if(isNaN(c)&&!(u.type&Ke.MOVE_TO))throw new Error("path must start with moveto");return o&&u.type&Ke.HORIZ_LINE_TO&&(u.type=Ke.LINE_TO,u.y=u.relative?0:d),l&&u.type&Ke.VERT_LINE_TO&&(u.type=Ke.LINE_TO,u.x=u.relative?0:h),s&&u.type&Ke.CLOSE_PATH&&(u.type=Ke.LINE_TO,u.x=u.relative?c-h:c,u.y=u.relative?p-d:p),u.type&Ke.ARC&&(u.rX===0||u.rY===0)&&(u.type=Ke.LINE_TO,delete u.rX,delete u.rY,delete u.xRot,delete u.lArcFlag,delete u.sweepFlag),u})},r.NORMALIZE_ST=t,r.QT_TO_C=n,r.INFO=A,r.SANITIZE=function(s){s===void 0&&(s=0),RA(s);var o=NaN,l=NaN,u=NaN,h=NaN;return A(function(d,c,p,m,y){var g=Math.abs,w=!1,B=0,I=0;if(d.type&Ke.SMOOTH_CURVE_TO&&(B=isNaN(o)?0:c-o,I=isNaN(l)?0:p-l),d.type&(Ke.CURVE_TO|Ke.SMOOTH_CURVE_TO)?(o=d.relative?c+d.x2:d.x2,l=d.relative?p+d.y2:d.y2):(o=NaN,l=NaN),d.type&Ke.SMOOTH_QUAD_TO?(u=isNaN(u)?c:2*c-u,h=isNaN(h)?p:2*p-h):d.type&Ke.QUAD_TO?(u=d.relative?c+d.x1:d.x1,h=d.relative?p+d.y1:d.y2):(u=NaN,h=NaN),d.type&Ke.LINE_COMMANDS||d.type&Ke.ARC&&(d.rX===0||d.rY===0||!d.lArcFlag)||d.type&Ke.CURVE_TO||d.type&Ke.SMOOTH_CURVE_TO||d.type&Ke.QUAD_TO||d.type&Ke.SMOOTH_QUAD_TO){var O=d.x===void 0?0:d.relative?d.x:d.x-c,j=d.y===void 0?0:d.relative?d.y:d.y-p;B=isNaN(u)?d.x1===void 0?B:d.relative?d.x:d.x1-c:u-c,I=isNaN(h)?d.y1===void 0?I:d.relative?d.y:d.y1-p:h-p;var R=d.x2===void 0?0:d.relative?d.x:d.x2-c,D=d.y2===void 0?0:d.relative?d.y:d.y2-p;g(O)<=s&&g(j)<=s&&g(B)<=s&&g(I)<=s&&g(R)<=s&&g(D)<=s&&(w=!0)}return d.type&Ke.CLOSE_PATH&&g(c-m)<=s&&g(p-y)<=s&&(w=!0),w?[]:d})},r.MATRIX=i,r.ROTATE=function(s,o,l){o===void 0&&(o=0),l===void 0&&(l=0),RA(s,o,l);var u=Math.sin(s),h=Math.cos(s);return i(h,u,-u,h,o-o*h+l*u,l-o*u-l*h)},r.TRANSLATE=function(s,o){return o===void 0&&(o=0),RA(s,o),i(1,0,0,1,s,o)},r.SCALE=function(s,o){return o===void 0&&(o=s),RA(s,o),i(s,0,0,o,0,0)},r.SKEW_X=function(s){return RA(s),i(1,0,Math.atan(s),1,0,0)},r.SKEW_Y=function(s){return RA(s),i(1,Math.atan(s),0,1,0,0)},r.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),RA(s),i(-1,0,0,1,s,0)},r.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),RA(s),i(1,0,0,-1,0,s)},r.A_TO_C=function(){return A(function(s,o,l){return Ke.ARC===s.type?function(u,h,d){var c,p,m,y;u.cX||iv(u,h,d);for(var g=Math.min(u.phi1,u.phi2),w=Math.max(u.phi1,u.phi2)-g,B=Math.ceil(w/90),I=new Array(B),O=h,j=d,R=0;R<B;R++){var D=LE(u.phi1,u.phi2,R/B),Q=LE(u.phi1,u.phi2,(R+1)/B),J=Q-D,M=4/3*Math.tan(J*Ei/4),S=[Math.cos(D*Ei)-M*Math.sin(D*Ei),Math.sin(D*Ei)+M*Math.cos(D*Ei)],K=S[0],F=S[1],ne=[Math.cos(Q*Ei),Math.sin(Q*Ei)],ee=ne[0],G=ne[1],oe=[ee+M*Math.sin(Q*Ei),G-M*Math.cos(Q*Ei)],q=oe[0],he=oe[1];I[R]={relative:u.relative,type:Ke.CURVE_TO};var ie=function(E,k){var V=Av([E*u.rX,k*u.rY],u.xRot),W=V[0],z=V[1];return[u.cX+W,u.cY+z]};c=ie(K,F),I[R].x1=c[0],I[R].y1=c[1],p=ie(q,he),I[R].x2=p[0],I[R].y2=p[1],m=ie(ee,G),I[R].x=m[0],I[R].y=m[1],u.relative&&(I[R].x1-=O,I[R].y1-=j,I[R].x2-=O,I[R].y2-=j,I[R].x-=O,I[R].y-=j),O=(y=[I[R].x,I[R].y])[0],j=y[1]}return I}(s,s.relative?0:o,s.relative?0:l):s})},r.ANNOTATE_ARCS=function(){return A(function(s,o,l){return s.relative&&(o=0,l=0),Ke.ARC===s.type&&iv(s,o,l),s})},r.CLONE=a,r.CALCULATE_BOUNDS=function(){var s=function(d){var c={};for(var p in d)c[p]=d[p];return c},o=e(),l=n(),u=t(),h=A(function(d,c,p){var m=u(l(o(s(d))));function y(he){he>h.maxX&&(h.maxX=he),he<h.minX&&(h.minX=he)}function g(he){he>h.maxY&&(h.maxY=he),he<h.minY&&(h.minY=he)}if(m.type&Ke.DRAWING_COMMANDS&&(y(c),g(p)),m.type&Ke.HORIZ_LINE_TO&&y(m.x),m.type&Ke.VERT_LINE_TO&&g(m.y),m.type&Ke.LINE_TO&&(y(m.x),g(m.y)),m.type&Ke.CURVE_TO){y(m.x),g(m.y);for(var w=0,B=NE(c,m.x1,m.x2,m.x);w<B.length;w++)0<(q=B[w])&&1>q&&y(OE(c,m.x1,m.x2,m.x,q));for(var I=0,O=NE(p,m.y1,m.y2,m.y);I<O.length;I++)0<(q=O[I])&&1>q&&g(OE(p,m.y1,m.y2,m.y,q))}if(m.type&Ke.ARC){y(m.x),g(m.y),iv(m,c,p);for(var j=m.xRot/180*Math.PI,R=Math.cos(j)*m.rX,D=Math.sin(j)*m.rX,Q=-Math.sin(j)*m.rY,J=Math.cos(j)*m.rY,M=m.phi1<m.phi2?[m.phi1,m.phi2]:-180>m.phi2?[m.phi2+360,m.phi1+360]:[m.phi2,m.phi1],S=M[0],K=M[1],F=function(he){var ie=he[0],E=he[1],k=180*Math.atan2(E,ie)/Math.PI;return k<S?k+360:k},ne=0,ee=_E(Q,-R,0).map(F);ne<ee.length;ne++)(q=ee[ne])>S&&q<K&&y(QE(m.cX,R,Q,q));for(var G=0,oe=_E(J,-D,0).map(F);G<oe.length;G++){var q;(q=oe[G])>S&&q<K&&g(QE(m.cY,D,J,q))}}return d});return h.minX=1/0,h.maxX=-1/0,h.minY=1/0,h.maxY=-1/0,h}})(Dr||(Dr={}));var DA,PE=function(){function r(){}return r.prototype.round=function(e){return this.transform(Dr.ROUND(e))},r.prototype.toAbs=function(){return this.transform(Dr.TO_ABS())},r.prototype.toRel=function(){return this.transform(Dr.TO_REL())},r.prototype.normalizeHVZ=function(e,t,n){return this.transform(Dr.NORMALIZE_HVZ(e,t,n))},r.prototype.normalizeST=function(){return this.transform(Dr.NORMALIZE_ST())},r.prototype.qtToC=function(){return this.transform(Dr.QT_TO_C())},r.prototype.aToC=function(){return this.transform(Dr.A_TO_C())},r.prototype.sanitize=function(e){return this.transform(Dr.SANITIZE(e))},r.prototype.translate=function(e,t){return this.transform(Dr.TRANSLATE(e,t))},r.prototype.scale=function(e,t){return this.transform(Dr.SCALE(e,t))},r.prototype.rotate=function(e,t,n){return this.transform(Dr.ROTATE(e,t,n))},r.prototype.matrix=function(e,t,n,A,i,a){return this.transform(Dr.MATRIX(e,t,n,A,i,a))},r.prototype.skewX=function(e){return this.transform(Dr.SKEW_X(e))},r.prototype.skewY=function(e){return this.transform(Dr.SKEW_Y(e))},r.prototype.xSymmetry=function(e){return this.transform(Dr.X_AXIS_SYMMETRY(e))},r.prototype.ySymmetry=function(e){return this.transform(Dr.Y_AXIS_SYMMETRY(e))},r.prototype.annotateArcs=function(){return this.transform(Dr.ANNOTATE_ARCS())},r}(),Fz=function(r){return r===" "||r===" "||r==="\r"||r===`
357
+ `},RE=function(r){return 48<=r.charCodeAt(0)&&r.charCodeAt(0)<=57},Uz=function(r){function e(){var t=r.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return TE(e,r),e.prototype.finish=function(t){if(t===void 0&&(t=[]),this.parse(" ",t),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,n){var A=this;n===void 0&&(n=[]);for(var i=function(h){n.push(h),A.curArgs.length=0,A.canParseCommandOrComma=!0},a=0;a<t.length;a++){var s=t[a],o=!(this.curCommandType!==Ke.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),l=RE(s)&&(this.curNumber==="0"&&s==="0"||o);if(!RE(s)||l)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&this.curCommandType!==-1){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+a);if(this.curCommandType===Ke.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+a+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+a+'"')}this.curArgs.push(u),this.curArgs.length===Iz[this.curCommandType]&&(Ke.HORIZ_LINE_TO===this.curCommandType?i({type:Ke.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):Ke.VERT_LINE_TO===this.curCommandType?i({type:Ke.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===Ke.MOVE_TO||this.curCommandType===Ke.LINE_TO||this.curCommandType===Ke.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Ke.MOVE_TO===this.curCommandType&&(this.curCommandType=Ke.LINE_TO)):this.curCommandType===Ke.CURVE_TO?i({type:Ke.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Ke.SMOOTH_CURVE_TO?i({type:Ke.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Ke.QUAD_TO?i({type:Ke.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Ke.ARC&&i({type:Ke.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Fz(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(l)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+a+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+a+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=Ke.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=Ke.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=Ke.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=Ke.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=Ke.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=Ke.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=Ke.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=Ke.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+a+".");this.curCommandType=Ke.ARC,this.curCommandRelative=s==="a"}else n.push({type:Ke.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return n},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(n,A){A===void 0&&(A=[]);for(var i=0,a=Object.getPrototypeOf(this).parse.call(this,n);i<a.length;i++){var s=a[i],o=t(s);Array.isArray(o)?A.push.apply(A,o):A.push(o)}return A}}})},e}(PE),Ke=function(r){function e(t){var n=r.call(this)||this;return n.commands=typeof t=="string"?e.parse(t):t,n}return TE(e,r),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=Dr.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var n=[],A=0,i=this.commands;A<i.length;A++){var a=t(i[A]);Array.isArray(a)?n.push.apply(n,a):n.push(a)}return this.commands=n,this},e.encode=function(t){return Sz(t)},e.parse=function(t){var n=new Uz,A=[];return n.parse(t,A),n.finish(A),A},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(PE),Iz=((DA={})[Ke.MOVE_TO]=2,DA[Ke.LINE_TO]=2,DA[Ke.HORIZ_LINE_TO]=1,DA[Ke.VERT_LINE_TO]=1,DA[Ke.CLOSE_PATH]=0,DA[Ke.QUAD_TO]=4,DA[Ke.SMOOTH_QUAD_TO]=2,DA[Ke.CURVE_TO]=6,DA[Ke.SMOOTH_CURVE_TO]=4,DA[Ke.ARC]=7,DA),Tz=ph.PROPER,_z=qa,Lz=Un,DE=ni,Qz=vr,Nz=Vh,av="toString",kE=RegExp.prototype,HE=kE[av],Oz=Qz(function(){return HE.call({source:"a",flags:"b"})!=="/a/b"}),Pz=Tz&&HE.name!==av;(Oz||Pz)&&_z(kE,av,function(){var e=Lz(this),t=DE(e.source),n=DE(Nz(e));return"/"+t+"/"+n},{unsafe:!0});function Jh(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jh=function(e){return typeof e}:Jh=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jh(r)}function Rz(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var Dz=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],kz=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Hz(r,e,t,n,A){if(typeof r=="string"&&(r=document.getElementById(r)),!r||Jh(r)!=="object"||!("getContext"in r))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=r.getContext("2d");try{return i.getImageData(e,t,n,A)}catch(a){throw new Error("unable to access image data: "+a)}}function Mz(r,e,t,n,A,i){if(!(isNaN(i)||i<1)){i|=0;var a=Hz(r,e,t,n,A);a=Kz(a,e,t,n,A,i),r.getContext("2d").putImageData(a,e,t)}}function Kz(r,e,t,n,A,i){for(var a=r.data,s=2*i+1,o=n-1,l=A-1,u=i+1,h=u*(u+1)/2,d=new ME,c=d,p,m=1;m<s;m++)c=c.next=new ME,m===u&&(p=c);c.next=d;for(var y=null,g=null,w=0,B=0,I=Dz[i],O=kz[i],j=0;j<A;j++){c=d;for(var R=a[B],D=a[B+1],Q=a[B+2],J=a[B+3],M=0;M<u;M++)c.r=R,c.g=D,c.b=Q,c.a=J,c=c.next;for(var S=0,K=0,F=0,ne=0,ee=u*R,G=u*D,oe=u*Q,q=u*J,he=h*R,ie=h*D,E=h*Q,k=h*J,V=1;V<u;V++){var W=B+((o<V?o:V)<<2),z=a[W],_=a[W+1],L=a[W+2],Z=a[W+3],se=u-V;he+=(c.r=z)*se,ie+=(c.g=_)*se,E+=(c.b=L)*se,k+=(c.a=Z)*se,S+=z,K+=_,F+=L,ne+=Z,c=c.next}y=d,g=p;for(var $=0;$<n;$++){var te=k*I>>>O;if(a[B+3]=te,te!==0){var me=255/te;a[B]=(he*I>>>O)*me,a[B+1]=(ie*I>>>O)*me,a[B+2]=(E*I>>>O)*me}else a[B]=a[B+1]=a[B+2]=0;he-=ee,ie-=G,E-=oe,k-=q,ee-=y.r,G-=y.g,oe-=y.b,q-=y.a;var P=$+i+1;P=w+(P<o?P:o)<<2,S+=y.r=a[P],K+=y.g=a[P+1],F+=y.b=a[P+2],ne+=y.a=a[P+3],he+=S,ie+=K,E+=F,k+=ne,y=y.next;var de=g,U=de.r,b=de.g,x=de.b,N=de.a;ee+=U,G+=b,oe+=x,q+=N,S-=U,K-=b,F-=x,ne-=N,g=g.next,B+=4}w+=n}for(var ae=0;ae<n;ae++){B=ae<<2;var fe=a[B],ue=a[B+1],be=a[B+2],Fe=a[B+3],Se=u*fe,Pe=u*ue,je=u*be,$e=u*Fe,et=h*fe,ut=h*ue,We=h*be,kt=h*Fe;c=d;for(var st=0;st<u;st++)c.r=fe,c.g=ue,c.b=be,c.a=Fe,c=c.next;for(var ur=n,Et=0,gt=0,cr=0,St=0,qr=1;qr<=i;qr++){B=ur+ae<<2;var Ht=u-qr;et+=(c.r=fe=a[B])*Ht,ut+=(c.g=ue=a[B+1])*Ht,We+=(c.b=be=a[B+2])*Ht,kt+=(c.a=Fe=a[B+3])*Ht,St+=fe,Et+=ue,gt+=be,cr+=Fe,c=c.next,qr<l&&(ur+=n)}B=ae,y=d,g=p;for(var nr=0;nr<A;nr++){var Dt=B<<2;a[Dt+3]=Fe=kt*I>>>O,Fe>0?(Fe=255/Fe,a[Dt]=(et*I>>>O)*Fe,a[Dt+1]=(ut*I>>>O)*Fe,a[Dt+2]=(We*I>>>O)*Fe):a[Dt]=a[Dt+1]=a[Dt+2]=0,et-=Se,ut-=Pe,We-=je,kt-=$e,Se-=y.r,Pe-=y.g,je-=y.b,$e-=y.a,Dt=ae+((Dt=nr+u)<l?Dt:l)*n<<2,et+=St+=y.r=a[Dt],ut+=Et+=y.g=a[Dt+1],We+=gt+=y.b=a[Dt+2],kt+=cr+=y.a=a[Dt+3],y=y.next,Se+=fe=g.r,Pe+=ue=g.g,je+=be=g.b,$e+=Fe=g.a,St-=fe,Et-=ue,gt-=be,cr-=Fe,g=g.next,B+=n}}return r}var ME=function r(){Rz(this,r),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function jz(){var{DOMParser:r}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:r,createCanvas(t,n){return new OffscreenCanvas(t,n)},createImage(t){return xi(function*(){var n=yield fetch(t),A=yield n.blob(),i=yield createImageBitmap(A);return i})()}};return(typeof DOMParser<"u"||typeof r>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function Vz(r){var{DOMParser:e,canvas:t,fetch:n}=r;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:n,createCanvas:t.createCanvas,createImage:t.loadImage}}var Gz=Object.freeze({__proto__:null,offscreen:jz,node:Vz});function ts(r){return r.replace(/(?!\u3000)\s+/gm," ")}function KE(r){return r.replace(/^[\n \t]+/,"")}function jE(r){return r.replace(/[\n \t]+$/,"")}function Hn(r){var e=(r||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var zz=/^[A-Z-]+$/;function VE(r){return zz.test(r)?r.toLowerCase():r}function sv(r){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(r)||[];return e[2]||e[3]||e[4]}function GE(r){if(!r.startsWith("rgb"))return r;var e=3,t=r.replace(/\d+(\.\d+)?/g,(n,A)=>e--&&A?String(Math.round(parseFloat(n))):n);return t}var Wz=/(\[[^\]]+\])/g,$z=/(#[^\s+>~.[:]+)/g,qz=/(\.[^\s+>~.[:]+)/g,Xz=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,Yz=/(:[\w-]+\([^)]*\))/gi,Jz=/(:[^\s+>~.[:]+)/g,Zz=/([^\s+>~.[:]+)/g;function rs(r,e){var t=e.exec(r);return t?[r.replace(e," "),t.length]:[r,0]}function zE(r){var e=[0,0,0],t=r.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0;return[t,n]=rs(t,Wz),e[1]+=n,[t,n]=rs(t,$z),e[0]+=n,[t,n]=rs(t,qz),e[1]+=n,[t,n]=rs(t,Xz),e[2]+=n,[t,n]=rs(t,Yz),e[1]+=n,[t,n]=rs(t,Jz),e[1]+=n,t=t.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[t,n]=rs(t,Zz),e[2]+=n,e.join("")}var ns=1e-8;function ov(r){return Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2))}function Zh(r,e){return(r[0]*e[0]+r[1]*e[1])/(ov(r)*ov(e))}function lv(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Zh(r,e))}function uv(r){return r*r*r}function cv(r){return 3*r*r*(1-r)}function hv(r){return 3*r*(1-r)*(1-r)}function fv(r){return(1-r)*(1-r)*(1-r)}function dv(r){return r*r}function pv(r){return 2*r*(1-r)}function gv(r){return(1-r)*(1-r)}class ot{constructor(e,t,n){this.document=e,this.name=t,this.value=n,this.isNormalizedColor=!1}static empty(e){return new ot(e,"EMPTY","")}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:n}=this;return ts(this.getString()).trim().split(e).map(A=>new ot(t,n,A))}hasValue(e){var{value:t}=this;return t!==null&&t!==""&&(e||t!==0)&&typeof t<"u"}isString(e){var{value:t}=this,n=typeof t=="string";return!n||!e?n:e.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:t}=this,n=parseFloat(t);return this.isString(/%$/)&&(n/=100),n}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=GE(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[n,A]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&A):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(n);default:{var a=this.getNumber();return t&&a<1?a*i.computeSize(n):a}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var n=this.getDefinition();if(!n)return null;if(typeof n.createGradient=="function")return n.createGradient(this.document.ctx,e,t);if(typeof n.createPattern=="function"){if(n.getHrefAttribute().hasValue()){var A=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),A.hasValue()&&n.getAttribute("patternTransform",!0).setValue(A.value)}return n.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?ot.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),n=t.length,A=0,i=0;i<n&&(t[i]===","&&A++,A!==3);i++);if(e.hasValue()&&this.isString()&&A!==3){var a=new rv(t);a.ok&&(a.alpha=e.getNumber(),t=a.toRGBA())}return new ot(this.document,this.name,t)}}ot.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class WE{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e=="number"?e:e==="x"?this.width:e==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class yr{constructor(e,t){this.x=e,this.y=t}static parse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[n=t,A=t]=Hn(e);return new yr(n,A)}static parseScale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[n=t,A=n]=Hn(e);return new yr(n,A)}static parsePath(e){for(var t=Hn(e),n=t.length,A=[],i=0;i<n;i+=2)A.push(new yr(t[i],t[i+1]));return A}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:n}=this,A=t*e[0]+n*e[2]+e[4],i=t*e[1]+n*e[3]+e[5];this.x=A,this.y=i}}class $E{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:t,onMouseMove:n}=this,A=e.ctx.canvas;A.onclick=t,A.onmousemove=n,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:n}=this,{style:A}=e.ctx.canvas;A&&(A.cursor=""),t.forEach((i,a)=>{for(var{run:s}=i,o=n[a];o;)s(o),o=o.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(!(!this.working||!t)){var{events:n,eventElements:A}=this;n.forEach((i,a)=>{var{x:s,y:o}=i;!A[a]&&t.isPointInPath&&t.isPointInPath(s,o)&&(A[a]=e)})}}checkBoundingBox(e,t){if(!(!this.working||!t)){var{events:n,eventElements:A}=this;n.forEach((i,a)=>{var{x:s,y:o}=i;!A[a]&&t.isPointInBox(s,o)&&(A[a]=e)})}}mapXY(e,t){for(var{window:n,ctx:A}=this.screen,i=new yr(e,t),a=A.canvas;a;)i.x-=a.offsetLeft,i.y-=a.offsetTop,a=a.offsetParent;return n.scrollX&&(i.x+=n.scrollX),n.scrollY&&(i.y+=n.scrollY),i}onClick(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:n,run(A){A.onClick&&A.onClick()}})}onMouseMove(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:n,run(A){A.onMouseMove&&A.onMouseMove()}})}}var qE=typeof window<"u"?window:null,XE=typeof fetch<"u"?fetch.bind(void 0):null;class Gl{constructor(e){var{fetch:t=XE,window:n=qE}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new WE,this.mouse=new $E(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(t=>t());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:n,aspectRatio:A,width:i,desiredWidth:a,height:s,desiredHeight:o,minX:l=0,minY:u=0,refX:h,refY:d,clip:c=!1,clipX:p=0,clipY:m=0}=e,y=ts(A).replace(/^defer\s/,""),[g,w]=y.split(" "),B=g||"xMidYMid",I=w||"meet",O=i/a,j=s/o,R=Math.min(O,j),D=Math.max(O,j),Q=a,J=o;I==="meet"&&(Q*=R,J*=R),I==="slice"&&(Q*=D,J*=D);var M=new ot(t,"refX",h),S=new ot(t,"refY",d),K=M.hasValue()&&S.hasValue();if(K&&n.translate(-R*M.getPixels("x"),-R*S.getPixels("y")),c){var F=R*p,ne=R*m;n.beginPath(),n.moveTo(F,ne),n.lineTo(i,ne),n.lineTo(i,s),n.lineTo(F,s),n.closePath(),n.clip()}if(!K){var ee=I==="meet"&&R===j,G=I==="slice"&&D===j,oe=I==="meet"&&R===O,q=I==="slice"&&D===O;B.startsWith("xMid")&&(ee||G)&&n.translate(i/2-Q/2,0),B.endsWith("YMid")&&(oe||q)&&n.translate(0,s/2-J/2),B.startsWith("xMax")&&(ee||G)&&n.translate(i-Q,0),B.endsWith("YMax")&&(oe||q)&&n.translate(0,s-J)}switch(!0){case B==="none":n.scale(O,j);break;case I==="meet":n.scale(R,R);break;case I==="slice":n.scale(D,D);break}n.translate(-l,-u)}start(e){var{enableRedraw:t=!1,ignoreMouse:n=!1,ignoreAnimation:A=!1,ignoreDimensions:i=!1,ignoreClear:a=!1,forceRedraw:s,scaleWidth:o,scaleHeight:l,offsetX:u,offsetY:h}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:d,mouse:c}=this,p=1e3/d;if(this.frameDuration=p,this.readyPromise=new Promise(B=>{this.resolveReady=B}),this.isReady()&&this.render(e,i,a,o,l,u,h),!!t){var m=Date.now(),y=m,g=0,w=()=>{m=Date.now(),g=m-y,g>=p&&(y=m-g%p,this.shouldUpdate(A,s)&&(this.render(e,i,a,o,l,u,h),c.runEvents())),this.intervalId=ev(w)};n||c.start(),this.intervalId=ev(w)}}stop(){this.intervalId&&(ev.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:n}=this,A=this.animations.reduce((i,a)=>a.update(n)||i,!1);if(A)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,n,A,i,a,s){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:l,viewPort:u,ctx:h,isFirstRender:d}=this,c=h.canvas;u.clear(),c.width&&c.height?u.setCurrent(c.width,c.height):u.setCurrent(o,l);var p=e.getStyle("width"),m=e.getStyle("height");!t&&(d||typeof A!="number"&&typeof i!="number")&&(p.hasValue()&&(c.width=p.getPixels("x"),c.style&&(c.style.width="".concat(c.width,"px"))),m.hasValue()&&(c.height=m.getPixels("y"),c.style&&(c.style.height="".concat(c.height,"px"))));var y=c.clientWidth||c.width,g=c.clientHeight||c.height;if(t&&p.hasValue()&&m.hasValue()&&(y=p.getPixels("x"),g=m.getPixels("y")),u.setCurrent(y,g),typeof a=="number"&&e.getAttribute("x",!0).setValue(a),typeof s=="number"&&e.getAttribute("y",!0).setValue(s),typeof A=="number"||typeof i=="number"){var w=Hn(e.getAttribute("viewBox").getString()),B=0,I=0;if(typeof A=="number"){var O=e.getStyle("width");O.hasValue()?B=O.getPixels("x")/A:isNaN(w[2])||(B=w[2]/A)}if(typeof i=="number"){var j=e.getStyle("height");j.hasValue()?I=j.getPixels("y")/i:isNaN(w[3])||(I=w[3]/i)}B||(B=I),I||(I=B),e.getAttribute("width",!0).setValue(A),e.getAttribute("height",!0).setValue(i);var R=e.getStyle("transform",!0,!0);R.setValue("".concat(R.getString()," scale(").concat(1/B,", ").concat(1/I,")"))}n||h.clearRect(0,0,y,g),e.render(h),d&&(this.isFirstRender=!1)}}Gl.defaultWindow=qE,Gl.defaultFetch=XE;var{defaultFetch:eW}=Gl,tW=typeof DOMParser<"u"?DOMParser:null;class ef{constructor(){var{fetch:e=eW,DOMParser:t=tW}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return xi(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return xi(function*(){var n=yield t.fetch(e),A=yield n.text();return t.parseFromString(A)})()}}class YE{constructor(e,t){this.type="translate",this.point=null,this.point=yr.parse(t)}apply(e){var{x:t,y:n}=this.point;e.translate(t||0,n||0)}unapply(e){var{x:t,y:n}=this.point;e.translate(-1*t||0,-1*n||0)}applyToPoint(e){var{x:t,y:n}=this.point;e.applyTransform([1,0,0,1,t||0,n||0])}}class JE{constructor(e,t,n){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var A=Hn(t);this.angle=new ot(e,"angle",A[0]),this.originX=n[0],this.originY=n[1],this.cx=A[1]||0,this.cy=A[2]||0}apply(e){var{cx:t,cy:n,originX:A,originY:i,angle:a}=this,s=t+A.getPixels("x"),o=n+i.getPixels("y");e.translate(s,o),e.rotate(a.getRadians()),e.translate(-s,-o)}unapply(e){var{cx:t,cy:n,originX:A,originY:i,angle:a}=this,s=t+A.getPixels("x"),o=n+i.getPixels("y");e.translate(s,o),e.rotate(-1*a.getRadians()),e.translate(-s,-o)}applyToPoint(e){var{cx:t,cy:n,angle:A}=this,i=A.getRadians();e.applyTransform([1,0,0,1,t||0,n||0]),e.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),e.applyTransform([1,0,0,1,-t||0,-n||0])}}class ZE{constructor(e,t,n){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var A=yr.parseScale(t);(A.x===0||A.y===0)&&(A.x=ns,A.y=ns),this.scale=A,this.originX=n[0],this.originY=n[1]}apply(e){var{scale:{x:t,y:n},originX:A,originY:i}=this,a=A.getPixels("x"),s=i.getPixels("y");e.translate(a,s),e.scale(t,n||t),e.translate(-a,-s)}unapply(e){var{scale:{x:t,y:n},originX:A,originY:i}=this,a=A.getPixels("x"),s=i.getPixels("y");e.translate(a,s),e.scale(1/t,1/n||t),e.translate(-a,-s)}applyToPoint(e){var{x:t,y:n}=this.scale;e.applyTransform([t||0,0,0,n||0,0,0])}}class mv{constructor(e,t,n){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Hn(t),this.originX=n[0],this.originY=n[1]}apply(e){var{originX:t,originY:n,matrix:A}=this,i=t.getPixels("x"),a=n.getPixels("y");e.translate(i,a),e.transform(A[0],A[1],A[2],A[3],A[4],A[5]),e.translate(-i,-a)}unapply(e){var{originX:t,originY:n,matrix:A}=this,i=A[0],a=A[2],s=A[4],o=A[1],l=A[3],u=A[5],h=0,d=0,c=1,p=1/(i*(l*c-u*d)-a*(o*c-u*h)+s*(o*d-l*h)),m=t.getPixels("x"),y=n.getPixels("y");e.translate(m,y),e.transform(p*(l*c-u*d),p*(u*h-o*c),p*(s*d-a*c),p*(i*c-s*h),p*(a*u-s*l),p*(s*o-i*u)),e.translate(-m,-y)}applyToPoint(e){e.applyTransform(this.matrix)}}class vv extends mv{constructor(e,t,n){super(e,t,n),this.type="skew",this.angle=null,this.angle=new ot(e,"angle",t)}}class e4 extends vv{constructor(e,t,n){super(e,t,n),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class t4 extends vv{constructor(e,t,n){super(e,t,n),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function rW(r){return ts(r).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function nW(r){var[e,t]=r.split("(");return[e.trim(),t.trim().replace(")","")]}class ua{constructor(e,t,n){this.document=e,this.transforms=[];var A=rW(t);A.forEach(i=>{if(i!=="none"){var[a,s]=nW(i),o=ua.transformTypes[a];typeof o<"u"&&this.transforms.push(new o(this.document,s,n))}})}static fromElement(e,t){var n=t.getStyle("transform",!1,!0),[A,i=A]=t.getStyle("transform-origin",!1,!0).split(),a=[A,i];return n.hasValue()?new ua(e,n.getString(),a):null}apply(e){for(var{transforms:t}=this,n=t.length,A=0;A<n;A++)t[A].apply(e)}unapply(e){for(var{transforms:t}=this,n=t.length,A=n-1;A>=0;A--)t[A].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,n=t.length,A=0;A<n;A++)t[A].applyToPoint(e)}}ua.transformTypes={translate:YE,rotate:JE,scale:ZE,matrix:mv,skewX:e4,skewY:t4};let hr=class lw{constructor(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=t,this.captureTextNodes=n,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(s=>{var o=VE(s.nodeName);this.attributes[o]=new ot(e,o,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var A=this.getAttribute("style").getString().split(";").map(s=>s.trim());A.forEach(s=>{if(s){var[o,l]=s.split(":").map(u=>u.trim());this.styles[o]=new ot(e,o,l)}})}var{definitions:i}=e,a=this.getAttribute("id");a.hasValue()&&(i[a.getString()]||(i[a.getString()]=this)),Array.from(t.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(n&&(s.nodeType===3||s.nodeType===4)){var o=e.createTextNode(s);o.getText().length>0&&this.addChild(o)}})}}getAttribute(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.attributes[e];if(!n&&t){var A=new ot(this.document,e,"");return this.attributes[e]=A,A}return n||ot.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return ot.empty(this.document)}getStyle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,A=this.styles[e];if(A)return A;var i=this.getAttribute(e);if(i!=null&&i.hasValue())return this.styles[e]=i,i;if(!n){var{parent:a}=this;if(a){var s=a.getStyle(e);if(s!=null&&s.hasValue())return s}}if(t){var o=new ot(this.document,e,"");return this.styles[e]=o,o}return A||ot.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var n=this.getStyle("filter").getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=ua.fromElement(this.document,this);t&&t.apply(e);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var A=n.getDefinition();A&&A.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof lw?e:this.document.createElement(e);t.parent=this,lw.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:n}=this;if(typeof n.matches=="function")return n.matches(e);var A=(t=n.getAttribute)===null||t===void 0?void 0:t.call(n,"class");return!A||A===""?!1:A.split(" ").some(i=>".".concat(i)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var n in e)if(!n.startsWith("@")&&this.matchesSelector(n)){var A=e[n],i=t[n];if(A)for(var a in A){var s=this.stylesSpecificity[a];typeof s>"u"&&(s="000"),i>=s&&(this.styles[a]=A[a],this.stylesSpecificity[a]=i)}}}removeStyles(e,t){var n=t.reduce((A,i)=>{var a=e.getStyle(i);if(!a.hasValue())return A;var s=a.getString();return a.setValue(""),[...A,[i,s]]},[]);return n}restoreStyles(e,t){t.forEach(n=>{var[A,i]=n;e.getStyle(A,!0).setValue(i)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}};hr.ignoreChildTypes=["title"];class r4 extends hr{constructor(e,t,n){super(e,t,n)}}function AW(r){var e=r.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function iW(r){return typeof process>"u"?r:r.trim().split(",").map(AW).join(",")}function aW(r){if(!r)return"";var e=r.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function sW(r){if(!r)return"";var e=r.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class xn{constructor(e,t,n,A,i,a){var s=a?typeof a=="string"?xn.parse(a):a:{};this.fontFamily=i||s.fontFamily,this.fontSize=A||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=n||s.fontWeight,this.fontVariant=t||s.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n="",A="",i="",a="",s="",o=ts(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return o.forEach(u=>{switch(!0){case(!l.fontStyle&&xn.styles.includes(u)):u!=="inherit"&&(n=u),l.fontStyle=!0;break;case(!l.fontVariant&&xn.variants.includes(u)):u!=="inherit"&&(A=u),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&xn.weights.includes(u)):u!=="inherit"&&(i=u),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:u!=="inherit"&&([a]=u.split("/")),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:u!=="inherit"&&(s+=u)}}),new xn(n,A,i,a,s,t)}toString(){return[aW(this.fontStyle),this.fontVariant,sW(this.fontWeight),this.fontSize,iW(this.fontFamily)].join(" ").trim()}}xn.styles="normal|italic|oblique|inherit",xn.variants="normal|small-caps|inherit",xn.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class dA{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=n,this.y2=A,this.addPoint(e,t),this.addPoint(n,A)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof t<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:n,x2:A,y2:i}=e;this.addPoint(t,n),this.addPoint(A,i)}}sumCubic(e,t,n,A,i){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*n+3*(1-e)*Math.pow(e,2)*A+Math.pow(e,3)*i}bezierCurveAdd(e,t,n,A,i){var a=6*t-12*n+6*A,s=-3*t+9*n-9*A+3*i,o=3*n-3*t;if(s===0){if(a===0)return;var l=-o/a;0<l&&l<1&&(e?this.addX(this.sumCubic(l,t,n,A,i)):this.addY(this.sumCubic(l,t,n,A,i)));return}var u=Math.pow(a,2)-4*o*s;if(!(u<0)){var h=(-a+Math.sqrt(u))/(2*s);0<h&&h<1&&(e?this.addX(this.sumCubic(h,t,n,A,i)):this.addY(this.sumCubic(h,t,n,A,i)));var d=(-a-Math.sqrt(u))/(2*s);0<d&&d<1&&(e?this.addX(this.sumCubic(d,t,n,A,i)):this.addY(this.sumCubic(d,t,n,A,i)))}}addBezierCurve(e,t,n,A,i,a,s,o){this.addPoint(e,t),this.addPoint(s,o),this.bezierCurveAdd(!0,e,n,i,s),this.bezierCurveAdd(!1,t,A,a,o)}addQuadraticCurve(e,t,n,A,i,a){var s=e+.6666666666666666*(n-e),o=t+2/3*(A-t),l=s+1/3*(i-e),u=o+1/3*(a-t);this.addBezierCurve(e,t,s,l,o,u,i,a)}isPointInBox(e,t){var{x1:n,y1:A,x2:i,y2:a}=this;return n<=e&&e<=i&&A<=t&&t<=a}}class Bt extends Ke{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new yr(0,0),this.control=new yr(0,0),this.current=new yr(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:t}=this;return e>=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",n=new yr(this.command[e],this.command[t]);return this.makeAbsolute(n)}getAsControlPoint(e,t){var n=this.getPoint(e,t);return this.control=n,n}getAsCurrentPoint(e,t){var n=this.getPoint(e,t);return this.current=n,n}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==Ke.CURVE_TO&&e!==Ke.SMOOTH_CURVE_TO&&e!==Ke.QUAD_TO&&e!==Ke.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:n},control:{x:A,y:i}}=this,a=new yr(2*t-A,2*n-i);return a}makeAbsolute(e){if(this.command.relative){var{x:t,y:n}=this.current;e.x+=t,e.y+=n}return e}addMarker(e,t,n){var{points:A,angles:i}=this;n&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=A[A.length-1].angleTo(n)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,n=0;n<t;n++)if(!e[n]){for(var A=n+1;A<t;A++)if(e[A]){e[n]=e[A];break}}return e}}class ca extends hr{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,t=this;t;){var n=t.getStyle("opacity",!1,!0);n.hasValue(!0)&&(e*=n.getNumber()),t=t.parent}return e}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!t){var n=this.getStyle("fill"),A=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var s=n.getFillStyleDefinition(this,A);s&&(e.fillStyle=s)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var o=n.getColor();o!=="inherit"&&(e.fillStyle=o==="none"?"rgba(0,0,0,0)":o)}if(A.hasValue()){var l=new ot(this.document,"fill",e.fillStyle).addOpacity(A).getColor();e.fillStyle=l}if(i.isUrlDefinition()){var u=i.getFillStyleDefinition(this,a);u&&(e.strokeStyle=u)}else if(i.hasValue()){i.getString()==="currentColor"&&i.setValue(this.getStyle("color").getColor());var h=i.getString();h!=="inherit"&&(e.strokeStyle=h==="none"?"rgba(0,0,0,0)":h)}if(a.hasValue()){var d=new ot(this.document,"stroke",e.strokeStyle).addOpacity(a).getString();e.strokeStyle=d}var c=this.getStyle("stroke-width");if(c.hasValue()){var p=c.getPixels();e.lineWidth=p||ns}var m=this.getStyle("stroke-linecap"),y=this.getStyle("stroke-linejoin"),g=this.getStyle("stroke-miterlimit"),w=this.getStyle("stroke-dasharray"),B=this.getStyle("stroke-dashoffset");if(m.hasValue()&&(e.lineCap=m.getString()),y.hasValue()&&(e.lineJoin=y.getString()),g.hasValue()&&(e.miterLimit=g.getNumber()),w.hasValue()&&w.getString()!=="none"){var I=Hn(w.getString());typeof e.setLineDash<"u"?e.setLineDash(I):typeof e.webkitLineDash<"u"?e.webkitLineDash=I:typeof e.mozDash<"u"&&!(I.length===1&&I[0]===0)&&(e.mozDash=I);var O=B.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=O:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=O:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=O)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var j=this.getStyle("font"),R=this.getStyle("font-style"),D=this.getStyle("font-variant"),Q=this.getStyle("font-weight"),J=this.getStyle("font-size"),M=this.getStyle("font-family"),S=new xn(R.getString(),D.getString(),Q.getString(),J.hasValue()?"".concat(J.getPixels(!0),"px"):"",M.getString(),xn.parse(j.getString(),e.font));R.setValue(S.fontStyle),D.setValue(S.fontVariant),Q.setValue(S.fontWeight),J.setValue(S.fontSize),M.setValue(S.fontFamily),e.font=S.toString(),J.isPixels()&&(this.document.emSize=J.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class jt extends ca{constructor(e,t,n){super(e,t,n),this.type="path",this.pathParser=null,this.pathParser=new Bt(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,n=new dA;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case Bt.MOVE_TO:this.pathM(e,n);break;case Bt.LINE_TO:this.pathL(e,n);break;case Bt.HORIZ_LINE_TO:this.pathH(e,n);break;case Bt.VERT_LINE_TO:this.pathV(e,n);break;case Bt.CURVE_TO:this.pathC(e,n);break;case Bt.SMOOTH_CURVE_TO:this.pathS(e,n);break;case Bt.QUAD_TO:this.pathQ(e,n);break;case Bt.SMOOTH_QUAD_TO:this.pathT(e,n);break;case Bt.ARC:this.pathA(e,n);break;case Bt.CLOSE_PATH:this.pathZ(e,n);break}return n}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),n=e.getMarkerAngles(),A=t.map((i,a)=>[i,n[a]]);return A}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");e.fillStyle!==""&&(t.getString("inherit")!=="inherit"?e.fill(t.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var A=n.length-1,i=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(i.isUrlDefinition()){var o=i.getDefinition(),[l,u]=n[0];o.render(e,l,u)}if(a.isUrlDefinition())for(var h=a.getDefinition(),d=1;d<A;d++){var[c,p]=n[d];h.render(e,c,p)}if(s.isUrlDefinition()){var m=s.getDefinition(),[y,g]=n[A];m.render(e,y,g)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:n}=this,{point:A}=jt.pathM(n),{x:i,y:a}=A;n.addMarker(A),t.addPoint(i,a),e&&e.moveTo(i,a)}static pathL(e){var{current:t}=e,n=e.getAsCurrentPoint();return{current:t,point:n}}pathL(e,t){var{pathParser:n}=this,{current:A,point:i}=jt.pathL(n),{x:a,y:s}=i;n.addMarker(i,A),t.addPoint(a,s),e&&e.lineTo(a,s)}static pathH(e){var{current:t,command:n}=e,A=new yr((n.relative?t.x:0)+n.x,t.y);return e.current=A,{current:t,point:A}}pathH(e,t){var{pathParser:n}=this,{current:A,point:i}=jt.pathH(n),{x:a,y:s}=i;n.addMarker(i,A),t.addPoint(a,s),e&&e.lineTo(a,s)}static pathV(e){var{current:t,command:n}=e,A=new yr(t.x,(n.relative?t.y:0)+n.y);return e.current=A,{current:t,point:A}}pathV(e,t){var{pathParser:n}=this,{current:A,point:i}=jt.pathV(n),{x:a,y:s}=i;n.addMarker(i,A),t.addPoint(a,s),e&&e.lineTo(a,s)}static pathC(e){var{current:t}=e,n=e.getPoint("x1","y1"),A=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:t,point:n,controlPoint:A,currentPoint:i}}pathC(e,t){var{pathParser:n}=this,{current:A,point:i,controlPoint:a,currentPoint:s}=jt.pathC(n);n.addMarker(s,a,i),t.addBezierCurve(A.x,A.y,i.x,i.y,a.x,a.y,s.x,s.y),e&&e.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}static pathS(e){var{current:t}=e,n=e.getReflectedControlPoint(),A=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:t,point:n,controlPoint:A,currentPoint:i}}pathS(e,t){var{pathParser:n}=this,{current:A,point:i,controlPoint:a,currentPoint:s}=jt.pathS(n);n.addMarker(s,a,i),t.addBezierCurve(A.x,A.y,i.x,i.y,a.x,a.y,s.x,s.y),e&&e.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}static pathQ(e){var{current:t}=e,n=e.getAsControlPoint("x1","y1"),A=e.getAsCurrentPoint();return{current:t,controlPoint:n,currentPoint:A}}pathQ(e,t){var{pathParser:n}=this,{current:A,controlPoint:i,currentPoint:a}=jt.pathQ(n);n.addMarker(a,i,i),t.addQuadraticCurve(A.x,A.y,i.x,i.y,a.x,a.y),e&&e.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathT(e){var{current:t}=e,n=e.getReflectedControlPoint();e.control=n;var A=e.getAsCurrentPoint();return{current:t,controlPoint:n,currentPoint:A}}pathT(e,t){var{pathParser:n}=this,{current:A,controlPoint:i,currentPoint:a}=jt.pathT(n);n.addMarker(a,i,i),t.addQuadraticCurve(A.x,A.y,i.x,i.y,a.x,a.y),e&&e.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathA(e){var{current:t,command:n}=e,{rX:A,rY:i,xRot:a,lArcFlag:s,sweepFlag:o}=n,l=a*(Math.PI/180),u=e.getAsCurrentPoint(),h=new yr(Math.cos(l)*(t.x-u.x)/2+Math.sin(l)*(t.y-u.y)/2,-Math.sin(l)*(t.x-u.x)/2+Math.cos(l)*(t.y-u.y)/2),d=Math.pow(h.x,2)/Math.pow(A,2)+Math.pow(h.y,2)/Math.pow(i,2);d>1&&(A*=Math.sqrt(d),i*=Math.sqrt(d));var c=(s===o?-1:1)*Math.sqrt((Math.pow(A,2)*Math.pow(i,2)-Math.pow(A,2)*Math.pow(h.y,2)-Math.pow(i,2)*Math.pow(h.x,2))/(Math.pow(A,2)*Math.pow(h.y,2)+Math.pow(i,2)*Math.pow(h.x,2)));isNaN(c)&&(c=0);var p=new yr(c*A*h.y/i,c*-i*h.x/A),m=new yr((t.x+u.x)/2+Math.cos(l)*p.x-Math.sin(l)*p.y,(t.y+u.y)/2+Math.sin(l)*p.x+Math.cos(l)*p.y),y=lv([1,0],[(h.x-p.x)/A,(h.y-p.y)/i]),g=[(h.x-p.x)/A,(h.y-p.y)/i],w=[(-h.x-p.x)/A,(-h.y-p.y)/i],B=lv(g,w);return Zh(g,w)<=-1&&(B=Math.PI),Zh(g,w)>=1&&(B=0),{currentPoint:u,rX:A,rY:i,sweepFlag:o,xAxisRotation:l,centp:m,a1:y,ad:B}}pathA(e,t){var{pathParser:n}=this,{currentPoint:A,rX:i,rY:a,sweepFlag:s,xAxisRotation:o,centp:l,a1:u,ad:h}=jt.pathA(n),d=1-s?1:-1,c=u+d*(h/2),p=new yr(l.x+i*Math.cos(c),l.y+a*Math.sin(c));if(n.addMarkerAngle(p,c-d*Math.PI/2),n.addMarkerAngle(A,c-d*Math.PI),t.addPoint(A.x,A.y),e&&!isNaN(u)&&!isNaN(h)){var m=i>a?i:a,y=i>a?1:i/a,g=i>a?a/i:1;e.translate(l.x,l.y),e.rotate(o),e.scale(y,g),e.arc(0,0,m,u,u+h,!!(1-s)),e.scale(1/y,1/g),e.rotate(-o),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){jt.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class wv extends jt{constructor(e,t,n){super(e,t,n),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class Si extends ca{constructor(e,t,n){super(e,t,new.target===Si?!0:n),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,t);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(e.textBaseline=n)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((n,A)=>{var i=this.getChildBoundingBox(e,this,this,A);t?t.addBoundingBox(i):t=i}),t}getFontSize(){var{document:e,parent:t}=this,n=xn.parse(e.ctx.font).fontSize,A=t.getStyle("font-size").getNumber(n);return A}getTElementBoundingBox(e){var t=this.getFontSize();return new dA(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,n){var A=t[n],i=null;if(e.isArabic){var a=t.length,s=t[n-1],o=t[n+1],l="isolated";if((n===0||s===" ")&&n<a-1&&o!==" "&&(l="terminal"),n>0&&s!==" "&&n<a-1&&o!==" "&&(l="medial"),n>0&&s!==" "&&(n===a-1||o===" ")&&(l="initial"),typeof e.glyphs[A]<"u"){var u=e.glyphs[A];i=u instanceof wv?u:u[l]}}else i=e.glyphs[A];return i||(i=e.missingGlyph),i}getText(){return""}getTextFromNode(e){var t=e||this.node,n=Array.from(t.parentNode.childNodes),A=n.indexOf(t),i=n.length-1,a=ts(t.textContent||"");return A===0&&(a=KE(a)),A===i&&(a=jE(a)),a}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((n,A)=>{this.renderChild(e,this,this,A)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:n}=this,A=this.getText(),i=n.getStyle("font-family").getDefinition();if(i){for(var{unitsPerEm:a}=i.fontFace,s=xn.parse(t.ctx.font),o=n.getStyle("font-size").getNumber(s.fontSize),l=n.getStyle("font-style").getString(s.fontStyle),u=o/a,h=i.isRTL?A.split("").reverse().join(""):A,d=Hn(n.getAttribute("dx").getString()),c=h.length,p=0;p<c;p++){var m=this.getGlyph(i,h,p);e.translate(this.x,this.y),e.scale(u,-u);var y=e.lineWidth;e.lineWidth=e.lineWidth*a/o,l==="italic"&&e.transform(1,0,.4,1,0,0),m.render(e),l==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=y,e.scale(1/u,-1/u),e.translate(-this.x,-this.y),this.x+=o*(m.horizAdvX||i.horizAdvX)/a,typeof d[p]<"u"&&!isNaN(d[p])&&(this.x+=d[p])}return}var{x:g,y:w}=this;e.fillStyle&&e.fillText(A,g,w),e.strokeStyle&&e.strokeText(A,g,w)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),n=!1,A=0;t==="start"&&!n||t==="end"&&n?A=e.x-this.minX:t==="end"&&!n||t==="start"&&n?A=e.x-this.maxX:A=e.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=A;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((t,n)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,n)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,n,A){var i=n.children[A];i.children.length>0?i.children.forEach((a,s)=>{t.adjustChildCoordinatesRecursiveCore(e,t,i,s)}):this.adjustChildCoordinates(e,t,n,A)}adjustChildCoordinates(e,t,n,A){var i=n.children[A];if(typeof i.measureText!="function")return i;e.save(),i.setContext(e,!0);var a=i.getAttribute("x"),s=i.getAttribute("y"),o=i.getAttribute("dx"),l=i.getAttribute("dy"),u=i.getStyle("font-family").getDefinition(),h=!!u&&u.isRTL;A===0&&(a.hasValue()||a.setValue(i.getInheritedAttribute("x")),s.hasValue()||s.setValue(i.getInheritedAttribute("y")),o.hasValue()||o.setValue(i.getInheritedAttribute("dx")),l.hasValue()||l.setValue(i.getInheritedAttribute("dy")));var d=i.measureText(e);return h&&(t.x-=d),a.hasValue()?(t.applyAnchoring(),i.x=a.getPixels("x"),o.hasValue()&&(i.x+=o.getPixels("x"))):(o.hasValue()&&(t.x+=o.getPixels("x")),i.x=t.x),t.x=i.x,h||(t.x+=d),s.hasValue()?(i.y=s.getPixels("y"),l.hasValue()&&(i.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),i.y=t.y),t.y=i.y,t.leafTexts.push(i),t.minX=Math.min(t.minX,i.x,i.x+d),t.maxX=Math.max(t.maxX,i.x,i.x+d),i.clearContext(e),e.restore(),i}getChildBoundingBox(e,t,n,A){var i=n.children[A];if(typeof i.getBoundingBox!="function")return null;var a=i.getBoundingBox(e);return a?(i.children.forEach((s,o)=>{var l=t.getChildBoundingBox(e,t,i,o);a.addBoundingBox(l)}),a):null}renderChild(e,t,n,A){var i=n.children[A];i.render(e),i.children.forEach((a,s)=>{t.renderChild(e,t,i,s)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var n=this.getText(),A=this.measureTargetText(e,n);return this.measureCache=A,A}measureTargetText(e,t){if(!t.length)return 0;var{parent:n}=this,A=n.getStyle("font-family").getDefinition();if(A){for(var i=this.getFontSize(),a=A.isRTL?t.split("").reverse().join(""):t,s=Hn(n.getAttribute("dx").getString()),o=a.length,l=0,u=0;u<o;u++){var h=this.getGlyph(A,a,u);l+=(h.horizAdvX||A.horizAdvX)*i/A.fontFace.unitsPerEm,typeof s[u]<"u"&&!isNaN(s[u])&&(l+=s[u])}return l}if(!e.measureText)return t.length*10;e.save(),this.setContext(e,!0);var{width:d}=e.measureText(t);return this.clearContext(e),e.restore(),d}getInheritedAttribute(e){for(var t=this;t instanceof Si&&t.isFirstChild();){var n=t.parent.getAttribute(e);if(n.hasValue(!0))return n.getValue("0");t=t.parent}return null}}class zl extends Si{constructor(e,t,n){super(e,t,new.target===zl?!0:n),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class oW extends zl{constructor(){super(...arguments),this.type="textNode"}}class po extends ca{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:n}=this,{screen:A,window:i}=n,a=e.canvas;if(A.setDefaults(e),a.style&&typeof e.font<"u"&&i&&typeof i.getComputedStyle<"u"){e.font=i.getComputedStyle(a).getPropertyValue("font");var s=new ot(n,"fontSize",xn.parse(e.font).fontSize);s.hasValue()&&(n.rootEmSize=s.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:l}=A.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),h=this.getAttribute("refY"),d=this.getAttribute("viewBox"),c=d.hasValue()?Hn(d.getString()):null,p=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",m=0,y=0,g=0,w=0;c&&(m=c[0],y=c[1]),this.root||(o=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(g=m,w=y,m=0,y=0)),A.viewPort.setCurrent(o,l),this.node&&(!this.parent||((t=this.node.parentNode)===null||t===void 0?void 0:t.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),c&&(o=c[2],l=c[3]),n.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:A.viewPort.width,desiredWidth:o,height:A.viewPort.height,desiredHeight:l,minX:m,minY:y,refX:u.getValue(),refY:h.getValue(),clip:p,clipX:g,clipY:w}),c&&(A.viewPort.removeCurrent(),A.viewPort.setCurrent(o,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,A=this.getAttribute("width",!0),i=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),s=this.getAttribute("style"),o=A.getNumber(0),l=i.getNumber(0);if(n)if(typeof n=="string")this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var u=this.getAttribute("preserveAspectRatio");u.hasValue()&&u.setValue(u.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(A.setValue(e),i.setValue(t),a.hasValue()||a.setValue("0 0 ".concat(o||e," ").concat(l||t)),s.hasValue()){var h=this.getStyle("width"),d=this.getStyle("height");h.hasValue()&&h.setValue("".concat(e,"px")),d.hasValue()&&d.setValue("".concat(t,"px"))}}}class yv extends jt{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),A=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),s=this.getAttribute("ry"),o=a.getPixels("x"),l=s.getPixels("y");if(a.hasValue()&&!s.hasValue()&&(l=o),s.hasValue()&&!a.hasValue()&&(o=l),o=Math.min(o,A/2),l=Math.min(l,i/2),e){var u=4*((Math.sqrt(2)-1)/3);e.beginPath(),i>0&&A>0&&(e.moveTo(t+o,n),e.lineTo(t+A-o,n),e.bezierCurveTo(t+A-o+u*o,n,t+A,n+l-u*l,t+A,n+l),e.lineTo(t+A,n+i-l),e.bezierCurveTo(t+A,n+i-l+u*l,t+A-o+u*o,n+i,t+A-o,n+i),e.lineTo(t+o,n+i),e.bezierCurveTo(t+o-u*o,n+i,t,n+i-l+u*l,t,n+i-l),e.lineTo(t,n+l),e.bezierCurveTo(t,n+l-u*l,t+o-u*o,n,t+o,n),e.closePath())}return new dA(t,n,t+A,n+i)}getMarkers(){return null}}class n4 extends jt{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),A=this.getAttribute("r").getPixels();return e&&A>0&&(e.beginPath(),e.arc(t,n,A,0,Math.PI*2,!1),e.closePath()),new dA(t-A,n-A,t+A,n+A)}getMarkers(){return null}}class A4 extends jt{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=4*((Math.sqrt(2)-1)/3),n=this.getAttribute("rx").getPixels("x"),A=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return e&&n>0&&A>0&&(e.beginPath(),e.moveTo(i+n,a),e.bezierCurveTo(i+n,a+t*A,i+t*n,a+A,i,a+A),e.bezierCurveTo(i-t*n,a+A,i-n,a+t*A,i-n,a),e.bezierCurveTo(i-n,a-t*A,i-t*n,a-A,i,a-A),e.bezierCurveTo(i+t*n,a-A,i+n,a-t*A,i+n,a),e.closePath()),new dA(i-n,a-A,i+n,a+A)}getMarkers(){return null}}class i4 extends jt{constructor(){super(...arguments),this.type="line"}getPoints(){return[new yr(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new yr(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:n},{x:A,y:i}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,n),e.lineTo(A,i)),new dA(t,n,A,i)}getMarkers(){var[e,t]=this.getPoints(),n=e.angleTo(t);return[[e,n],[t,n]]}}class Bv extends jt{constructor(e,t,n){super(e,t,n),this.type="polyline",this.points=[],this.points=yr.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:n,y:A}]=t,i=new dA(n,A);return e&&(e.beginPath(),e.moveTo(n,A)),t.forEach(a=>{var{x:s,y:o}=a;i.addPoint(s,o),e&&e.lineTo(s,o)}),i}getMarkers(){var{points:e}=this,t=e.length-1,n=[];return e.forEach((A,i)=>{i!==t&&n.push([A,A.angleTo(e[i+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}class a4 extends Bv{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:n,y:A}]=this.points;return e&&(e.lineTo(n,A),e.closePath()),t}}class s4 extends hr{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,n){var A=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),a=new po(this.document,null);a.attributes.viewBox=new ot(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new ot(this.document,"width","".concat(A,"px")),a.attributes.height=new ot(this.document,"height","".concat(i,"px")),a.attributes.transform=new ot(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var s=this.document.createCanvas(A,i),o=s.getContext("2d"),l=this.getAttribute("x"),u=this.getAttribute("y");l.hasValue()&&u.hasValue()&&o.translate(l.getPixels("x",!0),u.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var h=-1;h<=1;h++)for(var d=-1;d<=1;d++)o.save(),a.attributes.x=new ot(this.document,"x",h*s.width),a.attributes.y=new ot(this.document,"y",d*s.height),a.render(o),o.restore();var c=e.createPattern(s,"repeat");return c}}class o4 extends hr{constructor(){super(...arguments),this.type="marker"}render(e,t,n){if(t){var{x:A,y:i}=t,a=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(A,i),a==="auto"&&e.rotate(n),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var o=new po(this.document,null);o.type=this.type,o.attributes.viewBox=new ot(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new ot(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new ot(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new ot(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new ot(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new ot(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new ot(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new ot(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(e),e.restore(),s==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),a==="auto"&&e.rotate(-n),e.translate(-A,-i)}}}class l4 extends hr{constructor(){super(...arguments),this.type="defs"}render(){}}class tf extends ca{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new dA;return this.children.forEach(n=>{t.addBoundingBox(n.getBoundingBox(e))}),t}}class bv extends hr{constructor(e,t,n){super(e,t,n),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:A,children:i}=this;i.forEach(a=>{a.type==="stop"&&A.push(a)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,n){var A=this;this.getHrefAttribute().hasValue()&&(A=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(A));var{stops:i}=A,a=this.getGradient(e,t);if(!a)return this.addParentOpacity(n,i[i.length-1].color);if(i.forEach(y=>{a.addColorStop(y.offset,this.addParentOpacity(n,y.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:l}=s.screen,[u]=l.viewPorts,h=new yv(s,null);h.attributes.x=new ot(s,"x",-o/3),h.attributes.y=new ot(s,"y",-o/3),h.attributes.width=new ot(s,"width",o),h.attributes.height=new ot(s,"height",o);var d=new tf(s,null);d.attributes.transform=new ot(s,"transform",this.getAttribute("gradientTransform").getValue()),d.children=[h];var c=new po(s,null);c.attributes.x=new ot(s,"x",0),c.attributes.y=new ot(s,"y",0),c.attributes.width=new ot(s,"width",u.width),c.attributes.height=new ot(s,"height",u.height),c.children=[d];var p=s.createCanvas(u.width,u.height),m=p.getContext("2d");return m.fillStyle=a,c.render(m),m.createPattern(p,"no-repeat")}return a}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){if(e.hasValue()){var n=new ot(this.document,"color",t);return n.addOpacity(e).getColor()}return t}}class u4 extends bv{constructor(e,t,n){super(e,t,n),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var n=this.getGradientUnits()==="objectBoundingBox",A=n?t.getBoundingBox(e):null;if(n&&!A)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=n?A.x+A.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=n?A.y+A.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=n?A.x+A.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=n?A.y+A.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&a===o?null:e.createLinearGradient(i,a,s,o)}}class c4 extends bv{constructor(e,t,n){super(e,t,n),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var n=this.getGradientUnits()==="objectBoundingBox",A=t.getBoundingBox(e);if(n&&!A)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=n?A.x+A.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=n?A.y+A.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=i,o=a;this.getAttribute("fx").hasValue()&&(s=n?A.x+A.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=n?A.y+A.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=n?(A.width+A.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,o,u,i,a,l)}}class h4 extends hr{constructor(e,t,n){super(e,t,n),this.type="stop";var A=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),a=this.getStyle("stop-color",!0);a.getString()===""&&a.setValue("#000"),i.hasValue()&&(a=a.addOpacity(i)),this.offset=A,this.color=a.getColor()}}class rf extends hr{constructor(e,t,n){super(e,t,n),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new ot(e,"values",null);var A=this.getAttribute("values");A.hasValue()&&this.values.setValue(A.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:n,to:A}=this.getProgress(),i=n.getNumber()+(A.getNumber()-n.getNumber())*t;return e==="%"&&(i*=100),"".concat(i).concat(e)}update(e){var{parent:t}=this,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var A=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(A==="freeze"&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=n.getString();else if(A==="remove"&&!this.removed)return this.removed=!0,n.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var i=!1;if(this.begin<this.duration){var a=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var o=s.getString();a="".concat(o,"(").concat(a,")")}n.setValue(a),i=!0}return i}getProgress(){var{document:e,values:t}=this,n={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var A=n.progress*(t.getValue().length-1),i=Math.floor(A),a=Math.ceil(A);n.from=new ot(e,"from",parseFloat(t.getValue()[i])),n.to=new ot(e,"to",parseFloat(t.getValue()[a])),n.progress=(A-i)/(a-i)}else n.from=this.from,n.to=this.to;return n}}class f4 extends rf{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),A=new rv(t.getColor()),i=new rv(n.getColor());if(A.ok&&i.ok){var a=A.r+(i.r-A.r)*e,s=A.g+(i.g-A.g)*e,o=A.b+(i.b-A.b)*e;return"rgb(".concat(Math.floor(a),", ").concat(Math.floor(s),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}}class d4 extends rf{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),A=Hn(t.getString()),i=Hn(n.getString()),a=A.map((s,o)=>{var l=i[o];return s+(l-s)*e}).join(" ");return a}}class p4 extends hr{constructor(e,t,n){super(e,t,n),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:A}=e,{children:i}=this;for(var a of i)switch(a.type){case"font-face":{this.fontFace=a;var s=a.getStyle("font-family");s.hasValue()&&(A[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=a;break;case"glyph":{var o=a;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[o.unicode]>"u"&&(this.glyphs[o.unicode]=Object.create(null)),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o;break}}}render(){}}class g4 extends hr{constructor(e,t,n){super(e,t,n),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class m4 extends jt{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class v4 extends Si{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class w4 extends Si{constructor(e,t,n){super(e,t,n),this.type="a";var{childNodes:A}=t,i=A[0],a=A.length>0&&Array.from(A).every(s=>s.nodeType===3);this.hasText=a,this.text=a?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:n,y:A}=this,{mouse:i}=t.screen,a=new ot(t,"fontSize",xn.parse(t.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new dA(n,A-a.getPixels("y"),n+this.measureText(e),A))}else if(this.children.length>0){var s=new tf(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function y4(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(A){return Object.getOwnPropertyDescriptor(r,A).enumerable})),t.push.apply(t,n)}return t}function nf(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?y4(Object(t),!0).forEach(function(n){W0(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):y4(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}class B4 extends Si{constructor(e,t,n){super(e,t,n),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var A=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(A)}getText(){return this.text}path(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach(n=>{var{type:A,points:i}=n;switch(A){case Bt.LINE_TO:e&&e.lineTo(i[0],i[1]);break;case Bt.MOVE_TO:e&&e.moveTo(i[0],i[1]);break;case Bt.CURVE_TO:e&&e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case Bt.QUAD_TO:e&&e.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case Bt.ARC:{var[a,s,o,l,u,h,d,c]=i,p=o>l?o:l,m=o>l?1:o/l,y=o>l?l/o:1;e&&(e.translate(a,s),e.rotate(d),e.scale(m,y),e.arc(0,0,p,u,u+h,!!(1-c)),e.scale(1/m,1/y),e.rotate(-d),e.translate(-a,-s));break}case Bt.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),{glyphInfo:A}=this,i=e.fillStyle;t==="underline"&&e.beginPath(),A.forEach((a,s)=>{var{p0:o,p1:l,rotation:u,text:h}=a;e.save(),e.translate(o.x,o.y),e.rotate(u),e.fillStyle&&e.fillText(h,0,0),e.strokeStyle&&e.strokeText(h,0,0),e.restore(),t==="underline"&&(s===0&&e.moveTo(o.x,o.y+n/8),e.lineTo(l.x,l.y+n/5))}),t==="underline"&&(e.lineWidth=n/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,n,A,i,a,s,o,l){var u=a,h=this.measureText(e,o);o===" "&&t==="justify"&&n<A&&(h+=(A-n)/i),l>-1&&(u+=this.getLetterSpacingAt(l));var d=this.textHeight/20,c=this.getEquidistantPointOnPath(u,d,0),p=this.getEquidistantPointOnPath(u+h,d,0),m={p0:c,p1:p},y=c&&p?Math.atan2(p.y-c.y,p.x-c.x):0;if(s){var g=Math.cos(Math.PI/2+y)*s,w=Math.cos(-y)*s;m.p0=nf(nf({},c),{},{x:c.x+g,y:c.y+w}),m.p1=nf(nf({},p),{},{x:p.x+g,y:p.y+w})}return u+=h,{offset:u,segment:m,rotation:y}}measureText(e,t){var{measuresCache:n}=this,A=t||this.getText();if(n.has(A))return n.get(A);var i=this.measureTargetText(e,A);return n.set(A,i),i}setTextData(e){if(!this.glyphInfo){var t=this.getText(),n=t.split(""),A=t.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(I=>I.getPixels("x")),a=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),u=0;!o.hasValue()||o.getValue()==="inherit"?u=l.getPixels():o.hasValue()&&o.getValue()!=="initial"&&o.getValue()!=="unset"&&(u=o.getPixels());var h=[],d=t.length;this.letterSpacingCache=h;for(var c=0;c<d;c++)h.push(typeof i[c]<"u"?i[c]:u);var p=h.reduce((I,O,j)=>j===0?0:I+O||0,0),m=this.measureText(e),y=Math.max(m+p,0);this.textWidth=m,this.textHeight=this.getFontSize(),this.glyphInfo=[];var g=this.getPathLength(),w=this.getStyle("startOffset").getNumber(0)*g,B=0;(s==="middle"||s==="center")&&(B=-y/2),(s==="end"||s==="right")&&(B=-y),B+=w,n.forEach((I,O)=>{var{offset:j,segment:R,rotation:D}=this.findSegmentToFitChar(e,s,y,g,A,B,a,I,O);B=j,!(!R.p0||!R.p1)&&this.glyphInfo.push({text:n[O],p0:R.p0,p1:R.p1,rotation:D})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:n}=e;for(n.reset();!n.isEnd();){var{current:A}=n,i=A?A.x:0,a=A?A.y:0,s=n.next(),o=s.type,l=[];switch(s.type){case Bt.MOVE_TO:this.pathM(n,l);break;case Bt.LINE_TO:o=this.pathL(n,l);break;case Bt.HORIZ_LINE_TO:o=this.pathH(n,l);break;case Bt.VERT_LINE_TO:o=this.pathV(n,l);break;case Bt.CURVE_TO:this.pathC(n,l);break;case Bt.SMOOTH_CURVE_TO:o=this.pathS(n,l);break;case Bt.QUAD_TO:this.pathQ(n,l);break;case Bt.SMOOTH_QUAD_TO:o=this.pathT(n,l);break;case Bt.ARC:l=this.pathA(n);break;case Bt.CLOSE_PATH:jt.pathZ(n);break}s.type!==Bt.CLOSE_PATH?t.push({type:o,points:l,start:{x:i,y:a},pathLength:this.calcLength(i,a,o,l)}):t.push({type:Bt.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:n,y:A}=jt.pathM(e).point;t.push(n,A)}pathL(e,t){var{x:n,y:A}=jt.pathL(e).point;return t.push(n,A),Bt.LINE_TO}pathH(e,t){var{x:n,y:A}=jt.pathH(e).point;return t.push(n,A),Bt.LINE_TO}pathV(e,t){var{x:n,y:A}=jt.pathV(e).point;return t.push(n,A),Bt.LINE_TO}pathC(e,t){var{point:n,controlPoint:A,currentPoint:i}=jt.pathC(e);t.push(n.x,n.y,A.x,A.y,i.x,i.y)}pathS(e,t){var{point:n,controlPoint:A,currentPoint:i}=jt.pathS(e);return t.push(n.x,n.y,A.x,A.y,i.x,i.y),Bt.CURVE_TO}pathQ(e,t){var{controlPoint:n,currentPoint:A}=jt.pathQ(e);t.push(n.x,n.y,A.x,A.y)}pathT(e,t){var{controlPoint:n,currentPoint:A}=jt.pathT(e);return t.push(n.x,n.y,A.x,A.y),Bt.QUAD_TO}pathA(e){var{rX:t,rY:n,sweepFlag:A,xAxisRotation:i,centp:a,a1:s,ad:o}=jt.pathA(e);return A===0&&o>0&&(o-=2*Math.PI),A===1&&o<0&&(o+=2*Math.PI),[a.x,a.y,t,n,s,o,i,A]}calcLength(e,t,n,A){var i=0,a=null,s=null,o=0;switch(n){case Bt.LINE_TO:return this.getLineLength(e,t,A[0],A[1]);case Bt.CURVE_TO:for(i=0,a=this.getPointOnCubicBezier(0,e,t,A[0],A[1],A[2],A[3],A[4],A[5]),o=.01;o<=1;o+=.01)s=this.getPointOnCubicBezier(o,e,t,A[0],A[1],A[2],A[3],A[4],A[5]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case Bt.QUAD_TO:for(i=0,a=this.getPointOnQuadraticBezier(0,e,t,A[0],A[1],A[2],A[3]),o=.01;o<=1;o+=.01)s=this.getPointOnQuadraticBezier(o,e,t,A[0],A[1],A[2],A[3]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case Bt.ARC:{i=0;var l=A[4],u=A[5],h=A[4]+u,d=Math.PI/180;if(Math.abs(l-h)<d&&(d=Math.abs(l-h)),a=this.getPointOnEllipticalArc(A[0],A[1],A[2],A[3],l,0),u<0)for(o=l-d;o>h;o-=d)s=this.getPointOnEllipticalArc(A[0],A[1],A[2],A[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(o=l+d;o<h;o+=d)s=this.getPointOnEllipticalArc(A[0],A[1],A[2],A[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=this.getPointOnEllipticalArc(A[0],A[1],A[2],A[3],h,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),i}}return 0}getPointOnLine(e,t,n,A,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:t,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:n,o=(i-n)/(A-t+ns),l=Math.sqrt(e*e/(1+o*o));A<t&&(l*=-1);var u=o*l,h=null;if(A===t)h={x:a,y:s+u};else if((s-n)/(a-t+ns)===o)h={x:a+l,y:s+u};else{var d=0,c=0,p=this.getLineLength(t,n,A,i);if(p<ns)return null;var m=(a-t)*(A-t)+(s-n)*(i-n);m/=p*p,d=t+m*(A-t),c=n+m*(i-n);var y=this.getLineLength(a,s,d,c),g=Math.sqrt(e*e-y*y);l=Math.sqrt(g*g/(1+o*o)),A<t&&(l*=-1),u=o*l,h={x:d+l,y:c+u}}return h}getPointOnPath(e){var t=this.getPathLength(),n=0,A=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:i}=this;for(var a of i){if(a&&(a.pathLength<5e-5||n+a.pathLength+5e-5<e)){n+=a.pathLength;continue}var s=e-n,o=0;switch(a.type){case Bt.LINE_TO:A=this.getPointOnLine(s,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case Bt.ARC:{var l=a.points[4],u=a.points[5],h=a.points[4]+u;if(o=l+s/a.pathLength*u,u<0&&o<h||u>=0&&o>h)break;A=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],o,a.points[6]);break}case Bt.CURVE_TO:o=s/a.pathLength,o>1&&(o=1),A=this.getPointOnCubicBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case Bt.QUAD_TO:o=s/a.pathLength,o>1&&(o=1),A=this.getPointOnQuadraticBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3]);break}if(A)return A;break}return null}getLineLength(e,t,n,A){return Math.sqrt((n-e)*(n-e)+(A-t)*(A-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,n,A,i,a,s,o,l){var u=o*uv(e)+a*cv(e)+A*hv(e)+t*fv(e),h=l*uv(e)+s*cv(e)+i*hv(e)+n*fv(e);return{x:u,y:h}}getPointOnQuadraticBezier(e,t,n,A,i,a,s){var o=a*dv(e)+A*pv(e)+t*gv(e),l=s*dv(e)+i*pv(e)+n*gv(e);return{x:o,y:l}}getPointOnEllipticalArc(e,t,n,A,i,a){var s=Math.cos(a),o=Math.sin(a),l={x:n*Math.cos(i),y:A*Math.sin(i)};return{x:e+(l.x*s-l.y*o),y:t+(l.x*o+l.y*s)}}buildEquidistantCache(e,t){var n=this.getPathLength(),A=t||.25,i=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==A){this.equidistantCache={step:i,precision:A,points:[]};for(var a=0,s=0;s<=n;s+=A){var o=this.getPointOnPath(s),l=this.getPointOnPath(s+A);!o||!l||(a+=this.getLineLength(o.x,o.y,l.x,l.y),a>=i&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:s}),a-=i))}}}getEquidistantPointOnPath(e,t,n){if(this.buildEquidistantCache(t,n),e<0||e-this.getPathLength()>5e-5)return null;var A=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[A]||null}}var lW=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class b4 extends ca{constructor(e,t,n){super(e,t,n),this.type="image",this.loaded=!1;var A=this.getHrefAttribute().getString();if(A){var i=A.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(A);e.images.push(this),i?this.loadSvg(A):this.loadImage(A),this.isSvg=i}}loadImage(e){var t=this;return xi(function*(){try{var n=yield t.document.createImage(e);t.image=n}catch(A){console.error('Error while loading image "'.concat(e,'":'),A)}t.loaded=!0})()}loadSvg(e){var t=this;return xi(function*(){var n=lW.exec(e);if(n){var A=n[5];n[4]==="base64"?t.image=atob(A):t.image=decodeURIComponent(A)}else try{var i=yield t.document.fetch(e),a=yield i.text();t.image=a}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}t.loaded=!0})()}renderChildren(e){var{document:t,image:n,loaded:A}=this,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!(!A||!n||!s||!o)){if(e.save(),e.translate(i,a),this.isSvg){var l=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:o});l.document.documentElement.parent=this,l.render()}else{var u=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:u.width,height:o,desiredHeight:u.height}),this.loaded&&(typeof u.complete>"u"||u.complete)&&e.drawImage(u,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),A=this.getStyle("height").getPixels("y");return new dA(e,t,e+n,t+A)}}class x4 extends ca{constructor(){super(...arguments),this.type="symbol"}render(e){}}class C4{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var n=this;return xi(function*(){try{var{document:A}=n,i=yield A.canvg.parser.load(t),a=i.getElementsByTagName("font");Array.from(a).forEach(s=>{var o=A.createElement(s);A.definitions[e]=o})}catch(s){console.error('Error while loading font "'.concat(t,'":'),s)}n.loaded=!0})()}}class xv extends hr{constructor(e,t,n){super(e,t,n),this.type="style";var A=ts(Array.from(t.childNodes).map(a=>a.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),i=A.split("}");i.forEach(a=>{var s=a.trim();if(s){var o=s.split("{"),l=o[0].split(","),u=o[1].split(";");l.forEach(h=>{var d=h.trim();if(d){var c=e.styles[d]||{};if(u.forEach(y=>{var g=y.indexOf(":"),w=y.substr(0,g).trim(),B=y.substr(g+1,y.length-g).trim();w&&B&&(c[w]=new ot(e,w,B))}),e.styles[d]=c,e.stylesSpecificity[d]=zE(d),d==="@font-face"){var p=c["font-family"].getString().replace(/"|'/g,""),m=c.src.getString().split(",");m.forEach(y=>{if(y.indexOf('format("svg")')>0){var g=sv(y);g&&new C4(e).load(p,g)}})}}})}})}}xv.parseExternalUrl=sv;class E4 extends ca{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),n=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),n.hasValue()&&e.translate(0,n.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:n}=this;if(n){var A=n;if(n.type==="symbol"&&(A=new po(t,null),A.attributes.viewBox=new ot(t,"viewBox",n.getAttribute("viewBox").getString()),A.attributes.preserveAspectRatio=new ot(t,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),A.attributes.overflow=new ot(t,"overflow",n.getAttribute("overflow").getString()),A.children=n.children,n.styles.opacity=new ot(t,"opacity",this.calculateOpacity())),A.type==="svg"){var i=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);i.hasValue()&&(A.attributes.width=new ot(t,"width",i.getString())),a.hasValue()&&(A.attributes.height=new ot(t,"height",a.getString()))}var s=A.parent;A.parent=this,A.render(e),A.parent=s}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return ua.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function Af(r,e,t,n,A,i){return r[t*n*4+e*4+i]}function af(r,e,t,n,A,i,a){r[t*n*4+e*4+i]=a}function kr(r,e,t){var n=r[e];return n*t}function Fi(r,e,t,n){return e+Math.cos(r)*t+Math.sin(r)*n}class Cv extends hr{constructor(e,t,n){super(e,t,n),this.type="feColorMatrix";var A=Hn(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var i=A[0];A=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var a=A[0]*Math.PI/180;A=[Fi(a,.213,.787,-.213),Fi(a,.715,-.715,-.715),Fi(a,.072,-.072,.928),0,0,Fi(a,.213,-.213,.143),Fi(a,.715,.285,.14),Fi(a,.072,-.072,-.283),0,0,Fi(a,.213,-.213,-.787),Fi(a,.715,-.715,.715),Fi(a,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=A,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,n,A,i){for(var{includeOpacity:a,matrix:s}=this,o=e.getImageData(0,0,A,i),l=0;l<i;l++)for(var u=0;u<A;u++){var h=Af(o.data,u,l,A,i,0),d=Af(o.data,u,l,A,i,1),c=Af(o.data,u,l,A,i,2),p=Af(o.data,u,l,A,i,3),m=kr(s,0,h)+kr(s,1,d)+kr(s,2,c)+kr(s,3,p)+kr(s,4,1),y=kr(s,5,h)+kr(s,6,d)+kr(s,7,c)+kr(s,8,p)+kr(s,9,1),g=kr(s,10,h)+kr(s,11,d)+kr(s,12,c)+kr(s,13,p)+kr(s,14,1),w=kr(s,15,h)+kr(s,16,d)+kr(s,17,c)+kr(s,18,p)+kr(s,19,1);a&&(m=0,y=0,g=0,w*=p/255),af(o.data,u,l,A,i,0,m),af(o.data,u,l,A,i,1,y),af(o.data,u,l,A,i,2,g),af(o.data,u,l,A,i,3,w)}e.clearRect(0,0,A,i),e.putImageData(o,0,0)}}class Wl extends hr{constructor(){super(...arguments),this.type="mask"}apply(e,t){var{document:n}=this,A=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!a&&!s){var o=new dA;this.children.forEach(p=>{o.addBoundingBox(p.getBoundingBox(e))}),A=Math.floor(o.x1),i=Math.floor(o.y1),a=Math.floor(o.width),s=Math.floor(o.height)}var l=this.removeStyles(t,Wl.ignoreStyles),u=n.createCanvas(A+a,i+s),h=u.getContext("2d");n.screen.setDefaults(h),this.renderChildren(h),new Cv(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(h,0,0,A+a,i+s);var d=n.createCanvas(A+a,i+s),c=d.getContext("2d");n.screen.setDefaults(c),t.render(c),c.globalCompositeOperation="destination-in",c.fillStyle=h.createPattern(u,"no-repeat"),c.fillRect(0,0,A+a,i+s),e.fillStyle=c.createPattern(d,"no-repeat"),e.fillRect(0,0,A+a,i+s),this.restoreStyles(t,l)}render(e){}}Wl.ignoreStyles=["mask","transform","clip-path"];var S4=()=>{};class F4 extends hr{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,n=Reflect.getPrototypeOf(e),{beginPath:A,closePath:i}=e;n&&(n.beginPath=S4,n.closePath=S4),Reflect.apply(A,e,[]),this.children.forEach(a=>{if(!(typeof a.path>"u")){var s=typeof a.elementTransform<"u"?a.elementTransform():null;s||(s=ua.fromElement(t,a)),s&&s.apply(e),a.path(e),n&&(n.closePath=i),s&&s.unapply(e)}}),Reflect.apply(i,e,[]),e.clip(),n&&(n.beginPath=A,n.closePath=i)}render(e){}}class $l extends hr{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:n,children:A}=this,i=t.getBoundingBox(e);if(i){var a=0,s=0;A.forEach(g=>{var w=g.extraFilterDistance||0;a=Math.max(a,w),s=Math.max(s,w)});var o=Math.floor(i.width),l=Math.floor(i.height),u=o+2*a,h=l+2*s;if(!(u<1||h<1)){var d=Math.floor(i.x),c=Math.floor(i.y),p=this.removeStyles(t,$l.ignoreStyles),m=n.createCanvas(u,h),y=m.getContext("2d");n.screen.setDefaults(y),y.translate(-d+a,-c+s),t.render(y),A.forEach(g=>{typeof g.apply=="function"&&g.apply(y,0,0,u,h)}),e.drawImage(m,0,0,u,h,d-a,c-s,u,h),this.restoreStyles(t,p)}}}render(e){}}$l.ignoreStyles=["filter","transform","clip-path"];class U4 extends hr{constructor(e,t,n){super(e,t,n),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,n,A,i){}}class I4 extends hr{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,n,A,i){}}class T4 extends hr{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,n,A,i){}}class _4 extends hr{constructor(e,t,n){super(e,t,n),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,n,A,i){var{document:a,blurRadius:s}=this,o=a.window?a.window.document.body:null,l=e.canvas;l.id=a.getUniqueId(),o&&(l.style.display="none",o.appendChild(l)),Mz(l,t,n,A,i,s),o&&o.removeChild(l)}}class L4 extends hr{constructor(){super(...arguments),this.type="title"}}class Q4 extends hr{constructor(){super(...arguments),this.type="desc"}}var uW={svg:po,rect:yv,circle:n4,ellipse:A4,line:i4,polyline:Bv,polygon:a4,path:jt,pattern:s4,marker:o4,defs:l4,linearGradient:u4,radialGradient:c4,stop:h4,animate:rf,animateColor:f4,animateTransform:d4,font:p4,"font-face":g4,"missing-glyph":m4,glyph:wv,text:Si,tspan:zl,tref:v4,a:w4,textPath:B4,image:b4,g:tf,symbol:x4,style:xv,use:E4,mask:Wl,clipPath:F4,filter:$l,feDropShadow:U4,feMorphology:I4,feComposite:T4,feColorMatrix:Cv,feGaussianBlur:_4,title:L4,desc:Q4};function N4(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(A){return Object.getOwnPropertyDescriptor(r,A).enumerable})),t.push.apply(t,n)}return t}function cW(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?N4(Object(t),!0).forEach(function(n){W0(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):N4(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function hW(r,e){var t=document.createElement("canvas");return t.width=r,t.height=e,t}function fW(r){return Ev.apply(this,arguments)}function Ev(){return Ev=xi(function*(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=document.createElement("img");return e&&(t.crossOrigin="Anonymous"),new Promise((n,A)=>{t.onload=()=>{n(t)},t.onerror=(i,a,s,o,l)=>{A(l)},t.src=r})}),Ev.apply(this,arguments)}class Ui{constructor(e){var{rootEmSize:t=12,emSize:n=12,createCanvas:A=Ui.createCanvas,createImage:i=Ui.createImage,anonymousCrossOrigin:a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=n,this.createCanvas=A,this.createImage=this.bindCreateImage(i,a),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t=="boolean"?(n,A)=>e(n,typeof A=="boolean"?A:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),n=Ui.elementTypes[t];return typeof n<"u"?new n(this,e):new r4(this,e)}createTextNode(e){return new oW(this,e)}setViewBox(e){this.screen.setViewBox(cW({document:this},e))}}Ui.createCanvas=hW,Ui.createImage=fW,Ui.elementTypes=uW;function O4(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(A){return Object.getOwnPropertyDescriptor(r,A).enumerable})),t.push.apply(t,n)}return t}function As(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?O4(Object(t),!0).forEach(function(n){W0(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):O4(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}class is{constructor(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new ef(n),this.screen=new Gl(e,n),this.options=n;var A=new Ui(this,n),i=A.createDocumentElement(t);this.document=A,this.documentElement=i}static from(e,t){var n=arguments;return xi(function*(){var A=n.length>2&&n[2]!==void 0?n[2]:{},i=new ef(A),a=yield i.parse(t);return new is(e,a,A)})()}static fromString(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},A=new ef(n),i=A.parseFromString(t);return new is(e,i,n)}fork(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return is.from(e,t,As(As({},this.options),n))}forkString(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return is.fromString(e,t,As(As({},this.options),n))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return xi(function*(){var n=e.length>0&&e[0]!==void 0?e[0]:{};t.start(As({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:n,options:A}=this;n.start(t,As(As({enableRedraw:!0},A),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,t,n)}}const dW=Object.freeze(Object.defineProperty({__proto__:null,AElement:w4,AnimateColorElement:f4,AnimateElement:rf,AnimateTransformElement:d4,BoundingBox:dA,CB1:uv,CB2:cv,CB3:hv,CB4:fv,Canvg:is,CircleElement:n4,ClipPathElement:F4,DefsElement:l4,DescElement:Q4,Document:Ui,Element:hr,EllipseElement:A4,FeColorMatrixElement:Cv,FeCompositeElement:T4,FeDropShadowElement:U4,FeGaussianBlurElement:_4,FeMorphologyElement:I4,FilterElement:$l,Font:xn,FontElement:p4,FontFaceElement:g4,GElement:tf,GlyphElement:wv,GradientElement:bv,ImageElement:b4,LineElement:i4,LinearGradientElement:u4,MarkerElement:o4,MaskElement:Wl,Matrix:mv,MissingGlyphElement:m4,Mouse:$E,PSEUDO_ZERO:ns,Parser:ef,PathElement:jt,PathParser:Bt,PatternElement:s4,Point:yr,PolygonElement:a4,PolylineElement:Bv,Property:ot,QB1:dv,QB2:pv,QB3:gv,RadialGradientElement:c4,RectElement:yv,RenderedElement:ca,Rotate:JE,SVGElement:po,SVGFontLoader:C4,Scale:ZE,Screen:Gl,Skew:vv,SkewX:e4,SkewY:t4,StopElement:h4,StyleElement:xv,SymbolElement:x4,TRefElement:v4,TSpanElement:zl,TextElement:Si,TextPathElement:B4,TitleElement:L4,Transform:ua,Translate:YE,UnknownElement:r4,UseElement:E4,ViewPort:WE,compressSpaces:ts,default:is,getSelectorSpecificity:zE,normalizeAttributeName:VE,normalizeColor:GE,parseExternalUrl:sv,presets:Gz,toNumbers:Hn,trimLeft:KE,trimRight:jE,vectorMagnitude:ov,vectorsAngle:lv,vectorsRatio:Zh},Symbol.toStringTag,{value:"Module"}));Ft.BugBuilderService=ed,Ft.BugDialog=VB,Ft.BugStoreService=Fu,Ft.CsvExporter=Ad,Ft.ErrorClassifier=cn,Ft.ExportService=Ho,Ft.FloatingToolbar=jB,Ft.HttpInterceptor=Hi,Ft.IframeAdapter=Zp,Ft.JsonExporter=rd,Ft.MarkdownExporter=nd,Ft.NpmAdapter=Jp,Ft.PdfExporter=Xp,Ft.ScreenshotService=Iw,Ft.WordExporter=Cp,Ft.bindEvents=r6,Ft.clearElement=KB,Ft.createAdapter=l6,Ft.createAutoAdapter=u6,Ft.createElement=Le,Ft.debounce=s6,Ft.getExportService=nF,Ft.on=dt,Ft.setPosition=n6,Ft.setVisible=i6,Ft.throttle=o6,Ft.toggleClass=A6,Ft.transition=a6,Object.defineProperty(Ft,Symbol.toStringTag,{value:"Module"})});
358
+ //# sourceMappingURL=bug-extractor.umd.js.map